PageSourceSearch

https://smarterise.ai/assets/index-C7dtvEvG.js

js smarterise.ai collected 2026-10-05 15:05:47 UTC 3,202,768 bytes, 227 lines download raw bytes

vendor: 14,035 bytes, line 1
1var Hte=t=>{throw TypeError(t)};var YIe=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Qte=(t,e,r)=>e.has(t)||Hte("Cannot "+r);var nl=(t,e,r)=>(Qte(t,e,"read from private field"),r?r.call(t):e.get(t)),jte=(t,e,r)=>e.has(t)?Hte("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),$j=(t,e,r,n)=>(Qte(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var GNt=YIe((Pc,kc)=>{function $Ie(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var KP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function HT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zj={exports:{}},P2={};var zte;function ZIe(){if(zte)return P2;zte=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:t,type:n,key:o,ref:i!==void 0?i:null,props:a}}return P2.Fragment=e,P2.jsx=r,P2.jsxs=r,P2}var Vte;function XIe(){return Vte||(Vte=1,Zj.exports=ZIe()),Zj.exports}var E=XIe(),Xj={exports:{}},Tr={};var Gte;function qIe(){if(Gte)return Tr;Gte=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),d=Symbol.for("react.view_transition"),A=Symbol.iterator;function p(ae){return ae===null||typeof ae!="object"?null:(ae=A&&ae[A]||ae["@@iterator"],typeof ae=="function"?ae:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function b(ae,fe,we){this.props=ae,this.context=fe,this.refs=y,this.updater=we||g}b.prototype.isReactComponent={},b.prototype.setState=function(ae,fe){if(typeof ae!="object"&&typeof ae!="function"&&ae!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,ae,fe,"setState")},b.prototype.forceUpdate=function(ae){this.updater.enqueueForceUpdate(this,ae,"forceUpdate")};function x(){}x.prototype=b.prototype;function T(ae,fe,we){this.props=ae,this.context=fe,this.refs=y,this.updater=we||g}var B=T.prototype=new x;B.constructor=T,m(B,b.prototype),B.isPureReactComponent=!0;var R=Array.isArray;function I(){}var N={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function Q(ae,fe,we){var Me=we.ref;return{$$typeof:t,type:ae,key:fe,ref:Me!==void 0?Me:null,props:we}}function j(ae,fe){return Q(ae.type,fe,ae.props)}function W(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===t}function V(ae){var fe={"=":"=0",":":"=2"};return"$"+ae.replace(/[=:]/g,function(we){return fe[we]})}var Y=/\/+/g;function G(ae,fe){return typeof ae=="object"&&ae!==null&&ae.key!=null?V(""+ae.key):fe.toString(36)}function K(ae){switch(ae.status){case"fulfilled":return ae.value;case"rejected":throw ae.reason;default:switch(typeof ae.status=="string"?ae.then(I,I):(ae.status="pending",ae.then(function(fe){ae.status==="pending"&&(ae.status="fulfilled",ae.value=fe)},function(fe){ae.status==="pending"&&(ae.status="rejected",ae.reason=fe)})),ae.status){case"fulfilled":return ae.value;case"rejected":throw ae.reason}}throw ae}function X(ae,fe,we,Me,ge){var be=typeof ae;(be==="undefined"||be==="boolean")&&(ae=null);var Ve=!1;if(ae===null)Ve=!0;else switch(be){case"bigint":case"string":case"number":Ve=!0;break;case"object":switch(ae.$$typeof){case t:case e:Ve=!0;break;case c:return Ve=ae._init,X(Ve(ae._payload),fe,we,Me,ge)}}if(Ve)return ge=ge(ae),Ve=Me===""?"."+G(ae,0):Me,R(ge)?(we="",Ve!=null&&(we=Ve.replace(Y,"$&/")+"/"),X(ge,fe,we,"",function(nt){return nt})):ge!=null&&(W(ge)&&(ge=j(ge,we+(ge.key==null||ae&&ae.key===ge.key?"":(""+ge.key).replace(Y,"$&/")+"/")+Ve)),fe.push(ge)),1;Ve=0;var Re=Me===""?".":Me+":";if(R(ae))for(var Se=0;Se<ae.length;Se++)Me=ae[Se],be=Re+G(Me,Se),Ve+=X(Me,fe,we,be,ge);else if(Se=p(ae),typeof Se=="function")for(ae=Se.call(ae),Se=0;!(Me=ae.next()).done;)Me=Me.value,be=Re+G(Me,Se++),Ve+=X(Me,fe,we,be,ge);else if(be==="object"){if(typeof ae.then=="function")return X(K(ae),fe,we,Me,ge);throw fe=String(ae),Error("Objects are not valid as a React child (found: "+(fe==="[object Object]"?"object with keys {"+Object.keys(ae).join(", ")+"}":fe)+"). If you meant to render a collection of children, use an array instead.")}return Ve}function q(ae,fe,we){if(ae==null)return ae;var Me=[],ge=0;return X(ae,Me,"","",function(be){return fe.call(we,be,ge++)}),Me}function ne(ae){if(ae._status===-1){var fe=ae._result,we=fe();we.then(function(Me){(ae._status===0||ae._status===-1)&&(ae._status=1,ae._result=Me,we.status===void 0&&(we.status="fulfilled",we.value=Me))},function(Me){(ae._status===0||ae._status===-1)&&(ae._status=2,ae._result=Me,we.status===void 0&&(we.status="rejected",we.reason=Me))}),ae._status===-1&&(ae._status=0,ae._result=we)}if(ae._status===1)return ae._result.default;throw ae._result}var te=typeof reportError=="function"?reportError:function(ae){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var fe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof ae=="object"&&ae!==null&&typeof ae.message=="string"?String(ae.message):String(ae),error:ae});if(!window.dispatchEvent(fe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",ae);return}console.error(ae)};function ce(ae){var fe=N.T,we={};we.types=fe!==null?fe.types:null,N.T=we;try{var Me=ae(),ge=N.S;ge!==null&&ge(we,Me),typeof Me=="object"&&Me!==null&&typeof Me.then=="function"&&Me.then(I,te)}catch(be){te(be)}finally{fe!==null&&we.types!==null&&(fe.types=we.types),N.T=fe}}function he(ae){var fe=N.T;if(fe!==null){var we=fe.types;we===null?fe.types=[ae]:we.indexOf(ae)===-1&&we.push(ae)}else ce(he.bind(null,ae))}var ve={map:q,forEach:function(ae,fe,we){q(ae,function(){fe.apply(this,arguments)},we)},count:function(ae){var fe=0;return q(ae,function(){fe++}),fe},toArray:function(ae){return q(ae,function(fe){return fe})||[]},only:function(ae){if(!W(ae))throw Error("React.Children.only expected to receive a single React element child.");return ae}};return Tr.Activity=f,Tr.Children=ve,Tr.Component=b,Tr.Fragment=r,Tr.Profiler=i,Tr.PureComponent=T,Tr.StrictMode=n,Tr.Suspense=l,Tr.ViewTransition=d,Tr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Tr.__COMPILER_RUNTIME={__proto__:null,c:function(ae){return N.H.useMemoCache(ae)}},Tr.addTransitionType=he,Tr.cache=function(ae){return function(){return ae.apply(null,arguments)}},Tr.cacheSignal=function(){return null},Tr.cloneElement=function(ae,fe,we){if(ae==null)throw Error("The argument must be a React element, but you passed "+ae+".");var Me=m({},ae.props),ge=ae.key;if(fe!=null)for(be in fe.key!==void 0&&(ge=""+fe.key),fe)!F.call(fe,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&fe.ref===void 0||(Me[be]=fe[be]);var be=arguments.length-2;if(be===1)Me.children=we;else if(1<be){for(var Ve=Array(be),Re=0;Re<be;Re++)Ve[Re]=arguments[Re+2];Me.children=Ve}return Q(ae.type,ge,Me)},Tr.createContext=function(ae){return ae={$$typeof:o,_currentValue:ae,_currentValue2:ae,_threadCount:0,Provider:null,Consumer:null},ae.Provider=ae,ae.Consumer={$$typeof:a,_context:ae},ae},Tr.createElement=function(ae,fe,we){var Me,ge={},be=null;if(fe!=null)for(Me in fe.key!==void 0&&(be=""+fe.key),fe)F.call(fe,Me)&&Me!=="key"&&Me!=="__self"&&Me!=="__source"&&(ge[Me]=fe[Me]);var Ve=arguments.length-2;if(Ve===1)ge.children=we;else if(1<Ve){for(var Re=Array(Ve),Se=0;Se<Ve;Se++)Re[Se]=arguments[Se+2];ge.children=Re}if(ae&&ae.defaultProps)for(Me in Ve=ae.defaultProps,Ve)ge[Me]===void 0&&(ge[Me]=Ve[Me]);return Q(ae,be,ge)},Tr.createRef=function(){return{current:null}},Tr.forwardRef=function(ae){return{$$typeof:s,render:ae}},Tr.isValidElement=W,Tr.lazy=function(ae){return{$$typeof:c,_payload:{_status:-1,_result:ae},_init:ne}},Tr.memo=function(ae,fe){return{$$typeof:u,type:ae,compare:fe===void 0?null:fe}},Tr.startTransition=ce,Tr.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Tr.use=function(ae){return N.H.use(ae)},Tr.useActionState=function(ae,fe,we){return N.H.useActionState(ae,fe,we)},Tr.useCallback=function(ae,fe){return N.H.useCallback(ae,fe)},Tr.useContext=function(ae){return N.H.useContext(ae)},Tr.useDebugValue=function(){},Tr.useDeferredValue=function(ae,fe){return N.H.useDeferredValue(ae,fe)},Tr.useEffect=function(ae,fe){return N.H.useEffect(ae,fe)},Tr.useEffectEvent=function(ae){return N.H.useEffectEvent(ae)},Tr.useId=function(){return N.H.useId()},Tr.useImperativeHandle=function(ae,fe,we){return N.H.useImperativeHandle(ae,fe,we)},Tr.useInsertionEffect=function(ae,fe){return N.H.useInsertionEffect(ae,fe)},Tr.useLayoutEffect=function(ae,fe){return N.H.useLayoutEffect(ae,fe)},Tr.useMemo=function(ae,fe){return N.H.useMemo(ae,fe)},Tr.useOptimistic=function(ae,fe){return N.H.useOptimistic(ae,fe)},Tr.useReducer=function(ae,fe,we){return N.H.useReducer(ae,fe,we)},Tr.useRef=function(ae){return N.H.useRef(ae)},Tr.useState=function(ae){return N.H.useState(ae)},Tr.useSyncExternalStore=function(ae,fe,we){return N.H.useSyncExternalStore(ae,fe,we)},Tr.useTransition=function(){return N.H.useTransition()},Tr.version="19.3.0",Tr}var Kte;function jH(){return Kte||(Kte=1,Xj.exports=qIe()),Xj.exports}var H=jH();const ue=HT(H),f0=$Ie({__proto__:null,default:ue},[H]);var qj={exports:{}},k2={},Jj={exports:{}},ez={};var Wte;function JIe(){return Wte||(Wte=1,(function(t){function e(K,X){var q=K.length;K.push(X);e:for(;0<q;){var ne=q-1>>>1,te=K[ne];if(0<i(te,X))K[ne]=X,K[q]=te,q=ne;else break e}}function r(K){return K.length===0?null:K[0]}function n(K){if(K.length===0)return null;var X=K[0],q=K.pop();if(q!==X){K[0]=q;e:for(var ne=0,te=K.length,ce=te>>>1;ne<ce;){var he=2*(ne+1)-1,ve=K[he],ae=he+1,fe=K[ae];if(0>i(ve,q))ae<te&&0>i(fe,ve)?(K[ne]=fe,K[ae]=q,ne=ae):(K[ne]=ve,K[he]=q,ne=he);else if(ae<te&&0>i(fe,q))K[ne]=fe,K[ae]=q,ne=ae;else break e}}return X}function i(K,X){var q=K.sortIndex-X.sortIndex;return q!==0?q:K.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,A=!1,p=!1,g=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function T(K){for(var X=r(u);X!==null;){if(X.callback===null)n(u);else if(X.startTime<=K)n(u),X.sortIndex=X.expirationTime,e(l,X);else break;X=r(u)}}function B(K){if(g=!1,T(K),!p)if(r(l)!==null)p=!0,R||(R=!0,W());else{var X=r(u);X!==null&&G(B,X.startTime-K)}}var R=!1,I=-1,N=5,F=-1;function Q(){return m?!0:!(t.unstable_now()-F<N)}function j(){if(m=!1,R){var K=t.unstable_now();F=K;var X=!0;try{e:{p=!1,g&&(g=!1,b(I),I=-1),A=!0;var q=d;try{t:{for(T(K),f=r(l);f!==null&&!(f.expirationTime>K&&Q());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,d=f.priorityLevel;var te=ne(f.expirationTime<=K);if(K=t.unstable_now(),typeof te=="function"){f.callback=te,T(K),X=!0;break t}f===r(l)&&n(l),T(K)}else n(l);f=r(l)}if(f!==null)X=!0;else{var ce=r(u);ce!==null&&G(B,ce.startTime-K),X=!1}}break e}finally{f=null,d=q,A=!1}X=void 0}}finally{X?W():R=!1}}}var W;if(typeof x=="function")W=function(){x(j)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,Y=V.port2;V.port1.onmessage=j,W=function(){Y.postMessage(null)}}else W=function(){y(j,0)};function G(K,X){I=y(function(){K(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_next=function(K){switch(d){case 1:case 2:case 3:var X=3;break;default:X=d}var q=d;d=X;try{return K()}finally{d=q}},t.unstable_requestPaint=function(){m=!0},t.unstable_runWithPriority=function(K,X){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var q=d;d=K;try{return X()}finally{d=q}},t.unstable_scheduleCallback=function(K,X,q){var ne=t.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?ne+q:ne):q=ne,K){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}
vendor: 24,660 bytes, lines 1-8
1return te=q+te,K={id:c++,callback:X,priorityLevel:K,startTime:q,expirationTime:te,sortIndex:-1},q>ne?(K.sortIndex=q,e(u,K),r(l)===null&&K===r(u)&&(g?(b(I),I=-1):g=!0,G(B,q-ne))):(K.sortIndex=te,e(l,K),p||A||(p=!0,R||(R=!0,W()))),K},t.unstable_shouldYield=Q,t.unstable_wrapCallback=function(K){var X=d;return function(){var q=d;d=X;try{return K.apply(this,arguments)}finally{d=q}}}})(ez)),ez}var Yte;function eOe(){return Yte||(Yte=1,Jj.exports=JIe()),Jj.exports}var tz={exports:{}},ys={};var $te;function tOe(){if($te)return ys;$te=1;var t=jH();function e(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)f+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),a=Symbol.for("react.recoverable"),o=Symbol.for("react.optimistic_key");function s(c,f,d){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:A==null?null:A===o?o:""+A,children:c,containerInfo:f,implementation:d}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return ys.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,ys.browser=function(c){return{$$typeof:a,_reason:c}},ys.createPortal=function(c,f){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return s(c,f,null,d)},ys.flushSync=function(c){var f=l.T,d=n.p;try{if(l.T=null,n.p=2,c)return c()}finally{l.T=f,n.p=d,n.d.f()}},ys.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,n.d.C(c,f))},ys.prefetchDNS=function(c){typeof c=="string"&&n.d.D(c)},ys.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var d=f.as,A=u(d,f.crossOrigin),p=typeof f.integrity=="string"?f.integrity:void 0,g=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;d==="style"?n.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:A,integrity:p,fetchPriority:g}):d==="script"&&n.d.X(c,{crossOrigin:A,integrity:p,fetchPriority:g,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ys.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var d=u(f.as,f.crossOrigin);n.d.M(c,{crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0})}}else f==null&&n.d.M(c)},ys.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var d=f.as,A=u(d,f.crossOrigin);n.d.L(c,d,{crossOrigin:A,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ys.preloadModule=function(c,f){if(typeof c=="string")if(f){var d=u(f.as,f.crossOrigin);n.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0})}else n.d.m(c)},ys.requestFormReset=function(c){n.d.r(c)},ys.unstable_batchedUpdates=function(c,f){return c(f)},ys.useFormState=function(c,f,d){return l.H.useFormState(c,f,d)},ys.useFormStatus=function(){return l.H.useHostTransitionStatus()},ys.version="19.3.0",ys}var Zte;function Rge(){if(Zte)return tz.exports;Zte=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),tz.exports=tOe(),tz.exports}var Xte;function rOe(){if(Xte)return k2;Xte=1;var t=eOe(),e=jH(),r=Rge();function n(h){var v="https://react.dev/errors/"+h;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)v+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+h+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function a(h){for(var v=h,_=v;_&&!_.alternate;)v=_,(v.flags&4098)!==0&&(h=v.return),_=v.return;for(;v.return;)v=v.return;return v.tag===3?h:null}function o(h){if(h.tag===13){var v=h.memoizedState;if(v===null&&(h=h.alternate,h!==null&&(v=h.memoizedState)),v!==null)return v.dehydrated}return null}function s(h){if(h.tag===31){var v=h.memoizedState;if(v===null&&(h=h.alternate,h!==null&&(v=h.memoizedState)),v!==null)return v.dehydrated}return null}function l(h){if(a(h)!==h)throw Error(n(188))}function u(h){var v=h.alternate;if(!v){if(v=a(h),v===null)throw Error(n(188));return v!==h?null:h}for(var _=h,C=v;;){var O=_.return;if(O===null)break;var P=O.alternate;if(P===null){if(C=O.return,C!==null){_=C;continue}break}if(O.child===P.child){for(P=O.child;P;){if(P===_)return l(O),h;if(P===C)return l(O),v;P=P.sibling}throw Error(n(188))}if(_.return!==C.return)_=O,C=P;else{for(var Z=!1,oe=O.child;oe;){if(oe===_){Z=!0,_=O,C=P;break}if(oe===C){Z=!0,C=O,_=P;break}oe=oe.sibling}if(!Z){for(oe=P.child;oe;){if(oe===_){Z=!0,_=P,C=O;break}if(oe===C){Z=!0,C=P,_=O;break}oe=oe.sibling}if(!Z)throw Error(n(189))}}if(_.alternate!==C)throw Error(n(190))}if(_.tag!==3)throw Error(n(188));return _.stateNode.current===_?h:v}function c(h){var v=h.tag;if(v===5||v===26||v===27||v===6)return h;for(h=h.child;h!==null;){if(v=c(h),v!==null)return v;h=h.sibling}return null}function f(h,v,_,C,O,P){for(;h!==null;){if((h.tag===5||h.tag===27||h.tag===6)&&_(h,C,O,P)||(h.tag!==22||h.memoizedState===null)&&(v||h.tag!==5&&h.tag!==27)&&f(h.child,v,_,C,O,P))return!0;h=h.sibling}return!1}function d(h){for(h=h.return;h!==null;){if(h.tag===3||h.tag===5||h.tag===27)return h;h=h.return}return null}function A(h){var v=!1;for(h=h.return;h!==null&&(h.tag===4&&(v=!0),!(h.tag===3||h.tag===5||h.tag===27));)h=h.return;return v}function p(h){var v=[null,null],_=d(h);return _===null||g(v,h,_.child,{foundSelf:!1}),v}function g(h,v,_,C){for(;_!==null;){if(_===v)C.foundSelf=!0;else if(_.tag===5||_.tag===27||_.tag===6){if(C.foundSelf)return h[1]=_,!0;h[0]=_}else if((_.tag!==22||_.memoizedState===null)&&g(h,v,_.child,C))return!0;_=_.sibling}return!1}function m(h){switch(h.tag){case 5:case 27:case 6:return h.stateNode;case 3:return h.stateNode.containerInfo;default:throw Error(n(559))}}var y=null,b=null;function x(h,v,_){return h===_?!0:h===v?(y=h,!0):!1}function T(h,v,_){return h===_?(b=h,!1):h===v?(b!==null&&(y=h),!0):!1}function B(h){if(h===null)return null;do h=h===null?null:h.return;while(h&&h.tag!==5&&h.tag!==27&&h.tag!==3);return h||null}function R(h,v,_){for(var C=0,O=h;O;O=_(O))C++;O=0;for(var P=v;P;P=_(P))O++;for(;0<C-O;)h=_(h),C--;for(;0<O-C;)v=_(v),O--;for(;C--;){if(h===v||v!==null&&h===v.alternate)return h;h=_(h),v=_(v)}return null}var I=Object.assign,N=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),G=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),he=Symbol.for("react.legacy_hidden"),ve=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.for("react.view_transition"),fe=Symbol.for("react.recoverable"),we=Symbol.iterator;function Me(h){return h===null||typeof h!="object"?null:(h=we&&h[we]||h["@@iterator"],typeof h=="function"?h:null)}var ge=Symbol.for("react.client.reference");function be(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===ge?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case j:return"Fragment";case V:return"Profiler";case W:return"StrictMode";case X:return"Suspense";case q:return"SuspenseList";case ce:return"Activity";case ae:return"ViewTransition"}if(typeof h=="object")switch(h.$$typeof){case Q:return"Portal";case G:return h.displayName||"Context";case Y:return(h._context.displayName||"Context")+".Consumer";case K:var v=h.render;return h=h.displayName,h||(h=v.displayName||v.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case ne:return v=h.displayName||null,v!==null?v:be(h.type)||"Memo";case te:v=h._payload,h=h._init;try{return be(h(v))}catch{}}return null}var Ve=Array.isArray,Re=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},qe=[],tt=-1;function lt(h){return{current:h}}function ct(h){0>tt||(h.current=qe[tt],qe[tt]=null,tt--)}function Ze(h,v){tt++,qe[tt]=h.current,h.current=v}var Jt=lt(null),Sn=lt(null),jr=lt(null),Oe=lt(null);function ht(h,v){switch(Ze(jr,v),Ze(Sn,h),Ze(Jt,null),v.nodeType){case 9:case 11:h=(h=v.documentElement)&&(h=h.namespaceURI)?yP(h):0;break;default:if(h=v.tagName,v=v.namespaceURI)v=yP(v),h=wP(v,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}ct(Jt),Ze(Jt,h)}function At(){ct(Jt),ct(Sn),ct(jr)}function Ft(h){var v=h.memoizedState;v!==null&&(aS._currentValue=v.memoizedState,Ze(Oe,h)),v=Jt.current;var _=wP(v,h.type);v!==_&&(Ze(Sn,h),Ze(Jt,_))}function Yt(h){Sn.current===h&&(ct(Jt),ct(Sn)),Oe.current===h&&(ct(Oe),aS._currentValue=nt)}var zr,ni;function ii(h){if(zr===void 0)try{throw Error()}catch(_){var v=_.stack.trim().match(/\n( *(at )?)/);zr=v&&v[1]||"",ni=-1<_.stack.indexOf(`
2    at`)?" (<anonymous>)":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return`
3`+zr+h+ni}var Qs=!1;function js(h,v){if(!h||Qs)return"";Qs=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var C={DetermineComponentFrameRoot:function(){try{if(v){var We=function(){throw Error()};if(Object.defineProperty(We.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(We,[])}catch(pt){var Te=pt}Reflect.construct(h,[],We)}else{try{We.call()}catch(pt){Te=pt}We=!1;try{var Ne=Object.getOwnPropertyDescriptor(h.prototype,"props");Object.defineProperty(h.prototype,"props",{configurable:!0,set:function(){throw Error()}}),We=!0,new h}finally{We&&(Ne!==void 0?Object.defineProperty(h.prototype,"props",Ne):delete h.prototype.props)}}}else{try{throw Error()}catch(pt){Te=pt}(We=h())&&typeof We.catch=="function"&&We.catch(function(){})}}catch(pt){if(pt&&Te&&typeof pt.stack=="string")return[pt.stack,Te.stack]}return[null,null]}};C.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(C.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=C.DetermineComponentFrameRoot(),Z=P[0],oe=P[1];if(Z&&oe){var Ae=Z.split(`
4`),De=oe.split(`
5`);for(O=C=0;C<Ae.length&&!Ae[C].includes("DetermineComponentFrameRoot");)C++;for(;O<De.length&&!De[O].includes("DetermineComponentFrameRoot");)O++;if(C===Ae.length||O===De.length)for(C=Ae.length-1,O=De.length-1;1<=C&&0<=O&&Ae[C]!==De[O];)O--;for(;1<=C&&0<=O;C--,O--)if(Ae[C]!==De[O]){if(C!==1||O!==1)do if(C--,O--,0>O||Ae[C]!==De[O]){var Ue=`
6`+Ae[C].replace(" at new "," at ");return h.displayName&&Ue.includes("<anonymous>")&&(Ue=Ue.replace("<anonymous>",h.displayName)),Ue}while(1<=C&&0<=O);break}}}finally{Qs=!1,Error.prepareStackTrace=_}return(_=h?h.displayName||h.name:"")?ii(_):""}function dd(h,v){switch(h.tag){case 26:case 27:case 5:return ii(h.type);case 16:return ii("Lazy");case 13:return h.child!==v&&v!==null?ii("Suspense Fallback"):ii("Suspense");case 19:return ii("SuspenseList");case 0:case 15:return js(h.type,!1);case 11:return js(h.type.render,!1);case 1:return js(h.type,!0);case 31:return ii("Activity");case 30:return ii("ViewTransition");default:return""}}function pu(h){try{var v="",_=null;do v+=dd(h,_),_=h,h=h.return;while(h);return v}catch(C){return`
7Error generating stack: `+C.message+`
8`+C.stack}}var Cl=Object.prototype.hasOwnProperty,Wc=t.unstable_scheduleCallback,hd=t.unstable_cancelCallback,vu=t.unstable_shouldYield,_p=t.unstable_requestPaint,Kt=t.unstable_now,un=t.unstable_getCurrentPriorityLevel,ar=t.unstable_ImmediatePriority,Yr=t.unstable_UserBlockingPriority,aa=t.unstable_NormalPriority,$r=t.unstable_LowPriority,Lg=t.unstable_IdlePriority,B0=t.log,D0=t.unstable_setDisableYieldValue,gu=null,oa=null;function Yc(h){if(typeof B0=="function"&&D0(h),oa&&typeof oa.setStrictMode=="function")try{oa.setStrictMode(gu,h)}catch{}}var ts=Math.clz32?Math.clz32:zs,M0=Math.log,LE=Math.LN2;function zs(h){return h>>>=0,h===0?32:31-(M0(h)/LE|0)|0}var Qt=256,bp=262144,xp=4194304;function $c(h){var v=h&42;if(v!==0)return v;switch(h&-h){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return h&-h;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function Sp(h,v,_){var C=h.pendingLanes;if(C===0)return 0;var O=0,P=h.suspendedLanes,Z=h.pingedLanes;h=h.warmLanes;var oe=C&134217727;return oe!==0?(C=oe&~P,C!==0?O=$c(C):(Z&=oe,Z!==0?O=$c(Z):_||(_=oe&~h,_!==0&&(O=$c(_))))):(oe=C&~P,oe!==0?O=$c(oe):Z!==0?O=$c(Z):_||(_=C&~h,_!==0&&(O=$c(_)))),O===0?0:v!==0&&v!==O&&(v&P)===0&&(P=O&-O,_=v&-v,P>=_||P===32&&(_&4194048)!==0)?v:O}function Zc(h,v){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&v)===0}function L0(h,v){(v&8)!==0&&(v|=v&32);var _=h.entangledLanes;if(_!==0)for(h=h.entanglements,_&=v;0<_;){var C=31-ts(_),O=1<<C;v|=h[C],_&=~O}return v}function Eh(h,v){switch(h){case 1:case 2:case 4:case 8:case 64:return v+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rg(){var h=xp;return xp<<=1,(xp&62914560)===0&&(xp=4194304),h}function R0(h){for(var v=[],_=0;31>_;_++)v.push(h);return v}function Cp(h,v){h.pendingLanes|=v,v!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function RE(h,v,_,C,O,P){var Z=h.pendingLanes;h.pendingLanes=_,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=_,h.entangledLanes&=_,h.errorRecoveryDisabledLanes&=_,h.shellSuspendCounter=0;var oe=h.entanglements,Ae=h.expirationTimes,De=h.hiddenUpdates;for(_=Z&~_;0<_;){var Ue=31-ts(_),We=1<<Ue;oe[Ue]=0,Ae[Ue]=-1;var Te=De[Ue];if(Te!==null)for(De[Ue]=null,Ue=0;Ue<Te.length;Ue++){var Ne=Te[Ue];Ne!==null&&(Ne.lane&=-536870913)}_&=~We}C!==0&&Hx(h,C,0),P!==0&&O===0&&h.tag!==0&&(h.suspendedLanes|=P&~(Z&~v))}function Hx(h,v,_){h.pendingLanes|=v,h.suspendedLanes&=~v;var C=31-ts(v);h.entangledLanes|=v,h.entanglements[C]=h.entanglements[C]|1073741824|_&261930}function I0(h,v){var _=h.entangledLanes|=v;for(h=h.entanglements;_;){var C=31-ts(_),O=1<<C;O&v|h[C]&v&&(h[C]|=v),_&=~O}}function Qx(h,v){var _=v&-v;return _=(_&42)!==0?1:ic(_),(_&(h.suspendedLanes|v))!==0?0:_}function ic(h){switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:h=128;break;case 268435456:h=134217728;break;default:h=0}return h}function O0(h){return h&=-h,2<h?8<h?(h&134217727)!==0?32:268435456:8:2}function Tp(){var h=Se.p;return h!==0?h:(h=window.event,h===void 0?32:Ite(h.type))}function jx(h,v){var _=Se.p;try{return Se.p=h,v()}finally{Se.p=_}}var ac=Math.random().toString(36).slice(2),Ma="__reactFiber$"+ac,La="__reactProps$"+ac,Tl="__reactContainer$"+ac,Ig="__reactEvents$"+ac,zx="__reactListeners$"+ac,Ep="__reactHandles$"+ac,cn="__reactResources$"+ac,kn="__reactMarker$"+ac,Xc="__reactLoad$"+ac;function mu(h){delete h[Ma],delete h[La],delete h[zx],delete h[Ep]}function rs(h){var v;if(v=h[Ma])return v;for(var _=h.parentNode;_;){if(v=_[Tl]||_[Ma]){if(_=v.alternate,v.child!==null||_!==null&&_.child!==null)for(h=IP(h);h!==null;){if(_=h[Ma])return _;h=IP(h)}return v}h=_,_=h.parentNode}return null}function yu(h){if(h=h[Ma]||h[Tl]){var v=h.tag;if(v===5||v===6||v===13||v===31||v===26||v===27||v===3)return h}return null}function br(h){var v=h.tag;if(v===5||v===26||v===27||v===6)return h.stateNode;throw Error(n(33))}function Nn(h){var v=h[cn];return v||(v=h[cn]={hoistableStyles:new Map,hoistableScripts:new Map}),v}function mi(h){h[kn]=!0}function Bh(h){h[Xc]=void 0}var ns=new Set,P0={};function El(h,v){Lo(h,v),Lo(h+"Capture",v)}function Lo(h,v){for(P0[h]=v,h=0;h<v.length;h++)ns.add(v[h])}var Yi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oc={},qc={};function Ad(h){return Cl.call(qc,h)?!0:Cl.call(oc,h)?!1:Yi.test(h)?qc[h]=!0:(oc[h]=!0,!1)}var Fr=!1;function pd(){var h=Fr;return Fr=!1,h}function vd(h,v,_){if(Ad(v))if(_===null)h.removeAttribute(v);else{switch(typeof _){case"undefined":case"function":case"symbol":h.removeAttribute(v);return;case"boolean":var C=v.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-"){h.removeAttribute(v);return}}h.setAttribute(v,_)}}function Dh(h,v,_){if(_===null)h.removeAttribute(v);else{switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":h.removeAttribute(v);return}h.setAttribute(v,_)}}function is(h,v,_,C){if(C===null)h.removeAttribute(_);else{switch(typeof C){case"undefined":case"function":case"symbol":case"boolean":h.removeAttribute(_);return}h.setAttributeNS(v,_,C)}}function Ga(h){switch(typeof h){case"bigint":case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function Bp(h){var v=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function Dp(h,v,_){var C=Object.getOwnPropertyDescriptor(h.constructor.prototype,v);if(!h.hasOwnProperty(v)&&typeof C<"u"&&typeof C.get=="function"&&typeof C.set=="function"){var O=C.get,P=C.set;return Object.defineProperty(h,v,{configurable:!0,get:function(){return O.call(this)},set:function(Z){_=""+Z,P.call(this,Z)}}),Object.defineProperty(h,v,{enumerable:C.enumerable}),{getValue:function(){return _},setValue:function(Z){_=""+Z},stopTracking:function(){h._valueTracker=null,delete h[v]}}}}function Og(h){if(!h._valueTracker){var v=Bp(h)?"checked":"value";h._valueTracker=Dp(h,v,""+h[v])}}function Pg(h){if(!h)return!1;var v=h._valueTracker;if(!v)return!0;var _=v.getValue(),C="";return h&&(C=Bp(h)?h.checked?"true":"false":h.value),h=C,h!==_?(v.setValue(h),!0):!1}var IE=/[\n"\\]/g;function Wt(h){return h.replace(IE,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "})}function Vs(h,v,_,C,O,P,Z,oe){h.name="",Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?h.type=Z:h.removeAttribute("type"),v!=null?Z==="number"?(v===0&&h.value===""||h.value!=v)&&(h.value=""+Ga(v)):h.value!==""+Ga(v)&&(h.value=""+Ga(v)):Z!=="submit"&&Z!=="reset"||h.removeAttribute("value"),v!=null?Z==="number"&&h.value==v?kg(h,Ga(h.value)):kg(h,Ga(v)):_!=null?kg(h,Ga(_)):C!=null&&h.removeAttribute("value"),O==null&&P!=null&&(h.defaultChecked=!!P),O!=null&&(h.checked=O&&typeof O!="function"&&typeof O!="symbol"),oe!=null&&typeof oe!="function"&&typeof oe!="symbol"&&typeof oe!="boolean"?h.name=""+Ga(oe):h.removeAttribute("name")}function Fn(h,v,_,C,O,P,Z,oe){if(P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"&&(h.type=P),v!=null||_!=null){if(!(P!=="submit"&&P!=="reset"||v!=null)){Og(h);return}_=_!=null?""+Ga(_):"",v=v!=null?""+Ga(v):_,oe||v===h.value||(h.value=v),h.defaultValue=v}C=C??O,C=typeof C!="function"&&typeof C!="symbol"&&!!C,h.checked=oe?h.checked:!!C,h.defaultChecked=!!C,Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(h.name=Z),Og(h)}function kg(h,v){h.defaultValue!==""+v&&(h.defaultValue=""+v)}function Jc(h,v,_,C){if(h=h.options,v){v={};for(var O=0;O<_.length;O++)v["$"+_[O]]=!0;for(_=0;_<h.length;_++)O=v.hasOwnProperty("$"+h[_].value),h[_].selected!==O&&(h[_].selected=O),O&&C&&(h[_].defaultSelected=!0)}else{for(_=""+Ga(_),v=null,O=0;O<h.length;O++){if(h[O].value===_){h[O].selected=!0,C&&(h[O].defaultSelected=!0);return}v!==null||h[O].disabled||(v=h[O])}v!==null&&(v.selected=!0)}}function Mh(h,v,_){if(v!=null&&(v=""+Ga(v),v!==h.value&&(h.value=v),_==null)){h.defaultValue!==v&&(h.defaultValue=v);return}h.defaultValue=_!=null?""+Ga(_):""}function Ng(h,v,_,C){if(v==null){if(C!=null){if(_!=null)throw Error(n(92));if(Ve(C)){if(1<C.length)throw Error(n(93));C=C[0]}_=C}_==null&&(_=""),v=_}_=Ga(v),h.defaultValue=_,C=h.textContent,C===_&&C!==""&&C!==null&&(h.value=C),Og(h)}function Gs(h,v){if(v){var _=h.firstChild;if(_&&_===h.lastChild&&_.nodeType===3){_.nodeValue=v;return}}h.textContent=v}var k0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lh(h,v,_){var C=v.indexOf("--")===0;_==null||typeof _=="boolean"||_===""?C?h.setProperty(v,""):v==="float"?h.cssFloat="":h[v]="":C?h.setProperty(v,_):typeof _!="number"||_===0||k0.has(v)?v==="float"?h.cssFloat=_:h[v]=(""+_).trim():h[v]=_+"px"}function pa(h,v,_){if(v!=null&&typeof v!="object")throw Error(n(62));if(h=h.style,_!=null){for(var C in _)!_.hasOwnProperty(C)||v!=null&&v.hasOwnProperty(C)||(C.indexOf("--")===0?h.setProperty(C,""):C==="float"?h.cssFloat="":h[C]="",Fr=!0);for(var O in v)C=v[O],v.hasOwnProperty(O)&&_[O]!==C&&(Lh(h,O,C),Fr=!0)}else for(var P in v)v.hasOwnProperty(P)&&Lh(h,P,v[P])}function fn(h){if(h.indexOf("-")===-1)return!1;switch(h){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Un=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Vx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fg(h){return Vx.test(""+h)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":h}function Bl(){}var Mp=null;function N0(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var gd=null,Ir=null;function Gx(h){var v=yu(h);if(v&&(h=v.stateNode)){var _=h[La]||null;e:switch(h=v.stateNode,v.type){case"input":if(Vs(h,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name),v=_.name,_.type==="radio"&&v!=null){for(_=h;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll('input[name="'+Wt(""+v)+'"][type="radio"]'),v=0;v<_.length;v++){var C=_[v];if(C!==h&&C.form===h.form){var O=C[La]||null;if(!O)throw Error(n(90));Vs(C,O.value,O.defaultValue,O.defaultValue,O.checked,O.defaultChecked,O.type,O.name)}}for(v=0;v<_.length;v++)C=_[v],C.form===h.form&&Pg(C)}break e;case"textarea":Mh(h,_.value,_.defaultValue);break e;case"select":v=_.value,v!=null&&Jc(h,!!_.multiple,v,!1)}}}var Dn=!1;function ef(h,v,_){if(Dn)return h(v,_);Dn=!0;try{var C=h(v);return C}finally{if(Dn=!1,(gd!==null||Ir!==null)&&(Z1(),gd&&(v=gd,h=Ir,Ir=gd=null,Gx(v),h)))for(v=0;v<h.length;v++)Gx(h[v])}}function Ks(h,v){var _=h.stateNode;if(_===null)return null;var C=_[La]||null;if(C===null)return null;_=C[v];e:switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(h=h.type,C=!(h==="button"||h==="input"||h==="select"||h==="textarea")),h=!C;break e;default:h=!1}if(h)return null;if(_&&typeof _!="function")throw Error(n(231,v,typeof _));return _}var wu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),md=!1;if(wu)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){md=!0}
vendor: 6,446 bytes, line 8
8}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{md=!1}var _u=null,Ug=null,Lp=null;function Rp(){if(Lp)return Lp;var h,v=Ug,_=v.length,C,O="value"in _u?_u.value:_u.textContent,P=O.length;for(h=0;h<_&&v[h]===O[h];h++);var Z=_-h;for(C=1;C<=Z&&v[_-C]===O[P-C];C++);return Lp=O.slice(h,1<C?1-C:void 0)}function Ip(h){var v=h.keyCode;return"charCode"in h?(h=h.charCode,h===0&&v===13&&(h=13)):h=v,h===10&&(h=13),32<=h||h===13?h:0}function Ro(){return!0}function Io(){return!1}function Wa(h){function v(_,C,O,P,Z){this._reactName=_,this._targetInst=O,this.type=C,this.nativeEvent=P,this.target=Z,this.currentTarget=null;for(var oe in h)h.hasOwnProperty(oe)&&(_=h[oe],this[oe]=_?_(P):P[oe]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?Ro:Io,this.isPropagationStopped=Io,this}return I(v.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _=this.nativeEvent;_&&(_.preventDefault?_.preventDefault():typeof _.returnValue!="unknown"&&(_.returnValue=!1),this.isDefaultPrevented=Ro)},stopPropagation:function(){var _=this.nativeEvent;_&&(_.stopPropagation?_.stopPropagation():typeof _.cancelBubble!="unknown"&&(_.cancelBubble=!0),this.isPropagationStopped=Ro)},persist:function(){},isPersistent:Ro}),v}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(h){return h.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Op=Wa(Hn),yd=I({},Hn,{view:0,detail:0}),bu=Wa(yd),Rh,Ih,Mn,Dl=I({},yd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:j0,button:0,buttons:0,relatedTarget:function(h){return h.relatedTarget===void 0?h.fromElement===h.srcElement?h.toElement:h.fromElement:h.relatedTarget},movementX:function(h){return"movementX"in h?h.movementX:(h!==Mn&&(Mn&&h.type==="mousemove"?(Rh=h.screenX-Mn.screenX,Ih=h.screenY-Mn.screenY):Ih=Rh=0,Mn=h),Rh)},movementY:function(h){return"movementY"in h?h.movementY:Ih}}),Hg=Wa(Dl),F0=I({},Dl,{dataTransfer:0}),U0=Wa(F0),Kx=I({},yd,{relatedTarget:0}),Qg=Wa(Kx),jg=I({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0}),tf=Wa(jg),zg=I({},Hn,{clipboardData:function(h){return"clipboardData"in h?h.clipboardData:window.clipboardData}}),xu=Wa(zg),Ws=I({},Hn,{data:0}),Vg=Wa(Ws),H0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gg(h){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(h):(h=Pp[h])?!!v[h]:!1}function j0(){return Gg}var z0=I({},yd,{key:function(h){if(h.key){var v=H0[h.key]||h.key;if(v!=="Unidentified")return v}return h.type==="keypress"?(h=Ip(h),h===13?"Enter":String.fromCharCode(h)):h.type==="keydown"||h.type==="keyup"?Q0[h.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:j0,charCode:function(h){return h.type==="keypress"?Ip(h):0},keyCode:function(h){return h.type==="keydown"||h.type==="keyup"?h.keyCode:0},which:function(h){return h.type==="keypress"?Ip(h):h.type==="keydown"||h.type==="keyup"?h.keyCode:0}}),Kg=Wa(z0),OE=I({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),as=Wa(OE),va=I({},Hn,{submitter:0}),V0=Wa(va),os=I({},yd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:j0}),Wx=Wa(os),wd=I({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),PE=Wa(wd),kp=I({},Dl,{deltaX:function(h){return"deltaX"in h?h.deltaX:"wheelDeltaX"in h?-h.wheelDeltaX:0},deltaY:function(h){return"deltaY"in h?h.deltaY:"wheelDeltaY"in h?-h.wheelDeltaY:"wheelDelta"in h?-h.wheelDelta:0},deltaZ:0,deltaMode:0}),Yx=Wa(kp),Wg=I({},Hn,{newState:0,oldState:0,source:0}),kE=Wa(Wg),ss=[9,13,27,32],Oh=wu&&"CompositionEvent"in window,Np=null;wu&&"documentMode"in document&&(Np=document.documentMode);var Fp=wu&&"TextEvent"in window&&!Np,G0=wu&&(!Oh||Np&&8<Np&&11>=Np),Ra=" ",Up=!1;function _d(h,v){switch(h){case"keyup":return ss.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $x(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Oo=!1;function sc(h,v){switch(h){case"compositionend":return $x(v);case"keypress":return v.which!==32?null:(Up=!0,Ra);case"textInput":return h=v.data,h===Ra&&Up?null:h;default:return null}}function Ys(h,v){if(Oo)return h==="compositionend"||!Oh&&_d(h,v)?(h=Rp(),Lp=Ug=_u=null,Oo=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1<v.char.length)return v.char;if(v.which)return String.fromCharCode(v.which)}return null;case"compositionend":return G0&&v.locale!=="ko"?null:v.data;default:return null}}var Yg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hp(h){var v=h&&h.nodeName&&h.nodeName.toLowerCase();return v==="input"?!!Yg[h.type]:v==="textarea"}function $g(h,v,_,C){gd?Ir?Ir.push(C):Ir=[C]:gd=C,v=eS(v,"onChange"),0<v.length&&(_=new Op("onChange","change",null,_,C),h.push({event:_,listeners:v}))}var rf=null,Su=null;function Zg(h){s2(h,0)}function Ml(h){var v=br(h);if(Pg(v))return h}function Ce(h,v){if(h==="change")return v}var Ge=!1;if(wu){var He;if(wu){var Et="oninput"in document;if(!Et){var dr=document.createElement("div");dr.setAttribute("oninput","return;"),Et=typeof dr.oninput=="function"}He=Et}else He=!1;Ge=He&&(!document.documentMode||9<document.documentMode)}function dn(){rf&&(rf.detachEvent("onpropertychange",Pi),Su=rf=null)}function Pi(h){if(h.propertyName==="value"&&Ml(Su)){var v=[];$g(v,Su,h,N0(h)),ef(Zg,v)}}function Qn(h,v,_){h==="focusin"?(dn(),rf=v,Su=_,rf.attachEvent("onpropertychange",Pi)):h==="focusout"&&dn()}
vendor: 22,123 bytes, line 8
8function $s(h){if(h==="selectionchange"||h==="keyup"||h==="keydown")return Ml(Su)}function Xg(h,v){if(h==="click")return Ml(v)}function Zs(h,v){if(h==="input"||h==="change")return Ml(v)}function bd(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var ls=typeof Object.is=="function"?Object.is:bd;function Ll(h,v){if(ls(h,v))return!0;if(typeof h!="object"||h===null||typeof v!="object"||v===null)return!1;var _=Object.keys(h),C=Object.keys(v);if(_.length!==C.length)return!1;for(C=0;C<_.length;C++){var O=_[C];if(!Cl.call(v,O)||!ls(h[O],v[O]))return!1}return!0}function Ph(h){if(h=h||(typeof document<"u"?document:void 0),typeof h>"u")return null;try{return h.activeElement||h.body}catch{return h.body}}function lc(h){for(;h&&h.firstChild;)h=h.firstChild;return h}function yn(h,v){var _=lc(h);h=0;for(var C;_;){if(_.nodeType===3){if(C=h+_.textContent.length,h<=v&&C>=v)return{node:_,offset:v-h};h=C}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=lc(_)}}function xd(h,v){return h&&v?h===v?!0:h&&h.nodeType===3?!1:v&&v.nodeType===3?xd(h,v.parentNode):"contains"in h?h.contains(v):h.compareDocumentPosition?!!(h.compareDocumentPosition(v)&16):!1:!1}function qg(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var v=Ph(h.document);v instanceof h.HTMLIFrameElement;){try{var _=typeof v.contentWindow.location.href=="string"}catch{_=!1}if(_)h=v.contentWindow;else break;v=Ph(h.document)}return v}function Sd(h){var v=h&&h.nodeName&&h.nodeName.toLowerCase();return v&&(v==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||v==="textarea"||h.contentEditable==="true")}var NE=wu&&"documentMode"in document&&11>=document.documentMode,Po=null,Jg=null,uc=null,ko=!1;function Qp(h,v,_){var C=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;ko||Po==null||Po!==Ph(C)||(C=Po,"selectionStart"in C&&Sd(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),uc&&Ll(uc,C)||(uc=C,C=eS(Jg,"onSelect"),0<C.length&&(v=new Op("onSelect","select",null,v,_),h.push({event:v,listeners:C}),v.target=Po)))}function Rl(h,v){var _={};return _[h.toLowerCase()]=v.toLowerCase(),_["Webkit"+h]="webkit"+v,_["Moz"+h]="moz"+v,_}var us={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},jp={},em={};wu&&(em=document.createElement("div").style,"AnimationEvent"in window||(delete us.animationend.animation,delete us.animationiteration.animation,delete us.animationstart.animation),"TransitionEvent"in window||delete us.transitionend.transition);function Cu(h){if(jp[h])return jp[h];if(!us[h])return h;var v=us[h],_;for(_ in v)if(v.hasOwnProperty(_)&&_ in em)return jp[h]=v[_];return h}var tm=Cu("animationend"),Cd=Cu("animationiteration"),cc=Cu("animationstart"),zp=Cu("transitionrun"),Zx=Cu("transitionstart"),FE=Cu("transitioncancel"),K0=Cu("transitionend"),kh=new Map,Nh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Nh.push("scrollEnd");function w(h,v){kh.set(h,v),El(v,[h])}var D=0;function k(h,v){if(h.name!=null&&h.name!=="auto")return h.name;if(v.autoName!==null)return v.autoName;h=yc.identifierPrefix;var _=D++;return h="_"+h+"t_"+_.toString(32)+"_",v.autoName=h}function z(h){if(h==null||typeof h=="string")return h;var v=null,_=Em;if(_!==null)for(var C=0;C<_.length;C++){var O=h[_[C]];if(O!=null){if(O==="none")return"none";v=v==null?O:v+(" "+O)}}return v??h.default}function J(h,v){return h=z(h),v=z(v),v==null?h==="auto"?null:h:v==="auto"?null:v}var ie=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},de=[],Pe=0,Qe=0;function Xe(){for(var h=Pe,v=Qe=Pe=0;v<h;){var _=de[v];de[v++]=null;var C=de[v];de[v++]=null;var O=de[v];de[v++]=null;var P=de[v];if(de[v++]=null,C!==null&&O!==null){var Z=C.pending;Z===null?O.next=O:(O.next=Z.next,Z.next=O),C.pending=O}P!==0&&ga(_,O,P)}}function yt(h,v,_,C){de[Pe++]=h,de[Pe++]=v,de[Pe++]=_,de[Pe++]=C,Qe|=C,h.lanes|=C,h=h.alternate,h!==null&&(h.lanes|=C)}function $t(h,v,_,C){return yt(h,v,_,C),Zn(h)}function ur(h,v){return yt(h,null,null,v),Zn(h)}function ga(h,v,_){h.lanes|=_;var C=h.alternate;C!==null&&(C.lanes|=_);for(var O=!1,P=h.return;P!==null;)P.childLanes|=_,C=P.alternate,C!==null&&(C.childLanes|=_),P.tag===22&&(h=P.stateNode,h===null||h._visibility&1||(O=!0)),h=P,P=P.return;return h.tag===3?(P=h.stateNode,O&&v!==null&&(O=31-ts(_),h=P.hiddenUpdates,C=h[O],C===null?h[O]=[v]:C.push(v),v.lane=_|536870912),P):null}function Zn(h){if(50<jl)throw jl=0,bw=null,Error(n(185));for(var v=h.return;v!==null;)h=v,v=h.return;return h.tag===3?h.stateNode:null}var ki={};function ma(h,v,_,C){this.tag=h,this.key=_,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(h,v,_,C){return new ma(h,v,_,C)}function nf(h){return h=h.prototype,!(!h||!h.isReactComponent)}function fc(h,v){var _=h.alternate;return _===null?(_=Ei(h.tag,v,h.key,h.mode),_.elementType=h.elementType,_.type=h.type,_.stateNode=h.stateNode,_.alternate=h,h.alternate=_):(_.pendingProps=v,_.type=h.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=h.flags&1206910976,_.childLanes=h.childLanes,_.lanes=h.lanes,_.child=h.child,_.memoizedProps=h.memoizedProps,_.memoizedState=h.memoizedState,_.updateQueue=h.updateQueue,v=h.dependencies,_.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},_.sibling=h.sibling,_.index=h.index,_.ref=h.ref,_.refCleanup=h.refCleanup,_}function Xx(h,v){h.flags&=1206910978;var _=h.alternate;return _===null?(h.childLanes=0,h.lanes=v,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=_.childLanes,h.lanes=_.lanes,h.child=_.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=_.memoizedProps,h.memoizedState=_.memoizedState,h.updateQueue=_.updateQueue,h.type=_.type,v=_.dependencies,h.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext}),h}function Vp(h,v,_,C,O,P){var Z=0;if(C=h,typeof C=="function")nf(C)&&(Z=1);else if(typeof C=="string")Z=PIe(h,_,Jt.current)?26:h==="html"||h==="head"||h==="body"?27:5;else e:switch(C){case ce:return h=Ei(31,_,v,O),h.elementType=ce,h.lanes=P,h;case j:return Td(_.children,O,P,v);case W:Z=8,O|=24;break;case V:return h=Ei(12,_,v,O|2),h.elementType=V,h.lanes=P,h;case X:return h=Ei(13,_,v,O),h.elementType=X,h.lanes=P,h;case q:return h=Ei(19,_,v,O),h.elementType=q,h.lanes=P,h;case he:case ae:return h=O|32,h=Ei(30,_,v,h),h.elementType=ae,h.lanes=P,h.stateNode={autoName:null,paired:null,clones:null,ref:null},h;default:if(typeof C=="object"&&C!==null)switch(C.$$typeof){case G:Z=10;break e;case Y:Z=9;break e;case K:Z=11;break e;case ne:Z=14;break e;case te:Z=16,C=null;break e}Z=29,_=Error(n(130,h===null?"null":typeof h,"")),C=null}return v=Ei(Z,_,v,O),v.elementType=h,v.type=C,v.lanes=P,v}function Td(h,v,_,C){return h=Ei(7,h,C,v),h.lanes=_,h}function rm(h,v,_){return h=Ei(6,h,null,v),h.lanes=_,h}function ci(h){var v=Ei(18,null,null,0);return v.stateNode=h,v}function Tu(h,v,_){return v=Ei(4,h.children!==null?h.children:[],h.key,v),v.lanes=_,v.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},v}var W0=new WeakMap;function se(h,v){if(typeof h=="object"&&h!==null){var _=W0.get(h);return _!==void 0?_:(v={value:h,source:v,stack:pu(v)},W0.set(h,v),v)}return{value:h,source:v,stack:pu(v)}}var Il=[],Ol=0,Ya=null,Or=0,Eu=[],Bu=0,Fh=null,No=1,af="";function Ed(h,v){Il[Ol++]=Or,Il[Ol++]=Ya,Ya=h,Or=v}function rO(h,v,_){Eu[Bu++]=No,Eu[Bu++]=af,Eu[Bu++]=Fh,Fh=h;var C=No;h=af;var O=32-ts(C)-1;C&=~(1<<O),_+=1;var P=32-ts(v)+O;if(30<P){var Z=O-O%5;P=(C&(1<<Z)-1).toString(32),C>>=Z,O-=Z,No=1<<32-ts(v)+O|_<<O|C,af=P+h}else No=1<<P|_<<O|C,af=h}function qx(h){h.return!==null&&(Ed(h,1),rO(h,1,0))}function UE(h){for(;h===Ya;)Ya=Il[--Ol],Il[Ol]=null,Or=Il[--Ol],Il[Ol]=null;for(;h===Fh;)Fh=Eu[--Bu],Eu[Bu]=null,af=Eu[--Bu],Eu[Bu]=null,No=Eu[--Bu],Eu[Bu]=null}function of(h,v){Eu[Bu++]=No,Eu[Bu++]=af,Eu[Bu++]=Fh,No=v.id,af=v.overflow,Fh=h}var $a=null,fi=null,Vr=!1,Uh=null,Du=!1,dc=Error(n(519));function Hh(h){var v=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Y0(se(v,h)),dc}function nO(h){var v=h.stateNode,_=h.type,C=h.memoizedProps;switch(v[Ma]=h,v[La]=C,_){case"dialog":Xr("cancel",v),Xr("close",v);break;case"iframe":case"object":case"embed":Xr("load",v);break;case"video":case"audio":for(_=0;_<Bw.length;_++)Xr(Bw[_],v);break;case"source":Xr("error",v);break;case"img":case"image":case"link":Xr("error",v),Xr("load",v);break;case"details":Xr("toggle",v);break;case"input":Xr("invalid",v),Fn(v,C.value,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name,!0);break;case"select":Xr("invalid",v);break;case"textarea":Xr("invalid",v),Ng(v,C.value,C.defaultValue,C.children)}_=C.children,typeof _!="string"&&typeof _!="number"&&typeof _!="bigint"||v.textContent===""+_||C.suppressHydrationWarning===!0||gP(v.textContent,_)?(C.popover!=null&&(Xr("beforetoggle",v),Xr("toggle",v)),C.onScroll!=null&&Xr("scroll",v),C.onScrollEnd!=null&&Xr("scrollend",v),C.onClick!=null&&(v.onclick=Bl),v=!0):v=!1,v||Hh(h,!0)}function Jx(h){for($a=h.return;$a;)switch($a.tag){case 5:case 31:case 13:Du=!1;return;case 27:case 3:Du=!0;return;default:$a=$a.return}}function nm(h){if(h!==$a)return!1;if(!Vr)return Jx(h),Vr=!0,!1;var v=h.tag,_;if((_=v!==3&&v!==27)&&((_=v===5)&&(_=h.type,_=!(_!=="form"&&_!=="button")||A2(h.type,h.memoizedProps)),_=!_),_&&fi&&Hh(h),Jx(h),v===13){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));fi=RP(h)}else if(v===31){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(317));fi=RP(h)}else v===27?(v=fi,uA(h.type)?(h=D2,D2=null,fi=h):fi=v):fi=$a?ku(h.stateNode.nextSibling):null;return!0}function Gp(){fi=$a=null,Vr=!1}function Bd(){var h=Uh;return h!==null&&(Di===null?Di=h:Di.push.apply(Di,h),Uh=null),h}function Y0(h){Uh===null?Uh=[h]:Uh.push(h)}var HE=lt(null),co=null,Dd=null;function Qh(h,v,_){Ze(HE,v._currentValue),v._currentValue=_}function Md(h){h._currentValue=HE.current,ct(HE)}function e1(h,v,_){for(;h!==null;){var C=h.alternate;if((h.childLanes&v)!==v?(h.childLanes|=v,C!==null&&(C.childLanes|=v)):C!==null&&(C.childLanes&v)!==v&&(C.childLanes|=v),h===_)break;h=h.return}}function QE(h,v,_,C){var O=h.child;for(O!==null&&(O.return=h);O!==null;){var P=O.dependencies;if(P!==null){var Z=O.child;P=P.firstContext;e:for(;P!==null;){var oe=P;P=O;for(var Ae=0;Ae<v.length;Ae++)if(oe.context===v[Ae]){P.lanes|=_,oe=P.alternate,oe!==null&&(oe.lanes|=_),e1(P.return,_,h),C||(Z=null);break e}P=oe.next}}else if(O.tag===18){if(Z=O.return,Z===null)throw Error(n(341));Z.lanes|=_,P=Z.alternate,P!==null&&(P.lanes|=_),e1(Z,_,h),Z=null}else O.tag===13&&O.memoizedState!==null&&O.memoizedState.dehydrated===null?(O.lanes|=_,Z=O.alternate,Z!==null&&(Z.lanes|=_),e1(O.return,_,h),Z=O.child,Z=Z!==null?Z.sibling:null):Z=O.child;if(Z!==null)Z.return=O;else for(Z=O;Z!==null;){if(Z===h){Z=null;break}if(O=Z.sibling,O!==null){O.return=Z.return,Z=O;break}Z=Z.return}O=Z}}function jh(h,v,_,C){h=null;for(var O=v,P=!1;O!==null;){if(!P){if((O.flags&524288)!==0)P=!0;else if((O.flags&262144)!==0)break}if(O.tag===10){var Z=O.alternate;if(Z===null)throw Error(n(387));if(Z=Z.memoizedProps,Z!==null){var oe=O.type;ls(O.pendingProps.value,Z.value)||(h!==null?h.push(oe):h=[oe])}}else if(O===Oe.current){if(Z=O.alternate,Z===null)throw Error(n(387));Z.memoizedState.memoizedState!==O.memoizedState.memoizedState&&(h!==null?h.push(aS):h=[aS])}O=O.return}return h!==null&&QE(v,h,_,C),v.flags|=262144,h!==null}function $0(h){for(h=h.firstContext;h!==null;){if(!ls(h.context._currentValue,h.memoizedValue))return!0;h=h.next}return!1}function Kp(h){co=h,Dd=null,h=h.dependencies,h!==null&&(h.firstContext=null)}function fo(h){return am(co,h)}function im(h,v){return co===null&&Kp(h),am(h,v)}function am(h,v){var _=v._currentValue;if(v={context:v,memoizedValue:_,next:null},Dd===null){if(h===null)throw Error(n(308));Dd=v,h.dependencies={lanes:0,firstContext:v},h.flags|=524288}else Dd=Dd.next=v;return _}var t1=typeof AbortController<"u"?AbortController:function(){var h=[],v=this.signal={aborted:!1,addEventListener:function(_,C){h.push(C)}};this.abort=function(){v.aborted=!0,h.forEach(function(_){return _()})}},JQ=t.unstable_scheduleCallback,iO=t.unstable_NormalPriority,ya={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mu(){return{controller:new t1,data:new Map,refCount:0}}function Wp(h){h.refCount--,h.refCount===0&&JQ(iO,function(){h.controller.abort()})}function zh(h,v){if((h.pendingLanes&4194048)!==0){var _=h.transitionTypes;for(_===null&&(_=h.transitionTypes=[]),h=0;h<v.length;h++){var C=v[h];_.indexOf(C)===-1&&_.push(C)}}}var Fo=null;function ej(h){var v=h.transitionTypes;return h.transitionTypes=null,v}var om=null,r1=0,hc=0,Pl=null;function aO(h,v){if(om===null){var _=om=[];r1=0,hc=n2(),Pl={status:"pending",value:void 0,then:function(C){_.push(C)}}}return r1++,v.then(oO,oO),v}function oO(){if(--r1===0&&(Fo=null,om!==null)){Pl!==null&&(Pl.status="fulfilled");var h=om;om=null,hc=0,Pl=null;for(var v=0;v<h.length;v++)(0,h[v])()}}function n1(h,v){var _=[],C={status:"pending",value:null,reason:null,then:function(O){_.push(O)}};return h.then(function(){C.status="fulfilled",C.value=v;for(var O=0;O<_.length;O++)(0,_[O])(v)},function(O){for(C.status="rejected",C.reason=O,O=0;O<_.length;O++)(0,_[O])(void 0)}),C}var sO=Re.S;Re.S=function(h,v){if(iA=Kt(),typeof v=="object"&&v!==null&&typeof v.then=="function"&&aO(h,v),Fo!==null)for(var _=Lm;_!==null;)zh(_,Fo),_=_.next;if(_=h.types,_!==null){for(var C=Lm;C!==null;)zh(C,_),C=C.next;if(hc!==0){C=Fo,C===null&&(C=Fo=[]);for(var O=0;O<_.length;O++){var P=_[O];C.indexOf(P)===-1&&C.push(P)}}}sO!==null&&sO(h,v)};var Vh=lt(null);function Ia(){var h=Vh.current;return h!==null?h:ai.pooledCache}function sm(h,v){v===null?Ze(Vh,Vh.current):Ze(Vh,v.pool)}function jE(){var h=Ia();return h===null?null:{parent:ya._currentValue,pool:h}}var cs=Error(n(460)),Z0=Error(n(474)),Yp=Error(n(542)),sf={then:function(){}};function zE(h){return h=h.status,h==="fulfilled"||h==="rejected"}function Uo(h,v,_){switch(_=h[_],_===void 0?h.push(v):_!==v&&(v.then(Bl,Bl),v=_),v.status){case"fulfilled":return v.value;case"rejected":throw h=v.reason,uO(h),h===void 0&&!("reason"in v)?Error(n(600)):h;default:if(typeof v.status=="string")v.then(Bl,Bl);else{if(h=ai,h!==null&&100<h.shellSuspendCounter)throw Error(n(482));h=v,h.status="pending",h.then(function(C){if(v.status==="pending"){var O=v;O.status="fulfilled",O.value=C}},function(C){if(v.status==="pending"){var O=v;O.status="rejected",O.reason=C}})}switch(v.status){case"fulfilled":return v.value;case"rejected":throw h=v.reason,uO(h),h}throw $p=v,cs}}function Ld(h){try{var v=h._init;return v(h._payload)}catch(_){throw _!==null&&typeof _=="object"&&typeof _.then=="function"?($p=_,cs):_}}var $p=null;function lO(){if($p===null)throw Error(n(459));var h=$p;return $p=null,h}function uO(h){if(h===cs||h===Yp)throw Error(n(483))}var Gh=null,X0=0;function Kh(h){var v=X0;return X0+=1,Gh===null&&(Gh=[]),Uo(Gh,h,v)}function Rd(h,v){v=v.props.ref,h.ref=v!==void 0?v:null}function i1(h,v){throw v.$$typeof===N?Error(n(525)):(h=Object.prototype.toString.call(v),Error(n(31,h==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":h)))}function cO(h){function v(Be,ye){if(h){var ke=Be.deletions;ke===null?(Be.deletions=[ye],Be.flags|=16):ke.push(ye)}}function _(Be,ye){if(!h)return null;for(;ye!==null;)v(Be,ye),ye=ye.sibling;return null}function C(Be){for(var ye=new Map;Be!==null;)Be.key===null?ye.set(Be.index,Be):ye.set(Be.key,Be),Be=Be.sibling;return ye}function O(Be,ye){return Be=fc(Be,ye),Be.index=0,Be.sibling=null,Be}function P(Be,ye,ke){return Be.index=ke,h?(ke=Be.alternate,ke!==null?(ke=ke.index,ke<ye?(Be.flags|=2,ye):ke):(Be.flags|=134217730,ye)):(Be.flags|=1048576,ye)}function Z(Be){return h&&Be.alternate===null&&(Be.flags|=134217730),Be}function oe(Be,ye,ke,Ke){return ye===null||ye.tag!==6?(ye=rm(ke,Be.mode,Ke),ye.return=Be,ye):(ye=O(ye,ke),ye.return=Be,ye)}function Ae(Be,ye,ke,Ke){var Ot=ke.type;return Ot===j?(Be=Ue(Be,ye,ke.props.children,Ke,ke.key),Rd(Be,ke),Be):ye!==null&&(ye.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===te&&Ld(Ot)===ye.type)?(ye=O(ye,ke.props),Rd(ye,ke),ye.return=Be,ye):(ye=Vp(ke.type,ke.key,ke.props,null,Be.mode,Ke),Rd(ye,ke),ye.return=Be,ye)}function De(Be,ye,ke,Ke){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==ke.containerInfo||ye.stateNode.implementation!==ke.implementation?(ye=Tu(ke,Be.mode,Ke),ye.return=Be,ye):(ye=O(ye,ke.children||[]),ye.return=Be,ye)}function Ue(Be,ye,ke,Ke,Ot){return ye===null||ye.tag!==7?(ye=Td(ke,Be.mode,Ke,Ot),ye.return=Be,ye):(ye=O(ye,ke),ye.return=Be,ye)}function We(Be,ye,ke){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=rm(""+ye,Be.mode,ke),ye.return=Be,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case F:return ke=Vp(ye.type,ye.key,ye.props,null,Be.mode,ke),Rd(ke,ye),ke.return=Be,ke;case Q:return ye=Tu(ye,Be.mode,ke),ye.return=Be,ye;case te:return ye=Ld(ye),We(Be,ye,ke)}if(Ve(ye)||Me(ye))return ye=Td(ye,Be.mode,ke,null),ye.return=Be,ye;if(typeof ye.then=="function")return We(Be,Kh(ye),ke);if(ye.$$typeof===G)return We(Be,im(Be,ye),ke);i1(Be,ye)}return null}function Te(Be,ye,ke,Ke){var Ot=ye!==null?ye.key:null;if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return Ot!==null?null:oe(Be,ye,""+ke,Ke);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case F:return ke.key===Ot?Ae(Be,ye,ke,Ke):null;case Q:return ke.key===Ot?De(Be,ye,ke,Ke):null;case te:return ke=Ld(ke),Te(Be,ye,ke,Ke)}if(Ve(ke)||Me(ke))return Ot!==null?null:Ue(Be,ye,ke,Ke,null);if(typeof ke.then=="function")return Te(Be,ye,Kh(ke),Ke);if(ke.$$typeof===G)return Te(Be,ye,im(Be,ke),Ke);i1(Be,ke)}return null}function Ne(Be,ye,ke,Ke,Ot){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number"||typeof Ke=="bigint")return Be=Be.get(ke)||null,oe(ye,Be,""+Ke,Ot);if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case F:return Be=Be.get(Ke.key===null?ke:Ke.key)||null,Ae(ye,Be,Ke,Ot);case Q:return Be=Be.get(Ke.key===null?ke:Ke.key)||null,De(ye,Be,Ke,Ot);case te:return Ke=Ld(Ke),Ne(Be,ye,ke,Ke,Ot)}if(Ve(Ke)||Me(Ke))return Be=Be.get(ke)||null,Ue(ye,Be,Ke,Ot,null);if(typeof Ke.then=="function")return Ne(Be,ye,ke,Kh(Ke),Ot);if(Ke.$$typeof===G)return Ne(Be,ye,ke,im(ye,Ke),Ot);i1(ye,Ke)}return null}function pt(Be,ye,ke,Ke){for(var Ot=null,An=null,Zt=ye,Ar=ye=0,Ja=null;Zt!==null&&Ar<ke.length;Ar++){Zt.index>Ar?(Ja=Zt,Zt=null):Ja=Zt.sibling;var Tn=Te(Be,Zt,ke[Ar],Ke);if(Tn===null){Zt===null&&(Zt=Ja);break}h&&Zt&&Tn.alternate===null&&v(Be,Zt),ye=P(Tn,ye,Ar),An===null?Ot=Tn:An.sibling=Tn,An=Tn,Zt=Ja}if(Ar===ke.length)return _(Be,Zt),Vr&&Ed(Be,Ar),Ot;if(Zt===null){for(;Ar<ke.length;Ar++)Zt=We(Be,ke[Ar],Ke),Zt!==null&&(ye=P(Zt,ye,Ar),An===null?Ot=Zt:An.sibling=Zt,An=Zt);return Vr&&Ed(Be,Ar),Ot}for(Zt=C(Zt);Ar<ke.length;Ar++)Ja=Ne(Zt,Be,Ar,ke[Ar],Ke),Ja!==null&&(h&&(Tn=Ja.alternate,Tn!==null&&Zt.delete(Tn.key===null?Ar:Tn.key)),ye=P(Ja,ye,Ar),An===null?Ot=Ja:An.sibling=Ja,An=Ja);return h&&Zt.forEach(function(Fm){return v(Be,Fm)}),Vr&&Ed(Be,Ar),Ot}function Ut(Be,ye,ke,Ke){if(ke==null)throw Error(n(151));for(var Ot=null,An=null,Zt=ye,Ar=ye=0,Ja=null,Tn=ke.next();Zt!==null&&!Tn.done;Ar++,Tn=ke.next()){Zt.index>Ar?(Ja=Zt,Zt=null):Ja=Zt.sibling;var Fm=Te(Be,Zt,Tn.value,Ke);if(Fm===null){Zt===null&&(Zt=Ja);break}h&&Zt&&Fm.alternate===null&&v(Be,Zt),ye=P(Fm,ye,Ar),An===null?Ot=Fm:An.sibling=Fm,An=Fm,Zt=Ja}if(Tn.done)return _(Be,Zt),Vr&&Ed(Be,Ar),Ot;if(Zt===null){for(;!Tn.done;Ar++,Tn=ke.next())Tn=We(Be,Tn.value,Ke),Tn!==null&&(ye=P(Tn,ye,Ar),An===null?Ot=Tn:An.sibling=Tn,An=Tn);return Vr&&Ed(Be,Ar),Ot}for(Zt=C(Zt);!Tn.done;Ar++,Tn=ke.next())Tn=Ne(Zt,Be,Ar,Tn.value,Ke),Tn!==null&&(h&&(Ja=Tn.alternate,Ja!==null&&Zt.delete(Ja.key===null?Ar:Ja.key)),ye=P(Tn,ye,Ar),An===null?Ot=Tn:An.sibling=Tn,An=Tn);return h&&Zt.forEach(function(WIe){return v(Be,WIe)}),Vr&&Ed(Be,Ar),Ot}function Qr(Be,ye,ke,Ke){if(typeof ke=="object"&&ke!==null&&ke.type===j&&ke.key===null&&ke.props.ref===void 0&&(ke=ke.props.children),typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case F:e:{for(var Ot=ke.key;ye!==null;){if(ye.key===Ot){if(Ot=ke.type,Ot===j){if(ye.tag===7){_(Be,ye.sibling),Ke=O(ye,ke.props.children),Rd(Ke,ke),Ke.return=Be,Be
vendor: 4,343 bytes, line 8
8=Ke;break e}}else if(ye.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===te&&Ld(Ot)===ye.type){_(Be,ye.sibling),Ke=O(ye,ke.props),Rd(Ke,ke),Ke.return=Be,Be=Ke;break e}_(Be,ye);break}else v(Be,ye);ye=ye.sibling}ke.type===j?(Ke=Td(ke.props.children,Be.mode,Ke,ke.key),Rd(Ke,ke),Ke.return=Be,Be=Ke):(Ke=Vp(ke.type,ke.key,ke.props,null,Be.mode,Ke),Rd(Ke,ke),Ke.return=Be,Be=Ke)}return Z(Be);case Q:e:{for(Ot=ke.key;ye!==null;){if(ye.key===Ot)if(ye.tag===4&&ye.stateNode.containerInfo===ke.containerInfo&&ye.stateNode.implementation===ke.implementation){_(Be,ye.sibling),Ke=O(ye,ke.children||[]),Ke.return=Be,Be=Ke;break e}else{_(Be,ye);break}else v(Be,ye);ye=ye.sibling}Ke=Tu(ke,Be.mode,Ke),Ke.return=Be,Be=Ke}return Z(Be);case te:return ke=Ld(ke),Qr(Be,ye,ke,Ke)}if(Ve(ke))return pt(Be,ye,ke,Ke);if(Me(ke)){if(Ot=Me(ke),typeof Ot!="function")throw Error(n(150));return ke=Ot.call(ke),Ut(Be,ye,ke,Ke)}if(typeof ke.then=="function")return Qr(Be,ye,Kh(ke),Ke);if(ke.$$typeof===G)return Qr(Be,ye,im(Be,ke),Ke);i1(Be,ke)}return typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint"?(ke=""+ke,ye!==null&&ye.tag===6?(_(Be,ye.sibling),Ke=O(ye,ke),Ke.return=Be,Be=Ke):(_(Be,ye),Ke=rm(ke,Be.mode,Ke),Ke.return=Be,Be=Ke),Z(Be)):_(Be,ye)}return function(Be,ye,ke,Ke){try{X0=0;var Ot=Qr(Be,ye,ke,Ke);return Gh=null,Ot}catch(Zt){if(Zt===cs||Zt===Yp)throw Zt;var An=Ei(29,Zt,null,Be.mode);return An.lanes=Ke,An.return=Be,An}}}var Ac=cO(!0),fO=cO(!1),Wh=!1;function q0(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function a1(h,v){h=h.updateQueue,v.updateQueue===h&&(v.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function Yh(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function $h(h,v,_){var C=h.updateQueue;if(C===null)return null;if(C=C.shared,(hn&2)!==0){var O=C.pending;return O===null?v.next=v:(v.next=O.next,O.next=v),C.pending=v,v=Zn(h),ga(h,null,_),v}return yt(h,C,v,_),Zn(h)}function J0(h,v,_){if(v=v.updateQueue,v!==null&&(v=v.shared,(_&4194048)!==0)){var C=v.lanes;C&=h.pendingLanes,_|=C,v.lanes=_,I0(h,_)}}function o1(h,v){var _=h.updateQueue,C=h.alternate;if(C!==null&&(C=C.updateQueue,_===C)){var O=null,P=null;if(_=_.firstBaseUpdate,_!==null){do{var Z={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};P===null?O=P=Z:P=P.next=Z,_=_.next}while(_!==null);P===null?O=P=v:P=P.next=v}else O=P=v;_={baseState:C.baseState,firstBaseUpdate:O,lastBaseUpdate:P,shared:C.shared,callbacks:C.callbacks},h.updateQueue=_;return}h=_.lastBaseUpdate,h===null?_.firstBaseUpdate=v:h.next=v,_.lastBaseUpdate=v}var ew=!1;function tw(){if(ew){var h=Pl;if(h!==null)throw h}}function Zp(h,v,_,C){ew=!1;var O=h.updateQueue;Wh=!1;var P=O.firstBaseUpdate,Z=O.lastBaseUpdate,oe=O.shared.pending;if(oe!==null){O.shared.pending=null;var Ae=oe,De=Ae.next;Ae.next=null,Z===null?P=De:Z.next=De,Z=Ae;var Ue=h.alternate;Ue!==null&&(Ue=Ue.updateQueue,oe=Ue.lastBaseUpdate,oe!==Z&&(oe===null?Ue.firstBaseUpdate=De:oe.next=De,Ue.lastBaseUpdate=Ae))}if(P!==null){var We=O.baseState;Z=0,Ue=De=Ae=null,oe=P;do{var Te=oe.lane&-536870913,Ne=Te!==oe.lane;if(Ne?(Zr&Te)===Te:(C&Te)===Te){Te!==0&&Te===hc&&(ew=!0),Ue!==null&&(Ue=Ue.next={lane:0,tag:oe.tag,payload:oe.payload,callback:null,next:null});e:{var pt=h,Ut=oe;Te=v;var Qr=_;switch(Ut.tag){case 1:if(pt=Ut.payload,typeof pt=="function"){We=pt.call(Qr,We,Te);break e}We=pt;break e;case 3:pt.flags=pt.flags&-65537|128;case 0:if(pt=Ut.payload,Te=typeof pt=="function"?pt.call(Qr,We,Te):pt,Te==null)break e;We=I({},We,Te);break e;case 2:Wh=!0}}Te=oe.callback,Te!==null&&(h.flags|=64,Ne&&(h.flags|=8192),Ne=O.callbacks,Ne===null?O.callbacks=[Te]:Ne.push(Te))}else Ne={lane:Te,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null},Ue===null?(De=Ue=Ne,Ae=We):Ue=Ue.next=Ne,Z|=Te;if(oe=oe.next,oe===null){if(oe=O.shared.pending,oe===null)break;Ne=oe,oe=Ne.next,Ne.next=null,O.lastBaseUpdate=Ne,O.shared.pending=null}}while(!0);Ue===null&&(Ae=We),O.baseState=Ae,O.firstBaseUpdate=De,O.lastBaseUpdate=Ue,P===null&&(O.shared.lanes=0),nA|=Z,h.lanes=Z,h.memoizedState=We}}function VE(h,v){if(typeof h!="function")throw Error(n(191,h));h.call(v)}function GE(h,v){var _=h.callbacks;
vendor: 12,583 bytes, line 8
8if(_!==null)for(h.callbacks=null,h=0;h<_.length;h++)VE(_[h],v)}var Id=lt(null),Xp=lt(0);function dO(h,v){h=Fd,Ze(Xp,h),Ze(Id,v),Fd=h|v.baseLanes}function s1(){Ze(Xp,Fd),Ze(Id,Id.current)}function l1(){Fd=Xp.current,ct(Id),ct(Xp)}var ho=lt(null),Ao=null;function Zh(h){var v=h.alternate;Ze(Oa,Oa.current&1),Ze(ho,h),Ao===null&&(v===null||Id.current!==null||v.memoizedState!==null)&&(Ao=h)}function rw(h){Ze(Oa,Oa.current),Ze(ho,h),Ao===null&&(Ao=h)}function KE(h){h.tag===22?(Ze(Oa,Oa.current),Ze(ho,h),Ao===null&&(Ao=h)):lf()}function lf(){Ze(Oa,Oa.current),Ze(ho,ho.current)}function kl(h){ct(ho),Ao===h&&(Ao=null),ct(Oa)}var Oa=lt(0);function Mr(h,v){Ze(ho,ho.current),Ze(Oa,v)}function WE(h){ct(Oa),ct(ho),Ao===h&&(Ao=null)}function u1(h){for(var v=h;v!==null;){if(v.tag===13){var _=v.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||E2(_)||B2(_)))return v}else if(v.tag===19&&v.memoizedProps.revealOrder!=="independent"){if((v.flags&128)!==0)return v}else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===h)break;for(;v.sibling===null;){if(v.return===null||v.return===h)return null;v=v.return}v.sibling.return=v.return,v=v.sibling}return null}var Nl=0,Lr=null,Xn=null,wa=null,fs=!1,lm=!1,uf=!1,um=0,cm=0,qp=null,Fl=0;function jn(){throw Error(n(321))}function nw(h,v){if(v===null)return!1;for(var _=0;_<v.length&&_<h.length;_++)if(!ls(h[_],v[_]))return!1;return!0}function c1(h,v,_,C,O,P){return Nl=P,Lr=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,Re.H=h===null||h.memoizedState===null?cB:xO,uf=!1,P=_(C,O),uf=!1,lm&&(P=YE(v,_,C,O)),iw(h),P}function iw(h){Re.H=x1;var v=Xn!==null&&Xn.next!==null;if(Nl=0,wa=Xn=Lr=null,fs=!1,cm=0,qp=null,v)throw Error(n(300));h===null||_a||(h=h.dependencies,h!==null&&$0(h)&&(_a=!0))}function YE(h,v,_,C){Lr=h;var O=0;do{if(lm&&(qp=null),cm=0,lm=!1,25<=O)throw Error(n(301));if(O+=1,wa=Xn=null,h.updateQueue!=null){var P=h.updateQueue;P.lastEffect=null,P.events=null,P.stores=null,P.memoCache!=null&&(P.memoCache.index=0)}Re.H=SO,P=v(_,C)}while(lm);return P}function $E(){var h=Re.H,v=h.useState()[0];return v=typeof v.then=="function"?fm(v):v,h=h.useState()[0],(Xn!==null?Xn.memoizedState:null)!==h&&(Lr.flags|=1024),v}function f1(){var h=um!==0;return um=0,h}function aw(h,v,_){v.updateQueue=h.updateQueue,v.flags&=-2053,h.lanes&=~_}function ow(h){if(fs){for(h=h.memoizedState;h!==null;){var v=h.queue;v!==null&&(v.pending=null),h=h.next}fs=!1}Nl=0,wa=Xn=Lr=null,lm=!1,cm=um=0,qp=null}function $i(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wa===null?Lr.memoizedState=wa=h:wa=wa.next=h,wa}function sa(){if(Xn===null){var h=Lr.alternate;h=h!==null?h.memoizedState:null}else h=Xn.next;var v=wa===null?Lr.memoizedState:wa.next;if(v!==null)wa=v,Xn=h;else{if(h===null)throw Lr.alternate===null?Error(n(467)):Error(n(310));Xn=h,h={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},wa===null?Lr.memoizedState=wa=h:wa=wa.next=h}return wa}function pc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fm(h){var v=cm;return cm+=1,qp===null&&(qp=[]),h=Uo(qp,h,v),v=Lr,(wa===null?v.memoizedState:wa.next)===null&&(v=v.alternate,Re.H=v===null||v.memoizedState===null?cB:xO),h}function sw(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return fm(h);if(h.$$typeof===fe)return;if(h.$$typeof===G)return fo(h)}throw Error(n(438,String(h)))}function lw(h){var v=null,_=Lr.updateQueue;if(_!==null&&(v=_.memoCache),v==null){var C=Lr.alternate;C!==null&&(C=C.updateQueue,C!==null&&(C=C.memoCache,C!=null&&(v={data:C.data.map(function(O){return O.slice()}),index:0})))}if(v==null&&(v={data:[],index:0}),_===null&&(_=pc(),Lr.updateQueue=_),_.memoCache=v,_=v.data[v.index],_===void 0)for(_=v.data[v.index]=Array(h),C=0;C<h;C++)_[C]=ve;return v.index++,_}function Od(h,v){return typeof v=="function"?v(h):v}function d1(h){var v=sa();return ZE(v,Xn,h)}function ZE(h,v,_){var C=h.queue;if(C===null)throw Error(n(311));C.lastRenderedReducer=_;var O=h.baseQueue,P=C.pending;if(P!==null){if(O!==null){var Z=O.next;O.next=P.next,P.next=Z}v.baseQueue=O=P,C.pending=null}if(P=h.baseState,O===null)h.memoizedState=P;else{v=O.next;var oe=Z=null,Ae=null,De=v,Ue=!1;do{var We=De.lane&-536870913;if(We!==De.lane?(Zr&We)===We:(Nl&We)===We){var Te=De.revertLane;if(Te===0)Ae!==null&&(Ae=Ae.next={lane:0,revertLane:0,gesture:null,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null}),We===hc&&(Ue=!0);else if((Nl&Te)===Te){De=De.next,Te===hc&&(Ue=!0);continue}else We={lane:0,revertLane:De.revertLane,gesture:null,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},Ae===null?(oe=Ae=We,Z=P):Ae=Ae.next=We,Lr.lanes|=Te,nA|=Te;We=De.action,uf&&_(P,We),P=De.hasEagerState?De.eagerState:_(P,We)}else Te={lane:We,revertLane:De.revertLane,gesture:De.gesture,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},Ae===null?(oe=Ae=Te,Z=P):Ae=Ae.next=Te,Lr.lanes|=We,nA|=We;De=De.next}while(De!==null&&De!==v);if(Ae===null?Z=P:Ae.next=oe,!ls(P,h.memoizedState)&&(_a=!0,Ue&&(_=Pl,_!==null)))throw _;h.memoizedState=P,h.baseState=Z,h.baseQueue=Ae,C.lastRenderedState=P}return O===null&&(C.lanes=0),[h.memoizedState,C.dispatch]}function h1(h){var v=sa(),_=v.queue;if(_===null)throw Error(n(311));_.lastRenderedReducer=h;var C=_.dispatch,O=_.pending,P=v.memoizedState;if(O!==null){_.pending=null;var Z=O=O.next;do P=h(P,Z.action),Z=Z.next;while(Z!==O);ls(P,v.memoizedState)||(_a=!0),v.memoizedState=P,v.baseQueue===null&&(v.baseState=P),_.lastRenderedState=P}return[P,C]}function XE(h,v,_){var C=Lr,O=sa(),P=Vr;if(P){if(_===void 0)throw Error(n(407));_=_()}else _=v();var Z=!ls((Xn||O).memoizedState,_);if(Z&&(O.memoizedState=_,_a=!0),O=O.queue,p1(JE.bind(null,C,O,h),[h]),h=O.getSnapshot!==v||Z||wa!==null&&(wa.memoizedState.tag&1)!==0,tv(h?9:8,{destroy:void 0},qE.bind(null,C,O,_,v),null),h){if(C.flags|=2048,ai===null)throw Error(n(349));P||(Nl&127)!==0||hO(C,v,_)}return _}function hO(h,v,_){h.flags|=16384,h={getSnapshot:v,value:_},v=Lr.updateQueue,v===null?(v=pc(),Lr.updateQueue=v,v.stores=[h]):(_=v.stores,_===null?v.stores=[h]:_.push(h))}function qE(h,v,_,C){v.value=_,v.getSnapshot=C,ds(v)&&vc(h)}function JE(h,v,_){return _(function(){ds(v)&&vc(h)})}function ds(h){var v=h.getSnapshot;h=h.value;try{var _=v();return!ls(h,_)}catch{return!0}}function vc(h){var v=ur(h,2);v!==null&&ps(v,h,2)}function eB(h){var v=$i();if(typeof h=="function"){var _=h;if(h=_(),uf){Yc(!0);try{_()}finally{Yc(!1)}}}return v.memoizedState=v.baseState=h,v.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Od,lastRenderedState:h},v}function AO(h,v,_,C){return h.baseState=_,ZE(h,Xn,typeof C=="function"?C:Od)}function A1(h,v,_,C,O){if(Aw(h))throw Error(n(485));if(h=v.action,h!==null){var P={payload:O,action:h,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Z){P.listeners.push(Z)}};Re.T!==null?_(!0):P.isTransition=!1,C(P),_=v.pending,_===null?(P.next=v.pending=P,Jp(v,P)):(P.next=_.next,v.pending=_.next=P)}}function Jp(h,v){var _=v.action,C=v.payload,O=h.state;if(v.isTransition){var P=Re.T,Z={};Z.types=P!==null?P.types:null,Re.T=Z;try{var oe=_(O,C),Ae=Re.S;Ae!==null&&Ae(Z,oe),tB(h,v,oe)}catch(De){nB(h,v,De)}finally{P!==null&&Z.types!==null&&(P.types=Z.types),Re.T=P}}else try{P=_(O,C),tB(h,v,P)}catch(De){nB(h,v,De)}}function tB(h,v,_){_!==null&&typeof _=="object"&&typeof _.then=="function"?_.then(function(C){rB(h,v,C)},function(C){return nB(h,v,C)}):rB(h,v,_)}function rB(h,v,_){v.status="fulfilled",v.value=_,iB(v),h.state=_,v=h.pending,v!==null&&(_=v.next,_===v?h.pending=null:(_=_.next,v.next=_,Jp(h,_)))}function nB(h,v,_){var C=h.pending;if(h.pending=null,C!==null){C=C.next;do v.status="rejected",v.reason=_,iB(v),v=v.next;while(v!==C)}h.action=null}function iB(h){h=h.listeners;for(var v=0;v<h.length;v++)(0,h[v])()}function ev(h,v){return v}function dm(h,v){if(Vr){var _=ai.formState;if(_!==null){e:{var C=Lr;if(Vr){if(fi){t:{for(var O=fi,P=Du;O.nodeType!==8;){if(!P){O=null;break t}if(O=ku(O.nextSibling),O===null){O=null;break t}}P=O.data,O=P==="F!"||P==="F"?O:null}if(O){fi=ku(O.nextSibling),C=O.data==="F!";break e}}Hh(C)}C=!1}C&&(v=_[0])}}return _=$i(),_.memoizedState=_.baseState=v,C={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ev,lastRenderedState:v},_.queue=C,_=Xh.bind(null,Lr,C),C.dispatch=_,C=eB(!1),P=hw.bind(null,Lr,!1,C.queue),C=$i(),O={state:v,dispatch:null,action:h,pending:null},C.queue=O,_=A1.bind(null,Lr,O,P,_),O.dispatch=_,C.memoizedState=h,[v,_,!1]}function pO(h){var v=sa();return aB(v,Xn,h)}function aB(h,v,_){if(v=ZE(h,v,ev)[0],h=d1(Od)[0],typeof v=="object"&&v!==null&&typeof v.then=="function")try{var C=fm(v)}catch(Z){throw Z===cs?Yp:Z}else C=v;v=sa();var O=v.queue,P=O.dispatch;return _!==v.memoizedState&&(Lr.flags|=2048,tv(9,{destroy:void 0},vO.bind(null,O,_),null)),[C,P,h]}function vO(h,v){h.action=v}function uw(h){var v=sa(),_=Xn;if(_!==null)return aB(v,_,h);sa(),v=v.memoizedState,_=sa();var C=_.queue.dispatch;return _.memoizedState=h,[v,C,!1]}function tv(h,v,_,C){return h={tag:h,create:_,deps:C,inst:v,next:null},v=Lr.updateQueue,v===null&&(v=pc(),Lr.updateQueue=v),_=v.lastEffect,_===null?v.lastEffect=h.next=h:(C=_.next,_.next=h,h.next=C,v.lastEffect=h),h}function cw(){return sa().memoizedState}function hm(h,v,_,C){var O=$i();Lr.flags|=h,O.memoizedState=tv(1|v,{destroy:void 0},_,C===void 0?null:C)}function rv(h,v,_,C){var O=sa();C=C===void 0?null:C;var P=O.memoizedState.inst;Xn!==null&&C!==null&&nw(C,Xn.memoizedState.deps)?O.memoizedState=tv(v,P,_,C):(Lr.flags|=h,O.memoizedState=tv(1|v,P,_,C))}function gO(h,v){hm(8390656,8,h,v)}function p1(h,v){rv(2048,8,h,v)}function v1(h){Lr.flags|=4;var v=Lr.updateQueue;if(v===null)v=pc(),Lr.updateQueue=v,v.events=[h];else{var _=v.events;_===null?v.events=[h]:_.push(h)}}function oB(h){var v=sa().memoizedState;return v1({ref:v,nextImpl:h}),function(){if((hn&2)!==0)throw Error(n(440));return v.impl.apply(void 0,arguments)}}function g1(h,v){return rv(4,2,h,v)}function mO(h,v){return rv(4,4,h,v)}function sB(h,v){if(typeof v=="function"){h=h();var _=v(h);return function(){typeof _=="function"?_():v(null)}}if(v!=null)return h=h(),v.current=h,function(){v.current=null}}function cf(h,v,_){_=_!=null?_.concat([h]):null,rv(4,4,sB.bind(null,v,h),_)}function m1(){}function lB(h,v){var _=sa();v=v===void 0?null:v;var C=_.memoizedState;return v!==null&&nw(v,C[1])?C[0]:(_.memoizedState=[h,v],h)}function yO(h,v){var _=sa();v=v===void 0?null:v;var C=_.memoizedState;if(v!==null&&nw(v,C[1]))return C[0];if(C=h(),uf){Yc(!0);try{h()}finally{Yc(!1)}}return _.memoizedState=[C,v],C}function y1(h,v,_){return _===void 0||(Nl&1073741824)!==0&&(Zr&261930)===0?h.memoizedState=v:(h.memoizedState=_,h=Mi(),Lr.lanes|=h,nA|=h,_)}function wO(h,v,_,C){return ls(_,v)?_:Id.current!==null?(h=y1(h,_,C),ls(h,v)||(_a=!0),h):(Nl&106)===0||(Nl&1073741824)!==0&&(Zr&261930)===0?(_a=!0,h.memoizedState=_):(h=Mi(),Lr.lanes|=h,nA|=h,v)}function _O(h,v,_,C,O){var P=Se.p;Se.p=P!==0&&8>P?P:8;var Z=Re.T,oe={};oe.types=Z!==null?Z.types:null,Re.T=oe,hw(h,!1,v,_);try{var Ae=O(),De=Re.S;if(De!==null&&De(oe,Ae),Ae!==null&&typeof Ae=="object"&&typeof Ae.then=="function"){var Ue=n1(Ae,C);dw(h,v,Ue,Ho(h))}else dw(h,v,C,Ho(h))}catch(We){dw(h,v,{then:function(){},status:"rejected",reason:We},Ho())}finally{Se.p=P,Z!==null&&oe.types!==null&&(Z.types=oe.types),Re.T=Z}}function Pd(){}function fw(h,v,_,C){if(h.tag!==5)throw Error(n(476));var O=w1(h).queue;_O(h,O,v,nt,_===null?Pd:function(){return _1(h),_(C)})}function w1(h){var v=h.memoizedState;if(v!==null)return v;v={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Od,lastRenderedState:nt},next:null};var _={};return v.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Od,lastRenderedState:_},next:null},h.memoizedState=v,h=h.alternate,h!==null&&(h.memoizedState=v),v}function _1(h){var v=w1(h);v.next===null&&(v=h.alternate.memoizedState),dw(h,v.next.queue,{},Ho())}function Am(){return fo(aS)}function nv(){return sa().memoizedState}function or(){return sa().memoizedState}function b1(h){for(var v=h.return;v!==null;){switch(v.tag){case 24:case 3:var _=Ho();h=Yh(_);var C=$h(v,h,_);C!==null&&(ps(C,v,_),J0(C,v,_)),v={cache:Mu()},h.payload=v;return}v=v.return}}function uB(h,v,_){var C=Ho();_={lane:C,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},Aw(h)?po(v,_):(_=$t(h,v,_,C),_!==null&&(ps(_,h,C),bO(_,v,C)))}
vendor: 2,010 bytes, line 8
8function Xh(h,v,_){var C=Ho();dw(h,v,_,C)}function dw(h,v,_,C){var O={lane:C,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null};if(Aw(h))po(v,O);else{var P=h.alternate;if(h.lanes===0&&(P===null||P.lanes===0)&&(P=v.lastRenderedReducer,P!==null))try{var Z=v.lastRenderedState,oe=P(Z,_);if(O.hasEagerState=!0,O.eagerState=oe,ls(oe,Z))return yt(h,v,O,0),ai===null&&Xe(),!1}catch{}if(_=$t(h,v,O,C),_!==null)return ps(_,h,C),bO(_,v,C),!0}return!1}function hw(h,v,_,C){if(C={lane:2,revertLane:n2(),gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null},Aw(h)){if(v)throw Error(n(479))}else v=$t(h,_,C,2),v!==null&&ps(v,h,2)}function Aw(h){var v=h.alternate;return h===Lr||v!==null&&v===Lr}function po(h,v){lm=fs=!0;var _=h.pending;_===null?v.next=v:(v.next=_.next,_.next=v),h.pending=v}function bO(h,v,_){if((_&4194048)!==0){var C=v.lanes;C&=h.pendingLanes,_|=C,v.lanes=_,I0(h,_)}}var x1={readContext:fo,use:sw,useCallback:jn,useContext:jn,useEffect:jn,useImperativeHandle:jn,useLayoutEffect:jn,useInsertionEffect:jn,useMemo:jn,useReducer:jn,useRef:jn,useState:jn,useDebugValue:jn,useDeferredValue:jn,useTransition:jn,useSyncExternalStore:jn,useId:jn,useHostTransitionStatus:jn,useFormState:jn,useActionState:jn,useOptimistic:jn,useMemoCache:jn,useCacheRefresh:jn,useEffectEvent:jn},cB={readContext:fo,use:sw,useCallback:function(h,v){return $i().memoizedState=[h,v===void 0?null:v],h},useContext:fo,useEffect:gO,useImperativeHandle:function(h,v,_){_=_!=null?_.concat([h]):null,hm(4194308,4,sB.bind(null,v,h),_)},useLayoutEffect:function(h,v){return hm(4194308,4,h,v)},useInsertionEffect:function(h,v){hm(4,2,h,v)},useMemo:function(h,v){var _=$i();v=v===void 0?null:v;var C=h();if(uf){Yc(!0);try{h()}finally{Yc(!1)}}return _.memoizedState=[C,v],C},useReducer:function(h,v,_){var C=$i();if(_!==void 0){var O=_(v);if(uf){Yc(!0);try{_(v)}finally{Yc(!1)}}}else O=v;return C.memoizedState=C.baseState=O,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:O}
vendor: 1,207 bytes, line 8
8,C.queue=h,h=h.dispatch=uB.bind(null,Lr,h),[C.memoizedState,h]},useRef:function(h){var v=$i();return h={current:h},v.memoizedState=h},useState:function(h){h=eB(h);var v=h.queue,_=Xh.bind(null,Lr,v);return v.dispatch=_,[h.memoizedState,_]},useDebugValue:m1,useDeferredValue:function(h,v){var _=$i();return y1(_,h,v)},useTransition:function(){var h=eB(!1);return h=_O.bind(null,Lr,h.queue,!0,!1),$i().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,v,_){var C=Lr,O=$i();if(Vr){if(_===void 0)throw Error(n(407));_=_()}else{if(_=v(),ai===null)throw Error(n(349));(Zr&127)!==0||hO(C,v,_)}O.memoizedState=_;var P={value:_,getSnapshot:v};return O.queue=P,gO(JE.bind(null,C,P,h),[h]),C.flags|=2048,tv(9,{destroy:void 0},qE.bind(null,C,P,_,v),null),_},useId:function(){var h=$i(),v=ai.identifierPrefix;if(Vr){var _=af,C=No;_=(C&~(1<<32-ts(C)-1)).toString(32)+_,v="_"+v+"R_"+_,_=um++,0<_&&(v+="H"+_.toString(32)),v+="_"}else _=Fl++,v="_"+v+"r_"+_.toString(32)+"_";return h.memoizedState=v},useHostTransitionStatus:Am,useFormState:dm,useActionState:dm,useOptimistic:function(h){var v=$i();v.memoizedState=v.baseState=h;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};
vendor: 74,400 bytes, line 8
8return v.queue=_,v=hw.bind(null,Lr,!0,_),_.dispatch=v,[h,v]},useMemoCache:lw,useCacheRefresh:function(){return $i().memoizedState=b1.bind(null,Lr)},useEffectEvent:function(h){var v=$i(),_={impl:h};return v.memoizedState=_,function(){if((hn&2)!==0)throw Error(n(440));return _.impl.apply(void 0,arguments)}}},xO={readContext:fo,use:sw,useCallback:lB,useContext:fo,useEffect:p1,useImperativeHandle:cf,useInsertionEffect:g1,useLayoutEffect:mO,useMemo:yO,useReducer:d1,useRef:cw,useState:function(){return d1(Od)},useDebugValue:m1,useDeferredValue:function(h,v){var _=sa();return wO(_,Xn.memoizedState,h,v)},useTransition:function(){var h=d1(Od)[0],v=sa().memoizedState;return[typeof h=="boolean"?h:fm(h),v]},useSyncExternalStore:XE,useId:nv,useHostTransitionStatus:Am,useFormState:pO,useActionState:pO,useOptimistic:function(h,v){var _=sa();return AO(_,Xn,h,v)},useMemoCache:lw,useCacheRefresh:or,useEffectEvent:oB},SO={readContext:fo,use:sw,useCallback:lB,useContext:fo,useEffect:p1,useImperativeHandle:cf,useInsertionEffect:g1,useLayoutEffect:mO,useMemo:yO,useReducer:h1,useRef:cw,useState:function(){return h1(Od)},useDebugValue:m1,useDeferredValue:function(h,v){var _=sa();return Xn===null?y1(_,h,v):wO(_,Xn.memoizedState,h,v)},useTransition:function(){var h=h1(Od)[0],v=sa().memoizedState;return[typeof h=="boolean"?h:fm(h),v]},useSyncExternalStore:XE,useId:nv,useHostTransitionStatus:Am,useFormState:uw,useActionState:uw,useOptimistic:function(h,v){var _=sa();return Xn!==null?AO(_,Xn,h,v):(_.baseState=h,[h,_.queue.dispatch])},useMemoCache:lw,useCacheRefresh:or,useEffectEvent:oB};function fB(h,v,_,C){v=h.memoizedState,_=_(C,v),_=_==null?v:I({},v,_),h.memoizedState=_,h.lanes===0&&(h.updateQueue.baseState=_)}var dB={enqueueSetState:function(h,v,_){h=h._reactInternals;var C=Ho(),O=Yh(C);O.payload=v,_!=null&&(O.callback=_),v=$h(h,O,C),v!==null&&(ps(v,h,C),J0(v,h,C))},enqueueReplaceState:function(h,v,_){h=h._reactInternals;var C=Ho(),O=Yh(C);O.tag=1,O.payload=v,_!=null&&(O.callback=_),v=$h(h,O,C),v!==null&&(ps(v,h,C),J0(v,h,C))},enqueueForceUpdate:function(h,v){h=h._reactInternals;var _=Ho(),C=Yh(_);C.tag=2,v!=null&&(C.callback=v),v=$h(h,C,_),v!==null&&(ps(v,h,_),J0(v,h,_))}};function CO(h,v,_,C,O,P,Z){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(C,P,Z):v.prototype&&v.prototype.isPureReactComponent?!Ll(_,C)||!Ll(O,P):!0}function ff(h,v,_,C){h=v.state,typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps(_,C),typeof v.UNSAFE_componentWillReceiveProps=="function"&&v.UNSAFE_componentWillReceiveProps(_,C),v.state!==h&&dB.enqueueReplaceState(v,v.state,null)}function la(h,v){var _=v;if("ref"in v){_={};for(var C in v)C!=="ref"&&(_[C]=v[C])}if(h=h.defaultProps){_===v&&(_=I({},_));for(var O in h)_[O]===void 0&&(_[O]=h[O])}return _}function S1(h){ie(h)}function TO(h){console.error(h)}function C1(h){ie(h)}function T1(h,v){try{var _=h.onUncaughtError;_(v.value,{componentStack:v.stack})}catch(C){setTimeout(function(){throw C})}}function EO(h,v,_){try{var C=h.onCaughtError;C(_.value,{componentStack:_.stack,errorBoundary:v.tag===1?v.stateNode:null})}catch(O){setTimeout(function(){throw O})}}function iv(h,v,_){return _=Yh(_),_.tag=3,_.payload={element:null},_.callback=function(){T1(h,v)},_}function hB(h){return h=Yh(h),h.tag=3,h}function AB(h,v,_,C){var O=_.type.getDerivedStateFromError;if(typeof O=="function"){var P=C.value;h.payload=function(){return O(P)},h.callback=function(){EO(v,_,C)}}var Z=_.stateNode;Z!==null&&typeof Z.componentDidCatch=="function"&&(h.callback=function(){EO(v,_,C),typeof O!="function"&&(ua===null?ua=new Set([this]):ua.add(this));var oe=C.stack;this.componentDidCatch(C.value,{componentStack:oe!==null?oe:""})})}function tj(h,v,_,C,O){if(_.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){if(v=_.alternate,v!==null&&jh(v,_,O,!0),_=ho.current,_!==null){switch(_.tag){case 31:case 13:case 19:return Ao===null?sv():_.alternate===null&&Zi===0&&(Zi=3),_.flags&=-257,_.flags|=65536,_.lanes=O,C===sf?_.flags|=16384:(v=_.updateQueue,v===null?_.updateQueue=new Set([C]):v.add(C),t2(h,C,O)),!1;case 22:return _.flags|=65536,C===sf?_.flags|=16384:(v=_.updateQueue,v===null?(v={transitions:null,markerInstances:null,retryQueue:new Set([C])},_.updateQueue=v):(_=v.retryQueue,_===null?v.retryQueue=new Set([C]):_.add(C)),t2(h,C,O)),!1}throw Error(n(435,_.tag))}return t2(h,C,O),sv(),!1}if(Vr)return v=ho.current,v!==null?((v.flags&65536)===0&&(v.flags|=256),v.flags|=65536,v.lanes=O,C!==dc&&(h=Error(n(422),{cause:C}),Y0(se(h,_)))):(C!==dc&&(v=Error(n(423),{cause:C}),Y0(se(v,_))),h=h.current.alternate,h.flags|=65536,O&=-O,h.lanes|=O,C=se(C,_),O=iv(h.stateNode,C,O),o1(h,O),Zi!==4&&(Zi=2)),!1;var P=Error(n(520),{cause:C});if(P=se(P,_),_w===null?_w=[P]:_w.push(P),Zi!==4&&(Zi=2),v===null)return!0;C=se(C,_),_=v;do{switch(_.tag){case 3:return _.flags|=65536,h=O&-O,_.lanes|=h,h=iv(_.stateNode,C,h),o1(_,h),!1;case 1:if(v=_.type,P=_.stateNode,(_.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(ua===null||!ua.has(P))))return _.flags|=65536,O&=-O,_.lanes|=O,O=hB(O),AB(O,h,_,C),o1(_,O),!1;break;case 22:if(_.memoizedState!==null)return _.flags|=65536,!1}_=_.return}while(_!==null);return!1}var pB=Error(n(461)),_a=!1;function Pa(h,v,_,C){v.child=h===null?fO(v,null,_,C):Ac(v,h.child,_,C)}function vB(h,v,_,C,O){_=_.render;var P=v.ref;if("ref"in C){var Z={};for(var oe in C)oe!=="ref"&&(Z[oe]=C[oe])}else Z=C;return Kp(v),C=c1(h,v,_,Z,P,O),oe=f1(),h!==null&&!_a?(aw(h,v,O),df(h,v,O)):(Vr&&oe&&qx(v),v.flags|=1,Pa(h,v,C,O),v.child)}function gB(h,v,_,C,O){if(h===null){var P=_.type;return typeof P=="function"&&!nf(P)&&P.defaultProps===void 0&&_.compare===null?(v.tag=15,v.type=P,BO(h,v,P,C,O)):(h=Vp(_.type,null,C,v,v.mode,O),h.ref=v.ref,h.return=v,v.child=h)}if(P=h.child,!SB(h,O)){var Z=P.memoizedProps;if(_=_.compare,_=_!==null?_:Ll,_(Z,C)&&h.ref===v.ref)return df(h,v,O)}return v.flags|=1,h=fc(P,C),h.ref=v.ref,h.return=v,v.child=h}function BO(h,v,_,C,O){if(h!==null){var P=h.memoizedProps;if(Ll(P,C)&&h.ref===v.ref)if(_a=!1,v.pendingProps=C=P,SB(h,O))(h.flags&131072)!==0&&(_a=!0);else return v.lanes=h.lanes,df(h,v,O)}return B1(h,v,_,C,O)}function E1(h,v,_,C){var O=C.children,P=h!==null?h.memoizedState:null;if(h===null&&v.stateNode===null&&(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),C.mode==="hidden"){if((v.flags&128)!==0){if(P=P!==null?P.baseLanes|_:_,h!==null){for(C=v.child=h.child,O=0;C!==null;)O=O|C.lanes|C.childLanes,C=C.sibling;C=O&~P}else C=0,v.child=null;return vm(h,v,P,_,C)}if((_&536870912)!==0)v.memoizedState={baseLanes:0,cachePool:null},h!==null&&sm(v,P!==null?P.cachePool:null),P!==null?dO(v,P):s1(),KE(v);else return C=v.lanes=536870912,vm(h,v,P!==null?P.baseLanes|_:_,_,C)}else P!==null?(sm(v,P.cachePool),dO(v,P),lf(),v.memoizedState=null):(h!==null&&sm(v,null),s1(),lf());return Pa(h,v,O,_),v.child}function pm(h,v){return h!==null&&h.tag===22||v.stateNode!==null||(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.sibling}function vm(h,v,_,C,O){var P=Ia();return P=P===null?null:{parent:ya._currentValue,pool:P},v.memoizedState={baseLanes:_,cachePool:P},h!==null&&sm(v,null),s1(),KE(v),h!==null&&jh(h,v,C,!0),v.childLanes=O,null}function gm(h,v){return v=M1({mode:v.mode,children:v.children},h.mode),v.ref=h.ref,h.child=v,v.return=h,v}function mB(h,v,_){return Ac(v,h.child,null,_),h=gm(v,v.pendingProps),h.flags|=2,kl(v),v.memoizedState=null,h}function DO(h,v,_){var C=v.pendingProps,O=(v.flags&128)!==0;if(v.flags&=-129,h===null){if(Vr){if(C.mode==="hidden")return h=gm(v,C),v.lanes=536870912,h.memoizedState={baseLanes:0,cachePool:null},pm(null,h);if(rw(v),(h=fi)?(h=LP(h,Du),h=h!==null&&h.data==="&"?h:null,h!==null&&(v.memoizedState={dehydrated:h,treeContext:Fh!==null?{id:No,overflow:af}:null,retryLane:536870912,hydrationErrors:null},_=ci(h),_.return=v,v.child=_,$a=v,fi=null)):h=null,h===null)throw Hh(v);return v.lanes=536870912,null}return gm(v,C)}var P=h.memoizedState;if(P!==null){var Z=P.dehydrated;if(rw(v),O)if(v.flags&256)v.flags&=-257,v=mB(h,v,_);else if(v.memoizedState!==null)v.child=h.child,v.flags|=128,v=null;else throw Error(n(558));else if(_a||jh(h,v,_,!1),O=(_&h.childLanes)!==0,_a||O){if(Id.current===null){if(C=ai,C!==null&&(Z=Qx(C,_),Z!==0&&Z!==P.retryLane))throw P.retryLane=Z,ur(h,Z),ps(C,h,Z),pB;sv()}v=mB(h,v,_)}else h=P.treeContext,fi=ku(Z.nextSibling),$a=v,Vr=!0,Uh=null,Du=!1,h!==null&&of(v,h),v=gm(v,C),v.flags|=134221824;return v}return h=fc(h.child,{mode:C.mode,children:C.children}),h.ref=v.ref,v.child=h,h.return=v,h}function kd(h,v){var _=v.ref;if(_===null)h!==null&&h.ref!==null&&(v.flags|=4194816);else{if(typeof _!="function"&&typeof _!="object")throw Error(n(284));(h===null||h.ref!==_)&&(v.flags|=4194816)}}function B1(h,v,_,C,O){return Kp(v),_=c1(h,v,_,C,void 0,O),C=f1(),h!==null&&!_a?(aw(h,v,O),df(h,v,O)):(Vr&&C&&qx(v),v.flags|=1,Pa(h,v,_,O),v.child)}function Lu(h,v,_,C,O,P){return Kp(v),v.updateQueue=null,_=YE(v,C,_,O),iw(h),C=f1(),h!==null&&!_a?(aw(h,v,P),df(h,v,P)):(Vr&&C&&qx(v),v.flags|=1,Pa(h,v,_,P),v.child)}function qh(h,v,_,C,O){if(Kp(v),v.stateNode===null){var P=ki,Z=_.contextType;typeof Z=="object"&&Z!==null&&(P=fo(Z)),P=new _(C,P),v.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,P.updater=dB,v.stateNode=P,P._reactInternals=v,P=v.stateNode,P.props=C,P.state=v.memoizedState,P.refs={},q0(v),Z=_.contextType,P.context=typeof Z=="object"&&Z!==null?fo(Z):ki,P.state=v.memoizedState,Z=_.getDerivedStateFromProps,typeof Z=="function"&&(fB(v,_,Z,C),P.state=v.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(Z=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),Z!==P.state&&dB.enqueueReplaceState(P,P.state,null),Zp(v,C,P,O),tw(),P.state=v.memoizedState),typeof P.componentDidMount=="function"&&(v.flags|=4194308),C=!0}else if(h===null){P=v.stateNode;var oe=v.memoizedProps,Ae=la(_,oe);P.props=Ae;var De=P.context,Ue=_.contextType;Z=ki,typeof Ue=="object"&&Ue!==null&&(Z=fo(Ue));var We=_.getDerivedStateFromProps;Ue=typeof We=="function"||typeof P.getSnapshotBeforeUpdate=="function",oe=v.pendingProps!==oe,Ue||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(oe||De!==Z)&&ff(v,P,C,Z),Wh=!1;var Te=v.memoizedState;P.state=Te,Zp(v,C,P,O),tw(),De=v.memoizedState,oe||Te!==De||Wh?(typeof We=="function"&&(fB(v,_,We,C),De=v.memoizedState),(Ae=Wh||CO(v,_,Ae,C,Te,De,Z))?(Ue||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount()),typeof P.componentDidMount=="function"&&(v.flags|=4194308)):(typeof P.componentDidMount=="function"&&(v.flags|=4194308),v.memoizedProps=C,v.memoizedState=De),P.props=C,P.state=De,P.context=Z,C=Ae):(typeof P.componentDidMount=="function"&&(v.flags|=4194308),C=!1)}else{P=v.stateNode,a1(h,v),Z=v.memoizedProps,Ue=la(_,Z),P.props=Ue,We=v.pendingProps,Te=P.context,De=_.contextType,Ae=ki,typeof De=="object"&&De!==null&&(Ae=fo(De)),oe=_.getDerivedStateFromProps,(De=typeof oe=="function"||typeof P.getSnapshotBeforeUpdate=="function")||typeof P.UNSAFE_componentWillReceiveProps!="function"&&typeof P.componentWillReceiveProps!="function"||(Z!==We||Te!==Ae)&&ff(v,P,C,Ae),Wh=!1,Te=v.memoizedState,P.state=Te,Zp(v,C,P,O),tw();var Ne=v.memoizedState;Z!==We||Te!==Ne||Wh||h!==null&&h.dependencies!==null&&$0(h.dependencies)?(typeof oe=="function"&&(fB(v,_,oe,C),Ne=v.memoizedState),(Ue=Wh||CO(v,_,Ue,C,Te,Ne,Ae)||h!==null&&h.dependencies!==null&&$0(h.dependencies))?(De||typeof P.UNSAFE_componentWillUpdate!="function"&&typeof P.componentWillUpdate!="function"||(typeof P.componentWillUpdate=="function"&&P.componentWillUpdate(C,Ne,Ae),typeof P.UNSAFE_componentWillUpdate=="function"&&P.UNSAFE_componentWillUpdate(C,Ne,Ae)),typeof P.componentDidUpdate=="function"&&(v.flags|=4),typeof P.getSnapshotBeforeUpdate=="function"&&(v.flags|=1024)):(typeof P.componentDidUpdate!="function"||Z===h.memoizedProps&&Te===h.memoizedState||(v.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Z===h.memoizedProps&&Te===h.memoizedState||(v.flags|=1024),v.memoizedProps=C,v.memoizedState=Ne),P.props=C,P.state=Ne,P.context=Ae,C=Ue):(typeof P.componentDidUpdate!="function"||Z===h.memoizedProps&&Te===h.memoizedState||(v.flags|=4),typeof P.getSnapshotBeforeUpdate!="function"||Z===h.memoizedProps&&Te===h.memoizedState||(v.flags|=1024),C=!1)}return P=C,kd(h,v),C=(v.flags&128)!==0,P||C?(P=v.stateNode,_=C&&typeof _.getDerivedStateFromError!="function"?null:P.render(),v.flags|=1,h!==null&&C?(v.child=Ac(v,h.child,null,O),v.child=Ac(v,null,_,O)):Pa(h,v,_,O),v.memoizedState=P.state,h=v.child):h=df(h,v,O),h}function MO(h,v,_,C){return Gp(),v.flags|=256,Pa(h,v,_,C),v.child}var D1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yB(h){return{baseLanes:h,cachePool:jE()}}function wB(h,v,_){return h=h!==null?h.childLanes&~_:0,v&&(h|=Ql),h}function LO(h,v,_){var C=v.pendingProps,O=!1,P=(v.flags&128)!==0,Z;if((Z=P)||(Z=h!==null&&h.memoizedState===null?!1:(Oa.current&2)!==0),Z&&(O=!0,v.flags&=-129),Z=(v.flags&32)!==0,v.flags&=-33,h===null){if(Vr){if(O?Zh(v):lf(),(h=fi)?(h=LP(h,Du),h=h!==null&&h.data!=="&"?h:null,h!==null&&(v.memoizedState={dehydrated:h,treeContext:Fh!==null?{id:No,overflow:af}:null,retryLane:536870912,hydrationErrors:null},_=ci(h),_.return=v,v.child=_,$a=v,fi=null)):h=null,h===null)throw Hh(v);return B2(h)?v.lanes=32:v.lanes=536870912,null}return P=C.children,C=C.fallback,O?(lf(),O=v.mode,P=M1({mode:"hidden",children:P},O),C=Td(C,O,_,null),P.return=v,C.return=v,P.sibling=C,v.child=P,C=v.child,C.memoizedState=yB(_),C.childLanes=wB(h,Z,_),v.memoizedState=D1,pm(null,C)):(Zh(v),_B(v,P))}var oe=h.memoizedState;if(oe!==null){var Ae=oe.dehydrated;if(Ae!==null)return rj(h,v,P,Z,C,Ae,oe,_)}return O?(lf(),O=C.fallback,P=v.mode,oe=h.child,Ae=oe.sibling,C=fc(oe,{mode:"hidden",children:C.children}),C.subtreeFlags=oe.subtreeFlags&1206910976,Ae!==null?O=fc(Ae,O):(O=Td(O,P,_,null),O.flags|=2),O.return=v,C.return=v,C.sibling=O,v.child=C,pm(null,C),C=v.child,O=h.child.memoizedState,O===null?O=yB(_):(P=O.cachePool,P!==null?(oe=ya._currentValue,P=P.parent!==oe?{parent:oe,pool:oe}:P):P=jE(),O={baseLanes:O.baseLanes|_,cachePool:P}),C.memoizedState=O,C.childLanes=wB(h,Z,_),v.memoizedState=D1,pm(h.child,C)):(Zh(v),_=h.child,h=_.sibling,_=fc(_,{mode:"visible",children:C.children}),_.return=v,_.sibling=null,h!==null&&(Z=v.deletions,Z===null?(v.deletions=[h],v.flags|=16):Z.push(h)),v.child=_,v.memoizedState=null,_)}function _B(h,v){return v=M1({mode:"visible",children:v},h.mode),v.return=h,h.child=v}function M1(h,v){return h=Ei(22,h,null,v),h.lanes=0,h}function L1(h,v,_){return Ac(v,h.child,null,_),h=_B(v,v.pendingProps.children),h.flags|=2,v.memoizedState=null,h}function rj(h,v,_,C,O,P,Z,oe){if(_)return v.flags&256?(Zh(v),v.flags&=-257,L1(h,v,oe)):v.memoizedState!==null?(lf(),v.child=h.child,v.flags|=128,null):(lf(),P=O.fallback,Z=v.mode,O=M1({mode:"visible",children:O.children},Z),P=Td(P,Z,oe,null),P.flags|=2,O.return=v,P.return=v,O.sibling=P,v.child=O,Ac(v,h.child,null,oe),O=v.child,O.memoizedState=yB(oe),O.childLanes=wB(h,C,oe),v.memoizedState=D1,pm(null,O));if(Zh(v),B2(P)){if(C=P.nextSibling&&P.nextSibling.dataset,C)var Ae=C.dgst;return C=Ae,C!==""&&(O=Error(n(419)),O.stack="",O.digest=C,Y0({value:O,source:null,stack:null})),L1(h,v,oe)}if(_a||jh(h,v,oe,!1),C=(oe&h.childLanes)!==0,_a||C){if(Id.current!==null)return L1(h,v,oe);if(C=ai,C!==null&&(O=Qx(C,oe),O!==0&&O!==Z.retryLane))throw Z.retryLane=O,ur(h,O),ps(C,h,O),pB;return E2(P)||sv(),L1(h,v,oe)}return E2(P)?(v.flags|=192,v.child=h.child,null):(h=Z.treeContext,fi=ku(P.nextSibling),$a=v,Vr=!0,Uh=null,Du=!1,h!==null&&of(v,h),v=_B(v,O.children),v.flags|=134221824,v)}function RO(h,v,_){h.lanes|=v;var C=h.alternate;C!==null&&(C.lanes|=v),e1(h.return,v,_)}function IO(h){for(var v=null;h!==null;){var _=h.alternate;_!==null&&u1(_)===null&&(v=h),h=h.sibling}return v}function R1(h,v,_,C,O,P){var Z=h.memoizedState;Z===null?h.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:C,tail:_,tailMode:O,treeForkCount:P}:(Z.isBackwards=v,Z.rendering=null,Z.renderingStartTime=0,Z.last=C,Z.tail=_,Z.tailMode=O,Z.treeForkCount=P)}function bB(h){var v=h.child;for(h.child=null;v!==null;){var _=v.sibling;v.sibling=h.child,h.child=v,v=_}}function I1(h,v,_){var C=v.pendingProps,O=C.revealOrder,P=C.tail;C=C.children;var Z=Oa.current;if(v.flags&128)return Mr(v,Z),null;var oe=(Z&2)!==0;if(oe?(Z=Z&1|2,v.flags|=128):Z&=1,Mr(v,Z),O==="backwards"&&h!==null?(bB(h),Pa(h,v,C,_),bB(h)):Pa(h,v,C,_),C=Vr?Or:0,!oe&&h!==null&&(h.flags&128)!==0)e:for(h=v.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&RO(h,_,v);else if(h.tag===19)RO(h,_,v);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===v)break e;for(;h.sibling===null;){if(h.return===null||h.return===v)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}switch(O){case"backwards":_=IO(v.child),_===null?(O=v.child,v.child=null):(O=_.sibling,_.sibling=null,bB(v)),R1(v,!0,O,null,P,C);break;case"unstable_legacy-backwards":for(_=null,O=v.child,v.child=null;O!==null;){if(h=O.alternate,h!==null&&u1(h)===null){v.child=O;break}h=O.sibling,O.sibling=_,_=O,O=h}R1(v,!0,_,null,P,C);break;case"together":R1(v,!1,null,null,void 0,C);break;case"independent":v.memoizedState=null;break;default:_=IO(v.child),_===null?(O=v.child,v.child=null):(O=_.sibling,_.sibling=null),R1(v,!1,O,_,P,C)}return v.child}function xB(h,v,_){var C=v.pendingProps;return Qh(v,v.type,C.value),Pa(h,v,C.children,_),v.child}function df(h,v,_){if(h!==null&&(v.dependencies=h.dependencies),nA|=v.lanes,(_&v.childLanes)===0)if(h!==null){if(jh(h,v,_,!1),(_&v.childLanes)===0)return null}else return null;if(h!==null&&v.child!==h.child)throw Error(n(153));if(v.child!==null){for(h=v.child,_=fc(h,h.pendingProps),v.child=_,_.return=v;h.sibling!==null;)h=h.sibling,_=_.sibling=fc(h,h.pendingProps),_.return=v;_.sibling=null}return v.child}function SB(h,v){return(h.lanes&v)!==0?!0:(h=h.dependencies,!!(h!==null&&$0(h)))}function nj(h,v,_){switch(v.tag){case 3:ht(v,v.stateNode.containerInfo),Qh(v,ya,h.memoizedState.cache),Gp();break;case 27:case 5:Ft(v);break;case 4:ht(v,v.stateNode.containerInfo);break;case 10:Qh(v,v.type,v.memoizedProps.value);break;case 31:if(v.memoizedState!==null)return v.flags|=128,rw(v),null;break;case 13:var C=v.memoizedState;if(C!==null){if(C.dehydrated!==null)return Zh(v),v.flags|=128,null;C=jh(h,v,_,!1);var O=v.child.childLanes;return C||(_&O)!==0?LO(h,v,_):(Zh(v),h=df(h,v,_),h!==null?h.sibling:null)}Zh(v);break;case 19:if(v.flags&128)return I1(h,v,_);if(O=(h.flags&128)!==0,C=(_&v.childLanes)!==0,C||(jh(h,v,_,!1),C=(_&v.childLanes)!==0),O){if(C)return I1(h,v,_);v.flags|=128}if(O=v.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),Mr(v,Oa.current),C)break;return null;case 22:return v.lanes=0,E1(h,v,_,v.pendingProps);case 24:Qh(v,ya,h.memoizedState.cache)}return df(h,v,_)}function OO(h,v,_){if(h!==null)if(h.memoizedProps!==v.pendingProps)_a=!0;else{if(!SB(h,_)&&(v.flags&128)===0)return _a=!1,nj(h,v,_);_a=(h.flags&131072)!==0}else _a=!1,Vr&&(v.flags&1048576)!==0&&rO(v,Or,v.index);switch(v.lanes=0,v.tag){case 16:e:{var C=v.pendingProps;if(h=Ld(v.elementType),v.type=h,typeof h=="function")nf(h)?(C=la(h,C),v.tag=1,v=qh(null,v,h,C,_)):(v.tag=0,v=B1(null,v,h,C,_));else{if(h!=null){var O=h.$$typeof;if(O===K){v.tag=11,v=vB(null,v,h,C,_);break e}else if(O===ne){v.tag=14,v=gB(null,v,h,C,_);break e}else if(O===G){v.tag=10,v.type=h,v=xB(null,v,_);break e}}throw v=be(h)||h,Error(n(306,v,""))}}return v;case 0:return B1(h,v,v.type,v.pendingProps,_);case 1:return C=v.type,O=la(C,v.pendingProps),qh(h,v,C,O,_);case 3:e:{if(ht(v,v.stateNode.containerInfo),h===null)throw Error(n(387));C=v.pendingProps;var P=v.memoizedState;O=P.element,a1(h,v),Zp(v,C,null,_);var Z=v.memoizedState;if(C=Z.cache,Qh(v,ya,C),C!==P.cache&&QE(v,[ya],_,!0),tw(),C=Z.element,P.isDehydrated)if(P={element:C,isDehydrated:!1,cache:Z.cache},v.updateQueue.baseState=P,v.memoizedState=P,v.flags&256){v=MO(h,v,C,_);break e}else if(C!==O){O=se(Error(n(424)),v),Y0(O),v=MO(h,v,C,_);break e}else for(h=v.stateNode.containerInfo,h.nodeType===9?h=h.body:h=h.nodeName==="HTML"?h.ownerDocument.body:h,fi=ku(h.firstChild),$a=v,Vr=!0,Uh=null,Du=!0,_=fO(v,null,C,_),v.child=_;_;)_.flags=_.flags&-3|134221824,_=_.sibling;else{if(Gp(),C===O){v=df(h,v,_);break e}Pa(h,v,C,_)}v=v.child}return v;case 26:return kd(h,v),h===null?(_=gt(v.type,null,v.pendingProps,null))?v.memoizedState=_:Vr||(v.stateNode=_P(v.type,v.pendingProps,jr.current,v)):v.memoizedState=gt(v.type,h.memoizedProps,v.pendingProps,h.memoizedState),null;case 27:return Ft(v),h===null&&Vr&&(C=v.stateNode=OP(v.type,v.pendingProps,jr.current),$a=v,Du=!0,O=fi,uA(v.type)?(D2=O,fi=ku(C.firstChild)):fi=O),Pa(h,v,v.pendingProps.children,_),kd(h,v),h===null&&(v.flags|=4194304),v.child;case 5:return h===null&&Vr&&((O=C=fi)&&(C=Fj(C,v.type,v.pendingProps,Du),C!==null?(v.stateNode=C,$a=v,fi=ku(C.firstChild),Du=!1,O=!0):O=!1),O||Hh(v)),Ft(v),O=v.type,P=v.pendingProps,Z=h!==null?h.memoizedProps:null,C=P.children,A2(O,P)?C=null:Z!==null&&A2(O,Z)&&(v.flags|=32),v.memoizedState!==null&&(O=c1(h,v,$E,null,null,_),aS._currentValue=O),kd(h,v),Pa(h,v,C,_),v.child;case 6:return h===null&&Vr&&((h=_=fi)&&(_=Uj(_,v.pendingProps,Du),_!==null?(v.stateNode=_,$a=v,fi=null,h=!0):h=!1),h||Hh(v)),null;case 13:return LO(h,v,_);case 4:return ht(v,v.stateNode.containerInfo),C=v.pendingProps,h===null?v.child=Ac(v,null,C,_):Pa(h,v,C,_),v.child;case 11:return vB(h,v,v.type,v.pendingProps,_);case 7:return C=v.pendingProps,kd(h,v),Pa(h,v,C,_),v.child;case 8:return Pa(h,v,v.pendingProps.children,_),v.child;case 12:return Pa(h,v,v.pendingProps.children,_),v.child;case 10:return xB(h,v,_);case 9:return O=v.type._context,C=v.pendingProps.children,Kp(v),O=fo(O),C=C(O),v.flags|=1,Pa(h,v,C,_),v.child;case 14:return gB(h,v,v.type,v.pendingProps,_);case 15:return BO(h,v,v.type,v.pendingProps,_);case 19:return I1(h,v,_);case 31:return DO(h,v,_);case 22:return E1(h,v,_,v.pendingProps);case 24:return Kp(v),C=fo(ya),h===null?(O=Ia(),O===null&&(O=ai,P=Mu(),O.pooledCache=P,P.refCount++,P!==null&&(O.pooledCacheLanes|=_),O=P),v.memoizedState={parent:C,cache:O},q0(v),Qh(v,ya,O)):((h.lanes&_)!==0&&(a1(h,v),Zp(v,null,null,_),tw()),O=h.memoizedState,P=v.memoizedState,O.parent!==C?(O={parent:C,cache:C},v.memoizedState=O,v.lanes===0&&(v.memoizedState=v.updateQueue.baseState=O),Qh(v,ya,C)):(C=P.cache,Qh(v,ya,C),C!==O.cache&&QE(v,[ya],_,!0))),Pa(h,v,v.pendingProps.children,_),v.child;case 30:return v.stateNode===null&&(v.stateNode={autoName:null,paired:null,clones:null,ref:null}),C=v.pendingProps,C.name!=null&&C.name!=="auto"?v.flags|=h===null?18882560:18874368:Vr&&qx(v),h!==null&&h.memoizedProps.name!==C.name?v.flags|=4194816:kd(h,v),Pa(h,v,C.children,_),v.child;case 29:throw v.pendingProps}throw Error(n(156,v.tag))}function hf(h){h.flags|=4}function CB(h,v,_,C,O){var P;if((P=(h.mode&32)!==0)&&(P=_===null?bte(v,C):bte(v,C)&&(C.src!==_.src||C.srcSet!==_.srcSet)),P){if(h.flags|=16777216,(O&335544128)===O)if(h.stateNode.complete)h.flags|=8192;else if(X1())h.flags|=8192;else throw $p=sf,Z0}else h.flags&=-16777217}function PO(h,v){if(v.type!=="stylesheet"||(v.state.loading&4)!==0)h.flags&=-16777217;else if(h.flags|=16777216,!xte(v))if(X1())h.flags|=8192;else throw $p=sf,Z0}function O1(h,v){v!==null&&(h.flags|=4),h.flags&16384&&(v=h.tag!==22?Rg():536870912,h.lanes|=v,Cm|=v)}function pw(h,v){if(!Vr)switch(h.tailMode){case"visible":break;case"collapsed":for(var _=h.tail,C=null;_!==null;)_.alternate!==null&&(C=_),_=_.sibling;C===null?v||h.tail===null?h.tail=null:h.tail.sibling=null:C.sibling=null;break;default:for(v=h.tail,_=null;v!==null;)v.alternate!==null&&(_=v),v=v.sibling;_===null?h.tail=null:_.sibling=null}}function di(h){var v=h.alternate!==null&&h.alternate.child===h.child,_=0,C=0;if(v)for(var O=h.child;O!==null;)_|=O.lanes|O.childLanes,C|=O.subtreeFlags&1206910976,C|=O.flags&1206910976,O.return=h,O=O.sibling;else for(O=h.child;O!==null;)_|=O.lanes|O.childLanes,C|=O.subtreeFlags,C|=O.flags,O.return=h,O=O.sibling;return h.subtreeFlags|=C,h.childLanes=_,v}function ij(h,v,_){var C=v.pendingProps;switch(UE(v),v.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return di(v),null;case 1:return di(v),null;case 3:return _=v.stateNode,C=null,h!==null&&(C=h.memoizedState.cache),v.memoizedState.cache!==C&&(v.flags|=2048),Md(ya),At(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(h===null||h.child===null)&&(nm(v)?hf(v):h===null||h.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,Bd())),di(v),null;case 26:var O=v.type,P=v.memoizedState;return h===null?(hf(v),P!==null?(di(v),PO(v,P)):(di(v),CB(v,O,null,C,_))):P?P!==h.memoizedState?(hf(v),di(v),PO(v,P)):(di(v),v.flags&=-16777217):(h=h.memoizedProps,h!==C&&hf(v),di(v),CB(v,O,h,C,_)),null;case 27:if(Yt(v),_=jr.current,O=v.type,h!==null&&v.stateNode!=null)h.memoizedProps!==C&&hf(v);else{if(!C){if(v.stateNode===null)throw Error(n(166));return di(v),v.subtreeFlags&=-33554433,null}h=Jt.current,nm(v)?nO(v):(h=OP(O,C,_),v.stateNode=h,hf(v))}return di(v),v.subtreeFlags&=-33554433,null;case 5:if(Yt(v),O=v.type,h!==null&&v.stateNode!=null)h.memoizedProps!==C&&hf(v);else{if(!C){if(v.stateNode===null)throw Error(n(166));return di(v),v.subtreeFlags&=-33554433,null}if(P=Jt.current,nm(v))nO(v);else{var Z=Mw(jr.current);switch(P){case 1:P=Z.createElementNS("http://www.w3.org/2000/svg",O);break;case 2:P=Z.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;default:switch(O){case"svg":P=Z.createElementNS("http://www.w3.org/2000/svg",O);break;case"math":P=Z.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;case"script":P=Z.createElement("div"),P.innerHTML="<script><\/script>",P=P.removeChild(P.firstChild);break;case"select":P=typeof C.is=="string"?Z.createElement("select",{is:C.is}):Z.createElement("select"),C.multiple?P.multiple=!0:C.size&&(P.size=C.size);break;default:P=typeof C.is=="string"?Z.createElement(O,{is:C.is}):Z.createElement(O)}}P[Ma]=v,P[La]=C;e:for(Z=v.child;Z!==null;){if(Z.tag===5||Z.tag===6)P.appendChild(Z.stateNode);else if(Z.tag!==4&&Z.tag!==27&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===v)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===v)break e;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}v.stateNode=P;e:switch(go(P,O,C),O){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}C&&hf(v)}}return di(v),v.subtreeFlags&=-33554433,CB(v,v.type,h===null?null:h.memoizedProps,v.pendingProps,_),null;case 6:if(h&&v.stateNode!=null)h.memoizedProps!==C&&hf(v);else{if(typeof C!="string"&&v.stateNode===null)throw Error(n(166));if(h=jr.current,nm(v)){if(h=v.stateNode,_=v.memoizedProps,C=null,O=$a,O!==null)switch(O.tag){case 27:case 5:C=O.memoizedProps}h[Ma]=v,h=!!(h.nodeValue===_||C!==null&&C.suppressHydrationWarning===!0||gP(h.nodeValue,_)),h||Hh(v,!0)}else h=Mw(h).createTextNode(C),h[Ma]=v,v.stateNode=h}return di(v),null;case 31:if(_=v.memoizedState,h===null||h.memoizedState!==null){if(C=nm(v),_!==null){if(h===null){if(!C)throw Error(n(318));if(h=v.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(n(557));h[Ma]=v}else Gp(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;di(v),h=!1}else _=Bd(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=_),h=!0;if(!h)return v.flags&256?(kl(v),v):(kl(v),null);if((v.flags&128)!==0)throw Error(n(558))}return di(v),null;case 13:if(C=v.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(O=nm(v),C!==null&&C.dehydrated!==null){if(h===null){if(!O)throw Error(n(318));if(O=v.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(n(317));O[Ma]=v}else Gp(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;di(v),O=!1}else O=Bd(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=O),O=!0;if(!O)return v.flags&256?(kl(v),v):(kl(v),null)}return kl(v),(v.flags&128)!==0?(v.lanes=_,v):(_=C!==null,h=h!==null&&h.memoizedState!==null,_&&(C=v.child,O=null,C.alternate!==null&&C.alternate.memoizedState!==null&&C.alternate.memoizedState.cachePool!==null&&(O=C.alternate.memoizedState.cachePool.pool),P=null,C.memoizedState!==null&&C.memoizedState.cachePool!==null&&(P=C.memoizedState.cachePool.pool),P!==O&&(C.flags|=2048)),_!==h&&_&&(v.child.flags|=8192),O1(v,v.updateQueue),di(v),null);case 4:return At(),h===null&&u2(v.stateNode.containerInfo),v.flags|=67108864,di(v),null;case 10:return Md(v.type),di(v),null;case 19:if(WE(v),C=v.memoizedState,C===null)return di(v),null;if(O=(v.flags&128)!==0,P=C.rendering,P===null)if(O)pw(C,!1);else{if(Zi!==0||h!==null&&(h.flags&128)!==0)for(h=v.child;h!==null;){if(P=u1(h),P!==null){for(v.flags|=128,pw(C,!1),h=P.updateQueue,v.updateQueue=h,O1(v,h),v.subtreeFlags=0,h=_,_=v.child;_!==null;)Xx(_,h),_=_.sibling;return Mr(v,Oa.current&1|2),Vr&&Ed(v,C.treeForkCount),v.child}h=h.sibling}C.tail!==null&&Kt()>xr&&(v.flags|=128,O=!0,pw(C,!1),v.lanes=4194304)}else{if(!O)if(h=u1(P),h!==null){if(v.flags|=128,O=!0,h=h.updateQueue,v.updateQueue=h,O1(v,h),pw(C,!0),C.tail===null&&C.tailMode!=="collapsed"&&C.tailMode!=="visible"&&!P.alternate&&!Vr)return di(v),null}else 2*Kt()-C.renderingStartTime>xr&&_!==536870912&&(v.flags|=128,O=!0,pw(C,!1),v.lanes=4194304);C.isBackwards?(P.sibling=v.child,v.child=P):(h=C.last,h!==null?h.sibling=P:v.child=P,C.last=P)}if(C.tail!==null){h=C.tail;e:{for(_=h;_!==null;){if(_.alternate!==null){_=!1;break e}_=_.sibling}_=!0}return C.rendering=h,C.tail=h.sibling,C.renderingStartTime=Kt(),h.sibling=null,P=Oa.current,P=O?P&1|2:P&1,C.tailMode==="visible"||C.tailMode==="collapsed"||!_||Vr?Mr(v,P):(_=P,Ze(ho,v),Ze(Oa,_),Ao===null&&(Ao=v)),Vr&&Ed(v,C.treeForkCount),h}return di(v),null;case 22:case 23:return kl(v),l1(),C=v.memoizedState!==null,h!==null?h.memoizedState!==null!==C&&(v.flags|=8192):C&&(v.flags|=8192),C?(_&536870912)!==0&&(v.flags&128)===0&&(di(v),v.subtreeFlags&6&&(v.flags|=8192)):di(v),_=v.updateQueue,_!==null&&O1(v,_.retryQueue),_=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),C=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(C=v.memoizedState.cachePool.pool),C!==_&&(v.flags|=2048),h!==null&&ct(Vh),null;case 24:return _=null,h!==null&&(_=h.memoizedState.cache),v.memoizedState.cache!==_&&(v.flags|=2048),Md(ya),di(v),null;case 25:return null;case 30:return v.flags|=33554432,di(v),null}throw Error(n(156,v.tag))}function Ru(h,v){switch(UE(v),v.tag){case 1:return h=v.flags,h&65536?(v.flags=h&-65537|128,v):null;case 3:return Md(ya),At(),h=v.flags,(h&65536)!==0&&(h&128)===0?(v.flags=h&-65537|128,v):null;case 26:case 27:case 5:return Yt(v),null;case 31:if(v.memoizedState!==null){if(kl(v),v.alternate===null)throw Error(n(340));Gp()}return h=v.flags,h&65536?(v.flags=h&-65537|128,v):null;case 13:if(kl(v),h=v.memoizedState,h!==null&&h.dehydrated!==null){if(v.alternate===null)throw Error(n(340));Gp()}return h=v.flags,h&65536?(v.flags=h&-65537|128,v):null;case 19:return WE(v),h=v.flags,h&65536?(v.flags=h&-65537|128,h=v.memoizedState,h!==null&&(h.rendering=null,h.tail=null),v.flags|=4,v):null;case 4:return At(),null;case 10:return Md(v.type),null;case 22:case 23:return kl(v),l1(),h!==null&&ct(Vh),h=v.flags,h&65536?(v.flags=h&-65537|128,v):null;case 24:return Md(ya),null;case 25:return null;default:return null}}function kO(h,v){switch(UE(v),v.tag){case 3:Md(ya),At();break;case 26:case 27:case 5:Yt(v);break;case 4:At();break;case 31:v.memoizedState!==null&&kl(v);break;case 13:kl(v);break;case 19:WE(v);break;case 10:Md(v.type);break;case 22:case 23:kl(v),l1(),h!==null&&ct(Vh);break;case 24:Md(ya)}}function vw(h,v){try{var _=v.updateQueue,C=_!==null?_.lastEffect:null;if(C!==null){var O=C.next;_=O;do{if((_.tag&h)===h){C=void 0;var P=_.create,Z=_.inst;C=P(),Z.destroy=C}_=_.next}while(_!==O)}}catch(oe){zn(v,v.return,oe)}}function Jh(h,v,_){try{var C=v.updateQueue,O=C!==null?C.lastEffect:null;if(O!==null){var P=O.next;C=P;do{if((C.tag&h)===h){var Z=C.inst,oe=Z.destroy;if(oe!==void 0){Z.destroy=void 0,O=v;var Ae=_,De=oe;try{De()}catch(Ue){zn(O,Ae,Ue)}}}C=C.next}while(C!==P)}}catch(Ue){zn(v,v.return,Ue)}}function TB(h){var v=h.updateQueue;if(v!==null){var _=h.stateNode;try{GE(v,_)}catch(C){zn(h,h.return,C)}}}function NO(h,v,_){_.props=la(h.type,h.memoizedProps),_.state=h.memoizedState;try{_.componentWillUnmount()}catch(C){zn(h,v,C)}}function Af(h,v){try{var _=h.ref;if(_!==null){switch(h.tag){case 26:case 27:case 5:var C=h.stateNode;break;case 30:var O=h.stateNode,P=k(h.memoizedProps,O);(O.ref===null||O.ref.name!==P)&&(O.ref=CP(P)),C=O.ref;break;case 7:if(h.stateNode===null){var Z=new hi(h);f(h.child,!1,C2,Z,void 0,void 0),h.stateNode=Z}C=h.stateNode;break;default:C=h.stateNode}typeof _=="function"?h.refCleanup=_(C):_.current=C}}catch(oe){zn(h,v,oe)}}function vo(h,v){var _=h.ref,C=h.refCleanup;if(_!==null)if(typeof C=="function")try{C()}catch(O){zn(h,v,O)}finally{h.refCleanup=null,h=h.alternate,h!=null&&(h.refCleanup=null)}else if(typeof _=="function")try{_(null)}catch(O){zn(h,v,O)}else _.current=null}function P1(h,v){if((h.tag===5||h.tag===27||h.tag===6)&&h.alternate===null&&v!==null)for(var _=0;_<v.length;_++)MP(h.stateNode,v[_])}function k1(h){for(var v=h.return;v!==null&&(BB(v)&&MP(h.stateNode,v.stateNode),!EB(v));)v=v.return}function gw(h){for(var v=h.return;v!==null&&(BB(v)&&Nj(h.stateNode,v.stateNode),!EB(v));)v=v.return}function EB(h){return h.tag===5||h.tag===3||h.tag===27}function BB(h){return h&&h.tag===7&&h.stateNode!==null}function DB(h){var v=h.type,_=h.memoizedProps,C=h.stateNode;try{e:switch(v){case"button":case"input":case"select":case"textarea":_.autoFocus&&C.focus();break e;case"img":_.src?C.src=_.src:_.srcSet&&(C.srcset=_.srcSet)}}catch(O){zn(h,h.return,O)}}function MB(h,v,_){try{var C=h.stateNode;xj(C,h.type,_,v),C[La]=v}catch(O){zn(h,h.return,O)}}function FO(h){return h.tag===5||h.tag===3||h.tag===26||h.tag===27&&uA(h.type)||h.tag===4}function LB(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||FO(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.tag===27&&uA(h.type)||h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function RB(h,v,_,C){var O=h.tag;if(O===5||O===6)O=h.stateNode,v?(_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_).insertBefore(O,v):(v=_.nodeType===9?_.body:_.nodeName==="HTML"?_.ownerDocument.body:_,v.appendChild(O),_=_._reactRootContainer,_!=null||v.onclick!==null||(v.onclick=Bl)),P1(h,C),Fr=!0;else if(O!==4&&(O===27&&(P1(h,C),C=null,uA(h.type)&&(_=h.stateNode,v=null)),h=h.child,h!==null))for(RB(h,v,_,C),h=h.sibling;h!==null;)RB(h,v,_,C),h=h.sibling}function N1(h,v,_,C){var O=h.tag;if(O===5||O===6)O=h.stateNode,v?_.insertBefore(O,v):_.appendChild(O),P1(h,C),Fr=!0;else if(O!==4&&(O===27&&(P1(h,C),C=null,uA(h.type)&&(_=h.stateNode)),h=h.child,h!==null))for(N1(h,v,_,C),h=h.sibling;h!==null;)N1(h,v,_,C),h=h.sibling}function UO(h){var v=h.stateNode,_=h.memoizedProps;try{for(var C=h.type,O=v.attributes;O.length;)v.removeAttributeNode(O[0]);go(v,C,_),v[Ma]=h,v[La]=_}catch(P){zn(h,h.return,P)}}var F1=!1,Ul=null;function HO(h){(h.tag===30||(h.subtreeFlags&33554432)!==0)&&(F1=!0)}var pf=null;function QO(){var h=pf;return pf=null,h}var Xs=0;function mm(h,v,_,C,O){return Xs=0,jO(h.child,v,_,C,O)}function jO(h,v,_,C,O){for(var P=!1;h!==null;){if(h.tag===5){var Z=h.stateNode;if(C!==null){var oe=y2(Z);C.push(oe),oe.view&&(P=!0)}else P||y2(Z).view&&(P=!0);F1=!0,g2(Z,Xs===0?v:v+"_"+Xs,_),Xs++}else(h.tag!==22||h.memoizedState===null)&&(h.tag===30&&O||jO(h.child,v,_,C,O)&&(P=!0));h=h.sibling}return P}function vf(h,v){for(;h!==null;)h.tag===5?m2(h.stateNode,h.memoizedProps):(h.tag!==22||h.memoizedState===null)&&(h.tag===30&&v||vf(h.child,v)),h=h.sibling}function U1(h){if((h.subtreeFlags&18874368)!==0)for(h=h.child;h!==null;){if((h.tag!==22||h.memoizedState===null)&&(U1(h),h.tag===30&&(h.flags&18874368)!==0&&h.stateNode.paired)){var v=h.memoizedProps;if(v.name==null||v.name==="auto")throw Error(n(544));var _=v.name;v=J(v.default,v.share),v!=="none"&&(mm(h,_,v,null,!1)||vf(h.child,!1))}h=h.sibling}}function mw(h,v){if(h.tag===30){var _=h.stateNode,C=h.memoizedProps,O=k(C,_),P=J(C.default,_.paired?C.share:C.enter);P!=="none"?mm(h,O,P,null,!1)?(U1(h),_.paired||v||oi(h,C.onEnter)):vf(h.child,!1):U1(h)}else if((h.subtreeFlags&33554432)!==0)for(h=h.child;h!==null;)mw(h,v),h=h.sibling;else U1(h)}function H1(h){if(Ul!==null&&Ul.size!==0){var v=Ul;if((h.subtreeFlags&18874368)!==0)for(h=h.child;h!==null;){if(h.tag!==22||h.memoizedState===null){if(h.tag===30&&(h.flags&18874368)!==0){var _=h.memoizedProps,C=_.name;if(C!=null&&C!=="auto"){var O=v.get(C);if(O!==void 0){var P=J(_.default,_.share);if(P!=="none"&&(mm(h,C,P,null,!1)?(P=h.stateNode,O.paired=P,P.paired=O,oi(h,_.onShare)):vf(h.child,!1)),v.delete(C),v.size===0)break}}}H1(h)}h=h.sibling}}}function IB(h){if(h.tag===30){var v=h.memoizedProps,_=k(v,h.stateNode),C=Ul!==null?Ul.get(_):void 0,O=J(v.default,C!==void 0?v.share:v.exit);O!=="none"&&(mm(h,_,O,null,!1)?C!==void 0?(O=h.stateNode,C.paired=O,O.paired=C,Ul.delete(_),oi(h,v.onShare)):oi(h,v.onExit):vf(h.child,!1)),Ul!==null&&H1(h)}else if((h.subtreeFlags&33554432)!==0)for(h=h.child;h!==null;)IB(h),h=h.sibling;else Ul!==null&&H1(h)}function zO(h){for(h=h.child;h!==null;){if(h.tag===30){var v=h.memoizedProps,_=k(v,h.stateNode);v=J(v.default,v.update),h.flags&=-5,v!=="none"&&mm(h,_,v,h.memoizedState=[],!1)}else(h.subtreeFlags&33554432)!==0&&zO(h);h=h.sibling}}function OB(h){if((h.subtreeFlags&18874368)!==0)for(h=h.child;h!==null;){if(h.tag!==22||h.memoizedState===null){if(h.tag===30&&(h.flags&18874368)!==0){var v=h.stateNode;v.paired!==null&&(v.paired=null,vf(h.child,!1))}OB(h)}h=h.sibling}}function Q1(h){if(h.tag===30)h.stateNode.paired=null,vf(h.child,!1),OB(h);else if((h.subtreeFlags&33554432)!==0)for(h=h.child;h!==null;)Q1(h),h=h.sibling;else OB(h)}function VO(h){for(h=h.child;h!==null;)h.tag===30?vf(h.child,!1):(h.subtreeFlags&33554432)!==0&&VO(h),h=h.sibling}function PB(h,v,_,C,O,P,Z){for(var oe=!1;v!==null;){if(v.tag===5){var Ae=v.stateNode;if(P!==null&&Xs<P.length){var De=P[Xs],Ue=y2(Ae);(De.view||Ue.view)&&(oe=!0);var We;if(We=(h.flags&4)===0)if(Ue.clip)We=!0;else{We=De.rect;var Te=Ue.rect;We=We.y!==Te.y||We.x!==Te.x||We.height!==Te.height||We.width!==Te.width}We&&(h.flags|=4),Ue.abs?Ue=!De.abs:(De=De.rect,Ue=Ue.rect,Ue=De.height!==Ue.height||De.width!==Ue.width),Ue&&(h.flags|=32)}else h.flags|=32;(h.flags&4)!==0&&g2(Ae,Xs===0?_:_+"_"+Xs,O),oe&&(h.flags&4)!==0||(pf===null&&(pf=[]),pf.push(Ae,Xs===0?C:C+"_"+Xs,v.memoizedProps)),Xs++}else(v.tag!==22||v.memoizedState===null)&&(v.tag===30&&Z?h.flags|=v.flags&32:PB(h,v.child,_,C,O,P,Z)&&(oe=!0));v=v.sibling}return oe}function GO(h,v){for(h=h.child;h!==null;){if(h.tag===30){var _=h.memoizedProps,C=h.stateNode,O=k(_,C),P=J(_.default,_.update),Z;Z=h.memoizedState,h.memoizedState=null,C=h;var oe=h.child;Xs=0,O=PB(C,oe,O,O,P,Z,!1),(h.flags&4)!==0&&O&&oi(h,_.onUpdate)}else(h.subtreeFlags&33554432)!==0&&GO(h);h=h.sibling}}var Za=!1,Ln=!1,gf=!1,ym=!1,KO=typeof WeakSet=="function"?WeakSet:Set,Xa=null,mf=!1,yw=!1,j1=!1,kB=!1;function aj(h,v,_){if(h=h.containerInfo,d2=oS,h=qg(h),Sd(h)){if("selectionStart"in h)var C={start:h.selectionStart,end:h.selectionEnd};else e:{C=(C=h.ownerDocument)&&C.defaultView||window;var O=C.getSelection&&C.getSelection();if(O&&O.rangeCount!==0){C=O.anchorNode;var P=O.anchorOffset,Z=O.focusNode;O=O.focusOffset;try{C.nodeType,Z.nodeType}catch{C=null;break e}var oe=0,Ae=-1,De=-1,Ue=0,We=0,Te=h,Ne=null;t:for(;;){for(var pt;Te!==C||P!==0&&Te.nodeType!==3||(Ae=oe+P),Te!==Z||O!==0&&Te.nodeType!==3||(De=oe+O),Te.nodeType===3&&(oe+=Te.nodeValue.length),(pt=Te.firstChild)!==null;)Ne=Te,Te=pt;for(;;){if(Te===h)break t;if(Ne===C&&++Ue===P&&(Ae=oe),Ne===Z&&++We===O&&(De=oe),(pt=Te.nextSibling)!==null)break;Te=Ne,Ne=Te.parentNode}Te=pt}C=Ae===-1||De===-1?null:{start:Ae,end:De}}else C=null}C=C||{start:0,end:0}}else C=null;for(h2={focusedElem:h,selectionRange:C},oS=!1,_=(_&335544064)===_,Xa=v,v=_?9270:1024;Xa!==null;){if(h=Xa,_&&(C=h.deletions,C!==null))for(P=0;P<C.length;P++)_&&IB(C[P]);if(h.alternate===null&&(h.flags&2)!==0)_&&HO(h),z1(_);else{if(h.tag===22){if(C=h.alternate,h.memoizedState!==null){C!==null&&C.memoizedState===null&&_&&IB(C),z1(_);continue}else if(C!==null&&C.memoizedState!==null){_&&HO(h),z1(_);continue}}C=h.child,(h.subtreeFlags&v)!==0&&C!==null?(C.return=h,Xa=C):(_&&zO(h),z1(_))}}Ul=null}function z1(h){for(;Xa!==null;){var v=Xa,_=h,C=v.alternate,O=v.flags;switch(v.tag){case 0:case 11:case 15:break;case 1:if((O&1024)!==0&&C!==null){_=void 0,O=C.memoizedProps,C=C.memoizedState;var P=v.stateNode;try{var Z=la(v.type,O);_=P.getSnapshotBeforeUpdate(Z,C),P.__reactInternalSnapshotBeforeUpdate=_}catch(oe){zn(v,v.return,oe)}}break;case 3:if((O&1024)!==0){if(C=v.stateNode.containerInfo,_=C.nodeType,_===9)T2(C);else if(_===1)switch(C.nodeName){case"HEAD":case"HTML":case"BODY":T2(C);break;default:C.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:_&&C!==null&&(_=k(C.memoizedProps,C.stateNode),O=v.memoizedProps,O=J(O.default,O.update),O!=="none"&&mm(C,_,O,C.memoizedState=[],!0));break;default:if((O&1024)!==0)throw Error(n(163))}if(C=v.sibling,C!==null){C.return=v.return,Xa=C;break}Xa=v.return}}function WO(h,v,_){var C=_.flags;switch(_.tag){case 0:case 11:case 15:yf(h,_),C&4&&vw(5,_);break;case 1:if(yf(h,_),C&4)if(h=_.stateNode,v===null)try{h.componentDidMount()}catch(Z){zn(_,_.return,Z)}else{var O=la(_.type,v.memoizedProps);v=v.memoizedState;try{h.componentDidUpdate(O,v,h.__reactInternalSnapshotBeforeUpdate)}catch(Z){zn(_,_.return,Z)}}C&64&&TB(_),C&512&&Af(_,_.return);break;case 3:if(yf(h,_),C&64&&(h=_.updateQueue,h!==null)){if(v=null,_.child!==null)switch(_.child.tag){case 27:case 5:v=_.child.stateNode;break;case 1:v=_.child.stateNode}try{GE(h,v)}catch(Z){zn(_,_.return,Z)}}break;case 27:v===null&&C&4&&UO(_);case 26:case 5:yf(h,_),v===null&&C&4&&DB(_),C&512&&Af(_,_.return);break;case 12:yf(h,_);break;case 31:yf(h,_),C&4&&HB(h,_);break;case 13:yf(h,_),C&4&&ZO(h,_),C&64&&(h=_.memoizedState,h!==null&&(h=h.dehydrated,h!==null&&(_=dj.bind(null,_),Hj(h,_))));break;case 22:if(C=_.memoizedState!==null||Za,!C){var P=v!==null&&v.memoizedState!==null||Ln;v=Za,O=Ln,Za=C,(Ln=P)&&!O?(C=2,(_.subtreeFlags&8772)!==0&&(C|=1),mc(h,_,C)):yf(h,_),Za=v,Ln=O}break;case 30:yf(h,_),C&512&&Af(_,_.return);break;case 7:C&512&&Af(_,_.return);default:yf(h,_)}}function NB(h,v){for(h=h.child;h!==null;)YO(h,v),h=h.sibling}function YO(h,v){switch(h.tag){case 5:case 26:try{var _=h.stateNode;if(v){var C=_.style;typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"}else{var O=h.stateNode,P=h.memoizedProps.style,Z=P!=null&&P.hasOwnProperty("display")?P.display:null;O.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Ae){zn(h,h.return,Ae)}FB(h,v);break;case 6:try{h.stateNode.nodeValue=v?"":h.memoizedProps,Fr=!0}catch(Ae){zn(h,h.return,Ae)}break;case 18:try{var oe=h.stateNode;v?tS(oe,!0):tS(h.stateNode,!1)}catch(Ae){zn(h,h.return,Ae)}break;case 22:case 23:h.memoizedState===null&&NB(h,v);break;default:NB(h,v)}}function FB(h,v){if(h.subtreeFlags&67108864)for(h=h.child;h!==null;){e:{var _=h,C=v;switch(_.tag){case 4:YO(_,C);break e;case 22:_.memoizedState===null&&FB(_,C);break e;default:FB(_,C)}}h=h.sibling}}function $O(h){var v=h.alternate;v!==null&&(h.alternate=null,$O(v)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(v=h.stateNode,v!==null&&mu(v)),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}var Bi=null,qs=!1;function gc(h,v,_){for(_=_.child;_!==null;)UB(h,v,_),_=_.sibling}function UB(h,v,_){if(oa&&typeof oa.onCommitFiberUnmount=="function")try{oa.onCommitFiberUnmount(gu,_)}catch{}switch(_.tag){case 26:Ln||vo(_,v),gc(h,v,_),_.memoizedState?_.memoizedState.count--:_.stateNode&&!Ln&&(_=_.stateNode,_.parentNode.removeChild(_));break;case 27:Ln||vo(_,v),gw(_);var C=Bi,O=qs;uA(_.type)&&(Bi=_.stateNode,qs=!1),gc(h,v,_),PP(_.stateNode,_.type,_.memoizedProps),Bi=C,qs=O;break;case 5:Ln||vo(_,v),gw(_);case 6:if(_.tag===6&&gw(_),C=Bi,O=qs,Bi=null,gc(h,v,_),Bi=C,qs=O,Bi!==null)if(qs)try{(Bi.nodeType===9?Bi.body:Bi.nodeName==="HTML"?Bi.ownerDocument.body:Bi).removeChild(_.stateNode),Fr=!0}catch(P){zn(_,v,P)}else try{Bi.removeChild(_.stateNode),Fr=!0}catch(P){zn(_,v,P)}break;case 18:Bi!==null&&(qs?(h=Bi,SP(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,_.stateNode),sS(h)):SP(Bi,_.stateNode));break;case 4:C=Bi,O=qs,Bi=_.stateNode.containerInfo,qs=!0,gc(h,v,_),Bi=C,qs=O;break;case 0:case 11:case 14:case 15:Jh(2,_,v),Ln||Jh(4,_,v),gc(h,v,_);break;case 1:Ln||(vo(_,v),C=_.stateNode,typeof C.componentWillUnmount=="function"&&NO(_,v,C)),gc(h,v,_);break;case 21:gc(h,v,_);break;case 22:Ln=(C=Ln)||_.memoizedState!==null,gc(h,v,_),Ln=C;break;case 30:vo(_,v),gc(h,v,_);break;case 7:Ln||vo(_,v),gc(h,v,_);break;default:gc(h,v,_)}}function HB(h,v){if(v.memoizedState===null&&(h=v.alternate,h!==null&&(h=h.memoizedState,h!==null))){h=h.dehydrated;try{sS(h)}catch(_){zn(v,v.return,_)}}}function ZO(h,v){if(v.memoizedState===null&&(h=v.alternate,h!==null&&(h=h.memoizedState,h!==null&&(h=h.dehydrated,h!==null))))try{sS(h)}catch(_){zn(v,v.return,_)}}function oj(h){switch(h.tag){case 31:case 13:case 19:var v=h.stateNode;return v===null&&(v=h.stateNode=new KO),v;case 22:return h=h.stateNode,v=h._retryCache,v===null&&(v=h._retryCache=new KO),v;default:throw Error(n(435,h.tag))}}function V1(h,v){var _=oj(h);v.forEach(function(C){if(!_.has(C)){_.add(C);var O=hj.bind(null,h,C);C.then(O,O)}})}function hs(h,v,_){var C=v.deletions;if(C!==null)for(var O=0;O<C.length;O++){var P=C[O],Z=h,oe=v,Ae=oe;e:for(;Ae!==null;){switch(Ae.tag){case 27:if(uA(Ae.type)){Bi=Ae.stateNode,qs=!1;break e}break;case 5:Bi=Ae.stateNode,qs=!1;break e;case 3:case 4:Bi=Ae.stateNode.containerInfo,qs=!0;break e}Ae=Ae.return}if(Bi===null)throw Error(n(160));UB(Z,oe,P),Bi=null,qs=!1,Z=P.alternate,Z!==null&&(Z.return=null),P.return=null}if(v.subtreeFlags&13886)for(v=v.child;v!==null;)XO(v,h,_),v=v.sibling}var Js=null;function XO(h,v,_){var C=h.alternate,O=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:if(O&4&&(C=h.updateQueue,C=C!==null?C.events:null,C!==null))for(var P=0;P<C.length;P++){var Z=C[P];Z.ref.impl=Z.nextImpl}hs(v,h,_),As(h),O&4&&(Jh(3,h,h.return),vw(3,h),Jh(5,h,h.return));break;case 1:hs(v,h,_),As(h),O&512&&(Ln||C===null||vo(C,C.return)),O&64&&Za&&(h=h.updateQueue,h!==null&&(v=h.callbacks,v!==null&&(_=h.shared.hiddenCallbacks,h.shared.hiddenCallbacks=_===null?v:_.concat(v))));break;case 26:if(P=Js,hs(v,h,_),As(h),O&512&&(Ln||C===null||vo(C,C.return)),O&4)if(O=C!==null?C.memoizedState:null,_=h.memoizedState,C===null)if(_===null)if(h.stateNode===null)if(Za)h.stateNode=_P(h.type,h.memoizedProps,v.containerInfo,h);else{e:{v=h.type,_=h.memoizedProps,O=P.ownerDocument||P;t:switch(v){case"title":C=O.getElementsByTagName("title")[0],(!C||C[kn]||C[Ma]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=O.createElement(v),O.head.insertBefore(C,O.querySelector("head > title"))),go(C,v,_),C[Ma]=h,mi(C),v=C;break e;case"link":if(P=bf("link","href",O).get(v+(_.href||""))){for(Z=0;Z<P.length;Z++)if(C=P[Z],C.getAttribute("href")===(_.href==null||_.href===""?null:_.href)&&C.getAttribute("rel")===(_.rel==null?null:_.rel)&&C.getAttribute("title")===(_.title==null?null:_.title)&&C.getAttribute("crossorigin")===(_.crossOrigin==null?null:_.crossOrigin)){P.splice(Z,1);break t}}C=O.createElement(v),go(C,v,_),O.head.appendChild(C);break;case"meta":if(P=bf("meta","content",O).get(v+(_.content||""))){for(Z=0;Z<P.length;Z++)if(C=P[Z],C.getAttribute("content")===(_.content==null?null:""+_.content)&&C.getAttribute("name")===(_.name==null?null:_.name)&&C.getAttribute("property")===(_.property==null?null:_.property)&&C.getAttribute("http-equiv")===(_.httpEquiv==null?null:_.httpEquiv)&&C.getAttribute("charset")===(_.charSet==null?null:_.charSet)){P.splice(Z,1);break t}}C=O.createElement(v),go(C,v,_),O.head.appendChild(C);break;default:throw Error(n(468,v))}C[Ma]=h,mi(C),v=C}h.stateNode=v}else Za||iS(P,h.type,h.stateNode);else h.stateNode=tl(P,_,h.memoizedProps);else O!==_?(O===null?(v=C.stateNode,v===null||Ln||v.parentNode.removeChild(v)):O.count--,_===null?Za||iS(P,h.type,h.stateNode):tl(P,_,h.memoizedProps)):_===null&&h.stateNode!==null&&MB(h,h.memoizedProps,C.memoizedProps);break;case 27:hs(v,h,_),As(h),O&512&&(Ln||C===null||vo(C,C.return)),C!==null&&O&4&&MB(h,h.memoizedProps,C.memoizedProps);break;case 5:if(P=gf,gf=!1,hs(v,h,_),gf=P,As(h),O&512&&(Ln||C===null||vo(C,C.return)),h.flags&32){v=h.stateNode;try{Gs(v,""),Fr=!0}catch(Ue){zn(h,h.return,Ue)}}O&4&&h.stateNode!=null&&(v=h.memoizedProps,MB(h,v,C!==null?C.memoizedProps:v)),O&1024&&(ym=!0);break;case 6:if(hs(v,h,_),As(h),O&4){if(h.stateNode===null)throw Error(n(162));v=h.memoizedProps,_=h.stateNode;try{_.nodeValue=v,Fr=!0}catch(Ue){zn(h,h.return,Ue)}}break;case 3:if(Fr=!1,rl=null,P=Js,Js=Lw(v.containerInfo),hs(v,h,_),Js=P,As(h),O&4&&C!==null&&C.memoizedState.isDehydrated)try{sS(v.containerInfo)}catch(Ue){zn(h,h.return,Ue)}ym&&(ym=!1,qO(h)),Fr=!1;break;case 4:O=gf,gf=Za,C=pd(),P=Js,Js=Lw(h.stateNode.containerInfo),hs(v,h,_),As(h),Js=P,Fr&&yw&&(j1=!0),Fr=C,gf=O;break;case 12:hs(v,h,_),As(h);break;case 31:hs(v,h,_),As(h),O&4&&(v=h.updateQueue,v!==null&&(h.updateQueue=null,V1(h,v)));break;case 13:hs(v,h,_),As(h),h.child.flags&8192&&h.memoizedState!==null!=(C!==null&&C.memoizedState!==null)&&(Y1=Kt()),O&4&&(v=h.updateQueue,v!==null&&(h.updateQueue=null,V1(h,v)));break;case 22:P=h.memoizedState!==null,Z=C!==null&&C.memoizedState!==null;var oe=Za,Ae=Ln,De=gf;Za=oe||P,gf=De||P,Ln=Ae||Z,hs(v,h,_),Ln=Ae,gf=De,Za=oe,As(h),O&8192&&(v=h.stateNode,v._visibility=P?v._visibility&-2:v._visibility|1,!P||C===null||Z||Za||Ln||(v=Z||Ln,_=Za,C=Ln,Za=P||Za,Ln=v,eA(h,2),Za=_,Ln=C),!P&&gf||NB(h,P)),O&4&&(v=h.updateQueue,v!==null&&(_=v.retryQueue,_!==null&&(v.retryQueue=null,V1(h,_))));break;case 19:hs(v,h,_),As(h),O&4&&(v=h.updateQueue,v!==null&&(h.updateQueue=null,V1(h,v)));break;case 30:O&512&&(Ln||C===null||vo(C,C.return)),O=pd(),P=yw,Z=(_&335544064)===_,oe=h.memoizedProps,yw=Z&&J(oe.default,oe.update)!=="none",hs(v,h,_),As(h),Z&&C!==null&&Fr&&(h.flags|=4),yw=P,Fr=O;break;case 21:break;case 7:O&512&&(Ln||C===null||vo(C,C.return)),C&&C.stateNode!==null&&(C.stateNode._fragmentFiber=h);default:hs(v,h,_),As(h)}}function As(h){var v=h.flags;if(v&2){try{for(var _,C=h.return;C!==null;){if(FO(C)){_=C;break}C=C.return}C=null;for(var O=h.return;O!==null;){if(BB(O)){var P=O.stateNode;C===null?C=[P]:C.push(P)}if(EB(O))break;O=O.return}var Z=C;if(_==null)throw Error(n(160));switch(_.tag){case 27:var oe=_.stateNode,Ae=LB(h);N1(h,Ae,oe,Z);break;case 5:var De=_.stateNode;_.flags&32&&(Gs(De,""),_.flags&=-33);var Ue=LB(h);N1(h,Ue,De,Z);break;case 3:case 4:var We=_.stateNode.containerInfo,Te=LB(h);RB(h,Te,We,Z);break;default:throw Error(n(161))}}catch(Ne){zn(h,h.return,Ne)}h.flags&=-3}v&4096&&(h.flags&=-4097)}function qO(h){if(h.subtreeFlags&1024)for(h=h.child;h!==null;){var v=h;qO(v),v.tag===5&&v.flags&1024&&(v=v.stateNode,oS=!0,v.reset(),oS=!1),h=h.sibling}}function wm(h,v){if(v.subtreeFlags&9270)for(v=v.child;v!==null;)JO(v,h),v=v.sibling;else GO(v)}function JO(h,v){var _=h.alternate;if(_===null)mw(h,!1);else switch(h.tag){case 3:if(kB=mf=!1,QO(),wm(v,h),!mf&&!j1){if(h=pf,h!==null)for(var C=0;C<h.length;C+=3){_=h[C];var O=h[C+1];m2(_,h[C+2]),_=_.ownerDocument.documentElement,_!==null&&_.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+O+")"})}h=v.containerInfo,h=h.nodeType===9?h.documentElement:h.ownerDocument.documentElement,h!==null&&h.style.viewTransitionName===""&&(h.style.viewTransitionName="none",h.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),h.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),kB=!0}pf=null;break;case 5:wm(v,h);break;case 4:C=mf,mf=!1,wm(v,h),mf&&(j1=!0),mf=C;break;case 22:h.memoizedState===null&&(_.memoizedState!==null?mw(h,!1):wm(v,h));break;case 30:C=mf,O=QO(),mf=!1,wm(v,h),mf&&(h.flags|=4);var P=h.memoizedProps,Z=h.stateNode;v=k(P,Z),Z=k(_.memoizedProps,Z);var oe=J(P.default,P.update);oe==="none"?v=!1:(P=_.memoizedState,_.memoizedState=null,_=h.child,Xs=0,v=PB(h,_,v,Z,oe,P,!0),Xs!==(P===null?0:P.length)&&(h.flags|=32)),(h.flags&4)!==0&&v?(oi(h,h.memoizedProps.onUpdate),pf=O):O!==null&&(O.push.apply(O,pf),pf=O),mf=(h.flags&32)!==0?!0:C;break;default:wm(v,h)}}function yf(h,v){if(v.subtreeFlags&8772)for(v=v.child;v!==null;)WO(h,v.alternate,v),v=v.sibling}function eA(h,v){for(h=h.child;h!==null;){var _=h,C=v;switch(_.tag){case 0:case 11:case 14:case 15:Jh(4,_,_.return),eA(_,C);break;case 1:vo(_,_.return);var O=_.stateNode;typeof O.componentWillUnmount=="function"&&NO(_,_.return,O),eA(_,C);break;case 27:(C&2)!==0&&PP(_.stateNode,_.type,_.memoizedProps);case 5:vo(_,_.return),_.tag!==5&&_.tag!==27||gw(_),eA(_,C);break;case 6:gw(_);break;case 26:vo(_,_.return),O=_.stateNode,_.memoizedState!==null||O===null||Ln||O.parentNode.removeChild(O),eA(_,C);break;case 22:_.memoizedState===null&&eA(_,C);break;case 30:vo(_,_.return),eA(_,C);break;case 7:vo(_,_.return);default:eA(_,C)}h=h.sibling}}function mc(h,v,_){for(_=(v.subtreeFlags&8772)!==0?_:_&-2,v=v.child;v!==null;){var C=v.alternate,O=h,P=v,Z=P.flags,oe=(_&1)!==0;switch(P.tag){case 0:case 11:case 15:mc(O,P,_),vw(4,P);break;case 1:if(mc(O,P,_),C=P,O=C.stateNode,typeof O.componentDidMount=="function")try{O.componentDidMount()}catch(Ue){zn(C,C.return,Ue)}if(C=P,O=C.updateQueue,O!==null){var Ae=C.stateNode;try{var De=O.shared.hiddenCallbacks;if(De!==null)for(O.shared.hiddenCallbacks=null,O=0;O<De.length;O++)VE(De[O],Ae)}catch(Ue){zn(C,C.return,Ue)}}oe&&Z&64&&TB(P),Af(P,P.return);break;case 27:(_&2)!==0&&UO(P);case 5:P.tag!==5&&P.tag!==27||k1(P),mc(O,P,_),oe&&C===null&&Z&4&&DB(P),Af(P,P.return);break;case 6:k1(P);break;case 26:Ae=P.stateNode,P.memoizedState!==null||Ae===null||Za||iS(Lw(Ae.ownerDocument),P.type,Ae),mc(O,P,_),oe&&C===null&&Z&4&&DB(P),Af(P,P.return);break;case 12:mc(O,P,_);break;case 31:mc(O,P,_),oe&&Z&4&&HB(O,P);break;case 13:mc(O,P,_),oe&&Z&4&&ZO(O,P);break;case 22:P.memoizedState===null&&mc(O,P,_),Af(P,P.return);break;case 30:mc(O,P,_),Af(P,P.return);break;case 7:Af(P,P.return);default:mc(O,P,_)}v=v.sibling}}function QB(h,v){var _=null;h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),h=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(h=v.memoizedState.cachePool.pool),h!==_&&(h!=null&&h.refCount++,_!=null&&Wp(_))}function jB(h,v){h=null,v.alternate!==null&&(h=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==h&&(v.refCount++,h!=null&&Wp(h))}function Iu(h,v,_,C){var O=(_&335544064)===_;if(v.subtreeFlags&(O?10262:10256))for(v=v.child;v!==null;)ww(h,v,_,C),v=v.sibling;else O&&VO(v)}function ww(h,v,_,C){var O=(_&335544064)===_;O&&v.alternate===null&&v.return!==null&&v.return.alternate!==null&&Q1(v);var P=v.flags;switch(v.tag){case 0:case 11:case 15:Iu(h,v,_,C),P&2048&&vw(9,v);break;case 1:Iu(h,v,_,C);break;case 3:Iu(h,v,_,C),O&&kB&&(h=h.containerInfo,h=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,h.style.viewTransitionName==="root"&&(h.style.viewTransitionName=""),h=h.ownerDocument.documentElement,h!==null&&h.style.viewTransitionName==="none"&&(h.style.viewTransitionName="")),P&2048&&(P=null,v.alternate!==null&&(P=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==P&&(v.refCount++,P!=null&&Wp(P)));break;case 12:if(P&2048){Iu(h,v,_,C),P=v.stateNode;try{var Z=v.memoizedProps,oe=Z.id,Ae=Z.onPostCommit;typeof Ae=="function"&&Ae(oe,v.alternate===null?"mount":"update",P.passiveEffectDuration,-0)}catch(De){zn(v,v.return,De)}}else Iu(h,v,_,C);break;case 31:Iu(h,v,_,C);break;case 13:Iu(h,v,_,C);break;case 23:break;case 22:Z=v.stateNode,oe=v.alternate,v.memoizedState!==null?(O&&oe!==null&&oe.memoizedState===null&&Q1(oe),Z._visibility&2?Iu(h,v,_,C):bm(h,v)):(O&&oe!==null&&oe.memoizedState!==null&&Q1(v),Z._visibility&2?Iu(h,v,_,C):(Z._visibility|=2,_m(h,v,_,C,(v.subtreeFlags&10256)!==0||!1))),P&2048&&QB(oe,v);break;case 24:Iu(h,v,_,C),P&2048&&jB(v.alternate,v);break;case 30:O&&(P=v.alternate,P!==null&&(vf(P.child,!0),vf(v.child,!0))),Iu(h,v,_,C);break;default:Iu(h,v,_,C)}}function _m(h,v,_,C,O){for(O=O&&((v.subtreeFlags&10256)!==0||!1),v=v.child;v!==null;){var P=h,Z=v,oe=_,Ae=C,De=Z.flags;switch(Z.tag){case 0:case 11:case 15:_m(P,Z,oe,Ae,O),vw(8,Z);break;case 23:break;case 22:var Ue=Z.stateNode;Z.memoizedState!==null?Ue._visibility&2?_m(P,Z,oe,Ae,O):bm(P,Z):(Ue._visibility|=2,_m(P,Z,oe,Ae,O)),O&&De&2048&&QB(Z.alternate,Z);break;case 24:_m(P,Z,oe,Ae,O),O&&De&2048&&jB(Z.alternate,Z);break;default:_m(P,Z,oe,Ae,O)}v=v.sibling}}function bm(h,v){if(v.subtreeFlags&10256)for(v=v.child;v!==null;){var _=h,C=v,O=C.flags;switch(C.tag){case 22:bm(_,C),O&2048&&QB(C.alternate,C);break;case 24:bm(_,C),O&2048&&jB(C.alternate,C);break;default:bm(_,C)}v=v.sibling}}var tA=8192;function Nd(h,v,_){if(h.subtreeFlags&tA)for(h=h.child;h!==null;)zB(h,v,_),h=h.sibling}function zB(h,v,_){switch(h.tag){case 26:Nd(h,v,_),h.flags&tA&&(h.memoizedState!==null?kIe(_,Js,h.memoizedState,h.memoizedProps):(h=h.stateNode,(v&335544128)===v&&Cte(_,h)));break;case 5:Nd(h,v,_),h.flags&tA&&(h=h.stateNode,(v&335544128)===v&&Cte(_,h));break;case 3:case 4:var C=Js;Js=Lw(h.stateNode.containerInfo),Nd(h,v,_),Js=C;break;case 22:h.memoizedState===null&&(C=h.alternate,C!==null&&C.memoizedState!==null?(C=tA,tA=16777216,Nd(h,v,_),tA=C):Nd(h,v,_));break;case 30:if((h.flags&tA)!==0&&(C=h.memoizedProps.name,C!=null&&C!=="auto")){var O=h.stateNode;O.paired=null,Ul===null&&(Ul=new Map),Ul.set(C,O)}Nd(h,v,_);break;default:Nd(h,v,_)}}function VB(h){var v=h.alternate;if(v!==null&&(h=v.child,h!==null)){v.child=null;do v=h.sibling,h.sibling=null,h=v;while(h!==null)}}function xm(h){var v=h.deletions;if((h.flags&16)!==0){if(v!==null)for(var _=0;_<v.length;_++){var C=v[_];Xa=C,eP(C,h)}VB(h)}if(h.subtreeFlags&10256)for(h=h.child;h!==null;)GB(h),h=h.sibling}function GB(h){switch(h.tag){case 0:case 11:case 15:xm(h),h.flags&2048&&Jh(9,h,h.return);break;case 3:xm(h);break;case 12:xm(h);break;case 22:var v=h.stateNode;h.memoizedState!==null&&v._visibility&2&&(h.return===null||h.return.tag!==13)?(v._visibility&=-3,G1(h)):xm(h);break;default:xm(h)}}function G1(h){var v=h.deletions;if((h.flags&16)!==0){if(v!==null)for(var _=0;_<v.length;_++){var C=v[_];Xa=C,eP(C,h)}VB(h)}for(h=h.child;h!==null;){switch(v=h,v.tag){case 0:case 11:case 15:Jh(8,v,v.return),G1(v);break;case 22:_=v.stateNode,_._visibility&2&&(_._visibility&=-3,G1(v));break;default:G1(v)}h=h.sibling}}function eP(h,v){for(;Xa!==null;){var _=Xa;switch(_.tag){case 0:case 11:case 15:Jh(8,_,v);break;case 23:case 22:if(_.memoizedState!==null&&_.memoizedState.cachePool!==null){var C=_.memoizedState.cachePool.pool;C!=null&&C.refCount++}break;case 24:Wp(_.memoizedState.cache)}if(C=_.child,C!==null)C.return=_,Xa=C;else e:for(_=h;Xa!==null;){C=Xa;var O=C.sibling,P=C.return;if($O(C),C===_){Xa=null;break e}if(O!==null){O.return=P,Xa=O;break e}Xa=P}}}var sj={getCacheForType:function(h){var v=fo(ya),_=v.data.get(h);return _===void 0&&(_=h(),v.data.set(h,_)),_},cacheSignal:function(){return fo(ya).controller.signal}},K1=typeof WeakMap=="function"?WeakMap:Map,hn=0,ai=null,en=null,Zr=0,Pn=0,Hl=null,rA=!1,Sm=!1,KB=!1,Fd=0,Zi=0,nA=0,av=0,W1=0,Ql=0,Cm=0,_w=null,Di=null,WB=!1,Y1=0,iA=0,xr=1/0,$1=null,ua=null,Rr=0,yc=null,el=null,wf=0,YB=0,$B=null,tP=null,Tm=null,aA=null,Em=null,jl=0,bw=null;function Ho(){return(hn&2)!==0&&Zr!==0?Zr&-Zr:Re.T!==null?n2():Tp()}function Mi(){if(Ql===0)if((Zr&536870912)===0||Vr){var h=bp;bp<<=1,(bp&3932160)===0&&(bp=262144),Ql=h}else Ql=536870912;return h=ho.current,h!==null&&(h.flags|=32),Ql}function oi(h,v){if(v!=null){var _=h.stateNode,C=_.ref;C===null&&(C=_.ref=CP(k(h.memoizedProps,_))),aA===null&&(aA=[]),aA.push(v.bind(null,C))}}function ps(h,v,_){(h===ai&&(Pn===2||Pn===9)||h.cancelPendingCommit!==null)&&(ov(h,0),oA(h,Zr,Ql,!1)),Cp(h,_),((hn&2)===0||h!==ai)&&(h===ai&&((hn&2)===0&&(av|=_),Zi===4&&oA(h,Zr,Ql,!1)),Pu(h))}function rP(h,v,_){if((hn&6)!==0)throw Error(n(327));var C=!_&&(v&127)===0&&(v&h.expiredLanes)===0||Zc(h,v),O=C?uj(h,v):vs(h,v,!0),P=C;do{if(O===0){Sm&&!C&&oA(h,v,0,!1);break}else{if(_=h.current.alternate,P&&!lj(_)){O=vs(h,v,!1),P=!1;continue}if(O===2){if(P=v,h.errorRecoveryDisabledLanes&P)var Z=0;else Z=h.pendingLanes&-536870913,Z=Z!==0?Z:Z&536870912?536870912:0;if(Z!==0){v=Z;e:{var oe=h;O=_w;var Ae=oe.current.memoizedState.isDehydrated;if(Ae&&(ov(oe,Z).flags|=256),Z=vs(oe,Z,!1),Z!==2&&Z!==6){if(KB&&!Ae){oe.errorRecoveryDisabledLanes|=P,av|=P,O=4;break e}P=Di,Di=O,P!==null&&(Di===null?Di=P:Di.push.apply(Di,P))}O=Z}if(P=!1,O!==2)continue}}if(O===1){ov(h,0),oA(h,v,0,!0);break}e:{switch(C=h,P=O,P){case 0:case 1:throw Error(n(345));case 4:if((v&4194048)!==v&&(v&62914560)!==v)break;case 6:oA(C,v,Ql,!rA);break e;case 2:Di=null;break;case 3:case 5:break;default:throw Error(n(329))}if((v&62914560)===v&&(O=Y1+300-Kt(),10<O)){if(oA(C,v,Ql,!rA),Sp(C,0,!0)!==0)break e;wf=v,C.timeoutHandle=v2(nP.bind(null,C,_,Di,$1,WB,v,Ql,av,Cm,rA,P,"Throttled",-0,0),O);break e}nP(C,_,Di,$1,WB,v,Ql,av,Cm,rA,P,null,-0,0)}}break}while(!0);Pu(h)}function nP(h,v,_,C,O,P,Z,oe,Ae,De,Ue,We,Te,Ne){h.timeoutHandle=-1;var pt=v.subtreeFlags,Ut=(P&335544064)===P;if(We=null,(Ut||pt&8192||(pt&16785408)===16785408)&&(We={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bl},Ul=null,zB(v,P,We),Ut&&(pt=We,Ut=h.containerInfo,Ut=(Ut.nodeType===9?Ut:Ut.ownerDocument).__reactViewTransition,Ut!=null&&(pt.count++,pt.waitingForViewTransition=!0,pt=L2.bind(pt),Ut.finished.then(pt,pt))),pt=(P&62914560)===P?Y1-Kt():(P&4194048)===P?iA-Kt():0,pt=NIe(We,pt),pt!==null)){wf=P,h.cancelPendingCommit=pt(Pr.bind(null,h,v,P,_,C,O,Z,oe,Ae,De,Ue,We,null,Te,Ne)),oA(h,P,Z,!De);return}Pr(h,v,P,_,C,O,Z,oe,Ae,De,Ue,We)}function lj(h){for(var v=h;;){var _=v.tag;if((_===0||_===11||_===15)&&v.flags&16384&&(_=v.updateQueue,_!==null&&(_=_.stores,_!==null)))for(var C=0;C<_.length;C++){var O=_[C],P=O.getSnapshot;O=O.value;try{if(!ls(P(),O))return!1}catch{return!1}}if(_=v.child,v.subtreeFlags&16384&&_!==null)_.return=v,v=_;else{if(v===h)break;for(;v.sibling===null;){if(v.return===null||v.return===h)return!0;v=v.return}v.sibling.return=v.return,v=v.sibling}}return!0}function oA(h,v,_,C){v=L0(h,v),v&=~W1,v&=~av,h.suspendedLanes|=v,h.pingedLanes&=~v,C&&(h.warmLanes|=v),C=h.expirationTimes;for(var O=v;0<O;){var P=31-ts(O),Z=1<<P;C[P]=-1,O&=~Z}_!==0&&Hx(h,_,v)}function Z1(){return(hn&6)===0?(Ew(0),!1):!0}function ZB(){if(en!==null){if(Pn===0)var h=en.return;else h=en,Dd=co=null,ow(h),Gh=null,X0=0,h=en;for(;h!==null;)kO(h.alternate,h),h=h.return;en=null}}function ov(h,v){var _=h.timeoutHandle;return _!==-1&&(h.timeoutHandle=-1,Tj(_)),_=h.cancelPendingCommit,_!==null&&(h.cancelPendingCommit=null,_()),wf=0,ZB(),ai=h,en=_=fc(h.current,null),Zr=v,Pn=0,Hl=null,rA=!1,Sm=Zc(h,v),KB=!1,Cm=Ql=W1=av=nA=Zi=0,Di=_w=null,WB=!1,Fd=L0(h,v),Xe(),_}function Bm(h,v){Lr=null,Re.H=x1,v===cs||v===Yp?(v=lO(),Pn=3):v===Z0?(v=lO(),Pn=4):Pn=v===pB?8:v!==null&&typeof v=="object"&&typeof v.then=="function"?6:1,Hl=v,en===null&&(Zi=1,T1(h,se(v,h.current)))}function X1(){var h=ho.current;return h===null?!0:(Zr&4194048)===Zr?Ao===null:(Zr&62914560)===Zr||(Zr&536870912)!==0?h===Ao:!1}function iP(){var h=Re.H;return Re.H=x1,h===null?x1:h}function XB(){var h=Re.A;return Re.A=sj,h}function sv(){Zi=4,rA||(Zr&4194048)!==Zr&&ho.current!==null||(Sm=!0),(nA&134217727)===0&&(av&134217727)===0||ai===null||oA(ai,Zr,Ql,!1)}function vs(h,v,_){var C=hn;hn|=2;var O=iP(),P=XB();(ai!==h||Zr!==v)&&($1=null,ov(h,v)),v=!1;var Z=Zi;e:do try{if(Pn!==0&&en!==null){var oe=en,Ae=Hl;switch(Pn){case 8:ZB(),Z=6;break e;case 3:case 2:case 9:case 6:ho.current===null&&(v=!0);var De=Pn;if(Pn=0,Hl=null,Mm(h,oe,Ae,De),_&&Sm){Z=0;break e}break;default:De=Pn,Pn=0,Hl=null,Mm(h,oe,Ae,De)}}Dm(),Z=Zi;break}catch(Ue){Bm(h,Ue)}while(!0);return v&&h.shellSuspendCounter++,Dd=co=null,hn=C,Re.H=O,Re.A=P,en===null&&(ai=null,Zr=0,Xe()),Z}function Dm(){for(;en!==null;)aP(en)}function uj(h,v){var _=hn;hn|=2;var C=iP(),O=XB();ai!==h||Zr!==v?($1=null,xr=Kt()+500,ov(h,v)):Sm=Zc(h,v);e:do try{if(Pn!==0&&en!==null){v=en;var P=Hl;t:switch(Pn){case 1:Pn=0,Hl=null,Mm(h,v,P,1);break;case 2:case 9:if(zE(P)){Pn=0,Hl=null,oP(v);break}v=function(){Pn!==2&&Pn!==9||ai!==h||(Pn=7),Pu(h)},P.then(v,v);break e;case 3:Pn=7;break e;case 4:Pn=5;break e;case 7:zE(P)?(Pn=0,Hl=null,oP(v)):(Pn=0,Hl=null,Mm(h,v,P,7));break;case 5:var Z=null;switch(en.tag){case 26:Z=en.memoizedState;case 5:case 27:var oe=en;if(Z?xte(Z):oe.stateNode.complete){Pn=0,Hl=null;var Ae=oe.sibling;if(Ae!==null)en=Ae;else{var De=oe.return;De!==null?(en=De,xw(De)):en=null}break t}}Pn=0,Hl=null,Mm(h,v,P,5);break;case 6:Pn=0,Hl=null,Mm(h,v,P,6);break;case 8:ZB(),Zi=6;break e;default:throw Error(n(462))}}cj();break}catch(Ue){Bm(h,Ue)}while(!0);return Dd=co=null,Re.H=C,Re.A=O,hn=_,en!==null?0:(ai=null,Zr=0,Xe(),Zi)}function cj(){for(;en!==null&&!vu();)aP(en)}function aP(h){var v=OO(h.alternate,h,Fd);h.memoizedProps=h.pendingProps,v===null?xw(h):en=v}function oP(h){var v=h,_=v.alternate;switch(v.tag){case 15:case 0:v=Lu(_,v,v.pendingProps,v.type,void 0,Zr);break;case 11:v=Lu(_,v,v.pendingProps,v.type.render,v.ref,Zr);break;case 5:ow(v);var C=v;C===$a&&(Vr?(Jx(C),C.tag===5&&C.stateNode!=null&&(fi=C.stateNode)):(Jx(C),Vr=!0));default:kO(_,v),v=en=Xx(v,Fd),v=OO(_,v,Fd)}h.memoizedProps=h.pendingProps,v===null?xw(h):en=v}function Mm(h,v,_,C){Dd=co=null,ow(v),Gh=null,X0=0;var O=v.return;try{if(tj(h,O,v,_,Zr)){Zi=1,T1(h,se(_,h.current)),en=null;return}}catch(P){if(O!==null)throw en=O,P;Zi=1,T1(h,se(_,h.current)),en=null;return}v.flags&32768?(Vr||C===1?h=!0:Sm||(Zr&536870912)!==0?h=!1:(rA=h=!0,(C===2||C===9||C===3||C===6)&&(C=ho.current,C!==null&&C.tag===13&&(C.flags|=16384))),_f(v,h)):xw(v)}function xw(h){var v=h;do{if((v.flags&32768)!==0){_f(v,rA);return}h=v.return;var _=ij(v.alternate,v,Fd);if(_!==null){en=_;return}if(v=v.sibling,v!==null){en=v;return}en=v=h}while(v!==null);Zi===0&&(Zi=5)}function _f(h,v){do{var _=Ru(h.alternate,h);if(_!==null){_.flags&=32767,en=_;return}if(_=h.return,_!==null&&(_.flags|=32768,_.subtreeFlags=0,_.deletions=null),!v&&(h=h.sibling,h!==null)){en=h;return}en=h=_}while(h!==null);Zi=6,en=null}function Pr(h,v,_,C,O,P,Z,oe,Ae,De,Ue,We){h.cancelPendingCommit=null;do Sw();while(Rr!==0);if((hn&6)!==0)throw Error(n(327));if(v!==null){if(v===h.current)throw Error(n(177));h===ai&&(en=ai=null,Zr=0),el=v,yc=h,wf=_,$B=O,tP=C,sP(h,v,_,Z,oe,Ae,We)}}function sP(h,v,_,C,O,P,Z){var oe=v.lanes|v.childLanes;if(YB=oe,oe|=Qe,RE(h,_,oe,C,O,P),aA=null,(_&335544064)===_?(Em=ej(h),C=10262):(Em=null,C=10256),(v.subtreeFlags&C)!==0||(v.flags&C)!==0?(h.callbackNode=null,h.callbackPriority=0,Aj(aa,function(){return Cw(),null})):(h.callbackNode=null,h.callbackPriority=0),F1=!1,C=(v.flags&13878)!==0,(v.subtreeFlags&13878)!==0||C){C=Re.T,Re.T=null,O=Se.p,Se.p=2,P=hn,hn|=4;try{aj(h,v,_)}finally{hn=P,Se.p=O,Re.T=C}}Rr=1,F1?Tm=Lj(Z,h.containerInfo,Em,qB,Cn,lP,JB,Cw,Ou):(qB(),Cn(),JB())}function Ou(h){if(Rr!==0){var v=yc.onRecoverableError;v(h,{componentStack:null})}}function lP(){Rr===3&&(Rr=0,JO(el,yc),Rr=4)}function qB(){if(Rr===1){Rr=0;var h=yc,v=el,_=wf,C=(v.flags&13878)!==0;if((v.subtreeFlags&13878)!==0||C){C=Re.T,Re.T=null;var O=Se.p;Se.p=2;var P=hn;hn|=4;try{yw=j1=!1,XO(v,h,_),_=h2;var Z=qg(h.containerInfo),oe=_.focusedElem,Ae=_.selectionRange;if(Z!==oe&&oe&&oe.ownerDocument&&xd(oe.ownerDocument.documentElement,oe)){if(Ae!==null&&Sd(oe)){var De=Ae.start,Ue=Ae.end;if(Ue===void 0&&(Ue=De),"selectionStart"in oe)oe.selectionStart=De,oe.selectionEnd=Math.min(Ue,oe.value.length);else{var We=oe.ownerDocument||document,Te=We&&We.defaultView||window;if(Te.getSelection){var Ne=Te.getSelection(),pt=oe.textContent.length,Ut=Math.min(Ae.start,pt),Qr=Ae.end===void 0?Ut:Math.min(Ae.end,pt);!Ne.extend&&Ut>Qr&&(Z=Qr,Qr=Ut,Ut=Z);var Be=yn(oe,Ut),ye=yn(oe,Qr);if(Be&&ye&&(Ne.rangeCount!==1||Ne.anchorNode!==Be.node||Ne.anchorOffset!==Be.offset||Ne.focusNode!==ye.node||Ne.focusOffset!==ye.offset)){var ke=We.createRange();ke.setStart(Be.node,Be.offset),Ne.removeAllRanges(),Ut>Qr?(Ne.addRange(ke),Ne.extend(ye.node,ye.offset)):(ke.setEnd(ye.node,ye.offset),Ne.addRange(ke))}}}}for(We=[],Ne=oe;Ne=Ne.parentNode;)Ne.nodeType===1&&We.push({element:Ne,left:Ne.scrollLeft,top:Ne.scrollTop});for(typeof oe.focus=="function"&&oe.focus(),oe=0;oe<We.length;oe++){var Ke=We[oe];Ke.element.scrollLeft=Ke.left,Ke.element.scrollTop=Ke.top}}oS=!!d2,h2=d2=null}finally{hn=P,Se.p=O,Re.T=C}}h.current=v,Rr=2}}function Cn(){if(Rr===2){Rr=0;var h=yc,v=el,_=(v.flags&8772)!==0;if((v.subtreeFlags&8772)!==0||_){_=Re.T,Re.T=null;var C=Se.p;Se.p=2;var O=hn;hn|=4;try{WO(h,v.alternate,v)}finally{hn=O,Se.p=C,Re.T=_}}Rr=3}}function JB(){if(Rr===4||Rr===3){Rr=0;var h=Tm;Tm=null,_p();var v=yc,_=el,C=wf,O=tP,P=(C&335544064)===C?10262:10256;if((_.subtreeFlags&P)!==0||(_.flags&P)!==0?Rr=5:(Rr=0,el=yc=null,e2(v,v.pendingLanes)),P=v.pendingLanes,P===0&&(ua=null),O0(C),_=_.stateNode,oa&&typeof oa.onCommitFiberRoot=="function")try{oa.onCommitFiberRoot(gu,_,void 0,(_.current.flags&128)===128)}catch{}if(O!==null){_=Re.T,P=Se.p,Se.p=2,Re.T=null;try{for(var Z=v.onRecoverableError,oe=0;oe<O.length;oe++){var Ae=O[oe];Z(Ae.value,{componentStack:Ae.stack})}}finally{Re.T=_,Se.p=P}}if(O=aA,Z=Em,Em=null,O!==null&&(aA=null,Z===null&&(Z=[]),h!==null))for(Ae=0;Ae<O.length;Ae++)_=(0,O[Ae])(Z),_!==void 0&&h.finished.finally(_);(wf&3)!==0&&Sw(),Pu(v),P=v.pendingLanes,(C&261930)!==0&&(P&42)!==0?v===bw?jl++:(jl=0,bw=v):(jl=0,bw=null),Ew(0)}}function e2(h,v){(h.pooledCacheLanes&=v)===0&&(v=h.pooledCache,v!=null&&(h.pooledCache=null,Wp(v)))}function Sw(){return Tm!==null&&(Tm.skipTransition(),Tm=null),qB(),Cn(),JB(),Cw()}function Cw(){if(Rr!==5)return!1;var h=yc,v=YB;YB=0;var _=O0(wf),C=Re.T,O=Se.p;try{Se.p=32>_?32:_,Re.T=null,_=$B,$B=null;var P=yc,Z=wf;if(Rr=0,el=yc=null,wf=0,(hn&6)!==0)throw Error(n(331));var oe=hn;if(hn|=4,GB(P.current),ww(P,P.current,Z,_),hn=oe,Ew(0,!1),oa&&typeof oa.onPostCommitFiberRoot=="function")try{oa.onPostCommitFiberRoot(gu,P)}catch{}return!0}finally{Se.p=O,Re.T=C,e2(h,v)}}function uP(h,v,_){v=se(_,v),v=iv(h.stateNode,v,2),h=$h(h,v,2),h!==null&&(Cp(h,2),Pu(h))}function zn(h,v,_){if(h.tag===3)uP(h,h,_);else for(;v!==null;){if(v.tag===3){uP(v,h,_);break}else if(v.tag===1){var C=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(ua===null||!ua.has(C))){h=se(_,h),_=hB(2),C=$h(v,_,2),C!==null&&(AB(_,C,v,h),Cp(C,2),Pu(C));break}}v=v.return}}function t2(h,v,_){var C=h.pingCache;if(C===null){C=h.pingCache=new K1;var O=new Set;C.set(v,O)}else O=C.get(v),O===void 0&&(O=new Set,C.set(v,O));O.has(_)||(KB=!0,O.add(_),h=fj.bind(null,h,v,_),v.then(h,h))}function fj(h,v,_){var C=h.pingCache;C!==null&&C.delete(v),h.pingedLanes|=h.suspendedLanes&_,h.warmLanes&=~_,ai===h&&(Zr&_)===_&&((Zi===4||Zi===3&&(Zr&62914560)===Zr&&300>Kt()-Y1)&&(hn&2)===0?ov(h,0):W1|=_,Cm===Zr&&(Cm=0)),Pu(h)}function cP(h,v){v===0&&(v=Rg()),h=ur(h,v),h!==null&&(Cp(h,v),Pu(h))}function dj(h){var v=h.memoizedState,_=0;v!==null&&(_=v.retryLane),cP(h,_)}function hj(h,v){var _=0;switch(h.tag){case 31:case 13:var C=h.stateNode,O=h.memoizedState;O!==null&&(_=O.retryLane);break;case 19:C=h.stateNode;break;case 22:C=h.stateNode._retryCache;break;default:throw Error(n(314))}C!==null&&C.delete(v),cP(h,_)}function Aj(h,v){return Wc(h,v)}var Lm=null,Rm=null,r2=!1,q1=!1,Tw=!1,sA=0;function Pu(h){h!==Rm&&h.next===null&&(Rm===null?Lm=Rm=h:Rm=Rm.next=h),q1=!0,r2||(r2=!0,vj())}function Ew(h,v){if(!Tw&&q1){Tw=!0;do for(var _=!1,C=Lm;C!==null;){if(h!==0){var O=C.pendingLanes;if(O===0)var P=0;else{var Z=C.suspendedLanes,oe=C.pingedLanes;P=(1<<31-ts(42|h)+1)-1,P&=O&~(Z&~oe),P=P&201326741?P&201326741|1:P?P|2:0}P!==0&&(_=!0,dP(C,P))}else P=Zr,P=Sp(C,C===ai?P:0,C.cancelPendingCommit!==null||C.timeoutHandle!==-1),(P&3)===0||Zc(C,P)||(_=!0,dP(C,P));C=C.next}while(_);Tw=!1}}function pj(){fP()}function fP(){q1=r2=!1;var h=0;sA!==0&&Cj()&&(h=sA);for(var v=Kt(),_=null,C=Lm;C!==null;){var O=C.next,P=ka(C,v);P===0?(C.next=null,_===null?Lm=O:_.next=O,O===null&&(Rm=_)):(_=C,(h!==0||(P&3)!==0)&&(q1=!0)),C=O}Rr!==0&&Rr!==5||Ew(h),sA!==0&&(sA=0)}function ka(h,v){for(var _=h.suspendedLanes,C=h.pingedLanes,O=h.expirationTimes,P=h.pendingLanes&-62914561;0<P;){var Z=31-ts(P),oe=1<<Z,Ae=O[Z];Ae===-1?((oe&_)===0||(oe&C)!==0)&&(O[Z]=Eh(oe,v)):Ae<=v&&(h.expiredLanes|=oe),P&=~oe}if(v=ai,_=Zr,_=Sp(h,h===v?_:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),C=h.callbackNode,_===0||h===v&&(Pn===2||Pn===9)||h.cancelPendingCommit!==null)return C!==null&&C!==null&&hd(C),h.callbackNode=null,h.callbackPriority=0;if((_&3)===0||Zc(h,_)){if(v=_&-_,v===h.callbackPriority)return v;switch(C!==null&&hd(C),O0(_)){case 2:case 8:_=Yr;break;case 32:_=aa;break;case 268435456:_=Lg;break;default:_=aa}return C=gs.bind(null,h),_=Wc(_,C),h.callbackPriority=v,h.callbackNode=_,v}return C!==null&&C!==null&&hd(C),h.callbackPriority=2,h.callbackNode=null,2}function gs(h,v){if(Rr!==0&&Rr!==5)return h.callbackNode=null,h.callbackPriority=0,null;var _=h.callbackNode;if(Sw()&&h.callbackNode!==_)return null;var C=Zr;return C=Sp(h,h===ai?C:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),C===0?null:(rP(h,C,v),ka(h,Kt()),h.callbackNode!=null&&h.callbackNode===_?gs.bind(null,h):null)}function dP(h,v){if(Sw())return null;rP(h,v,!0)}function vj(){Ej(function(){(hn&6)!==0?Wc(ar,pj):fP()})}
vendor: 5,762 bytes, line 8
8function n2(){if(sA===0){var h=hc;h===0&&(h=Qt,Qt<<=1,(Qt&261888)===0&&(Qt=256)),sA=h}return sA}function i2(h){return h==null||typeof h=="symbol"||typeof h=="boolean"?null:typeof h=="function"?h:Fg(h)}function gj(h,v,_,C,O){if(v==="submit"&&_&&_.stateNode===O){var P=i2((O[La]||null).action),Z=C.submitter;Z&&(v=(v=Z[La]||null)?i2(v.formAction):Z.getAttribute("formAction"),v!==null&&(P=v,Z=null));var oe=new Op("action","action",null,C,O);h.push({event:oe,listeners:[{instance:null,listener:function(){if(C.defaultPrevented){if(sA!==0){var Ae=new FormData(O,Z);fw(_,{pending:!0,data:Ae,method:O.method,action:P},null,Ae)}}else typeof P=="function"&&(oe.preventDefault(),Ae=new FormData(O,Z),fw(_,{pending:!0,data:Ae,method:O.method,action:P},P,Ae))},currentTarget:O}]})}}for(var a2=0;a2<Nh.length;a2++){var o2=Nh[a2],hP=o2.toLowerCase(),mj=o2[0].toUpperCase()+o2.slice(1);w(hP,"on"+mj)}w(tm,"onAnimationEnd"),w(Cd,"onAnimationIteration"),w(cc,"onAnimationStart"),w("dblclick","onDoubleClick"),w("focusin","onFocus"),w("focusout","onBlur"),w(zp,"onTransitionRun"),w(Zx,"onTransitionStart"),w(FE,"onTransitionCancel"),w(K0,"onTransitionEnd"),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bw="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bw));function s2(h,v){v=(v&4)!==0;for(var _=0;_<h.length;_++){var C=h[_],O=C.event;C=C.listeners;e:{var P=void 0;if(v)for(var Z=C.length-1;0<=Z;Z--){var oe=C[Z],Ae=oe.instance,De=oe.currentTarget;if(oe=oe.listener,Ae!==P&&O.isPropagationStopped())break e;P=oe,O.currentTarget=De;try{P(O)}catch(Ue){ie(Ue)}O.currentTarget=null,P=Ae}else for(Z=0;Z<C.length;Z++){if(oe=C[Z],Ae=oe.instance,De=oe.currentTarget,oe=oe.listener,Ae!==P&&O.isPropagationStopped())break e;P=oe,O.currentTarget=De;try{P(O)}catch(Ue){ie(Ue)}O.currentTarget=null,P=Ae}}}}function Xr(h,v){var _=v[Ig];_===void 0&&(_=v[Ig]=new Set);var C=h+"__bubble";_.has(C)||(AP(v,h,2,!1),_.add(C))}function l2(h,v,_){var C=0;v&&(C|=4),AP(_,h,C,v)}var J1="_reactListening"+Math.random().toString(36).slice(2);function u2(h){if(!h[J1]){h[J1]=!0,ns.forEach(function(_){_!=="selectionchange"&&(yj.has(_)||l2(_,!1,h),l2(_,!0,h))});var v=h.nodeType===9?h:h.ownerDocument;v===null||v[J1]||(v[J1]=!0,l2("selectionchange",!1,v))}}function AP(h,v,_,C){switch(Ite(v)){case 2:var O=QIe;break;case 8:O=jIe;break;default:O=Vj}_=O.bind(null,v,_,h),O=void 0,!md||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||(O=!0),C?O!==void 0?h.addEventListener(v,_,{capture:!0,passive:O}):h.addEventListener(v,_,!0):O!==void 0?h.addEventListener(v,_,{passive:O}):h.addEventListener(v,_,!1)}function lA(h,v,_,C,O){var P=C;if((v&1)===0&&(v&2)===0&&C!==null)e:for(;;){if(C===null)return;var Z=C.tag;if(Z===3||Z===4){var oe=C.stateNode.containerInfo;if(oe===O)break;if(Z===4)for(Z=C.return;Z!==null;){var Ae=Z.tag;if((Ae===3||Ae===4)&&Z.stateNode.containerInfo===O)return;Z=Z.return}for(;oe!==null;){if(Z=rs(oe),Z===null)return;if(Ae=Z.tag,Ae===5||Ae===6||Ae===26||Ae===27){C=P=Z;continue e}oe=oe.parentNode}}C=C.return}ef(function(){var De=P,Ue=N0(_),We=[];e:{var Te=kh.get(h);if(Te!==void 0){var Ne=Op,pt=h;switch(h){case"keypress":if(Ip(_)===0)break e;case"keydown":case"keyup":Ne=Kg;break;case"focusin":pt="focus",Ne=Qg;break;case"focusout":pt="blur",Ne=Qg;break;case"beforeblur":case"afterblur":Ne=Qg;break;case"click":if(_.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ne=Hg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ne=U0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ne=Wx;break;case tm:case Cd:case cc:Ne=tf;break;case K0:Ne=PE;break;case"scroll":case"scrollend":Ne=bu;break;case"wheel":Ne=Yx;break;case"copy":case"cut":case"paste":Ne=xu;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ne=as;break;case"submit":Ne=V0;break;case"toggle":case"beforetoggle":Ne=kE}var Ut=(v&4)!==0,Qr=!Ut&&(h==="scroll"||h==="scrollend"),Be=Ut?Te!==null?Te+"Capture":null:Te;Ut=[];for(var ye=De,ke;ye!==null;){var Ke=ye;if(ke=Ke.stateNode,Ke=Ke.tag,Ke!==5&&Ke!==26&&Ke!==27||ke===null||Be===null||(Ke=Ks(ye,Be),Ke!=null&&Ut.push(Dw(ye,Ke,ke))),Qr)break;ye=ye.return}0<Ut.length&&(Te=new Ne(Te,pt,null,_,Ue),We.push({event:Te,listeners:Ut}))}}if((v&7)===0){e:{if(Ne=h==="mouseover"||h==="pointerover",Te=h==="mouseout"||h==="pointerout",Ne&&_!==Mp&&(pt=_.relatedTarget||_.fromElement)&&(rs(pt)||pt[Tl]))break e;(Te||Ne)&&(pt=Ue.window===Ue?Ue:(Ne=Ue.ownerDocument)?Ne.defaultView||Ne.parentWindow:window,Te?(Ne=_.relatedTarget||_.toElement,Te=De,Ne=Ne?rs(Ne):null,Ne!==null&&(Qr=a(Ne),Ut=Ne.tag,Ne!==Qr||Ut
vendor: 5,738 bytes, lines 8-9
8!==5&&Ut!==27&&Ut!==6)&&(Ne=null)):(Te=null,Ne=De),Te!==Ne&&(Ut=Hg,Ke="onMouseLeave",Be="onMouseEnter",ye="mouse",(h==="pointerout"||h==="pointerover")&&(Ut=as,Ke="onPointerLeave",Be="onPointerEnter",ye="pointer"),Qr=Te==null?pt:br(Te),ke=Ne==null?pt:br(Ne),pt=new Ut(Ke,ye+"leave",Te,_,Ue),pt.target=Qr,pt.relatedTarget=ke,Ke=null,rs(Ue)===De&&(Ut=new Ut(Be,ye+"enter",Ne,_,Ue),Ut.target=ke,Ut.relatedTarget=Qr,Ke=Ut),Qr=Ke,Ut=Te&&Ne?R(Te,Ne,wj):null,Te!==null&&pP(We,pt,Te,Ut,!1),Ne!==null&&Qr!==null&&pP(We,Qr,Ne,Ut,!0)))}e:{if(Te=De?br(De):window,Ne=Te.nodeName&&Te.nodeName.toLowerCase(),Ne==="select"||Ne==="input"&&Te.type==="file")var Ot=Ce;else if(Hp(Te))if(Ge)Ot=Zs;else{Ot=$s;var An=Qn}else Ne=Te.nodeName,!Ne||Ne.toLowerCase()!=="input"||Te.type!=="checkbox"&&Te.type!=="radio"?De&&fn(De.elementType)&&(Ot=Ce):Ot=Xg;if(Ot&&(Ot=Ot(h,De))){$g(We,Ot,_,Ue);break e}An&&An(h,Te,De)}switch(An=De?br(De):window,h){case"focusin":(Hp(An)||An.contentEditable==="true")&&(Po=An,Jg=De,uc=null);break;case"focusout":uc=Jg=Po=null;break;case"mousedown":ko=!0;break;case"contextmenu":case"mouseup":case"dragend":ko=!1,Qp(We,_,Ue);break;case"selectionchange":if(NE)break;case"keydown":case"keyup":Qp(We,_,Ue)}var Zt;if(Oh)e:{switch(h){case"compositionstart":var Ar="onCompositionStart";break e;case"compositionend":Ar="onCompositionEnd";break e;case"compositionupdate":Ar="onCompositionUpdate";break e}Ar=void 0}else Oo?_d(h,_)&&(Ar="onCompositionEnd"):h==="keydown"&&_.keyCode===229&&(Ar="onCompositionStart");Ar&&(G0&&_.locale!=="ko"&&(Oo||Ar!=="onCompositionStart"?Ar==="onCompositionEnd"&&Oo&&(Zt=Rp()):(_u=Ue,Ug="value"in _u?_u.value:_u.textContent,Oo=!0)),An=eS(De,Ar),0<An.length&&(Ar=new Vg(Ar,h,null,_,Ue),We.push({event:Ar,listeners:An}),Zt?Ar.data=Zt:(Zt=$x(_),Zt!==null&&(Ar.data=Zt)))),(Zt=Fp?sc(h,_):Ys(h,_))&&(Ar=eS(De,"onBeforeInput"),0<Ar.length&&(An=new Vg("onBeforeInput","beforeinput",null,_,Ue),We.push({event:An,listeners:Ar}),An.data=Zt)),gj(We,h,De,_,Ue)}s2(We,v)})}function Dw(h,v,_){return{instance:h,listener:v,currentTarget:_}}function eS(h,v){for(var _=v+"Capture",C=[];h!==null;){var O=h,P=O.stateNode;if(O=O.tag,O!==5&&O!==26&&O!==27||P===null||(O=Ks(h,_),O!=null&&C.unshift(Dw(h,O,P)),O=Ks(h,v),O!=null&&C.push(Dw(h,O,P))),h.tag===3)return C;h=h.return}return[]}function wj(h){if(h===null)return null;do h=h.return;while(h&&h.tag!==5&&h.tag!==27);return h||null}function pP(h,v,_,C,O){for(var P=v._reactName,Z=[];_!==null&&_!==C;){var oe=_,Ae=oe.alternate,De=oe.stateNode;if(oe=oe.tag,Ae!==null&&Ae===C)break;oe!==5&&oe!==26&&oe!==27||De===null||(Ae=De,O?(De=Ks(_,P),De!=null&&Z.unshift(Dw(_,De,Ae))):O||(De=Ks(_,P),De!=null&&Z.push(Dw(_,De,Ae)))),_=_.return}Z.length!==0&&h.push({event:v,listeners:Z})}var _j=/\r\n?/g,vP=/\u0000|\uFFFD/g;function c2(h){return(typeof h=="string"?h:""+h).replace(_j,`
9`).replace(vP,"")}function gP(h,v){return v=c2(v),c2(h)===v}function Vn(h,v,_,C,O,P){switch(_){case"children":if(typeof C=="string")v==="body"||v==="textarea"&&C===""||Gs(h,C);else if(typeof C=="number"||typeof C=="bigint")v!=="body"&&Gs(h,""+C);else return;break;case"className":Dh(h,"class",C);break;case"tabIndex":Dh(h,"tabindex",C);break;case"dir":case"role":case"viewBox":case"width":case"height":Dh(h,_,C);break;case"style":pa(h,C,P);return;case"data":if(v!=="object"){Dh(h,"data",C);break}case"src":case"href":if(C===""&&(v!=="a"||_!=="href")){h.removeAttribute(_);break}if(C==null||typeof C=="function"||typeof C=="symbol"||typeof C=="boolean"){h.removeAttribute(_);break}C=Fg(C),h.setAttribute(_,C);break;case"action":case"formAction":if(typeof C=="function"){h.setAttribute(_,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof P=="function"&&(_==="formAction"?(v!=="input"&&Vn(h,v,"name",O.name,O,null),Vn(h,v,"formEncType",O.formEncType,O,null),Vn(h,v,"formMethod",O.formMethod,O,null),Vn(h,v,"formTarget",O.formTarget,O,null)):(Vn(h,v,"encType",O.encType,O,null),Vn(h,v,"method",O.method,O,null),Vn(h,v,"target",O.target,O,null)));if(C==null||typeof C=="symbol"||typeof C=="boolean"){h.removeAttribute(_);break}C=Fg(C),h.setAttribute(_,C);break;case"onClick":C!=null&&(h.onclick=Bl);return;case"onScroll":C!=null&&Xr("scroll",h);return;case"onScrollEnd":C!=null&&Xr("scrollend",h);return;case"dangerouslySetInnerHTML":if(C!=null){if(typeof C!="object"||!("__html"in C))throw Error(n(61));if(_=C.__html,_!=null){if(O.children!=null)throw Error(n(60));P?.__html!==_&&(h.innerHTML=_)}}break;case"multiple":h.multiple=C&&typeof C!="function"&&typeof C!="symbol";break;case"muted":h.muted=C&&typeof C!="function"&&typeof C!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(C==null||typeof C=="function"||typeof C=="boolean"||typeof C=="symbol"){h.removeAttribute("xlink:href");break}_=Fg(C),h.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",_);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":C!=null&&typeof C!="function"&&typeof C!="symbol"?h.setAttribute(_,C):h.removeAttribute(_);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":C&&typeof C!="function"&&typeof C!="symbol"?h.setAttribute(_,""):h.removeAttribute(_);break;case"capture":case"download":C===!0?h.setAttribute(_,""):C!==!1&&C!=null&&typeof C!="function"&&typeof C!="symbol"?h.setAttribute(_,C):h.removeAttribute(_);break;case"cols":case"rows":case"size":case"span":C!=null&&typeof C!="function"&&typeof C!="symbol"&&!isNaN(C)&&1<=C?h.setAttribute(_,C):h.removeAttribute(_);break;case"rowSpan":case"start":C==null||typeof C=="function"||typeof C=="symbol"||isNaN(C)?h.removeAttribute(_):h.setAttribute(_,C);break;case"popover":Xr("beforetoggle",h),Xr("toggle",h),vd(h,"popover",C);break;case"xlinkActuate":is(h,"http://www.w3.org/1999/xlink","xlink:actuate",C);break;case"xlinkArcrole":is(h,"http://www.w3.org/1999/xlink","xlink:arcrole",C);break;case"xlinkRole":is(h,"http://www.w3.org/1999/xlink","xlink:role",C);break;case"xlinkShow":is(h,"http://www.w3.org/1999/xlink","xlink:show",C);break;case"xlinkTitle":is(h,"http://www.w3.org/1999/xlink","xlink:title",C);break;case"xlinkType":is(h,"http://www.w3.org/1999/xlink","xlink:type",C);break;case"xmlBase":is(h,"http://www.w3.org/XML/1998/namespace","xml:base",C);break;case"xmlLang":is(h,"http://www.w3.org/XML/1998/namespace","xml:lang",C);break;case"xmlSpace":is(h,"http://www.w3.org/XML/1998/namespace","xml:space",C);break;case"is":vd(h,"is",C);break;case"innerText":case"textContent":return;default:if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N")_=Un.get(_)||_,vd(h,_,C);else return}Fr=!0}function f2(h,v,_,C,O,P){switch(_){case"style":pa(h,C,P);return;case"dangerouslySetInnerHTML":if(C!=null){if(typeof C!="object"||!("__html"in C))throw Error(n(61));if(_=C.__html,_!=null){if(O.children!=null)throw Error(n(60));P?.__html!==_&&(h.innerHTML=_)}}break;case"children":if(typeof C=="string")Gs(h,C);else if(typeof C=="number"||typeof C=="bigint")Gs(h,""+C);else return;break;case"onScroll":C!=null&&Xr("scroll",h);return;case"onScrollEnd":C!=null&&Xr("scrollend",h);return;case"onClick":C!=null&&(h.onclick=Bl);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!P0.hasOwnProperty(_))e:{if(_[0]==="o"&&_[1]==="n"&&(O=_.endsWith("Capture"),P=_.slice(2,O?_.length-7:void 0),v=h[La]||null,v=v!=null?v[_]:null,typeof v=="function"&&h.removeEventListener(P,v,O),typeof C=="function")){typeof v!="function"&&v!==null&&(_ in h?h[_]=null:h.hasAttribute(_)&&h.removeAttribute(_)),h.addEventListener(P,C,O);break e}Fr=!0,_ in h?h[_]=C:C===!0?h.setAttribute(_,""):vd(h,_,C)}return}Fr=!0}function go(h,v,_){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xr("error",h),Xr("load",h);var C=!1,O=!1,P;for(P in _)if(_.hasOwnProperty(P)){var Z=_[P];if(Z!=null)switch(P){case"src":C=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,v));default:Vn(h,v,P,Z,_,null)}}O&&Vn(h,v,"srcSet",_.srcSet,_,null),C&&Vn(h,v,"src",_.src,_,null);return;case"input":Xr("invalid",h);var oe=P=Z=O=null,Ae=null,De=null;for(C in _)if(_.hasOwnProperty(C)){var Ue=_[C];if(Ue!=null)switch(C){case"name":O=Ue;break;case"type":Z=Ue;break;case"checked":Ae=Ue;break;case"defaultChecked":De=Ue;break;case"value":P=Ue;break;case"defaultValue":oe=Ue;break;case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(n(137,v));break;default:Vn(h,v,C,Ue,_,null)}}Fn(h,P,oe,Ae,De,Z,O,!1);return;case"select":Xr("invalid",h),C=Z=P=null;for(O in _)if(_.hasOwnProperty(O)&&(oe=_[O],oe!=null))switch(O){case"value":P=oe;break;case"defaultValue":Z=oe;break;case"multiple":C=oe;default:Vn(h,v,O,oe,_,null)}v=P,_=Z,h.multiple=!!C,v!=null?Jc(h,!!C,v,!1):_!=null&&Jc(h,!!C,_,!0);return;case"textarea":Xr("invalid",h),P=O=C=null;for(Z in _)if(_.hasOwnProperty(Z)&&(oe=_[Z],oe!=null))switch(Z){case"value":C=oe;break;case"defaultValue":O=oe;break;case"children":P=oe;break;case"dangerouslySetInnerHTML":if(oe!=null)throw Error(n(91));break;default:Vn(h,v,Z,oe,_,null)}Ng(h,C,O,P);return;case"option":for(Ae in _)_.hasOwnProperty(Ae)&&(C=_[Ae],C!=null)&&(Ae==="selected"?h.selected=C&&typeof C!="function"&&typeof C!="symbol":Vn(h,v,Ae,C,_,null));return;case"dialog":Xr("beforetoggle",h),Xr("toggle",h),Xr("cancel",h),Xr("close",h);break;case"iframe":case"object":Xr("load",h);break;case"video":case"audio":for(C=0;C<Bw.length;C++)Xr(Bw[C],h);break;case"image":Xr("error",h),Xr("load",h);break;case"details":Xr("toggle",h);break;case"embed":case"source":case"link":Xr("error",h),Xr("load",h);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(De in _)if(_.hasOwnProperty(De)&&(C=_[De],C!=null))switch(De){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,v));default:Vn(h,v,De,C,_,null)}return;default:if(fn(v)){for(Ue in _)_.hasOwnProperty(Ue)&&(C=_[Ue],C!==void 0&&f2(h,v,Ue,C,_,void 0));return}}for(oe in _)_.hasOwnProperty(oe)&&(C=_[oe],C!=null&&Vn(h,v,oe,C,_,null))}var bj={};function xj(h,v,_,C){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,P=null,Z=null,oe=null,Ae=null,De=null,Ue=null;for(Ne in _){var We=_[Ne];if(_.hasOwnProperty(Ne)&&We!=null)switch(Ne){case"checked":break;case"value":break;case"defaultValue":Ae=We;default:C.hasOwnProperty(Ne)||Vn(h,v,Ne,null,C,We)}}for(var Te in C){var Ne=C[Te];if(We=_[Te],C.hasOwnProperty(Te)&&(Ne!=null||We!=null))switch(Te){case"type":Ne!==We&&(Fr=!0),P=Ne;break;case"name":Ne!==We&&(Fr=!0),O=Ne;break;case"checked":Ne!==We&&(Fr=!0),De=Ne;break;case"defaultChecked":Ne!==We&&(Fr=!0),Ue=Ne;break;case"value":Ne!==We&&(Fr=!0),Z=Ne;break;case"defaultValue":Ne!==We&&(Fr=!0),oe=Ne;break;case"children":case"dangerouslySetInnerHTML":if(Ne!=null)throw Error(n(137,v));break;default:Ne!==We&&Vn(h,v,Te,Ne,C,We)}}Vs(h,Z,oe,Ae,De,Ue,P,O);return;case"select":Ne=Z=oe=Te=null;for(P in _)if(Ae=_[P],_.hasOwnProperty(P)&&Ae!=null)switch(P){case"value":break;case"multiple":Ne=Ae;default:C.hasOwnProperty(P)||Vn(h,v,P,null,C,Ae)}for(O in C)if(P=C[O],Ae=_[O],C.hasOwnProperty(O)&&(P!=null||Ae!=null))switch(O){case"value":P!==Ae&&(Fr=!0),Te=P;break;case"defaultValue":P!==Ae&&(Fr=!0),oe=P;break;case"multiple":P!==Ae&&(Fr=!0),Z=P;default:P!==Ae&&Vn(h,v,O,P,C,Ae)}v=oe,_=Z,C=Ne,Te!=null?Jc(h,!!_,Te,!1):!!C!=!!_&&(v!=null?Jc(h,!!_,v,!0):Jc(h,!!_,_?[]:"",!1));return;case"textarea":Ne=Te=null;for(oe in _)if(O=_[oe],_.hasOwnProperty(oe)&&O!=null&&!C.hasOwnProperty(oe))switch(oe){case"value":break;case"children":break;default:Vn(h,v,oe,null,C,O)}for(Z in C)if(O=C[Z],P=_[Z],C.hasOwnProperty(Z)&&(O!=null||P!=null))switch(Z){case"value":O!==P&&(Fr=!0),Te=O;break;case"defaultValue":O!==P&&(Fr=!0),Ne=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(n(91));break;default:O!==P&&Vn(h,v,Z,O,C,P)}Mh(h,Te,Ne);return;case"option":for(var pt in _)Te=_[pt],_.hasOwnProperty(pt)&&Te!=null&&!C.hasOwnProperty(pt)&&(pt==="selected"?h.selected=!1:Vn(h,v,pt,null,C,Te));for(Ae in C)Te=C[Ae],Ne=_[Ae],C.hasOwnProperty(Ae)&&Te!==Ne&&(Te!=null||Ne!=null)&&(Ae==="selected"?(Te!==Ne&&(Fr=!0),h.selected=Te&&typeof Te!="function"&&typeof Te!="symbol"):Vn(h,v,Ae,Te,C,Ne));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ut in _)Te=_[Ut],_.hasOwnProperty(Ut)&&Te!=null&&!C.hasOwnProperty(Ut)&&Vn(h,v,Ut,null,C,Te);for(De in C)if(Te=C[De],Ne=_[De],C.hasOwnProperty(De)&&Te!==Ne&&(Te!=null||Ne!=null))switch(De){case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(n(137,v));break;default:Vn(h,v,De,Te,C,Ne)}return;default:if(fn(v)){for(var Qr in _)Te=_[Qr],_.hasOwnProperty(Qr)&&Te!==void 0&&!C.hasOwnProperty(Qr)&&f2(h,v,Qr,void 0,C,Te);for(Ue in C)Te=C[Ue],Ne=_[Ue],!C.hasOwnProperty(Ue)||Te===Ne||Te===void 0&&Ne===void 0||f2(h,v,Ue,Te,C,Ne);return}}for(var Be in _)Te=_[Be],_.hasOwnProperty(Be)&&Te!=null&&!C.hasOwnProperty(Be)&&Vn(h,v,Be,null,C,Te);for(We in C)Te=C[We],Ne=_[We],!C.hasOwnProperty(We)||Te===Ne||Te==null&&Ne==null||Vn(h,v,We,Te,C,Ne)}function mP(h){switch(h){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sj(){if(typeof performance.getEntriesByType=="function"){for(var h=0,v=0,_=performance.getEntriesByType("resource"),C=0;C<_.length;C++){var O=_[C],P=O.transferSize,Z=O.initiatorType,oe=O.duration;if(P&&oe&&mP(Z)){for(Z=0,oe=O.responseEnd,C+=1;C<_.length;C++){var Ae=_[C],De=Ae.startTime;if(De>oe)break;var Ue=Ae.transferSize,We=Ae.initiatorType;Ue&&mP(We)&&(Ae=Ae.responseEnd,Z+=Ue*(Ae<oe?1:(oe-De)/(Ae-De)))}if(--C,v+=8*(P+Z)/(O.duration/1e3),h++,10<h)break}}if(0<h)return v/h/1e6}return navigator.connection&&(h=navigator.connection.downlink,typeof h=="number")?h:5}var d2=null,h2=null;function Mw(h){return h.nodeType===9?h:h.ownerDocument}function yP(h){switch(h){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wP(h,v){if(h===0)switch(v){case"svg":return 1;case"math":return 2;default:return 0}return h===1&&v==="foreignObject"?0:h}function _P(h,v,_,C){return _=Mw(_).createElement(h),_[Ma]=C,_[La]=v,go(_,h,v),mi(_),_}function A2(h,v){return h==="textarea"||h==="noscript"||typeof v.children=="string"||typeof v.children=="number"||typeof v.children=="bigint"||typeof v.dangerouslySetInnerHTML=="object"&&v.dangerouslySetInnerHTML!==null&&v.dangerouslySetInnerHTML.__html!=null}var p2=null;function Cj(){var h=window.event;return h&&h.type==="popstate"?h===p2?!1:(p2=h,!0):(p2=null,!1)}var v2=typeof setTimeout=="function"?setTimeout:void 0,Tj=typeof clearTimeout=="function"?clearTimeout:void 0,bP=typeof Promise=="function"?Promise:void 0,xP=typeof requestAnimationFrame=="function"?requestAnimationFrame:v2,Ej=typeof queueMicrotask=="function"?queueMicrotask:typeof bP<"u"?function(h){return bP.resolve(null).then(h).catch(Bj)}:v2;function Bj(h){setTimeout(function(){throw h})}function uA(h){return h==="head"}function SP(h,v){var _=v,C=0;do{var O=_.nextSibling;if(h.removeChild(_),O&&O.nodeType===8)if(_=O.data,_==="/$"||_==="/&"){if(C===0){h.removeChild(O),sS(v);return}C--}else if(_==="$"||_==="$?"||_==="$~"||_==="$!"||_==="&")C++;
vendor: 13,323 bytes, line 9
9else if(_==="html")M2(h.ownerDocument.documentElement);else if(_==="head"){_=h.ownerDocument.head,M2(_);for(var P=_.firstChild;P;){var Z=P.nextSibling,oe=P.nodeName;P[kn]||oe==="SCRIPT"||oe==="STYLE"||oe==="LINK"&&P.rel.toLowerCase()==="stylesheet"||_.removeChild(P),P=Z}}else _==="body"&&M2(h.ownerDocument.body);_=O}while(_);sS(v)}function tS(h,v){var _=h;h=0;do{var C=_.nextSibling;if(_.nodeType===1?v?(_._stashedDisplay=_.style.display,_.style.display="none"):(_.style.display=_._stashedDisplay||"",_.getAttribute("style")===""&&_.removeAttribute("style")):_.nodeType===3&&(v?(_._stashedText=_.nodeValue,_.nodeValue=""):_.nodeValue=_._stashedText||""),C&&C.nodeType===8)if(_=C.data,_==="/$"){if(h===0)break;h--}else _!=="$"&&_!=="$?"&&_!=="$~"&&_!=="$!"||h++;_=C}while(_)}function g2(h,v,_){if(v=CSS.escape(v)!==v?"r-"+btoa(v).replace(/=/g,""):v,h.style.viewTransitionName=v,_!=null&&(h.style.viewTransitionClass=_),_=getComputedStyle(h),_.display==="inline"){if(v=h.getClientRects(),v.length===1)var C=1;else for(var O=C=0;O<v.length;O++){var P=v[O];0<P.width&&0<P.height&&C++}C===1&&(h=h.style,h.display=v.length===1?"inline-block":"block",h.marginTop="-"+_.paddingTop,h.marginBottom="-"+_.paddingBottom)}}function m2(h,v){h=h.style,v=v.style;var _=v!=null?v.hasOwnProperty("viewTransitionName")?v.viewTransitionName:v.hasOwnProperty("view-transition-name")?v["view-transition-name"]:null:null;h.viewTransitionName=_==null||typeof _=="boolean"?"":(""+_).trim(),_=v!=null?v.hasOwnProperty("viewTransitionClass")?v.viewTransitionClass:v.hasOwnProperty("view-transition-class")?v["view-transition-class"]:null:null,h.viewTransitionClass=_==null||typeof _=="boolean"?"":(""+_).trim(),h.display==="inline-block"&&(v==null?h.display=h.margin="":(_=v.display,h.display=_==null||typeof _=="boolean"?"":_,_=v.margin,_!=null?h.margin=_:(_=v.hasOwnProperty("marginTop")?v.marginTop:v["margin-top"],h.marginTop=_==null||typeof _=="boolean"?"":_,v=v.hasOwnProperty("marginBottom")?v.marginBottom:v["margin-bottom"],h.marginBottom=v==null||typeof v=="boolean"?"":v)))}function Dj(h,v,_){return _=_.ownerDocument.defaultView,{rect:h,abs:v.position==="absolute"||v.position==="fixed",clip:v.clipPath!=="none"||v.overflow!=="visible"||v.filter!=="none"||v.mask!=="none"||v.mask!=="none"||v.borderRadius!=="0px",view:0<=h.bottom&&0<=h.right&&h.top<=_.innerHeight&&h.left<=_.innerWidth}}function y2(h){var v=h.getBoundingClientRect(),_=getComputedStyle(h);return Dj(v,_,h)}function Mj(h){return h.documentElement.clientHeight}function w2(h){this.addEventListener("load",h),this.addEventListener("error",h)}function Lj(h,v,_,C,O,P,Z,oe,Ae){var De=v.nodeType===9?v:v.ownerDocument;try{var Ue=De.startViewTransition({update:function(){var Te=De.defaultView,Ne=Te.navigation&&Te.navigation.transition,pt=De.fonts.status;C();var Ut=[];if(pt==="loaded"&&(Mj(De),De.fonts.status==="loading"&&Ut.push(De.fonts.ready)),pt=Ut.length,h!==null)for(var Qr=h.suspenseyImages,Be=0,ye=0;ye<Qr.length;ye++){var ke=Qr[ye];if(!ke.complete){var Ke=ke.getBoundingClientRect();if(0<Ke.bottom&&0<Ke.right&&Ke.top<Te.innerHeight&&Ke.left<Te.innerWidth){if(Be+=Ste(ke),Be>NP){Ut.length=pt;break}ke=new Promise(w2.bind(ke)),Ut.push(ke)}}}if(0<Ut.length)return Te=Promise.race([Promise.all(Ut),new Promise(function(Ot){return setTimeout(Ot,500)})]).then(O,O),(Ne?Promise.allSettled([Ne.finished,Te]):Te).then(P,P);if(O(),Ne)return Ne.finished.then(P,P);P()},types:_});De.__reactViewTransition=Ue;var We=[];return Ue.ready.then(function(){for(var Te=De.documentElement.getAnimations({subtree:!0}),Ne=0;Ne<Te.length;Ne++){var pt=Te[Ne],Ut=pt.effect,Qr=Ut.pseudoElement;if(Qr!=null&&Qr.startsWith("::view-transition")){We.push(pt),pt=Ut.getKeyframes();for(var Be=Qr=void 0,ye=!0,ke=0;ke<pt.length;ke++){var Ke=pt[ke],Ot=Ke.width;if(Qr===void 0)Qr=Ot;else if(Qr!==Ot){ye=!1;break}if(Ot=Ke.height,Be===void 0)Be=Ot;else if(Be!==Ot){ye=!1;break}delete Ke.width,delete Ke.height,Ke.transform==="none"&&delete Ke.transform}ye&&Qr!==void 0&&Be!==void 0&&(Ut.setKeyframes(pt),ye=getComputedStyle(Ut.target,Ut.pseudoElement),ye.width!==Qr||ye.height!==Be)&&(ye=pt[0],ye.width=Qr,ye.height=Be,ye=pt[pt.length-1],ye.width=Qr,ye.height=Be,Ut.setKeyframes(pt))}}Z()},function(Te){De.__reactViewTransition===Ue&&(De.__reactViewTransition=null);try{typeof Te=="object"&&Te!==null&&Te.name==="InvalidStateError"&&(Te.message==="View transition was skipped because document visibility state is hidden."||Te.message==="Skipping view transition because document visibility state has become hidden."||Te.message==="Skipping view transition because viewport size changed."||Te.message==="Transition was aborted because of invalid state")&&(Te=null),Te!==null&&Ae(Te)}finally{C(),O(),Z()}}),Ue.finished.finally(function(){for(var Te=0;Te<We.length;Te++)We[Te].cancel();De.__reactViewTransition===Ue&&(De.__reactViewTransition=null),oe()}),Ue}catch{return C(),O(),Z(),null}}function lv(h,v){this._scope=document.documentElement,this._selector="::view-transition-"+h+"("+v+")"}lv.prototype.animate=function(h,v){return v=typeof v=="number"?{duration:v}:I({},v),v.pseudoElement=this._selector,this._scope.animate(h,v)},lv.prototype.getAnimations=function(){for(var h=this._scope,v=this._selector,_=h.getAnimations({subtree:!0}),C=[],O=0;O<_.length;O++){var P=_[O].effect;P!==null&&P.target===h&&P.pseudoElement===v&&C.push(_[O])}return C},lv.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function CP(h){return{name:h,group:new lv("group",h),imagePair:new lv("image-pair",h),old:new lv("old",h),new:new lv("new",h)}}function hi(h){this._fragmentFiber=h,this._observers=this._eventListeners=null}hi.prototype.addEventListener=function(h,v,_){var C=null,O=null;if(!(_!=null&&typeof _!="boolean"&&(C=_.signal||null,C!==null&&C.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var P=this._eventListeners;if(EP(P,h,v,_)===-1){var Z=this,oe=v;_!=null&&typeof _!="boolean"&&_.once===!0&&(oe=function(Ae){Z.removeEventListener(h,v,_),typeof v=="function"?v.call(this,Ae):v.handleEvent(Ae)}),C!==null&&(O=Z.removeEventListener.bind(Z,h,v,_),C.addEventListener("abort",O,{once:!0}),O=C.removeEventListener.bind(C,"abort",O)),C=Im(_),P.push({type:h,listener:v,optionsOrUseCapture:_,attachedListener:oe,cleanup:O}),f(this._fragmentFiber.child,!1,_2,h,oe,C)}this._eventListeners=P}};function _2(h,v,_,C){return m(h).addEventListener(v,_,C),!1}hi.prototype.removeEventListener=function(h,v,_){var C=this._eventListeners;if(C!==null&&(v=EP(C,h,v,_),v!==-1)){var O=C[v];_=O.attachedListener;var P=O.cleanup;O=Im(O.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Rj,h,_,O),C.splice(v,1),P!==null&&P()}};function Rj(h,v,_,C){return m(h).removeEventListener(v,_,C),!1}function Im(h){return h!=null&&typeof h!="boolean"&&(h.once===!0||h.signal instanceof AbortSignal)?{capture:h.capture,passive:h.passive}:h}function TP(h){return h==null?"c=0":typeof h=="boolean"?"c="+(h?"1":"0"):"c="+(h.capture?"1":"0")}function EP(h,v,_,C){if(h.length===0)return-1;C=TP(C);for(var O=0;O<h.length;O++){var P=h[O];if(P.type===v&&P.listener===_&&TP(P.optionsOrUseCapture)===C)return O}return-1}hi.prototype.dispatchEvent=function(h){var v=d(this._fragmentFiber);if(v===null)return!0;v=m(v);var _=this._eventListeners;if(_!==null&&0<_.length||!h.bubbles){var C=v.nodeType===9?v.createComment(""):document.createTextNode("");if(_)for(var O=0;O<_.length;O++){var P=_[O];C.addEventListener(P.type,P.attachedListener,Im(P.optionsOrUseCapture))}if(v.appendChild(C),h=C.dispatchEvent(h),_)for(O=0;O<_.length;O++)P=_[O],C.removeEventListener(P.type,P.attachedListener,Im(P.optionsOrUseCapture));return v.removeChild(C),h}return v.dispatchEvent(h)},hi.prototype.focus=function(h){f(this._fragmentFiber.child,!0,rS,h,void 0,void 0)};function rS(h,v){return h.tag===6?!1:(h=m(h),Qj(h,v))}hi.prototype.focusLast=function(h){var v=[];f(this._fragmentFiber.child,!0,b2,v,void 0,void 0);for(var _=v.length-1;0<=_&&!rS(v[_],h);_--);};function b2(h,v){return v.push(h),!1}hi.prototype.blur=function(){var h=d(this._fragmentFiber);h!==null&&(h=m(h),h=Mw(h).activeElement,h!==null&&f(this._fragmentFiber.child,!1,x2,h,void 0,void 0))};function x2(h,v){return h.tag===6?!1:(h=m(h),h===v||h.contains(v)?(v.blur(),!0):!1)}hi.prototype.observeUsing=function(h){this._observers===null&&(this._observers=new Set),this._observers.add(h),f(this._fragmentFiber.child,!1,Ij,h,void 0,void 0)};function Ij(h,v){return h.tag===6||(h=m(h),v.observe(h)),!1}hi.prototype.unobserveUsing=function(h){var v=this._observers;if(v!==null&&v.has(h)){v.delete(h),f(this._fragmentFiber.child,!1,Oj,h,void 0,void 0);for(var _=v=0;_<wc.length;_++){var C=wc[_];C.fragmentInstance===this&&C.observer===h?h.unobserve(C.instance):wc[v++]=C}wc.length=v}};function Oj(h,v){return h.tag===6||(h=m(h),v.unobserve(h)),!1}var wc=[],S2=!1;function BP(h,v,_){wc.push({fragmentInstance:h,observer:v,instance:_}),S2||(S2=!0,jj(function(){S2=!1;var C=wc;wc=[];for(var O=0;O<C.length;O++){var P=C[O];P.observer.unobserve(P.instance)}}))}hi.prototype.getClientRects=function(){var h=[];return f(this._fragmentFiber.child,!1,Pj,h,void 0,void 0),h};function Pj(h,v){if(h.tag===6){h=h.stateNode;var _=h.ownerDocument.createRange();_.selectNodeContents(h),v.push.apply(v,_.getClientRects())}else h=m(h),v.push.apply(v,h.getClientRects());return!1}hi.prototype.getRootNode=function(h){var v=d(this._fragmentFiber);return v===null?this:m(v).getRootNode(h)},hi.prototype.compareDocumentPosition=function(h){var v=d(this._fragmentFiber);if(v===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var _=[];f(this._fragmentFiber.child,!1,b2,_,void 0,void 0);var C=m(v);if(_.length===0){if(_=C,A(this._fragmentFiber)){e:{for(v=this._fragmentFiber.return;v!==null;){if(v.tag===4){v=v.stateNode.containerInfo;break e}if(v.tag===3||v.tag===5||v.tag===27)break;v=v.return}v=null}v!=null&&(_=v)}v=this._fragmentFiber;var O=C=_.compareDocumentPosition(h);return _===h?O=Node.DOCUMENT_POSITION_CONTAINS:C&Node.DOCUMENT_POSITION_CONTAINED_BY&&(_=p(v)[1],_===null?O=Node.DOCUMENT_POSITION_PRECEDING:(h=m(_).compareDocumentPosition(h),O=h===0||h&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),O|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}v=m(_[0]),O=m(_[_.length-1]);var P=A(this._fragmentFiber)?v.parentElement:C;if(P==null)return Node.DOCUMENT_POSITION_DISCONNECTED;C=P.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY,P=P.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_CONTAINED_BY;var Z=v.compareDocumentPosition(h),oe=O.compareDocumentPosition(h),Ae=Z&Node.DOCUMENT_POSITION_CONTAINED_BY||oe&Node.DOCUMENT_POSITION_CONTAINED_BY;return oe=C&&P&&Z&Node.DOCUMENT_POSITION_FOLLOWING&&oe&Node.DOCUMENT_POSITION_PRECEDING,v=C&&v===h||P&&O===h||Ae||oe?Node.DOCUMENT_POSITION_CONTAINED_BY:!C&&v===h||!P&&O===h?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:Z,v&Node.DOCUMENT_POSITION_DISCONNECTED||v&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||kj(v,this._fragmentFiber,_[0],_[_.length-1],h)?v:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function kj(h,v,_,C,O){var P=rs(O);if(h&Node.DOCUMENT_POSITION_CONTAINED_BY){if(_=!!P)e:{for(;P!==null;){if(P.tag===7&&(P===v||P.alternate===v)){_=!0;break e}P=P.return}_=!1}return _}if(h&Node.DOCUMENT_POSITION_CONTAINS){if(P===null)return P=O.ownerDocument,O===P||O===P.documentElement||O===P.body;e:{for(P=v,v=d(v);P!==null;){if(!(P.tag!==5&&P.tag!==3&&P.tag!==27||P!==v&&P.alternate!==v)){P=!0;break e}P=P.return}P=!1}return P}return h&Node.DOCUMENT_POSITION_PRECEDING?((v=!!P)&&!(v=P===_)&&(v=R(_,P,B),v===null?v=!1:(f(v,!0,x,P,_),P=y,y=null,v=P!==null)),v):h&Node.DOCUMENT_POSITION_FOLLOWING?((v=!!P)&&!(v=P===C)&&(v=R(C,P,B),v===null?v=!1:(f(v,!0,T,P,C),P=y,b=y=null,v=P!==null)),v):!1}function DP(h,v){var _=h.ownerDocument.createRange();_.selectNodeContents(h),h=_.getBoundingClientRect(),window.scrollTo(window.scrollX+h.left,v?window.scrollY+h.top:window.scrollY+h.bottom-window.innerHeight)}hi.prototype.scrollIntoView=function(h){if(typeof h=="object")throw Error(n(566));var v=[];f(this._fragmentFiber.child,!1,b2,v,void 0,void 0);var _=h!==!1;if(v.length===0){var C=p(this._fragmentFiber);if(C=_?C[1]||C[0]||d(this._fragmentFiber):C[0]||C[1],C===null)return;if(C.tag===6){h=m(C),DP(h,_);return}if(C=m(C),C.nodeType!==9){if(C.nodeType===11){_="host"in C?C.host:null,_!==null&&_.scrollIntoView(h);return}C.scrollIntoView(h)}}for(C=_?v.length-1:0;C!==(_?-1:v.length);){var O=v[C];O.tag===6?(O=m(O),DP(O,_)):m(O).scrollIntoView(h),C+=_?-1:1}};function C2(h,v){return h=m(h),nS(h,v),!1}function nS(h,v){h.reactFragments==null&&(h.reactFragments=new Set),h.reactFragments.add(v)}function MP(h,v){var _=v._eventListeners;if(_!==null)for(var C=0;C<_.length;C++){var O=_[C];h.addEventListener(O.type,O.attachedListener,Im(O.optionsOrUseCapture))}h.nodeType!==3&&(_=v._observers,_!==null&&_.forEach(function(P){for(var Z=0,oe=0;oe<wc.length;oe++){var Ae=wc[oe];(Ae.fragmentInstance!==v||Ae.observer!==P||Ae.instance!==h)&&(wc[Z++]=Ae)}wc.length=Z,P.observe(h)}),nS(h,v))}function Nj(h,v){var _=v._eventListeners;if(_!==null)for(var C=0;C<_.length;C++){var O=_[C];h.removeEventListener(O.type,O.attachedListener,Im(O.optionsOrUseCapture))}h.nodeType!==3&&(_=v._observers,_!==null&&_.forEach(function(P){typeof P.rootMargin=="str
9ing"?BP(v,P,h):P.unobserve(h)}),h.reactFragments!=null&&h.reactFragments.delete(v))}function T2(h){var v=h.firstChild;for(v&&v.nodeType===10&&(v=v.nextSibling);v;){var _=v;switch(v=v.nextSibling,_.nodeName){case"HTML":case"HEAD":case"BODY":T2(_),mu(_);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(_.rel.toLowerCase()==="stylesheet")continue}h.removeChild(_)}}function Fj(h,v,_,C){for(;h.nodeType===1;){var O=_;if(h.nodeName.toLowerCase()!==v.toLowerCase()){if(!C&&(h.nodeName!=="INPUT"||h.type!=="hidden"))break}else if(C){if(!h[kn])switch(v){case"meta":if(!h.hasAttribute("itemprop"))break;return h;case"link":if(P=h.getAttribute("rel"),P==="stylesheet"&&h.hasAttribute("data-precedence"))break;if(P!==O.rel||h.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||h.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||h.getAttribute("title")!==(O.title==null?null:O.title))break;return h;case"style":if(h.hasAttribute("data-precedence"))break;return h;case"script":if(P=h.getAttribute("src"),(P!==(O.src==null?null:O.src)||h.getAttribute("type")!==(O.type==null?null:O.type)||h.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&P&&h.hasAttribute("async")&&!h.hasAttribute("itemprop"))break;return h;default:return h}}else if(v==="input"&&h.type==="hidden"){var P=O.name==null?null:""+O.name;if(O.type==="hidden"&&h.getAttribute("name")===P)return h}else return h;if(h=ku(h.nextSibling),h===null)break}return null}function Uj(h,v,_){if(v==="")return null;for(;h.nodeType!==3;)if((h.nodeType!==1||h.nodeName!=="INPUT"||h.type!=="hidden")&&!_||(h=ku(h.nextSibling),h===null))return null;return h}function LP(h,v){for(;h.nodeType!==8;)if((h.nodeType!==1||h.nodeName!=="INPUT"||h.type!=="hidden")&&!v||(h=ku(h.nextSibling),h===null))return null;return h}function E2(h){return h.data==="$?"||h.data==="$~"}function B2(h){return h.data==="$!"||h.data==="$?"&&h.ownerDocument.readyState!=="loading"}function Hj(h,v){var _=h.ownerDocument;if(h.data==="$~")h._reactRetry=v;else if(h.data!=="$?"||_.readyState!=="loading")v();else{var C=function(){v(),_.removeEventListener("DOMContentLoaded",C)};_.addEventListener("DOMContentLoaded",C),h._reactRetry=C}}function ku(h){for(;h!=null;h=h.nextSibling){var v=h.nodeType;if(v===1||v===3)break;if(v===8){if(v=h.data,v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"||v==="F!"||v==="F")break;if(v==="/$"||v==="/&")return null}}return h}var D2=null;function RP(h){h=h.nextSibling;for(var v=0;h;){if(h.nodeType===8){var _=h.data;if(_==="/$"||_==="/&"){if(v===0)return ku(h.nextSibling);v--}else _!=="$"&&_!=="$!"&&_!=="$?"&&_!=="$~"&&_!=="&"||v++}h=h.nextSibling}return null}function IP(h){h=h.previousSibling;for(var v=0;h;){if(h.nodeType===8){var _=h.data;if(_==="$"||_==="$!"||_==="$?"||_==="$~"||_==="&"){if(v===0)return h;v--}else _!=="/$"&&_!=="/&"||v++}h=h.previousSibling}return null}function Qj(h,v){function _(){C=!0}if(h.ownerDocument.activeElement===h)return!0;var C=!1;try{h.ownerDocument.addEventListener("focus",_,!0),(h.focus||HTMLElement.prototype.focus).call(h,v)}finally{h.ownerDocument.removeEventListener("focus",_,!0)}return C}function jj(h){xP(function(){xP(function(v){return h(v)})})}function OP(h,v,_){switch(v=Mw(_),h){case"html":if(h=v.documentElement,!h)throw Error(n(452));return h;case"head":if(h=v.head,!h)throw Error(n(453));return h;case"body":if(h=v.body,!h)throw Error(n(454));return h;default:throw Error(n(451))}}function PP(h,v,_){for(var C in _){var O=_[C];_.hasOwnProperty(C)&&O!=null&&Vn(h,v,C,null,bj,O)}_.dangerouslySetInnerHTML!=null&&(h.textContent=""),h.onclick===Bl&&(h.onclick=null),mu(h)}function M2(h){for(var v=h.attributes;v.length;)h.removeAttributeNode(v[0]);mu(h)}var Nu=new Map,kP=new Set;function Lw(h){if(typeof h.getRootNode=="function"){var v=h.getRootNode();if(v.nodeType===9||v.nodeType===11)return v}return h.nodeType===9?h:h.ownerDocument}var S=Se.d;Se.d={f:M,r:U,D:le,C:pe,L:me,m:Ie,X:$e,S:Ye,M:rt};function M(){var h=S.f(),v=Z1();return h||v}function U(h){var v=yu(h);v!==null&&v.tag===5&&v.type==="form"?_1(v):S.r(h)}var $=typeof document>"u"?null:document;function re(h,v,_){var C=$;if(C&&typeof v=="string"&&v){var O=Wt(v);O='link[rel="'+h+'"][href="'+O+'"]',typeof _=="string"&&(O+='[crossorigin="'+_+'"]'),kP.has(O)||(kP.add(O),h={rel:h,crossOrigin:_,href:v},C.querySelector(O)===null&&(v=C.createElement("link"),go(v,"link",h),mi(v),C.head.appendChild(v)))}}
vendor: 13,083 bytes, line 9
9function le(h){S.D(h),re("dns-prefetch",h,null)}function pe(h,v){S.C(h,v),re("preconnect",h,v)}function me(h,v,_){S.L(h,v,_);var C=$;if(C&&h&&v){var O='link[rel="preload"][as="'+Wt(v)+'"]';v==="image"&&_&&_.imageSrcSet?(O+='[imagesrcset="'+Wt(_.imageSrcSet)+'"]',typeof _.imageSizes=="string"&&(O+='[imagesizes="'+Wt(_.imageSizes)+'"]')):O+='[href="'+Wt(h)+'"]';var P=O;switch(v){case"style":P=Pt(h);break;case"script":P=kr(h)}if(!(Nu.has(P)||(h=I({rel:"preload",href:v==="image"&&_&&_.imageSrcSet?void 0:h,as:v},_),Nu.set(P,h),C.querySelector(O)!==null||v==="style"&&C.querySelector(er(P))||v==="script"&&C.querySelector(Gr(P))))){var Z=C.createElement("link");go(Z,"link",h),v==="style"&&(Z[Xc]=!0,Z.onload=Z.onerror=function(){Bh(Z)}),mi(Z),C.head.appendChild(Z)}}}function Ie(h,v){S.m(h,v);var _=$;if(_&&h){var C=v&&typeof v.as=="string"?v.as:"script",O='link[rel="modulepreload"][as="'+Wt(C)+'"][href="'+Wt(h)+'"]',P=O;switch(C){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":P=kr(h)}if(!Nu.has(P)&&(h=I({rel:"modulepreload",href:h},v),Nu.set(P,h),_.querySelector(O)===null)){switch(C){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(_.querySelector(Gr(P)))return}C=_.createElement("link"),go(C,"link",h),mi(C),_.head.appendChild(C)}}}function Ye(h,v,_){S.S(h,v,_);var C=$;if(C&&h){var O=Nn(C).hoistableStyles,P=Pt(h);v=v||"default";var Z=O.get(P);if(!Z){var oe={loading:0,preload:null};if(Z=C.querySelector(er(P)))oe.loading=5;else{h=I({rel:"stylesheet",href:h,"data-precedence":v},_),(_=Nu.get(P))&&ms(h,_);var Ae=Z=C.createElement("link");mi(Ae),go(Ae,"link",h),Ae._p=new Promise(function(De,Ue){Ae.onload=De,Ae.onerror=Ue}),Ae.addEventListener("load",function(){oe.loading|=1}),Ae.addEventListener("error",function(){oe.loading|=2}),oe.loading|=4,qa(Z,v,C)}Z={type:"stylesheet",instance:Z,count:1,state:oe},O.set(P,Z)}}}function $e(h,v){S.X(h,v);var _=$;if(_&&h){var C=Nn(_).hoistableScripts,O=kr(h),P=C.get(O);P||(P=_.querySelector(Gr(O)),P||(h=I({src:h,async:!0},v),(v=Nu.get(O))&&Ni(h,v),P=_.createElement("script"),mi(P),go(P,"link",h),_.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},C.set(O,P))}}function rt(h,v){S.M(h,v);var _=$;if(_&&h){var C=Nn(_).hoistableScripts,O=kr(h),P=C.get(O);P||(P=_.querySelector(Gr(O)),P||(h=I({src:h,async:!0,type:"module"},v),(v=Nu.get(O))&&Ni(h,v),P=_.createElement("script"),mi(P),go(P,"link",h),_.head.appendChild(P)),P={type:"script",instance:P,count:1,state:null},C.set(O,P))}}function gt(h,v,_,C){var O=(O=jr.current)?Lw(O):null;if(!O)throw Error(n(446));switch(h){case"meta":case"title":return null;case"style":return typeof _.precedence=="string"&&typeof _.href=="string"?(_=Pt(_.href),v=Nn(O).hoistableStyles,C=v.get(_),C||(C={type:"style",instance:null,count:0,state:null},v.set(_,C)),C):{type:"void",instance:null,count:0,state:null};case"link":if(_.rel==="stylesheet"&&typeof _.href=="string"&&typeof _.precedence=="string"){h=Pt(_.href);var P=Nn(O).hoistableStyles,Z=P.get(h);if(Z||(O=O.ownerDocument||O,Z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},P.set(h,Z),(P=O.querySelector(er(h)))?P._p||(Z.instance=P,Z.state.loading=5):(P=Nu.get(h),P||(P={rel:"preload",as:"style",href:_.href,crossOrigin:_.crossOrigin,integrity:_.integrity,media:_.media,hrefLang:_.hrefLang,referrerPolicy:_.referrerPolicy},Nu.set(h,P)),sr(O,h,P,Z.state))),v&&C===null)throw Error(n(528,""));return Z}if(v&&C!==null)throw Error(n(529,""));return null;case"script":return v=_.async,_=_.src,typeof _=="string"&&v&&typeof v!="function"&&typeof v!="symbol"?(_=kr(_),v=Nn(O).hoistableScripts,C=v.get(_),C||(C={type:"script",instance:null,count:0,state:null},v.set(_,C)),C):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,h))}}function Pt(h){return'href="'+Wt(h)+'"'}function er(h){return'link[rel="stylesheet"]['+h+"]"}function Ur(h){return I({},h,{"data-precedence":h.precedence,precedence:null})}function sr(h,v,_,C){if(v=h.querySelector('link[rel="preload"][as="style"]['+v+"]")){if(v[Xc]!==!0){C.loading=1;return}}else v=h.createElement("link"),v[Xc]=!0,v.onload=v.onerror=Bh.bind(null,v),go(v,"link",_),mi(v),h.head.appendChild(v);C.preload=v,v.addEventListener("load",function(){return C.loading|=1}),v.addEventListener("error",function(){return C.loading|=2})}function kr(h){return'[src="'+Wt(h)+'"]'}function Gr(h){return"script[async]"+h}function tl(h,v,_){if(v.count++,v.instance===null)switch(v.type){case"style":var C=h.querySelector('style[data-href~="'+Wt(_.href)+'"]');if(C)return v.instance=C,mi(C),C;var O=I({},_,{"data-href":_.href,"data-precedence":_.precedence,href:null,precedence:null});return C=(h.ownerDocument||h).createElement("style"),mi(C),go(C,"style",O),qa(C,_.precedence,h),v.instance=C;case"stylesheet":O=Pt(_.href);var P=h.querySelector(er(O));if(P)return v.state.loading|=4,v.instance=P,mi(P),P;C=Ur(_),(O=Nu.get(O))&&ms(C,O),P=(h.ownerDocument||h).createElement("link"),mi(P);var Z=P;return Z._p=new Promise(function(oe,Ae){Z.onload=oe,Z.onerror=Ae}),go(P,"link",C),v.state.loading|=4,qa(P,_.precedence,h),v.instance=P;case"script":return P=kr(_.src),(O=h.querySelector(Gr(P)))?(v.instance=O,mi(O),O):(C=_,(O=Nu.get(P))&&(C=I({},_),Ni(C,O)),h=h.ownerDocument||h,O=h.createElement("script"),mi(O),go(O,"link",C),h.head.appendChild(O),v.instance=O);case"void":return null;default:throw Error(n(443,v.type))}else v.type==="stylesheet"&&(v.state.loading&4)===0&&(C=v.instance,v.state.loading|=4,qa(C,_.precedence,h));return v.instance}function qa(h,v,_){for(var C=_.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=C.length?C[C.length-1]:null,P=O,Z=0;Z<C.length;Z++){var oe=C[Z];if(oe.dataset.precedence===v)P=oe;else if(P!==O)break}P?P.parentNode.insertBefore(h,P.nextSibling):(v=_.nodeType===9?_.head:_,v.insertBefore(h,v.firstChild))}function ms(h,v){h.crossOrigin==null&&(h.crossOrigin=v.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=v.referrerPolicy),h.title==null&&(h.title=v.title)}function Ni(h,v){h.crossOrigin==null&&(h.crossOrigin=v.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=v.referrerPolicy),h.integrity==null&&(h.integrity=v.integrity)}var rl=null;function bf(h,v,_){if(rl===null){var C=new Map,O=rl=new Map;O.set(_,C)}else O=rl,C=O.get(_),C||(C=new Map,O.set(_,C));if(C.has(h))return C;for(C.set(h,null),_=_.getElementsByTagName(h),O=0;O<_.length;O++){var P=_[O];if(!(P[kn]||P[Ma]||h==="link"&&P.getAttribute("rel")==="stylesheet")&&P.namespaceURI!=="http://www.w3.org/2000/svg"){var Z=P.getAttribute(v)||"";Z=h+Z;var oe=C.get(Z);oe?oe.push(P):C.set(Z,[P])}}return C}function iS(h,v,_){h=h.ownerDocument||h,h.head.insertBefore(_,v==="title"?h.querySelector("head > title"):null)}function PIe(h,v,_){if(_===1||v.itemProp!=null)return!1;switch(h){case"meta":case"title":return!0;case"style":if(typeof v.precedence!="string"||typeof v.href!="string"||v.href==="")break;return!0;case"link":if(typeof v.rel!="string"||typeof v.href!="string"||v.href===""||v.onLoad||v.onError)break;return v.rel==="stylesheet"?(h=v.disabled,typeof v.precedence=="string"&&h==null):!0;case"script":if(v.async&&typeof v.async!="function"&&typeof v.async!="symbol"&&!v.onLoad&&!v.onError&&v.src&&typeof v.src=="string")return!0}return!1}function bte(h,v){return h==="img"&&v.src!=null&&v.src!==""&&v.onLoad==null&&v.loading!=="lazy"}function xte(h){return!(h.type==="stylesheet"&&(h.state.loading&3)===0)}function Ste(h){return(h.width||100)*(h.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Cte(h,v){typeof v.decode=="function"&&(h.imgCount++,v.complete||(h.imgBytes+=Ste(v),h.suspenseyImages.push(v)),h=FIe.bind(h),v.decode().then(h,h))}function kIe(h,v,_,C){if(_.type==="stylesheet"&&(typeof C.media!="string"||matchMedia(C.media).matches!==!1)&&(_.state.loading&4)===0){if(_.instance===null){var O=Pt(C.href),P=v.querySelector(er(O));if(P){v=P._p,v!==null&&typeof v=="object"&&typeof v.then=="function"&&(h.count++,h=L2.bind(h),v.then(h,h)),_.state.loading|=4,_.instance=P,mi(P);return}P=v.ownerDocument||v,C=Ur(C),(O=Nu.get(O))&&ms(C,O),P=P.createElement("link"),mi(P);var Z=P;Z._p=new Promise(function(oe,Ae){Z.onload=oe,Z.onerror=Ae}),go(P,"link",C),_.instance=P}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(_,v),(v=_.state.preload)&&(_.state.loading&3)===0&&(h.count++,_=L2.bind(h),v.addEventListener("load",_),v.addEventListener("error",_))}}var NP=0;function NIe(h,v){return h.stylesheets&&h.count===0&&UP(h,h.stylesheets),0<h.count||0<h.imgCount?function(_){var C=setTimeout(function(){if(h.stylesheets&&UP(h,h.stylesheets),h.unsuspend){var P=h.unsuspend;h.unsuspend=null,P()}},6e4+v);0<h.imgBytes&&NP===0&&(NP=62500*Sj());var O=setTimeout(function(){if(h.waitingForImages=!1,h.count===0&&(h.stylesheets&&UP(h,h.stylesheets),h.unsuspend)){var P=h.unsuspend;h.unsuspend=null,P()}},(h.imgBytes>NP?50:800)+v);return h.unsuspend=_,function(){h.unsuspend=null,clearTimeout(C),clearTimeout(O)}}:null}function Tte(h){if(h.count===0&&(h.imgCount===0||!h.waitingForImages)){if(h.stylesheets)UP(h,h.stylesheets);else if(h.unsuspend){var v=h.unsuspend;h.unsuspend=null,v()}}}function L2(){this.count--,Tte(this)}function FIe(){this.imgCount--,Tte(this)}var FP=null;function UP(h,v){h.stylesheets=null,h.unsuspend!==null&&(h.count++,FP=new Map,v.forEach(UIe,h),FP=null,L2.call(h))}function UIe(h,v){if(!(v.state.loading&4)){var _=FP.get(h);if(_)var C=_.get(null);else{_=new Map,FP.set(h,_);for(var O=h.querySelectorAll("link[data-precedence],style[data-precedence]"),P=0;P<O.length;P++){var Z=O[P];(Z.nodeName==="LINK"||Z.getAttribute("media")!=="not all")&&(_.set(Z.dataset.precedence,Z),C=Z)}C&&_.set(null,C)}O=v.instance,Z=O.getAttribute("data-precedence"),P=_.get(Z)||C,P===C&&_.set(null,O),_.set(Z,O),this.count++,C=L2.bind(this),O.addEventListener("load",C),O.addEventListener("error",C),P?P.parentNode.insertBefore(O,P.nextSibling):(h=h.nodeType===9?h.head:h,h.insertBefore(O,h.firstChild)),v.state.loading|=4}}var aS={$$typeof:G,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function HIe(h,v,_,C,O,P,Z,oe,Ae){this.tag=1,this.containerInfo=h,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=R0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=R0(0),this.hiddenUpdates=R0(null),this.identifierPrefix=C,this.onUncaughtError=O,this.onCaughtError=P,this.onRecoverableError=Z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ae,this.transitionTypes=null,this.incompleteTransitions=new Map}function Ete(h,v,_,C,O,P,Z,oe,Ae,De,Ue,We){return h=new HIe(h,v,_,Z,Ae,De,Ue,We,oe),v=1,P===!0&&(v|=24),P=Ei(3,null,null,v),h.current=P,P.stateNode=h,v=Mu(),v.refCount++,h.pooledCache=v,v.refCount++,P.memoizedState={element:C,isDehydrated:_,cache:v},q0(P),h}function Bte(h){return h?(h=ki,h):ki}function Dte(h,v,_,C,O,P){O=Bte(O),C.context===null?C.context=O:C.pendingContext=O,C=Yh(v),C.payload={element:_},P=P===void 0?null:P,P!==null&&(C.callback=P),_=$h(h,C,v),_!==null&&(ps(_,h,v),J0(_,h,v))}function Mte(h,v){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var _=h.retryLane;h.retryLane=_!==0&&_<v?_:v}}function zj(h,v){Mte(h,v),(h=h.alternate)&&Mte(h,v)}function Lte(h){if(h.tag===13||h.tag===31){var v=ur(h,67108864);v!==null&&ps(v,h,67108864),zj(h,67108864)}}function Rte(h){if(h.tag===13||h.tag===31){var v=Ho();v=ic(v);var _=ur(h,v);_!==null&&ps(_,h,v),zj(h,v)}}var oS=!0;function QIe(h,v,_,C){var O=Re.T;Re.T=null;var P=Se.p;try{Se.p=2,Vj(h,v,_,C)}finally{Se.p=P,Re.T=O}}function jIe(h,v,_,C){var O=Re.T;Re.T=null;var P=Se.p;try{Se.p=8,Vj(h,v,_,C)}finally{Se.p=P,Re.T=O}}function Vj(h,v,_,C){if(oS){var O=Gj(C);if(O===null)lA(h,v,C,HP,_),Ote(h,C);else if(VIe(O,h,v,_,C))C.stopPropagation();else if(Ote(h,C),v&4&&-1<zIe.indexOf(h)){for(;O!==null;){var P=yu(O);if(P!==null)switch(P.tag){case 3:if(P=P.stateNode,P.current.memoizedState.isDehydrated){var Z=$c(P.pendingLanes);if(Z!==0){var oe=P;for(oe.pendingLanes|=2,oe.entangledLanes|=2;Z;){var Ae=1<<31-ts(Z);oe.entanglements[1]|=Ae,Z&=~Ae}Pu(P),(hn&6)===0&&(xr=Kt()+500,Ew(0))}}break;case 31:case 13:oe=ur(P,2),oe!==null&&ps(oe,P,2),Z1(),zj(P,2)}if(P=Gj(C),P===null&&lA(h,v,C,HP,_),P===O)break;O=P}O!==null&&C.stopPropagation()}else lA(h,v,C,null,_)}}function Gj(h){return h=N0(h),Kj(h)}var HP=null;function Kj(h){if(HP=null,h=rs(h),h!==null){var v=a(h);if(v===null)h=null;else{var _=v.tag;if(_===13){if(h=o(v),h!==null)return h;h=null}else if(_===31){if(h=s(v),h!==null)return h;h=null}else if(_===3){if(v.stateNode.current.memoizedState.isDehydrated)return v.tag===3?v.stateNode.containerInfo:null;h=null}else v!==h&&(h=null)}}return HP=h,null}function Ite(h){switch(h){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 2,878 bytes, line 9
9:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(un()){case ar:return 2;case Yr:return 8;case aa:case $r:return 32;case Lg:return 268435456;default:return 32}default:return 32}}var Wj=!1,Om=null,Pm=null,km=null,R2=new Map,I2=new Map,Nm=[],zIe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ote(h,v){switch(h){case"focusin":case"focusout":Om=null;break;case"dragenter":case"dragleave":Pm=null;break;case"mouseover":case"mouseout":km=null;break;case"pointerover":case"pointerout":R2.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":I2.delete(v.pointerId)}}function O2(h,v,_,C,O,P){return h===null||h.nativeEvent!==P?(h={blockedOn:v,domEventName:_,eventSystemFlags:C,nativeEvent:P,targetContainers:[O]},v!==null&&(v=yu(v),v!==null&&Lte(v)),h):(h.eventSystemFlags|=C,v=h.targetContainers,O!==null&&v.indexOf(O)===-1&&v.push(O),h)}function VIe(h,v,_,C,O){switch(v){case"focusin":return Om=O2(Om,h,v,_,C,O),!0;case"dragenter":return Pm=O2(Pm,h,v,_,C,O),!0;case"mouseover":return km=O2(km,h,v,_,C,O),!0;case"pointerover":var P=O.pointerId;return R2.set(P,O2(R2.get(P)||null,h,v,_,C,O)),!0;case"gotpointercapture":return P=O.pointerId,I2.set(P,O2(I2.get(P)||null,h,v,_,C,O)),!0}return!1}function Pte(h){var v=rs(h.target);if(v!==null){var _=a(v);if(_!==null){if(v=_.tag,v===13){if(v=o(_),v!==null){h.blockedOn=v,jx(h.priority,function(){Rte(_)});return}}else if(v===31){if(v=s(_),v!==null){h.blockedOn=v,jx(h.priority,function(){Rte(_)});return}}else if(v===3&&_.stateNode.current.memoizedState.isDehydrated){h.blockedOn=_.tag===3?_.stateNode.containerInfo:null;return}}}h.blockedOn=null}
9function QP(h){if(h.blockedOn!==null)return!1;for(var v=h.targetContainers;0<v.length;){var _=Gj(h.nativeEvent);if(_===null){_=h.nativeEvent;var C=new _.constructor(_.type,_);Mp=C,_.target.dispatchEvent(C),Mp=null}else return v=yu(_),v!==null&&Lte(v),h.blockedOn=_,!1;v.shift()}return!0}function kte(h,v,_){QP(h)&&_.delete(v)}function GIe(){Wj=!1,Om!==null&&QP(Om)&&(Om=null),Pm!==null&&QP(Pm)&&(Pm=null),km!==null&&QP(km)&&(km=null),R2.forEach(kte),I2.forEach(kte)}function jP(h,v){h.blockedOn===v&&(h.blockedOn=null,Wj||(Wj=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,GIe)))}var zP=null;function Nte(h){zP!==h&&(zP=h,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zP===h&&(zP=null);for(var v=0;v<h.length;v+=3){var _=h[v],C=h[v+1],O=h[v+2];if(typeof C!="function"){if(Kj(C||_)===null)continue;break}var P=yu(_);P!==null&&(h.splice(v,3),v-=3,fw(P,{pending:!0,data:O,method:_.method,action:C},C,O))}}))}function sS(h){function v(Ae){return jP(Ae,h)}Om!==null&&jP(Om,h),Pm!==null&&jP(Pm,h),km!==null&&jP(km,h),R2.forEach(v),I2.forEach(v);for(var _=0;_<Nm.length;_++){var C=Nm[_];C.blockedOn===h&&(C.blockedOn=null)}for(;0<Nm.length&&(_=Nm[0],_.blockedOn===null);)Pte(_),_.blockedOn===null&&Nm.shift();if(_=(h.ownerDocument||h).$$reactFormReplay,_!=null)for(C=0;C<_.length;C+=3){var O=_[C],P=_[C+1],Z=O[La]||null;if(typeof P=="function")Z||Nte(_);else if(Z){var oe=null;if(P&&P.hasAttribute("formAction")){if(O=P,Z=P[La]||null)oe=Z.formAction;else if(Kj(O)!==null)continue}else oe=Z.action;typeof oe=="function"?_[C+1]=oe:(_.splice(C,3),C-=3),Nte(_)}}}function Fte(){function h(P){P.canIntercept&&P.info==="react-transition"&&P.intercept({handler:function(){return new Promise(function(Z){return O=Z})},focusReset:"manual",scroll:"manual"})}function v(){O!==null&&(O(),O=null),C||setTimeout(_,20)}function _(){if(!C&&!navigation.transition){var P=navigation.currentEntry;P&&P.url!=null&&navigation.navigate(P.url,{state:P.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var C=!1,O=null;return navigation.addEventListener("navigate",h),navigation.addEventListener("navigatesuccess",v),navigation.addEventListener("navigateerror",v),setTimeout(_,100),function(){C=!0,navigation.removeEventListener("navigate",h),navigation.removeEventListener("navigatesuccess",v),navigation.removeEventListener("navigateerror",v),O!==null&&(O(),O=null)}}}function Yj(h){this._internalRoot=h}VP.prototype.render=Yj.prototype.render=function(h){var v=this._internalRoot;if(v===null)throw Error(n(409));var _=v.current,C=Ho();Dte(_,C,h,v,null,null)},VP.prototype.unmount=Yj.prototype.unmount=function(){var h=this._internalRoot;if(h!==null){this._internalRoot=null;var v=h.containerInfo;Dte(h.current,2,null,h,null,null),Z1(),v[Tl]=null}};function VP(h){this._internalRoot=h}VP.prototype.unstable_scheduleHydration=function(h){if(h){var v=Tp();h={blockedOn:null,target:h,priority:v};for(var _=0;_<Nm.length&&v!==0&&v<Nm[_].priority;_++);Nm.splice(_,0,h),_===0&&Pte(h)}};var Ute=e.version;if(Ute!=="19.3.0")throw Error(n(527,Ute,"19.3.0"));Se.findDOMNode=function(h){var v=h._reactInternals;if(v===void 0)throw typeof h.render=="function"?Error(n(188)):(h=Object.keys(h).join(","),Error(n(268,h)));return h=u(v),h=h!==null?c(h):null,h=h===null?null:h.stateNode,h};var KIe={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Re,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var GP=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!GP.isDisabled&&GP.supportsFiber)try{gu=GP.inject(KIe),oa=GP}catch{}}return k2.createRoot=function(h,v){if(!i(h))throw Error(n(299));var _=!1,C="",O=S1,P=TO,Z=C1;return v!=null&&(v.unstable_strictMode===!0&&(_=!0),v.identifierPrefix!==void 0&&(C=v.identifierPrefix),v.onUncaughtError!==void 0&&(O=v.onUncaughtError),v.onCaughtError!==void 0&&(P=v.onCaughtError),v.onRecoverableError!==void 0&&(Z=v.onRecoverableError)),v=Ete(h,1,!1,null,null,_,C,null,O,P,Z,Fte),h[Tl]=v.current,u2(h),new Yj(v)},k2.hydrateRoot=function(h,v,_){if(!i(h))throw Error(n(299));var C=!1,O="",P=S1,Z=TO,oe=C1,Ae=null;return _!=null&&(_.unstable_strictMode===!0&&(C=!0),_.identifierPrefix!==void 0&&(O=_.identifierPrefix),_.onUncaughtError!==void 0&&(P=_.onUncaughtError),_.onCaughtError!==void 0&&(Z=_.onCaughtError),_.onRecoverableError!==void 0&&(oe=_.onRecoverableError),_.formState!==void 0&&(Ae=_.formState)),v=Ete(h,1,!0,v,_??null,C,O,Ae,P,Z,oe,Fte),v.context=Bte(null),_=v.current,C=Ho(),C=ic(C),O=Yh(C),O.callback=null,$h(_,O,C),_=C,v.current.lanes=_,Cp(v,_),Pu(v),h[Tl]=v.current,u2(h),new VP(v)},k2.version="19.3.0",k2}var qte;function nOe(){if(qte)return qj.exports;qte=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),qj.exports=rOe(),qj.exports}var iOe=nOe(),rz={};const Er=t=>typeof t=="string",N2=()=>{let t,e;const r=new Promise((n,i)=>{t=n,e=i});return r.resolve=t,r.reject=e,r},Jte=t=>t==null?"":""+t,aOe=(t,e,r)=>{t.forEach(n=>{e[n]&&(r[n]=e[n])})},oOe=/###/g,ere=t=>t&&t.indexOf("###")>-1?t.replace(oOe,"."):t,tre=t=>!t||Er(t),zM=(t,e,r)=>{const n=Er(e)?e.split("."):e;let i=0;for(;i<n.length-1;){if(tre(t))return{};const a=ere(n[i]);!t[a]&&r&&(t[a]=new r),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={},++i}return tre(t)?{}:{obj:t,k:ere(n[i])}},rre=(t,e,r)=>{const{obj:n,k:i}=zM(t,e,Object);if(n!==void 0||e.length===1){n[i]=r;return}let a=e[e.length-1],o=e.slice(0,e.length-1),s=zM(t,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=zM(t,o,Object),s?.obj&&typeof s.obj[`${s.k}.${a}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=r},sOe=(t,e,r,n)=>{const{obj:i,k:a}=zM(t,e,Object);i[a]=i[a]||[],i[a].push(r)},o4=(t,e)=>{const{obj:r,k:n}=zM(t,e);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},lOe=(t,e,r)=>{const n=o4(t,r);return n!==void 0?n:o4(e,r)},Ige=(t,e,r)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?Er(t[n])||t[n]instanceof String||Er(e[n])||e[n]instanceof String?r&&(t[n]=e[n]):Ige(t[n],e[n],r):t[n]=e[n]);return t},Rw=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var uOe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const cOe=t=>Er(t)?t.replace(/[&<>
9"'\/]/g,e=>uOe[e]):t;class fOe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const dOe=[" ",",","?","!",";"],hOe=new fOe(20),AOe=(t,e,r)=>{e=e||"",r=r||"";const n=dOe.filter(o=>e.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const i=hOe.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let a=!i.test(t);if(!a){const o=t.indexOf(r);o>0&&!i.test(t.substring(0,o))&&(a=!0)}return a},yK=(t,e,r=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const n=e.split(r);let i=t;for(let a=0;a<n.length;){if(!i||typeof i!="object")return;let o,s="";for(let l=a;l<n.length;++l)if(l!==a&&(s+=r),s+=n[l],o=i[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<n.length-1)continue;a+=l-a+1;break}i=o}return i},LL=t=>t?.replace(/_/g,"-"),pOe={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};let vOe=class wK{constructor(e,r={}){this.init(e,r)}init(e,r={}){this.prefix=r.prefix||"i18next:",this.logger=e||pOe,this.options=r,this.debug=r.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,r,n,i){return i&&!this.debug?null:(Er(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[r](e))}create(e){return new wK(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new wK(this.logger,e)}};var RA=new vOe;class zH{constructor(){this.observers={}}on(e,r){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e,...r){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([i,a])=>{for(let o=0;o<a;o++)i(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,a])=>{for(let o=0;o<a;o++)i.apply(i,[e,...r])})}}class nre extends zH{constructor(e,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n,i={}){const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,r],n&&(Array.isArray(n)?s.push(...n):Er(n)&&a?s.push(...n.split(a)):s.push(n)));const l=o4(this.data,s);return!l&&!r&&!n&&e.indexOf(".")>-1&&(e=s[0],r=s[1],n=s.slice(2).join(".")),l||!o||!Er(n)?l:yK(this.data?.[e]?.[r],n,a)}addResource(e,r,n,i,a={silent:!1}){const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let s=[e,r];
9n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."),i=r,r=s[1]),this.addNamespaces(r),rre(this.data,s,i),a.silent||this.emit("added",e,r,n,i)}addResources(e,r,n,i={silent:!1}){for(const a in n)(Er(n[a])||Array.isArray(n[a]))&&this.addResource(e,r,a,n[a],{silent:!0});i.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,i,a,o={silent:!1,skipCopy:!1}){let s=[e,r];e.indexOf(".")>-1&&(s=e.split("."),i=n,n=r,r=s[1]),this.addNamespaces(r);let l=o4(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?Ige(l,n,a):l={...l,...n},rre(this.data,s,l),o.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var Oge={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,i){return t.forEach(a=>{e=this.processors[a]?.process(e,r,n,i)??e}),e}};const Pge=Symbol("i18next/PATH_KEY");function gOe(){const t=[],e=Object.create(null);let r;return e.get=(n,i)=>(r?.revoke?.(),i===Pge?t:(t.push(i),r=Proxy.revocable(n,e),r.proxy)),Proxy.revocable(Object.create(null),e).proxy}function FC(t,e){const{[Pge]:r}=t(gOe()),n=e?.keySeparator??".",i=e?.nsSeparator??":";if(r.length>1&&i){const a=e?.ns,o=Array.isArray(a)?a:null;if(o&&o.length>1&&o.slice(1).includes(r[0]))return`${r[0]}${i}${r.slice(1).join(n)}`}return r.join(n)}const ire={},nz=t=>!Er(t)&&typeof t!="boolean"&&typeof t!="number";class s4 extends zH{constructor(e,r={}){super(),aOe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
9i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=RA.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,r={interpolation:{}}){const n={...r};if(e==null)return!1;const i=this.resolve(e,n);if(i?.res===void 0)return!1;const a=nz(i.res);return!(n.returnObjects===!1&&a)}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!AOe(e,n,i);if(o&&!s){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Er(a)?[a]:a};const u=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(i)}return{key:e,namespaces:Er(a)?[a]:a}}translate(e,r,n){let i=typeof r=="object"?{...r}:r;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),e==null)return"";typeof e=="function"&&(e=FC(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]),e=e.map(V=>typeof V=="function"?FC(V,{...this.options,...i}):String(V));const a=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(e[e.length-1],i),u=l[l.length-1];let c=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=i.lng||this.language,d=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return d?a?{res:`${u}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${c}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:s;const A=this.resolve(e,i);let p=A?.res;const g=A?.usedKey||s,m=A?.exactUsedKey||s,y=["[object Number]","[object Function]","[object RegExp]"],b=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,T=i.count!==void 0&&!Er(i.count),B=s4.hasDefaultValue(i),R=T?this.pluralResolver.getSuffix(f,i.count,i):"",I=i.ordinal&&T?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):"",N=T&&!i.ordinal&&i.count===0,F=N&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${R}`]||i[`defaultValue${I}`]||i.defaultValue;let Q=p;x&&!p&&B&&(Q=F);const j=nz(Q),W=Object.prototype.toString.apply(Q);if(x&&Q&&j&&y.indexOf(W)<0&&!(Er(b)&&Array.isArray(Q))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,Q,{...i,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(A.res=V,A.usedParams=this.getUsedParamsDetails(i),A):V}if(o){const V=Array.isArray(Q),Y=V?[]:{},G=V?m:g;for(const K in Q)if(Object.prototype.hasOwnProperty.call(Q,K)){const X=`${G}${o}${K}`;B&&!p?Y[K]=this.translate(X,{...i,defaultValue:nz(F)?F[K]:void 0,joinArrays:!1,ns:l}):Y[K]=this.translate(X,{...i,joinArrays:!1,ns:l}),Y[K]===X&&(Y[K]=Q[K])}p=Y}}else if(x&&Er(b)&&Array.isArray(p))p=p.join(b),p&&(p=this.extendTranslation(p,e,i,n));else{let V=!1,Y=!1;!this.isValidLookup(p)&&B&&(V=!0,p=F),this.isValidLookup(p)||(Y=!0,p=s);const K=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:p,X=B&&F!==p&&this.options.updateMissing;if(Y||V||X){if(this.logger.log(X?"updateKey":"missingKey",f,u,s,X?F:p),o){const ce=this.resolve(s,{...i,keySeparator:!1});ce&&ce.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(let ce=0;ce<ne.length;ce++)q.push(ne[ce]);else this.options.saveMissingTo==="all"?q=this.languageUtils.toResolveHierarchy(i.lng||this.language):q.push(i.lng||this.language);const te=(ce,he,ve)=>{const ae=B&&ve!==p?ve:K;this.options.missingKeyHandler?this.options.missingKeyHandler(ce,u,he,ae,X,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ce,u,he,ae,X,i),this.emit
9("missingKey",ce,u,he,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?q.forEach(ce=>{const he=this.pluralResolver.getSuffixes(ce,i);N&&i[`defaultValue${this.options.pluralSeparator}zero`]&&he.indexOf(`${this.options.pluralSeparator}zero`)<0&&he.push(`${this.options.pluralSeparator}zero`),he.forEach(ve=>{te([ce],s+ve,i[`defaultValue${ve}`]||F)})}):te(q,s,F))}p=this.extendTranslation(p,e,i,A,n),Y&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${u}${c}${s}`),(Y||V)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${s}`:s,V?p:void 0,i))}return a?(A.res=p,A.usedParams=this.getUsedParamsDetails(i),A):p}extendTranslation(e,r,n,i,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const l=Er(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const f=e.match(this.interpolator.nestingRegexp);u=f&&f.length}let c=n.replace&&!Er(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||i.usedLng,n),l){const f=e.match(this.interpolator.nestingRegexp),d=f&&f.length;u<d&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...f)=>a?.[0]===f[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):this.translate(...f,r),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,s=Er(o)?[o]:o;return e!=null&&s?.length&&n.applyPostProcessor!==!1&&(e=Oge.handle(s,e,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,r={}){let n,i,a,o,s;return Er(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?FC(l,{...this.options,...r}):l)),e.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),c=u.key;i=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=r.count!==void 0&&!Er(r.count),A=d&&!r.ordinal&&r.count===0,p=r.context!==void 0&&(Er(r.context)||typeof r.context=="number")&&r.context!=="",g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(m=>{this.isValidLookup(n)||(s=m,!ire[`${g[0]}-${m}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(ire[`${g[0]}-${m}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(n))return;o=y;const b=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,y,m,r);else{let T;d&&(T=this.pluralResolver.getSuffix(y,r.count,r));const B=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(r.ordinal&&T.indexOf(R)===0&&b.push(c+T.replace(R,this.options.pluralSeparator)),b.push(c+T),A&&b.push(c+B)),p){const I=`${c}${this.options.contextSeparator||"_"}${r.context}`;b.push(I),d&&(r.ordinal&&T.indexOf(R)===0&&b.push(I+T.replace(R,this.options.pluralSeparator)),b.push(I+T),A&&b.push(I+B))}}let x;for(;x=b.pop();)this.isValidLookup(n)||(a=x,n=this.getResource(y,m,x,r))}))})}),{res:n,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,r,n,i):this.resourceStore.getResource(e,r,n,i)}
vendor: 16,272 bytes, line 9
9getUsedParamsDetails(e={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!Er(e.replace);let i=n?e.replace:e;if(n&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const a of r)delete i[a]}return i}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}class are{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=RA.create("languageUtils")}getScriptPartFromCode(e){if(e=LL(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=LL(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(Er(e)&&e.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(e)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const i=this.getScriptPartFromCode(n);if(this.isSupportedCode(i))return r=i;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),Er(e)&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],e),i=[],a=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Er(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):Er(e)&&a(this.formatLanguageCode(e)),n.forEach(o=>{i.indexOf(o)<0&&a(this.formatLanguageCode(o))}),i}}const ore={zero:0,one:1,two:2,few:3,many:4,other:5},sre={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class mOe{constructor(e,r={}){this.languageUtils=e,this.options=r,this.logger=RA.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,r={}){const n=LL(e==="dev"?"en":e),i=r.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(n,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),sre;if(!e.match(/-|_/))return sre;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,r)}return this.pluralRulesCache[a]=o,o}needsPlural(e,r={}){let n=this.getRule(e,r);return n||(n=this.getRule("dev",r)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,r,n={}){return this.getSuffixes(e,n).map(i=>`${r}${i}`)}getSuffixes(e,r={}){let n=this.getRule(e,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((i,a)=>ore[i]-ore[a]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,r,n={}){const i=this.getRule(e,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",r,n))}}const lre=(t,e,r,n=".",i=!0)=>{let a=lOe(t,e,r);return!a&&i&&Er(r)&&(a=yK(t,r,n),a===void 0&&(a=yK(e,r,n))),a},iz=t=>t.replace(/\$/g,"$$$$");class ure{constructor(e={}){this.logger=RA.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:A,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=r!==void 0?r:cOe,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?Rw(a):o||"{{",this.suffix=s?Rw(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Rw(d):A||Rw("$t("),this.nestingSuffix=p?Rw(p):g||Rw(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r?.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,r,n,i){let a,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=A=>{if(A.indexOf(this.formatSeparator)<0){const y=lre(r,l,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,n,{...i,...r,interpolationkey:A}):y}const p=A.split(this.formatSeparator),g=p.shift().trim(),m=p.join(this.formatSeparator).trim();return this.format(lre(r,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),m,n,{...i,...r,interpolationkey:g})};this.resetRegExp();const c=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:A=>iz(A)},{regex:this.regexp,safeValue:A=>this.escapeValue?iz(this.escape(A)):iz(A)}].forEach(A=>{for(s=0;a=A.regex.exec(e);){const p=a[1].trim();if(o=u(p),o===void 0)if(typeof c=="function"){const m=c(e,a,i);o=Er(m)?m:""}else if(i&&Object.prototype.hasOwnProperty.call(i,p))o="";else if(f){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),o="";else!Er(o)&&!this.useRawValueToEscape&&(o=Jte(o));const g=A.safeValue(o);if(e=e.replace(a[0],g),f?(A.regex.lastIndex+=o.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,r,n={}){let i,a,o;const s=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const f=l.split(new RegExp(`${Rw(c)}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,o);const A=d.match(/'/g),p=d.match(/"/g);((A?.length??0)%2===0&&!p||(p?.length??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${c}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];o={...n},o=o.replace&&!Er(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(l=i[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),a=r(s.call(this,i[1].trim(),o),o),a&&i[0]===e&&!Er(a))return a;Er(a)||(a=Jte(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),a=""),l.length&&(a=l.reduce((c,f)=>this.format(c,f,n.lng,{...n,interpolationkey:i[1].trim()}),a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}const yOe=t=>{let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);e==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=s.trim();r[c]||(r[c]=u),u==="false"&&(r[c]=!1),u==="true"&&(r[c]=!0),isNaN(u)||(r[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:r}},cre=t=>{const e={};return(r,n,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const o=n+JSON.stringify(a);let s=e[o];return s||(s=t(LL(n),i),e[o]=s),s(r)}},wOe=t=>(e,r,n)=>t(LL(r),n)(e);class _Oe{constructor(e={}){this.logger=RA.create("formatter"),this.options=e,this.init(e)}init(e,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const n=r.cacheInBuiltFormats?cre:wOe;this.formats={number:n((i,a)=>{const o=new Intl.NumberFormat(i,{...a});return s=>o.format(s)}),currency:n((i,a)=>{const o=new Intl.NumberFormat(i,{...a,style:"currency"});return s=>o.format(s)}),datetime:n((i,a)=>{const o=new Intl.DateTimeFormat(i,{...a});return s=>o.format(s)}),relativetime:n((i,a)=>{const o=new Intl.RelativeTimeFormat(i,{...a});return s=>o.format(s,a.range||"day")}),list:n((i,a)=>{const o=new Intl.ListFormat(i,{...a});return s=>o.format(s)})}}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=cre(r)}format(e,r,n,i={}){const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(s=>s.indexOf(")")>-1)){const s=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,s)].join(this.formatSeparator)}return a.reduce((s,l)=>{const{formatName:u,formatOptions:c}=yOe(l);if(this.formats[u]){let f=s;try{const d=i?.formatParams?.[i.interpolationkey]||{},A=d.locale||d.lng||i.locale||i.lng||n;f=this.formats[u](s,A,{...c,...i,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},e)}}const bOe=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class xOe extends zH{constructor(e,r,n,i={}){super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=RA.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(e,r,n,i){const a={},o={},s={},l={};return e.forEach(u=>{let c=!0;r.forEach(f=>{const d=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,c=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),l[f]===void 0&&(l[f]=!0)))}),c||(s[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,r,n){const i=e.split("|"),a=i[0],o=i[1];r&&this.emit("failedLoading",a,o,r),!r&&n&&this.store.addResourceBundle(a,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2,r&&n&&(this.state[e]=0);const s={};this.queue.forEach(l=>{sOe(l.loaded,[a],o),bOe(l,e),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const c=l.loaded[u];c.length&&c.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(e,r,n,i=0,a=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:i,wait:a,callback:o});return}this.readingCalls++;const s=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,r,n,i+1,a*2,o)},a);return}o(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(e,r);u&&typeof u.then=="function"?u.then(c=>s(null,c)).catch(s):s(null,u)}catch(u){s(u)}return}return l(e,r,s)}prepareLoading(e,r,n={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Er(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Er(r)&&(r=[r]);const a=this.queueLoad(e,r,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(o=>{this.loadOne(o)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e,r=""){const n=e.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${r}loading namespace ${a} for language ${i} failed`,o),!o&&s&&this.logger.log(`${r}loaded namespace ${a} for language ${i}`,s),this.loaded(e,o,s)})}saveMissing(e,r,n,i,a,o={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){const l={...o,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,r,n,i,l):c=u(e,r,n,i),c&&typeof c.then=="function"?c.then(f=>s(null,f)).catch(s):s(null,c)}catch(c){s(c)}else u(e,r,n,i,s,l)}!e||!e[0]||this.store.addResource(e[0],r,n,i)}}}const az=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Er(t[1])&&(e.defaultValue=t[1]),Er(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(n=>{e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),fre=t=>(Er(t.ns)&&(t.ns=[t.ns]),Er(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Er(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),WP=()=>{},SOe=t=>
9{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})},kge="__i18next_supportNoticeShown",COe=()=>!!(typeof globalThis<"u"&&globalThis[kge]||typeof process<"u"&&rz&&rz.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&rz),TOe=()=>{typeof globalThis<"u"&&(globalThis[kge]=!0)},EOe=t=>!!(t?.modules?.backend?.name?.indexOf("Locize")>0||t?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||t?.options?.backend?.backends&&t.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||t?.options?.backend?.projectId||t?.options?.backend?.backendOptions&&t.options.backend.backendOptions.some(e=>e?.projectId));class VM extends zH{constructor(e={},r){if(super(),this.options=fre(e),this.services={},this.logger=RA,this.modules={external:[]},SOe(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(e={},r){this.isInitializing=!0,typeof e=="function"&&(r=e,e={}),e.defaultNS==null&&e.ns&&(Er(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=az();this.options={...n,...this.options,...fre(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!EOe(this)&&!COe()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),TOe());const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?RA.init(i(this.modules.logger),this.options):RA.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=_Oe;const c=new are(this.options);this.store=new nre(this.options.resources,this.options);const f=this.services;f.logger=RA,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new mOe(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(f.formatter=i(u),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new ure(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new xOe(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(A,...p)=>{this.emit(A,...p)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new s4(this.services,this.options),this.translator.on("*",(A,...p)=>{this.emit(A,...p)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,r||(r=WP),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const s=N2(),l=()=>{const u=(c,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
9("initialized",this.options),s.resolve(f),r(c,f)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(e,r=WP){let n=r;const i=Er(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload?.forEach?.(s=>o(s)),this.services.backendConnector.load(a,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(e,r,n){const i=N2();return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r=void 0),e||(e=this.languages),r||(r=this.options.ns),n||(n=WP),this.services.backendConnector.reload(e,r,a=>{i.resolve(),n(a)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Oge.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,r){this.isLanguageChangingTo=e;const n=N2();this.emit("languageChanging",e);const i=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},a=(s,l)=>{l?this.isLanguageChangingTo===e&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...u)=>this.t(...u)),r&&r(s,(...u)=>this.t(...u))},o=s=>{!e&&!s&&this.services.languageDetector&&(s=[]);const l=Er(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Er(s)?[s]:s);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,c=>{a(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),n}getFixedT(e,r,n){const i=(a,o,...s)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([a,o].concat(s)):l={...o},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=FC(l.keyPrefix,u));const c=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(a)?f=a.map(d=>(typeof d=="function"&&(d=FC(d,u)),`${l.keyPrefix}${c}${d}`)):(typeof a=="function"&&(a=FC(a,u)),f=l.keyPrefix?`${l.keyPrefix}${c}${a}`:a),this.t(f,l)};return Er(e)?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
9if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(r.precheck){const s=r.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!i||o(a,e)))}loadNamespaces(e,r){const n=N2();return this.options.ns?(Er(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=N2();Er(e)&&(e=[e]);const i=this.options.preload||[],a=e.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return a.length?(this.options.preload=i.concat(a),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const i=new Intl.Locale(e);if(i&&i.getTextInfo){const a=i.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new are(az());return e.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},r){const n=new VM(e,r);return n.createInstance=VM.createInstance,n}cloneInstance(e={},r=WP){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new VM(i);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(s=>{a[s]=this[s]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){const s=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,f)=>(c[f]={...l[u][f]},c),l[u]),l),{});a.store=new nre(s,i),a.services.resourceStore=a.store}if(e.interpolation){const l={...az().interpolation,...this.options.interpolation,...e.interpolation},u={...i,interpolation:l};a.services.interpolator=new ure(u)}return a.translator=new s4(a.services,i),a.translator.on("*",(s,...l)=>{a.emit(s,...l)}),a.init(i,r),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ms=VM.createInstance();Ms.createInstance;Ms.dir;Ms.init;Ms.loadResources;Ms.reloadResources;Ms.use;Ms.changeLanguage;Ms.getFixedT;Ms.t;Ms.exists;Ms.setDefaultNamespace;Ms.hasLoadedNamespace;Ms.loadNamespaces;Ms.loadLanguages;const BOe=(t,e,r,n)=>{const i=[r,{code:e,...n||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(i,"warn","react-i18next::",!0);Sb(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...i):console?.warn&&console.warn(...i)},dre={},_K=(t,e,r,n)=>{Sb(r)&&dre[r]||(Sb(r)&&(dre[r]=new Date),BOe(t,e,r,n))},Nge=(t,e)=>()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},bK=(t,e,r)=>{t.loadNamespaces(e,Nge(t,r))},hre=(t,e,r,n)=>{if(Sb(r)&&(r=[r]),t.options.preload&&t.options.preload.indexOf(e)>-1)return bK(t,r,n);r.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,Nge(t,n))},DOe=(t,e,r={})=>
9!e.languages||!e.languages.length?(_K(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:r.lng,precheck:(n,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,t))return!1}}),Sb=t=>typeof t=="string",MOe=t=>typeof t=="object"&&t!==null,LOe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ROe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},IOe=t=>ROe[t],OOe=t=>t.replace(LOe,IOe);let xK={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:OOe,transDefaultProps:void 0};const POe=(t={})=>{xK={...xK,...t}},kOe=()=>xK;let Fge;const NOe=t=>{Fge=t},FOe=()=>Fge,UOe={type:"3rdParty",init(t){POe(t.options.react),NOe(t)}},HOe=H.createContext();class QOe{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var oz={exports:{}},sz={};var Are;function jOe(){if(Are)return sz;Are=1;var t=jH();function e(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,i=t.useEffect,a=t.useLayoutEffect,o=t.useDebugValue;function s(f,d){var A=d(),p=n({inst:{value:A,getSnapshot:d}}),g=p[0].inst,m=p[1];return a(function(){g.value=A,g.getSnapshot=d,l(g)&&m({inst:g})},[f,A,d]),i(function(){return l(g)&&m({inst:g}),f(function(){l(g)&&m({inst:g})})},[f]),o(A),A}function l(f){var d=f.getSnapshot;f=f.value;try{var A=d();return!r(f,A)}catch{return!0}}function u(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return sz.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,sz}var pre;function zOe(){return pre||(pre=1,oz.exports=jOe()),oz.exports}var VOe=zOe();const GOe=(t,e)=>{if(Sb(e))return e;if(MOe(e)&&Sb(e.defaultValue))return e.defaultValue;if(typeof t=="function")return"";if(Array.isArray(t)){const r=t[t.length-1];return typeof r=="function"?"":r}return t},KOe={t:GOe,ready:!1},WOe=()=>()=>{},d$=(t,e={})=>{const{i18n:r}=e,{i18n:n,defaultNS:i}=H.useContext(HOe)||{},a=r||n||FOe();a&&!a.reportNamespaces&&(a.reportNamespaces=new QOe),a||_K(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=H.useMemo(()=>({...kOe(),...a?.options?.react,...e}),[a,e]),{useSuspense:s,keyPrefix:l}=o,u=i||a?.options?.defaultNS,c=Sb(u)?[u]:u||["translation"],f=H.useMemo(()=>c,c);a?.reportNamespaces?.addUsedNamespaces?.(f);const d=H.useRef(0),A=H.useCallback(F=>{if(!a)return WOe;const{bindI18n:Q,bindI18nStore:j}=o,W=()=>{d.current+=1,F()};return Q&&a.on(Q,W),j&&a.store.on(j,W),()=>{Q&&Q.split(" ").forEach(V=>a.off(V,W)),j&&j.split(" ").forEach(V=>a.store.off(V,W))}},[a,o]),p=H.useRef(),g=H.useCallback(()=>{if(!a)return KOe;const F=!!(a.isInitialized||a.initializedStoreOnce)&&f.every(G=>DOe(G,a,o)),Q=e.lng||a.language,j=d.current,W=p.current;if(W&&W.ready===F&&W.lng===Q&&W.keyPrefix===l&&W.revision===j)return W;const Y={t:a.getFixedT(Q,o.nsMode==="fallback"?f:f[0],l),ready:F,lng:Q,keyPrefix:l,revision:j};return p.current=Y,Y},[a,f,l,o,e.lng]),[m,y]=H.useState(0),{t:b,ready:x}=VOe.useSyncExternalStore(A,g,g);H.useEffect(()=>{if(a&&!x&&!s){const F=()=>y(Q=>Q+1);e.lng?hre(a,e.lng,f,F):bK(a,f,F)}},[a,e.lng,f,x,s,m]);const T=a||{},B=H.useRef(null),R=H.useRef(),I=F=>{const Q=Object.getOwnPropertyDescriptors(F);Q.__original&&delete Q.__original;const j=Object.create(Object.getPrototypeOf(F),Q);if(!Object.prototype.hasOwnProperty.call(j,"__original"))try{Object.defineProperty(j,"__original",{value:F,writable:!1,enumerable:!1,
9configurable:!1})}catch{}return j},N=H.useMemo(()=>{const F=T,Q=F?.language;let j=F;F&&(B.current&&B.current.__original===F?R.current!==Q?(j=I(F),B.current=j,R.current=Q):j=B.current:(j=I(F),B.current=j,R.current=Q));const W=!x&&!s?(...Y)=>(_K(a,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),b(...Y)):b,V=[W,j,x];return V.t=W,V.i18n=j,V.ready=x,V},[b,T,x,T.resolvedLanguage,T.language,T.languages]);if(a&&s&&!x)throw new Promise(F=>{const Q=()=>F();e.lng?hre(a,e.lng,f,Q):bK(a,f,Q)});return N},YOe="Select Language",$Oe="View Aggregate Dashboard",ZOe="Capacity",XOe="Year",qOe="Nature",JOe="Indoor",ePe="Gateway",tPe="View Dashboard",rPe="With Device",nPe="No device",iPe="Save as image",aPe="Name",oPe="Level Detatils",sPe="Belong to",lPe="No of power assets",uPe="Devices",cPe="All devices",fPe="Cancel",dPe="Export Data",hPe="Edit Profile",APe="ID",pPe="User Avatar",vPe="Operation",gPe="First Name",mPe="Last Name",yPe="Email",wPe="Company",_Pe="To change your Permission type",bPe="Date/Time",xPe="Duration",SPe="Overview",CPe="Log Book",TPe="Assets Classification",EPe="Last Seen",BPe={"login.login_prompt":"Login to continue","login.email_address":"Email address","login.password":"Password","login.remember_me":"Remeber Me?","login.forgot_pwd":"Forgot Password","login.login_btn":"Login","login.smarterise_login":"Login in to continue using the Smarterise web app","login.google_login":"Continue with Google","login.welcome_msg":"Welcome","sidebar.sites":"Sites","sidebar.home":"Home","sidebar.transactions":"Transactions","sidebar.activity_log":"Activity Log","sidebar.users":"Users","sidebar.user_analytics":"User Analytics","sidebar.companies":"Companies","sidebar.my_account":"My Account","sidebar.powered_by":"Powered by","filter.today":"Today","filter.month":"This month","filter.custom":"Custom","filter.start_date":"Start Date","filter.60_days":"60 days","filter.7_days":"7 days","filter.30_days":"1 month","filter.90_days":"3 months","filter.120_days":"4 months","filter.150_days":"5 months","filter.180_days":"6 months","filter.end_date":"End Date","filter.apply_filter":"Apply filter","day.sunday":"Sunday","day.monday":"Monday","day.tuesday":"Tuesday","day.wednesday":"Wednesday","day.thursday":"Thursday","day.friday":"Friday","day.saturday":"Saturday","month.jan":"January","month.feb":"February","month.mar":"March","month.apr":"April","month.may":"May","month.jun":"June","month.jul":"July","month.aug":"August","month.sep":"September","month.oct":"October","month.nov":"November","month.dec":"December","readings.co2_emissions":"Carbon Emission","readings.total_consumption":"Total Consumption","readings.current_load":"Current Load","readings.reactive_power":"Reactive Power","readings.apparent_power":"Apparent power","readings.frequency":"Frequency","readings.power_factor_penalty":"Power Factor Penalty","readings.power_factor_overall":"Power Factor Overall","readings.power_factor_overall_phase_a":"Power Factor Phase A","readings.power_factor_overall_phase_b":"Power Factor Phase B","readings.power_factor_overall_phase_c":"Power Factor Phase C","readings.power_factor":"Power Factor","readings.current_unbalance":"Current Unbalance","readings.voltage_unbalance":"Voltage Unbalance","readings.current_phase_a":"Current Phase A","readings.current_phase_b":"Current Phase B","readings.current_phase_c":"Current Phase C","readings.tariff_losses":"Tariff Losses","readings.revenue_per_hour":"Revenue/Hour","readings.neutral_current":"Neutral Current","readings.voltage_phase_a":"Voltage Phase A","readings.voltage_phase_b":"Voltage Phase B","readings.voltage_phase_c":"Voltage Phase C","readings.harmonic_distortion_label":"Harmonic Distortion","readings.harmonic_distortion_phase_a":"Harmonic Distortion Phase A","readings.harmonic_distortion_phase_b":"Harmonic Distortion Phase B","readings.no_of_sites":"Number of Sites","readings.no_of_users":"Number of users","readings.harmonic_distortion_phase_c":"Harmonic Distortion Phase C","readings.avg_availability":"Average Availability","readings.power_cuts":"Power Cut
9s","chart.billed_energy_label":"Amount Billed","chart.collection_label":"Amount Collected","readings.overloaded_dts":"Overloaded DTs","chart.site_locations":"Site locations","common.all":"All","chart.transformer_load_rate":"Transformer Load Rate","chart.transformer_status":"Transformer Status","chart.voltage_profile":"Voltage Profile","chart.daily_expected_revenue":"Daily Expected Revenue","chart.maximum":"Maximum","chart.minimum":"Minimum","chart.average":"Average","chart.daily_consumption":"Daily Consumption","chart.site_performance":"Site Performance","chart.load_profile_predicted":"Predicted Load Profile","chart.load_profile":"Load Profile","chart.label_defaulting":"Defaulting","chart.label_paying":"Paying","chart.apparent_power_chart_label":"Apparent power","chart.customer_breakdown":"Customer Breakdown","readings.expected_revenue":"Expected Revenue","readings.excludes_substation":"Excludes substation readings","chart.expected_revenue":"Expected Revenue","chart.financial_performance_label":"Financial Performace","chart.carbon_emissions_label":"Carbon Emission","chart.reliability_kpi":"Reliability","chart.load_profile_label":"Load (kW)","chart.site_monitored":"Site Monitored","chart.num_locations":"18 Locations","common.active":"Active","common.online":"Online","common.all_status":"All","common.offline":"Offline","chart.power_consumption_by_site":"Total Consumption per site","table.site_performance":"Site performance","table.region":"Region","table.device_name":"Device Name","table.load_rate":"Load Rate","readings.voltage_unbalance_factor":"Voltage unbalance factor","readings.current_unbalance_factor":"Current unbalance factor","table.percent_exceed_threshold":"Percentage of time exceeding threshold (daily)",select_language:YOe,"asset_classification.area":"Area","asset_classification.sub_station_1":"Sub Station 1","asset_classification.sub_station_2":"Sub Station 2","asset_classification.feeder_1":"Feeder 1","asset_classification.feeder_2":"Feeder 2","asset_classification.zone_a":"Zone A","asset_classification.zone_b":"Zone B","asset_classification.zone_c":"Zone C","asset_classification.zone_d":"Zone D",view_aggregate_dashboard:$Oe,"asset_type.generator":"Generator","asset_type.transformer":"Transformer",capacity:ZOe,year:XOe,nature:qOe,"site_details.top_of_pole":"Top of pole",indoor:JOe,gateway:ePe,"common.status":"Status",view_dashboard:tPe,with_device:rPe,no_device:nPe,"site_details.asset_name":"Name","site_details.title":"Site Details","site_details.asset_type":"Type","site_details.asset_coordinate":"Co-ordinate","site_details.asset_capacity":"Capacity","site_details.nature_of_ownership":"Nature of Ownership","site_details.type_of_installation":"Type of Installation","site_details.year":"Year of manufacture","site_details.gateway_serial":"Gateway Serial","site_details.location":"Locations","site_details.substation_name":"Substation Name","site_details.feeder_name":"Feeder Name","site_details.feeder_voltage_level":"Feeder Voltage Level","chart.transformer_load_rate_label":"Transformer Load Rate","chart.average_load":"Average Load","chart.minimum_load":"Minimum Load","chart.power_consumption":"Power Consumption","chart.maximum_load":"Maximum Load","map.transformer_status":"Transformer Status","map.transformer_load_rate":"Transformer Load Rate","chart.time_label":"Time","chart.voltage_profile_label":"Voltage (V)","readings.line_current_overall_phase_a":"Line Current Phase A","readings.line_current_overall_phase_b":"Line Current Phase B","readings.line_current_overall_phase_c":"Line Current Phase C","readings.energy_loss":"Energy Loss","readings.line_current_overall_neutral":"Line Current Neutral","readings.line_neutral_voltage_a":"Line to Neutral Voltage Phase A","readings.line_neutral_voltage_b":"Line to Neutral Voltage Phase B","readings.line_neutral_voltage_c":"Line to Neutral Voltage Phase C","chart.phase_a":"Phase A","chart.phase_b":"Phase B","chart.phase_c":"Phase C","chart.current_profile":"Current Profile","chart.current_profile_label":"Current (Amps)","chart.neutral_phase":"Neutral Phase","":"",save_as_image:iPe,name:aPe,level_details:oPe,belong_to:sPe,num_power_assets:lPe,"readings.total_revenue":"Total Revenue",devices:uPe,all_devices:cPe,cancel:fPe,export_data:dPe,edit_profile:hPe,id:APe,user_avatar:pPe,operation:vPe,first_name:gPe,last_name:mPe,email:yPe,company:wPe,"error_msg.start_gt_end":"Start date cannot be greater than end date","error_msg.end_lt_start":"End date cannot be lesser than start date","error_msg.range_exceed":"Date range should not be greater than 31 days","error_msg.future_date":"End date cannot be in the future","error_msg.unable_to_fetch_zone":"Unable to fetch zone","feedback_msg.no_data":"No data available","feedback_msg.upcoming":"This is an upcoming feature","feedback_msg.error_fetching":"Error fetching data","feedback_msg.unable_to_fetch_site_map":"Unable to fetch site map","feedback_msg.no_sites_found":"No sites found","feedback_msg.contact_super_admin":"Contact Super Admin",feedback_msg_change_permission:_Pe,"feeback.grid_description":"Grid Metrics","feedback.grid_heading":"Grid Power System","feedback.dummy_data":"This is a dummy data","feedback.search_device":"Search device","feedback_msg.no_device":"No readings found","common.device":"Device","common.devices":"Devices","finance.subscriptions":"Subscriptions",date_time:bPe,"finance.amount_billed":"Amount Billed","finance.amount":"Amount","finance.amount_collected":"Amount Collected",duration:xPe,"finance.paid":"Paid",overview:SPe,"role.operations":"Operations","role.manager":"Manager","role.admin":"Admin","role.demo":"Demo","role.sbee":"SBEE","role.finance":"Finance",log_book:CPe,asset_classifications:TPe,"greetings.welcome":"Welcome Back",last_seen:EPe,"alert.type":"Alert Type","alert.critical":"Critical","alert.warning":"Warning","alert.parameter":"Parameter","alert.site":"Site","alert.zone":"Zone","alert.threshold":"Threshold","alert.history":"Alert History","alert.detected_value":"Detected Value","export.raw_data":"Raw data","common.day":"day","common.days":"days","common.hour":"hour","common.hours":"hours","group.others":"Others","label.search":"Search","label.regi
9on":"Region","instruction.select_details":"Select details to export","account_info.first_name":"First Name","account_info.last_name":"Last Name","account_info.email":"Email","account_info.company":"Company","roles.manager":"Manager","roles.admin":"Admin","roles.operations":"Operations","roles.finance":"Finance","map.customer_maping":"Customer Mapping","label.in_progress":"In progress","chart.thermal_image":"Thermal Image","info.has_thermal_image":"This site has thermal image","site_grade.title":"Site Grade","site_grade.range_label":"Grading period","site_grade.this_week":"This week","site_grade.last_week":"Last week","site_grade.this_month":"This month","site_grade.last_month":"Last month","site_grade.final":"Final","site_grade.in_progress":"In progress, data through {{date}}","site_grade.component_load":"Transformer load","site_grade.component_power_cut":"Power cut","site_grade.component_current_unbalance":"Current unbalance","site_grade.component_neutral_current":"Neutral current","site_grade.component_thd":"Harmonic distortion","site_grade.component_power_factor":"Power factor","site_grade.not_graded":"Not graded — online {{online}} of {{days}} days","site_grade.no_data":"No readings received for this period","site_grade.no_data_hint":"Likely disconnected or a dead gateway","site_grade.not_applicable":"Grading applies to transformer sites only","site_grade.consumption":"Consumption","site_grade.underloaded":"Underloaded {{pct}}% of the time"},DPe="Sélectionner la langue",MPe="Afficher le tableau de bord global",LPe="Capacité",RPe="Année",IPe="Nature",OPe="Intérieur",PPe="Passerelle",kPe="Afficher le tableau de bord",NPe="Avec appareil",FPe="Sans appareil",UPe="Enregistrer comme image",HPe="Nom",QPe="Détails du niveau",jPe="Appartient à",zPe="Nombre d’actifs électriques",VPe="Appareils",GPe="Tous les appareils",KPe="Annuler",WPe="Exporter les données",YPe="Modifier votre profile",$Pe="IDENTIFIANT",ZPe="Avatar de l'utilisateur",XPe="Gestion operationelle",qPe="Prénom",JPe="Nom de famille",eke="Courriel",tke="Entreprise",rke="Pour modifier votre type d'autorisation,",nke="Date/Heure",ike="Durée",ake="Présentation",oke="Journal de bord",ske="Classification des actifs",lke="Vu pour la dernière fois",uke={"login.login_prompt":"Connectez-vous pour continuer","login.email_address":"Adresse courriel","login.password":"Mot de passe","login.remember_me":"Rappel du mot de passe ?","login.forgot_pwd":"Mot de passe oublié","login.login_btn":"Se connecter","login.smarterise_login":"Connexion pour continuer à utiliser l'application web Smarterise","login.google_login":"Continuer avec Google","login.welcome_msg":"Bienvenue","sidebar.sites":"Postes","sidebar.home":"Acceuil","sidebar.transactions":"Transactions","sidebar.activity_log":"Journal d'activité","sidebar.users":"Utilisateurs","sidebar.user_analytics":"Analyse des utilisateurs","sidebar.companies":"Entreprises","sidebar.my_account":"Mon compte","sidebar.powered_by":"Conçu par","filter.today":"Aujourd'hui","filter.month":"Ce mois-ci","filter.custom":"Coutume","filter.start_date":"Date de début","filter.60_days":"60 jours","filter.7_days":"7 jours","filter.30_days":"1 mois","filter.90_days":"3 mois","filter.120_days":"4 mois","filter.150_days":"5 mois","filter.180_days":"6 mois","filter.end_date":"Date de fin","filter.apply_filter":"Appliquer le filtre","day.sunday":"Dimanche","day.monday":"Lundi","day.tuesday":"Mardi","day.wednesday":"Mercredi","day.thursday":"Jeudi","day.friday":"Vendredi","day.saturday":"Samedi","month.jan":"Janvier","month.feb":"Février","month.mar":"Mars","month.apr":"Avril","month.may":"Peut","month.jun":"Juin","month.jul":"Juillet","month.aug":"Août","month.sep":"Septembre","month.oct":"Octobre","month.nov":"Novembre","month.dec":"Décembre","readings.co2_emissions":"Émission de carbone","readings.total_consumption":"Consommation totale","readings.current_load":"Charge instantanne","readings.reactive_power":"Puissance réactive","readings.apparent_power":"Puissance apparente","readings.frequency":"Fréquence","readings.power_factor_penalty":"Pénalité du facteur de puissance","readings.power_factor_overall":"Facteur de puissance global","readings.power_factor_overall_phase_a":"Facteur de puissance phase A","readings.power_factor_overall_phase_b":"Facteur de puissance phase B","readings.power_factor_overall_phase_c":"Facteur de puissance phase C","readings.power_factor":"Facteur de puissance","readings.current_unbalance":"Déséquilibre de courant","readings.voltage_unbalance":"Déséquilibre de tension","readings.current_phase_a":"Courant Phase A","readings.current_phase_b":"Courant Phase B","readings.current_phase_c":"Courant Phase C","readings.tariff_losses":"Pertes tarifaires","readings.revenue_per_hour":"Revenu/heure","readings.neutral_current":"Courant du neutre","readings.voltage_phase_a":"Tension Phase A","readings.voltage_phase_b":"Tension Phase B","readings.voltage_phase_c":"Tension Phase C","readings.harmonic_distortion_label":"Distorsion harmonique","readings.harmonic_distortion_phase_a":"Distorsion harmonique Phase A","readings.harmonic_distortion_phase_b":"Distorsion harmonique Phase B","readings.no_of_sites":"Nombre de sites","readings.no_of_users":"Nombre d'utilisateurs","readings.harmonic_distortion_phase_c":"Distorsion harmonique Phase C","readings.avg_availability":"Disponibilité moyenne","readings.power_cuts":"Coupure(s) de courant","chart.billed_energy_label":"Montant facturé","chart.collection_label":"Montant collecté","readings.overloaded_dts":"DT surchargés","chart.site_locations":"Emplacements du poste","common.all":"Tous","chart.transformer_load_rate":"Courbe de charge du transformateur","chart.transformer_status":"État du transformateur","chart.voltage_profile":"Profil de tension","chart.daily_expected_revenue":"Revenu quotidien attendu","chart.maximum":"Maximum","chart.minimum":"Minimum","chart.average":"Moyenne","chart.daily_consumption":"Consommation journalière","chart.site_performance":"Performances du poste","chart.load_profile_predicted":"Profil de charge prévu","chart.load_profile":"Profil de charge","chart.label_defaulting":"par défaut","chart.label_paying":"Payant","chart.apparent_power_chart_label":"Puissance apparente","chart.customer_breakdown":"Répartition des clients","readings.expected_revenue":"Revenu prévu","readings.excludes_substation":"Hors relevés des postes","chart.expected_revenue":"Revenu prévu","chart.financial_performance_label":"Performance financière","chart.carbon_emissions_label":"Émission de carbone","chart.reliability_kpi":"Fiabilité","chart.load_profile_label":"Charge  (kW)","chart.site_monitored":"Poste surveillé","chart.num_locations":"18 emplacements","common.active":"Actif","common.online":"En ligne","common.all_status":"tout","common.offline":"Hors ligne","chart.power_consumption_by_site":"Consommation totale par poste","table.site_performance":"Performance du poste","table.regi
9on":"Région","table.device_name":"Nom de l’appareil","table.load_rate":"Courbe de charge","readings.voltage_unbalance_factor":"Facteur de déséquilibre de tension","readings.current_unbalance_factor":"Facteur de déséquilibre de courant","table.percent_exceed_threshold":"Pourcentage du temps dépassant le seuil (quotidien)",select_language:DPe,"asset_classification.area":"Zone","asset_classification.sub_station_1":"Poste électrique 1","asset_classification.sub_station_2":"Poste électrique 2","asset_classification.feeder_1":"Départ 1","asset_classification.feeder_2":"Départ 2","asset_classification.zone_a":"Zone A","asset_classification.zone_b":"Zone B","asset_classification.zone_c":"Zone C","asset_classification.zone_d":"Zone D",view_aggregate_dashboard:MPe,"asset_type.generator":"Générateur","asset_type.transformer":"Transformateur",capacity:LPe,year:RPe,nature:IPe,"site_details.top_of_pole":"Sommet du poteau",indoor:OPe,gateway:PPe,"common.status":"Statut",view_dashboard:kPe,with_device:NPe,no_device:FPe,"site_details.asset_name":"Nom","site_details.title":"Détails du poste","site_details.asset_type":"Type","site_details.asset_coordinate":"Coordonnée","site_details.asset_capacity":"Capacité","site_details.nature_of_ownership":"Nature de la propriété","site_details.type_of_installation":"Type d’installation","site_details.year":"Année de fabrication","site_details.gateway_serial":"Série de passerelle","site_details.location":"Emplacements","site_details.substation_name":"Nom du poste","site_details.feeder_name":"Nom du départ","site_details.feeder_voltage_level":"Niveau de tension du départ","chart.transformer_load_rate_label":"Courbe de charge du transformateur","chart.average_load":"Charge Moyenne","chart.minimum_load":"Charge Minimale","chart.power_consumption":"Consommation d'énergie","chart.maximum_load":"Charge Maximale","map.transformer_status":"Statut du transformateur","map.transformer_load_rate":"Courbe de charge du transformateur","chart.time_label":"Heure","chart.voltage_profile_label":"Tension (V)","readings.line_current_overall_phase_a":"Courant de ligne Phase A","readings.line_current_overall_phase_b":"Courant de ligne Phase B","readings.line_current_overall_phase_c":"Courant de ligne Phase C","readings.energy_loss":"Perte d'énergie","readings.line_current_overall_neutral":"Courant de ligne neutre","readings.line_neutral_voltage_a":"Tension phase-neutre Phase A","readings.line_neutral_voltage_b":"Tension phase-neutre Phase B","readings.line_neutral_voltage_c":"Tension phase-neutre Phase C","chart.phase_a":"Phase A","chart.phase_b":"Phase B","chart.phase_c":"Phase C","chart.current_profile":"Profil de courant","chart.current_profile_label":"Courant (Amps)","chart.neutral_phase":"Phase neutre","":"",save_as_image:UPe,name:HPe,level_details:QPe,belong_to:jPe,num_power_assets:zPe,"readings.total_revenue":"Revenu total",devices:VPe,all_devices:GPe,cancel:KPe,export_data:WPe,edit_profile:YPe,id:$Pe,user_avatar:ZPe,operation:XPe,first_name:qPe,last_name:JPe,email:eke,company:tke,"error_msg.start_gt_end":"La date de début ne peut pas être postérieure à la date de fin","error_msg.end_lt_start":"La date de fin ne peut pas être antérieure à la date de début","error_msg.range_exceed":"La plage de dates ne doit pas dépasser 31 jours","error_msg.future_date":"La date de fin ne peut pas être dans le futur","error_msg.unable_to_fetch_zone":"Impossible de récupérer la zone","feedback_msg.no_data":"Aucune donnée disponible","feedback_msg.upcoming":"Fonctionnalité à venir","feedback_msg.error_fetching":"Erreur lors de la récupération des données","feedback_msg.unable_to_fetch_site_map":"Impossible de récupérer la carte du site","feedback_msg.no_sites_found":"Aucun site trouvé","feedback_msg.contact_super_admin":"contactez le super administrateur",feedback_msg_change_permission:rke,"feeback.grid_description":"Indicateurs réseau","feedback.grid_heading":"Système d'alimentation en réseau","feedback.dummy_data":"Il s'agit de données fictives","feedback.search_device":"Rechercher un appareil","feedback_msg.no_device":"Aucune lecture trouvée","common.device":"Appareil","common.devices":"Appareils","finance.subscriptions":"Abonnements",date_time:nke,"finance.amount_billed":"Montant facturé","finance.amount":"Montant","finance.amount_collected":"Montant acheté",duration:ike,"finance.paid":"Payé",overview:ake,"role.operations":"Opérations","role.manager":"Manager","role.admin":"Admin","role.demo":"Démo","role.sbee":"SBEE","role.finance":"Finances",log_book:oke,asset_classifications:ske,"greetings.welcome":"Content de te revoir",last_seen:lke,"alert.type":"Type d'alerte","alert.critical":"Critique","alert.warning":"Avertissement","alert.parameter":"Paramètre","alert.site":"Site","alert.zone":"Zone","alert.threshold":"Seuil","alert.history":"Historique des alertes","alert.detected_value":"Valeur détectée","export.raw_data":"Données brutes","common.day":"jour","common.days":"jours","common.hour":"heure","common.hours":"heures","group.others":"autres","label.search":"Recherche","label.regi
9on":"Région","instruction.select_details":"Sélectionnez les détails à exporter","account_info.first_name":"Prénom","account_info.last_name":"Nom de famille","account_info.email":"Adresse e-mail","account_info.company":"Entreprise","roles.manager":"Directeur","roles.admin":"Administrateur","roles.operations":"Opérations","roles.finance":"Finance","map.customer_maping":"Cartographie des clients","label.in_progress":"en progrès","chart.thermal_image":"Image thermique","info.has_thermal_image":"Ce site possède des images thermiques","site_grade.title":"Note du site","site_grade.range_label":"Période de notation","site_grade.this_week":"Cette semaine","site_grade.last_week":"Semaine dernière","site_grade.this_month":"Ce mois-ci","site_grade.last_month":"Mois dernier","site_grade.final":"Définitive","site_grade.in_progress":"En cours, données jusqu'au {{date}}","site_grade.component_load":"Charge du transformateur","site_grade.component_power_cut":"Coupures de courant","site_grade.component_current_unbalance":"Déséquilibre de courant","site_grade.component_neutral_current":"Courant de neutre","site_grade.component_thd":"Distorsion harmonique","site_grade.component_power_factor":"Facteur de puissance","site_grade.not_graded":"Non noté — en ligne {{online}} sur {{days}} jours","site_grade.no_data":"Aucune mesure reçue pour cette période","site_grade.no_data_hint":"Probablement déconnecté ou passerelle hors service","site_grade.not_applicable":"La notation s'applique uniquement aux transformateurs","site_grade.consumption":"Consommation","site_grade.underloaded":"Sous-chargé {{pct}} % du temps"};var bi=(t=>(t.PRIMARY="btn-primary yellow-gradient",t.PRIMARY_DARK_BLUE="btn-primary-dark-blue dark-blue-gradient",t.SECONDARY="btn-secondary",t.DISABLED="btn-disabled",t.DELETE="btn-danger",t))(bi||{}),VH=(t=>(t.H1="text-2xl text-primary-dark-blue font-semibold",t.H2="text-lg text-primary-dark-blue font-semibold",t.H3="text-base text-primary-dark-blue font-semibold",t))(VH||{}),jv=(t=>(t.NUMBER="number",t.TEXT="text",t.PASSWORD="password",t.EMAIL="email",t.DATE="date",t))(jv||{}),an=(t=>(t.TRANSFORMER="transformer",t.SUBSTATION_FEEDER="substation_feeder",t))(an||{}),iu=(t=>(t.EN_US="en-US",t.EN_GB="en-GB",t.FR_FR="fr-FR",t.DE_DE="de-DE",t.ES_ES="es-ES",t.IT_IT="it-IT",t.PT_PT="pt-PT",t.AR_SA="ar-SA",t.SW_KE="sw-KE",t.EN_NG="en-NG",t))(iu||{});Ms.use(UOe).init({resources:{en:{translation:BPe},fr:{translation:uke}},lng:iu.EN_US,fallbackLng:iu.EN_US,interpolation:{escapeValue:!1}});var h$=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Uge=/^[\\/]{2}/;function cke(t,e){return e+t.replace(/\\/g,"/")}var vre="popstate";function gre(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function fke(t={}){function e(n,i){let a=i.state?.masked,{pathname:o,search:s,hash:l}=a||n.location;return SK("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default",a?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,i){return typeof i=="string"?i:Cb(i)}return hke(e,r,null,t)}function ao(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Xf(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function dke(){return Math.random().toString(36).substring(2,10)}function mre(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function SK(t,e,r=null,n,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?WR(e):e,state:r,key:e&&e.key||n||dke(),mask:i}}function Cb({pathname:t="/",search:e="",hash:r=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function WR(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substring(r),t=t.substring(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substring(n),t=t.substring(0,n)),t&&(e.pathname=t)}return e}function hke(t,e,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s="POP",l=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function f(){s="POP";let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function d(m,y){s="PUSH";let b=gre(m)?m:SK(g.location,m,y);u=c()+1;let x=mre(b,u),T=g.createHref(b.mask||b);try{o.pushState(x,"",T)}
9catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;i.location.assign(T)}a&&l&&l({action:s,location:g.location,delta:1})}function A(m,y){s="REPLACE";let b=gre(m)?m:SK(g.location,m,y);u=c();let x=mre(b,u),T=g.createHref(b.mask||b);o.replaceState(x,"",T),a&&l&&l({action:s,location:g.location,delta:0})}function p(m){return Ake(i,m)}let g={get action(){return s},get location(){return t(i,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(vre,f),l=m,()=>{i.removeEventListener(vre,f),l=null}},createHref(m){return e(i,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:A,go(m){return o.go(m)}};return g}function Ake(t,e,r=!1){let n="http://localhost";t&&(n=t.location.origin!=="null"?t.location.origin:t.location.href),ao(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Cb(e);return i=i.replace(/ $/,"%20"),!r&&Uge.test(i)&&(i=n+i),new URL(i,n)}function Hge(t,e,r="/"){return pke(t,e,r,!1)}function pke(t,e,r,n,i){let a=typeof e=="string"?WR(e):e,o=ng(a.pathname||"/",r);if(o==null)return null;let s=vke(t),l=null,u=Eke(o);for(let c=0;l==null&&c<s.length;++c)l=Tke(s[c],u,n);return l}function vke(t){let e=Qge(t);return gke(e),e}function Qge(t,e=[],r=[],n="",i=!1){let a=(o,s,l=i,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&l)return;ao(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let f=ih([n,c.relativePath]),d=r.concat(c);o.children&&o.children.length>0&&(ao(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Qge(o.children,e,d,f,l)),!(o.path==null&&!o.index)&&e.push({path:f,score:Ske(f,o.index),routesMeta:d.map((A,p)=>{let[g,m]=Vge(A.relativePath,A.caseSensitive,p===d.length-1);return{...A,matcher:g,compiledParams:m}})})};return t.forEach((o,s)=>{if(o.path===""||!o.path?.includes("?"))a(o,s);else for(let l of jge(o.path))a(o,s,!0,l)}),e}function jge(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=jge(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function gke(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Cke(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var mke=/^:[\w-]+$/,yke=3,wke=2,_ke=1,bke=10,xke=-2,yre=t=>t==="*";function Ske(t,e){let r=t.split("/"),n=r.length;return r.some(yre)&&(n+=xke),e&&(n+=wke),r.filter(i=>!yre(i)).reduce((i,a)=>i+(mke.test(a)?yke:a===""?_ke:bke),n)}function Cke(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function Tke(t,e,r=!1){let{routesMeta:n}=t,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,c=a==="/"?e:e.slice(a.length)||"/",f={path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d=l.matcher&&l.compiledParams?zge(f,c,l.matcher,l.compiledParams):l4(f,c),A=l.route;if(!d&&u&&r&&!n[n.length-1].route.index&&(d=l4({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
9Object.assign(i,d.params),o.push({params:i,pathname:ih([a,d.pathname]),pathnameBase:Mke(ih([a,d.pathnameBase])),route:A}),d.pathnameBase!=="/"&&(a=ih([a,d.pathnameBase]))}return o}function l4(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=Vge(t.path,t.caseSensitive,t.end);return zge(t,e,r,n)}function zge(t,e,r,n){let i=e.match(r);if(!i)return null;let a=i[0],o=aT(a,1),s=i.slice(1);return{params:n.reduce((u,{paramName:c,isOptional:f},d)=>{if(c==="*"){let p=s[d]||"";o=aT(a.slice(0,a.length-p.length),1)}const A=s[d];return f&&!A?u[c]=void 0:u[c]=(A||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:t}}function Vge(t,e=!1,r=!0){Xf(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l,u,c)=>{if(n.push({paramName:s,isOptional:l!=null}),l){let f=c.charAt(u+o.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function Eke(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Xf(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function ng(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function Bke(t,e="/"){let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?WR(t):t,a;return r?(r=Gge(r),r.startsWith("/")||r.startsWith("\\")?a=wre(r.substring(1),"/"):a=wre(r,e)):a=e,{pathname:a,search:Lke(n),hash:Rke(i)}}function wre(t,e){let r=aT(e).split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function lz(t,e,r,n){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Dke(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function A$(t){let e=Dke(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function GH(t,e,r,n=!1){let i;typeof t=="string"?i=WR(t):(i={...t},ao(!i.pathname||!i.pathname.includes("?"),lz("?","pathname","search",i)),ao(!i.pathname||!i.pathname.includes("#"),lz("#","pathname","hash",i)),ao(!i.search||!i.search.includes("#"),lz("#","search","hash",i)));let a=t===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let f=e.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?e[f]:"/"}let l=Bke(i,s),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Gge=t=>t.replace(/[\\/]{2,}/g,"/"),ih=t=>Gge(t.join("/"));function aT(t,e=0){let r=t.length;for(;r>e&&t.charCodeAt(r-1)===47;)r--;return r===t.length?t:t.slice(0,r)}var Mke=t=>aT(t).replace(/^\/*/,"/"),Lke=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Rke=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Ike=class{constructor(t,e,r,n=!1){this.status=t,this.statusText=e||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Oke(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function Pke(t){let e=t.map(r=>r.route.path).filter(Boolean);return ih(e)||"/"}var Kge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wge(t,e){let r=t;if(typeof r!="string"||!h$.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(Kge)try{let a=new URL(window.location.href),o=Uge.test(r)?new URL(cke(r,a.protocol)):new URL(r),s=ng(o.pathname,e);o.origin===a.origin&&s!=null?r=s+o.search+o.hash:i=!0}catch{Xf(!1,`<Link to="${r}">
9 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _re=new URL("http://localhost");function p$(t){if(t.createURL)return t.createURL("/");try{return new URL(t.createHref("/"),_re)}catch{return _re}}function uz(t,e){return t.origin===e.origin&&(t.origin!=="null"||t.protocol===e.protocol&&t.host===e.host)}function kke(t,e){if(t.startsWith("//"))return!0;let r=e.protocol.toLowerCase();return t.toLowerCase().startsWith(r)?e.host===""||t.slice(r.length).startsWith("//"):!1}function v$(t,e,r,n){let i=null;try{i=t==null?null:new URL(t,r)}catch{}let a=new URL(e,r),o=i!=null&&!uz(i,r),s=!uz(a,r);if(n==="reject"){if(o||s)throw new Error("External navigation is not allowed")}else if(s&&(i==null||!kke(t,i)||!uz(i,a)))throw new Error("External navigation is not allowed")}var Yge=["POST","PUT","PATCH","DELETE"];new Set(Yge);var Nke=["GET",...Yge];new Set(Nke);var Fke=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Uke(t){try{return Fke.includes(new URL(t).protocol)}catch{return!1}}var QT=H.createContext(null);QT.displayName="DataRouter";var KH=H.createContext(null);KH.displayName="DataRouterState";var $ge=H.createContext(!1);function Hke(){return H.useContext($ge)}var Zge=H.createContext({isTransitioning:!1});Zge.displayName="ViewTransition";var Qke=H.createContext(new Map);Qke.displayName="Fetchers";var jke=H.createContext(null);jke.displayName="Await";var Vc=H.createContext(null);Vc.displayName="Navigation";var WH=H.createContext(null);WH.displayName="Location";var od=H.createContext({outlet:null,matches:[],isDataRoute:!1});od.displayName="Route";var g$=H.createContext(null);g$.displayName="RouteError";var Xge="REACT_ROUTER_ERROR",zke="REDIRECT",Vke="ROUTE_ERROR_RESPONSE";function Gke(t){if(t.startsWith(`${Xge}:${zke}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function Kke(t){if(t.startsWith(`${Xge}:${Vke}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new Ike(e.status,e.statusText,e.data)}catch{}}function Wke(t,{relative:e}={}){ao(jT(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=H.useContext(Vc),{hash:i,pathname:a,search:o}=YR(t,{relative:e}),s=a;return r!=="/"&&(s=a==="/"?r:ih([r,a])),n.createHref({pathname:s,search:o,hash:i})}function jT(){return H.useContext(WH)!=null}function fu(){return ao(jT(),"useLocation() may be used only in the context of a <Router> component."),H.useContext(WH).location}var qge="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jge(t){H.useContext(Vc).static||H.useLayoutEffect(t)}function yh(){let{isDataRoute:t}=H.useContext(od);return t?lNe():Yke()}function Yke(){ao(jT(),"useNavigate() may be used only in the context of a <Router> component.");let t=H.useContext(QT),{basename:e,navigator:r}=H.useContext(Vc),{matches:n}=H.useContext(od),{pathname:i}=fu(),a=JSON.stringify(A$(n)),o=H.useRef(!1);return Jge(()=>{o.current=!0}),H.useCallback((l,u={})=>{if(Xf(o.current,qge),!o.current)return;if(typeof l=="number"){r.go(l);return}let c=GH(l,JSON.parse(a),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:ih([e,c.pathname])),v$(typeof l=="string"?l:Cb(l),r.createHref(c),p$(r),"reject"),(u.replace?r.replace:r.push)(c,u.state,u)},[e,r,a,i,t])}var $ke=H.createContext(null);function Zke(t){let e=H.useContext(od).outlet;return H.useMemo(()=>e&&H.createElement($ke.Provider,{value:t},e),[e,t])}function du(){let{matches:t}=H.useContext(od);return t[t.length-1]?.params??{}}function YR(t,{relative:e}={}){let{matches:r}=H.useContext(od),{pathname:n}=fu(),i=JSON.stringify(A$(r));return H.useMemo(()=>GH(t,JSON.parse(i),n,e==="path"),[t,i,n,e])}function Xke(t,e){return eme(t)}function eme(t,e,r){ao(jT(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=H.useContext(Vc),{matches:i}=H.useContext(od),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let m=u&&u.path||"";rme(s,!u||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
11Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let c=fu(),f;f=c;let d=f.pathname||"/",A=d;if(l!=="/"){let m=l.replace(/^\//,"").split("/");A="/"+d.replace(/^\//,"").split("/").slice(m.length).join("/")}let p=r&&r.state.matches.length?r.state.matches.map(m=>Object.assign(m,{route:r.manifest[m.route.id]||m.route})):Hge(t,{pathname:A});return Xf(u||p!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Xf(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),rNe(p&&p.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:ih([l,n.encodeLocation?n.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:ih([l,n.encodeLocation?n.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),i,r)}function qke(){let t=sNe(),e=Oke(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",t),o=H.createElement(H.Fragment,null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:a},"ErrorBoundary")," or"," ",H.createElement("code",{style:a},"errorElement")," prop on your route.")),H.createElement(H.Fragment,null,H.createElement("h2",null,"Unexpected Application 
11Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},e),r?H.createElement("pre",{style:i},r):null,o)}var Jke=H.createElement(qke,null),tme=class extends H.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=Kke(t.digest);r&&(t=r)}let e=t!==void 0?H.createElement(od.Provider,{value:this.props.routeContext},H.createElement(g$.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?H.createElement(eNe,{error:t},e):e}};tme.contextType=$ge;var cz=new WeakMap;function eNe({children:t,error:e}){let{basename:r,navigator:n}=H.useContext(Vc);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let i=Gke(e.digest);if(i){let a=cz.get(e);if(a)throw a;let o=Wge(i.location,r),s=o.absoluteURL||o.to;if(v$(i.location,s,p$(n),"allow-explicit"),Uke(s))throw new Error("Invalid redirect location");if(Kge&&!cz.get(e))if(o.isExternal||i.reloadDocument)window.location.href=s;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:i.replace}));throw cz.set(e,l),l}return H.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return t}function tNe({routeContext:t,match:e,children:r}){let n=H.useContext(QT);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),H.createElement(od.Provider,{value:t},r)}function rNe(t,e=[],r){let n=r?.state;if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,a=n?.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&a?.[f.route.id]!==void 0);ao(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let o=!1,s=-1;if(r&&n){o=n.renderFallback;for(let c=0;c<i.length;c++){let f=i[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(s=c),f.route.id){let{loaderData:d,errors:A}=n,p=f.route.loader&&!d.hasOwnProperty(f.route.id)&&(!A||A[f.route.id]===void 0);if(f.route.lazy||p){r.isStatic&&(o=!0),s>=0?i=i.slice(0,s+1):i=[i[0]];break}}}}let l=r?.onError,u=n&&l?(c,f)=>{l(c,{location:n.location,params:n.matches?.[0]?.params??{},pattern:Pke(n.matches),errorInfo:f})}:void 0;return i.reduceRight((c,f,d)=>{let A,p=!1,g=null,m=null;n&&(A=a&&f.route.id?a[f.route.id]:void 0,g=f.route.errorElement||Jke,o&&(s<0&&d===0?(rme("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===d&&(p=!0,m=f.route.hydrateFallbackElement||null)));let y=e.concat(i.slice(0,d+1)),b=()=>{let x;return A?x=g:p?x=m:f.route.Component?x=H.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=c,H.createElement(tNe,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?H.createElement(tme,{location:n.location,revalidation:n.revalidation,component:g,error:A,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):b()},null)}function m$(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function nNe(t){let e=H.useContext(QT);return ao(e,m$(t)),e}function iNe(t){let e=H.useContext(KH);return ao(e,m$(t)),e}function aNe(t){let e=H.useContext(od);return ao(e,m$(t)),e}function y$(t){let e=aNe(t),r=e.matches[e.matches.length-1];return ao(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function oNe(){return y$("useRouteId")}function sNe(){let t=H.useContext(g$),e=iNe("useRouteError"),r=y$("useRouteError");return t!==void 0?t:e.errors?.[r]}function lNe(){let{router:t}=nNe("useNavigate"),e=y$("useNavigate"),r=H.useRef(!1);return Jge(()=>{r.current=!0}),H.useCallback(async(i,a={})=>{Xf(r.current,qge),r.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:e,...a}))},[t,e])}var bre={};function rme(t,e,r){!e&&!bre[t]&&(bre[t]=!0,Xf(!1,r))}H.memo(uNe);function uNe({routes:t,manifest:e,future:r,state:n,isStatic:i,onError:a}){return eme(t,void 0,{manifest:e,state:n,isStatic:i,onError:a})}function ly({to:t,replace:e,state:r,relative:n}){ao(jT(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i,navigator:a}=H.useContext(Vc);Xf(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=H.useContext(od),{pathname:s}=fu(),l=yh(),u=GH(t,A$(o),s,n==="path");v$(typeof t=="string"?t:Cb(t),a.createHref(u),p$(a),"reject");let c=JSON.stringify(u);return H.useEffect(()=>{l(JSON.parse(c),{replace:e,state:r,relative:n})},[l,c,n,e,r]),null}function w$(t){return Zke(t.context)}function cNe({basename:t="/",children:e=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,useTransitions:o}){ao(!jT(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),l=H.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof r=="string"&&(r=WR(r));
11let{pathname:u="/",search:c="",hash:f="",state:d=null,key:A="default",mask:p}=r,g=H.useMemo(()=>{let m=ng(u,s);return m==null?null:{location:{pathname:m,search:c,hash:f,state:d,key:A,mask:p},navigationType:n}},[s,u,c,f,d,A,n,p]);return Xf(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:H.createElement(Vc.Provider,{value:l},H.createElement(WH.Provider,{children:e,value:g}))}var jF="get",zF="application/x-www-form-urlencoded";function YH(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function fNe(t){return YH(t)&&t.tagName.toLowerCase()==="button"}function dNe(t){return YH(t)&&t.tagName.toLowerCase()==="form"}function hNe(t){return YH(t)&&t.tagName.toLowerCase()==="input"}function ANe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function pNe(t,e){return t.button===0&&(!e||e==="_self")&&!ANe(t)}function CK(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,r)=>{let n=t[r];return e.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function vNe(t,e){let r=CK(t);return e&&e.forEach((n,i)=>{r.has(i)||e.getAll(i).forEach(a=>{r.append(i,a)})}),r}var YP=null;function gNe(){if(YP===null)try{new FormData(document.createElement("form"),0),YP=!1}catch{YP=!0}return YP}var mNe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fz(t){return t!=null&&!mNe.has(t)?(Xf(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zF}"`),null):t}function yNe(t,e){let r,n,i,a,o;if(dNe(t)){let s=t.getAttribute("action");n=s?ng(s,e):null,r=t.getAttribute("method")||jF,i=fz(t.getAttribute("enctype"))||zF,a=new FormData(t)}else if(fNe(t)||hNe(t)&&(t.type==="submit"||t.type==="image")){let s=t.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||s.getAttribute("action");if(n=l?ng(l,e):null,r=t.getAttribute("formmethod")||s.getAttribute("method")||jF,i=fz(t.getAttribute("formenctype"))||fz(s.getAttribute("enctype"))||zF,a=new FormData(s,t),!gNe()){let{name:u,type:c,value:f}=t;if(c==="image"){let d=u?`${u}.`:"";a.append(`${d}x`,"0"),a.append(`${d}y`,"0")}else u&&a.append(u,f)}}else{if(YH(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=jF,n=null,i=zF,o=t}return a&&i==="text/plain"&&(o=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _$(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function nme(t,e,r,n){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:i.pathname==="/"?i.pathname=`_root.${n}`:e&&ng(i.pathname,e)==="/"?i.pathname=`${aT(e)}/_root.${n}`:i.pathname=`${aT(i.pathname)}.${n}`,i}async function wNe(t,e){if(t.id in e)return e[t.id];try{let r=await import(t.module);return e[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _Ne(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function bNe(t,e,r){let n=await Promise.all(t.map(async i=>{let a=e.routes[i.route.id];if(a){let o=await wNe(a,r);return o.links?o.links():[]}return[]}));return TNe(n.flat(1).filter(_Ne).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function xre(t,e,r,n,i,a){let o=(l,u)=>r[u]?l.route.id!==r[u].route.id:!0,s=(l,u)=>r[u].pathname!==l.pathname||r[u].route.path?.endsWith("*")&&r[u].params["*"]!==l.params["*"];return a==="assets"?e.filter((l,u)=>o(l,u)||s(l,u)):a==="data"?e.filter((l,u)=>{let c=n.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(o(l,u)||s(l,u))return!0;
11if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function xNe(t,e,{includeHydrateFallback:r}={}){return SNe(t.map(n=>{let i=e.routes[n.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function SNe(t){return[...new Set(t)]}function CNe(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function TNe(t,e){let r=new Set;return new Set(e),t.reduce((n,i)=>{let a=JSON.stringify(CNe(i));return r.has(a)||(r.add(a),n.push({key:a,link:i})),n},[])}function b$(){let t=H.useContext(QT);return _$(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function ENe(){let t=H.useContext(KH);return _$(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var x$=H.createContext(void 0);x$.displayName="FrameworkContext";function $H(){let t=H.useContext(x$);return _$(t,"You must render this element inside a <HydratedRouter> element"),t}function BNe(t,e){let r=H.useContext(x$),[n,i]=H.useState(!1),[a,o]=H.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=e,d=H.useRef(null);H.useEffect(()=>{if(t==="render"&&o(!0),t==="viewport"){let g=y=>{y.forEach(b=>{o(b.isIntersecting)})},m=new IntersectionObserver(g,{threshold:.5});return d.current&&m.observe(d.current),()=>{m.disconnect()}}},[t]),H.useEffect(()=>{if(n){let g=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(g)}}},[n]);let A=()=>{i(!0)},p=()=>{i(!1),o(!1)};return r?t!=="intent"?[a,d,{}]:[a,d,{onFocus:F2(s,A),onBlur:F2(l,p),onMouseEnter:F2(u,A),onMouseLeave:F2(c,p),onTouchStart:F2(f,A)}]:[!1,d,{}]}function F2(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function DNe({page:t,...e}){let r=Hke(),{nonce:n}=$H(),{router:i}=b$(),a=H.useMemo(()=>Hge(i.routes,t,i.basename),[i.routes,t,i.basename]);return a?(e.nonce==null&&n&&(e={...e,nonce:n}),r?H.createElement(LNe,{page:t,matches:a,...e}):H.createElement(RNe,{page:t,matches:a,...e})):null}function MNe(t){let{manifest:e,routeModules:r}=$H(),[n,i]=H.useState([]);return H.useEffect(()=>{let a=!1;return bNe(t,e,r).then(o=>{a||i(o)}),()=>{a=!0}},[t,e,r]),n}function LNe({page:t,matches:e,...r}){let n=fu(),{future:i}=$H(),{basename:a}=b$(),o=H.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let s=nme(t,a,i.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,u=[];for(let c of e)typeof c.route.shouldRevalidate=="function"?l=!0:u.push(c.route.id);return l&&u.length>0&&s.searchParams.set("_routes",u.join(",")),[s.pathname+s.search]},[a,i.v8_trailingSlashAwareDataRequests,t,n,e]);return H.createElement(H.Fragment,null,o.map(s=>H.createElement("link",{key:s,rel:"prefetch",as:"fetch",href:s,...r})))}function RNe({page:t,matches:e,...r}){let n=fu(),{future:i,manifest:a,routeModules:o}=$H(),{basename:s}=b$(),{loaderData:l,matches:u}=ENe(),c=H.useMemo(()=>xre(t,e,u,a,n,"data"),[t,e,u,a,n]),f=H.useMemo(()=>xre(t,e,u,a,n,"assets"),[t,e,u,a,n]),d=H.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let g=new Set,m=!1;if(e.forEach(b=>{let x=a.routes[b.route.id];!x||!x.hasLoader||(!c.some(T=>T.route.id===b.route.id)&&b.route.id in l&&o[b.route.id]?.shouldRevalidate||x.hasClientLoader?m=!0:g.add(b.route.id))}),g.size===0)return[];let y=nme(t,s,i.v8_trailingSlashAwareDataRequests,"data");return m&&g.size>0&&y.searchParams.set("_routes",e.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[y.pathname+y.search]},[s,i.v8_trailingSlashAwareDataRequests,l,n,a,c,e,t,o]),A=H.useMemo(()=>xNe(f,a),[f,a]),p=MNe(f);return H.createElement(H.Fragment,null,d.map(g=>H.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),A.map(g=>H.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),p.map(({key:g,link:m})=>H.createElement("link",{key:g,nonce:r.nonce,...m,crossOrigin:m.crossOrigin??r.crossOrigin})))}function INe(...t){return e=>{t.forEach(r=>
11{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var ONe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ONe&&(window.__reactRouterVersion="7.18.4")}catch{}function PNe({basename:t,children:e,useTransitions:r,window:n}){let i=H.useRef();i.current==null&&(i.current=fke({window:n,v5Compat:!0}));let a=i.current,[o,s]=H.useState({action:a.action,location:a.location}),l=H.useCallback(u=>{r===!1?s(u):H.startTransition(()=>s(u))},[r]);return H.useLayoutEffect(()=>a.listen(l),[a,l]),H.createElement(cNe,{basename:t,children:e,location:o.location,navigationType:o.action,navigator:a,useTransitions:r})}var ig=H.forwardRef(function({onClick:e,discover:r="render",prefetch:n="none",relative:i,reloadDocument:a,replace:o,mask:s,state:l,target:u,to:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:A,...p},g){let{basename:m,navigator:y,useTransitions:b}=H.useContext(Vc),x=typeof c=="string"&&h$.test(c),T=Wge(c,m);c=T.to;let B=Wke(c,{relative:i}),R=fu(),I=null;if(s){let G=GH(s,[],R.mask?R.mask.pathname:"/",!0);m!=="/"&&(G.pathname=G.pathname==="/"?m:ih([m,G.pathname])),I=y.createHref(G)}let[N,F,Q]=BNe(n,p),j=UNe(c,{replace:o,mask:s,state:l,target:u,preventScrollReset:f,relative:i,viewTransition:d,defaultShouldRevalidate:A,useTransitions:b});function W(G){e&&e(G),G.defaultPrevented||j(G)}let V=!(T.isExternal||a),Y=H.createElement("a",{...p,...Q,href:(V?I:void 0)||T.absoluteURL||B,onClick:V?W:e,ref:INe(g,F),target:u,"data-discover":!x&&r==="render"?"true":void 0});return N&&!x?H.createElement(H.Fragment,null,Y,H.createElement(DNe,{page:B})):Y});ig.displayName="Link";var kNe=H.forwardRef(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:i=!1,style:a,to:o,viewTransition:s,children:l,...u},c){let f=YR(o,{relative:u.relative}),d=fu(),A=H.useContext(KH),{navigator:p,basename:g}=H.useContext(Vc),m=A!=null&&VNe(f)&&s===!0,y=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,b=d.pathname,x=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;r||(b=b.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&g&&(x=ng(x,g)||x);const T=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let B=b===y||!i&&b.startsWith(y)&&b.charAt(T)==="/",R=x!=null&&(x===y||!i&&x.startsWith(y)&&x.charAt(y.length)==="/"),I={isActive:B,isPending:R,isTransitioning:m},N=B?e:void 0,F;typeof n=="function"?F=n(I):F=[n,B?"active":null,R?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let Q=typeof a=="function"?a(I):a;return H.createElement(ig,{...u,"aria-current":N,className:F,ref:c,style:Q,to:o,viewTransition:s},typeof l=="function"?l(I):l)});kNe.displayName="NavLink";var NNe=H.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:i,state:a,method:o=jF,action:s,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:f,defaultShouldRevalidate:d,...A},p)=>{let{useTransitions:g}=H.useContext(Vc),m=jNe(),y=zNe(s,{relative:u}),b=o.toLowerCase()==="get"?"get":"post",x=typeof s=="string"&&h$.test(s),T=B=>{if(l&&l(B),B.defaultPrevented)return;B.preventDefault();let R=B.nativeEvent.submitter,I=R?.getAttribute("formmethod")||o,N=()=>m(R||B.currentTarget,{fetcherKey:e,method:I,navigate:r,replace:i,state:a,relative:u,preventScrollReset:c,viewTransition:f,defaultShouldRevalidate:d});g&&r!==!1?H.startTransition(()=>N()):N()};return H.createElement("form",{ref:p,method:b,action:y,onSubmit:n?l:T,...A,"data-discover":!x&&t==="render"?"true":void 0})});NNe.displayName="Form";function FNe(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ime(t){let e=H.useContext(QT);return ao(e,FNe(t)),e}function UNe(t,{target:e,replace:r,mask:n,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:l,useTransitions:u}={}){let c=yh(),f=fu(),d=YR(t,{relative:o});return H.useCallback(A=>{if(pNe(A,e)){A.preventDefault();let p=r!==void 0?r:Cb(f)===Cb(d),g=()=>c(t,{replace:p,mask:n,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:l});u?H.startTransition(()=>g()):g()}},[f,c,d,r,n,i,e,t,a,o,s,l,u])}function $R(t){Xf(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=H.useRef(CK(t)),r=H.useRef(!1),n=fu(),i=H.useMemo(()=>vNe(n.search,r.current?null:e.current),[n.search]),a=yh(),o=H.useCallback((s,l)=>{const u=CK(typeof s=="function"?s(new URLSearchParams(i)):s);r.current=!0,a("?"+u,l)},[a,i]);return[i,o]}var HNe=0,QNe=()=>`__${String(++HNe)}__`;function jNe(){let{router:t}=ime("useSubmit"),{basename:e}=H.useContext(Vc),r=oNe(),n=t.fetch,i=t.navigate;return H.useCallback(async(a,o={})=>{let{action:s,method:l,encType:u,formData:c,body:f}=yNe(a,e);if(o.navigate===!1){let d=o.fetcherKey||QNe();await n(d,r,o.action||s,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||l,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||s,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,i,e,r])}function zNe(t,{relative:e}={}){let{basename:r}=H.useContext(Vc),n=H.useContext(od);ao(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...YR(t||".",{relative:e})},o=fu();if(t==null){a.search=o.search;let s=new URLSearchParams(a.search),l=s.getAll("index");if(l.some(c=>
11c==="")){s.delete("index"),l.filter(f=>f).forEach(f=>s.append("index",f));let c=s.toString();a.search=c?`?${c}`:""}}return(!t||t===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:ih([r,a.pathname])),Cb(a)}function VNe(t,{relative:e}={}){let r=H.useContext(Zge);ao(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=ime("useViewTransitionState"),i=YR(t,{relative:e});if(!r.isTransitioning)return!1;let a=ng(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=ng(r.nextLocation.pathname,n)||r.nextLocation.pathname;return l4(i.pathname,o)!=null||l4(i.pathname,a)!=null}var ux=Rge();const GNe=HT(ux),S$="30px",qr="20px",zT="text-lg font-bold  self-start mb-5",ame="rounded-2xl",C$="16px",Bt={PRIMARY:"#FFC000",PRIMARY_LIGHT:"#fbe49f",PRIMARY_DARK_BLUE:"#032b44",RED:"#f02828",PURPLE:"#6C60FF",YELLOW:"#FFC000",BLACK:"#161616",BLACK_LIGHTER:"#7C878E",PHASE_A:"#a55935",PHASE_B:"#151616",PHASE_C:"#a0a1a1",NEUTRAL:"#1266aa",GREEN:"#00a63e",POWER_CUTS:"#efefef",AVG_AVAILABILITY:"#efefef",CO2_EMISSION:"#3ACE5A",ORANGE:"#F97316"};var fa=(t=>(t.ADMIN="admin",t.MANAGER="manager",t.OPERATIONS="operation",t.FINANCE="finance",t.OTHER="other",t))(fa||{});const ri={refetchInterval:!1,staleTime:1/0,refetchOnMount:!0,refetchOnWindowFocus:!0},Qi=10,KNe=5,ome=["total_consumption","total_expected_revenue","expected_revenue"];function nr({children:t,className:e,dataTestId:r}){return E.jsx("div",{"data-testid":r,className:`bg-primary-white overflow-x-auto! flex flex-col w-full min-h-fit ${ame} gap-2 p-4 items-center justify-between border border-primary-border text-primary-dark-blue ${e}`,children:t})}function sme(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=sme(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Ha(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=sme(t))&&(n&&(n+=" "),n+=e);return n}const WNe=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n<t.length;n++)r[n]=t[n];for(let n=0;n<e.length;n++)r[t.length+n]=e[n];return r},YNe=(t,e)=>({classGroupId:t,validator:e}),lme=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),u4="-",Sre=[],$Ne="arbitrary..",ZNe=t=>{const e=qNe(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return XNe(o);const s=o.split(u4),l=s[0]===""&&s.length>1?1:0;return ume(s,l,e)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],u=r[o];return l?u?WNe(u,l):l:u||Sre}return r[o]||Sre}}},ume=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const i=t[e],a=r.nextPart.get(i);if(a){const u=ume(t,e+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=e===0?t.join(u4):t.slice(e).join(u4),l=o.length;for(let u=0;u<l;u++){const c=o[u];if(c.validator(s))return c.classGroupId}},XNe=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?$Ne+n:void 0})(),qNe=t=>{const{theme:e,classGroups:r}=t;return JNe(r,e)},JNe=(t,e)=>{const r=lme();for(const n in t){const i=t[n];T$(i,r,n,e)}return r},T$=(t,e,r,n)=>{const i=t.length;for(let a=0;a<i;a++){const o=t[a];eFe(o,e,r,n)}},eFe=(t,e,r,n)=>{if(typeof t=="string"){tFe(t,e,r);return}if(typeof t=="function"){rFe(t,e,r,n);return}nFe(t,e,r,n)},tFe=(t,e,r)=>{const n=t===""?e:cme(e,t);n.classGroupId=r},rFe=(t,e,r,n)=>{if(iFe(t)){T$(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(YNe(r,t))},nFe=(t,e,r,n)=>{const i=Object.entries(t),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];T$(l,cme(e,s),r,n)}},cme=(t,e)=>{let r=t;const n=e.split(u4),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=lme(),r.nextPart.set(o,s)),r=s}return r},iFe=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,aFe=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,e++,e>t&&(e=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},TK="!",Cre=":",oFe=[],Tre=(t,e,r,n,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),sFe=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=i=>{const a=[];let o=0,s=0,l=0,u;const c=i.length;for(let g=0;g<c;g++){const m=i[g];if(o===0&&s===0){if(m===Cre){a.push(i.slice(l,g)),l=g+1;continue}if(m==="/"){u=g;continue}}m==="["?o++:m==="]"?o--:m==="("?s++:m===")"&&s--}const f=a.length===0?i:i.slice(l);let d=f,A=!1;f.endsWith(TK)?(d=f.slice(0,-1),A=!0):f.startsWith(TK)&&(d=f.slice(1),A=!0);const p=u&&u>l?u-l:void 0;return Tre(a,A,d,p)};if(e){const i=e+Cre,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):Tre(oFe,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},lFe=t=>{const e=new Map;
11return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",l=e.has(o);s||l?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},uFe=t=>({cache:aFe(t.cacheSize),parseClassName:sFe(t),sortModifiers:lFe(t),postfixLookupClassGroupIds:cFe(t),...ZNe(t)}),cFe=t=>{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)e[r[n]]=!0;return e},fFe=/\s+/,dFe=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=e,s=[],l=t.trim().split(fFe);let u="";for(let c=l.length-1;c>=0;c-=1){const f=l[c],{isExternal:d,modifiers:A,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=r(f);if(d){u=f+(u.length>0?" "+u:u);continue}let y=!!m,b;if(y){const I=g.substring(0,m);b=n(I);const N=b&&o[b]?n(g):void 0;N&&N!==b&&(b=N,y=!1)}else b=n(g);if(!b){if(!y){u=f+(u.length>0?" "+u:u);continue}if(b=n(g),!b){u=f+(u.length>0?" "+u:u);continue}y=!1}const x=A.length===0?"":A.length===1?A[0]:a(A).join(":"),T=p?x+TK:x,B=T+b;if(s.indexOf(B)>-1)continue;s.push(B);const R=i(b,y);for(let I=0;I<R.length;++I){const N=R[I];s.push(T+N)}u=f+(u.length>0?" "+u:u)}return u},hFe=(...t)=>{let e=0,r,n,i="";for(;e<t.length;
vendor: 4,752 bytes, line 11
11)(r=t[e++])&&(n=fme(r))&&(i&&(i+=" "),i+=n);return i},fme=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=fme(t[n]))&&(r&&(r+=" "),r+=e);return r},AFe=(t,...e)=>{let r,n,i,a;const o=l=>{const u=e.reduce((c,f)=>f(c),t());return r=uFe(u),n=r.cache.get,i=r.cache.set,a=s,s(l)},s=l=>{const u=n(l);if(u)return u;const c=dFe(l,r);return i(l,c),c};return a=o,(...l)=>a(hFe(...l))},pFe=[],mo=t=>{const e=r=>r[t]||pFe;return e.isThemeGetter=!0,e.themeKey=t,e},dme=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hme=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vFe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gFe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mFe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yFe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,wFe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_Fe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Um=t=>vFe.test(t),rn=t=>!!t&&!Number.isNaN(Number(t)),cA=t=>!!t&&Number.isInteger(Number(t)),dz=t=>t.endsWith("%")&&rn(t.slice(0,-1)),uv=t=>gFe.test(t),Ame=()=>!0,bFe=t=>mFe.test(t)&&!yFe.test(t),E$=()=>!1,xFe=t=>wFe.test(t),SFe=t=>_Fe.test(t),CFe=t=>!kt(t)&&!Nt(t),TFe=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),EFe=t=>d0(t,gme,E$),kt=t=>dme.test(t),Iw=t=>d0(t,mme,bFe),Ere=t=>d0(t,PFe,rn),BFe=t=>d0(t,wme,Ame),DFe=t=>d0(t,yme,E$),Bre=t=>d0(t,pme,E$),MFe=t=>d0(t,vme,SFe),$P=t=>d0(t,_me,xFe),Nt=t=>hme.test(t),U2=t=>cx(t,mme),LFe=t=>cx(t,yme),Dre=t=>cx(t,pme),RFe=t=>cx(t,gme),IFe=t=>cx(t,vme),ZP=t=>cx(t,_me,!0),OFe=t=>cx(t,wme,!0),d0=(t,e,r)=>{const n=dme.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},cx=(t,e,r=!1)=>{const n=hme.exec(t);return n?n[1]?e(n[1]):r:!1},pme=t=>t==="position"||t==="percentage",vme=t=>t==="image"||t==="url",gme=t=>t==="length"||t==="size"||t==="bg-size",mme=t=>t==="length",PFe=t=>t==="number",yme=t=>t==="family-name",wme=t=>t==="number"||t==="weight",_me=t=>t==="shadow",kFe=()=>{const t=mo("color"),e=mo("font"),r=mo("text"),n=mo("font-weight"),i=mo("tracking"),a=mo("leading"),o=mo("breakpoint"),s=mo("container"),l=mo("spacing"),u=mo("radius"),c=mo("shadow"),f=mo("inset-shadow"),d=mo("text-shadow"),A=mo("drop-shadow"),p=mo("blur"),g=mo("perspective"),m=mo("aspect"),y=mo("ease"),b=mo("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...T(),Nt,kt],R=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],N=()=>[Nt,kt,l],F=()=>[Um,"full","auto",...N()],Q=()=>[cA,"none","subgrid",Nt,kt],j=()=>["auto",{span:["full",cA,Nt,kt]},cA,Nt,kt],W=()=>[cA,"auto",Nt,kt],V=()=>["auto","min","max","fr",Nt,kt],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...N()],X=()=>[Um,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],q=()=>[s,Um,"screen","full","dvw","lvw","svw","min","max","fit",...N()],ne=()=>[Um,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],te=()=>[t,Nt,kt],ce=()=>[...T(),Dre,Bre,{position:[Nt,kt]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",RFe,EFe,{size:[Nt,kt]}],ae=()=>[dz,U2,Iw],fe=()=>["","none","full",u,Nt,kt],we=()=>["",rn,U2,Iw],Me=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[rn,dz,Dre,Bre],Ve=()=>["","none",p,Nt,kt],Re=()=>["none",rn,Nt,kt],Se=()=>["none",rn,Nt,kt],nt=()=>[rn,Nt,kt],qe=()=>[Um,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[uv],breakpoint:[uv],color:[Ame],container:[uv],"drop-shadow":[uv],ease:["in","out","in-out"],font:[CFe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[uv],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[uv],shadow:[uv],spacing:["px",rn],text:[uv],"text-shadow":[uv],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Um,kt,Nt,m]}],container:["container"],"container-type":[{"@container":["","normal","size",Nt,kt]}
vendor: 6,163 bytes, line 11
11],"container-named":[TFe],columns:[{columns:[rn,"auto",kt,Nt,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[cA,"auto",Nt,kt]}],basis:[{basis:[Um,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rn,Um,"auto","initial","none",kt]}],grow:[{grow:["",rn,Nt,kt]}],shrink:[{shrink:["",rn,Nt,kt]}],order:[{order:[cA,"first","last","none",Nt,kt]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mbs:[{mbs:K()}],mbe:[{mbe:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[s,"screen",...X()]}],"min-w":[{"min-w":[s,"screen","none",...X()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh","none",...X()]}],"font-size":[{text:["base",r,U2,Iw]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,OFe,BFe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dz,kt]}],"font-family":[{font:[LFe,DFe,e]}],"font-features":[{"font-features":[kt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Nt,kt]}],"line-clamp":[{"line-clamp":[rn,"none",Nt,Ere]}],leading:[{leading:["none",a,...N()]}],"list-image":[{"list-image":["none",Nt,kt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Nt,kt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Me(),"wavy"]}],"text-decoration-thickness":[{decoration:[rn,"from-font","auto",Nt,Iw]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[rn,"auto",Nt,kt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"tab-size":[{tab:[cA,Nt,kt]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Nt,kt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Nt,kt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cA,Nt,kt],radial:["",Nt,kt],conic:["",cA,Nt,kt]},IFe,MFe]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:ae()}
11],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-bs":[{"border-bs":we()}],"border-w-be":[{"border-be":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Me(),"hidden","none"]}],"divide-style":[{divide:[...Me(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}
vendor: 5,791 bytes, line 11
11],"divide-color":[{divide:te()}],"outline-style":[{outline:[...Me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rn,Nt,kt]}],"outline-w":[{outline:["",rn,U2,Iw]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","inner","none",c,ZP,$P]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",f,ZP,$P]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[rn,Iw]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",d,ZP,$P]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[rn,Nt,kt]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[rn]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[Nt,kt]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[rn]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Nt,kt]}],filter:[{filter:["","none",Nt,kt]}],blur:[{blur:Ve()}],brightness:[{brightness:[rn,Nt,kt]}],contrast:[{contrast:[rn,Nt,kt]}],"drop-shadow":[{"drop-shadow":["","none",A,ZP,$P]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",rn,Nt,kt]}],"hue-rotate":[{"hue-rotate":[rn,Nt,kt]}],invert:[{invert:["",rn,Nt,kt]}],saturate:[{saturate:[rn,Nt,kt]}],sepia:[{sepia:["",rn,Nt,kt]}],"backdrop-filter":[{"backdrop-filter":["","none",Nt,kt]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[rn,Nt,kt]}],"backdrop-contrast":[{"backdrop-contrast":[rn,Nt,kt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rn,Nt,kt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rn,Nt,kt]}],"backdrop-invert":[{"backdrop-invert":["",rn,Nt,kt]}],"backdrop-opacity":[{"backdrop-opacity":[rn,Nt,kt]}],"backdrop-saturate":[{"backdrop-saturate":[rn,Nt,kt]}],"backdrop-sepia":[{"backdrop-sepia":["",rn,Nt,kt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Nt,kt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rn,"initial",Nt,kt]}],ease:[{ease:["linear","initial",y,Nt,kt]}],delay:[{delay:[rn,Nt,kt]}],animate:[{animate:["none",b,Nt,kt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Nt,kt]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:nt()}],"skew-x":[{"skew-x":nt()}],"skew-y":[{"skew-y":nt()}],transform:[{transform:[Nt,kt,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],zoom:[{zoom:[cA,Nt,kt]}],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}
11],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Nt,kt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":te()}],"scrollbar-track-color":[{"scrollbar-track":te()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Nt,kt]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[rn,U2,Iw,Ere]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bme=AFe(kFe);function ah(...t){return bme(Ha(t))}const xme={[fa.ADMIN]:{patterns:[/^\//,/^\/dashboard\//],redirect:()=>"/"},[fa.MANAGER]:{patterns:[/^\/$/,/^\/dashboard\/senior-manager/,/^\/dashboard\/operations/,/^\/dashboard\/finance/],redirect:()=>"/"},[fa.FINANCE]:{patterns:[/^\/dashboard\/finance/],redirect:t=>`/dashboard/finance/home/${t??""}`},[fa.OPERATIONS]:{patterns:[/^\/dashboard\/operations/],redirect:t=>`/dashboard/operations/home/${t??""}`},[fa.OTHER]:{patterns:[/^\/sbee/],redirect:()=>"/sbee"}},NFe=(t,e)=>[`/dashboard/admin/user-analytics/${t}`,`/dashboard/admin/user-analytics-detail/${e}/${t}`,`/dashboard/senior-manager/sites/${t}`,`/dashboard/admin/user-analytics-detail/${t}`,`/dashboard/operations/sites/${t}`,`/dashboard/finance/sites/${t}`,`/dashboard/operations/activity-log/${t}`,`/dashboard/admin/devices/${t}`,"/dashboard/my-account"],FFe=(t,e,r,n,i=a=>a)=>[{tag:i("account_info.first_name"),value:t},{tag:i("account_info.last_name"),value:e},{tag:i("account_info.email"),value:r},{tag:i("account_info.company"),value:n}],Mre=[{key:"energy_monitoring",value:"energy_monitoring",label:"Energy monitoring"},{key:"distribution_electrique",value:"distribution_electrique",label:"Distribution electrique"}],H2=[{key:"United States",currency:"USD",value:"united_states"},{key:"Canada",currency:"CAD",value:"canada"},{key:"United Kingdom",currency:"GBP",value:"united_kingdom"},{key:"Nigeria",currency:"NGN",value:"nigeria"},{key:"Benin Republic",currency:"CFA",value:"benin_republic"},{key:"Germany",currency:"EUR",value:"germany"},{key:"India",currency:"INR",value:"india"},{key:"South Africa",currency:"ZAR",value:"south_africa"},{key:"Brazil",currency:"BRL",value:"brazil"},{key:"Japan",currency:"JPY",value:"japan"},{key:"Australia",currency:"AUD",value:"australia"}],Lre=[{key:"car_energy",value:"car_energy",label:"Car energy"},{key:"utility",value:"utility",label:"Utility"}],Rre=[{key:"en",value:"en",label:"English"},{key:"fr",value:"fr",label:"French"}],hz=[{key:"transformer",value:"transformer",label:"Transformer"},{key:"generator",value:"generator",label:"Generator"},{key:"mv_feeder",value:"mv_feeder",label:"MV Feeder"}],XP=[{key:an.TRANSFORMER,value:an.TRANSFORMER,label:"Transformer"},{key:an.SUBSTATION_FEEDER,value:an.SUBSTATION_FEEDER,label:"Substation Feeder"}],Ire=[{key:"operation",value:"operation",label:"Operation"},{key:"finance",value:"finance",label:"Finance"},{key:"manager",value:"manager",label:"Manager"},{key:"admin",value:"admin",label:"Admin"},{key:"other",value:"other",label:"Other"}],Sme=(t,e="en-US")=>new Intl.NumberFormat(e,{minimumFractionDigits:2,maximumFractionDigits:2}).format(t),VF={transformer_load_rate:{grey:{min:0,max:0},blue:{min:.1,max:30}
11,deepGreen:{min:31,max:50},lightGreen:{min:51,max:80},yellow:{min:81,max:100},orange:{min:101,max:120},red:{min:121,max:1/0}},transformer_status:{green:!0,grey:!1},voltage:{green:{min:210,max:230},orange:{min:200,max:209,altMin:231,altMax:240},red:{min:0,max:199,altMin:241,altMax:1/0}},frequency:{green:{min:49.5,max:50.5},orange:{min:48.5,max:49.4,altMin:50.6,altMax:51.5},red:{min:0,max:48.4,altMin:51.6,altMax:1/0}},power_factor:{green:{min:.9,max:1},orange:{min:.8,max:.89},red:{min:0,max:.79}}};function Ah(t,e=iu.EN_US){const r=new Date(t),n={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};let i;try{i=r.toLocaleString(e||iu.EN_US,n)}catch{i=r.toLocaleString(iu.EN_US,n)}return i.replace("AM","am").replace("PM","pm")}function ZR(t,e,r=iu.EN_US){const n=new Date(t),i=new Date(e),a={month:"short",day:"numeric",year:"numeric"};let o,s;try{o=n.toLocaleString(r,a),s=i.toLocaleString(r,a)}catch{o=n.toLocaleString(iu.EN_US,a),s=i.toLocaleString(iu.EN_US,a)}return`${o} → ${s}`}const qf=({chartName:t="Chart",time:e="",right:r="20px",top:n="20px"})=>({toolbox:{feature:{saveAsImage:{title:"Save as Image",name:`${t}-${new Date().toISOString().split("T")[0]} - ${e}`,pixelRatio:2}},right:r,top:n}}),UFe=t=>{const e=String(t);return e.length>15?"text-lg":e.length>12?"text-xl":e.length>9?"text-2xl":"text-3xl"},HFe=(t,e)=>{if(e==null||isNaN(e)||e===0||t===void 0||isNaN(t))return null;const r=(t-e)/e*100;return{percentage:Math.abs(r),isIncrease:r>0}},ZH=(t,e)=>{switch(t){case e("readings.current_phase_a"):return Bt.PHASE_A;case e("readings.current_phase_b"):return Bt.PHASE_B;case e("readings.current_phase_c"):return Bt.PHASE_C;case e("readings.neutral_current"):return Bt.NEUTRAL;case e("readings.voltage_phase_a"):return Bt.PHASE_A;case e("readings.voltage_phase_b"):return Bt.PHASE_B;case e("readings.voltage_phase_c"):return Bt.PHASE_C;case e("readings.harmonic_distortion_phase_a"):return Bt.PHASE_A;case e("readings.harmonic_distortion_phase_b"):return Bt.PHASE_B;case e("readings.harmonic_distortion_phase_c"):return Bt.PHASE_C;case e("readings.power_cuts"):return Bt.POWER_CUTS;case e("readings.avg_availability"):return Bt.AVG_AVAILABILITY;case e("readings.co2_emissions"):return Bt.CO2_EMISSION;default:return"#efefef"}},QFe=(t,e)=>{switch(t){case e("readings.harmonic_distortion_phase_a"):return"Phase A";case e("readings.harmonic_distortion_phase_b"):return"Phase B";case e("readings.harmonic_distortion_phase_c"):return"Phase C";case e("readings.current_phase_a"):return"Phase A";case e("readings.current_phase_b"):return"Phase B";case e("readings.current_phase_c"):return"Phase C";case e("readings.neutral_current"):return"Neutral";case e("readings.voltage_phase_a"):return"Phase A";case e("readings.voltage_phase_b"):return"Phase B";case e("readings.voltage_phase_c"):return"Phase C";default:return"Unknown"}},Cme=(t,e,r)=>{switch(t){case e("readings.harmonic_distortion_phase_a"):return"%";case e("readings.harmonic_distortion_phase_b"):return"%";case e("readings.harmonic_distortion_phase_c"):return"%";case e("readings.current_phase_a"):return"Amps";case e("readings.current_phase_b"):return"Amps";case e("readings.current_phase_c"):return"Amps";case e("readings.neutral_current"):return"Amps";case e("readings.voltage_phase_a"):return"V";case e("readings.voltage_phase_b"):return"V";case e("readings.voltage_phase_c"):return"V";case e("readings.total_consumption"):return r>1e4?"MWh":"kWh";case e("readings.co2_emissions"):return"kgCO2";case e("readings.current_load"):return"kW";case e("readings.reactive_power"):return"kVAr";case e("readings.apparent_power"):return"kVA";case e("readings.frequency"):return"Hz";case e("readings.current_unbalance"):return"%";case e("readings.voltage_unbalance"):return"%";case e("readings.avg_availability"):return"hrs";case e("readings.power_cuts"):return"hrs";case e("chart.voltage_profile"):return"V";case e("chart.daily_consumption"):return"kWh";case e("chart.site_performance"):return"%";case e("chart.load_profile_predicted"):return"kW";case e("chart.load_profile"):return"kW";case e("chart.apparent_power_chart_label"):return"kVA";case e("chart.load_profile_label"):return"kW";case e("table.percent_exceed_threshold"):return"Daily";case e("chart.transformer_load_rate"):return"%";case e("chart.voltage_profile_label"):return"V";case e("readings.energy_loss"):return"kWh";
11case e("chart.current_profile"):return"Amps";default:return""}},VT=(t,e)=>[e.revenue,e.expectedRevenue,e.downtimeLosses,e.tariffLosses,e.revenuePerHour].some(r=>t.toLowerCase().includes(r.toLowerCase()))?"currency":[e.distributedElectricity,e.totalConsumption].some(r=>t.toLowerCase().includes(r.toLowerCase()))?"number":[e.powerCuts,e.avgAvailability].some(r=>t.toLowerCase().includes(r.toLowerCase()))?"hours":([e.assetType,e.tariffLosses].some(r=>t.toLowerCase().includes(r.toLowerCase())),"text"),jFe=t=>{switch(t?.toLowerCase()){case"fr":return iu.FR_FR;case"ar":return iu.AR_SA;default:return iu.EN_US}},Az=[{value:240,color:Bt.ORANGE,bgColor:"#FFF7ED",type:"warning",unit:"v"},{value:270,color:Bt.RED,bgColor:"#ffa1a1",type:"critical",unit:"v"}],pz=[{value:5,color:Bt.ORANGE,bgColor:"#FFF7ED",type:"warning",unit:"%"},{value:8,color:Bt.RED,bgColor:"#ffa1a1",type:"critical",unit:"%"}],zFe={"readings.current_unbalance":{rules:[{value:70,color:Bt.RED,bgColor:"#ffa1a1",type:"critical",unit:"%"},{value:40,color:Bt.ORANGE,bgColor:"#FFF7ED",type:"warning",unit:"%"}]},"readings.voltage_unbalance":{rules:[{value:5,color:Bt.RED,bgColor:"#ffa1a1",type:"critical",unit:"%"},{value:3,color:Bt.ORANGE,bgColor:"#FFF7ED",type:"warning",unit:"%"}]},"readings.voltage_phase_a":{rules:Az},"readings.voltage_phase_b":{rules:Az},"readings.voltage_phase_c":{rules:Az},"readings.harmonic_distortion_phase_a":{rules:pz},"readings.harmonic_distortion_phase_b":{rules:pz},"readings.harmonic_distortion_phase_c":{rules:pz}},XH=(t,e,r)=>{const n=Object.entries(zFe).find(([o])=>r(o)===r(t));if(!n)return null;const{rules:i}=n[1];return[...i].sort((o,s)=>s.value-o.value).find(o=>e>=o.value)??null};function Tme(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=Tme(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function fx(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=Tme(t))&&(n&&(n+=" "),n+=e);return n}let VFe={data:""},GFe=t=>{if(typeof window=="object"){let e=(t?t.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return e.nonce=window.__nonce__,e.parentNode||(t||document.head).appendChild(e),e.firstChild}return t||VFe},KFe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,WFe=/\/\*[^]*?\*\/|  +/g,Ore=/\n+/g,R_=(t,e)=>{let r="",n="",i="";for(let a in t){let o=t[a];a[0]=="@"?a[1]=="i"?r=a+" "+o+";":n+=a[1]=="f"?R_(o,a):a+"{"+R_(o,a[1]=="k"?"":e)+"}":typeof o=="object"?n+=R_(o,e?e.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=a[1]=="-"?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=R_.p?R_.p(a,o):a+":"+o+";")}return r+(e&&i?e+"{"+i+"}":i)+n},Hm={},Eme=t=>{if(typeof t=="object"){let e="";for(let r in t)e+=r+Eme(t[r]);return e}return t},YFe=(t,e,r,n,i)=>{let a=Eme(t),o=Hm[a]||(Hm[a]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(a));if(!Hm[o]){let l=a!==t?t:(u=>{let c,f,d=[{}];for(;c=KFe.exec(u.replace(WFe,""));)c[4]?d.shift():c[3]?(f=c[3].replace(Ore," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][c[1]]=c[2].replace(Ore," ").trim();return d[0]})(t);Hm[o]=R_(i?{["@keyframes "+o]:l}:l,r?"":"."+o)}let s=r&&Hm.g;return r&&(Hm.g=Hm[o]),((l,u,c,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Hm[o],e,n,s),o},$Fe=(t,e,r)=>t.reduce((n,i,a)=>{let o=e[a];if(o&&o.call){let s=o(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":R_(s,""):s===!1?"":s}return n+i+(o??"")},"");function B$(t){let e=this||{},r=t.call?t(e.p):t;return YFe(r.unshift?r.raw?$Fe(r,[].slice.call(arguments,1),e.p):r.reduce((n,i)=>Object.assign(n,i&&i.call?i(e.p):i),{}):r,GFe(e.target),e.g,e.o,e.k)}B$.bind({g:1});B$.bind({k:1});function ZFe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Bme(t,e,r){return e&&ZFe(t.prototype,e),t}function Ai(){return Ai=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
vendor: 4,457 bytes, line 11
11for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ai.apply(this,arguments)}function Dme(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function XR(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Pre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var kre=function(){return""},XFe=ue.createContext({enqueueSnackbar:kre,closeSnackbar:kre}),v_={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Nre=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},D$=function(e){return""+Nre(e.vertical)+Nre(e.horizontal)},qP=function(e){return!!e||e===0},JP="unmounted",lS="exited",uS="entering",Q2="entered",Fre="exiting",M$=(function(t){Dme(e,t);function e(n){var i;i=t.call(this,n)||this;var a=n.appear,o;return i.appearStatus=null,n.in?a?(o=lS,i.appearStatus=uS):o=Q2:n.unmountOnExit||n.mountOnEnter?o=JP:o=lS,i.state={status:o},i.nextCallback=null,i}e.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===JP?{status:lS}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==uS&&o!==Q2&&(a=uS):(o===uS||o===Q2)&&(a=Fre)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a=i,o=i;return i!=null&&typeof i!="number"&&typeof i!="string"&&(o=i.exit,a=i.enter),{exit:o,enter:a}},r.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===uS?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===lS&&this.setState({status:JP})},r.performEnter=function(i){var a=this,o=this.props.enter,s=i,l=this.getTimeouts();if(!i&&!o){this.safeSetState({status:Q2},function(){a.props.onEntered&&a.props.onEntered(a.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:uS},function(){a.props.onEntering&&a.props.onEntering(a.node,s),a.onTransitionEnd(l.enter,function(){a.safeSetState({status:Q2},function(){a.props.onEntered&&a.props.onEntered(a.node,s)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts();if(!a){this.safeSetState({status:lS},function(){i.props.onExited&&i.props.onExited(i.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Fre},function(){i.props.onExiting&&i.props.onExiting(i.node),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:lS},function(){i.props.onExited&&i.props.onExited(i.node)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(){o&&(o=!1,a.nextCallback=null,i())},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=i==null&&!this.props.addEndListener;if(!this.node||o){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===JP)return null;var a=this.props,o=a.children,s=XR(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o(i,s)},Bme(e,[{key:"node",get:function(){var i,a=(i=this.props.nodeRef)===null||i===void 0?void 0:i.current;if(!a)throw new Error("notistack - Custom snackbar is not refForwarding");return a}}]),e})(ue.Component);function cS(){}M$.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cS,onEntering:cS,onEntered:cS,onExit:cS,onExiting:cS,onExited:cS};function Ure(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function EK(t,e){return H.useMemo(function(){return t==null&&e==null?null:function(r){Ure(t,r),Ure(e,r)}},[t,e])}function c4(t){var e=t.timeout,r=t.style,n=r===void 0?{}:r,i=t.mode;return{duration:typeof e=="object"?e[i]||0:e,easing:n.transitionTimingFunction,delay:n.transitionDelay}}
11var BK={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Mme=function(e){e.scrollTop=e.scrollTop},Hre=function(e){return Math.round(e)+"ms"};function wC(t,e){t===void 0&&(t=["all"]);var r=e||{},n=r.duration,i=n===void 0?300:n,a=r.easing,o=a===void 0?BK.easeInOut:a,s=r.delay,l=s===void 0?0:s,u=Array.isArray(t)?t:[t];return u.map(function(c){var f=typeof i=="string"?i:Hre(i),d=typeof l=="string"?l:Hre(l);return c+" "+f+" "+o+" "+d}).join(",")}function qFe(t){return t&&t.ownerDocument||document}function Lme(t){var e=qFe(t);return e.defaultView||window}function JFe(t,e){e===void 0&&(e=166);var r;function n(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=function(){t.apply(i,o)};clearTimeout(r),r=setTimeout(l,e)}return n.clear=function(){clearTimeout(r)},n}function eUe(t,e){var r=e.getBoundingClientRect(),n=Lme(e),i;if(e.fakeTransform)i=e.fakeTransform;else{var a=n.getComputedStyle(e);i=a.getPropertyValue("-webkit-transform")||a.getPropertyValue("transform")}var o=0,s=0;if(i&&i!=="none"&&typeof i=="string"){var l=i.split("(")[1].split(")")[0].split(",");o=parseInt(l[4],10),s=parseInt(l[5],10)}switch(t){case"left":return"translateX("+(n.innerWidth+o-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-o)+"px)";case"up":return"translateY("+(n.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}function ek(t,e){if(e){var r=eUe(t,e);r&&(e.style.webkitTransform=r,e.style.transform=r)}}var Rme=H.forwardRef(function(t,e){var r=t.children,n=t.direction,i=n===void 0?"down":n,a=t.in,o=t.style,s=t.timeout,l=s===void 0?0:s,u=t.onEnter,c=t.onEntered,f=t.onExit,d=t.onExited,A=XR(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),p=H.useRef(null),g=EK(r.ref,p),m=EK(g,e),y=function(I,N){ek(i,I),Mme(I),u&&u(I,N)},b=function(I){var N=o?.transitionTimingFunction||BK.easeOut,F=c4({timeout:l,mode:"enter",style:Ai({},o,{transitionTimingFunction:N})});I.style.webkitTransition=wC("-webkit-transform",F),I.style.transition=wC("transform",F),I.style.webkitTransform="none",I.style.transform="none"},x=function(I){var N=o?.transitionTimingFunction||BK.sharp,F=c4({timeout:l,mode:"exit",style:Ai({},o,{transitionTimingFunction:N})});I.style.webkitTransition=wC("-webkit-transform",F),I.style.transition=wC("transform",F),ek(i,I),f&&f(I)},T=function(I){I.style.webkitTransition="",I.style.transition="",d&&d(I)},B=H.useCallback(function(){p.current&&ek(i,p.current)},[i]);return H.useEffect(function(){if(!(a||i==="down"||i==="right")){var R=JFe(function(){p.current&&ek(i,p.current)}),I=Lme(p.current);return I.addEventListener("resize",R),function(){R.clear(),I.removeEventListener("resize",R)}}},[i,a]),H.useEffect(function(){a||B()},[a,B]),H.createElement(M$,Object.assign({appear:!0,nodeRef:p,onEnter:y,onEntered:c,onEntering:b,onExit:x,onExited:T,in:a,timeout:l},A),function(R,I){return H.cloneElement(r,Ai({ref:m,style:Ai({visibility:R==="exited"&&!a?"hidden":void 0},o,{},r.props.style)},I))})});Rme.displayName="Slide";var qH=function(e){return ue.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},tUe=function(){return ue.createElement(qH,null,ue.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
12        10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},rUe=function(){return ue.createElement(qH,null,ue.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},nUe=function(){return ue.createElement(qH,null,ue.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
13        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
14        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},iUe=function(){return ue.createElement(qH,null,ue.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
15        0 22,12A10,10 0 0,0 12,2Z`}))},aUe={default:void 0,success:ue.createElement(tUe,null),warning:ue.createElement(rUe,null),error:ue.createElement(nUe,null),info:ue.createElement(iUe,null)},ib={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:aUe,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Rme,transitionDuration:{enter:225,exit:195}},oUe=function(e,r){var n=function(a){return typeof a=="number"||a===null};return n(e)?e:n(r)?r:ib.autoHideDuration},sUe=function(e,r){var n=function(a,o){return o.some(function(s){return typeof a===s})};return n(e,["string","number"])?e:n(e,["object"])?Ai({},ib.transitionDuration,{},n(r,["object"])&&r,{},e):n(r,["string","number"])?r:n(r,["object"])?Ai({},ib.transitionDuration,{},r):ib.transitionDuration},lUe=function(e,r){return function(n,i){return i===void 0&&(i=!1),i?Ai({},ib[n],{},r[n],{},e[n]):n==="autoHideDuration"?oUe(e.autoHideDuration,r.autoHideDuration):n==="transitionDuration"?sUe(e.transitionDuration,r.transitionDuration):e[n]||r[n]||ib[n]}};function qR(t){return Object.entries(t).reduce(function(e,r){var n,i=r[0],a=r[1];return Ai({},e,(n={},n[i]=B$(a),n))},{})}var oT={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(e){return"notistack-MuiContent-"+e}},Qre=qR({root:{height:0},entered:{height:"auto"}}),vz="0px",gz=175,Ime=H.forwardRef(function(t,e){var r=t.children,n=t.in,i=t.onExited,a=H.useRef(null),o=H.useRef(null),s=EK(e,o),l=function(){return a.current?a.current.clientHeight:0},u=function(g){g.style.height=vz},c=function(g){var m=l(),y=c4({timeout:gz,mode:"enter"}),b=y.duration,x=y.easing;g.style.transitionDuration=typeof b=="string"?b:b+"ms",g.style.height=m+"px",g.style.transitionTimingFunction=x||""},f=function(g){g.style.height="auto"},d=function(g){g.style.height=l()+"px"},A=function(g){Mme(g);var m=c4({timeout:gz,mode:"exit"}),y=m.duration,b=m.easing;g.style.transitionDuration=typeof y=="string"?y:y+"ms",g.style.height=vz,g.style.transitionTimingFunction=b||""};return H.createElement(M$,{in:n,unmountOnExit:!0,onEnter:u,onEntered:f,onEntering:c,onExit:d,onExited:i,onExiting:A,n
15odeRef:o,timeout:gz},function(p,g){return H.createElement("div",Object.assign({ref:s,className:fx(Qre.root,p==="entered"&&Qre.entered),style:Ai({pointerEvents:"all",overflow:"hidden",minHeight:vz,transition:wC("height")},p==="entered"&&{overflow:"visible"},{},p==="exited"&&!n&&{visibility:"hidden"})},g),H.createElement("div",{ref:a,className:oT.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});Ime.displayName="Collapse";var jre={right:"left",left:"right",bottom:"up",top:"down"},uUe=function(e){return e.horizontal!=="center"?jre[e.horizontal]:jre[e.vertical]},cUe=function(e){return"anchorOrigin"+D$(e)},fUe=function(e){e===void 0&&(e={});var r={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(n){return!r[n]}).reduce(function(n,i){var a;return Ai({},n,(a={},a[i]=e[i],a))},{})},dUe=function(){};function GM(t,e){return t.reduce(function(r,n){return n==null?r:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=[].concat(o);e&&l.indexOf(e)===-1&&l.push(e),r.apply(this,l),n.apply(this,l)}},dUe)}var hUe=typeof window<"u"?H.useLayoutEffect:H.useEffect;function zre(t){var e=H.useRef(t);return hUe(function(){e.current=t}),H.useCallback(function(){return e.current.apply(void 0,arguments)},[])}var Ome=H.forwardRef(function(t,e){var r=t.children,n=t.className,i=t.autoHideDuration,a=t.disableWindowBlurListener,o=a===void 0?!1:a,s=t.onClose,l=t.id,u=t.open,c=t.SnackbarProps,f=c===void 0?{}:c,d=H.useRef(),A=zre(function(){s&&s.apply(void 0,arguments)}),p=zre(function(x){!s||x==null||(d.current&&clearTimeout(d.current),d.current=setTimeout(function(){A(null,"timeout",l)},x))});H.useEffect(function(){return u&&p(i),function(){d.current&&clearTimeout(d.current)}},[u,i,p]);var g=function(){d.current&&clearTimeout(d.current)},m=H.useCallback(function(){i!=null&&p(i*.5)},[i,p]),y=function(T){f.onMouseEnter&&f.onMouseEnter(T),g()},b=function(T){f.onMouseLeave&&f.onMouseLeave(T),m()};return H.useEffect(function(){if(!o&&u)return window.addEventListener("focus",m),window.addEventListener("blur",g),function(){window.removeEventListener("focus",m),window.removeEventListener("blur",g)}},[o,m,u]),H.createElement("div",Object.assign({ref:e},f,{className:fx(oT.Snackbar,n),onMouseEnter:y,onMouseLeave:b}),r)});Ome.displayName="Snackbar";var mz,AUe=qR({root:(mz={display:"flex",flexWrap:"wrap",flexGrow:1},mz[v_.upSm]={flexGrow:"initial",minWidth:"288px"},mz)}),Pme=H.forwardRef(function(t,e){var r=t.className,n=XR(t,["className"]);return ue.createElement("div",Object.assign({ref:e,className:fx(AUe.root,r)},n))});Pme.displayName="SnackbarContent";var j2=qR({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Vre="notistack-snackbar",kme=H.forwardRef(function(t,e){var r=t.id,n=t.message,i=t.action,a=t.iconVariant,o=t.variant,s=t.hideIconVariant,l=t.style,u=t.className,c=a[o],f=i;return typeof f=="function"&&(f=f(r)),ue.createElement(Pme,{ref:e,role:"alert","aria-describedby":Vre,style:l,className:fx(oT.MuiContent,oT.MuiContentVariant(o),j2.root,j2[o],u,!s&&c&&j2.lessPadding)},ue.createElement("div",{id:Vre,className:j2.message},s?null:c,n),f&&ue.createElement("div",{className:j2.action},f))});kme.displayName="MaterialDesignContent";var pUe=H.memo(kme),vUe=qR({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),gUe=function(e){var r=H.useRef(),n=H.useState(!0),i=n[0],a=n[1],o=GM([e.snack.onClose,e.onClose]),s=function(){e.snack.requestClose&&o(null,"instructed",e.snack.id)},l=H.useCallback(function(){r.current=setTimeout(function(){a(function(F){return!F})},125)},[]);H.useEffect(function(){return function(){r.current&&clearTimeout(r.current)}},[]);var u=e.snack,c=e.classes,f=e.Component,d=f===void 0?pUe:f,A=H.useMemo(function(){return fUe(c)},[c]),p=u.open,g=u.SnackbarProps,m=u.TransitionComponent,y=u.TransitionProps,b=u.transitionDuration,x=u.disableWindowBlurListener,T=u.content,B=XR(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),R=Ai({direction:uUe(B.anchorOrigin),timeout:b},y),I=T;typeof I=="function"&&(I=I(B.id,B.message));var N=["onEnter","onEntered","onExit","onExited"].reduce(function(F,Q){var j;return Ai({},F,(j={},j[Q]=GM([e.snack[Q],e[Q]],B.id),j))},{});return ue.createElement(Ime,{in:i,onExited:N.onExited},ue.createElement(Ome,{open:p,id:B.id,disableWindowBlurListener:x,autoHideDuration:B.autoHideDuration,className:fx(vUe.wrappedRoot,A.root,A[cUe(B.anchorOrigin)]),SnackbarProps:g,onClose:o},ue.createElement(m,Object.assign({},R,{appear:!0,in:p,onExit:N.onExit,onExited:l,onEnter:N.onEnter,onEntered:GM([N.onEntered,s],B.id)}),I||ue.createElement(d,Object.assign({},B)))))},z2,yz,tk,rk,wz,cv={view:{default:20},snackbar:{default:6,dense:2}},Gre="."+oT.CollapseWrapper,_z=16,nk=qR({root:(z2={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:wC(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},z2[Gre]={padding:cv.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},z2.maxWidth="calc(100% - "+cv.view.default*2+"px)",z2[v_.downXs]={width:"100%",maxWidth:"calc(100% - "+_z*2+"px)"},z2),rootDense:(yz={},yz[Gre]={padding:cv.snackbar.dense+"px 0px"},yz),top:{top:cv.view.default-cv.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:cv.view.default-cv.snackbar.default+"px",flexDirection:"column-reverse"},left:(tk={left:cv.view.default+"px"},tk[v_.upSm]={alignItems:"flex-start"},tk[v_.downXs]={left:_z+"px"},tk),right:(rk={right:cv.view.default+"px"},rk[v_.upSm]={alignItems:"flex-end"},rk[v_.downXs]={right:_z+"px"},rk),center:(wz={left:"50%",transform:"translateX(-50%)"},wz[v_.upSm]={alignItems:"center"},wz)}),mUe=function(e){var r=e.classes,n=r===void 0?{}:r,i=e.anchorOrigin,a=e.dense,o=e.children,s=fx(oT.SnackbarContainer,nk[i.vertical],nk[i.horizontal],nk.root,n.containerRoot,n["containerAnchorOrigin"+D$(i)],a&&nk.rootDense);return ue.createElement("div",{className:s},o)},yUe=H.memo(mUe),Kre=function(e){var r=typeof e=="string"||H.isValidElement(e);return!r},Oi,wUe=(function(t){Dme(e,t);function e(n){var i;return i=t.call(this,n)||this,i.enqueueSnackbar=function(a,o){if(o===void 0&&(o={}
15),a==null)throw new Error("enqueueSnackbar called with invalid argument");var s=Kre(a)?a:o,l=Kre(a)?a.message:a,u=s.key,c=s.preventDuplicate,f=XR(s,["key","preventDuplicate"]),d=qP(u),A=d?u:new Date().getTime()+Math.random(),p=lUe(f,i.props),g=Ai({id:A},f,{message:l,open:!0,entered:!1,requestClose:!1,persist:p("persist"),action:p("action"),content:p("content"),variant:p("variant"),anchorOrigin:p("anchorOrigin"),disableWindowBlurListener:p("disableWindowBlurListener"),autoHideDuration:p("autoHideDuration"),hideIconVariant:p("hideIconVariant"),TransitionComponent:p("TransitionComponent"),transitionDuration:p("transitionDuration"),TransitionProps:p("TransitionProps",!0),iconVariant:p("iconVariant",!0),style:p("style",!0),SnackbarProps:p("SnackbarProps",!0),className:fx(i.props.className,f.className)});return g.persist&&(g.autoHideDuration=void 0),i.setState(function(m){if(c===void 0&&i.props.preventDuplicate||c){var y=function(B){return d?B.id===A:B.message===l},b=m.queue.findIndex(y)>-1,x=m.snacks.findIndex(y)>-1;if(b||x)return m}return i.handleDisplaySnack(Ai({},m,{queue:[].concat(m.queue,[g])}))}),A},i.handleDisplaySnack=function(a){var o=a.snacks;return o.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var o=a.queue,s=a.snacks;return o.length>0?Ai({},a,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(c){return!c.open||c.requestClose}))return a;var o=!1,s=!1,l=a.snacks.reduce(function(c,f){return c+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(s=!0);var u=a.snacks.map(function(c){return!o&&(!c.persist||s)?(o=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),i.props.onClose&&i.props.onClose(null,"maxsnack",c.id),Ai({},c,{open:!1})):Ai({},c,{requestClose:!0})):Ai({},c)});return Ai({},a,{snacks:u})},i.handleEnteredSnack=function(a,o,s){if(!qP(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.id===s?Ai({},c,{entered:!0}):Ai({},c)})}})},i.handleCloseSnack=function(a,o,s){i.props.onClose&&i.props.onClose(a,o,s);var l=s===void 0;i.setState(function(u){var c=u.snacks,f=u.queue;return{snacks:c.map(function(d){return!l&&d.id!==s?Ai({},d):d.entered?Ai({},d,{open:!1}):Ai({},d,{requestClose:!0})}),queue:f.filter(function(d){return d.id!==s})}})},i.closeSnackbar=function(a){var o=i.state.snacks.find(function(s){return s.id===a});qP(a)&&o&&o.onClose&&o.onClose(null,"instructed",a),i.handleCloseSnack(null,"instructed",a)},i.handleExitedSnack=function(a,o){if(!qP(o))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(s){var l=i.processQueue(Ai({},s,{snacks:s.snacks.filter(function(u){return u.id!==o})}));return l.queue.length===0?l:i.handleDismissOldest(l)})},Oi=i.enqueueSnackbar,i.closeSnackbar,i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(Pre(i)),closeSnackbar:i.closeSnackbar.bind(Pre(i))}},i}var r=e.prototype;return r.render=function(){var i=this,a=this.state.contextValue,o=this.props,s=o.domRoot,l=o.children,u=o.dense,c=u===void 0?!1:u,f=o.Components,d=f===void 0?{}:f,A=o.classes,p=this.state.snacks.reduce(function(m,y){var b,x=D$(y.anchorOrigin),T=m[x]||[];return Ai({},m,(b={},b[x]=[].concat(T,[y]),b))},{}),g=Object.keys(p).map(function(m){var y=p[m],b=y[0];
15return ue.createElement(yUe,{key:m,dense:c,anchorOrigin:b.anchorOrigin,classes:A},y.map(function(x){return ue.createElement(gUe,{key:x.id,snack:x,classes:A,Component:d[x.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:GM([i.handleExitedSnack,i.props.onExited],x.id),onEntered:GM([i.handleEnteredSnack,i.props.onEntered],x.id)})}))});return ue.createElement(XFe.Provider,{value:a},l,s?ux.createPortal(g,s):g)},Bme(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||ib.maxSnack}}]),e})(H.Component);const Vt=()=>{const{t}=d$(),e=(p,g)=>{switch(p){case"number_of_sites":return t("readings.no_of_sites");case"number_of_users":return t("readings.no_of_users");case"pending_alerts":return t("readings.pending_alerts");case"total_revenue":return t("readings.total_revenue",{currency:g});case"total_expected_revenue":return t("readings.expected_revenue",{currency:g});case"expected_revenue":return t("readings.expected_revenue",{currency:g});case"atc_losses":return t("readings.atc_losses");case"total_amount":return t("readings.total_amount",{currency:g});case"current_load":return t("readings.current_load");case"total_consumption":return t("readings.total_consumption");case"avg_availability":return t("readings.avg_availability");case"power_cuts":return t("readings.power_cuts");case"overloaded_dts":return t("readings.overloaded_dts");case"reactive_power":return t("readings.reactive_power");case"downtime_losses":return t("readings.downtime_losses",{currency:g});case"tariff_losses":return t("readings.tariff_losses",{currency:g});case"revenue_per_hour":return t("readings.revenue_per_hour",{currency:g});case"distributed_electricity":return t("readings.distributed_electricity");case"year_of_production":return t("readings.year_of_production");case"asset_type":return t("readings.asset_type");case"asset_capacity":return t("readings.asset_capacity");case"asset_position":return t("readings.asset_position");case"power_factor":return t("readings.power_factor");case"power_factor_penalty":return t("readings.power_factor_penalty");case"voltage_unbalance":return t("readings.voltage_unbalance");case"current_unbalance":return t("readings.current_unbalance");case"harmonic_distortion_phase_a":return t("readings.harmonic_distortion_phase_a");case"harmonic_distortion_phase_b":return t("readings.harmonic_distortion_phase_b");case"harmonic_distortion_phase_c":return t("readings.harmonic_distortion_phase_c");case"voltage_phase_a":return t("readings.voltage_phase_a");case"voltage_phase_b":return t("readings.voltage_phase_b");case"voltage_phase_c":return t("readings.voltage_phase_c");case"current_phase_a":return t("readings.current_phase_a");case"current_phase_b":return t("readings.current_phase_b");case"current_phase_c":return t("readings.current_phase_c");case"neutral_current":return t("readings.neutral_current");case"apparent_power":return t("readings.apparent_power");case"frequency":return t("readings.frequency");case"energy_loss":return t("readings.energy_loss");case"cO2_emissions":return t("readings.co2_emissions");default:return t("readings.unknown")}},r=(p={})=>{if(!p||typeof p!="object")return[];const{currency:g,...m}=p;return Object.entries(m).map(([y,b])=>({key:y,label:e(y,g),value:b}))},n={NO_DATA:t("feedback_msg.no_data"),UPCOMING:t("feedback_msg.upcoming"),ERROR:t("feedback_msg.error_fetching"),NO_DEVICE:t("feedback_msg.no_device")},i=[{key:t("map.transformer_status"),value:"transformer_status"},{key:t("map.transformer_load_rate"),value:"transformer_load_rate"}],a=[t("readings.current_load"),t("readings.overloaded_dts"),t("readings.reactive_power"),t("readings.voltage_unbalance"),t("readings.current_unbalance"),t("readings.harmonic_distortion_phase_a"),t("readings.harmonic_distortion_phase_b"),t("readings.harmonic_distortion_phase_c"),t("readings.current_phase_a"),t("readings.current_phase_b"),t("readings.current_phase_c"),t("readings.voltage_phase_a"),t("readings.voltage_phase_b"),t("readings.voltage_phase_c"),t("readings.apparent_power"),t("readings.power_factor"),t("readings.frequency")],o={revenue:t("readings.total_revenue"),expectedRevenue:t("readings.expected_revenue"),downtimeLosses:t("readings.downtime_losses"),tariffLosses:t("readings.tariff_losses"),powerCuts:t("readings.power_cuts"),distributedElectricity:t("readings.distributed_electricity"),totalConsumption:t("readings.total_consumption"),avgAvailability:t("readings.avg_availability"),assetType:t("readings.asset_type"),revenuePerHour:t("readings.revenue_per_hour")},s={transformer_load_rate:{grey:"0%",blue:"1-30%",deepGreen:"31-50%",lightGreen:"51-80%",yellow:"81-100%",orange:"101 - 120%",red:">120%"},transformer_status:{green:"Online",grey:"Offline"},voltage:{green:"Normal (210-230V)",orange:"Warning (200-209V, 231-240V)",red:"Critical (<200V, >240V)"},frequency:{green:"Normal (49.5-50.5Hz)",orange:"Warning (48.5-49.4Hz, 50.6-51.5Hz)",red:"Critical (<48.5Hz, >51.5Hz)"},power_factor:{green:"Good (0.9-1.0)",orange:"Fair (0.8-0.89)",red:"Poor (<0.8)"}},l=[{category:t("chart.voltage_profile_label"),parameters:[{name:t("readings.line_neutral_voltage_a"),value:"line_to_neutral_voltage_phase_a"},{name:t("readings.line_neutral_voltage_b"),value:"line_to_neutral_voltage_phase_b"},{name:t("readings.line_neutral_voltage_c"),value:"line_to_neutral_voltage_phase_c"}]},{category:t("readings.harmonic_distortion_label"),parameters:[{name:t("readings.harmonic_distortion_phase_a"),value:"total_harmonic_distortion_current_phase_a"},{name:t("readings.harmonic_distortion_phase_b"),value:"total_harmonic_distortion_current_phase_b"},{name:t("readings.harmonic_distortion_phase_c"),value:"total_harmonic_distortion_current_phase_c"}]},{category:t("chart.current_profile_label"),parameters:[{name:t("readings.line_current_overall_phase_a"),value:"line_current_overall_phase_a"},{name:t("readings.line_current_overall_phase_b"),value:"line_current_overall_phase_b"},{name:t("readings.line_current_overall_phase_c"),value:"line_current_overall_phase_c"},{name:t("readings.line_current_overall_neutral"),value:"line_current_overall_neutral"}]},{category:t("readings.power_factor"),parameters:[{name:t("readings.power_factor_overall"),value:"power_factor_overall"},{name:t("readings.power_factor_overall_phase_a"),value:"power_factor_overall_phase_a"},{name:t("readings.power_factor_overall_phase_b"),value:"power_factor_overall_phase_b"},{name:t("readings.power_factor_overall_phase_c"),value:"power_factor_overall_phase_c"}]},{category:t("readings.current_unbalance"),parameters:[{name:t("readings.current_unbalance"),value:"current_unbalance_factor"}]},{category:t("readings.voltage_unbalance"),parameters:[{name:t("readings.voltage_unbalance"),value:"voltage_unbalance_factor"}]},{category:t("chart.transformer_load_rate"),parameters:[{name:t("chart.transformer_load_rate"),value:"transformer_load_percentage"}]}],u=({value:p,type:g,currency:m,label:y})=>{const b=x=>{if(x>24){const T=Math.floor(x/24),B=+(x%24).toFixed(1);return E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"text-2xl font-bold",children:T}),E.jsx("span",{className:"text-sm ml-1 text-primary-blackLight",children:T>1?"days":"day"})," ",E.jsx("span",{className:"text-2xl font-bold",children:parseInt(Math.round(B).toString())}),E.jsx("span",{className:"text-sm ml-1 text-primary-blackLight",children:B>1?"hours":"hour"})]})}return E.jsx(E.Fragment,{children:E.jsx("span",{className:"text-2xl font-bold",children:Math.ceil(x).toString()})})};if(g==="currency")return{main:Sme(Number(p)),suffix:m};if(g==="number"){if(y===t("readings.total_consumption")){if(Number(p)<=1e4)return{main:Number(p).toFixed(1)};const x=Number(p)/1e3;return{main:Number(x).toFixed(1)}}return{main:Number(p).toFixed(1)}}return g==="hours"?{main:b(Number(p))}:g==="text"&&typeof p=="string"?{main:p.charAt(0).toUpperCase()+p.slice(1)}:{main:p}},c=[t("readings.unknown")],f={START_GT_END:t("error_msg.start_gt_end"),END_LT_START:t("error_msg.end_lt_start"),RANGE_EXCEED:t("error_msg.range_exceed"),FUTURE_DATE:t("error_msg.future_date")};return{confirmLastSeen:(p,g,m)=>{const y=new Date(p+"Z");if(!(y instanceof Date)||isNaN(y.getTime())||!(g instanceof Date)||isNaN(g.getTime()))return t("common.offline");const b=g.getTime()-y.getTime();if(b<0)return t("common.online");const x=b/(1e3*60),T=m?.is_realtime?3:63;return x>T?`${t("common.offline")} since ${Ah(p.toISOString())}`:t("common.online")},validateDates:(p,g)=>new Date(p)>new Date(g)?(Oi(f.START_GT_END,{variant:"error"}),!1):new Date(g)>new Date?(Oi(f.FUTURE_DATE,{variant:"error"}),!1):!0,getLabelFromValue:e,mapResponseToLabelValue:r,t,FEEDBACK_MESSAGES:n,CONDITIONS:i,INSTATAENOUS_KPIS:a,CONDITION_LABELS:s,EXPORT_PARAMETERS:l,formatStatValue:u,translatedTitles:o,excludeCards:c}},Nme=H.createContext(void 0),h0=t=>{const e=H.useContext(Nme);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},_Ue=({client:t,children:e})=>(H.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),E.jsx(Nme.Provider,{value:t,children:e})),bUe={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)};var xUe=class{#e=bUe;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}};const U_=new xUe;function SUe(t){setTimeout(t,0)}const CUe=typeof window>"u"||"Deno"in globalThis;function Wl(){}function TUe(t,e){return typeof t=="function"?t(e):t}function Fme(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ume(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ea(t,e){return typeof t=="function"?t(e):t}function Wre(t,e){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=t;if(o){if(n){if(e.queryHash!==L$(o,e.options))return!1}else if(!sT(e.queryKey,o))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||i&&i!==e.state.fetchStatus||a&&!a(e))}function Yre(t,e){const{exact:r,status:n,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(r){if(Tb(e.options.mutationKey)!==Tb(a))return!1}else if(!sT(e.options.mutationKey,a))return!1}return!(n&&e.state.status!==n||i&&!i(e))}function L$(t,e){return(e?.queryKeyHashFn||Tb)(t)}function Tb(t){return JSON.stringify(t,(e,r)=>DK(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function sT(t,e){if(t===e)return!0;
15if(typeof t!=typeof e)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(e.length>t.length)return!1;for(let n=0;n<e.length;n++)if(!sT(t[n],e[n]))return!1;return!0}const r=Object.keys(e);for(const n of r)if(!sT(t[n],e[n]))return!1;return!0}return!1}const EUe=Object.prototype.hasOwnProperty;function Hme(t,e,r=0){if(t===e)return t;if(r>500)return e;const n=$re(t)&&$re(e);if(!n&&!(DK(t)&&DK(e)))return e;const i=(n?t:Object.keys(t)).length,a=n?e:Object.keys(e),o=a.length,s=n?new Array(o):{};let l=0;for(let u=0;u<o;u++){const c=n?u:a[u],f=t[c],d=e[c];if(f===d){s[c]=f,(n?u<i:EUe.call(t,c))&&l++;continue}if(f===null||d===null||typeof f!="object"||typeof d!="object"){s[c]=d;continue}const A=Hme(f,d,r+1);s[c]=A,A===f&&l++}return i===o&&l===i?t:s}function GF(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function $re(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function DK(t){if(!Zre(t))return!1;const e=Object.getPrototypeOf(t),r=e?.constructor;if(r===void 0)return!0;if(typeof r!="function")return!1;const n=r.prototype;return!(!Zre(n)||!n.hasOwnProperty("isPrototypeOf")||e!==Object.prototype)}function Zre(t){return Object.prototype.toString.call(t)==="[object Object]"}function BUe(t){return new Promise(e=>{U_.setTimeout(e,t)})}function MK(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?Hme(t,e):e}function DUe(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function MUe(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}const R$=Symbol();function Qme(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===R$?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function I$(t,e){return typeof t=="function"?t(...e):!!t}function LUe(t,e,r){let n=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),t}let RUe=()=>CUe;const O$=()=>RUe();var GT=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},IUe=class extends GT{#e;#t;#r;constructor(){super(),this.#r=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#r=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}};const P$=new IUe,OUe=SUe;function PUe(){let t=[],e=0,r=s=>{s()},n=s=>{s()},i=OUe;const a=s=>{e?t.push(s):i(()=>{r(s)})},o=()=>{const s=t;t=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;e++;try{l=s()}finally{e--,e||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}const bo=PUe();var kUe=class extends GT{#e=!0;#t;#r;constructor(){super(),this.#r=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#r=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#e}};const f4=new kUe;function NUe(t){return Math.min(1e3*2**t,3e4)}function jme(t){return(t??"online")==="online"?f4.isOnline():!0}
15var LK=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function zme(t){let e=!1,r=0,n,i="pending",a,o;const s=new Promise((b,x)=>{a=b,o=x});s.catch(Wl);const l=()=>i!=="pending",u=b=>{if(!l()){const x=new LK(b);g(x),t.onCancel?.(x)}},c=()=>{e=!0},f=()=>{e=!1},d=()=>P$.isFocused()&&(t.networkMode==="always"||f4.isOnline())&&t.canRun(),A=()=>jme(t.networkMode)&&t.canRun(),p=b=>{l()||(n?.(),i="resolved",a(b))},g=b=>{l()||(n?.(),i="rejected",o(b))},m=()=>new Promise(b=>{n=x=>{(l()||d())&&b(x)},t.onPause?.()}).then(()=>{n=void 0,l()||t.onContinue?.()}),y=()=>{if(l())return;let b;const x=r===0?t.initialPromise:void 0;try{b=x??t.fn()}catch(T){b=Promise.reject(T)}Promise.resolve(b).then(p).catch(T=>{if(l())return;const B=t.retry??(O$()?0:3),R=t.retryDelay??NUe,I=typeof R=="function"?R(r,T):R,N=B===!0||typeof B=="number"&&r<B||typeof B=="function"&&B(r,T);if(e||!N){g(T);return}r++,t.onFail?.(r,T),BUe(I).then(()=>d()?void 0:m()).then(()=>{e?g(T):y()})})};return{promise:s,status:()=>i,cancel:u,continue:()=>(n?.(),s),cancelRetry:c,continueRetry:f,canStart:A,start:()=>(A()?y():m().then(y),s)}}var Vme=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fme(this.gcTime)&&(this.#e=U_.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(O$()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(U_.clearTimeout(this.#e),this.#e=void 0)}};function FUe(t){return{onFetch:(e,r)=>{const n=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let c=!1;const f=p=>{LUe(p,()=>e.signal,()=>c=!0)},d=Qme(e.options,e.fetchOptions),A=async(p,g,m)=>{if(c)return Promise.reject(e.signal.reason);if(g==null&&p.pages.length)return Promise.resolve(p);const b=(()=>{const R={client:e.client,queryKey:e.queryKey,pageParam:g,direction:m?"backward":"forward",meta:e.options.meta};return f(R),R})(),x=await d(b),{maxPages:T}=e.options,B=m?MUe:DUe;return{pages:B(p.pages,x,T),pageParams:B(p.pageParams,g,T)}};if(i&&a.length){const p=i==="backward",g=p?UUe:Xre,m={pages:a,pageParams:o};s=await A(m,g(n,m),p)}else{const p=t??a.length;do{const g=l===0?o[0]??n.initialPageParam:Xre(n,s);if(l>0&&g==null)break;s=await A(s,g),l++}while(l<p)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=u}}}function Xre(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function UUe(t,{pages:e,pageParams:r}){return e.length>0?t.getPreviousPageParam?.(e[0],e,r[0],r):void 0}var HUe=class extends Vme{#e;#t;#r;#n;#a;#i;#o;#l;constructor(t){super(),this.#l=!1,this.#o=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#n=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=Jre(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#o,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Jre(this.options);e.data!==void 0&&(this.setState(qre(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const r=MK(this.state.data,t,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),r}setState(t){this.#s({type:"setState",state:t})}cancel(t){const e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(Wl).catch(Wl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>ea(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===R$||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
vendor: 4,720 bytes, line 15
15Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ea(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ume(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){const e=this.observers.indexOf(t);e!==-1&&(this.observers.splice(e,1),this.observers.length||(this.#i&&(this.#l||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const r=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},i=()=>{const l=Qme(this.options,e),c=(()=>{const f={client:this.#a,queryKey:this.queryKey,meta:this.meta};return n(f),f})();return this.#l=!1,this.options.persister?this.options.persister(l,c,this):l(c)},o=(()=>{const l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:i};return n(l),l})();(this.#e==="infinite"?FUe(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#r=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#s({type:"fetch",meta:o.fetchOptions?.meta});const s=this.#i=zme({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof LK&&l.revert&&this.setState({...this.#r,fetchStatus:"idle"}),r.abort()},onFail:(l,u)=>{this.#s({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await s.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof LK){if(l.silent)return this.#i.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#s({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.#i===s&&(this.#i=void 0),this.scheduleGc()}}#s(t){const e=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Gme(r.data,this.options),fetchMeta:t.meta??null};case"success":const n={...r,...qre(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=t.manual?n:void 0,n;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=e(this.state),bo.batch(()=>{this.observers.slice().forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Gme(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jme(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function qre(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jre(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdate
15Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var QUe=class extends GT{#e;#t=void 0;#r=void 0;#n=void 0;#a;#i;#o;#l;#s;#h;#c;#f;#u;#A=new Set;constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ene(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return RK(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return RK(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#_(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ea(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#t.setOptions(this.options),e._defaulted&&!GF(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&tne(this.#t,r,this.options,e)&&this.#d(),this.updateResult(),n&&(this.#t!==r||ea(this.options.enabled,this.#t)!==ea(e.enabled,this.#t)||ea(this.options.staleTime,this.#t)!==ea(e.staleTime,this.#t))&&this.#v();const i=this.#g();n&&(this.#t!==r||ea(this.options.enabled,this.#t)!==ea(e.enabled,this.#t)||i!==this.#u)&&this.#m(i)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),r=this.createResult(e,t);return GF(this.getCurrentResult(),r)||(this.#n=r,this.#i=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#n}trackResult(t,e){return new Proxy(t,{get:(r,n)=>(this.trackProp(n),e?.(n),Reflect.get(r,n))})}trackProp(t){this.#A.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),r=this.#e.getQueryCache().build(this.#e,e);let n=()=>{},i;const a=new Promise(o=>{i=o,n=this.#e.getQueryCache().subscribe(s=>{s.type==="updated"&&s.query.queryHash===r.queryHash&&r.state.data!==void 0&&(n(),o(this.createResult(r,e)))})});return Promise.race([r.fetch().then(()=>{const o=this.createResult(r,e);return i?.(o),o}).finally(()=>{n()}),a])}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#d(t){this.#b();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Wl)),e}#p(t){return!O$()&&ea(this.options.enabled,this.#t)!==!1&&Fme(t)}#v(){this.#w();const t=ea(this.options.staleTime,this.#t);if(this.#n.isStale||!this.#p(t))return;const e=Ume(this.#n.dataUpdatedAt,t)+1;this.#c=U_.setTimeout(()=>{this.#n.isStale||this.updateResult()},e)}#g(){return ea(this.options.refetchInterval,this.#t)??!1}#m(t){this.#_(),this.#u=t,!(this.#u===0||!this.#p(this.#u))&&(this.#f=U_.setInterval(()=>{(this.options.refetchIntervalInBackground||P$.isFocused())&&this.#d()},this.#u))}#y(){this.#v(),this.#m(this.#g())}#w(){this.#c!==void 0&&(U_.clearTimeout(this.#c),this.#c=void 0)}#_(){this.#f!==void 0&&(U_.clearInterval(this.#f),this.#f=void 0)}createResult(t,e){const r=this.#t,n=this.options,i=this.#n,a=this.#a,o=this.#i,s=t!==r?t.state:this.#r,{state:l}=t;let u={...l},c=!1,f;if(e._optimisticResults){const B=this.hasListeners(),R=!B&&ene(t,e),I=B&&tne(t,r,e,n);(R||I)&&(u={...u,...Gme(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:d,errorUpdatedAt:A,status:p}=u;f=u.data;let g=!1;if(e.placeholderData!==void 0&&f===void 0&&p==="pending"){let B;i?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(B=i.data,g=!0):B=typeof e.placeholderData=="function"?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,B!==void 0&&(p="success",f=MK(i?.data,B,e),c=!0)}if(e.select&&f!==void 0&&!g)if(i&&f===a?.data&&e.select===this.#l)f=this.#s;else try{this.#l=e.select,f=e.select(f),f=MK(i?.data,f,e),this.#s=f,this.#o=null}catch(B){this.#o=B}else f===void 0&&(this.#o=null);this.#o&&(d=this.#o,f=this.#s,A=Date.now(),p="error",c=!1);const m=u.fetchStatus==="fetching",y=p==="pending",b=p==="error",x=y&&m,T=f!==void 0;return{status:p,fetchStatus:u.fetchStatus,isPending:y,isSuccess:p==="success",isError:b,isInitialLoading:x,isLoading:x,data:f,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:A,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdate
15Count:u.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:b&&!T,isPaused:u.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:b&&T,isStale:k$(t,e),refetch:this.refetch,isEnabled:ea(e.enabled,t)!==!1}}updateResult(){const t=this.#n,e=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#t),GF(e,t))return;this.#n=e;const n=(()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!this.#A.size)return!0;const o=new Set(a??this.#A);return this.options.throwOnError&&o.add("error"),Object.keys(this.#n).some(s=>{const l=s;return this.#n[l]!==t[l]&&o.has(l)})})();bo.batch(()=>{n&&this.listeners.forEach(i=>{i(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#b(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#r=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function jUe(t,e){return ea(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&ea(e.retryOnMount,t)===!1)}function ene(t,e){return jUe(t,e)||t.state.data!==void 0&&RK(t,e,e.refetchOnMount)}function RK(t,e,r){if(ea(e.enabled,t)!==!1&&ea(e.staleTime,t)!=="static"){const n=ea(r,t);return n==="always"||n!==!1&&k$(t,e)}return!1}function tne(t,e,r,n){return(t!==e||ea(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&k$(t,r)}function k$(t,e){return ea(e.enabled,t)!==!1&&t.isStaleByTime(ea(e.staleTime,t))}var zUe=class extends Vme{#e;#t;#r;#n;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#r=t.mutationCache,this.#t=[],this.state=t.state||Kme(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){const e=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},n=this.#n=zme({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#a({type:"failed",failureCount:o,error:s})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)}),i=this.state.status==="pending",a=!n.canStart();try{if(i)e();else{this.#a({type:"pending",variables:t,isPaused:a}),this.#r.config.onMutate&&await this.#r.config.onMutate(t,this,r);const s=await this.options.onMutate?.(t,r);s!==this.state.context&&this.#a({type:"pending",context:s,variables:t,isPaused:a})}const o=await n.start();return await this.#r.config.onSuccess?.(o,t,this.state.context,this,r),await this.options.onSuccess?.(o,t,this.state.context,r),await this.#r.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,t,this.state.context,r),this.#a({type:"success",data:o}),o}catch(o){try{await this.#r.config.onError?.(o,t,this.state.context,this,r)}catch(s){Promise.reject(s)}try{await this.options.onError?.(o,t,this.state.context,r)}catch(s){Promise.reject(s)}try{await this.#r.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,o,t,this.state.context,r)}catch(s){Promise.reject(s)}throw this.#a({type:"error",error:o}),o}finally{this.#n===n&&(this.#n=void 0),this.#r.runNext(this)}}#a(t){const e=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
vendor: 1,580 bytes, line 15
15case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),bo.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#r.notify({mutation:this,type:"updated",action:t})})}};function Kme(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var VUe=class extends GT{#e;#t;#r;constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#r=0}build(t,e,r){const n=new zUe({client:t,mutationCache:this,mutationId:++this.#r,options:t.defaultMutationOptions(e),state:r});return this.add(n),n}add(t){this.#e.add(t);const e=ik(t);if(typeof e=="string"){const r=this.#t.get(e);r?r.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=ik(t);if(typeof e=="string"){const r=this.#t.get(e);if(r)if(r.length>1){const n=r.indexOf(t);n!==-1&&r.splice(n,1)}else r[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=ik(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(n=>n.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=ik(t);return typeof e=="string"?this.#t.get(e)?.find(r=>
15r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){bo.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(r=>Yre(e,r))}findAll(t={}){return this.getAll().filter(e=>Yre(t,e))}notify(t){bo.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return bo.batch(()=>Promise.all(t.map(e=>e.continue().catch(Wl))))}};function ik(t){return t.options.scope?.id}var GUe=class extends GT{#e;#t=void 0;#r;#n;constructor(e,r){super(),this.#e=e,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const r=this.options;this.options=this.#e.defaultMutationOptions(e),GF(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),r?.mutationKey&&this.options.mutationKey&&Tb(r.mutationKey)!==Tb(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#r&&(this.#r.addObserver(this),this.#a())}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#a(),this.#i()}mutate(e,r){return this.#n=r,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#a(){const e=this.#r?.state??Kme();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){bo.batch(()=>{if(this.#n&&this.hasListeners()){const r=this.#t.variables,n=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#n.onSuccess?.(e.data,r,n,i)}catch(a){Promise.reject(a)}try{this.#n.onSettled?.(e.data,null,r,n,i)}catch(a){Promise.reject(a)}}else if(e?.type==="error"){try{this.#n.onError?.(e.error,r,n,i)}catch(a){Promise.reject(a)}try{this.#n.onSettled?.(void 0,e.error,r,n,i)}catch(a){Promise.reject(a)}}}this.listeners.forEach(r=>{r(this.#t)})})}},KUe=class extends GT{#e;constructor(t={}){super(),this.config=t,this.#e=new Map}build(t,e,r){const n=e.queryKey,i=e.queryHash??L$(n,e);let a=this.get(i);return a||(a=new HUe({client:t,queryKey:n,queryHash:i,options:t.defaultQueryOptions(e),state:r,defaultOptions:t.getQueryDefaults(n)}),this.add(a)),a}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){this.#e.get(t.queryHash)===t&&(t.destroy(),this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){bo.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(r=>Wre(e,r))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(r=>Wre(t,r)):e}notify(t){bo.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){bo.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){bo.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},WUe=class{#e;#t;#r;#n;#a;#i;#o;#l;constructor(t={}){this.#e=t.queryCache||new KUe,this.#t=t.mutationCache||new VUe,this.#r=t.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=P$.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=f4.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=this.#e.build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(ea(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:r})=>[e,r.data])}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),i=this.#e.get(n.queryHash)?.state.data,a=TUe(e,i);if(a!==void 0)return this.#e.build(this,n).setData(a,{...r,manual:!0})}
15setQueriesData(t,e,r){return bo.batch(()=>this.#e.findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;bo.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=this.#e;return bo.batch(()=>{const n=r.findAll(t),i=new Set(n);return n.forEach(a=>{a.reset()}),this.refetchQueries({type:"active",predicate:a=>i.has(a)},e)})}cancelQueries(t,e={}){const r={revert:!0,...e},n=bo.batch(()=>this.#e.findAll(t).map(i=>i.cancel(r)));return Promise.all(n).then(Wl).catch(Wl)}invalidateQueries(t,e={}){return bo.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=bo.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Wl)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Wl)}async query(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=this.#e.build(this,e),n=r.isStaleByTime(ea(e.staleTime,r))?await r.fetch(e):r.state.data,i=e.select;return i?i(n):n}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=this.#e.build(this,e);return r.isStaleByTime(ea(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Wl).catch(Wl)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Wl).catch(Wl)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return f4.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(t){this.#r=t}setQueryDefaults(t,e){this.#n.set(Tb(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#n.values()],r={};return e.forEach(n=>{sT(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){this.#a.set(Tb(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#a.values()],r={};return e.forEach(n=>{sT(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#r.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=L$(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===R$&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#r.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};const Wme=H.createContext(!1),YUe=()=>H.useContext(Wme);Wme.Provider;function $Ue(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}const ZUe=H.createContext($Ue()),XUe=()=>H.useContext(ZUe),qUe=(t,e,r)=>{const n=r?.state.error&&typeof t.throwOnError=="function"?I$(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||n)&&(e.isReset()||(t.retryOnMount=!1))},JUe=t=>{H.useEffect(()=>{t.clearReset()},[t])},e4e=({result:t,errorResetBoundary:e,throwOnError:r,query:n,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&(i&&t.data===void 0||I$(r,[t.error,n])),t4e=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=t.staleTime;t.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},r4e=(t,e)=>t?.suspense&&e.isPending,n4e=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function i4e(t,e,r){const n=YUe(),i=XUe(),a=h0(),o=a.defaultQueryOptions(t),s=a.getQueryCache().get(o.queryHash),l=t.subscribed!==!1;o._optimisticResults=n?"isRestoring":l?"optimistic":void 0,t4e(o),qUe(o,i,s),JUe(i);const[u]=H.useState(()=>new e(a,o)),c=u.getOptimisticResult(o),f=!n&&l;
15if(H.useSyncExternalStore(H.useCallback(d=>{const A=f?u.subscribe(bo.batchCalls(d)):Wl;return u.updateResult(),A},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),H.useEffect(()=>{u.setOptions(o)},[o,u]),r4e(o,c))throw n4e(o,u,i);if(e4e({result:c,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw c.error;return o.notifyOnChangeProps?c:u.trackResult(c)}function a4e(t,e){return i4e(t,QUe)}function o4e(t,e){const r=h0(),[n]=H.useState(()=>new GUe(r,t));H.useEffect(()=>{n.setOptions(t)},[n,t]);const i=H.useSyncExternalStore(H.useCallback(o=>n.subscribe(bo.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=H.useCallback((...o)=>{n.mutate(o[0],o[1]).catch(Wl)},[n]);if(i.error&&I$(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Yme(t,e){return function(){return t.apply(e,arguments)}}const{toString:s4e}=Object.prototype,{getPrototypeOf:zy}=Object,{iterator:JR,toStringTag:$me}=Symbol,RL=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Zme=t=>typeof t=="string"&&(t==="__proto__"||t==="constructor"||t==="prototype"),Xme=(t,e,r)=>t===Object.prototype||!r&&e===null,l4e=t=>{if(!Object.isExtensible(t))return!1;const e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&e.push(...Object.getOwnPropertySymbols(t)),e.every(r=>{if(Zme(r))return!1;const n=Object.getOwnPropertyDescriptor(t,r);return!!n&&n.configurable&&n.writable===!0})},IL=(t,e)=>{let r=t;const n=[];for(;r!=null;){if(n.indexOf(r)!==-1)return!1;n.push(r);const i=zy(r);if(Xme(r,i,r===t))return!1;if(RL(r,e))return!0;r=i}return!1},u4e=(t,e)=>t!=null&&IL(t,e)?t[e]:void 0,c4e=t=>{if(t==null||typeof t!="object"&&typeof t!="function")return t;const e=zy(t);if(e===null&&l4e(t))return t;const r=Object.create(null),n=Object.create(null),i=[];let a=t;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);const o=a===t?e:zy(a);if(Xme(a,o,a===t))break;const s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(const l of s)Zme(l)||RL(n,l)||(r[l]=t[l],n[l]=!0);a=o}return r},N$=(t=>e=>{const r=s4e.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),sd=t=>(t=t.toLowerCase(),e=>N$(e)===t),JH=t=>e=>typeof e===t,{isArray:Eb}=Array,Bb=JH("undefined");function KT(t){return t!==null&&!Bb(t)&&t.constructor!==null&&!Bb(t.constructor)&&Xu(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const qme=sd("ArrayBuffer");function f4e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&qme(t.buffer),e}const d4e=JH("string"),Xu=JH("function"),Jme=JH("number"),WT=t=>t!==null&&typeof t=="object",h4e=t=>t===!0||t===!1,KF=t=>{if(!WT(t))return!1;const e=zy(t);return(e===null||e===Object.prototype||zy(e)===null)&&!IL(t,$me)&&!IL(t,JR)},A4e=t=>{if(!WT(t)||KT(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},p4e=sd("Date"),v4e=sd("File"),g4e=t=>!!(t&&typeof t.uri<"u"),m4e=t=>t&&typeof t.getParts<"u",y4e=sd("Blob"),w4e=sd("FileList"),_4e=sd("Set"),b4e=t=>WT(t)&&Xu(t.pipe);function x4e(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const rne=x4e(),nne=typeof rne.FormData<"u"?rne.FormData:void 0,S4e=t=>{if(!t)return!1;if(nne&&t instanceof nne)return!0;const e=zy(t);if(!e||e===Object.prototype||!Xu(t.append))return!1;const r=N$(t);return r==="formdata"||r==="object"&&Xu(t.toString)&&t.toString()==="[object FormData]"},C4e=sd("URLSearchParams"),[T4e,E4e,B4e,D4e]=["ReadableStream","Request","Response","Headers"].map(sd),M4e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eI(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Eb(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(KT(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let s;for(n=0;n<o;n++)s=a[n],e.call(null,t[s],s,t)}}function eye(t,e){if(KT(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const H_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tye=t=>!Bb(t)&&t!==H_;function IK(...t){const{caseless:e,skipUndefined:r}=tye(this)&&this||{},n={},i=(a,o)=>
vendor: 5,087 bytes, lines 15-16
15{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=e&&typeof o=="string"&&eye(n,o)||o,l=RL(n,s)?n[s]:void 0;KF(l)&&KF(a)?n[s]=IK(l,a):KF(a)?n[s]=IK({},a):Eb(a)?n[s]=a.slice():(!r||!Bb(a))&&(n[s]=a)};for(let a=0,o=t.length;a<o;a++){const s=t[a];if(!s||KT(s)||(eI(s,i),typeof s!="object"||Eb(s)))continue;const l=Object.getOwnPropertySymbols(s);for(let u=0;u<l.length;u++){const c=l[u];j4e.call(s,c)&&i(s[c],c)}}return n}const L4e=(t,e,r,{allOwnKeys:n}={})=>(eI(e,(i,a)=>{r&&Xu(i)?Object.defineProperty(t,a,{__proto__:null,value:Yme(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,a,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),R4e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),I4e=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},O4e=(t,e,r,n)=>{let i,a,o;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)o=i[a],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&zy(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},P4e=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},k4e=t=>{if(!t)return null;if(Eb(t))return t;let e=t.length;if(!Jme(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},N4e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&zy(Uint8Array)),F4e=(t,e)=>{const n=(t&&t[JR]).call(t);let i;for(;(i=n.next())&&!i.done;){const a=i.value;e.call(t,a[0],a[1])}},U4e=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},H4e=sd("HTMLFormElement"),Q4e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),{propertyIsEnumerable:j4e}=Object.prototype,z4e=sd("RegExp"),rye=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};eI(r,(i,a)=>{let o;(o=e(i,a,t))!==!1&&(n[a]=o||i)}),Object.defineProperties(t,n)},V4e=t=>{rye(t,(e,r)=>{if(Xu(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(Xu(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},G4e=(t,e)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Eb(t)?n(t):n(String(t).split(e)),r},K4e=()=>{},W4e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Y4e(t){return!!(t&&Xu(t.append)&&t[$me]==="FormData"&&t[JR])}const $4e=t=>{const e=new WeakSet,r=n=>{if(WT(n)){if(e.has(n))return;if(KT(n))return n;if(!("toJSON"in n)){e.add(n);let i;if(_4e(n)){i=[];for(const a of n){const o=r(a);!Bb(o)&&i.push(o)}}else i=Eb(n)?[]:{},eI(n,(a,o)=>{const s=r(a);!Bb(s)&&(i[o]=s)});return e.delete(n),i}}return n};return r(t)},Z4e=sd("AsyncFunction"),X4e=t=>t&&(WT(t)||Xu(t))&&Xu(t.then)&&Xu(t.catch),nye=((t,e)=>t?setImmediate:e?((r,n)=>(H_.addEventListener("message",({source:i,data:a})=>{i===H_&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),H_.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Xu(H_.postMessage)),q4e=typeof queueMicrotask<"u"?queueMicrotask.bind(H_):typeof process<"u"&&process.nextTick||nye,iye=t=>t!=null&&Xu(t[JR]),J4e=t=>t!=null&&IL(t,JR)&&iye(t),_e={isArray:Eb,isArrayBuffer:qme,isBuffer:KT,isFormData:S4e,isArrayBufferView:f4e,isString:d4e,isNumber:Jme,isBoolean:h4e,isObject:WT,isPlainObject:KF,isEmptyObject:A4e,isReadableStream:T4e,isRequest:E4e,isResponse:B4e,isHeaders:D4e,isUndefined:Bb,isDate:p4e,isFile:v4e,isReactNativeBlob:g4e,isReactNative:m4e,isBlob:y4e,isRegExp:z4e,isFunction:Xu,isStream:b4e,isURLSearchParams:C4e,isTypedArray:N4e,isFileList:w4e,forEach:eI,merge:IK,extend:L4e,trim:M4e,stripBOM:R4e,inherits:I4e,toFlatObject:O4e,kindOf:N$,kindOfTest:sd,endsWith:P4e,toArray:k4e,forEachEntry:F4e,matchAll:U4e,isHTMLForm:H4e,hasOwnProperty:RL,hasOwnProp:RL,hasOwnInPrototypeChain:IL,getSafeProp:u4e,toSafeFlatObject:c4e,reduceDescriptors:rye,freezeMethods:V4e,toObjectSet:G4e,toCamelCase:Q4e,noop:K4e,toFiniteNumber:W4e,findKey:eye,global:H_,isContextDefined:tye,isSpecCompliantForm:Y4e,toJSONObject:$4e,isAsyncFn:Z4e,isThenable:X4e,setImmediate:nye,asap:q4e,isIterable:iye,isSafeIterable:J4e},e3e=_e.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"]),t3e=t=>{const e={};let r,n,i;return t&&t.split(`
16`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim();const s=_e.hasOwnProp(e,r);!r||s&&_e.hasOwnProp(e3e,r)||(r==="set-cookie"?s?e[r].push(n):e[r]=[n]:e[r]=s?e[r]+", "+n:n)}),e};function r3e(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}
16const n3e=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),i3e=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function F$(t,e){return _e.isArray(t)?t.map(r=>F$(r,e)):r3e(String(t).replace(e,""))}const a3e=t=>F$(t,n3e),o3e=t=>F$(t,i3e);function aye(t){const e=Object.create(null);return _e.forEach(t.toJSON(),(r,n)=>{e[n]=o3e(r)}),e}const ine=Symbol("internals");function V2(t){return t&&String(t).trim().toLowerCase()}function WF(t){return t===!1||t==null?t:_e.isArray(t)?t.map(WF):a3e(String(t))}function s3e(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const l3e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function bz(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}function u3e(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let r="";for(let n=1;n<e;n++){const i=t.charCodeAt(n);if(i===34||i===92&&(n+=1,n>=e))return t;r+=t[n]}return r}function c3e(t){const e=Object.create(null),r=String(t);let n=0,i=!1,a=!1;function o(s){const l=bz(r.slice(n,s)),u=l.indexOf("=");if(u<1)return;const c=bz(l.slice(0,u));if(!l3e.test(c))return;const f=c.toLowerCase();if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=bz(l.slice(u+1));e[f]=u3e(d)}for(let s=0;s<r.length;s++){const l=r.charCodeAt(s);i?a?a=!1:l===92?a=!0:l===34&&(i=!1):l===34?i=!0:(l===44||l===59)&&(o(s),n=s+1)}return o(r.length),e}const f3e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function xz(t,e,r,n,i){if(_e.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!_e.isString(e)){if(_e.isString(n))return e.indexOf(n)!==-1;if(_e.isRegExp(n))return n.test(e)}}function d3e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function h3e(t,e){const r=_e.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(i,a,o){return this[n].call(this,e,i,a,o)},configurable:!0})})}let ml=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function a(s,l,u){const c=V2(l);if(!c)return;const f=_e.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=WF(s))}const o=(s,l)=>_e.forEach(s,(u,c)=>a(u,c,l));if(_e.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(_e.isString(e)&&(e=e.trim())&&!f3e(e))o(t3e(e),r);else if(_e.isObject(e)&&_e.isSafeIterable(e)){let s=Object.create(null),l,u;for(const c of e){if(!_e.isArray(c))throw new TypeError("Object iterator must return a key-value pair");u=c[0],_e.hasOwnProp(s,u)?(l=s[u],s[u]=_e.isArray(l)?[...l,c[1]]:[l,c[1]]):s[u]=c[1]}o(s,r)}else e!=null&&a(r,e,n);return this}get(e,r){if(e=V2(e),e){const n=_e.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return s3e(i);if(_e.isFunction(r))return r.call(this,i,n);if(_e.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=V2(e),e){const n=_e.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||xz(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function a(o){if(o=V2(o),o){const s=_e.findKey(n,o);s&&(!r||xz(n,n[s],s,r))&&(delete n[s],i=!0)}}return _e.isArray(e)?e.forEach(a):a(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!e||xz(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const r=this,n={};return _e.forEach(this,(i,a)=>{const o=_e.findKey(n,a);if(o){r[o]=WF(i),delete r[a];return}const s=e?d3e(a):String(a).trim();s!==a&&delete r[a],r[s]=WF(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return _e.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&_e.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
17`)}getSetCookie(){const e=this.get("set-cookie");return _e.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return c3e(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>
17n.set(i)),n}static accessor(e){const n=(this[ine]=this[ine]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=V2(o);n[s]||(h3e(i,o),n[s]=!0)}return _e.isArray(e)?e.forEach(a):a(e),this}};ml.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_e.reduceDescriptors(ml.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});_e.freezeMethods(ml);const d4="[REDACTED ****]";function A3e(t){if(_e.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(_e.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function p3e(t,e){const r=new Set(e.map(a=>String(a).toLowerCase())),n=[],i=a=>{if(a===null||typeof a!="object"||_e.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof ml&&(a=a.toJSON()),n.push(a);let o;if(_e.isArray(a))o=[],a.forEach((s,l)=>{const u=i(s);_e.isUndefined(u)||(o[l]=u)});else{if(!_e.isPlainObject(a)&&A3e(a))return n.pop(),a;o=Object.create(null);for(const[s,l]of Object.entries(a)){const u=r.has(s.toLowerCase())?d4:i(l);_e.isUndefined(u)||(o[s]=u)}}return n.pop(),o};return i(t)}function ane(t){try{return String(t)}catch{return""}}function v3e(t){return t.errors.map(r=>{try{return r&&r.message?ane(r.message):ane(r)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}let bt=class oye extends Error{static from(e,r,n,i,a,o){let s=e.message;!s&&_e.isArray(e.errors)&&e.errors.length&&(s=v3e(e));const l=new oye(s,r||e.code,n,i,a);return Object.defineProperty(l,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),l.name=e.name,e.status!=null&&l.status==null&&(l.status=e.status),o&&Object.assign(l,o),l}constructor(e,r,n,i,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,r=e&&_e.hasOwnProp(e,"redact")?e.redact:void 0,n=_e.isArray(r)&&r.length>0?p3e(e,r):_e.toJSONObject(e);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:n,code:this.code,status:this.status}}};bt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";bt.ERR_BAD_OPTION="ERR_BAD_OPTION";bt.ECONNABORTED="ECONNABORTED";bt.ETIMEDOUT="ETIMEDOUT";bt.ECONNREFUSED="ECONNREFUSED";bt.ERR_NETWORK="ERR_NETWORK";bt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";bt.ERR_DEPRECATED="ERR_DEPRECATED";bt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";bt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";bt.ERR_CANCELED="ERR_CANCELED";bt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";bt.ERR_INVALID_URL="ERR_INVALID_URL";bt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const g3e=null,sye=100;function OK(t){return _e.isPlainObject(t)||_e.isArray(t)}function lye(t){return _e.endsWith(t,"[]")?t.slice(0,-2):t}function Sz(t,e,r){return t?t.concat(e).map(function(i,a){return i=lye(i),!r&&a?"["+i+"]":i}).join(r?".":""):e}function m3e(t){return _e.isArray(t)&&!t.some(OK)}const y3e=_e.toFlatObject(_e,{},null,function(e){return/^is[A-Z]/.test(e)});function e5(t,e,r){if(!_e.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(b,x)=>{const T=_e.getSafeProp(r,b);return _e.isUndefined(T)?x:T},i=n("metaTokens",!0),a=n("visitor")||g,o=n("dots",!1),s=n("indexes",!1),l=n("Blob")||typeof Blob<"u"&&Blob,u=n("maxDepth",sye),c=l&&_e.isSpecCompliantForm(e),f=[];if(!_e.isFunction(a))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(_e.isDate(b))return b.toISOString();if(_e.isBoolean(b))return b.toString();if(!c&&_e.isBlob(b))throw new bt("Blob is not supported. Use a Buffer instead.");if(_e.isArrayBuffer(b)||_e.isTypedArray(b)){if(c&&typeof l=="function")return new l([b]);throw new bt("Blob is not supported. Use a Buffer instead.",bt.ERR_NOT_SUPPORT)}return b}function A(b){if(b>u)throw new bt("Object is too deeply nested ("+b+" levels). Max depth: "+u,bt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(b,x){if(u===1/0)return JSON.stringify(b);const T=[];
vendor: 1,048 bytes, line 17
17return JSON.stringify(b,function(R,I){if(!_e.isObject(I))return I;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(I),A(x+T.length-1),I})}function g(b,x,T){let B=b;if(_e.isReactNative(e)&&_e.isReactNativeBlob(b))return e.append(Sz(T,x,o),d(b)),!1;if(b&&!T&&typeof b=="object"){if(_e.endsWith(x,"{}"))x=i?x:x.slice(0,-2),b=p(b,1);else if(_e.isArray(b)&&m3e(b)||(_e.isFileList(b)||_e.endsWith(x,"[]"))&&(B=_e.toArray(b)))return x=lye(x),B.forEach(function(I,N){!(_e.isUndefined(I)||I===null)&&e.append(s===!0?Sz([x],N,o):s===null?x:x+"[]",d(I))}),!1}return OK(b)?!0:(e.append(Sz(T,x,o),d(b)),!1)}const m=Object.assign(y3e,{defaultVisitor:g,convertValue:d,isVisitable:OK});function y(b,x,T=0){if(!_e.isUndefined(b)){if(A(T),f.indexOf(b)!==-1)throw new Error("Circular reference detected in "+x.join("."));f.push(b),_e.forEach(b,function(R,I){(!(_e.isUndefined(R)||R===null)&&a.call(e,R,_e.isString(I)?I.trim():I,x,m))===!0&&y(R,x?x.concat(I):[I],T+1)}),f.pop()}}if(!_e.isObject(t))throw new TypeError("data must be an object");return y(t),e}
17function one(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function U$(t,e){this._pairs=[],t&&e5(t,this,e)}const uye=U$.prototype;uye.append=function(e,r){this._pairs.push([e,r])};uye.toString=function(e){const r=e?n=>e.call(this,n,one):one;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function w3e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function cye(t,e,r){if(!e)return t;t=t||"";const n=_e.isFunction(r)?{serialize:r}:r,i=_e.getSafeProp(n,"encode")||w3e,a=_e.getSafeProp(n,"serialize");let o;if(a?o=a(e,n):o=_e.isURLSearchParams(e)?e.toString():new U$(e,n).toString(i),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}const G2=Symbol("internals");function fye(t){return t?t.length:0}function sne(t){if(t)for(;t.length&&t[t.length-1]===null;)t.pop()}function K2(t,e){const r=t.handlers,n=fye(r);r!==e.handlersRef?(e.handlersRef=r,e.handlerEntries.clear()):n!==e.handlersLength&&(n?e.handlerEntries.forEach(function(a,o){r[a.index]!==a.handler&&e.handlerEntries.delete(o)}):e.handlerEntries.clear()),e.handlersLength=n}class lne{constructor(){this.handlers=[],this[G2]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,r,n){const i={fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},a=this[G2];this.handlers==null&&(this.handlers=[]),K2(this,a);const o=a.nextId++;return this.handlers.push(i),a.handlerEntries.set(o,{handler:i,index:this.handlers.length-1}),a.handlersLength=this.handlers.length,o}eject(e){const r=this[G2];K2(this,r);const n=r.handlerEntries.get(e);if(n){if(r.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,r.iterationDepth||(sne(this.handlers),r.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],K2(this,this[G2]))}forEach(e){const r=this[G2];K2(this,r),r.iterationDepth++;try{_e.forEach(this.handlers,function(i){i!==null&&e(i)})}finally{--r.iterationDepth||(K2(this,r),sne(this.handlers),r.handlersLength=fye(this.handlers))}}}const H$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},_3e=typeof URLSearchParams<"u"?URLSearchParams:U$,b3e=typeof FormData<"u"?FormData:null,x3e=typeof Blob<"u"?Blob:null,S3e={isBrowser:!0,classes:{URLSearchParams:_3e,FormData:b3e,Blob:x3e},protocols:["http","https","file","blob","url","data"]},Q$=typeof window<"u"&&typeof document<"u",PK=typeof navigator=="object"&&navigator||void 0,C3e=Q$&&(!PK||["ReactNative","NativeScript","NS"].indexOf(PK.product)<0),T3e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",E3e=Q$&&window.location.href||"http://localhost",B3e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Q$,hasStandardBrowserEnv:C3e,hasStandardBrowserWebWorkerEnv:T3e,navigator:PK,origin:E3e},Symbol.toStringTag,{value:"Module"})),Xo={...B3e,...S3e};function D3e(t,e){return e5(t,new Xo.classes.URLSearchParams,{visitor:function(r,n,i,a){return Xo.isNode&&_e.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}const une=sye;function dye(t){if(t>une)throw new bt("FormData field is too deeply nested ("+t+" levels). Max depth: "+une,bt.ERR_FORM_DATA_DEPTH_EXCEEDED)}function M3e(t){const e=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;(n=r.exec(t))!==null;)dye(e.length),e.push(n[0]==="[]"?"":n[1]||n[0]);return e}function L3e(t){const e={},r=Object.keys(t);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],e[a]=t[a];return e}function hye(t){function e(r,n,i,a){dye(a);let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&_e.isArray(i)?i.length:o,l?(_e.hasOwnProp(i,o)?i[o]=_e.isArray(i[o])?i[o].concat(n):[i[o],n]:i[o]=n,!s):((!_e.hasOwnProp(i,o)||!_e.isObject(i[o]))&&
vendor: 1,049 bytes, line 17
17(i[o]=[]),e(r,n,i[o],a)&&_e.isArray(i[o])&&(i[o]=L3e(i[o])),!s)}if(_e.isFormData(t)&&_e.isFunction(t.entries)){const r={};return _e.forEachEntry(t,(n,i)=>{e(M3e(n),i,r,0)}),r}return null}const Aye=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),fS=(t,e)=>t!=null&&_e.hasOwnProp(t,e)?t[e]:void 0;function R3e(t,e,r){if(_e.isString(t))try{return(e||JSON.parse)(t),_e.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const tI={transitional:H$,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=_e.isObject(e);if(a&&_e.isHTMLForm(e)&&(e=new FormData(e)),_e.isFormData(e))return i?JSON.stringify(hye(e)):e;if(_e.isArrayBuffer(e)||_e.isBuffer(e)||_e.isStream(e)||_e.isFile(e)||_e.isBlob(e)||_e.isReadableStream(e))return e;if(_e.isArrayBufferView(e))return e.buffer;if(_e.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;
17if(a){const l=fS(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return D3e(e,l).toString();if((s=_e.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=fS(this,"env"),c=u&&u.FormData;return e5(s?{"files[]":e}:e,c&&new c,l)}}return a||i?(r.setContentType("application/json",!1),R3e(e)):e}],transformResponse:[function(e){const r=fS(this,"transitional")||tI.transitional,n=r&&r.forcedJSONParsing,i=fS(this,"responseType"),a=i==="json";if(_e.isResponse(e)||_e.isReadableStream(e))return e;if(e&&_e.isString(e)&&(n&&!i||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,fS(this,"parseReviver"))}catch(l){if(s)throw l.name==="SyntaxError"?bt.from(l,bt.ERR_BAD_RESPONSE,this,null,fS(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xo.classes.FormData,Blob:Xo.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(Aye,t=>{tI.headers[t]={}});function Cz(t,e){const r=this||tI,n=e||r,i=ml.from(n.headers);let a=n.data;return _e.forEach(t,function(s){a=s.call(r,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function pye(t){return!!(t&&t.__CANCEL__)}let rI=class extends bt{constructor(e,r,n){super(e??"canceled",bt.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function vye(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new bt("Request failed with status code "+r.status,r.status>=400&&r.status<500?bt.ERR_BAD_REQUEST:bt.ERR_BAD_RESPONSE,r.config,r.request,r))}const I3e=/[\t\n\r]/g;function gye(t){if(typeof t!="string")return t;let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e).replace(I3e,"")}function Tz(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function O3e(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,d=0;for(;f!==i;)d+=r[f++],f=f%t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o<e)return;const A=c&&u-c;return A?Math.round(d*1e3/A):void 0}}function P3e(t,e){let r=0,n=1e3/e,i,a;const o=(c,f=Date.now())=>{r=f,i=null,a&&(clearTimeout(a),a=null),t(...c)};return[(...c)=>{const f=Date.now(),d=f-r;d>=n?o(c,f):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},n-d)))},()=>i&&o(i),(...c)=>o(c)]}const h4=(t,e,r=3)=>{let n=0;const i=O3e(50,250);return P3e(a=>{if(!a||!_e.isNumber(a.loaded))return;const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=Math.max(0,s!=null?Math.min(o,s):o),u=Math.max(0,l-n),c=i(u);n=Math.max(n,l);const f={loaded:l,total:s,progress:s?l/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s?(s-l)/c:void 0,event:a,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(f)},r)},cne=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},fne=(t,e=_e.asap)=>(...r)=>e(()=>t(...r)),k3e=Xo.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Xo.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Xo.origin),Xo.navigator&&/(msie|trident)/i.test(Xo.navigator.userAgent)):()=>!0,N3e=Xo.hasStandardBrowserEnv?{write(t,e,r,n,i,a,o){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];_e.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),_e.isString(n)&&s.push(`path=${n}`),_e.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),_e.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===t)try{return decodeURIComponent(n.slice(i+1))}catch{return n.slice(i+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function F3e(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function U3e(t,e){if(!e)return t;let r=t.length;for(;r>0&&t.charCodeAt(r-1)===47;)r--;return t.slice(0,r)+"/"+e.replace(/^\/+/,"")}const H3e=/^https?:(?!\/\/)/i;function Q3e(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,r,n="")=>`${r}${n}${d4}`)}function j3e(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${d4}@`),r=e.indexOf("#"),i=(r===-1?e:e.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${d4}`);return r===-1?i:`${i}#${Q3e(e.slice(r+1))}`}function dne(t,e){if(typeof t=="string"){const r=gye(t);if(H3e.test(r))throw new bt(`Invalid URL ${JSON.stringify(j3e(r))}: missing "//" after protocol`,bt.ERR_INVALID_URL,e)}}function mye(t,e,r,n){dne(e,n);let i=!F3e(e);return t&&(i||r===!1)?(dne(t,n),U3e(t,e)):e}const hne=t=>t instanceof ml?{...t}:t,z3e=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function Db(t,e){t=t||{},e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,f,d,A){return _e.isPlainObject(c)&&_e.isPlainObject(f)?_e.merge.call({caseless:A},c,f):_e.isPlainObject(f)?_e.merge({},f):_e.isArray(f)?f.slice():f}function i(c,f,d,A){if(_e.isUndefined(f)){if(!_e.isUndefined(c))return n(void 0,c,d,A)}else return n(c,f,d,A)}function a(c,f){if(!_e.isUndefined(f))return n(void 0,f)}function o(c,f){if(_e.isUndefined(f)){if(!_e.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function s(c){const f=_e.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!_e.isUndefined(f))if(_e.isPlainObject(f)){if(_e.hasOwnProp(f,c))return f[c]}else return;const d=_e.hasOwnProp(t,"transitional")?t.transitional:void 0;if(_e.isPlainObject(d)&&_e.hasOwnProp(d,c))return d[c]}function l(c,f,d){if(_e.hasOwnProp(e,d))return n(c,f);if(_e.hasOwnProp(t,d))return n(void 0,c)}const u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
17dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:l,headers:(c,f,d)=>i(hne(c),hne(f),d,!0)};return _e.forEach(z3e({...t,...e}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=_e.hasOwnProp(u,f)?u[f]:i,A=_e.hasOwnProp(t,f)?t[f]:void 0,p=_e.hasOwnProp(e,f)?e[f]:void 0,g=d(A,p,f);_e.isUndefined(g)&&d!==l||(r[f]=g)}),_e.hasOwnProp(e,"validateStatus")&&_e.isUndefined(e.validateStatus)&&s("validateStatusUndefinedResolves")===!1&&(_e.hasOwnProp(t,"validateStatus")?r.validateStatus=n(void 0,t.validateStatus):delete r.validateStatus),r}const V3e=["content-type","content-length"];function G3e(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([n,i])=>{V3e.includes(n.toLowerCase())&&t.set(n,i)})}const K3e=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16)));function yye(t){const e=Db({},t),r=d=>_e.hasOwnProp(e,d)?e[d]:void 0,n=r("data");let i=r("withXSRFToken");const a=r("xsrfHeaderName"),o=r("xsrfCookieName");let s=r("headers");const l=r("auth"),u=r("baseURL"),c=r("allowAbsoluteUrls"),f=r("url");if(e.headers=s=ml.from(s),e.url=cye(mye(u,f,c,e),r("params"),r("paramsSerializer")),l){const d=_e.getSafeProp(l,"username")||"",A=_e.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(d+":"+(A?K3e(A):"")))}catch(p){throw bt.from(p,bt.ERR_BAD_OPTION_VALUE,t)}}if(_e.isFormData(n)){const d=_e.getSafeProp(n,"getHeaders");Xo.hasStandardBrowserEnv||Xo.hasStandardBrowserWebWorkerEnv||_e.isReactNative(n)?s.setContentType(void 0):_e.isFunction(d)&&G3e(s,d.call(n),r("formDataHeaderPolicy"))}if(Xo.hasStandardBrowserEnv&&(_e.isFunction(i)&&(i=i(e)),i===!0||i==null&&k3e(e.url))){const A=a&&o&&N3e.read(o);A&&s.set(a,A)}return e}const W3e=typeof XMLHttpRequest<"u",Y3e=W3e&&function(t){return new Promise(function(r,n){const i=yye(t);let a=i.data;const o=ml.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,A,p,g;function m(){A&&A(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function b(T){if(!y)return;if(y.status===0&&(Tz(gye(i.url))||Tz(Xo.origin))!=="file"&&!(y.responseURL&&y.responseURL.startsWith("file:"))){n(new bt("Request aborted",bt.ECONNABORTED,t,y)),m(),y=null;return}try{T?g&&g(T):p&&p()}catch(N){setTimeout(()=>{throw N})}if(!y)return;const B=ml.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),I={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:B,config:t,request:y};vye(function(F){r(F),m()},function(F){n(F),m()},I),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(b)},y.onabort=function(){y&&(n(new bt("Request aborted",bt.ECONNABORTED,t,y)),m(),y=null)},y.onerror=function(B){const R=B&&B.message?B.message:"Network Error",I=new bt(R,bt.ERR_NETWORK,t,y);I.event=B||null,n(I),m(),y=null},y.ontimeout=function(){let B=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||H$;i.timeoutErrorMessage&&(B=i.timeoutErrorMessage),n(new bt(B,R.clarifyTimeoutError?bt.ETIMEDOUT:bt.ECONNABORTED,t,y)),m(),y=null},a===void 0&&o.setContentType(null),"setRequestHeader"in y&&_e.forEach(aye(o),function(B,R){y.setRequestHeader(R,B)}),_e.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([d,p,g]=h4(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,A]=h4(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",A)),(i.cancelToken||i.signal)&&(c=T=>{y&&(n(!T||T.type?new rI(null,t,y):T),y.abort(),m(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const x=Tz(i.url);if(x&&!Xo.protocols.includes(x)){n(new bt("Unsupported protocol "+x+":",bt.ERR_BAD_REQUEST,t)),m();return}y.send(a||null)})},$3e=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const r=new AbortController;let n=!1;const i=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;r.abort(u instanceof bt?u:new rI(u instanceof Error?u.message:u))}};let a=e&&setTimeout(()=>{a=null,i(new bt(`timeout of ${e}ms exceeded`,bt.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>
17{if(!n){if(l.aborted){i.call(l);return}l.addEventListener("abort",i,{once:!0})}});const{signal:s}=r;return s.unsubscribe=()=>_e.asap(o),s},Z3e=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},X3e=async function*(t,e){for await(const r of q3e(t))yield*Z3e(r,e)},q3e=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Ane=(t,e,r,n)=>{const i=X3e(t,e);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let f=c.byteLength;if(r){let d=a+=f;r(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},pne=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,wye=(t,e,r)=>e+2<r&&pne(t.charCodeAt(e+1))&&pne(t.charCodeAt(e+2)),vne=t=>t<=57?t-48:(t&223)-55,J3e=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,eHe=t=>t===9||t===10||t===12||t===13||t===32,tHe=t=>{const e=Math.floor(t/4),r=t%4;return e*3+(r===2?1:r===3?2:0)},rHe=t=>{const e=t.length;let r=0;return e>0&&t.charCodeAt(e-1)===61&&(r++,e>1&&t.charCodeAt(e-2)===61&&r++),Math.floor((e-r)*3/4)},nHe=t=>{const e=t.length;let r=0,n=0,i=!1;for(let a=0;a<e;a++){let o=t.charCodeAt(a);if(o===37&&wye(t,a,e)&&(o=vne(t.charCodeAt(a+1))*16+vne(t.charCodeAt(a+2)),a+=2),!eHe(o)){if(o===61){n++;continue}if(!J3e(o)||n>0){i=!0;continue}r++}}return i||n>2||n>0&&(r+n)%4!==0||r%4===1?rHe(t):tHe(r)},iHe=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const r=t.indexOf(",");if(r<0)return 0;const n=t.slice(5,r),i=t.slice(r+1);if(/;base64/i.test(n))return e(i);let o=0;for(let s=0,l=i.length;s<l;s++){const u=i.charCodeAt(s);if(u===37&&wye(i,s,l))o+=1,s+=2;else if(u<128)o+=1;else if(u<2048)o+=2;else if(u>=55296&&u<=56319&&s+1<l){const c=i.charCodeAt(s+1);c>=56320&&c<=57343?(o+=4,s++):o+=3}else o+=3}return o};function aHe(t){const e=typeof t=="string"?t.indexOf("#"):-1;return iHe(e===-1?t:t.slice(0,e),nHe)}const j$="1.20.0",gne=64*1024,oHe={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ak}=_e,sHe=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),mne=t=>{if(!_e.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},yne=(t,...e)=>{try{return!!t(...e)}catch{return!1}},lHe=t=>{const e=t.indexOf("://");let r=t;return e!==-1&&(r=r.slice(e+3)),r.includes("@")||r.includes(":")},uHe=t=>{const e=_e.global!==void 0&&_e.global!==null?_e.global:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=_e.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:a,Response:o}=t,s=i?ak(i):typeof fetch=="function",l=ak(a),u=ak(o);if(!s)return!1;const c=s&&ak(r),f=s&&(typeof n=="function"?(y=>b=>y.encode(b))(new n):async y=>new Uint8Array(await new a(y).arrayBuffer())),d=l&&c&&yne(()=>{let y=!1;const b=new a(Xo.origin,{body:new r,method:"POST",get duplex(){return y=!0,"half"}}),x=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),y&&!x}),A=u&&c&&yne(()=>_e.isReadableStream(new o("").body)),p={stream:A&&(y=>y.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(b,x)=>{let T=b&&b[y];if(T)return T.call(b);throw new bt(`Response type '${y}' is not supported`,bt.ERR_NOT_SUPPORT,x)})});const g=async y=>{if(y==null)return 0;if(_e.isBlob(y))return y.size;if(_e.isSpecCompliantForm(y))return(await new a(Xo.origin,{method:"POST",body:y}
17).arrayBuffer()).byteLength;if(_e.isArrayBufferView(y)||_e.isArrayBuffer(y))return y.byteLength;if(_e.isURLSearchParams(y)&&(y=y+""),_e.isString(y))return(await f(y)).byteLength},m=async(y,b)=>{const x=_e.toFiniteNumber(y.getContentLength());return x??g(b)};return async y=>{let{url:b,method:x,data:T,signal:B,cancelToken:R,timeout:I,onDownloadProgress:N,onUploadProgress:F,responseType:Q,headers:j,withCredentials:W="same-origin",fetchOptions:V,maxContentLength:Y,maxBodyLength:G,maxRedirects:K}=yye(y);const X=_e.isNumber(Y)&&Y>-1,q=_e.isNumber(G)&&G>-1,ne=Me=>_e.hasOwnProp(y,Me)?y[Me]:void 0;let te=i||fetch;Q=Q?(Q+"").toLowerCase():"text";let ce=$3e([B,R&&R.toAbortSignal()],I),he=null;const ve=ce&&ce.unsubscribe&&(()=>{ce.unsubscribe()});let ae,fe=null;const we=()=>new bt("Request body larger than maxBodyLength limit",bt.ERR_BAD_REQUEST,y,he);try{let Me;const ge=ne("auth");if(ge){const Ze=_e.getSafeProp(ge,"username")||"",Jt=_e.getSafeProp(ge,"password")||"";Me={username:Ze,password:Jt}}if(lHe(b)){const Ze=new URL(b,Xo.origin);if(!Me&&(Ze.username||Ze.password)){const Jt=mne(Ze.username),Sn=mne(Ze.password);Me={username:Jt,password:Sn}}(Ze.username||Ze.password)&&(Ze.username="",Ze.password="",b=Ze.href)}if(Me&&(j.delete("authorization"),j.set("Authorization","Basic "+btoa(sHe((Me.username||"")+":"+(Me.password||""))))),X&&typeof b=="string"&&b.startsWith("data:")&&aHe(b)>Y)throw new bt("maxContentLength size of "+Y+" exceeded",bt.ERR_BAD_RESPONSE,y,he);if(q&&x!=="get"&&x!=="head"){const Ze=await g(T);if(typeof Ze=="number"&&isFinite(Ze)&&(ae=Ze,Ze>G))throw we()}const be=q&&(_e.isReadableStream(T)||_e.isStream(T)),Ve=(Ze,Jt,Sn)=>Ane(Ze,gne,jr=>{if(q&&jr>G)throw fe=we();Jt&&Jt(jr)},Sn);if(d&&x!=="get"&&x!=="head"&&(F||be)){if(ae=ae??await m(j,T),ae!==0||be){let Ze=new a(b,{method:"POST",body:T,duplex:"half"}),Jt;if(_e.isFormData(T)&&(Jt=Ze.headers.get("content-type"))&&j.setContentType(Jt),Ze.body){const[Sn,jr]=F&&cne(ae,h4(fne(F)))||[];T=Ve(Ze.body,Sn,jr)}}}else if(be&&!l&&c&&x!=="get"&&x!=="head")T=Ve(T);else if(be&&l&&!d&&x!=="get"&&x!=="head")throw new bt("Stream request bodies are not supported by the current fetch implementation",bt.ERR_NOT_SUPPORT,y,he);_e.isString(W)||(W=W?"include":"omit");const Re=l&&"credentials"in a.prototype;if(_e.isFormData(T)){const Ze=j.getContentType();Ze&&/^multipart\/form-data/i.test(Ze)&&!/boundary=/i.test(Ze)&&j.delete("content-type")}j.set("User-Agent","axios/"+j$,!1);const Se=V==null?V:Object.assign(Object.create(null),V);Se&&(delete Se.body,delete Se.headers,delete Se.method,delete Se.signal,delete Se.duplex,delete Se.credentials);const nt=Object.assign(Object.create(null),Se,{signal:ce,method:x.toUpperCase(),headers:aye(j.normalize()),body:T,duplex:"half",credentials:Re?W:void 0});l&&(_e.forEach(oHe,(Ze,Jt)=>{nt[Jt]===void 0&&(nt[Jt]=Ze)}),nt.signal===void 0&&(nt.signal=null),nt.body===void 0&&(nt.body=null)),K===0&&(nt.redirect="manual",Se&&(Se.redirect="manual")),he=l&&new a(b,nt);let qe=await(l?te(he,Se):te(b,nt));const tt=ml.from(qe.headers);if(X){const Ze=_e.toFiniteNumber(tt.getContentLength());if(Ze!=null&&Ze>Y)throw new bt("maxContentLength size of "+Y+" exceeded",bt.ERR_BAD_RESPONSE,y,he)}const lt=A&&(Q==="stream"||Q==="response");if(A&&qe.body&&(N||X||lt&&ve)){const Ze={};["status","statusText","headers"].forEach(At=>{Ze[At]=qe[At]});const Jt=_e.toFiniteNumber(tt.getContentLength()),[Sn,jr]=N&&cne(Jt,h4(fne(N),!0))||[];let Oe=0;const ht=At=>{if(X&&(Oe=At,Oe>Y))throw new bt("maxContentLength size of "+Y+" exceeded",bt.ERR_BAD_RESPONSE,y,he);Sn&&Sn(At)};qe=new o(Ane(qe.body,gne,ht,()=>{jr&&jr(),ve&&ve()}),Ze)}Q=Q||"text";let ct=await p[_e.findKey(p,Q)||"text"](qe,y);if(X&&!A&&!lt){let Ze;if(ct!=null&&(typeof ct.byteLength=="number"?Ze=ct.byteLength:typeof ct.size=="number"?Ze=ct.size:typeof ct=="string"&&(Ze=typeof n=="function"?new n().encode(ct).byteLength:ct.length)),typeof Ze=="number"&&Ze>Y)throw new bt("maxContentLength size of "+Y+" exceeded",bt.ERR_BAD_RESPONSE,y,he)}return!lt&&ve&&ve(),await new Promise((Ze,Jt)=>{vye(Ze,Jt,{data:ct,headers:ml.from(qe.headers),status:qe.status,statusText:qe.statusText,config:y,request:he})})}catch(Me){if(ve&&ve(),ce&&ce.aborted&&ce.reason instanceof bt){const ge=ce.reason;throw ge.config=y,he&&(ge.request=he),Me!==ge&&Object.defineProperty(ge,"cause",{__proto__:null,value:Me,writable:!0,enumerable:!1,
vendor: 4,469 bytes, lines 17-23
17configurable:!0}),ge}if(fe)throw he&&!fe.request&&(fe.request=he),fe;if(Me instanceof bt)throw he&&!Me.request&&(Me.request=he),Me;if(Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)){const ge=new bt("Network Error",bt.ERR_NETWORK,y,he,Me&&Me.response);throw Object.defineProperty(ge,"cause",{__proto__:null,value:Me.cause||Me,writable:!0,enumerable:!1,configurable:!0}),ge}throw bt.from(Me,Me&&Me.code,y,he,Me&&Me.response)}}},cHe=new Map,_ye=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,a=[n,i,r];let o=a.length,s=o,l,u,c=cHe;for(;s--;)l=a[s],u=c.get(l),u===void 0&&c.set(l,u=s?new Map:uHe(e)),c=u;return u};_ye();const z$={http:g3e,xhr:Y3e,fetch:{get:_ye}};_e.forEach(z$,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const wne=t=>`- ${t}`,fHe=t=>_e.isFunction(t)||t===null||t===!1;function dHe(t,e){t=_e.isArray(t)?t:[t];const{length:r}=t;let n,i;const a={};for(let o=0;o<r;o++){n=t[o];let s;if(i=n,!fHe(n)&&(i=z$[(s=String(n)).toLowerCase()],i===void 0))throw new bt(`Unknown adapter '${s}'`);if(i&&(_e.isFunction(i)||(i=i.get(e))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
18`+o.map(wne).join(`
19`):" "+wne(o[0]):"as no adapter specified";throw new bt("There is no suitable adapter to dispatch the request "+s,bt.ERR_NOT_SUPPORT)}return i}const bye={getAdapter:dHe,adapters:z$};function Ez(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new rI(null,t)}function Bz(t){const e=_e.toSafeFlatObject(t);return Ez(e),e.headers=ml.from(_e.getSafeProp(e,"headers")),e.data=Cz.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bye.getAdapter(e.adapter||tI.adapter,e)(e).then(function(i){Ez(e),e.response=i;try{i.data=Cz.call(e,e.transformResponse,i)}finally{delete e.response}return i.headers=ml.from(i.headers),i},function(i){if(!pye(i)&&(Ez(e),i&&i.response)){e.response=i.response;try{i.response.data=Cz.call(e,e.transformResponse,i.response)}finally{delete e.response}i.response.headers=ml.from(i.response.headers)}return Promise.reject(i)})}const t5={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{t5[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const _ne={};t5.transitional=function(e,r,n){function i(a,o){return"[Axios v"+j$+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(e===!1)throw new bt(i(o," has been removed"+(r?" in "+r:"")),bt.ERR_DEPRECATED);return r&&!_ne[o]&&(_ne[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,s):!0}};t5.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function hHe(t,e,r){if(typeof t!="object"||t===null)throw new bt("options must be an object",bt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const a=n[i],o=Object.prototype.hasOwnProperty.call(e,a)?e[a]:void 0;if(o){const s=t[a],l=s===void 0||o(s,a,t);if(l!==!0)throw new bt("option "+a+" must be "+l,bt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new bt("Unknown option "+a,bt.ERR_BAD_OPTION)}}const YF={assertOptions:hHe,validators:t5},il=YF.validators;let ab=class{constructor(e){this.defaults=e||{},this.interceptors={request:new lne,response:new lne}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error)try{let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack;let o="";if(typeof a=="string"){const s=a.indexOf(`
20`);o=s===-1?"":a.slice(s+1)}if(!n.stack)n.stack=o;else if(o){const s=o.indexOf(`
21`),l=s===-1?-1:o.indexOf(`
22`,s+1),u=l===-1?"":o.slice(l+1);String(n.stack).endsWith(u)||(n.stack+=`
23`+o)}}catch{}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Db(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&YF.assertOptions(n,{silentJSONParsing:il.transitional(il.boolean),forcedJSONParsing:il.transitional(il.boolean),clarifyTimeoutError:il.transitional(il.boolean),legacyInterceptorReqResOrdering:il.transitional(il.boolean),advertiseZstdAcceptEncoding:il.transitional(il.boolean),validateStatusUndefinedResolves:il.transitional(il.boolean)}
23,!1),i!=null&&(_e.isFunction(i)?r.paramsSerializer={serialize:i}:YF.assertOptions(i,{encode:il.function,serialize:il.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),YF.assertOptions(r,{baseUrl:il.spelling("baseURL"),withXsrfToken:il.spelling("withXSRFToken")},!0),r.method=(_e.getSafeProp(r,"method")||_e.getSafeProp(this.defaults,"method")||"get").toLowerCase();let o=a&&_e.merge(a.common,a[r.method]);a&&_e.forEach(Aye.concat("common"),p=>{delete a[p]}),r.headers=ml.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;l=l&&g.synchronous;const m=r.transitional||H$;m&&m.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){const p=[Bz.bind(this),void 0];for(p.unshift(...s),p.push(...u),d=p.length,c=Promise.resolve(r);f<d;)c=c.then(p[f++],p[f++]);return c}d=s.length;let A=r;for(;f<d;){const p=s[f++],g=s[f++];try{A=p?p(A):A}catch(m){if(!g){c=Promise.reject(m);break}try{const y=g.call(this,m);_e.isThenable(y)&&(c=Promise.resolve(y).then(()=>Bz.call(this,A)))}catch(y){c=Promise.reject(y)}break}}if(!c)try{c=Bz.call(this,A)}catch(p){c=Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Db(this.defaults,e);const r=mye(e.baseURL,e.url,e.allowAbsoluteUrls,e);return cye(r,e.params,e.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(e){ab.prototype[e]=function(r,n){return this.request(Db(n||{},{method:e,url:r,data:n&&_e.hasOwnProp(n,"data")?n.data:void 0}))}});_e.forEach(["post","put","patch","query"],function(e){function r(n){return function(a,o,s){return this.request(Db(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}ab.prototype[e]=r(),e!=="query"&&(ab.prototype[e+"Form"]=r(!0))});let AHe=class xye{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},e(function(a,o,s){n.reason||(n.reason=new rI(a,o,s),r(n.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 r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new xye(function(i){e=i}),cancel:e}}};function pHe(t){return function(r){return t.apply(null,r)}}function vHe(t){return _e.isObject(t)&&t.isAxiosError===!0}const $F={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
23alContent: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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($F).forEach(([t,e])=>{$F[e]===void 0&&($F[e]=t)});function Sye(t){const e=new ab(t),r=Yme(ab.prototype.request,e);return _e.extend(r,ab.prototype,e,{allOwnKeys:!0}),_e.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return Sye(Db(t,i))},r}const Aa=Sye(tI);Aa.Axios=ab;Aa.CanceledError=rI;Aa.CancelToken=AHe;Aa.isCancel=pye;Aa.VERSION=j$;Aa.toFormData=e5;Aa.AxiosError=bt;Aa.Cancel=Aa.CanceledError;Aa.all=function(e){return Promise.all(e)};Aa.spread=pHe;Aa.isAxiosError=vHe;Aa.mergeConfig=Db;Aa.AxiosHeaders=ml;Aa.formToJSON=t=>hye(_e.isHTMLForm(t)?new FormData(t):t);Aa.getAdapter=bye.getAdapter;Aa.HttpStatusCode=$F;Aa.default=Aa;const{Axios:XNt,AxiosError:qNt,CanceledError:JNt,isCancel:eFt,CancelToken:tFt,VERSION:rFt,all:nFt,Cancel:iFt,isAxiosError:aFt,spread:oFt,toFormData:sFt,AxiosHeaders:lFt,HttpStatusCode:uFt,formToJSON:cFt,getAdapter:fFt,mergeConfig:dFt,create:hFt}=Aa;let kK=null,NK=null;const gHe=t=>{kK=t},bne=t=>{NK=t},Ov=Aa.create({baseURL:"https://api.demo.powersmarter.net/api/",headers:{"Content-Type":"application/json",Accept:"application/json"}});Ov.interceptors.request.use(async t=>{if(kK)try{const e=await kK();e&&(t.headers.Authorization=`Bearer ${e}`)}catch(e){console.warn("Unable to get access token:",e)}return t},t=>(console.error("Request errorMainErrroRREject:",t),Promise.reject(t)));Ov.interceptors.response.use(t=>t.data,t=>(t.response?(console.error("Response error Unindefified for now:",t.response),(t.response.status===401||t.response.status===403)&&(console.warn("Unauthorized access. Redirecting to login..."),NK?NK():window.location.href="/auth/login")):t.request?console.error("No response received:",t.request):console.error("Request setup error:",t.message),Promise.reject(t)));const hr=(t,e,r={},n,i)=>{const a=a4e({queryKey:t,queryFn:async()=>await Ov.get(e,{params:r}),retry:2,...n,enabled:i?.isDummy?!1:n?.enabled??!0});return i?.isDummy?{...a,data:i.data,isLoading:!1,isPending:!1,isFetching:!1,isError:!1,error:null}:a},qA=()=>E.jsx("div",{className:"custom-loader2"});var oM={exports:{}};var mHe=oM.exports,xne;function yHe(){return xne||(xne=1,(function(t,e){(function(){var r,n="4.18.1",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",d=1,A=2,p=4,g=1,m=2,y=1,b=2,x=4,T=8,B=16,R=32,I=64,N=128,F=256,Q=512,j=30,W="...",V=800,Y=16,G=1,K=2,X=3,q=1/0,ne=9007199254740991,te=17976931348623157e292,ce=NaN,he=4294967295,ve=he-1,ae=he>>>1,fe=[["ary",N],["bind",y],["bindKey",b],["curry",T],["curryRight",B],["flip",Q],["partial",R],["partialRight",I],["rearg",F]],we="[object Arguments]",Me="[object Array]",ge="[object AsyncFunction]",be="[object Boolean]",Ve="[object Date]",Re="[object DOMException]",Se="[object Error]",nt="[object Function]",qe="[object GeneratorFunction]",tt="[object Map]",lt="[object Number]",ct="[object Null]",Ze="[object Object]",Jt="[object Promise]",Sn="[object Proxy]",jr="[object RegExp]",Oe="[object Set]",ht="[object String]",At="[object Symbol]",Ft="[object Undef
23ined]",Yt="[object WeakMap]",zr="[object WeakSet]",ni="[object ArrayBuffer]",ii="[object DataView]",Qs="[object Float32Array]",js="[object Float64Array]",dd="[object Int8Array]",pu="[object Int16Array]",Cl="[object Int32Array]",Wc="[object Uint8Array]",hd="[object Uint8ClampedArray]",vu="[object Uint16Array]",_p="[object Uint32Array]",Kt=/\b__p \+= '';/g,un=/\b(__p \+=) '' \+/g,ar=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yr=/&(?:amp|lt|gt|quot|#39);/g,aa=/[&<>"']/g,$r=RegExp(Yr.source),Lg=RegExp(aa.source),B0=/<%-([\s\S]+?)%>/g,D0=/<%([\s\S]+?)%>/g,gu=/<%=([\s\S]+?)%>/g,oa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yc=/^\w*$/,ts=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M0=/[\\^$.*+?()[\]{}|]/g,LE=RegExp(M0.source),zs=/^\s+/,Qt=/\s/,bp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xp=/\{\n\/\* \[wrapped with (.+)\] \*/,$c=/,? & /,Sp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zc=/[()=,{}\[\]\/\s]/,L0=/\\(\\)?/g,Eh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Rg=/\w*$/,R0=/^[-+]0x[0-9a-f]+$/i,Cp=/^0b[01]+$/i,RE=/^\[object .+?Constructor\]$/,Hx=/^0o[0-7]+$/i,I0=/^(?:0|[1-9]\d*)$/,Qx=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 13,675 bytes, line 23
237f]/g,ic=/($^)/,O0=/['\n\r\u2028\u2029\\]/g,Tp="\\ud800-\\udfff",jx="\\u0300-\\u036f",ac="\\ufe20-\\ufe2f",Ma="\\u20d0-\\u20ff",La=jx+ac+Ma,Tl="\\u2700-\\u27bf",Ig="a-z\\xdf-\\xf6\\xf8-\\xff",zx="\\xac\\xb1\\xd7\\xf7",Ep="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cn="\\u2000-\\u206f",kn=" \\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",Xc="A-Z\\xc0-\\xd6\\xd8-\\xde",mu="\\ufe0e\\ufe0f",rs=zx+Ep+cn+kn,yu="['’]",br="["+Tp+"]",Nn="["+rs+"]",mi="["+La+"]",Bh="\\d+",ns="["+Tl+"]",P0="["+Ig+"]",El="[^"+Tp+rs+Bh+Tl+Ig+Xc+"]",Lo="\\ud83c[\\udffb-\\udfff]",Yi="(?:"+mi+"|"+Lo+")",oc="[^"+Tp+"]",qc="(?:\\ud83c[\\udde6-\\uddff]){2}",Ad="[\\ud800-\\udbff][\\udc00-\\udfff]",Fr="["+Xc+"]",pd="\\u200d",vd="(?:"+P0+"|"+El+")",Dh="(?:"+Fr+"|"+El+")",is="(?:"+yu+"(?:d|ll|m|re|s|t|ve))?",Ga="(?:"+yu+"(?:D|LL|M|RE|S|T|VE))?",Bp=Yi+"?",Dp="["+mu+"]?",Og="(?:"+pd+"(?:"+[oc,qc,Ad].join("|")+")"+Dp+Bp+")*",Pg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",IE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wt=Dp+Bp+Og,Vs="(?:"+[ns,qc,Ad].join("|")+")"+Wt,Fn="(?:"+[oc+mi+"?",mi,qc,Ad,br].join("|")+")",kg=RegExp(yu,"g"),Jc=RegExp(mi,"g"),Mh=RegExp(Lo+"(?="+Lo+")|"+Fn+Wt,"g"),Ng=RegExp([Fr+"?"+P0+"+"+is+"(?="+[Nn,Fr,"$"].join("|")+")",Dh+"+"+Ga+"(?="+[Nn,Fr+vd,"$"].join("|")+")",Fr+"?"+vd+"+"+is,Fr+"+"+Ga,IE,Pg,Bh,Vs].join("|"),"g"),Gs=RegExp("["+pd+Tp+La+mu+"]"),k0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lh=["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"],pa=-1,fn={};fn[Qs]=fn[js]=fn[dd]=fn[pu]=fn[Cl]=fn[Wc]=fn[hd]=fn[vu]=fn[_p]=!0,fn[we]=fn[Me]=fn[ni]=fn[be]=fn[ii]=fn[Ve]=fn[Se]=fn[nt]=fn[tt]=fn[lt]=fn[Ze]=fn[jr]=fn[Oe]=fn[ht]=fn[Yt]=!1;var Un={};Un[we]=Un[Me]=Un[ni]=Un[ii]=Un[be]=Un[Ve]=Un[Qs]=Un[js]=Un[dd]=Un[pu]=Un[Cl]=Un[tt]=Un[lt]=Un[Ze]=Un[jr]=Un[Oe]=Un[ht]=Un[At]=Un[Wc]=Un[hd]=Un[vu]=Un[_p]=!0,Un[Se]=Un[nt]=Un[Yt]=!1;var Vx={À:"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"},Fg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Mp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},N0=parseFloat,gd=parseInt,Ir=typeof KP=="object"&&KP&&KP.Object===Object&&KP,Gx=typeof self=="object"&&self&&self.Object===Object&&self,Dn=Ir||Gx||Function("return this")(),ef=e&&!e.nodeType&&e,Ks=ef&&!0&&t&&!t.nodeType&&t,wu=Ks&&Ks.exports===ef,md=wu&&Ir.process,Ka=(function(){try{var Ce=Ks&&Ks.require&&Ks.require("util").types;return Ce||md&&md.binding&&md.binding("util")}catch{}})(),_u=Ka&&Ka.isArrayBuffer,Ug=Ka&&Ka.isDate,Lp=Ka&&Ka.isMap,Rp=Ka&&Ka.isRegExp,Ip=Ka&&Ka.isSet,Ro=Ka&&Ka.isTypedArray;function Io(Ce,Ge,He){switch(He.length){case 0:return Ce.call(Ge);case 1:return Ce.call(Ge,He[0]);case 2:return Ce.call(Ge,He[0],He[1]);case 3:return Ce.call(Ge,He[0],He[1],He[2])}return Ce.apply(Ge,He)}function Wa(Ce,Ge,He,Et){for(var dr=-1,dn=Ce==null?0:Ce.length;++dr<dn;){var Pi=Ce[dr];Ge(Et,Pi,He(Pi),Ce)}return Et}function Hn(Ce,Ge){for(var He=-1,Et=Ce==null?0:Ce.length;++He<Et&&Ge(Ce[He],He,Ce)!==!1;);return Ce}function Op(Ce,Ge){for(var He=Ce==null?0:Ce.length;He--&&Ge(Ce[He],He,Ce)!==!1;);return Ce}function yd(Ce,Ge){for(var He=-1,Et=Ce==null?0:Ce.length;++He<Et;)if(!Ge(Ce[He],He,Ce))return!1;return!0}function bu(Ce,Ge){for(var He=-1,Et=Ce==null?0:Ce.length,dr=0,dn=[];++He<Et;){var Pi=Ce[He];Ge(Pi,He,Ce)&&(dn[dr++]=Pi)}return dn}function Rh(Ce,Ge){var He=Ce==null?0:Ce.length;return!!He&&xu(Ce,Ge,0)>-1}function Ih(Ce,Ge,He){for(var Et=-1,dr=Ce==null?0:Ce.length;++Et<dr;)if(He(Ge,Ce[Et]))return!0;return!1}function Mn(Ce,Ge){for(var He=-1,Et=Ce==null?0:Ce.length,dr=Array(Et);++He<Et;)dr[He]=Ge(Ce[He],He,Ce);return dr}function Dl(Ce,Ge){for(var He=-1,Et=Ge.length,dr=Ce.length;++He<Et;)Ce[dr+He]=Ge[He];return Ce}function Hg(Ce,Ge,He,Et){var dr=-1,dn=Ce==null?0:Ce.length;for(Et&&dn&&(He=Ce[++dr]);++dr<dn;)He=Ge(He,Ce[dr],dr,Ce);return He}function F0(Ce,Ge,He,Et){var dr=Ce==null?0:Ce.length;for(Et&&dr&&(He=Ce[--dr]);dr--;)He=Ge(He,Ce[dr],dr,Ce);return He}function U0(Ce,Ge){for(var He=-1,Et=Ce==null?0:Ce.length;++He<Et;)if(Ge(Ce[He],He,Ce))return!0;return!1}var Kx=Q0("length");function Qg(Ce){return Ce.split("")}function jg(Ce){return Ce.match(Sp)||[]}function tf(Ce,Ge,He){var Et;return He(Ce,function(dr,dn,Pi){if(Ge(dr,dn,Pi))return Et=dn,!1}),Et}function zg(Ce,Ge,He,Et){for(var dr=Ce.length,dn=He+(Et?1:-1);Et?dn--:++dn<dr;)if(Ge(Ce[dn],dn,Ce))return dn;return-1}function xu(Ce,Ge,He){return Ge===Ge?$x(Ce,Ge,He):zg(Ce,Vg,He)}function Ws(Ce,Ge,He,Et){for(var dr=He-1,dn=Ce.length;++dr<dn;)if(Et(Ce[dr],Ge))return dr;return-1}function Vg(Ce){return Ce!==Ce}function H0(Ce,Ge){var He=Ce==null?0:Ce.length;return He?z0(Ce,Ge)/He:ce}function Q0(Ce){return function(Ge){return Ge==null?r:Ge[Ce]}}function Pp(Ce){return function(Ge){return Ce==null?r:Ce[Ge]}}function Gg(Ce,Ge,He,Et,dr){return dr(Ce,function(dn,Pi,Qn){He=Et?(Et=!1,dn):Ge(He,dn,Pi,Qn)}),He}function j0(Ce,Ge){var He=Ce.length;for(Ce.sort(Ge);He--;)Ce[He]=Ce[He].value;return Ce}function z0(Ce,Ge){for(var He,Et=-1,dr=Ce.length;++Et<dr;){var dn=Ge(Ce[Et]);dn!==r&&(He=He===r?dn:He+dn)}return He}function Kg(Ce,Ge){for(var He=-1,Et=Array(Ce);++He<Ce;)Et[He]=Ge(He);return Et}function OE(Ce,Ge){return Mn(Ge,function(He){return[He,Ce[He]]})}function as(Ce){return Ce&&Ce.slice(0,Yg(Ce)+1).replace(zs,"")}function va(Ce){return function(Ge){return Ce(Ge)}}function V0(Ce,Ge){return Mn(Ge,function(He){return Ce[He]})}function os(Ce,Ge){return Ce.has(Ge)}function Wx(Ce,Ge){for(var He=-1,Et=Ce.length;++He<Et&&xu(Ge,Ce[He],0)>-1;);return He}function wd(Ce,Ge){for(var He=Ce.length;He--&&xu(Ge,Ce[He],0)>-1;);return He}function PE(Ce,Ge){for(var He=Ce.length,Et=0;He--;)Ce[He]===Ge&&++Et;return Et}var kp=Pp(Vx),Yx=Pp(Fg);function Wg(Ce){return"\\"+Mp[Ce]}function kE(Ce,Ge){return Ce==null?r:Ce[Ge]}function ss(Ce){return Gs.test(Ce)}function Oh(Ce){return k0.test(Ce)}function Np(Ce){for(var Ge,He=[];!(Ge=Ce.next()).done;)He.push(Ge.value);return He}function Fp(Ce){var Ge=-1,He=Array(Ce.size);return Ce.forEach(function(Et,dr){He[++Ge]=[dr,Et]}),He}function G0(Ce,Ge){return function(He){return Ce(Ge(He))}}function Ra(Ce,Ge){for(var He=-1,Et=Ce.length,dr=0,dn=[];++He<Et;){var Pi=Ce[He];(Pi===Ge||Pi===f)&&(Ce[He]=f,dn[dr++]=He)}return dn}function Up(Ce){var Ge=-1,He=Array(Ce.size);return Ce.forEach(function(Et){He[++Ge]=Et}),He}function _d(Ce){var Ge=-1,He=Array(Ce.size);return Ce.forEach(function(Et){He[++Ge]=[Et,Et]}),He}function $x(Ce,Ge,He){for(var Et=He-1,dr=Ce.length;++Et<dr;)if(Ce[Et]===Ge)return Et;return-1}function Oo(Ce,Ge,He){for(var Et=He+1;Et--;)if(Ce[Et]===Ge)return Et;return Et}function sc(Ce){return ss(Ce)?$g(Ce):Kx(Ce)}function Ys(Ce){return ss(Ce)?rf(Ce):Qg(Ce)}function Yg(Ce){for(var Ge=Ce.length;Ge--&&Qt.test(Ce.charAt(Ge)););return Ge}var Hp=Pp(Bl);function $g(Ce){for(var Ge=Mh.lastIndex=0;Mh.test(Ce);)++Ge;return Ge}function rf(Ce){return Ce.match(Mh)||[]}function Su(Ce){return Ce.match(Ng)||[]}var Zg=(function Ce(Ge){Ge=Ge==null?Dn:Ml.defaults(Dn.Object(),Ge,Ml.pick(Dn,Lh));var He=Ge.Array,Et=Ge.Date,dr=Ge.Error,dn=Ge.Function,Pi=Ge.Math,Qn=Ge.Object,$s=Ge.RegExp,Xg=Ge.String,Zs=Ge.TypeError,bd=He.prototype,ls=dn.prototype,Ll=Qn.prototype,Ph=Ge["__core-js_shared__"],lc=ls.toString,yn=Ll.hasOwnProperty,xd=0,qg=(function(){var S=/[^.]+$/.exec(Ph&&Ph.keys&&Ph.keys.IE_PROTO||"");return S?"Symbol(src)_1."+S:""})(),Sd=Ll.toString,NE=lc.call(Qn),Po=Dn._,Jg=$s("^"+lc.call(yn).replace(M0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uc=wu?Ge.Buffer:r,ko=Ge.Symbol,Qp=Ge.Uint8Array,Rl=uc?uc.allocUnsafe:r,us=G0(Qn.getPrototypeOf,Qn),jp=Qn.create,em=Ll.propertyIsEnumerable,Cu=bd.splice,tm=ko?ko.isConcatSpreadable:r,Cd=ko?ko.iterator:r,cc=ko?ko.toStringTag:r,zp=(function(){try{var S=Xh(Qn,"defineProperty");return S({},"",{}),S}catch{}})(),Zx=Ge.clearTimeout!==Dn.clearTimeout&&Ge.clearTimeout,FE=Et&&Et.now!==Dn.Date.now&&Et.now,K0=Ge.setTimeout!==Dn.setTimeout&&Ge.setTimeout,kh=Pi.ceil,Nh=Pi.floor,w=Qn.getOwnPropertySymbols,D=uc?uc.isBuffer:r,k=Ge.isFinite,z=bd.join,J=G0(Qn.keys,Qn),ie=Pi.max,de=Pi.min,Pe=Et.now,Qe=Ge.parseInt,Xe=Pi.random,yt=bd.reverse,$t=Xh(Ge,"DataView"),ur=Xh(Ge,"Map"),ga=Xh(Ge,"Promise"),Zn=Xh(Ge,"Set"),ki=Xh(Ge,"WeakMap"),ma=Xh(Qn,"create"),Ei=ki&&new ki,nf={},fc=qh($t),Xx=qh(ur),Vp=qh(ga),Td=qh(Zn),rm=qh(ki),ci=ko?ko.prototype:r,Tu=ci?ci.valueOf:r,W0=ci?ci.toString:r;function se(S){if(oi(S)&&!xr(S)&&!(S instanceof Or)){if(S instanceof Ya)return S;if(yn.call(S,"__wrapped__"))return D1(S)}return new Ya(S)}var Il=(function(){function S(){}return function(M){if(!Mi(M))return{};if(jp)return jp(M);S.prototype=M;var U=new S;return S.prototype=r,U}})();function Ol(){}function Ya(S,M){this.__wrapped__=S,this.__actions__=[],this.__chain__=!!M,this.__index__=0,this.__values__=r}se.templateSettings={escape:B0,evaluate:D0,interpolate:gu,variable:"",imports:{_:se}},se.prototype=Ol.prototype,se.prototype.constructor=se,Ya.prototype=Il(Ol.prototype),Ya.prototype.constructor=Ya;function Or(S){this.__wrapped__=S,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=he,this.__views__=[]}function Eu(){var S=new Or(this.__wrapped__);return S.__actions__=ds(this.__actions__),S.__dir__=this.__dir__,S.__filtered__=this.__filtered__,S.__iteratees__=ds(this.__iteratees__),S.__takeCount__=this.__takeCount__,S.__views__=ds(this.__views__),S}function Bu(){if(this.__filtered__){var S=new Or(this);S.__dir__=-1,S.__filtered__=!0}else S=this.clone(),S.__dir__*=-1;return S}function Fh(){var S=this.__wrapped__.value(),M=this.__dir__,U=xr(S),$=M<0,re=U?S.length:0,le=bO(0,re,this.__views__),pe=le.start,me=le.end,Ie=me-pe,Ye=$?me:pe-1,$e=this.__iteratees__,rt=$e.length,gt=0,Pt=de(Ie,this.__takeCount__);if(!U||!$&&re==Ie&&Pt==Ie)return YE(S,this.__actions__);var er=[];e:for(;Ie--&&gt<Pt;){Ye+=M;for(var Ur=-1,sr=S[Ye];++Ur<rt;){var kr=$e[Ur],Gr=kr.iteratee,tl=kr.type,qa=Gr(sr);if(tl==K)sr=qa;else if(!qa){if(tl==G)continue e;break e}}er[gt++]=sr}return er}Or.prototype=Il(Ol.prototype),Or.prototype.constructor=Or;function No(S){var M=-1,U=S==null?0:S.length;for(this.clear();++M<U;){var $=S[M];this.set($[0],$[1])}}function af(){this.__data__=ma?ma(null):{},this.size=0}function Ed(S){var M=this.has(S)&&delete this.__data__[S];return this.size-=M?1:0,M}function rO(S){var M=this.__data__;if(ma){var U=M[S];return U===u?r:U}return yn.call(M,S)?M[S]:r}function qx(S){var M=this.__data__;return ma?M[S]!==r:yn.call(M,S)}function UE(S,M){var U=this.__data__;return this.size+=this.has(S)?0:1,U[S]=ma&&M===r?u:M,this}No.prototype.clear=af,No.prototype.delete=Ed,No.prototype.get=rO,No.prototype.has=qx,No.prototype.set=UE;function of(S){var M=-1,U=S==null?0:S.length;for(this.clear();++M<U;){var $=S[M];this.set($[0],$[1])}}function $a(){this.__data__=[],this.size=0}function fi(S){var M=this.__data__,U=t1(M,S);if(U<0)return!1;var $=M.length-1;return U==$?M.pop():Cu.call(M,U,1),--this.size,!0}function Vr(S){var M=this.__data__,U=t1(M,S);return U<0?r:M[U][1]}function Uh(S){return t1(this.__data__,S)>-1}function Du(S,M){var U=this.__data__,$=t1(U,S);return $<0?(++this.size,U.push([S,M])):U[$][1]=M,this}of.prototype.clear=$a,of.prototype.delete=fi,of.prototype.get=Vr,of.prototype.has=Uh,of.prototype.set=Du;function dc(S){var M=-1,U=S==null?0:S.length;for(this.clear();++M<U;){var $=S[M];this.set($[0],$[1])}}function Hh(){this.size=0,this.__data__={hash:new No,map:new(ur||of),string:new No}}function nO(S){var M=b1(this,S).delete(S);return this.size-=M?1:0,M}function Jx(S){return b1(this,S).get(S)}function nm(S){return b1(this,S).has(S)}function Gp(S,M){var U=b1(this,S),$=U.size;return U.set(S,M),this.size+=U.size==$?0:1,this}dc.prototype.clear=Hh,dc.prototype.delete=nO,dc.prototype.get=Jx,dc.prototype.has=nm,dc.prototype.set=Gp;function Bd(S){var M=-1,U=S==null?0:S.length;for(this.__data__=new dc;++M<U;)this.add(S[M])}function Y0(S){return this.__data__.set(S,u),this}function HE(S){return this.__data__.has(S)}
vendor: 10,376 bytes, line 23
23Bd.prototype.add=Bd.prototype.push=Y0,Bd.prototype.has=HE;function co(S){var M=this.__data__=new of(S);this.size=M.size}function Dd(){this.__data__=new of,this.size=0}function Qh(S){var M=this.__data__,U=M.delete(S);return this.size=M.size,U}function Md(S){return this.__data__.get(S)}function e1(S){return this.__data__.has(S)}function QE(S,M){var U=this.__data__;if(U instanceof of){var $=U.__data__;if(!ur||$.length<i-1)return $.push([S,M]),this.size=++U.size,this;U=this.__data__=new dc($)}return U.set(S,M),this.size=U.size,this}co.prototype.clear=Dd,co.prototype.delete=Qh,co.prototype.get=Md,co.prototype.has=e1,co.prototype.set=QE;function jh(S,M){var U=xr(S),$=!U&&iA(S),re=!U&&!$&&el(S),le=!U&&!$&&!re&&Dm(S),pe=U||$||re||le,me=pe?Kg(S.length,Xg):[],Ie=me.length;for(var Ye in S)(M||yn.call(S,Ye))&&!(pe&&(Ye=="length"||re&&(Ye=="offset"||Ye=="parent")||le&&(Ye=="buffer"||Ye=="byteLength"||Ye=="byteOffset")||ff(Ye,Ie)))&&me.push(Ye);return me}function $0(S){var M=S.length;return M?S[lf(0,M-1)]:r}function Kp(S,M){return kd(ds(S),zh(M,0,S.length))}function fo(S){return kd(ds(S))}function im(S,M,U){(U!==r&&!Di(S[M],U)||U===r&&!(M in S))&&Mu(S,M,U)}function am(S,M,U){var $=S[M];(!(yn.call(S,M)&&Di($,U))||U===r&&!(M in S))&&Mu(S,M,U)}function t1(S,M){for(var U=S.length;U--;)if(Di(S[U][0],M))return U;return-1}function JQ(S,M,U,$){return Pl(S,function(re,le,pe){M($,re,U(re),pe)}),$}function iO(S,M){return S&&vc(M,ka(M),S)}function ya(S,M){return S&&vc(M,gs(M),S)}function Mu(S,M,U){M=="__proto__"&&zp?zp(S,M,{configurable:!0,enumerable:!0,value:U,writable:!0}):S[M]=U}function Wp(S,M){for(var U=-1,$=M.length,re=He($),le=S==null;++U<$;)re[U]=le?r:Tw(S,M[U]);return re}function zh(S,M,U){return S===S&&(U!==r&&(S=S<=U?S:U),M!==r&&(S=S>=M?S:M)),S}function Fo(S,M,U,$,re,le){var pe,me=M&d,Ie=M&A,Ye=M&p;if(U&&(pe=re?U(S,$,re,le):U(S)),pe!==r)return pe;if(!Mi(S))return S;var $e=xr(S);if($e){if(pe=xO(S),!me)return ds(S,pe)}else{var rt=po(S),gt=rt==nt||rt==qe;if(el(S))return sw(S,me);if(rt==Ze||rt==we||gt&&!re){if(pe=Ie||gt?{}:SO(S),!me)return Ie?AO(S,ya(pe,S)):eB(S,iO(pe,S))}else{if(!Un[rt])return re?S:{};pe=fB(S,rt,me)}}le||(le=new co);var Pt=le.get(S);if(Pt)return Pt;le.set(S,pe),XB(S)?S.forEach(function(sr){pe.add(Fo(sr,M,U,sr,S,le))}):ps(S)&&S.forEach(function(sr,kr){pe.set(kr,Fo(sr,M,U,kr,S,le))});var er=Ye?Ie?w1:fw:Ie?gs:ka,Ur=$e?r:er(S);return Hn(Ur||S,function(sr,kr){Ur&&(kr=sr,sr=S[kr]),am(pe,kr,Fo(sr,M,U,kr,S,le))}),pe}function ej(S){var M=ka(S);return function(U){return om(U,S,M)}}function om(S,M,U){var $=U.length;if(S==null)return!$;for(S=Qn(S);$--;){var re=U[$],le=M[re],pe=S[re];if(pe===r&&!(re in S)||!le(pe))return!1}return!0}function r1(S,M,U){if(typeof S!="function")throw new Zs(o);return vm(function(){S.apply(r,U)},M)}function hc(S,M,U,$){var re=-1,le=Rh,pe=!0,me=S.length,Ie=[],Ye=M.length;if(!me)return Ie;U&&(M=Mn(M,va(U))),$?(le=Ih,pe=!1):M.length>=i&&(le=os,pe=!1,M=new Bd(M));e:for(;++re<me;){var $e=S[re],rt=U==null?$e:U($e);if($e=$||$e!==0?$e:0,pe&&rt===rt){for(var gt=Ye;gt--;)if(M[gt]===rt)continue e;Ie.push($e)}else le(M,rt,$)||Ie.push($e)}return Ie}var Pl=tB(cs),aO=tB(Z0,!0);function oO(S,M){var U=!0;return Pl(S,function($,re,le){return U=!!M($,re,le),U}),U}function n1(S,M,U){for(var $=-1,re=S.length;++$<re;){var le=S[$],pe=M(le);if(pe!=null&&(me===r?pe===pe&&!vs(pe):U(pe,me)))var me=pe,Ie=le}return Ie}function sO(S,M,U,$){var re=S.length;for(U=Pr(U),U<0&&(U=-U>re?0:re+U),$=$===r||$>re?re:Pr($),$<0&&($+=re),$=U>$?0:sP($);U<$;)S[U++]=M;return S}function Vh(S,M){var U=[];return Pl(S,function($,re,le){M($,re,le)&&U.push($)}),U}function Ia(S,M,U,$,re){var le=-1,pe=S.length;for(U||(U=CO),re||(re=[]);++le<pe;){var me=S[le];M>0&&U(me)?M>1?Ia(me,M-1,U,$,re):Dl(re,me):$||(re[re.length]=me)}return re}var sm=rB(),jE=rB(!0);function cs(S,M){return S&&sm(S,M,ka)}function Z0(S,M){return S&&jE(S,M,ka)}function Yp(S,M){return bu(M,function(U){return jl(S[U])})}function sf(S,M){M=$i(M,S);for(var U=0,$=M.length;S!=null&&U<$;)S=S[Lu(M[U++])];return U&&U==$?S:r}function zE(S,M,U){var $=M(S);return xr(S)?$:Dl($,U(S))}function Uo(S){return S==null?S===r?Ft:ct:cc&&cc in Qn(S)?dw(S):Pa(S)}function Ld(S,M){return S>M}function $p(S,M){return S!=null&&yn.call(S,M)}function lO(S,M){return S!=null&&M in Qn(S)}function uO(S,M,U){return S>=de(M,U)&&S<ie(M,U)}function Gh(S,M,U){for(var $=U?Ih:Rh,re=S[0].length,le=S.length,pe=le,me=He(le),Ie=1/0,Ye=[];pe--;){var $e=S[pe];pe&&M&&($e=Mn($e,va(M))),Ie=de($e.length,Ie),me[pe]=!U&&(M||re>=120&&$e.length>=120)?new Bd(pe&&$e):r}$e=S[0];var rt=-1,gt=me[0];e:for(;++rt<re&&Ye.length<Ie;){var Pt=$e[rt],er=M?M(Pt):Pt;if(Pt=U||Pt!==0?Pt:0,!(gt?os(gt,er):$(Ye,er,U))){for(pe=le;--pe;){var Ur=me[pe];if(!(Ur?os(Ur,er):$(S[pe],er,U)))continue e}gt&&gt.push(er),Ye.push(Pt)}}return Ye}function X0(S,M,U,$){return cs(S,function(re,le,pe){M($,U(re),le,pe)}),$}function Kh(S,M,U){M=$i(M,S),S=gB(S,M);var $=S==null?S:S[Lu(Ru(M))];return $==null?r:Io($,S,U)}function Rd(S){return oi(S)&&Uo(S)==we}function i1(S){return oi(S)&&Uo(S)==ni}function cO(S){return oi(S)&&Uo(S)==Ve}function Ac(S,M,U,$,re){return S===M?!0:S==null||M==null||!oi(S)&&!oi(M)?S!==S&&M!==M:fO(S,M,U,$,Ac,re)}function fO(S,M,U,$,re,le){var pe=xr(S),me=xr(M),Ie=pe?Me:po(S),Ye=me?Me:po(M);Ie=Ie==we?Ze:Ie,Ye=Ye==we?Ze:Ye;var $e=Ie==Ze,rt=Ye==Ze,gt=Ie==Ye;if(gt&&el(S)){if(!el(M))return!1;pe=!0,$e=!1}if(gt&&!$e)return le||(le=new co),pe||Dm(S)?y1(S,M,U,$,re,le):wO(S,M,Ie,U,$,re,le);if(!(U&g)){var Pt=$e&&yn.call(S,"__wrapped__"),er=rt&&yn.call(M,"__wrapped__");if(Pt||er){var Ur=Pt?S.value():S,sr=er?M.value():M;return le||(le=new co),re(Ur,sr,U,$,le)}}return gt?(le||(le=new co),_O(S,M,U,$,re,le)):!1}function Wh(S){return oi(S)&&po(S)==tt}function q0(S,M,U,$){var re=U.length,le=re,pe=!$;if(S==null)return!le;for(S=Qn(S);re--;){var me=U[re];if(pe&&me[2]?me[1]!==S[me[0]]:!(me[0]in S))return!1}for(;++re<le;){me=U[re];var Ie=me[0],Ye=S[Ie],$e=me[1];if(pe&&me[2]){if(Ye===r&&!(Ie in S))return!1}else{var rt=new co;if($)var gt=$(Ye,$e,Ie,S,M,rt);if(!(gt===r?Ac($e,Ye,g|m,$,rt):gt))return!1}}return!0}function a1(S){if(!Mi(S)||T1(S))return!1;var M=jl(S)?Jg:RE;return M.test(qh(S))}function Yh(S){return oi(S)&&Uo(S)==jr}function $h(S){return oi(S)&&po(S)==Oe}function J0(S){return oi(S)&&Ho(S.length)&&!!fn[Uo(S)]}function o1(S){return typeof S=="function"?S:S==null?hi:typeof S=="object"?xr(S)?Id(S[0],S[1]):GE(S):BP(S)}function ew(S){if(!iv(S))return J(S);var M=[];for(var U in Qn(S))yn.call(S,U)&&U!="constructor"&&M.push(U);return M}function tw(S){if(!Mi(S))return _a(S);var M=iv(S),U=[];for(var $ in S)$=="constructor"&&(M||!yn.call(S,$))||U.push($);return U}function Zp(S,M){return S<M}function VE(S,M){var U=-1,$=ua(S)?He(S.length):[];return Pl(S,function(re,le,pe){$[++U]=M(re,le,pe)}),$}function GE(S){var M=uB(S);return M.length==1&&M[0][2]?AB(M[0][0],M[0][1]):function(U){return U===S||q0(U,S,M)}}function Id(S,M){return S1(S)&&hB(M)?AB(Lu(S),M):function(U){var $=Tw(U,S);return $===r&&$===M?Pu(U,S):Ac(M,$,g|m)}}function Xp(S,M,U,$,re){S!==M&&sm(M,function(le,pe){if(re||(re=new co),Mi(le))dO(S,M,pe,U,Xp,$,re);else{var me=$?$(E1(S,pe),le,pe+"",S,M,re):r;me===r&&(me=le),im(S,pe,me)}},gs)}function dO(S,M,U,$,re,le,pe){var me=E1(S,U),Ie=E1(M,U),Ye=pe.get(Ie);if(Ye){im(S,U,Ye);return}var $e=le?le(me,Ie,U+"",S,M,pe):r,rt=$e===r;if(rt){var gt=xr(Ie),Pt=!gt&&el(Ie),er=!gt&&!Pt&&Dm(Ie);$e=Ie,gt||Pt||er?xr(me)?$e=me:Rr(me)?$e=ds(me):Pt?(rt=!1,$e=sw(Ie,!0)):er?(rt=!1,$e=h1(Ie,!0)):$e=[]:Bm(Ie)||iA(Ie)?($e=me,iA(me)?$e=lP(me):(!Mi(me)||jl(me))&&($e=SO(Ie))):rt=!1}rt&&(pe.set(Ie,$e),re($e,Ie,$,le,pe),pe.delete(Ie)),im(S,U,$e)}function s1(S,M){var U=S.length;if(U)return M+=M<0?U:0,ff(M,U)?S[M]:r}function l1(S,M,U){M.length?M=Mn(M,function(le){return xr(le)?function(pe){return sf(pe,le.length===1?le[0]:le)}:le}):M=[hi];var $=-1;M=Mn(M,va(or()));var re=VE(S,function(le,pe,me){var Ie=Mn(M,function(Ye){return Ye(le)});return{criteria:Ie,index:++$,value:le}});return j0(re,function(le,pe){return hO(le,pe,U)})}function ho(S,M){return Ao(S,M,function(U,$){return Pu(S,$)})}function Ao(S,M,U){for(var $=-1,re=M.length,le={};++$<re;){var pe=M[$],me=sf(S,pe);U(me,pe)&&Nl(le,$i(pe,S),me)}return le}function Zh(S){return function(M){return sf(M,S)}}function rw(S,M,U,$){var re=$?Ws:xu,le=-1,pe=M.length,me=S;for(S===M&&(M=ds(M)),U&&(me=Mn(S,va(U)));++le<pe;)for(var Ie=0,Ye=M[le],$e=U?U(Ye):Ye;(Ie=re(me,$e,Ie,$))>-1;)me!==S&&Cu.call(me,Ie,1),Cu.call(S,Ie,1);return S}function KE(S,M){for(var U=S?M.length:0,$=U-1;U--;){var re=M[U];if(U==$||re!==le){var le=re;ff(re)?Cu.call(S,re,1):nw(S,re)}}return S}function lf(S,M){return S+Nh(Xe()*(M-S+1))}function kl(S,M,U,$){for(var re=-1,le=ie(kh((M-S)/(U||1)),0),pe=He(le);le--;)pe[$?le:++re]=S,S+=U;return pe}function Oa(S,M){var U="";if(!S||M<1||M>ne)return U;do M%2&&(U+=S),M=Nh(M/2),M&&(S+=S);while(M);return U}function Mr(S,M){return gm(vB(S,M,hi),S+"")}function WE(S){return $0(lA(S))}function u1(S,M){var U=lA(S);return kd(U,zh(M,0,U.length))}function Nl(S,M,U,$){if(!Mi(S))return S;M=$i(M,S);for(var re=-1,le=M.length,pe=le-1,me=S;me!=null&&++re<le;){var Ie=Lu(M[re]),Ye=U;if(Ie==="__proto__"||Ie==="constructor"||Ie==="prototype")return S;if(re!=pe){var $e=me[Ie];Ye=$?$($e,Ie,me):r,Ye===r&&(Ye=Mi($e)?$e:ff(M[re+1])?[]:{})}am(me,Ie,Ye),me=me[Ie]}return S}var Lr=Ei?function(S,M){return Ei.set(S,M),S}:hi,Xn=zp?function(S,M){return zp(S,"toString",{configurable:!0,enumerable:!1,value:w2(M),writable:!0})}:hi;function wa(S){return kd(lA(S))}function fs(S,M,U){var $=-1,re=S.length;M<0&&(M=-M>re?0:re+M),U=U>re?re:U,U<0&&(U+=re),re=M>U?0:U-M>>>0,M>>>=0;for(var le=He(re);++$<re;)le[$]=S[$+M];return le}function lm(S,M){var U;return Pl(S,function($,re,le){return U=M($,re,le),!U}),!!U}function uf(S,M,U){var $=0,re=S==null?$:S.length;if(typeof M=="number"&&M===M&&re<=ae){for(;$<re;){var le=$+re>>>1,pe=S[le];pe!==null&&!vs(pe)&&(U?pe<=M:pe<M)?$=le+1:re=le}return re}return um(S,M,hi,U)}function um(S,M,U,$){var re=0,le=S==null?0:S.length;if(le===0)return 0;M=U(M);for(var pe=M!==M,me=M===null,Ie=vs(M),Ye=M===r;re<le;){var $e=Nh((re+le)/2),rt=U(S[$e]),gt=rt!==r,Pt=rt===null,er=rt===rt,Ur=vs(rt);if(pe)var sr=$||er;else Ye?sr=er&&($||gt):me?sr=er&&gt&&($||!Pt):Ie?sr=er&&gt&&!Pt&&($||!Ur):Pt||Ur?sr=!1:sr=$?rt<=M:rt<M;sr?re=$e+1:le=$e}return de(le,ve)}function cm(S,M){for(var U=-1,$=S.length,re=0,le=[];++U<$;){var pe=S[U],me=M?M(pe):pe;if(!U||!Di(me,Ie)){var Ie=me;
vendor: 11,406 bytes, line 23
23le[re++]=pe===0?0:pe}}return le}function qp(S){return typeof S=="number"?S:vs(S)?ce:+S}function Fl(S){if(typeof S=="string")return S;if(xr(S))return Mn(S,Fl)+"";if(vs(S))return W0?W0.call(S):"";var M=S+"";return M=="0"&&1/S==-q?"-0":M}function jn(S,M,U){var $=-1,re=Rh,le=S.length,pe=!0,me=[],Ie=me;if(U)pe=!1,re=Ih;else if(le>=i){var Ye=M?null:mO(S);if(Ye)return Up(Ye);pe=!1,re=os,Ie=new Bd}else Ie=M?[]:me;e:for(;++$<le;){var $e=S[$],rt=M?M($e):$e;if($e=U||$e!==0?$e:0,pe&&rt===rt){for(var gt=Ie.length;gt--;)if(Ie[gt]===rt)continue e;M&&Ie.push(rt),me.push($e)}else re(Ie,rt,U)||(Ie!==me&&Ie.push(rt),me.push($e))}return me}function nw(S,M){M=$i(M,S);var U=-1,$=M.length;if(!$)return!0;for(;++U<$;){var re=Lu(M[U]);if(re==="__proto__"&&!yn.call(S,"__proto__")||(re==="constructor"||re==="prototype")&&U<$-1)return!1}var le=gB(S,M);return le==null||delete le[Lu(Ru(M))]}function c1(S,M,U,$){return Nl(S,M,U(sf(S,M)),$)}function iw(S,M,U,$){for(var re=S.length,le=$?re:-1;($?le--:++le<re)&&M(S[le],le,S););return U?fs(S,$?0:le,$?le+1:re):fs(S,$?le+1:0,$?re:le)}function YE(S,M){var U=S;return U instanceof Or&&(U=U.value()),Hg(M,function($,re){return re.func.apply(re.thisArg,Dl([$],re.args))},U)}function $E(S,M,U){var $=S.length;if($<2)return $?jn(S[0]):[];for(var re=-1,le=He($);++re<$;)for(var pe=S[re],me=-1;++me<$;)me!=re&&(le[re]=hc(le[re]||pe,S[me],M,U));return jn(Ia(le,1),M,U)}function f1(S,M,U){for(var $=-1,re=S.length,le=M.length,pe={};++$<re;){var me=$<le?M[$]:r;U(pe,S[$],me)}return pe}function aw(S){return Rr(S)?S:[]}function ow(S){return typeof S=="function"?S:hi}function $i(S,M){return xr(S)?S:S1(S,M)?[S]:B1(Cn(S))}var sa=Mr;function pc(S,M,U){var $=S.length;return U=U===r?$:U,!M&&U>=$?S:fs(S,M,U)}var fm=Zx||function(S){return Dn.clearTimeout(S)};function sw(S,M){if(M)return S.slice();var U=S.length,$=Rl?Rl(U):new S.constructor(U);return S.copy($),$}function lw(S){var M=new S.constructor(S.byteLength);return new Qp(M).set(new Qp(S)),M}function Od(S,M){var U=M?lw(S.buffer):S.buffer;return new S.constructor(U,S.byteOffset,S.byteLength)}function d1(S){var M=new S.constructor(S.source,Rg.exec(S));return M.lastIndex=S.lastIndex,M}function ZE(S){return Tu?Qn(Tu.call(S)):{}}function h1(S,M){var U=M?lw(S.buffer):S.buffer;return new S.constructor(U,S.byteOffset,S.length)}function XE(S,M){if(S!==M){var U=S!==r,$=S===null,re=S===S,le=vs(S),pe=M!==r,me=M===null,Ie=M===M,Ye=vs(M);if(!me&&!Ye&&!le&&S>M||le&&pe&&Ie&&!me&&!Ye||$&&pe&&Ie||!U&&Ie||!re)return 1;if(!$&&!le&&!Ye&&S<M||Ye&&U&&re&&!$&&!le||me&&U&&re||!pe&&re||!Ie)return-1}return 0}function hO(S,M,U){for(var $=-1,re=S.criteria,le=M.criteria,pe=re.length,me=U.length;++$<pe;){var Ie=XE(re[$],le[$]);if(Ie){if($>=me)return Ie;var Ye=U[$];return Ie*(Ye=="desc"?-1:1)}}return S.index-M.index}function qE(S,M,U,$){for(var re=-1,le=S.length,pe=U.length,me=-1,Ie=M.length,Ye=ie(le-pe,0),$e=He(Ie+Ye),rt=!$;++me<Ie;)$e[me]=M[me];for(;++re<pe;)(rt||re<le)&&($e[U[re]]=S[re]);for(;Ye--;)$e[me++]=S[re++];return $e}function JE(S,M,U,$){for(var re=-1,le=S.length,pe=-1,me=U.length,Ie=-1,Ye=M.length,$e=ie(le-me,0),rt=He($e+Ye),gt=!$;++re<$e;)rt[re]=S[re];for(var Pt=re;++Ie<Ye;)rt[Pt+Ie]=M[Ie];for(;++pe<me;)(gt||re<le)&&(rt[Pt+U[pe]]=S[re++]);return rt}function ds(S,M){var U=-1,$=S.length;for(M||(M=He($));++U<$;)M[U]=S[U];return M}function vc(S,M,U,$){var re=!U;U||(U={});for(var le=-1,pe=M.length;++le<pe;){var me=M[le],Ie=$?$(U[me],S[me],me,U,S):r;Ie===r&&(Ie=S[me]),re?Mu(U,me,Ie):am(U,me,Ie)}return U}function eB(S,M){return vc(S,hw(S),M)}function AO(S,M){return vc(S,Aw(S),M)}function A1(S,M){return function(U,$){var re=xr(U)?Wa:JQ,le=M?M():{};return re(U,S,or($,2),le)}}function Jp(S){return Mr(function(M,U){var $=-1,re=U.length,le=re>1?U[re-1]:r,pe=re>2?U[2]:r;for(le=S.length>3&&typeof le=="function"?(re--,le):r,pe&&la(U[0],U[1],pe)&&(le=re<3?r:le,re=1),M=Qn(M);++$<re;){var me=U[$];me&&S(M,me,$,le)}return M})}function tB(S,M){return function(U,$){if(U==null)return U;if(!ua(U))return S(U,$);for(var re=U.length,le=M?re:-1,pe=Qn(U);(M?le--:++le<re)&&$(pe[le],le,pe)!==!1;);return U}}function rB(S){return function(M,U,$){for(var re=-1,le=Qn(M),pe=$(M),me=pe.length;me--;){var Ie=pe[S?me:++re];if(U(le[Ie],Ie,le)===!1)break}return M}}function nB(S,M,U){var $=M&y,re=dm(S);function le(){var pe=this&&this!==Dn&&this instanceof le?re:S;return pe.apply($?U:this,arguments)}return le}function iB(S){return function(M){M=Cn(M);var U=ss(M)?Ys(M):r,$=U?U[0]:M.charAt(0),re=U?pc(U,1).join(""):M.slice(1);return $[S]()+re}}function ev(S){return function(M){return Hg(g2(c2(M).replace(kg,"")),S,"")}}function dm(S){return function(){var M=arguments;switch(M.length){case 0:return new S;case 1:return new S(M[0]);case 2:return new S(M[0],M[1]);case 3:return new S(M[0],M[1],M[2]);case 4:return new S(M[0],M[1],M[2],M[3]);case 5:return new S(M[0],M[1],M[2],M[3],M[4]);case 6:return new S(M[0],M[1],M[2],M[3],M[4],M[5]);case 7:return new S(M[0],M[1],M[2],M[3],M[4],M[5],M[6])}var U=Il(S.prototype),$=S.apply(U,M);return Mi($)?$:U}}function pO(S,M,U){var $=dm(S);function re(){for(var le=arguments.length,pe=He(le),me=le,Ie=nv(re);me--;)pe[me]=arguments[me];var Ye=le<3&&pe[0]!==Ie&&pe[le-1]!==Ie?[]:Ra(pe,Ie);if(le-=Ye.length,le<U)return oB(S,M,uw,re.placeholder,r,pe,Ye,r,r,U-le);var $e=this&&this!==Dn&&this instanceof re?$:S;return Io($e,this,pe)}return re}function aB(S){return function(M,U,$){var re=Qn(M);if(!ua(M)){var le=or(U,3);M=ka(M),U=function(me){return le(re[me],me,re)}}var pe=S(M,U,$);return pe>-1?re[le?M[pe]:pe]:r}}function vO(S){return Pd(function(M){var U=M.length,$=U,re=Ya.prototype.thru;for(S&&M.reverse();$--;){var le=M[$];if(typeof le!="function")throw new Zs(o);if(re&&!pe&&Am(le)=="wrapper")var pe=new Ya([],!0)}for($=pe?$:U;++$<U;){le=M[$];var me=Am(le),Ie=me=="wrapper"?_1(le):r;Ie&&C1(Ie[0])&&Ie[1]==(N|T|R|F)&&!Ie[4].length&&Ie[9]==1?pe=pe[Am(Ie[0])].apply(pe,Ie[3]):pe=le.length==1&&C1(le)?pe[me]():pe.thru(le)}return function(){var Ye=arguments,$e=Ye[0];if(pe&&Ye.length==1&&xr($e))return pe.plant($e).value();for(var rt=0,gt=U?M[rt].apply(this,Ye):$e;++rt<U;)gt=M[rt].call(this,gt);return gt}})}function uw(S,M,U,$,re,le,pe,me,Ie,Ye){var $e=M&N,rt=M&y,gt=M&b,Pt=M&(T|B),er=M&Q,Ur=gt?r:dm(S);function sr(){for(var kr=arguments.length,Gr=He(kr),tl=kr;tl--;)Gr[tl]=arguments[tl];if(Pt)var qa=nv(sr),ms=PE(Gr,qa);if($&&(Gr=qE(Gr,$,re,Pt)),le&&(Gr=JE(Gr,le,pe,Pt)),kr-=ms,Pt&&kr<Ye){var Ni=Ra(Gr,qa);return oB(S,M,uw,sr.placeholder,U,Gr,Ni,me,Ie,Ye-kr)}var rl=rt?U:this,bf=gt?rl[S]:S;return kr=Gr.length,me?Gr=BO(Gr,me):er&&kr>1&&Gr.reverse(),$e&&Ie<kr&&(Gr.length=Ie),this&&this!==Dn&&this instanceof sr&&(bf=Ur||dm(bf)),bf.apply(rl,Gr)}return sr}function tv(S,M){return function(U,$){return X0(U,S,M($),{})}}function cw(S,M){return function(U,$){var re;if(U===r&&$===r)return M;if(U!==r&&(re=U),$!==r){if(re===r)return $;typeof U=="string"||typeof $=="string"?(U=Fl(U),$=Fl($)):(U=qp(U),$=qp($)),re=S(U,$)}return re}}function hm(S){return Pd(function(M){return M=Mn(M,va(or())),Mr(function(U){var $=this;return S(M,function(re){return Io(re,$,U)})})})}function rv(S,M){M=M===r?" ":Fl(M);var U=M.length;if(U<2)return U?Oa(M,S):M;var $=Oa(M,kh(S/sc(M)));return ss(M)?pc(Ys($),0,S).join(""):$.slice(0,S)}function gO(S,M,U,$){var re=M&y,le=dm(S);function pe(){for(var me=-1,Ie=arguments.length,Ye=-1,$e=$.length,rt=He($e+Ie),gt=this&&this!==Dn&&this instanceof pe?le:S;++Ye<$e;)rt[Ye]=$[Ye];for(;Ie--;)rt[Ye++]=arguments[++me];return Io(gt,re?U:this,rt)}return pe}function p1(S){return function(M,U,$){return $&&typeof $!="number"&&la(M,U,$)&&(U=$=r),M=_f(M),U===r?(U=M,M=0):U=_f(U),$=$===r?M<U?1:-1:_f($),kl(M,U,$,S)}}function v1(S){return function(M,U){return typeof M=="string"&&typeof U=="string"||(M=Ou(M),U=Ou(U)),S(M,U)}}function oB(S,M,U,$,re,le,pe,me,Ie,Ye){var $e=M&T,rt=$e?pe:r,gt=$e?r:pe,Pt=$e?le:r,er=$e?r:le;M|=$e?R:I,M&=~($e?I:R),M&x||(M&=-4);var Ur=[S,M,re,Pt,rt,er,gt,me,Ie,Ye],sr=U.apply(r,Ur);return C1(S)&&pm(sr,Ur),sr.placeholder=$,mB(sr,S,M)}function g1(S){var M=Pi[S];return function(U,$){if(U=Ou(U),$=$==null?0:de(Pr($),292),$&&k(U)){var re=(Cn(U)+"e").split("e"),le=M(re[0]+"e"+(+re[1]+$));return re=(Cn(le)+"e").split("e"),+(re[0]+"e"+(+re[1]-$))}return M(U)}}var mO=Zn&&1/Up(new Zn([,-0]))[1]==q?function(S){return new Zn(S)}:x2;function sB(S){return function(M){var U=po(M);return U==tt?Fp(M):U==Oe?_d(M):OE(M,S(M))}}function cf(S,M,U,$,re,le,pe,me){var Ie=M&b;if(!Ie&&typeof S!="function")throw new Zs(o);var Ye=$?$.length:0;if(Ye||(M&=-97,$=re=r),pe=pe===r?pe:ie(Pr(pe),0),me=me===r?me:Pr(me),Ye-=re?re.length:0,M&I){var $e=$,rt=re;$=re=r}var gt=Ie?r:_1(S),Pt=[S,M,U,$,re,$e,rt,le,pe,me];if(gt&&pB(Pt,gt),S=Pt[0],M=Pt[1],U=Pt[2],$=Pt[3],re=Pt[4],me=Pt[9]=Pt[9]===r?Ie?0:S.length:ie(Pt[9]-Ye,0),!me&&M&(T|B)&&(M&=-25),!M||M==y)var er=nB(S,M,U);else M==T||M==B?er=pO(S,M,me):(M==R||M==(y|R))&&!re.length?er=gO(S,M,U,$):er=uw.apply(r,Pt);var Ur=gt?Lr:pm;return mB(Ur(er,Pt),S,M)}function m1(S,M,U,$){return S===r||Di(S,Ll[U])&&!yn.call($,U)?M:S}function lB(S,M,U,$,re,le){return Mi(S)&&Mi(M)&&(le.set(M,S),Xp(S,M,r,lB,le),le.delete(M)),S}function yO(S){return Bm(S)?r:S}function y1(S,M,U,$,re,le){var pe=U&g,me=S.length,Ie=M.length;if(me!=Ie&&!(pe&&Ie>me))return!1;var Ye=le.get(S),$e=le.get(M);if(Ye&&$e)return Ye==M&&$e==S;var rt=-1,gt=!0,Pt=U&m?new Bd:r;for(le.set(S,M),le.set(M,S);++rt<me;){var er=S[rt],Ur=M[rt];if($)var sr=pe?$(Ur,er,rt,M,S,le):$(er,Ur,rt,S,M,le);if(sr!==r){if(sr)continue;gt=!1;break}if(Pt){if(!U0(M,function(kr,Gr){if(!os(Pt,Gr)&&(er===kr||re(er,kr,U,$,le)))return Pt.push(Gr)})){gt=!1;break}}else if(!(er===Ur||re(er,Ur,U,$,le))){gt=!1;break}}return le.delete(S),le.delete(M),gt}function wO(S,M,U,$,re,le,pe){switch(U){case ii:if(S.byteLength!=M.byteLength||S.byteOffset!=M.byteOffset)return!1;S=S.buffer,M=M.buffer;case ni:return!(S.byteLength!=M.byteLength||!le(new Qp(S),new Qp(M)));case be:case Ve:case lt:return Di(+S,+M);case Se:return S.name==M.name&&S.message==M.message;case jr:case ht:return S==M+"";case tt:var me=Fp;case Oe:var Ie=$&g;if(me||(me=Up),S.size!=M.size&&!Ie)return!1;var Ye=pe.get(S);if(Ye)return Ye==M;$|=m,pe.set(S,M);var $e=y1(me(S),me(M),$,re,le,pe);return pe.delete(S),$e;case At:if(Tu)return Tu.call(S)==Tu.call(M)}return!1}function _O(S,M,U,$,re,le){var pe=U&g,me=fw(S),Ie=me.length,Ye=fw(M),$e=Ye.length;if(Ie!=$e&&!pe)return!1;for(var rt=Ie;rt--;){var gt=me[rt];if(!(pe?gt in M:yn.call(M,gt)))return!1}var Pt=le.get(S),er=le.get(M);if(Pt&&er)return Pt==M&&er==S;var Ur=!0;le.set(S,M),le.set(M,S);for(var sr=pe;++rt<Ie;){gt=me[rt];var kr=S[gt],Gr=M[gt];if($)var tl=pe?$(Gr,kr,gt,M,S,le):$(kr,Gr,gt,S,M,le);if(!(tl===r?kr===Gr||re(kr,Gr,U,$,le):tl)){Ur=!1;break}sr||(sr=gt=="constructor")}if(Ur&&!sr){var qa=S.constructor,ms=M.constructor;qa!=ms&&"constructor"in S&&"constructor"in M&&!(typeof qa=="function"&&qa instanceof qa&&typeof ms=="function"&&ms instanceof ms)&&(Ur=!1)}return le.delete(S),le.delete(M),Ur}function Pd(S){return gm(vB(S,r,df),S+"")}function fw(S){return zE(S,ka,hw)}function w1(S){return zE(S,gs,Aw)}var _1=Ei?function(S){return Ei.get(S)}:x2;function Am(S){for(var M=S.name+"",U=nf[M],$=yn.call(nf,M)?U.length:0;$--;){var re=U[$],le=re.func;if(le==null||le==S)return re.name}return M}function nv(S){var M=yn.call(se,"placeholder")?se:S;return M.placeholder}function or(){var S=se.iteratee||_2;return S=S===_2?o1:S,arguments.length?S(arguments[0],arguments[1]):S}function b1(S,M){var U=S.__data__;
vendor: 4,558 bytes, lines 23-25
23return TO(M)?U[typeof M=="string"?"string":"hash"]:U.map}function uB(S){for(var M=ka(S),U=M.length;U--;){var $=M[U],re=S[$];M[U]=[$,re,hB(re)]}return M}function Xh(S,M){var U=kE(S,M);return a1(U)?U:r}function dw(S){var M=yn.call(S,cc),U=S[cc];try{S[cc]=r;var $=!0}catch{}var re=Sd.call(S);return $&&(M?S[cc]=U:delete S[cc]),re}var hw=w?function(S){return S==null?[]:(S=Qn(S),bu(w(S),function(M){return em.call(S,M)}))}:C2,Aw=w?function(S){for(var M=[];S;)Dl(M,hw(S)),S=us(S);return M}:C2,po=Uo;($t&&po(new $t(new ArrayBuffer(1)))!=ii||ur&&po(new ur)!=tt||ga&&po(ga.resolve())!=Jt||Zn&&po(new Zn)!=Oe||ki&&po(new ki)!=Yt)&&(po=function(S){var M=Uo(S),U=M==Ze?S.constructor:r,$=U?qh(U):"";if($)switch($){case fc:return ii;case Xx:return tt;case Vp:return Jt;case Td:return Oe;case rm:return Yt}return M});function bO(S,M,U){for(var $=-1,re=U.length;++$<re;){var le=U[$],pe=le.size;switch(le.type){case"drop":S+=pe;break;case"dropRight":M-=pe;break;case"take":M=de(M,S+pe);break;case"takeRight":S=ie(S,M-pe);break}}return{start:S,end:M}}function x1(S){var M=S.match(xp);return M?M[1].split($c):[]}function cB(S,M,U){M=$i(M,S);for(var $=-1,re=M.length,le=!1;++$<re;){var pe=Lu(M[$]);if(!(le=S!=null&&U(S,pe)))break;S=S[pe]}return le||++$!=re?le:(re=S==null?0:S.length,!!re&&Ho(re)&&ff(pe,re)&&(xr(S)||iA(S)))}function xO(S){var M=S.length,U=new S.constructor(M);return M&&typeof S[0]=="string"&&yn.call(S,"index")&&(U.index=S.index,U.input=S.input),U}function SO(S){return typeof S.constructor=="function"&&!iv(S)?Il(us(S)):{}}function fB(S,M,U){var $=S.constructor;switch(M){case ni:return lw(S);case be:case Ve:return new $(+S);case ii:return Od(S,U);case Qs:case js:case dd:case pu:case Cl:case Wc:case hd:case vu:case _p:return h1(S,U);case tt:return new $;case lt:case ht:return new $(S);case jr:return d1(S);case Oe:return new $;case At:return ZE(S)}}function dB(S,M){var U=M.length;if(!U)return S;var $=U-1;return M[$]=(U>1?"& ":"")+M[$],M=M.join(U>2?", ":" "),S.replace(bp,`{
24/* [wrapped with `+M+`] */
25`)}function CO(S){return xr(S)||iA(S)||!!(tm&&S&&S[tm])}function ff(S,M){var U=typeof S;return M=M??ne,!!M&&(U=="number"||U!="symbol"&&I0.test(S))&&S>-1&&S%1==0&&S<M}function la(S,M,U){if(!Mi(U))return!1;var $=typeof M;return($=="number"?ua(U)&&ff(M,U.length):$=="string"&&M in U)?Di(U[M],S):!1}function S1(S,M){if(xr(S))return!1;var U=typeof S;return U=="number"||U=="symbol"||U=="boolean"||S==null||vs(S)?!0:Yc.test(S)||!oa.test(S)||M!=null&&S in Qn(M)}function TO(S){var M=typeof S;return M=="string"||M=="number"||M=="symbol"||M=="boolean"?S!=="__proto__":S===null}function C1(S){var M=Am(S),U=se[M];if(typeof U!="function"||!(M in Or.prototype))return!1;if(S===U)return!0;var $=_1(U);return!!$&&S===$[0]}function T1(S){return!!qg&&qg in S}var EO=Ph?jl:nS;function iv(S){var M=S&&S.constructor,U=typeof M=="function"&&M.prototype||Ll;return S===U}function hB(S){return S===S&&!Mi(S)}function AB(S,M){return function(U){return U==null?!1:U[S]===M&&(M!==r||S in Qn(U))}}function tj(S){var M=K1(S,function($){return U.size===c&&U.clear(),$}),U=M.cache;return M}function pB(S,M){var U=S[1],$=M[1],re=U|$,le=re<(y|b|N),pe=$==N&&U==T||$==N&&U==F&&S[7].length<=M[8]||$==(N|F)&&M[7].length<=M[8]&&U==T;if(!(le||pe))return S;$&y&&(S[2]=M[2],re|=U&y?0:x);var me=M[3];if(me){var Ie=S[3];S[3]=Ie?qE(Ie,me,M[4]):me,S[4]=Ie?Ra(S[3],f):M[4]}return me=M[5],me&&(Ie=S[5],S[5]=Ie?JE(Ie,me,M[6]):me,S[6]=Ie?Ra(S[5],f):M[6]),me=M[7],me&&(S[7]=me),$&N&&(S[8]=S[8]==null?M[8]:de(S[8],M[8])),S[9]==null&&(S[9]=M[9]),S[0]=M[0],S[1]=re,S}function _a(S){var M=[];if(S!=null)for(var U in Qn(S))M.push(U);return M}function Pa(S){return Sd.call(S)}function vB(S,M,U){return M=ie(M===r?S.length-1:M,0),function(){for(var $=arguments,re=-1,le=ie($.length-M,0),pe=He(le);++re<le;)pe[re]=$[M+re];re=-1;for(var me=He(M+1);++re<M;)me[re]=$[re];return me[M]=U(pe),Io(S,this,me)}}function gB(S,M){return M.length<2?S:sf(S,fs(M,0,-1))}function BO(S,M){for(var U=S.length,$=de(M.length,U),re=ds(S);$--;){var le=M[$];S[$]=ff(le,U)?re[le]:r}return S}function E1(S,M){if(!(M==="constructor"&&typeof S[M]=="function")&&M!="__proto__")return S[M]}var pm=DO(Lr),vm=K0||function(S,M){return Dn.setTimeout(S,M)},gm=DO(Xn);function mB(S,M,U){var $=M+"";return gm(S,dB($,MO(x1($),U)))}function DO(S){var M=0,U=0;return function(){var $=Pe(),re=Y-($-U);if(U=$,re>0){if(++M>=V)return arguments[0]}else M=0;return S.apply(r,arguments)}}function kd(S,M){var U=-1,$=S.length,re=$-1;for(M=M===r?$:M;++U<M;){var le=lf(U,re),pe=S[le];S[le]=S[U],S[U]=pe}return S.length=M,S}var B1=tj(function(S){var M=[];
vendor: 4,369 bytes, line 25
25return S.charCodeAt(0)===46&&M.push(""),S.replace(ts,function(U,$,re,le){M.push(re?le.replace(L0,"$1"):$||U)}),M});function Lu(S){if(typeof S=="string"||vs(S))return S;var M=S+"";return M=="0"&&1/S==-q?"-0":M}function qh(S){if(S!=null){try{return lc.call(S)}catch{}try{return S+""}catch{}}return""}function MO(S,M){return Hn(fe,function(U){var $="_."+U[0];M&U[1]&&!Rh(S,$)&&S.push($)}),S.sort()}function D1(S){if(S instanceof Or)return S.clone();var M=new Ya(S.__wrapped__,S.__chain__);return M.__actions__=ds(S.__actions__),M.__index__=S.__index__,M.__values__=S.__values__,M}function yB(S,M,U){(U?la(S,M,U):M===r)?M=1:M=ie(Pr(M),0);var $=S==null?0:S.length;if(!$||M<1)return[];for(var re=0,le=0,pe=He(kh($/M));re<$;)pe[le++]=fs(S,re,re+=M);return pe}function wB(S){for(var M=-1,U=S==null?0:S.length,$=0,re=[];++M<U;){var le=S[M];le&&(re[$++]=le)}return re}function LO(){var S=arguments.length;if(!S)return[];for(var M=He(S-1),U=arguments[0],$=S;$--;)M[$-1]=arguments[$];return Dl(xr(U)?ds(U):[U],Ia(M,1))}var _B=Mr(function(S,M){return Rr(S)?hc(S,Ia(M,1,Rr,!0)):[]}),M1=Mr(function(S,M){var U=Ru(M);return Rr(U)&&(U=r),Rr(S)?hc(S,Ia(M,1,Rr,!0),or(U,2)):[]}),L1=Mr(function(S,M){var U=Ru(M);return Rr(U)&&(U=r),Rr(S)?hc(S,Ia(M,1,Rr,!0),r,U):[]});function rj(S,M,U){var $=S==null?0:S.length;return $?(M=U||M===r?1:Pr(M),fs(S,M<0?0:M,$)):[]}function RO(S,M,U){var $=S==null?0:S.length;return $?(M=U||M===r?1:Pr(M),M=$-M,fs(S,0,M<0?0:M)):[]}function IO(S,M){return S&&S.length?iw(S,or(M,3),!0,!0):[]}function R1(S,M){return S&&S.length?iw(S,or(M,3),!0):[]}function bB(S,M,U,$){var re=S==null?0:S.length;return re?(U&&typeof U!="number"&&la(S,M,U)&&(U=0,$=re),sO(S,M,U,$)):[]}function I1(S,M,U){var $=S==null?0:S.length;if(!$)return-1;var re=U==null?0:Pr(U);return re<0&&(re=ie($+re,0)),zg(S,or(M,3),re)}function xB(S,M,U){var $=S==null?0:S.length;if(!$)return-1;var re=$-1;return U!==r&&(re=Pr(U),re=U<0?ie($+re,0):de(re,$-1)),zg(S,or(M,3),re,!0)}function df(S){var M=S==null?0:S.length;return M?Ia(S,1):[]}function SB(S){var M=S==null?0:S.length;return M?Ia(S,q):[]}function nj(S,M){var U=S==null?0:S.length;return U?(M=M===r?1:Pr(M),Ia(S,M)):[]}function OO(S){for(var M=-1,U=S==null?0:S.length,$={};++M<U;){var re=S[M];Mu($,re[0],re[1])}return $}function hf(S){return S&&S.length?S[0]:r}function CB(S,M,U){var $=S==null?0:S.length;if(!$)return-1;var re=U==null?0:Pr(U);return re<0&&(re=ie($+re,0)),xu(S,M,re)}function PO(S){var M=S==null?0:S.length;return M?fs(S,0,-1):[]}var O1=Mr(function(S){var M=Mn(S,aw);return M.length&&M[0]===S[0]?Gh(M):[]}),pw=Mr(function(S){var M=Ru(S),U=Mn(S,aw);return M===Ru(U)?M=r:U.pop(),U.length&&U[0]===S[0]?Gh(U,or(M,2)):[]}),di=Mr(function(S){var M=Ru(S),U=Mn(S,aw);return M=typeof M=="function"?M:r,M&&U.pop(),U.length&&U[0]===S[0]?Gh(U,r,M):[]});function ij(S,M){return S==null?"":z.call(S,M)}function Ru(S){var M=S==null?0:S.length;return M?S[M-1]:r}function kO(S,M,U){var $=S==null?0:S.length;if(!$)return-1;var re=$;return U!==r&&(re=Pr(U),re=re<0?ie($+re,0):de(re,$-1)),M===M?Oo(S,M,re):zg(S,Vg,re,!0)}function vw(S,M){return S&&S.length?s1(S,Pr(M)):r}var Jh=Mr(TB);function TB(S,M){return S&&S.length&&M&&M.length?rw(S,M):S}function NO(S,M,U){return S&&S.length&&M&&M.length?rw(S,M,or(U,2)):S}function Af(S,M,U){return S&&S.length&&M&&M.length?rw(S,M,r,U):S}var vo=Pd(function(S,M){var U=S==null?0:S.length,$=Wp(S,M);return KE(S,Mn(M,function(re){return ff(re,U)?+re:re}).sort(XE)),$});function P1(S,M){var U=[];if(!(S&&S.length))return U;var $=-1,re=[],le=S.length;for(M=or(M,3);++$<le;){var pe=S[$];M(pe,$,S)&&(U.push(pe),re.push($))}return KE(S,re),U}function k1(S){return S==null?S:yt.call(S)}function gw(S,M,U){var $=S==null?0:S.length;return $?(U&&typeof U!="number"&&la(S,M,U)?(M=0,U=$):(M=M==null?0:Pr(M),U=U===r?$:Pr(U)),fs(S,M,U)):[]}function EB(S,M){return uf(S,M)}function BB(S,M,U){return um(S,M,or(U,2))}function DB(S,M){var U=S==null?0:S.length;if(U){var $=uf(S,M);if($<U&&Di(S[$],M))return $}return-1}function MB(S,M){return uf(S,M,!0)}function FO(S,M,U){return um(S,M,or(U,2),!0)}function LB(S,M){var U=S==null?0:S.length;if(U){var $=uf(S,M,!0)-1;if(Di(S[$],M))return $}return-1}function RB(S){return S&&S.length?cm(S):[]}function N1(S,M){return S&&S.length?cm(S,or(M,2)):[]}function UO(S){var M=S==null?0:S.length;return M?fs(S,1,M):[]}function F1(S,M,U){return S&&S.length?(M=U||M===r?1:Pr(M),fs(S,0,M<0?0:M)
vendor: 5,894 bytes, line 25
25):[]}function Ul(S,M,U){var $=S==null?0:S.length;return $?(M=U||M===r?1:Pr(M),M=$-M,fs(S,M<0?0:M,$)):[]}function HO(S,M){return S&&S.length?iw(S,or(M,3),!1,!0):[]}function pf(S,M){return S&&S.length?iw(S,or(M,3)):[]}var QO=Mr(function(S){return jn(Ia(S,1,Rr,!0))}),Xs=Mr(function(S){var M=Ru(S);return Rr(M)&&(M=r),jn(Ia(S,1,Rr,!0),or(M,2))}),mm=Mr(function(S){var M=Ru(S);return M=typeof M=="function"?M:r,jn(Ia(S,1,Rr,!0),r,M)});function jO(S){return S&&S.length?jn(S):[]}function vf(S,M){return S&&S.length?jn(S,or(M,2)):[]}function U1(S,M){return M=typeof M=="function"?M:r,S&&S.length?jn(S,r,M):[]}function mw(S){if(!(S&&S.length))return[];var M=0;return S=bu(S,function(U){if(Rr(U))return M=ie(U.length,M),!0}),Kg(M,function(U){return Mn(S,Q0(U))})}function H1(S,M){if(!(S&&S.length))return[];var U=mw(S);return M==null?U:Mn(U,function($){return Io(M,r,$)})}var IB=Mr(function(S,M){return Rr(S)?hc(S,M):[]}),zO=Mr(function(S){return $E(bu(S,Rr))}),OB=Mr(function(S){var M=Ru(S);return Rr(M)&&(M=r),$E(bu(S,Rr),or(M,2))}),Q1=Mr(function(S){var M=Ru(S);return M=typeof M=="function"?M:r,$E(bu(S,Rr),r,M)}),VO=Mr(mw);function PB(S,M){return f1(S||[],M||[],am)}function GO(S,M){return f1(S||[],M||[],Nl)}var Za=Mr(function(S){var M=S.length,U=M>1?S[M-1]:r;return U=typeof U=="function"?(S.pop(),U):r,H1(S,U)});function Ln(S){var M=se(S);return M.__chain__=!0,M}function gf(S,M){return M(S),S}function ym(S,M){return M(S)}var KO=Pd(function(S){var M=S.length,U=M?S[0]:0,$=this.__wrapped__,re=function(le){return Wp(le,S)};return M>1||this.__actions__.length||!($ instanceof Or)||!ff(U)?this.thru(re):($=$.slice(U,+U+(M?1:0)),$.__actions__.push({func:ym,args:[re],thisArg:r}),new Ya($,this.__chain__).thru(function(le){return M&&!le.length&&le.push(r),le}))});function Xa(){return Ln(this)}function mf(){return new Ya(this.value(),this.__chain__)}function yw(){this.__values__===r&&(this.__values__=xw(this.value()));var S=this.__index__>=this.__values__.length,M=S?r:this.__values__[this.__index__++];return{done:S,value:M}}function j1(){return this}function kB(S){for(var M,U=this;U instanceof Ol;){var $=D1(U);$.__index__=0,$.__values__=r,M?re.__wrapped__=$:M=$;var re=$;U=U.__wrapped__}return re.__wrapped__=S,M}function aj(){var S=this.__wrapped__;if(S instanceof Or){var M=S;return this.__actions__.length&&(M=new Or(this)),M=M.reverse(),M.__actions__.push({func:ym,args:[k1],thisArg:r}),new Ya(M,this.__chain__)}return this.thru(k1)}function z1(){return YE(this.__wrapped__,this.__actions__)}var WO=A1(function(S,M,U){yn.call(S,U)?++S[U]:Mu(S,U,1)});function NB(S,M,U){var $=xr(S)?yd:oO;return U&&la(S,M,U)&&(M=r),$(S,or(M,3))}function YO(S,M){var U=xr(S)?bu:Vh;return U(S,or(M,3))}var FB=aB(I1),$O=aB(xB);function Bi(S,M){return Ia(Js(S,M),1)}function qs(S,M){return Ia(Js(S,M),q)}function gc(S,M,U){return U=U===r?1:Pr(U),Ia(Js(S,M),U)}function UB(S,M){var U=xr(S)?Hn:Pl;return U(S,or(M,3))}function HB(S,M){var U=xr(S)?Op:aO;return U(S,or(M,3))}var ZO=A1(function(S,M,U){yn.call(S,U)?S[U].push(M):Mu(S,U,[M])});function oj(S,M,U,$){S=ua(S)?S:lA(S),U=U&&!$?Pr(U):0;var re=S.length;return U<0&&(U=ie(re+U,0)),sv(S)?U<=re&&S.indexOf(M,U)>-1:!!re&&xu(S,M,U)>-1}var V1=Mr(function(S,M,U){var $=-1,re=typeof M=="function",le=ua(S)?He(S.length):[];return Pl(S,function(pe){le[++$]=re?Io(M,pe,U):Kh(pe,M,U)}),le}),hs=A1(function(S,M,U){Mu(S,U,M)});function Js(S,M){var U=xr(S)?Mn:VE;return U(S,or(M,3))}function XO(S,M,U,$){return S==null?[]:(xr(M)||(M=M==null?[]:[M]),U=$?r:U,xr(U)||(U=U==null?[]:[U]),l1(S,M,U))}var As=A1(function(S,M,U){S[U?0:1].push(M)},function(){return[[],[]]});function qO(S,M,U){var $=xr(S)?Hg:Gg,re=arguments.length<3;return $(S,or(M,4),U,re,Pl)}function wm(S,M,U){var $=xr(S)?F0:Gg,re=arguments.length<3;return $(S,or(M,4),U,re,aO)}function JO(S,M){var U=xr(S)?bu:Vh;return U(S,hn(or(M,3)))}function yf(S){var M=xr(S)?$0:WE;return M(S)}function eA(S,M,U){(U?la(S,M,U):M===r)?M=1:M=Pr(M);var $=xr(S)?Kp:u1;return $(S,M)}function mc(S){var M=xr(S)?fo:wa;return M(S)}function QB(S){if(S==null)return 0;if(ua(S))return sv(S)?sc(S):S.length;var M=po(S);return M==tt||M==Oe?S.size:ew(S).length}function jB(S,M,U){var $=xr(S)?U0:lm;return U&&la(S,M,U)&&(M=r),$(S,or(M,3))}var Iu=Mr(function(S,M){if(S==null)return[];var U=M.length;return U>1&&la(S,M[0],M[1])?M=[]:U>2&&la(M[0],M[1],M[2])&&(M=[M[0]]),l1(S,Ia(M,1),[])}),ww=FE||function(){return Dn.Date.now()};function _m(S,M){if(typeof M!="function")throw new Zs(o);return S=Pr(S),function(){if(--S<1)return M.apply(this,arguments)}}function bm(S,M,U){return M=U?r:M,M=S&&M==null?S.length:M,cf(S,N,r,r,r,r,M)}function tA(S,M){var U;if(typeof M!="function")throw new Zs(o);return S=Pr(S),function(){return--S>0&&(U=M.apply(this,arguments)),S<=1&&(M=r),U}}var Nd=Mr(function(S,M,U){var $=y;if(U.length){var re=Ra(U,nv(Nd));$|=R}return cf(S,$,M,U,re)}),zB=Mr(function(S,M,U){var $=y|b;if(U.length){var re=Ra(U,nv(zB));$|=R}return cf(M,$,S,U,re)});function VB(S,M,U){M=U?r:M;var $=cf(S,T,r,r,r,r,r,M);return $.placeholder=VB.placeholder,$}function xm(S,M,U){M=U?r:M;var $=cf(S,B,r,r,r,r,r,M);return $.placeholder=xm.placeholder,$}function GB(S,M,U){var $,re,le,pe,me,Ie,Ye=0,$e=!1,rt=!1,gt=!0;if(typeof S!="function")throw new Zs(o);M=Ou(M)||0,Mi(U)&&($e=!!U.leading,rt="maxWait"in U,le=rt?ie(Ou(U.maxWait)||0,M):le,gt="trailing"in U?!!U.trailing:gt);function Pt(Ni){var rl=$,bf=re;return $=re=r,Ye=Ni,pe=S.apply(bf,rl),pe}function er(Ni){return Ye=Ni,me=vm(kr,M),$e?Pt(Ni):pe}function Ur(Ni){var rl=Ni-Ie,bf=Ni-Ye,iS=M-rl;return rt?de(iS,le-bf):iS}function sr(Ni){var rl=Ni-Ie,bf=Ni-Ye;return Ie===r||rl>=M||rl<0||rt&&bf>=le}function kr(){var Ni=ww();if(sr(Ni))return Gr(Ni);me=vm(kr,Ur(Ni))}function Gr(Ni){return me=r,gt&&$?Pt(Ni):($=re=r,pe)}function tl(){me!==r&&fm(me),Ye=0,$=Ie=re=me=r}function qa(){return me===r?pe:Gr(ww())}function ms(){var Ni=ww(),rl=sr(Ni);if($=arguments,re=this,Ie=Ni,rl){if(me===r)return er(Ie);
vendor: 4,229 bytes, line 25
25if(rt)return fm(me),me=vm(kr,M),Pt(Ie)}return me===r&&(me=vm(kr,M)),pe}return ms.cancel=tl,ms.flush=qa,ms}var G1=Mr(function(S,M){return r1(S,1,M)}),eP=Mr(function(S,M,U){return r1(S,Ou(M)||0,U)});function sj(S){return cf(S,Q)}function K1(S,M){if(typeof S!="function"||M!=null&&typeof M!="function")throw new Zs(o);var U=function(){var $=arguments,re=M?M.apply(this,$):$[0],le=U.cache;if(le.has(re))return le.get(re);var pe=S.apply(this,$);return U.cache=le.set(re,pe)||le,pe};return U.cache=new(K1.Cache||dc),U}K1.Cache=dc;function hn(S){if(typeof S!="function")throw new Zs(o);return function(){var M=arguments;switch(M.length){case 0:return!S.call(this);case 1:return!S.call(this,M[0]);case 2:return!S.call(this,M[0],M[1]);case 3:return!S.call(this,M[0],M[1],M[2])}return!S.apply(this,M)}}function ai(S){return tA(2,S)}var en=sa(function(S,M){M=M.length==1&&xr(M[0])?Mn(M[0],va(or())):Mn(Ia(M,1),va(or()));var U=M.length;return Mr(function($){for(var re=-1,le=de($.length,U);++re<le;)$[re]=M[re].call(this,$[re]);return Io(S,this,$)})}),Zr=Mr(function(S,M){var U=Ra(M,nv(Zr));return cf(S,R,r,M,U)}),Pn=Mr(function(S,M){var U=Ra(M,nv(Pn));return cf(S,I,r,M,U)}),Hl=Pd(function(S,M){return cf(S,F,r,r,r,M)});function rA(S,M){if(typeof S!="function")throw new Zs(o);return M=M===r?M:Pr(M),Mr(S,M)}function Sm(S,M){if(typeof S!="function")throw new Zs(o);return M=M==null?0:ie(Pr(M),0),Mr(function(U){var $=U[M],re=pc(U,0,M);return $&&Dl(re,$),Io(S,this,re)})}function KB(S,M,U){var $=!0,re=!0;if(typeof S!="function")throw new Zs(o);return Mi(U)&&($="leading"in U?!!U.leading:$,re="trailing"in U?!!U.trailing:re),GB(S,M,{leading:$,maxWait:M,trailing:re})}function Fd(S){return bm(S,1)}function Zi(S,M){return Zr(ow(M),S)}function nA(){if(!arguments.length)return[];var S=arguments[0];return xr(S)?S:[S]}function av(S){return Fo(S,p)}function W1(S,M){return M=typeof M=="function"?M:r,Fo(S,p,M)}function Ql(S){return Fo(S,d|p)}function Cm(S,M){return M=typeof M=="function"?M:r,Fo(S,d|p,M)}function _w(S,M){return M==null||om(S,M,ka(M))}function Di(S,M){return S===M||S!==S&&M!==M}var WB=v1(Ld),Y1=v1(function(S,M){return S>=M}),iA=Rd((function(){return arguments})())?Rd:function(S){return oi(S)&&yn.call(S,"callee")&&!em.call(S,"callee")},xr=He.isArray,$1=_u?va(_u):i1;function ua(S){return S!=null&&Ho(S.length)&&!jl(S)}function Rr(S){return oi(S)&&ua(S)}function yc(S){return S===!0||S===!1||oi(S)&&Uo(S)==be}var el=D||nS,wf=Ug?va(Ug):cO;function YB(S){return oi(S)&&S.nodeType===1&&!Bm(S)}function $B(S){if(S==null)return!0;if(ua(S)&&(xr(S)||typeof S=="string"||typeof S.splice=="function"||el(S)||Dm(S)||iA(S)))return!S.length;var M=po(S);if(M==tt||M==Oe)return!S.size;if(iv(S))return!ew(S).length;for(var U in S)if(yn.call(S,U))return!1;return!0}function tP(S,M){return Ac(S,M)}function Tm(S,M,U){U=typeof U=="function"?U:r;var $=U?U(S,M):r;return $===r?Ac(S,M,r,U):!!$}function aA(S){if(!oi(S))return!1;var M=Uo(S);return M==Se||M==Re||typeof S.message=="string"&&typeof S.name=="string"&&!Bm(S)}function Em(S){return typeof S=="number"&&k(S)}function jl(S){if(!Mi(S))return!1;var M=Uo(S);return M==nt||M==qe||M==ge||M==Sn}function bw(S){return typeof S=="number"&&S==Pr(S)}function Ho(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=ne}function Mi(S){var M=typeof S;return S!=null&&(M=="object"||M=="function")}function oi(S){return S!=null&&typeof S=="object"}var ps=Lp?va(Lp):Wh;function rP(S,M){return S===M||q0(S,M,uB(M))}function nP(S,M,U){return U=typeof U=="function"?U:r,q0(S,M,uB(M),U)}function lj(S){return ov(S)&&S!=+S}function oA(S){if(EO(S))throw new dr(a);return a1(S)}function Z1(S){return S===null}function ZB(S){return S==null}function ov(S){return typeof S=="number"||oi(S)&&Uo(S)==lt}function Bm(S){if(!oi(S)||Uo(S)!=Ze)return!1;var M=us(S);if(M===null)return!0;var U=yn.call(M,"constructor")&&M.constructor;return typeof U=="function"&&U instanceof U&&lc.call(U)==NE}var X1=Rp?va(Rp):Yh;function iP(S){return bw(S)&&S>=-ne&&S<=ne}var XB=Ip?va(Ip):$h;function sv(S){return typeof S=="string"||!xr(S)&&oi(S)&&Uo(S)==ht}function vs(S){return typeof S=="symbol"||oi(S)&&Uo(S)==At}var Dm=Ro?va(Ro):J0;function uj(S){return S===r}function cj(S){return oi(S)&&po(S)==Yt}function aP(S){return oi(S)&&Uo(S)==zr}
vendor: 5,387 bytes, line 25
25var oP=v1(Zp),Mm=v1(function(S,M){return S<=M});function xw(S){if(!S)return[];if(ua(S))return sv(S)?Ys(S):ds(S);if(Cd&&S[Cd])return Np(S[Cd]());var M=po(S),U=M==tt?Fp:M==Oe?Up:lA;return U(S)}function _f(S){if(!S)return S===0?S:0;if(S=Ou(S),S===q||S===-q){var M=S<0?-1:1;return M*te}return S===S?S:0}function Pr(S){var M=_f(S),U=M%1;return M===M?U?M-U:M:0}function sP(S){return S?zh(Pr(S),0,he):0}function Ou(S){if(typeof S=="number")return S;if(vs(S))return ce;if(Mi(S)){var M=typeof S.valueOf=="function"?S.valueOf():S;S=Mi(M)?M+"":M}if(typeof S!="string")return S===0?S:+S;S=as(S);var U=Cp.test(S);return U||Hx.test(S)?gd(S.slice(2),U?2:8):R0.test(S)?ce:+S}function lP(S){return vc(S,gs(S))}function qB(S){return S?zh(Pr(S),-ne,ne):S===0?S:0}function Cn(S){return S==null?"":Fl(S)}var JB=Jp(function(S,M){if(iv(M)||ua(M)){vc(M,ka(M),S);return}for(var U in M)yn.call(M,U)&&am(S,U,M[U])}),e2=Jp(function(S,M){vc(M,gs(M),S)}),Sw=Jp(function(S,M,U,$){vc(M,gs(M),S,$)}),Cw=Jp(function(S,M,U,$){vc(M,ka(M),S,$)}),uP=Pd(Wp);function zn(S,M){var U=Il(S);return M==null?U:iO(U,M)}var t2=Mr(function(S,M){S=Qn(S);var U=-1,$=M.length,re=$>2?M[2]:r;for(re&&la(M[0],M[1],re)&&($=1);++U<$;)for(var le=M[U],pe=gs(le),me=-1,Ie=pe.length;++me<Ie;){var Ye=pe[me],$e=S[Ye];($e===r||Di($e,Ll[Ye])&&!yn.call(S,Ye))&&(S[Ye]=le[Ye])}return S}),fj=Mr(function(S){return S.push(r,lB),Io(i2,r,S)});function cP(S,M){return tf(S,or(M,3),cs)}function dj(S,M){return tf(S,or(M,3),Z0)}function hj(S,M){return S==null?S:sm(S,or(M,3),gs)}function Aj(S,M){return S==null?S:jE(S,or(M,3),gs)}function Lm(S,M){return S&&cs(S,or(M,3))}function Rm(S,M){return S&&Z0(S,or(M,3))}function r2(S){return S==null?[]:Yp(S,ka(S))}function q1(S){return S==null?[]:Yp(S,gs(S))}function Tw(S,M,U){var $=S==null?r:sf(S,M);return $===r?U:$}function sA(S,M){return S!=null&&cB(S,M,$p)}function Pu(S,M){return S!=null&&cB(S,M,lO)}var Ew=tv(function(S,M,U){M!=null&&typeof M.toString!="function"&&(M=Sd.call(M)),S[M]=U},w2(hi)),pj=tv(function(S,M,U){M!=null&&typeof M.toString!="function"&&(M=Sd.call(M)),yn.call(S,M)?S[M].push(U):S[M]=[U]},or),fP=Mr(Kh);function ka(S){return ua(S)?jh(S):ew(S)}function gs(S){return ua(S)?jh(S,!0):tw(S)}function dP(S,M){var U={};return M=or(M,3),cs(S,function($,re,le){Mu(U,M($,re,le),$)}),U}function vj(S,M){var U={};return M=or(M,3),cs(S,function($,re,le){Mu(U,re,M($,re,le))}),U}var n2=Jp(function(S,M,U){Xp(S,M,U)}),i2=Jp(function(S,M,U,$){Xp(S,M,U,$)}),gj=Pd(function(S,M){var U={};if(S==null)return U;var $=!1;M=Mn(M,function(le){return le=$i(le,S),$||($=le.length>1),le}),vc(S,w1(S),U),$&&(U=Fo(U,d|A|p,yO));for(var re=M.length;re--;)nw(U,M[re]);return U});function a2(S,M){return hP(S,hn(or(M)))}var o2=Pd(function(S,M){return S==null?{}:ho(S,M)});function hP(S,M){if(S==null)return{};var U=Mn(w1(S),function($){return[$]});return M=or(M),Ao(S,U,function($,re){return M($,re[0])})}function mj(S,M,U){M=$i(M,S);var $=-1,re=M.length;for(re||(re=1,S=r);++$<re;){var le=S==null?r:S[Lu(M[$])];le===r&&($=re,le=U),S=jl(le)?le.call(S):le}return S}function Bw(S,M,U){return S==null?S:Nl(S,M,U)}function yj(S,M,U,$){return $=typeof $=="function"?$:r,S==null?S:Nl(S,M,U,$)}var s2=sB(ka),Xr=sB(gs);function l2(S,M,U){var $=xr(S),re=$||el(S)||Dm(S);if(M=or(M,4),U==null){var le=S&&S.constructor;re?U=$?new le:[]:Mi(S)?U=jl(le)?Il(us(S)):{}:U={}}return(re?Hn:cs)(S,function(pe,me,Ie){return M(U,pe,me,Ie)}),U}function J1(S,M){return S==null?!0:nw(S,M)}function u2(S,M,U){return S==null?S:c1(S,M,ow(U))}function AP(S,M,U,$){return $=typeof $=="function"?$:r,S==null?S:c1(S,M,ow(U),$)}function lA(S){return S==null?[]:V0(S,ka(S))}function Dw(S){return S==null?[]:V0(S,gs(S))}function eS(S,M,U){return U===r&&(U=M,M=r),U!==r&&(U=Ou(U),U=U===U?U:0),M!==r&&(M=Ou(M),M=M===M?M:0),zh(Ou(S),M,U)}function wj(S,M,U){return M=_f(M),U===r?(U=M,M=0):U=_f(U),S=Ou(S),uO(S,M,U)}function pP(S,M,U){if(U&&typeof U!="boolean"&&la(S,M,U)&&(M=U=r),U===r&&(typeof M=="boolean"?(U=M,M=r):typeof S=="boolean"&&(U=S,S=r)),S===r&&M===r?(S=0,M=1):(S=_f(S),M===r?(M=S,S=0):M=_f(M)),S>M){var $=S;S=M,M=$}if(U||S%1||M%1){var re=Xe();return de(S+re*(M-S+N0("1e-"+((re+"").length-1))),M)}return lf(S,M)}var _j=ev(function(S,M,U){return M=M.toLowerCase(),S+(U?vP(M):M)});function vP(S){return tS(Cn(S).toLowerCase())}function c2(S){return S=Cn(S),S&&S.replace(Qx,kp).replace(Jc,"")}function gP(S,M,U){S=Cn(S),M=Fl(M);var $=S.length;U=U===r?$:zh(Pr(U),0,$);var re=U;return U-=M.length,U>=0&&S.slice(U,re)==M}function Vn(S){return S=Cn(S),S&&Lg.test(S)?S.replace(aa,Yx):S}function f2(S){return S=Cn(S),S&&LE.test(S)?S.replace(M0,"\\$&"):S}var go=ev(function(S,M,U){return S+(U?"-":"")+M.toLowerCase()}),bj=ev(function(S,M,U){return S+(U?" ":"")+M.toLowerCase()}),xj=iB("toLowerCase");function mP(S,M,U){S=Cn(S),M=Pr(M);var $=M?sc(S):0;if(!M||$>=M)return S;var re=(M-$)/2;return rv(Nh(re),U)+S+rv(kh(re),U)}function Sj(S,M,U){S=Cn(S),M=Pr(M);var $=M?sc(S):0;return M&&$<M?S+rv(M-$,U):S}function d2(S,M,U){S=Cn(S),M=Pr(M);var $=M?sc(S):0;return M&&$<M?rv(M-$,U)+S:S}function h2(S,M,U){return U||M==null?M=0:M&&(M=+M),Qe(Cn(S).replace(zs,""),M||0)}function Mw(S,M,U){return(U?la(S,M,U):M===r)?M=1:M=Pr(M),Oa(Cn(S),M)}function yP(){var S=arguments,M=Cn(S[0]);return S.length<3?M:M.replace(S[1],S[2])}var wP=ev(function(S,M,U){return S+(U?"_":"")+M.toLowerCase()});function _P(S,M,U){return U&&typeof U!="number"&&la(S,M,U)&&(M=U=r),U=U===r?he:U>>>
vendor: 4,708 bytes, lines 25-42
250,U?(S=Cn(S),S&&(typeof M=="string"||M!=null&&!X1(M))&&(M=Fl(M),!M&&ss(S))?pc(Ys(S),0,U):S.split(M,U)):[]}var A2=ev(function(S,M,U){return S+(U?" ":"")+tS(M)});function p2(S,M,U){return S=Cn(S),U=U==null?0:zh(Pr(U),0,S.length),M=Fl(M),S.slice(U,U+M.length)==M}function Cj(S,M,U){var $=se.templateSettings;U&&la(S,M,U)&&(M=r),S=Cn(S),M=Cw({},M,$,m1);var re=Cw({},M.imports,$.imports,m1),le=ka(re),pe=V0(re,le);Hn(le,function(sr){if(Zc.test(sr))throw new dr(l)});var me,Ie,Ye=0,$e=M.interpolate||ic,rt="__p += '",gt=$s((M.escape||ic).source+"|"+$e.source+"|"+($e===gu?Eh:ic).source+"|"+(M.evaluate||ic).source+"|$","g"),Pt="//# sourceURL="+(yn.call(M,"sourceURL")?(M.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pa+"]")+`
26`;S.replace(gt,function(sr,kr,Gr,tl,qa,ms){return Gr||(Gr=tl),rt+=S.slice(Ye,ms).replace(O0,Wg),kr&&(me=!0,rt+=`' +
27__e(`+kr+`) +
28'`),qa&&(Ie=!0,rt+=`';
29`+qa+`;
30__p += '`),Gr&&(rt+=`' +
31((__t = (`+Gr+`)) == null ? '' : __t) +
32'`),Ye=ms+sr.length,sr}),rt+=`';
33`;var er=yn.call(M,"variable")&&M.variable;if(!er)rt=`with (obj) {
34`+rt+`
35}
36`;else if(Zc.test(er))throw new dr(s);rt=(Ie?rt.replace(Kt,""):rt).replace(un,"$1").replace(ar,"$1;"),rt="function("+(er||"obj")+`) {
37`+(er?"":`obj || (obj = {});
38`)+"var __t, __p = ''"+(me?", __e = _.escape":"")+(Ie?`, __j = Array.prototype.join;
39function print() { __p += __j.call(arguments, '') }
40`:`;
41`)+rt+`return __p
42}`;var Ur=m2(function(){return dn(le,Pt+"return "+rt).apply(r,pe)});if(Ur.source=rt,aA(Ur))throw Ur;return Ur}function v2(S){return Cn(S).toLowerCase()}function Tj(S){return Cn(S).toUpperCase()}function bP(S,M,U){if(S=Cn(S),S&&(U||M===r))return as(S);if(!S||!(M=Fl(M)))return S;var $=Ys(S),re=Ys(M),le=Wx($,re),pe=wd($,re)+1;return pc($,le,pe).join("")}function xP(S,M,U){if(S=Cn(S),S&&(U||M===r))return S.slice(0,Yg(S)+1);if(!S||!(M=Fl(M)))return S;var $=Ys(S),re=wd($,Ys(M))+1;return pc($,0,re).join("")}function Ej(S,M,U){if(S=Cn(S),S&&(U||M===r))return S.replace(zs,"");if(!S||!(M=Fl(M)))return S;var $=Ys(S),re=Wx($,Ys(M));return pc($,re).join("")}function Bj(S,M){var U=j,$=W;if(Mi(M)){var re="separator"in M?M.separator:re;U="length"in M?Pr(M.length):U,$="omission"in M?Fl(M.omission):$}S=Cn(S);var le=S.length;if(ss(S)){var pe=Ys(S);le=pe.length}if(U>=le)return S;var me=U-sc($);if(me<1)return $;var Ie=pe?pc(pe,0,me).join(""):S.slice(0,me);if(re===r)return Ie+$;if(pe&&(me+=Ie.length-me),X1(re)){if(S.slice(me).search(re)){var Ye,$e=Ie;for(re.global||(re=$s(re.source,Cn(Rg.exec(re))+"g")),re.lastIndex=0;Ye=re.exec($e);)var rt=Ye.index;Ie=Ie.slice(0,rt===r?me:rt)}}else if(S.indexOf(Fl(re),me)!=me){var gt=Ie.lastIndexOf(re);gt>-1&&(Ie=Ie.slice(0,gt))}return Ie+$}function uA(S){return S=Cn(S),S&&$r.test(S)?S.replace(Yr,Hp):S}var SP=ev(function(S,M,U){return S+(U?" ":"")+M.toUpperCase()}),tS=iB("toUpperCase");function g2(S,M,U){return S=Cn(S),M=U?r:M,M===r?Oh(S)?Su(S):jg(S):S.match(M)||[]}var m2=Mr(function(S,M){try{return Io(S,r,M)}catch(U){return aA(U)?U:new dr(U)}}),Dj=Pd(function(S,M){return Hn(M,function(U){U=Lu(U),Mu(S,U,Nd(S[U],S))}),S});function y2(S){var M=S==null?0:S.length,U=or();return S=M?Mn(S,function($){if(typeof $[1]!="function")throw new Zs(o);return[U($[0]),$[1]]}):[],Mr(function($){for(var re=-1;++re<M;){var le=S[re];if(Io(le[0],this,$))return Io(le[1],this,$)}})}function Mj(S){return ej(Fo(S,d))}function w2(S){return function(){return S}}function Lj(S,M){return S==null||S!==S?M:S}var lv=vO(),CP=vO(!0);function hi(S){return S}function _2(S){return o1(typeof S=="function"?S:Fo(S,d))}function Rj(S){return GE(Fo(S,d))}function Im(S,M){return Id(S,Fo(M,d))}var TP=Mr(function(S,M){return function(U){return Kh(U,S,M)}}),EP=Mr(function(S,M){return function(U){return Kh(S,U,M)}});function rS(S,M,U){var $=ka(M),re=Yp(M,$);U==null&&!(Mi(M)&&(re.length||!$.length))&&(U=M,M=S,S=this,re=Yp(M,ka(M)));var le=!(Mi(U)&&"chain"in U)||!!U.chain,pe=jl(S);return Hn(re,function(me){var Ie=M[me];S[me]=Ie,pe&&(S.prototype[me]=function(){var Ye=this.__chain__;if(le||Ye){var $e=S(this.__wrapped__),rt=$e.__actions__=ds(this.__actions__);return rt.push({func:Ie,args:arguments,thisArg:S}),$e.__chain__=Ye,$e}return Ie.apply(S,Dl([this.value()],arguments))})}),S}function b2(){return Dn._===this&&(Dn._=Po),this}function x2(){}function Ij(S){return S=Pr(S),Mr(function(M){return s1(M,S)})}var Oj=hm(Mn),wc=hm(yd),S2=hm(U0);function BP(S){return S1(S)?Q0(Lu(S)):Zh(S)}function Pj(S){return function(M){return S==null?r:sf(S,M)}}var kj=p1(),DP=p1(!0);function C2(){return[]}function nS(){return!1}function MP(){return{}}function Nj(){return""}function T2(){return!0}function Fj(S,M){if(S=Pr(S),S<1||S>ne)return[];var U=he,$=de(S,he);M=or(M),S-=he;for(var re=Kg($,M);++U<S;)M(U);return re}
vendor: 4,299 bytes, line 42
42function Uj(S){return xr(S)?Mn(S,Lu):vs(S)?[S]:ds(B1(Cn(S)))}function LP(S){var M=++xd;return Cn(S)+M}var E2=cw(function(S,M){return S+M},0),B2=g1("ceil"),Hj=cw(function(S,M){return S/M},1),ku=g1("floor");function D2(S){return S&&S.length?n1(S,hi,Ld):r}function RP(S,M){return S&&S.length?n1(S,or(M,2),Ld):r}function IP(S){return H0(S,hi)}function Qj(S,M){return H0(S,or(M,2))}function jj(S){return S&&S.length?n1(S,hi,Zp):r}function OP(S,M){return S&&S.length?n1(S,or(M,2),Zp):r}var PP=cw(function(S,M){return S*M},1),M2=g1("round"),Nu=cw(function(S,M){return S-M},0);function kP(S){return S&&S.length?z0(S,hi):0}function Lw(S,M){return S&&S.length?z0(S,or(M,2)):0}return se.after=_m,se.ary=bm,se.assign=JB,se.assignIn=e2,se.assignInWith=Sw,se.assignWith=Cw,se.at=uP,se.before=tA,se.bind=Nd,se.bindAll=Dj,se.bindKey=zB,se.castArray=nA,se.chain=Ln,se.chunk=yB,se.compact=wB,se.concat=LO,se.cond=y2,se.conforms=Mj,se.constant=w2,se.countBy=WO,se.create=zn,se.curry=VB,se.curryRight=xm,se.debounce=GB,se.defaults=t2,se.defaultsDeep=fj,se.defer=G1,se.delay=eP,se.difference=_B,se.differenceBy=M1,se.differenceWith=L1,se.drop=rj,se.dropRight=RO,se.dropRightWhile=IO,se.dropWhile=R1,se.fill=bB,se.filter=YO,se.flatMap=Bi,se.flatMapDeep=qs,se.flatMapDepth=gc,se.flatten=df,se.flattenDeep=SB,se.flattenDepth=nj,se.flip=sj,se.flow=lv,se.flowRight=CP,se.fromPairs=OO,se.functions=r2,se.functionsIn=q1,se.groupBy=ZO,se.initial=PO,se.intersection=O1,se.intersectionBy=pw,se.intersectionWith=di,se.invert=Ew,se.invertBy=pj,se.invokeMap=V1,se.iteratee=_2,se.keyBy=hs,se.keys=ka,se.keysIn=gs,se.map=Js,se.mapKeys=dP,se.mapValues=vj,se.matches=Rj,se.matchesProperty=Im,se.memoize=K1,se.merge=n2,se.mergeWith=i2,se.method=TP,se.methodOf=EP,se.mixin=rS,se.negate=hn,se.nthArg=Ij,se.omit=gj,se.omitBy=a2,se.once=ai,se.orderBy=XO,se.over=Oj,se.overArgs=en,se.overEvery=wc,se.overSome=S2,se.partial=Zr,se.partialRight=Pn,se.partition=As,se.pick=o2,se.pickBy=hP,se.property=BP,se.propertyOf=Pj,se.pull=Jh,se.pullAll=TB,se.pullAllBy=NO,se.pullAllWith=Af,se.pullAt=vo,se.range=kj,se.rangeRight=DP,se.rearg=Hl,se.reject=JO,se.remove=P1,se.rest=rA,se.reverse=k1,se.sampleSize=eA,se.set=Bw,se.setWith=yj,se.shuffle=mc,se.slice=gw,se.sortBy=Iu,se.sortedUniq=RB,se.sortedUniqBy=N1,se.split=_P,se.spread=Sm,se.tail=UO,se.take=F1,se.takeRight=Ul,se.takeRightWhile=HO,se.takeWhile=pf,se.tap=gf,se.throttle=KB,se.thru=ym,se.toArray=xw,se.toPairs=s2,se.toPairsIn=Xr,se.toPath=Uj,se.toPlainObject=lP,se.transform=l2,se.unary=Fd,se.union=QO,se.unionBy=Xs,se.unionWith=mm,se.uniq=jO,se.uniqBy=vf,se.uniqWith=U1,se.unset=J1,se.unzip=mw,se.unzipWith=H1,se.update=u2,se.updateWith=AP,se.values=lA,se.valuesIn=Dw,se.without=IB,se.words=g2,se.wrap=Zi,se.xor=zO,se.xorBy=OB,se.xorWith=Q1,se.zip=VO,se.zipObject=PB,se.zipObjectDeep=GO,se.zipWith=Za,se.entries=s2,se.entriesIn=Xr,se.extend=e2,se.extendWith=Sw,rS(se,se),se.add=E2,se.attempt=m2,se.camelCase=_j,se.capitalize=vP,se.ceil=B2,se.clamp=eS,se.clone=av,se.cloneDeep=Ql,se.cloneDeepWith=Cm,se.cloneWith=W1,se.conformsTo=_w,se.deburr=c2,se.defaultTo=Lj,se.divide=Hj,se.endsWith=gP,se.eq=Di,se.escape=Vn,se.escapeRegExp=f2,se.every=NB,se.find=FB,se.findIndex=I1,se.findKey=cP,se.findLast=$O,se.findLastIndex=xB,se.findLastKey=dj,se.floor=ku,se.forEach=UB,se.forEachRight=HB,se.forIn=hj,se.forInRight=Aj,se.forOwn=Lm,se.forOwnRight=Rm,se.get=Tw,se.gt=WB,se.gte=Y1,se.has=sA,se.hasIn=Pu,se.head=hf,se.identity=hi,se.includes=oj,se.indexOf=CB,se.inRange=wj,se.invoke=fP,se.isArguments=iA,se.isArray=xr,se.isArrayBuffer=$1,se.isArrayLike=ua,se.isArrayLikeObject=Rr,se.isBoolean=yc,se.isBuffer=el,se.isDate=wf,se.isElement=YB,se.isEmpty=$B,se.isEqual=tP,se.isEqualWith=Tm,se.isError=aA,se.isFinite=Em,se.isFunction=jl,se.isInteger=bw,se.isLength=Ho,se.isMap=ps,se.isMatch=rP,se.isMatchWith=nP,se.isNaN=lj,se.isNative=oA,se.isNil=ZB,se.isNull=Z1,se.isNumber=ov,se.isObject=Mi,se.isObjectLike=oi,se.isPlainObject=Bm,se.isRegExp=X1,se.isSafeInteger=iP,se.isSet=XB,se.isString=sv,se.isSymbol=vs,se.isTypedArray=Dm,se.isUndefined=uj,se.isWeakMap=cj,se.isWeakSet=aP,se.join=ij,se.kebabCase=go,se.last=Ru,se.lastIndexOf=kO,se.lowerCase=bj,se.lowerFirst=xj,se.lt=oP,se.lte=Mm,se.max=D2,se.maxBy=RP,se.mean=IP,se.meanBy=Qj,se.min=jj,se.minBy=OP,se.stubArray=C2,se.stubFalse=nS,se.stubObject=MP,se.stub
vendor: 4,101 bytes, line 42
42String=Nj,se.stubTrue=T2,se.multiply=PP,se.nth=vw,se.noConflict=b2,se.noop=x2,se.now=ww,se.pad=mP,se.padEnd=Sj,se.padStart=d2,se.parseInt=h2,se.random=pP,se.reduce=qO,se.reduceRight=wm,se.repeat=Mw,se.replace=yP,se.result=mj,se.round=M2,se.runInContext=Ce,se.sample=yf,se.size=QB,se.snakeCase=wP,se.some=jB,se.sortedIndex=EB,se.sortedIndexBy=BB,se.sortedIndexOf=DB,se.sortedLastIndex=MB,se.sortedLastIndexBy=FO,se.sortedLastIndexOf=LB,se.startCase=A2,se.startsWith=p2,se.subtract=Nu,se.sum=kP,se.sumBy=Lw,se.template=Cj,se.times=Fj,se.toFinite=_f,se.toInteger=Pr,se.toLength=sP,se.toLower=v2,se.toNumber=Ou,se.toSafeInteger=qB,se.toString=Cn,se.toUpper=Tj,se.trim=bP,se.trimEnd=xP,se.trimStart=Ej,se.truncate=Bj,se.unescape=uA,se.uniqueId=LP,se.upperCase=SP,se.upperFirst=tS,se.each=UB,se.eachRight=HB,se.first=hf,rS(se,(function(){var S={};return cs(se,function(M,U){yn.call(se.prototype,U)||(S[U]=M)}),S})(),{chain:!1}),se.VERSION=n,Hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){se[S].placeholder=se}),Hn(["drop","take"],function(S,M){Or.prototype[S]=function(U){U=U===r?1:ie(Pr(U),0);var $=this.__filtered__&&!M?new Or(this):this.clone();return $.__filtered__?$.__takeCount__=de(U,$.__takeCount__):$.__views__.push({size:de(U,he),type:S+($.__dir__<0?"Right":"")}),$},Or.prototype[S+"Right"]=function(U){return this.reverse()[S](U).reverse()}}),Hn(["filter","map","takeWhile"],function(S,M){var U=M+1,$=U==G||U==X;Or.prototype[S]=function(re){var le=this.clone();return le.__iteratees__.push({iteratee:or(re,3),type:U}),le.__filtered__=le.__filtered__||$,le}}),Hn(["head","last"],function(S,M){var U="take"+(M?"Right":"");Or.prototype[S]=function(){return this[U](1).value()[0]}}),Hn(["initial","tail"],function(S,M){var U="drop"+(M?"":"Right");Or.prototype[S]=function(){return this.__filtered__?new Or(this):this[U](1)}}),Or.prototype.compact=function(){return this.filter(hi)},Or.prototype.find=function(S){return this.filter(S).head()},Or.prototype.findLast=function(S){return this.reverse().find(S)},Or.prototype.invokeMap=Mr(function(S,M){return typeof S=="function"?new Or(this):this.map(function(U){return Kh(U,S,M)})}),Or.prototype.reject=function(S){return this.filter(hn(or(S)))},Or.prototype.slice=function(S,M){S=Pr(S);var U=this;return U.__filtered__&&(S>0||M<0)?new Or(U):(S<0?U=U.takeRight(-S):S&&(U=U.drop(S)),M!==r&&(M=Pr(M),U=M<0?U.dropRight(-M):U.take(M-S)),U)},Or.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Or.prototype.toArray=function(){return this.take(he)},cs(Or.prototype,function(S,M){var U=/^(?:filter|find|map|reject)|While$/.test(M),$=/^(?:head|last)$/.test(M),re=se[$?"take"+(M=="last"?"Right":""):M],le=$||/^find/.test(M);re&&(se.prototype[M]=function(){var pe=this.__wrapped__,me=$?[1]:arguments,Ie=pe instanceof Or,Ye=me[0],$e=Ie||xr(pe),rt=function(kr){var Gr=re.apply(se,Dl([kr],me));return $&&gt?Gr[0]:Gr};$e&&U&&typeof Ye=="function"&&Ye.length!=1&&(Ie=$e=!1);var gt=this.__chain__,Pt=!!this.__actions__.length,er=le&&!gt,Ur=Ie&&!Pt;if(!le&&$e){pe=Ur?pe:new Or(this);var sr=S.apply(pe,me);return sr.__actions__.push({func:ym,args:[rt],thisArg:r}),new Ya(sr,gt)}return er&&Ur?S.apply(this,me):(sr=this.thru(rt),er?$?sr.value()[0]:sr.value():sr)})}),Hn(["pop","push","shift","sort","splice","unshift"],function(S){var M=bd[S],U=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",$=/^(?:pop|shift)$/.test(S);se.prototype[S]=function(){var re=arguments;if($&&!this.__chain__){var le=this.value();return M.apply(xr(le)?le:[],re)}return this[U](function(pe){return M.apply(xr(pe)?pe:[],re)})}}),cs(Or.prototype,function(S,M){var U=se[M];if(U){var $=U.name+"";yn.call(nf,$)||(nf[$]=[]),nf[$].push({name:M,func:U})}}),nf[uw(r,b).name]=[{name:"wrapper",func:r}],Or.prototype.clone=Eu,Or.prototype.reverse=Bu,Or.prototype.value=Fh,se.prototype.at=KO,se.prototype.chain=Xa,se.prototype.commit=mf,se.prototype.next=yw,se.prototype.plant=kB,se.prototype.reverse=aj,se.prototype.toJSON=se.prototype.valueOf=se.prototype.value=z1,se.prototype.first=se.prototype.head,Cd&&(se.prototype[Cd]=j1),se}),Ml=Zg();
42Ks?((Ks.exports=Ml)._=Ml,ef._=Ml):Dn._=Ml}).call(mHe)})(oM,oM.exports)),oM.exports}var wHe=yHe();function Cye({onSearch:t,className:e}){const[r,n]=$R(),[i,a]=H.useState(""),o=H.useMemo(()=>wHe.debounce(l=>{t&&t(l);const u=new URLSearchParams(r);l?u.set("search",l):u.delete("search"),n(u)},800),[t,r,n]);H.useEffect(()=>()=>{o.cancel()},[o]);const s=l=>{a(l.target.value),o(l.target.value)};return H.useEffect(()=>{const l=r.get("search");l&&(a(l),t&&t(l))},[t,r]),E.jsx("div",{className:ah("flex items-center justify-center border border-primary-border bg-[#E6E6E6] p-2 rounded-full h-10",e),children:E.jsx("input",{type:"search",value:i,onChange:s,placeholder:"Search for asset name, site and more",className:"w-full h-full p-2 outline-none border-none bg-inherit placeholder:text-primary-placeholder placeholder:text-sm"})})}const _He=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),bHe=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),xHe=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),SHe=/[^\p{L}\d]+/giu,Sne="$1\0$2",Cne="";function Tye(t){let e=t.trim();e=e.replace(_He,Sne).replace(bHe,Sne),e=e.replace(SHe,"\0");let r=0,n=e.length;for(;e.charAt(r)==="\0";)r++;if(r===n)return[];for(;e.charAt(n-1)==="\0";)n--;return e.slice(r,n).split(/\0/g)}function CHe(t){const e=Tye(t);for(let r=0;r<e.length;r++){const n=e[r],i=xHe.exec(n);if(i){const a=i.index+(i[1]??i[2]).length;e.splice(r,1,n.slice(0,a),n.slice(a))}}return e}function THe(t,e){const[r,n,i]=Bye(t,e);return r+n.map(Eye(e?.locale)).join(e?.delimiter??" ")+i}function EHe(t,e){return THe(t,{delimiter:"-",...e})}function r5(t,e){const[r,n,i]=Bye(t,e),a=Eye(e?.locale),o=BHe(e?.locale),s=DHe(a,o);return r+n.map((l,u)=>u===0?s(l):a(l)).join(" ")+i}function Eye(t){return t===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t)}function BHe(t){return e=>e.toLocaleUpperCase(t)}function DHe(t,e){return r=>`${e(r[0])}${t(r.slice(1))}`}function Bye(t,e={}){const r=e.split??(e.separateNumbers?CHe:Tye),n=e.prefixCharacters??Cne,i=e.suffixCharacters??Cne;let a=0,o=t.length;for(;a<t.length;){const s=t.charAt(a);if(!n.includes(s))break;a++}for(;o>a;){const s=o-1,l=t.charAt(s);if(!i.includes(l))break;o=s}return[t.slice(0,a),r(t.slice(a,o)),t.slice(o)]}const _C=({variant:t="green",className:e,children:r})=>{const n={green:"bg-[#D6F5D7] text-[#44A047]",red:"bg-[#F2C6C4] text-[#CB1A14]",yellow:"bg-[#F2DBC4] text-[#CB6F14]",orange:"bg-[#F2DBC4] text-[#F57C00]",grey:"bg-[#E0E0E0] text-[#757575]"},i={green:"bg-[#44A047]",red:"bg-[#CB1A14]",yellow:"bg-[#CB6F14]",orange:"bg-[#F57C00]",grey:"bg-[#757575]"};return E.jsxs("div",{className:ah("flex! items-center! justify-center! gap-1 rounded-2xl px-2.5 py-1.5 w-max border-none!",n[t],e),children:[E.jsx("div",{className:ah("w-2 h-2 rounded-full",i[t])}),E.jsx("span",{className:"text-[14px] font-medium leading-none",children:r})]})};var Dye={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Tne=ue.createContext&&ue.createContext(Dye),MHe=["attr","size","title"];function LHe(t,e){if(t==null)return{};var r,n,i=RHe(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function RHe(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function A4(){return A4=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},A4.apply(null,arguments)}function Ene(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function p4(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ene(Object(r),!0).forEach(function(n){IHe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ene(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function IHe(t,e,r){return(e=OHe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OHe(t){var e=PHe(t,"string");return typeof e=="symbol"?e:e+""}function PHe(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Mye(t){return t&&t.map((e,r)=>ue.createElement(e.tag,p4({key:r},e.attr),Mye(e.child)))}function mr(t){return e=>
vendor: 6,726 bytes, line 42
42ue.createElement(kHe,A4({attr:p4({},t.attr)},e),Mye(t.child))}function kHe(t){var e=r=>{var n=t.attr,i=t.size,a=t.title,o=LHe(t,MHe),s=i||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),ue.createElement("svg",A4({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:l,style:p4(p4({color:t.color||r.color},r.style),t.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&ue.createElement("title",null,a),t.children)};return Tne!==void 0?ue.createElement(Tne.Consumer,null,r=>e(r)):e(Dye)}function NHe(t){return mr({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(t)}function FHe(t){return mr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(t)}function UHe(t){return mr({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(t)}function Lye(t){return mr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"},child:[]}]})(t)}function HHe(t){return mr({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(t)}function QHe(t){return mr({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"},child:[]}]})(t)}function jHe(t){return mr({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(t)}function zHe(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(t)}function VHe(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M480 288c0-80.25-49.28-148.92-119.19-177.62L320 192V80a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16v112l-40.81-81.62C81.28 139.08 32 207.75 32 288v64h448zm16 96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(t)}function Rye(t){return mr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function FK(t){return mr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function GHe(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"},child:[]}]})(t)}function KHe(t){return mr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"}
42,child:[]}]})(t)}function WHe(t){return mr({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},child:[]}]})(t)}function YHe(t){return mr({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},child:[]}]})(t)}function V$({data:t,onSelect:e,selectedId:r="",className:n="",modalStyle:i="",disableSelect:a=!1,showAll:o=!1}){const{t:s}=Vt(),[l,u]=H.useState(!1),[c,f]=H.useState("Select an option"),[d,A]=H.useState([]),p=H.useRef(null);H.useEffect(()=>{function m(y){p.current&&!p.current.contains(y.target)&&u(!1)}return l&&document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[l]),H.useEffect(()=>{const m=[];function y(b,x=""){b.forEach(T=>{const B=x?`${x} > ${T.name}`:T.name,R=T.children&&T.children.length>0;m.push({id:T.id,name:T.name,path:B,level:x.split(">").length,hasChildren:R}),R&&y(T.children,B)})}t&&t.length>0&&(y(t),A(m))},[t]),H.useEffect(()=>{if(!r&&o){f(s("common.all"));return}const m=d.find(y=>y.id===r);m&&f(m.name)},[r,d,o,s]);const g=(m,y)=>{e(m),f(y),u(!1)};return E.jsxs("div",{className:"",ref:p,children:[E.jsxs("button",{onClick:()=>u(!l),disabled:a,type:"button",className:`flex cursor-pointer items-center justify-between px-4 py-2 bg-gray-100 border border-gray-200 rounded-full hover:bg-gray-200 ${n} disabled:cursor-not-allowed`,children:[E.jsx("span",{className:"mr-2",children:c}),E.jsx(YHe,{size:16,className:`transition-transform ${l?"rotate-180":""}`})]}),l&&E.jsxs("div",{className:`absolute z-50  w-64 max-h-80 overflow-y-auto bg-white rounded-lg shadow-lg border border-gray-200 ${i}`,children:[o&&E.jsx("div",{className:"px-4 py-2 hover:bg-blue-50 cursor-pointer border-b border-gray-100 font-medium",onClick:()=>g("","All"),children:s("common.all")}),d.map(m=>E.jsx("div",{className:"px-4 py-2 hover:bg-blue-50 cursor-pointer font-medium",style:{paddingLeft:`${m.level*12+16}px`},onClick:()=>g(m.id,m.name),children:E.jsx("div",{className:"flex items-center",children:E.jsx("span",{className:"truncate",children:m.name})})},m.id))]})]})}function ra(...t){return bme(Ha(t))}const $He=(t,e)=>{const r=[];if(t<=KNe)for(let i=1;i<=t;i++)r.push(i);else{const i=Math.max(1,e-2),a=Math.min(t,e+2);for(let o=i;o<=a;o++)r.push(o)}return r},G$=H.forwardRef(({className:t,...e},r)=>E.jsx("div",{className:"relative w-full overflow-x-auto",children:E.jsx("table",{ref:r,className:ra("w-full min-w-[640px] table-fixed caption-bottom text-sm",t),...e})}));G$.displayName="Table";const Iye=H.forwardRef(({className:t,...e},r)=>E.jsx("thead",{ref:r,className:ra("",t),...e}));Iye.displayName="TableHeader";const K$=H.forwardRef(({className:t,...e},r)=>E.jsx("tbody",{ref:r,className:ra("",t),...e}));K$.displayName="TableBody";const ZHe=H.forwardRef(({className:t,...e},r)=>E.jsx("tfoot",{ref:r,className:ra("",t),...e}));ZHe.displayName="TableFooter";const v4=H.forwardRef(({className:t,...e},r)=>E.jsx("tr",{ref:r,className:ra("",t),...e}));v4.displayName="TableRow";const Oye=H.forwardRef(({className:t,...e},r)=>E.jsx("th",{ref:r,className:ra(" px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...e}));Oye.displayName="TableHead";const g4=H.forwardRef(({className:t,...e},r)=>E.jsx("td",{ref:r,className:ra("align-middle [&:has([role=checkbox])]:pr-0",t),...e}));g4.displayName="TableCell";const XHe=H.forwardRef(({className:t,...e},r)=>E.jsx("caption",{ref:r,className:ra("mt-4 text-sm text-muted-foreground",t),...e}));XHe.displayName="TableCaption";function fy(t,e){return typeof t=="function"?t(e):t}function Hc(t,e){return r=>{e.setState(n=>({...n,[t]:fy(r,n[t])}))}}function n5(t){return t instanceof Function}function qHe(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function JHe(t,e){const r=[],n=i=>
vendor: 56,785 bytes, lines 42-45
42{i.forEach(a=>{r.push(a);const o=e(a);o!=null&&o.length&&n(o)})};return n(t),r}function pr(t,e,r){let n=[],i;return a=>{let o;r.key&&r.debug&&(o=Date.now());const s=t(a);if(!(s.length!==n.length||s.some((c,f)=>n[f]!==c)))return i;n=s;let u;if(r.key&&r.debug&&(u=Date.now()),i=e(...s),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const c=Math.round((Date.now()-o)*100)/100,f=Math.round((Date.now()-u)*100)/100,d=f/16,A=(p,g)=>{for(p=String(p);p.length<g;)p=" "+p;return p};console.info(`%c⏱ ${A(f,5)} /${A(c,5)} ms`,`
43            font-size: .6rem;
44            font-weight: bold;
45            color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,r?.key)}return i}}function vr(t,e,r,n){return{debug:()=>{var i;return(i=t?.debugAll)!=null?i:t[e]},key:!1,onChange:n}}function e5e(t,e,r,n){const i=()=>{var o;return(o=a.getValue())!=null?o:t.options.renderFallbackValue},a={id:`${e.id}_${r.id}`,row:e,column:r,getValue:()=>e.getValue(n),renderValue:i,getContext:pr(()=>[t,r,e,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),vr(t.options,"debugCells"))};return t._features.forEach(o=>{o.createCell==null||o.createCell(a,r,e,t)},{}),a}function t5e(t,e,r,n){var i,a;const s={...t._getDefaultColumnDef(),...e},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=d=>{let A=d;for(const g of l.split(".")){var p;A=(p=A)==null?void 0:p[g]}return A}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:pr(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(A=>A.getFlatColumns())]},vr(t.options,"debugColumns")),getLeafColumns:pr(()=>[t._getOrderColumnsFn()],d=>{var A;if((A=f.columns)!=null&&A.length){let p=f.columns.flatMap(g=>g.getLeafColumns());return d(p)}return[f]},vr(t.options,"debugColumns"))};for(const d of t._features)d.createColumn==null||d.createColumn(f,t);return f}const al="debugHeaders";function Bne(t,e,r){var n;let a={id:(n=r.id)!=null?n:e.id,column:e,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:t,header:a,column:e})};return t._features.forEach(o=>{o.createHeader==null||o.createHeader(a,t)}),a}const r5e={createTable:t=>{t.getHeaderGroups=pr(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,r,n,i)=>{var a,o;const s=(a=n?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?a:[],l=(o=i?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?o:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return ok(e,[...s,...u,...l],t)},vr(t.options,al)),t.getCenterHeaderGroups=pr(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,r,n,i)=>(r=r.filter(a=>!(n!=null&&n.includes(a.id))&&!(i!=null&&i.includes(a.id))),ok(e,r,t,"center")),vr(t.options,al)),t.getLeftHeaderGroups=pr(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,r,n)=>{var i;const a=(i=n?.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return ok(e,a,t,"left")},vr(t.options,al)),t.getRightHeaderGroups=pr(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,r,n)=>{var i;const a=(i=n?.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return ok(e,a,t,"right")},vr(t.options,al)),t.getFooterGroups=pr(()=>[t.getHeaderGroups()],e=>[...e].reverse(),vr(t.options,al)),t.getLeftFooterGroups=pr(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),vr(t.options,al)),t.getCenterFooterGroups=pr(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),vr(t.options,al)),t.getRightFooterGroups=pr(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),vr(t.options,al)),t.getFlatHeaders=pr(()=>[t.getHeaderGroups()],e=>e.map(r=>r.headers).flat(),vr(t.options,al)),t.getLeftFlatHeaders=pr(()=>[t.getLeftHeaderGroups()],e=>e.map(r=>r.headers).flat(),vr(t.options,al)),t.getCenterFlatHeaders=pr(()=>[t.getCenterHeaderGroups()],e=>e.map(r=>r.headers).flat(),vr(t.options,al)),t.getRightFlatHeaders=pr(()=>[t.getRightHeaderGroups()],e=>e.map(r=>r.headers).flat(),vr(t.options,al)),t.getCenterLeafHeaders=pr(()=>[t.getCenterFlatHeaders()],e=>e.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vr(t.options,al)),t.getLeftLeafHeaders=pr(()=>[t.getLeftFlatHeaders()],e=>e.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vr(t.options,al)),t.getRightLeafHeaders=pr(()=>[t.getRightFlatHeaders()],e=>e.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),vr(t.options,al)),t.getLeafHeaders=pr(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(e,r,n)=>{var i,a,o,s,l,u;return[...(i=(a=e[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=r[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},vr(t.options,al))}};function ok(t,e,r,n){var i,a;let o=0;const s=function(d,A){A===void 0&&(A=1),o=Math.max(o,A),d.filter(p=>p.getIsVisible()).forEach(p=>{var g;(g=p.columns)!=null&&g.length&&s(p.columns,A+1)},0)};s(t);let l=[];const u=(d,A)=>{const p={depth:A,id:[n,`${A}`].filter(Boolean).join("_"),headers:[]},g=[];d.forEach(m=>{const y=[...g].reverse()[0],b=m.column.depth===p.depth;let x,T=!1;if(b&&m.column.parent?x=m.column.parent:(x=m.column,T=!0),y&&y?.column===x)y.subHeaders.push(m);else{const B=Bne(r,x,{id:[n,A,x.id,m?.id].filter(Boolean).join("_"),isPlaceholder:T,placeholderId:T?`${g.filter(R=>R.column===x).length}`:void 0,depth:A,index:g.length});B.subHeaders.push(m),g.push(B)}p.headers.push(m),m.headerGroup=p}),l.push(p),A>0&&u(g,A-1)},c=e.map((d,A)=>Bne(r,d,{depth:o,index:A}));u(c,o-1),l.reverse();const f=d=>d.filter(p=>p.column.getIsVisible()).map(p=>{let g=0,m=0,y=[0];p.subHeaders&&p.subHeaders.length?(y=[],f(p.subHeaders).forEach(x=>{let{colSpan:T,rowSpan:B}=x;g+=T,y.push(B)})):g=1;const b=Math.min(...y);return m=m+b,p.colSpan=g,p.rowSpan=m,{colSpan:g,rowSpan:m}});return f((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const W$=(t,e,r,n,i,a,o)=>{let s={id:e,index:n,original:r,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=t.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=t.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:t.options.renderFallbackValue},subRows:[],getLeafRows:()=>JHe(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?t.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:pr(()=>[t.getAllLeafColumns()],l=>l.map(u=>e5e(t,s,u,u.id)),vr(t.options,"debugRows")),_getAllCellsByColumnId:pr(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),vr(t.options,"debugRows"))};for(let l=0;l<t._features.length;l++){const u=t._features[l];u==null||u.createRow==null||u.createRow(s,t)}return s},n5e={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},Pye=(t,e,r)=>{var n,i;const a=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=t.getValue(e))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};Pye.autoRemove=t=>oh(t);const kye=(t,e,r)=>{var n;return!!(!((n=t.getValue(e))==null||(n=n.toString())==null)&&n.includes(r))};kye.autoRemove=t=>oh(t);const Nye=(t,e,r)=>{var n;return((n=t.getValue(e))==null||(n=n.toString())==null?void 0:n.toLowerCase())===r?.toLowerCase()};Nye.autoRemove=t=>oh(t);const Fye=(t,e,r)=>{var n;return(n=t.getValue(e))==null?void 0:n.includes(r)};Fye.autoRemove=t=>oh(t);const Uye=(t,e,r)=>!r.some(n=>{var i;return!((i=t.getValue(e))!=null&&i.includes(n))});Uye.autoRemove=t=>oh(t)||!(t!=null&&t.length);const Hye=(t,e,r)=>r.some(n=>{var i;return(i=t.getValue(e))==null?void 0:i.includes(n)});Hye.autoRemove=t=>oh(t)||!(t!=null&&t.length);const Qye=(t,e,r)=>t.getValue(e)===r;Qye.autoRemove=t=>oh(t);const jye=(t,e,r)=>t.getValue(e)==r;jye.autoRemove=t=>oh(t);const Y$=(t,e,r)=>{let[n,i]=r;const a=t.getValue(e);return a>=n&&a<=i};Y$.resolveFilterValue=t=>{let[e,r]=t,n=typeof e!="number"?parseFloat(e):e,i=typeof r!="number"?parseFloat(r):r,a=e===null||Number.isNaN(n)?-1/0:n,o=r===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};Y$.autoRemove=t=>oh(t)||oh(t[0])&&oh(t[1]);const Tv={includesString:Pye,includesStringSensitive:kye,equalsString:Nye,arrIncludes:Fye,arrIncludesAll:Uye,arrIncludesSome:Hye,equals:Qye,weakEquals:jye,inNumberRange:Y$};function oh(t){return t==null||t===""}const i5e={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:Hc("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const r=e.getCoreRowModel().flatRows[0],n=r?.getValue(t.id);return typeof n=="string"?Tv.includesString:typeof n=="number"?Tv.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Tv.equals:Array.isArray(n)?Tv.arrIncludes:Tv.weakEquals},t.getFilterFn=()=>{var r,n;return n5(t.columnDef.filterFn)?t.columnDef.filterFn:t.columnDef.filterFn==="auto"?t.getAutoFilterFn():(r=(n=e.options.filterFns)==null?void 0:n[t.columnDef.filterFn])!=null?r:Tv[t.columnDef.filterFn]},t.getCanFilter=()=>{var r,n,i;return((r=t.columnDef.enableColumnFilter)!=null?r:!0)&&((n=e.options.enableColumnFilters)!=null?n:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var r;return(r=e.getState().columnFilters)==null||(r=r.find(n=>n.id===t.id))==null?void 0:r.value},t.getFilterIndex=()=>{var r,n;return(r=(n=e.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===t.id))!=null?r:-1},t.setFilterValue=r=>{e.setColumnFilters(n=>{const i=t.getFilterFn(),a=n?.find(c=>c.id===t.id),o=fy(r,a?a.value:void 0);if(Dne(i,o,t)){var s;return(s=n?.filter(c=>c.id!==t.id))!=null?s:[]}const l={id:t.id,value:o};if(a){var u;return(u=n?.map(c=>c.id===t.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const r=t.getAllLeafColumns(),n=i=>{var a;return(a=fy(e,i))==null?void 0:a.filter(o=>{const s=r.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(Dne(l,o.value,s))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(n)},t.resetColumnFilters=e=>{var r,n;t.setColumnFilters(e?[]:(r=(n=t.initialState)==null?void 0:n.columnFilters)!=null?r:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function Dne(t,e,r){return(t&&t.autoRemove?t.autoRemove(e,r):!1)||typeof e>"u"||typeof e=="string"&&!e}const a5e=(t,e,r)=>r.reduce((n,i)=>{const a=i.getValue(t);return n+(typeof a=="number"?a:0)},0),o5e=(t,e,r)=>{let n;return r.forEach(i=>{const a=i.getValue(t);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},s5e=(t,e,r)=>{let n;return r.forEach(i=>{const a=i.getValue(t);a!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}),n},l5e=(t,e,r)=>{let n,i;return r.forEach(a=>{const o=a.getValue(t);o!=null&&(n===void 0?o>=o&&(n=i=o):(n>o&&(n=o),i<o&&(i=o)))}),[n,i]},u5e=(t,e)=>{let r=0,n=0;if(e.forEach(i=>{let a=i.getValue(t);a!=null&&(a=+a)>=a&&(++r,n+=a)}),r)return n/r},c5e=(t,e)=>{if(!e.length)return;const r=e.map(a=>a.getValue(t));if(!qHe(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((a,o)=>a-o);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},f5e=(t,e)=>Array.from(new Set(e.map(r=>r.getValue(t))).values()),d5e=(t,e)=>new Set(e.map(r=>r.getValue(t))).size,h5e=(t,e)=>e.length,Dz={sum:a5e,min:o5e,max:s5e,extent:l5e,mean:u5e,median:c5e,unique:f5e,uniqueCount:d5e,count:h5e},A5e={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,r;return(e=(r=t.getValue())==null||r.toString==null?void 0:r.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:Hc("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(r=>r!=null&&r.includes(t.id)?r.filter(n=>n!==t.id):[...r??[],t.id])},t.getCanGroup=()=>{var r,n;return((r=t.columnDef.enableGrouping)!=null?r:!0)&&((n=e.options.enableGrouping)!=null?n:!0)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var r;return(r=e.getState().grouping)==null?void 0:r.includes(t.id)},t.getGroupedIndex=()=>{var r;return(r=e.getState().grouping)==null?void 0:r.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const r=t.getCanGroup();return()=>{r&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const r=e.getCoreRowModel().flatRows[0],n=r?.getValue(t.id);if(typeof n=="number")return Dz.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Dz.extent},t.getAggregationFn=()=>{var r,n;if(!t)throw new Error;return n5(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:t.columnDef.aggregationFn==="auto"?t.getAutoAggregationFn():(r=(n=e.options.aggregationFns)==null?void 0:n[t.columnDef.aggregationFn])!=null?r:Dz[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var r,n;t.setGrouping(e?[]:(r=(n=t.initialState)==null?void 0:n.grouping)!=null?r:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=r=>{if(t._groupingValuesCache.hasOwnProperty(r))return t._groupingValuesCache[r];const n=e.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(t._groupingValuesCache[r]=n.columnDef.getGroupingValue(t.original),t._groupingValuesCache[r]):t.getValue(r)},t._groupingValuesCache={}},createCell:(t,e,r,n)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===r.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var i;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function p5e(t,e,r){if(!(e!=null&&e.length)||!r)return t;const n=t.filter(a=>!e.includes(a.id));return r==="remove"?n:[...e.map(a=>t.find(o=>o.id===a)).filter(Boolean),...n]}const v5e={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:Hc("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=pr(r=>[KM(e,r)],r=>r.findIndex(n=>n.id===t.id),vr(e.options,"debugColumns")),t.getIsFirstColumn=r=>{var n;return((n=KM(e,r)[0])==null?void 0:n.id)===t.id},t.getIsLastColumn=r=>{var n;const i=KM(e,r);return((n=i[i.length-1])==null?void 0:n.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var r;t.setColumnOrder(e?[]:(r=t.initialState.columnOrder)!=null?r:[])},t._getOrderColumnsFn=pr(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(e,r,n)=>i=>{let a=[];if(!(e!=null&&e.length))a=i;else{const o=[...e],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return p5e(a,r,n)},vr(t.options,"debugTable"))}},Mz=()=>({left:[],right:[]}),g5e={getInitialState:t=>({columnPinning:Mz(),...t}),getDefaultOptions:t=>({onColumnPinningChange:Hc("columnPinning",t)}),createColumn:(t,e)=>{t.pin=r=>{const n=t.getLeafColumns().map(i=>i.id).filter(Boolean);e.setColumnPinning(i=>{var a,o;if(r==="right"){var s,l;return{left:((s=i?.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i?.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i?.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i?.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((a=i?.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:((o=i?.right)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f)))}})},t.getCanPin=()=>t.getLeafColumns().some(n=>{var i,a,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((a=(o=e.options.enableColumnPinning)!=null?o:e.options.enablePinning)!=null?a:!0)}),t.getIsPinned=()=>{const r=t.getLeafColumns().map(s=>s.id),{left:n,right:i}=e.getState().columnPinning,a=r.some(s=>n?.includes(s)),o=r.some(s=>i?.includes(s));return a?"left":o?"right":!1},t.getPinnedIndex=()=>{var r,n;const i=t.getIsPinned();return i?(r=(n=e.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(t.id))!=null?r:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=pr(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(r,n,i)=>{const a=[...n??[],...i??[]];return r.filter(o=>!a.includes(o.column.id))},vr(e.options,"debugRows")),t.getLeftVisibleCells=pr(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),vr(e.options,"debugRows")),t.getRightVisibleCells=pr(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),vr(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>t.options.onColumnPinningChange==null?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var r,n;return t.setColumnPinning(e?Mz():(r=(n=t.initialState)==null?void 0:n.columnPinning)!=null?r:Mz())},t.getIsSomeColumnsPinned=e=>{var r;const n=t.getState().columnPinning;if(!e){var i,a;return!!((i=n.left)!=null&&i.length||(a=n.right)!=null&&a.length)}return!!((r=n[e])!=null&&r.length)},t.getLeftLeafColumns=pr(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,r)=>(r??[]).map(n=>e.find(i=>i.id===n)).filter(Boolean),vr(t.options,"debugColumns")),t.getRightLeafColumns=pr(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,r)=>(r??[]).map(n=>e.find(i=>i.id===n)).filter(Boolean),vr(t.options,"debugColumns")),t.getCenterLeafColumns=pr(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,r,n)=>{const i=[...r??[],...n??[]];return e.filter(a=>!i.includes(a.id))},vr(t.options,"debugColumns"))}};function m5e(t){return t||(typeof document<"u"?document:null)}const sk={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Lz=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),y5e={getDefaultColumnDef:()=>sk,getInitialState:t=>({columnSizing:{},columnSizingInfo:Lz(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Hc("columnSizing",t),onColumnSizingInfoChange:Hc("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var r,n,i;const a=e.getState().columnSizing[t.id];return Math.min(Math.max((r=t.columnDef.minSize)!=null?r:sk.minSize,(n=a??t.columnDef.size)!=null?n:sk.size),(i=t.columnDef.maxSize)!=null?i:sk.maxSize)},t.getStart=pr(r=>[r,KM(e,r),e.getState().columnSizing],(r,n)=>n.slice(0,t.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),vr(e.options,"debugColumns")),t.getAfter=pr(r=>[r,KM(e,r),e.getState().columnSizing],(r,n)=>n.slice(t.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),vr(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(r=>{let{[t.id]:n,...i}=r;return i})},t.getCanResize=()=>{var r,n;return((r=t.columnDef.enableResizing)!=null?r:!0)&&((n=e.options.enableColumnResizing)!=null?n:!0)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var a;r+=(a=i.column.getSize())!=null?a:0}};return n(t),r},t.getStart=()=>{if(t.index>0){const r=t.headerGroup.headers[t.index-1];return r.getStart()+r.getSize()}return 0},t.getResizeHandler=r=>{const n=e.getColumn(t.column.id),i=n?.getCanResize();return a=>{if(!n||!i||(a.persist==null||a.persist(),Rz(a)&&a.touches&&a.touches.length>1))return;const o=t.getSize(),s=t?t.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=Rz(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,b)=>{typeof b=="number"&&(e.setColumnSizingInfo(x=>{var T,B;const R=e.options.columnResizeDirection==="rtl"?-1:1,I=(b-((T=x?.startOffset)!=null?T:0))*R,N=Math.max(I/((B=x?.startSize)!=null?B:0),-.999999);return x.columnSizingStart.forEach(F=>{let[Q,j]=F;u[Q]=Math.round(Math.max(j+j*N,0)*100)/100}),{...x,deltaOffset:I,deltaPercentage:N}}),(e.options.columnResizeMode==="onChange"||y==="end")&&e.setColumnSizing(x=>({...x,...u})))},f=y=>c("move",y),d=y=>{c("end",y),e.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},A=m5e(r),p={moveHandler:y=>f(y.clientX),upHandler:y=>{A?.removeEventListener("mousemove",p.moveHandler),A?.removeEventListener("mouseup",p.upHandler),d(y.clientX)}},g={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var b;A?.removeEventListener("touchmove",g.moveHandler),A?.removeEventListener("touchend",g.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),d((b=y.touches[0])==null?void 0:b.clientX)}},m=w5e()?{passive:!1}:!1;Rz(a)?(A?.addEventListener("touchmove",g.moveHandler,m),A?.addEventListener("touchend",g.upHandler,m)):(A?.addEventListener("mousemove",p.moveHandler,m),A?.addEventListener("mouseup",p.upHandler,m)),e.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:t=>{t.setColumnSizing=e=>t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var r;t.setColumnSizing(e?{}:(r=t.initialState.columnSizing)!=null?r:{})},t.resetHeaderSizeInfo=e=>{var r;t.setColumnSizingInfo(e?Lz():(r=t.initialState.columnSizingInfo)!=null?r:Lz())},t.getTotalSize=()=>{var e,r;return(e=(r=t.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?e:0},t.getLeftTotalSize=()=>{var e,r;return(e=(r=t.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?e:0},t.getCenterTotalSize=()=>{var e,r;return(e=(r=t.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?e:0},t.getRightTotalSize=()=>{var e,r;return(e=(r=t.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?e:0}}};let lk=null;function w5e(){if(typeof lk=="boolean")return lk;let t=!1;try{const e={get passive(){return t=!0,!1}},r=()=>{};window.addEventListener("test",r,e),window.removeEventListener("test",r)}catch{t=!1}return lk=t,lk}function Rz(t){return t.type==="touchstart"}const _5e={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:Hc("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=r=>{t.getCanHide()&&e.setColumnVisibility(n=>({...n,[t.id]:r??!t.getIsVisible()}))},t.getIsVisible=()=>{var r,n;const i=t.columns;return(r=i.length?i.some(a=>a.getIsVisible()):(n=e.getState().columnVisibility)==null?void 0:n[t.id])!=null?r:!0},t.getCanHide=()=>{var r,n;return((r=t.columnDef.enableHiding)!=null?r:!0)&&((n=e.options.enableHiding)!=null?n:!0)},t.getToggleVisibilityHandler=()=>r=>{t.toggleVisibility==null||t.toggleVisibility(r.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=pr(()=>[t.getAllCells(),e.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),vr(e.options,"debugRows")),t.getVisibleCells=pr(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],vr(e.options,"debugRows"))},createTable:t=>{const e=(r,n)=>pr(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),vr(t.options,"debugColumns"));t.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>t.getCenterLeafColumns()),t.setColumnVisibility=r=>t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(r),t.resetColumnVisibility=r=>{var n;t.setColumnVisibility(r?{}:(n=t.initialState.columnVisibility)!=null?n:{})},t.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:r||!(a.getCanHide!=null&&a.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;t.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function KM(t,e){return e?e==="center"?t.getCenterVisibleLeafColumns():e==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const b5e={createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},x5e={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:Hc("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var r;const n=(r=t.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[e.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var r,n,i,a;return((r=t.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=e.options.enableGlobalFilter)!=null?n:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&((a=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(t))!=null?a:!0)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>Tv.includesString,t.getGlobalFilterFn=()=>{var e,r;const{globalFilterFn:n}=t.options;return n5(n)?n:n==="auto"?t.getGlobalAutoFilterFn():(e=(r=t.options.filterFns)==null?void 0:r[n])!=null?e:Tv[n]},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},S5e={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:Hc("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,r=!1;t._autoResetExpanded=()=>{var n,i;if(!e){t._queue(()=>{e=!0});return}if((n=(i=t.options.autoResetAll)!=null?i:t.options.autoResetExpanded)!=null?n:!t.options.manualExpanding){if(r)return;r=!0,t._queue(()=>{t.resetExpanded(),r=!1})}},t.setExpanded=n=>t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(n),t.toggleAllRowsExpanded=n=>{n??!t.getIsAllRowsExpanded()?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=n=>{var i,a;t.setExpanded(n?{}:(i=(a=t.initialState)==null?void 0:a.expanded)!=null?i:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const n=t.getState().expanded;return n===!0||Object.values(n).some(Boolean)},t.getIsAllRowsExpanded=()=>{const n=t.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||t.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},t.getExpandedDepth=()=>{let n=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(a=>{const o=a.split(".");n=Math.max(n,o.length)}),n},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=r=>{e.setExpanded(n=>{var i;const a=n===!0?!0:!!(n!=null&&n[t.id]);let o={};if(n===!0?Object.keys(e.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,r=(i=r)!=null?i:!a,!a&&r)return{...o,[t.id]:!0};if(a&&!r){const{[t.id]:s,...l}=o;return l}return n})},t.getIsExpanded=()=>{var r;const n=e.getState().expanded;return!!((r=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(t))!=null?r:n===!0||n?.[t.id])},t.getCanExpand=()=>{var r,n,i;return(r=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(t))!=null?r:((n=e.options.enableExpanding)!=null?n:!0)&&!!((i=t.subRows)!=null&&i.length)},t.getIsAllParentsExpanded=()=>{let r=!0,n=t;for(;r&&n.parentId;)n=e.getRow(n.parentId,!0),r=n.getIsExpanded();return r},t.getToggleExpandedHandler=()=>{const r=t.getCanExpand();return()=>{r&&t.toggleExpanded()}}}},UK=0,HK=10,Iz=()=>({pageIndex:UK,pageSize:HK}),C5e={getInitialState:t=>({...t,pagination:{...Iz(),...t?.pagination}}),getDefaultOptions:t=>({onPaginationChange:Hc("pagination",t)}),createTable:t=>{let e=!1,r=!1;t._autoResetPageIndex=()=>{var n,i;if(!e){t._queue(()=>{e=!0});return}if((n=(i=t.options.autoResetAll)!=null?i:t.options.autoResetPageIndex)!=null?n:!t.options.manualPagination){if(r)return;r=!0,t._queue(()=>{t.resetPageIndex(),r=!1})}},t.setPagination=n=>{const i=a=>fy(n,a);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(i)},t.resetPagination=n=>{var i;t.setPagination(n?Iz():(i=t.initialState.pagination)!=null?i:Iz())},t.setPageIndex=n=>{t.setPagination(i=>{let a=fy(n,i.pageIndex);const o=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},t.resetPageIndex=n=>{var i,a;t.setPageIndex(n?UK:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:UK)},t.resetPageSize=n=>{var i,a;t.setPageSize(n?HK:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:HK)},t.setPageSize=n=>{t.setPagination(i=>{const a=Math.max(1,fy(n,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},t.setPageCount=n=>t.setPagination(i=>{var a;let o=fy(n,(a=t.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),t.getPageOptions=pr(()=>[t.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},vr(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:n}=t.getState().pagination,i=t.getPageCount();return i===-1?!0:i===0?!1:n<i-1},t.previousPage=()=>t.setPageIndex(n=>n-1),t.nextPage=()=>t.setPageIndex(n=>n+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var n;return(n=t.options.pageCount)!=null?n:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var n;return(n=t.options.rowCount)!=null?n:t.getPrePaginationRowModel().rows.length}}},Oz=()=>({top:[],bottom:[]}),T5e={getInitialState:t=>({rowPinning:Oz(),...t}),getDefaultOptions:t=>({onRowPinningChange:Hc("rowPinning",t)}),createRow:(t,e)=>{t.pin=(r,n,i)=>{const a=n?t.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?t.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,t.id,...a]);e.setRowPinning(l=>{var u,c;if(r==="bottom"){var f,d;return{top:((f=l?.top)!=null?f:[]).filter(g=>!(s!=null&&s.has(g))),bottom:[...((d=l?.bottom)!=null?d:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)]}}if(r==="top"){var A,p;return{top:[...((A=l?.top)!=null?A:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((p=l?.bottom)!=null?p:[]).filter(g=>!(s!=null&&s.has(g)))}}return{top:((u=l?.top)!=null?u:[]).filter(g=>!(s!=null&&s.has(g))),bottom:((c=l?.bottom)!=null?c:[]).filter(g=>!(s!=null&&s.has(g)))}})},t.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=e.options;return typeof n=="function"?n(t):(r=n??i)!=null?r:!0},t.getIsPinned=()=>{const r=[t.id],{top:n,bottom:i}=e.getState().rowPinning,a=r.some(s=>n?.includes(s)),o=r.some(s=>i?.includes(s));return a?"top":o?"bottom":!1},t.getPinnedIndex=()=>{var r,n;const i=t.getIsPinned();if(!i)return-1;const a=(r=i==="top"?e.getTopRows():e.getBottomRows())==null?void 0:r.map(o=>{let{id:s}=o;return s});return(n=a?.indexOf(t.id))!=null?n:-1}},createTable:t=>{t.setRowPinning=e=>t.options.onRowPinningChange==null?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var r,n;return t.setRowPinning(e?Oz():(r=(n=t.initialState)==null?void 0:n.rowPinning)!=null?r:Oz())},t.getIsSomeRowsPinned=e=>{var r;const n=t.getState().rowPinning;if(!e){var i,a;return!!((i=n.top)!=null&&i.length||(a=n.bottom)!=null&&a.length)}return!!((r=n[e])!=null&&r.length)},t._getPinnedRows=(e,r,n)=>{var i;return((i=t.options.keepPinnedRows)==null||i?(r??[]).map(o=>{const s=t.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(r??[]).map(o=>e.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},t.getTopRows=pr(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,r)=>t._getPinnedRows(e,r,"top"),vr(t.options,"debugRows")),t.getBottomRows=pr(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,r)=>t._getPinnedRows(e,r,"bottom"),vr(t.options,"debugRows")),t.getCenterRows=pr(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(e,r,n)=>{const i=new Set([...r??[],...n??[]]);return e.filter(a=>!i.has(a.id))},vr(t.options,"debugRows"))}},E5e={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:Hc("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var r;return t.setRowSelection(e?{}:(r=t.initialState.rowSelection)!=null?r:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(r=>{e=typeof e<"u"?e:!t.getIsAllRowsSelected();const n={...r},i=t.getPreGroupedRowModel().flatRows;return e?i.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):i.forEach(a=>{delete n[a.id]}),n})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(r=>{const n=typeof e<"u"?e:!t.getIsAllPageRowsSelected(),i={...r};return t.getRowModel().rows.forEach(a=>{QK(i,a.id,n,!0,t)}),i}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=pr(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,r)=>Object.keys(e).length?Pz(t,r):{rows:[],flatRows:[],rowsById:{}},vr(t.options,"debugTable")),t.getFilteredSelectedRowModel=pr(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,r)=>Object.keys(e).length?Pz(t,r):{rows:[],flatRows:[],rowsById:{}},vr(t.options,"debugTable")),t.getGroupedSelectedRowModel=pr(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,r)=>Object.keys(e).length?Pz(t,r):{rows:[],flatRows:[],rowsById:{}},vr(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:r}=t.getState();let n=!!(e.length&&Object.keys(r).length);return n&&e.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=t.getState();let n=!!e.length;return n&&e.some(i=>!r[i.id])&&(n=!1),n},t.getIsSomeRowsSelected=()=>{var e;const r=Object.keys((e=t.getState().rowSelection)!=null?e:{}).length;return r>0&&r<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:e.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(r,n)=>{const i=t.getIsSelected();e.setRowSelection(a=>{var o;if(r=typeof r<"u"?r:!i,t.getCanSelect()&&i===r)return a;const s={...a};return QK(s,t.id,r,(o=n?.selectChildren)!=null?o:!0,e),s})},t.getIsSelected=()=>{const{rowSelection:r}=e.getState();return $$(t,r)},t.getIsSomeSelected=()=>{const{rowSelection:r}=e.getState();return jK(t,r)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=e.getState();return jK(t,r)==="all"},t.getCanSelect=()=>{var r;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(t):(r=e.options.enableRowSelection)!=null?r:!0},t.getCanSelectSubRows=()=>{var r;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(t):(r=e.options.enableSubRowSelection)!=null?r:!0},t.getCanMultiSelect=()=>{var r;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(t):(r=e.options.enableMultiRowSelection)!=null?r:!0},t.getToggleSelectedHandler=()=>{const r=t.getCanSelect();return n=>{var i;r&&t.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},QK=(t,e,r,n,i)=>{var a;const o=i.getRow(e,!0);r?(o.getCanMultiSelect()||Object.keys(t).forEach(s=>delete t[s]),o.getCanSelect()&&(t[e]=!0)):delete t[e],n&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>QK(t,s.id,r,n,i))};function Pz(t,e){const r=t.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(l=>{var u;const c=$$(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(e.rows),flatRows:n,rowsById:i}}function $$(t,e){var r;return(r=e[t.id])!=null?r:!1}function jK(t,e,r){var n;if(!((n=t.subRows)!=null&&n.length))return!1;let i=!0,a=!1;return t.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&($$(o,e)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=jK(o,e);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const zK=/([0-9]+)/gm,B5e=(t,e,r)=>zye(Vy(t.getValue(r)).toLowerCase(),Vy(e.getValue(r)).toLowerCase()),D5e=(t,e,r)=>zye(Vy(t.getValue(r)),Vy(e.getValue(r))),M5e=(t,e,r)=>Z$(Vy(t.getValue(r)).toLowerCase(),Vy(e.getValue(r)).toLowerCase()),L5e=(t,e,r)=>Z$(Vy(t.getValue(r)),Vy(e.getValue(r))),R5e=(t,e,r)=>{const n=t.getValue(r),i=e.getValue(r);return n>i?1:n<i?-1:0},I5e=(t,e,r)=>Z$(t.getValue(r),e.getValue(r));function Z$(t,e){return t===e?0:t>e?1:-1}function Vy(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function zye(t,e){const r=t.split(zK).filter(Boolean),n=e.split(zK).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),a=n.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return r.length-n.length}const W2={alphanumeric:B5e,alphanumericCaseSensitive:D5e,text:M5e,textCaseSensitive:L5e,datetime:R5e,basic:I5e},O5e={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:Hc("sorting",t),isMultiSortEvent:e=>e.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const r=e.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const a=i?.getValue(t.id);if(Object.prototype.toString.call(a)==="[object Date]")return W2.datetime;if(typeof a=="string"&&(n=!0,a.split(zK).length>1))return W2.alphanumeric}return n?W2.text:W2.basic},t.getAutoSortDir=()=>{const r=e.getFilteredRowModel().flatRows[0];return typeof r?.getValue(t.id)=="string"?"asc":"desc"},t.getSortingFn=()=>{var r,n;if(!t)throw new Error;return n5(t.columnDef.sortingFn)?t.columnDef.sortingFn:t.columnDef.sortingFn==="auto"?t.getAutoSortingFn():(r=(n=e.options.sortingFns)==null?void 0:n[t.columnDef.sortingFn])!=null?r:W2[t.columnDef.sortingFn]},t.toggleSorting=(r,n)=>{const i=t.getNextSortingOrder(),a=typeof r<"u"&&r!==null;e.setSorting(o=>{const s=o?.find(A=>A.id===t.id),l=o?.findIndex(A=>A.id===t.id);let u=[],c,f=a?r:i==="desc";if(o!=null&&o.length&&t.getCanMultiSort()&&n?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var d;u=[...o,{id:t.id,desc:f}],u.splice(0,u.length-((d=e.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(A=>A.id===t.id?{...A,desc:f}:A):c==="remove"?u=o.filter(A=>A.id!==t.id):u=[{id:t.id,desc:f}];return u})},t.getFirstSortDir=()=>{var r,n;return((r=(n=t.columnDef.sortDescFirst)!=null?n:e.options.sortDescFirst)!=null?r:t.getAutoSortDir()==="desc")?"desc":"asc"},t.getNextSortingOrder=r=>{var n,i;const a=t.getFirstSortDir(),o=t.getIsSorted();return o?o!==a&&((n=e.options.enableSortingRemoval)==null||n)&&(!(r&&(i=e.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},t.getCanSort=()=>{var r,n;return((r=t.columnDef.enableSorting)!=null?r:!0)&&((n=e.options.enableSorting)!=null?n:!0)&&!!t.accessorFn},t.getCanMultiSort=()=>{var r,n;return(r=(n=t.columnDef.enableMultiSort)!=null?n:e.options.enableMultiSort)!=null?r:!!t.accessorFn},t.getIsSorted=()=>{var r;const n=(r=e.getState().sorting)==null?void 0:r.find(i=>i.id===t.id);return n?n.desc?"desc":"asc":!1},t.getSortIndex=()=>{var r,n;return(r=(n=e.getState().sorting)==null?void 0:n.findIndex(i=>i.id===t.id))!=null?r:-1},t.clearSorting=()=>{e.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==t.id):[])},t.getToggleSortingHandler=()=>{const r=t.getCanSort();return n=>{r&&(n.persist==null||n.persist(),t.toggleSorting==null||t.toggleSorting(void 0,t.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(n):!1))}}},createTable:t=>{t.setSorting=e=>t.options.onSortingChange==null?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var r,n;t.setSorting(e?[]:(r=(n=t.initialState)==null?void 0:n.sorting)!=null?r:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},P5e=[r5e,_5e,v5e,g5e,n5e,i5e,b5e,x5e,O5e,A5e,S5e,C5e,T5e,E5e,y5e];function k5e(t){var e,r;const n=[...P5e,...(e=t._features)!=null?e:[]];let i={_features:n};const a=i._features.reduce((d,A)=>Object.assign(d,A.getDefaultOptions==null?void 0:A.getDefaultOptions(i)),{}),o=d=>i.options.mergeOptions?i.options.mergeOptions(a,d):{...a,...d};let l={...{},...(r=t.initialState)!=null?r:{}};i._features.forEach(d=>{var A;l=(A=d.getInitialState==null?void 0:d.getInitialState(l))!=null?A:l});const u=[];let c=!1;const f={_features:n,options:{...a,...t},initialState:l,_queue:d=>{u.push(d),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(A=>setTimeout(()=>{throw A})))},reset:()=>{i.setState(i.initialState)},setOptions:d=>{const A=fy(d,i.options);i.options=o(A)},getState:()=>i.options.state,setState:d=>{i.options.onStateChange==null||i.options.onStateChange(d)},_getRowId:(d,A,p)=>{var g;return(g=i.options.getRowId==null?void 0:i.options.getRowId(d,A,p))!=null?g:`${p?[p.id,A].join("."):A}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(d,A)=>{let p=(A?i.getPrePaginationRowModel():i.getRowModel()).rowsById[d];if(!p&&(p=i.getCoreRowModel().rowsById[d],!p))throw new Error;return p},_getDefaultColumnDef:pr(()=>[i.options.defaultColumn],d=>{var A;return d=(A=d)!=null?A:{},{header:p=>{const g=p.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:p=>{var g,m;return(g=(m=p.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...i._features.reduce((p,g)=>Object.assign(p,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...d}},vr(t,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:pr(()=>[i._getColumnDefs()],d=>{const A=function(p,g,m){return m===void 0&&(m=0),p.map(y=>{const b=t5e(i,y,m,g),x=y;return b.columns=x.columns?A(x.columns,b,m+1):[],b})};return A(d)},vr(t,"debugColumns")),getAllFlatColumns:pr(()=>[i.getAllColumns()],d=>d.flatMap(A=>A.getFlatColumns()),vr(t,"debugColumns")),_getAllFlatColumnsById:pr(()=>[i.getAllFlatColumns()],d=>d.reduce((A,p)=>(A[p.id]=p,A),{}),vr(t,"debugColumns")),getAllLeafColumns:pr(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(d,A)=>{let p=d.flatMap(g=>g.getLeafColumns());return A(p)},vr(t,"debugColumns")),getColumn:d=>i._getAllFlatColumnsById()[d]};Object.assign(i,f);for(let d=0;d<i._features.length;d++){const A=i._features[d];A==null||A.createTable==null||A.createTable(i)}return i}function N5e(){return t=>pr(()=>[t.options.data],e=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=W$(t,t._getRowId(i[u],u,o),i[u],u,a,void 0,o?.id);if(r.flatRows.push(c),r.rowsById[c.id]=c,s.push(c),t.options.getSubRows){var l;c.originalSubRows=t.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=n(c.originalSubRows,a+1,c))}}return s};return r.rows=n(e),r},vr(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function F5e(t){const e=[],r=n=>{var i;e.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return t.rows.forEach(r),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}function U5e(t,e,r){return r.options.filterFromLeafRows?H5e(t,e,r):Q5e(t,e,r)}function H5e(t,e,r){var n;const i=[],a={},o=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let d=0;d<l.length;d++){var f;let A=l[d];const p=W$(r,A.id,A.original,A.index,A.depth,void 0,A.parentId);if(p.columnFilters=A.columnFilters,(f=A.subRows)!=null&&f.length&&u<o){if(p.subRows=s(A.subRows,u+1),A=p,e(A)&&!p.subRows.length){c.push(A),a[A.id]=A,i.push(A);continue}if(e(A)||p.subRows.length){c.push(A),a[A.id]=A,i.push(A);continue}}else A=p,e(A)&&(c.push(A),a[A.id]=A,i.push(A))}return c};return{rows:s(t),flatRows:i,rowsById:a}}function Q5e(t,e,r){var n;const i=[],a={},o=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let d=0;d<l.length;d++){let A=l[d];if(e(A)){var f;if((f=A.subRows)!=null&&f.length&&u<o){const g=W$(r,A.id,A.original,A.index,A.depth,void 0,A.parentId);g.subRows=s(A.subRows,u+1),A=g}c.push(A),i.push(A),a[A.id]=A}}return c};return{rows:s(t),flatRows:i,rowsById:a}}function j5e(){return t=>pr(()=>[t.getPreFilteredRowModel(),t.getState().columnFilters,t.getState().globalFilter],(e,r,n)=>{if(!e.rows.length||!(r!=null&&r.length)&&!n){for(let d=0;d<e.flatRows.length;d++)e.flatRows[d].columnFilters={},e.flatRows[d].columnFiltersMeta={};return e}const i=[],a=[];(r??[]).forEach(d=>{var A;const p=t.getColumn(d.id);if(!p)return;const g=p.getFilterFn();g&&i.push({id:d.id,filterFn:g,resolvedValue:(A=g.resolveFilterValue==null?void 0:g.resolveFilterValue(d.value))!=null?A:d.value})});const o=(r??[]).map(d=>d.id),s=t.getGlobalFilterFn(),l=t.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&s&&l.length&&(o.push("__global__"),l.forEach(d=>{var A;a.push({id:d.id,filterFn:s,resolvedValue:(A=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?A:n})}));let u,c;for(let d=0;d<e.flatRows.length;d++){const A=e.flatRows[d];if(A.columnFilters={},i.length)for(let p=0;p<i.length;p++){u=i[p];const g=u.id;A.columnFilters[g]=u.filterFn(A,g,u.resolvedValue,m=>{A.columnFiltersMeta[g]=m})}if(a.length){for(let p=0;p<a.length;p++){c=a[p];const g=c.id;if(c.filterFn(A,g,c.resolvedValue,m=>{A.columnFiltersMeta[g]=m})){A.columnFilters.__global__=!0;break}}A.columnFilters.__global__!==!0&&(A.columnFilters.__global__=!1)}}const f=d=>{for(let A=0;A<o.length;A++)if(d.columnFilters[o[A]]===!1)return!1;return!0};return U5e(e.rows,f,t)},vr(t.options,"debugTable","getFilteredRowModel",()=>t._autoResetPageIndex()))}function z5e(t){return e=>pr(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:i,pageIndex:a}=r;let{rows:o,flatRows:s,rowsById:l}=n;const u=i*a,c=u+i;o=o.slice(u,c);let f;e.options.paginateExpandedRows?f={rows:o,flatRows:s,rowsById:l}:f=F5e({rows:o,flatRows:s,rowsById:l}),f.flatRows=[];const d=A=>{f.flatRows.push(A),A.subRows.length&&A.subRows.forEach(d)};return f.rows.forEach(d),f},vr(e.options,"debugTable"))}function V5e(){return t=>pr(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,r)=>{if(!r.rows.length||!(e!=null&&e.length))return r;const n=t.getState().sorting,i=[],a=n.filter(l=>{var u;return(u=t.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=t.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let A=0;A<a.length;A+=1){var d;const p=a[A],g=o[p.id],m=g.sortUndefined,y=(d=p?.desc)!=null?d:!1;let b=0;if(m){const x=c.getValue(p.id),T=f.getValue(p.id),B=x===void 0,R=T===void 0;if(B||R){if(m==="first")return B?-1:1;if(m==="last")return B?1:-1;b=B&&R?0:B?m:-m}}if(b===0&&(b=g.sortingFn(c,f,p.id)),b!==0)return y&&(b*=-1),g.invertSorting&&(b*=-1),b}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},vr(t.options,"debugTable","getSortedRowModel",()=>t._autoResetPageIndex()))}function Mne(t,e){return t?G5e(t)?H.createElement(t,e):t:null}function G5e(t){return K5e(t)||typeof t=="function"||W5e(t)}function K5e(t){return typeof t=="function"&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}function W5e(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function Y5e(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[r]=H.useState(()=>({current:k5e(e)})),[n,i]=H.useState(()=>r.current.initialState);return r.current.setOptions(a=>({...a,...t,state:{...n,...t.state},onStateChange:o=>{i(o),t.onStateChange==null||t.onStateChange(o)}})),r.current}const $5e=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Z5e=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase()),Lne=t=>{const e=Z5e(t);return e.charAt(0).toUpperCase()+e.slice(1)},Vye=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim(),X5e=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var q5e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const J5e=H.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>H.createElement("svg",{ref:l,...q5e,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:Vye("lucide",i),...!a&&!X5e(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,c])=>H.createElement(u,c)),...Array.isArray(a)?a:[a]]));const A0=(t,e)=>{const r=H.forwardRef(({className:n,...i},a)=>H.createElement(J5e,{ref:a,iconNode:e,className:Vye(`lucide-${$5e(Lne(t))}`,`lucide-${t}`,n),...i}));return r.displayName=Lne(t),r};const eQe=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],tQe=A0("arrow-left",eQe);const rQe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],nQe=A0("arrow-right",rQe);const iQe=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],aQe=A0("check",iQe);const oQe=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],X$=A0("chevron-down",oQe);const sQe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],lQe=A0("circle-alert",sQe);const uQe=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Gye=A0("ellipsis-vertical",uQe);const cQe=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],fQe=A0("power",cQe);const dQe=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Kye=A0("triangle-alert",dQe);function hQe({className:t,...e}){return E.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:ra("flex w-full justify-center",t),...e})}function AQe({className:t,...e}){return E.jsx("ul",{"data-slot":"pagination-content",className:ra("flex items-center gap-1",t),...e})}function kz({...t}){return E.jsx("li",{"data-slot":"pagination-item",...t})}function q$({className:t,isActive:e,...r}){return E.jsx("button",{"aria-current":e?"page":void 0,"data-slot":"pagination-link","data-active":e,className:ra("cursor-pointer px-2.5 py-1 rounded-sm text-sm font-medium transition-colors",e?"bg-primary-dark-blue text-white":"text-gray-900 hover:bg-gray-100",t),...r})}function pQe({className:t,disabled:e,...r}){return E.jsx(q$,{"aria-label":"Go to previous page",disabled:e,className:ra("flex items-center gap-2 text-sm",e?"text-gray-400 cursor-not-allowed":"text-primary-dark-blue hover:text-gray-700",t),...r,children:E.jsx(tQe,{className:"h-4 w-4"})})}function vQe({className:t,disabled:e,...r}){return E.jsx(q$,{"aria-label":"Go to next page",disabled:e,className:ra("flex items-center gap-2 text-sm",e?"text-gray-400 cursor-not-allowed":"text-primary-dark-blue hover:text-gray-700",t),...r,children:E.jsx(nQe,{className:"h-4 w-4"})})}const gQe=ue.createContext({}),Wye=!0;function mQe({baseColor:t,highlightColor:e,width:r,height:n,borderRadius:i,circle:a,direction:o,duration:s,enableAnimation:l=Wye,customHighlightBackgroun
45d:u}){const c={};return o==="rtl"&&(c["--animation-direction"]="reverse"),typeof s=="number"&&(c["--animation-duration"]=`${s}s`),l||(c["--pseudo-element-display"]="none"),(typeof r=="string"||typeof r=="number")&&(c.width=r),(typeof n=="string"||typeof n=="number")&&(c.height=n),(typeof i=="string"||typeof i=="number")&&(c.borderRadius=i),a&&(c.borderRadius="50%"),typeof t<"u"&&(c["--base-color"]=t),typeof e<"u"&&(c["--highlight-color"]=e),typeof u=="string"&&(c["--custom-highlight-background"]=u),c}function yQe({count:t=1,wrapper:e,className:r,containerClassName:n,containerTestId:i,circle:a=!1,style:o,...s}){var l,u,c;const f=ue.useContext(gQe),d={...s};for(const[x,T]of Object.entries(s))typeof T>"u"&&delete d[x];const A={...f,...d,circle:a},p={...o,...mQe(A)};let g="react-loading-skeleton";r&&(g+=` ${r}`);const m=(l=A.inline)!==null&&l!==void 0?l:!1,y=[],b=Math.ceil(t);for(let x=0;x<b;x++){let T=p;if(b>t&&x===b-1){const R=(u=T.width)!==null&&u!==void 0?u:"100%",I=t%1,N=typeof R=="number"?R*I:`calc(${R} * ${I})`;T={...T,width:N}}const B=ue.createElement("span",{className:g,style:T,key:x},"‌");m?y.push(B):y.push(ue.createElement(ue.Fragment,{key:x},B,ue.createElement("br",null)))}return ue.createElement("span",{className:n,"data-testid":i,"aria-live":"polite","aria-busy":(c=A.enableAnimation)!==null&&c!==void 0?c:Wye},e?y.map((x,T)=>ue.createElement(e,{key:T},x)):y)}function Yye({length:t=5}){return E.jsx("div",{className:"flex flex-col gap-4 w-full p-4",children:Array.from({length:t}).map((e,r)=>E.jsx(yQe,{className:"w-full h-6.25 rounded-[10px]"},r))})}function Ci({message:t}){const{FEEDBACK_MESSAGES:e}=Vt();return E.jsxs("div",{className:"flex flex-col  justify-center items-center h-full w-full",children:[E.jsx("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-red-500/10",children:E.jsx(Kye,{size:20,className:" text-red-400"})}),E.jsx("span",{className:"text-sm leading-relaxed font-medium text-center",children:t||e.ERROR})]})}const $ye="/assets/no-data-image-ukGgvqrY.png",wQe="/assets/delete-gKHFEHL7.png",_Qe="/assets/solar-background-DvT2g_j3.png",bQe="/assets/generator-backgorund-A4_qYKLK.png",xQe="/assets/transformer-backgroundjpeg-CoSGBXYI.jpeg",SQe="/assets/grid-backgorund-CnKEW_Wj.png";function hu({message:t,className:e}){const{FEEDBACK_MESSAGES:r}=Vt();return E.jsxs("div",{className:"flex flex-col  justify-center items-center h-full w-full",children:[E.jsx("img",{src:$ye,alt:"unable to fetch data",className:`max-h-12.5 ${e}`}),E.jsx("span",{className:"font-semibold text-center",children:t||r.NO_DEVICE})]})}function Us({message:t}){const{FEEDBACK_MESSAGES:e}=Vt();return E.jsxs("div",{className:"flex flex-col  justify-center items-center h-full w-full",children:[E.jsx("img",{src:$ye,alt:"No data",className:"max-h-37.5"}),E.jsx("span",{className:"font-semibold",children:t||e.NO_DATA})]})}const wg=({data:t,columns:e,isLoading:r,error:n,pagination:i,onPageChange:a,currentPage:o=1,tableWrapperClassName:s,onRowClick:l,getRowTestId:u,getEmptyStateTestId:c,getHeaderTestId:f,wrapperTestId:d,getRowClassName:A})=>{const{FEEDBACK_MESSAGES:p}=Vt(),[g,m]=ue.useState([]),y=Y5e({data:t,columns:e,onSortingChange:m,getCoreRowModel:N5e(),getPaginationRowModel:z5e(),getSortedRowModel:V5e(),getFilteredRowModel:j5e(),state:{sorting:g}}),b=10,x=ue.useRef(i);i&&(x.current=i);const T=i??x.current,B=T?Math.ceil(T.count/b):0,R=I=>{a&&I>=1&&I<=B&&a(I)};return n?E.jsx(nr,{className:"shadow-none place-items-center flex items-center justify-center h-full min-h-100!",children:n?.response?.data?.detail?E.jsx(hu,{message:p.NO_DEVICE}):E.jsx(Ci,{message:"Error fetching data"})}):!r&&t.length===0?E.jsx(nr,{dataTestId:c?c():void 0,className:"shadow-none place-items-center flex items-center justify-center min-h-100!",children:E.jsx(Us,{})}):E.jsxs(nr,{"data-testid":d,className:`shadow-none ${s}`,children:[r?E.jsx(Yye,{length:Qi}):E.jsxs(G$,{className:"",children:[E.jsx(Iye,{className:"w-full border-b border-b-gray-200 bg-gray-100 rounded-t-2xl",children:y.getHeaderGroups().map(I=>E.jsx(v4,{className:"",children:I.headers.map(N=>E.jsx(Oye,{"data-testid":f?f(N.column.columnDef.header,N.index):`table-header-${EHe(String(N.column.columnDef.header))}`,className:"min-w-0 p-regular px-2.5 pb-3.75 text-gray-600 font-normal text-sm wrap-break-word",children:N.isPlaceholder?null:Mne(N.column.columnDef.header,N.getContext())},N.id))},I.id))}),E.jsx(K$,{className:"",children:y.getRowModel().rows.map(I=>E.jsx(v4,{"data-testid":u?u(I.original,I.index):void 0,className:`${A?A(I.original,I.index):""}
45 ${l?"cursor-pointer":""} border-b border-b-gray-200`,onClick:()=>l&&l(I.original),children:I.getVisibleCells().map(N=>E.jsx(g4,{className:"min-w-0 px-4 p-regular py-3.75 text-black-base font-normal wrap-break-word",children:Mne(N.column.columnDef.cell,N.getContext())},N.id))},I.id))})]}),T&&B>1&&E.jsx("div",{"data-testid":`${d}-pagination`,className:"flex justify-center py-6",children:E.jsx(hQe,{children:E.jsxs(AQe,{children:[E.jsx(kz,{children:E.jsx(pQe,{"data-testid":`${d}-pagination-prev`,disabled:!T.prev||r,onClick:()=>!r&&R(o-1)})}),$He(B,o).map(I=>E.jsx(kz,{children:E.jsx(q$,{"data-testid":`${d}-pagination-page-${I}`,isActive:I===o,onClick:()=>!r&&R(I),className:r?"pointer-events-none opacity-50":"",children:I})},I)),E.jsx(kz,{children:E.jsx(vQe,{"data-testid":`${d}-pagination-next`,disabled:!T.next||r,onClick:()=>!r&&R(o+1)})})]})})})]})};function p0({count:t,currentPage:e,itemsPerPage:r}){if(!t)return;const n=Math.ceil(t/r);return{count:t,totalPages:n,prev:e>1?e-1:null,next:e<n?e+1:null}}var CQe=Object.defineProperty,YT=(t,e)=>CQe(t,"name",{value:e,configurable:!0}),Zye=!!(typeof window<"u"&&window.document&&window.document.createElement);function wi(t,e,{checkForDefaultPrevented:r=!0}={}){return YT(function(i){if(t?.(i),r===!1||!i||!i.defaultPrevented)return e?.(i)},"handleEvent")}YT(wi,"composeEventHandlers");function TQe(t){if(!Zye)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}YT(TQe,"getOwnerWindow");function VK(t){if(!Zye)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}YT(VK,"getOwnerDocument");function Xye(t,e=!1){const{activeElement:r}=VK(t);if(!r?.nodeName)return null;if(qye(r)&&r.contentDocument)return Xye(r.contentDocument.body,e);if(e){const n=r.getAttribute("aria-activedescendant");if(n){const i=VK(r).getElementById(n);if(i)return i}}return r}YT(Xye,"getActiveElement");function qye(t){return t.tagName==="IFRAME"}YT(qye,"isFrame");var EQe=Object.defineProperty,J$=(t,e)=>EQe(t,"name",{value:e,configurable:!0});function GK(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}J$(GK,"setRef");function Jye(...t){return e=>{let r=!1;const n=t.map(i=>{const a=GK(i,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():GK(t[i],null)}}}}J$(Jye,"composeRefs");function Bs(...t){return H.useCallback(Jye(...t),t)}J$(Bs,"useComposedRefs");var BQe=Object.defineProperty,Hf=(t,e)=>BQe(t,"name",{value:e,configurable:!0});function DQe(t,e){const r=H.createContext(e);r.displayName=t+"Context";const n=Hf(a=>{const{children:o,...s}=a,l=H.useMemo(()=>s,Object.values(s));return E.jsx(r.Provider,{value:l,children:o})},"Provider");n.displayName=t+"Provider";function i(a,o={}){const{optional:s=!1}=o,l=H.useContext(r);if(l)return l;if(e!==void 0)return e;if(!s)throw new Error(`\`${a}\` must be used within \`${t}\``)}return Hf(i,"useContext"),[n,i]}Hf(DQe,"createContext");function dx(t,e=[]){let r=[];function n(a,o){const s=H.createContext(o);s.displayName=a+"Context";const l=r.length;r=[...r,o];const u=Hf(f=>{const{scope:d,children:A,...p}=f,g=d?.[t]?.[l]||s,m=H.useMemo(()=>p,Object.values(p));return E.jsx(g.Provider,{value:m,children:A})},"Provider");u.displayName=a+"Provider";function c(f,d,A={}){const{optional:p=!1}=A,g=d?.[t]?.[l]||s,m=H.useContext(g);if(m)return m;if(o!==void 0)return o;if(!p)throw new Error(`\`${f}\` must be used within \`${a}\``)}return Hf(c,"useContext"),[u,c]}Hf(n,"createContext");const i=Hf(()=>{const a=r.map(o=>H.createContext(o));return Hf(function(s){const l=s?.[t]||a;return H.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])},"useScope")},"createScope");return i.scopeName=t,[n,e0e(i,...e)]}Hf(dx,"createContextScope");function e0e(...t){const e=t[0];if(t.length===1)return e;const r=Hf(()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return Hf(function(a){const o=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...s,...f}},{});return H.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=e.scopeName,r}Hf(e0e,"composeContextScopes");var sh=globalThis?.document?H.useLayoutEffect:()=>{},MQe=Object.defineProperty,LQe=(t,e)=>MQe(t,"name",{value:e,configurable:!0}),Rne=f0[" useEffectEvent ".trim().toString()],Ine=f0[" useInsertionEffect ".trim().toString()];function t0e(t){if(typeof Rne=="function")return Rne(t);const e=H.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ine=="function"?Ine(()=>{e.current=t}):sh(()=>{e.current=t}),H.useMemo(()=>((...r)=>e.current?.(...r)),[])}LQe(t0e,"useEffectEvent");var RQe=Object.defineProperty,nI=(t,e)=>RQe(t,"name",{value:e,configurable:!0}
45),IQe=f0[" useInsertionEffect ".trim().toString()]||sh;function eZ({prop:t,defaultProp:e,onChange:r=nI(()=>{},"onChange"),caller:n}){const[i,a,o]=r0e({defaultProp:e,onChange:r}),s=t!==void 0,l=s?t:i,u=H.useCallback(c=>{if(s){const f=n0e(c)?c(t):c;f!==t&&o.current?.(f)}else a(c)},[s,t,a,o]);return[l,u]}nI(eZ,"useControllableState");function r0e({defaultProp:t,onChange:e}){const[r,n]=H.useState(t),i=H.useRef(r),a=H.useRef(e);return IQe(()=>{a.current=e},[e]),H.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}nI(r0e,"useUncontrolledState");function n0e(t){return typeof t=="function"}nI(n0e,"isFunction");var One=Symbol("RADIX:SYNC_STATE");function OQe(t,e,r,n){const{prop:i,defaultProp:a,onChange:o,caller:s}=e,l=i!==void 0,u=t0e(o),c=[{...r,state:a}];n&&c.push(n);const[f,d]=H.useReducer((m,y)=>{if(y.type===One)return{...m,state:y.state};const b=t(m,y);return l&&!Object.is(b.state,m.state)&&u(b.state),b},...c),A=f.state,p=H.useRef(A);H.useEffect(()=>{p.current!==A&&(p.current=A,l||u(A))},[A,p,l]);const g=H.useMemo(()=>i!==void 0?{...f,state:i}:f,[f,i]);return H.useEffect(()=>{l&&!Object.is(i,f.state)&&d({type:One,state:i})},[i,f.state,l]),[g,d]}nI(OQe,"useControllableStateReducer");var PQe=Object.defineProperty,wh=(t,e)=>PQe(t,"name",{value:e,configurable:!0});function Mb(t){const e=H.forwardRef((r,n)=>{let{children:i,...a}=r,o=null,s=!1;const l=[];KK(i)&&typeof uk=="function"&&(i=uk(i._payload)),H.Children.forEach(i,d=>{if(s0e(d)){s=!0;const A=d;let p="child"in A.props?A.props.child:A.props.children;KK(p)&&typeof uk=="function"&&(p=uk(p._payload)),o=NQe(A,p),l.push(o?.props?.children)}else l.push(d)}),o?o=H.cloneElement(o,void 0,l):!s&&H.Children.count(i)===1&&H.isValidElement(i)&&(o=i);const u=o?o0e(o):void 0,c=Bs(n,u);if(!o){if(i||i===0)throw new Error(s?HQe(t):UQe(t));return i}const f=a0e(a,o.props??{});return o.type!==H.Fragment&&(f.ref=n?c:u),H.cloneElement(o,f)});return e.displayName=`${t}.Slot`,e}wh(Mb,"createSlot");var i0e=Symbol.for("radix.slottable");function kQe(t){const e=wh(r=>"child"in r?r.children(r.child):r.children,"Slottable");return e.displayName=`${t}.Slottable`,e.__radixId=i0e,e}wh(kQe,"createSlottable");var NQe=wh((t,e)=>{if("child"in t.props){const r=t.props.child;return H.isValidElement(r)?H.cloneElement(r,void 0,t.props.children(r.props.children)):null}return H.isValidElement(e)?e:null},"getSlottableElementFromSlottable");function a0e(t,e){const r={...e};for(const n in e){const i=t[n],a=e[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}wh(a0e,"mergeProps");function o0e(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}wh(o0e,"getElementRef");function s0e(t){return H.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===i0e}wh(s0e,"isSlottable");var FQe=Symbol.for("react.lazy");function KK(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===FQe&&"_payload"in t&&l0e(t._payload)}wh(KK,"isLazyComponent");function l0e(t){return typeof t=="object"&&t!==null&&"then"in t}wh(l0e,"isPromiseLike");var UQe=wh(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),HQe=wh(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),uk=f0[" use ".trim().toString()],QQe=Object.defineProperty,jQe=(t,e)=>QQe(t,"name",{value:e,configurable:!0}),zQe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_g=zQe.reduce((t,e)=>{const r=Mb(`Primitive.${e}`),n=H.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function tZ(t,e){t&&ux.flushSync(()=>t.dispatchEvent(e))}
45jQe(tZ,"dispatchDiscreteCustomEvent");var VQe=Object.defineProperty,Zo=(t,e)=>VQe(t,"name",{value:e,configurable:!0});function rZ(t){const e=t+"CollectionProvider",[r,n]=dx(e),[i,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=Zo(g=>{const{scope:m,children:y}=g,b=H.useRef(null),x=H.useRef(new Map).current;return E.jsx(i,{scope:m,itemMap:x,collectionRef:b,children:y})},"CollectionProvider");o.displayName=e;const s=t+"CollectionSlot",l=Mb(s),u=H.forwardRef((g,m)=>{const{scope:y,children:b}=g,x=a(s,y),T=Bs(m,x.collectionRef);return E.jsx(l,{ref:T,children:b})});u.displayName=s;const c=t+"CollectionItemSlot",f="data-radix-collection-item",d=Mb(c),A=H.forwardRef((g,m)=>{const{scope:y,children:b,...x}=g,T=H.useRef(null),B=Bs(m,T),R=a(c,y);return H.useEffect(()=>(R.itemMap.set(T,{ref:T,...x}),()=>{R.itemMap.delete(T)})),E.jsx(d,{[f]:"",ref:B,children:b})});A.displayName=c;function p(g){const m=a(t+"CollectionConsumer",g);return H.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((R,I)=>x.indexOf(R.ref.current)-x.indexOf(I.ref.current))},[m.collectionRef,m.itemMap])}return Zo(p,"useCollection"),[{Provider:o,Slot:u,ItemSlot:A},p,n]}Zo(rZ,"createCollection");var Pne=new WeakMap,to,Tc,Nz=(Tc=class extends Map{constructor(r){super(r);jte(this,to);$j(this,to,[...super.keys()]),Pne.set(this,!0)}set(r,n){return Pne.get(this)&&(this.has(r)?nl(this,to)[nl(this,to).indexOf(r)]=r:nl(this,to).push(r)),super.set(r,n),this}insert(r,n,i){const a=this.has(n),o=nl(this,to).length,s=nZ(r);let l=s>=0?s:o+s;const u=l<0||l>=o?-1:l;if(u===this.size||a&&u===this.size-1||u===-1)return this.set(n,i),this;const c=this.size+(a?0:1);s<0&&l++;const f=[...nl(this,to)];let d,A=!1;for(let p=l;p<c;p++)if(l===p){let g=f[p];f[p]===n&&(g=f[p+1]),a&&this.delete(n),d=this.get(g),this.set(n,i)}else{!A&&f[p-1]===n&&(A=!0);const g=f[A?p:p-1],m=d;d=this.get(g),this.delete(g),this.set(g,m)}return this}with(r,n,i){const a=new Tc(this);return a.insert(r,n,i),a}before(r){const n=nl(this,to).indexOf(r)-1;if(!(n<0))return this.entryAt(n)}setBefore(r,n,i){const a=nl(this,to).indexOf(r);return a===-1?this:this.insert(a,n,i)}after(r){let n=nl(this,to).indexOf(r);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(r,n,i){const a=nl(this,to).indexOf(r);return a===-1?this:this.insert(a+1,n,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return $j(this,to,[]),super.clear()}delete(r){const n=super.delete(r);return n&&nl(this,to).splice(nl(this,to).indexOf(r),1),n}deleteAt(r){const n=this.keyAt(r);return n!==void 0?this.delete(n):!1}at(r){const n=ZF(nl(this,to),r);if(n!==void 0)return this.get(n)}entryAt(r){const n=ZF(nl(this,to),r);if(n!==void 0)return[n,this.get(n)]}indexOf(r){return nl(this,to).indexOf(r)}keyAt(r){return ZF(nl(this,to),r)}from(r,n){const i=this.indexOf(r);if(i===-1)return;let a=i+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(r,n){const i=this.indexOf(r);if(i===-1)return;let a=i+n;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(r,n){let i=0;for(const a of this){if(Reflect.apply(r,n,[a,i,this]))return a;i++}}findIndex(r,n){let i=0;for(const a of this){if(Reflect.apply(r,n,[a,i,this]))return i;i++}return-1}filter(r,n){const i=[];let a=0;for(const o of this)Reflect.apply(r,n,[o,a,this])&&i.push(o),a++;return new Tc(i)}map(r,n){const i=[];let a=0;for(const o of this)i.push([o[0],Reflect.apply(r,n,[o,a,this])]),a++;return new Tc(i)}reduce(...r){const[n,i]=r;let a=0,o=i??this.at(0);for(const s of this)a===0&&r.length===1?o=s:o=Reflect.apply(n,this,[o,s,a,this]),a++;return o}reduceRight(...r){const[n,i]=r;let a=i??this.at(-1);for(let o=this.size-1;o>=0;o--){const s=this.at(o);o===this.size-1&&r.length===1?a=s:a=Reflect.apply(n,this,[a,s,o,this])}return a}toSorted(r){const n=[...this.entries()].sort(r);return new Tc(n)}toReversed(){const r=new Tc;for(let n=this.size-1;n>=0;n--){const i=this.keyAt(n),a=this.get(i);r.set(i,a)}return r}toSpliced(...r){const n=[...this.entries()];return n.splice(...r),new Tc(n)}slice(r,n){const i=new Tc;let a=this.size-1;if(r===void 0)return i;r<0&&(r=r+this.size),n!==void 0&&n>0&&(a=n-1);for(let o=r;o<=a;o++){const s=this.keyAt(o),l=this.get(s);i.set(s,l)}return i}every(r,n){let i=0;for(const a of this){if(!Reflect.apply(r,n,[a,i,this]))return!1;i++}return!0}some(r,n){let i=0;for(const a of this){if(Reflect.apply(r,n,[a,i,this]))return!0;
45i++}return!1}},to=new WeakMap,Zo(Tc,"OrderedDict"),Tc);function ZF(t,e){if("at"in Array.prototype)return Array.prototype.at.call(t,e);const r=u0e(t,e);return r===-1?void 0:t[r]}Zo(ZF,"at");function u0e(t,e){const r=t.length,n=nZ(e),i=n>=0?n:r+n;return i<0||i>=r?-1:i}Zo(u0e,"toSafeIndex");function nZ(t){return t!==t||t===0?0:Math.trunc(t)}Zo(nZ,"toSafeInteger");function GQe(t){const e=t+"CollectionProvider",[r,n]=dx(e),[i,a]=r(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Nz,setItemMap:Zo(()=>{},"setItemMap")}),o=Zo(({state:x,...T})=>x?E.jsx(l,{...T,state:x}):E.jsx(s,{...T}),"CollectionProvider");o.displayName=e;const s=Zo(x=>{const T=m();return E.jsx(l,{...x,state:T})},"CollectionInit");s.displayName=e+"Init";const l=Zo(x=>{const{scope:T,children:B,state:R}=x,I=H.useRef(null),[N,F]=H.useState(null),Q=Bs(I,F),[j,W]=R;return H.useEffect(()=>{if(!N)return;const V=d0e(()=>{});return V.observe(N,{childList:!0,subtree:!0}),()=>{V.disconnect()}},[N]),E.jsx(i,{scope:T,itemMap:j,setItemMap:W,collectionRef:Q,collectionRefObject:I,collectionElement:N,children:B})},"CollectionProviderImpl");l.displayName=e+"Impl";const u=t+"CollectionSlot",c=Mb(u),f=H.forwardRef((x,T)=>{const{scope:B,children:R}=x,I=a(u,B),N=Bs(T,I.collectionRef);return E.jsx(c,{ref:N,children:R})});f.displayName=u;const d=t+"CollectionItemSlot",A="data-radix-collection-item",p=Mb(d),g=H.forwardRef((x,T)=>{const{scope:B,children:R,...I}=x,N=H.useRef(null),[F,Q]=H.useState(null),j=Bs(T,N,Q),W=a(d,B),{setItemMap:V}=W,Y=H.useRef(I);c0e(Y.current,I)||(Y.current=I);const G=Y.current;return H.useEffect(()=>{const K=G;return V(X=>F?X.has(F)?X.set(F,{...K,element:F}).toSorted(WK):(X.set(F,{...K,element:F}),X.toSorted(WK)):X),()=>{V(X=>!F||!X.has(F)?X:(X.delete(F),new Nz(X)))}},[F,G,V]),E.jsx(p,{[A]:"",ref:j,children:R})});g.displayName=d;function m(){return H.useState(new Nz)}Zo(m,"useInitCollection");function y(x){const{itemMap:T}=a(t+"CollectionConsumer",x);return T}return Zo(y,"useCollection"),[{Provider:o,Slot:f,ItemSlot:g},{createCollectionScope:n,useCollection:y,useInitCollection:m}]}Zo(GQe,"createCollection");function c0e(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t==null||e==null)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(const i of r)if(!Object.prototype.hasOwnProperty.call(e,i)||t[i]!==e[i])return!1;return!0}Zo(c0e,"shallowEqual");function f0e(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}Zo(f0e,"isElementPreceding");function WK(t,e){return!t[1].element||!e[1].element?0:f0e(t[1].element,e[1].element)?-1:1}Zo(WK,"sortByDocumentPosition");function d0e(t){return new MutationObserver(r=>{for(const n of r)if(n.type==="childList"){t();return}})}Zo(d0e,"getChildListObserver");var KQe=Object.defineProperty,WQe=(t,e)=>KQe(t,"name",{value:e,configurable:!0}),YQe=H.createContext(void 0);function iZ(t){const e=H.useContext(YQe);return t||e||"ltr"}WQe(iZ,"useDirection");var $Qe=Object.defineProperty,ZQe=(t,e)=>$Qe(t,"name",{value:e,configurable:!0});function ag(t){const e=H.useRef(t);return H.useEffect(()=>{e.current=t}),H.useMemo(()=>((...r)=>e.current?.(...r)),[])}ZQe(ag,"useCallbackRef");var XQe=Object.defineProperty,$o=(t,e)=>XQe(t,"name",{value:e,configurable:!0}),YK="dismissableLayer.update",qQe="dismissableLayer.pointerDownOutside",JQe="dismissableLayer.focusOutside",kne,h0e=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eje=H.forwardRef($o(function(e,r){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,f=H.useContext(h0e),[d,A]=H.useState(null),p=d?.ownerDocument??globalThis?.document,[,g]=H.useState({}),m=Bs(r,A),y=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?y.indexOf(b):-1,T=d?y.indexOf(d):-1,B=f.layersWithOutsidePointerEventsDisabled.size>0,R=T>=x,I=H.useRef(!1),N=A0e(W=>{o?.(W),l?.(W),W.defaultPrevented||u?.()},{ownerDocument:p,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:H.useCallback(W=>{if(!(W instanceof Node))return!1;const V=[...f.branches].some(Y=>Y.contains(W));return R&&!V},[f.branches,R])}),F=p0e(W=>
45{if(i&&I.current)return;const V=W.target;[...f.branches].some(G=>G.contains(V))||(s?.(W),l?.(W),W.defaultPrevented||u?.())},p),Q=d?T===y.length-1:!1,j=ag(W=>{W.key==="Escape"&&(a?.(W),!W.defaultPrevented&&u&&(W.preventDefault(),u()))});return H.useEffect(()=>{if(Q)return p.addEventListener("keydown",j,{capture:!0}),()=>p.removeEventListener("keydown",j,{capture:!0})},[p,Q,j]),H.useEffect(()=>{if(d)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(kne=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),$K(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(d),f.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=kne))}},[d,p,n,f]),H.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),$K())},[d,f]),H.useEffect(()=>{const W=$o(()=>g({}),"handleUpdate");return document.addEventListener(YK,W),()=>document.removeEventListener(YK,W)},[]),E.jsx(_g.div,{...c,ref:m,style:{pointerEvents:B?R?"auto":"none":void 0,...e.style},onFocusCapture:wi(e.onFocusCapture,F.onFocusCapture),onBlurCapture:wi(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:wi(e.onPointerDownCapture,N.onPointerDownCapture)})},"DismissableLayer"));function tje(){const t=H.useContext(h0e),[e,r]=H.useState(null);return H.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),r}$o(tje,"useDismissableLayerSurface");var rje=$o(()=>!0,"IS_TRUE");function A0e(t,e){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=rje}=e,s=ag(t),l=H.useRef(!1),u=H.useRef(!1),c=H.useRef(new Map),f=H.useRef(()=>{});return H.useEffect(()=>{function d(){u.current=!1,i.current=!1,c.current.clear()}$o(d,"resetOutsideInteraction");function A(){return Array.from(c.current.values()).some(Boolean)}$o(A,"isOutsideInteractionIntercepted");function p(x){if(!u.current)return;const T=x.target;T instanceof Node&&[...a].some(R=>R.contains(T))||c.current.set(x.type,!0),x.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}$o(p,"handleInteractionCapture");function g(x){u.current&&c.current.set(x.type,!1)}$o(g,"handleInteractionBubble");const m=$o(x=>{if(x.target&&!l.current){let T=function(){r.removeEventListener("click",f.current);const R=A();d(),R||aZ(qQe,s,B,{discrete:!0})};if($o(T,"handleAndDispatchPointerDownOutsideEvent"),!o(x.target)){r.removeEventListener("click",f.current),d(),l.current=!1;return}const B={originalEvent:x};u.current=!0,i.current=n&&x.button===0,c.current.clear(),!n||x.button!==0?T():(r.removeEventListener("click",f.current),f.current=T,r.addEventListener("click",f.current,{once:!0}))}else r.removeEventListener("click",f.current),d();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const x of y)r.addEventListener(x,p,!0),r.addEventListener(x,g);const b=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(b),r.removeEventListener("pointerdown",m),r.removeEventListener("click",f.current);for(const x of y)r.removeEventListener(x,p,!0),r.removeEventListener(x,g)}},[r,s,n,i,a,o]),{onPointerDownCapture:$o(()=>l.current=!0,"onPointerDownCapture")}}$o(A0e,"usePointerDownOutside");function p0e(t,e=globalThis?.document){const r=ag(t),n=H.useRef(!1);return H.useEffect(()=>{const i=$o(a=>{a.target&&!n.current&&aZ(JQe,r,{originalEvent:a},{discrete:!1})},"handleFocus");return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:$o(()=>n.current=!0,"onFocusCapture"),onBlurCapture:$o(()=>n.current=!1,"onBlurCapture")}}$o(p0e,"useFocusOutside");function $K(){const t=new CustomEvent(YK);document.dispatchEvent(t)}$o($K,"dispatchUpdate");function aZ(t,e,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?tZ(i,a):i.dispatchEvent(a)}$o(aZ,"handleAndDispatchCustomEvent");var nje=Object.defineProperty,oZ=(t,e)=>nje(t,"name",{value:e,configurable:!0}),ck=0,dS=null;function ije(t){return sZ(),t.children}oZ(ije,"FocusGuards");function sZ(){H.useEffect(()=>{dS||(dS={start:ZK(),end:ZK()});const{start:t,end:e}=dS;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),ck++,()=>{ck===1&&(dS?.start.remove(),dS?.end.remove(),dS=null),ck=Math.max(0,ck-1)}},[])}oZ(sZ,"useFocusGuards");function ZK(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}oZ(ZK,"createFocusGuard");var aje=Object.defineProperty,tu=(t,e)=>aje(t,"name",{value:e,configurable:!0}),Fz="focusScope.autoFocusOnMount",Uz="focusScope.autoFocusOnUnmount",Nne={bubbles:!1,cancelable:!0},oje=H.forwardRef(tu(function(e,r){const{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=H.useState(null),c=ag(a),f=ag(o),d=H.useRef(null),A=Bs(r,u),p=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(i){let m=function(T){if(p.paused||!l)return;const B=T.target;l.contains(B)?d.current=B:Ev(d.current,{select:!0})},y=function(T){if(p.paused||!l)return;const B=T.relatedTarget;B!==null&&(l.contains(B)||Ev(d.current,{select:!0}))},b=function(T){if(document.activeElement===document.body)for(const R of T)R.removedNodes.length>0&&Ev(l)};tu(m,"handleFocusIn"),tu(y,"handleFocusOut"),tu(b,"handleMutations"),document.addEventListener("focusin",m),document.addEventListener("focusout",y);const x=new MutationObserver(b);return l&&x.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),x.disconnect()}}},[i,l,p.paused]),H.useEffect(()=>{if(l){Fne.add(p);
45const m=document.activeElement;if(!l.contains(m)){const b=new CustomEvent(Fz,Nne);l.addEventListener(Fz,c),l.dispatchEvent(b),b.defaultPrevented||(v0e(_0e(lZ(l)),{select:!0}),document.activeElement===m&&Ev(l))}return()=>{l.removeEventListener(Fz,c),setTimeout(()=>{const b=new CustomEvent(Uz,Nne);l.addEventListener(Uz,f),l.dispatchEvent(b),b.defaultPrevented||Ev(m??document.body,{select:!0}),l.removeEventListener(Uz,f),Fne.remove(p)},0)}}},[l,c,f,p]);const g=H.useCallback(m=>{if(!n&&!i||p.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){const x=m.currentTarget,[T,B]=g0e(x);T&&B?!m.shiftKey&&b===B?(m.preventDefault(),n&&Ev(T,{select:!0})):m.shiftKey&&b===T&&(m.preventDefault(),n&&Ev(B,{select:!0})):b===x&&m.preventDefault()}},[n,i,p.paused]);return E.jsx(_g.div,{tabIndex:-1,...s,ref:A,onKeyDown:g})},"FocusScope"));function v0e(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ev(n,{select:e}),document.activeElement!==r)return}tu(v0e,"focusFirst");function g0e(t){const e=lZ(t),r=XK(e,t),n=XK(e.reverse(),t);return[r,n]}tu(g0e,"getTabbableEdges");function lZ(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:tu(n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)e.push(r.currentNode);return e}tu(lZ,"getTabbableCandidates");function XK(t,e){const r=typeof e.checkVisibility=="function"&&e.checkVisibility({checkVisibilityCSS:!0});for(const n of t)if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):m0e(n,{upTo:e})))return n}tu(XK,"findVisible");function m0e(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}tu(m0e,"isHidden");function y0e(t){return t instanceof HTMLInputElement&&"select"in t}tu(y0e,"isSelectableInput");function Ev(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&y0e(t)&&e&&t.select()}}tu(Ev,"focus");var Fne=w0e();function w0e(){let t=[];return{add(e){const r=t[0];e!==r&&r?.pause(),t=qK(t,e),t.unshift(e)},remove(e){t=qK(t,e),t[0]?.resume()}}}tu(w0e,"createFocusScopesStack");function qK(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}tu(qK,"arrayRemove");function _0e(t){return t.filter(e=>e.tagName!=="A")}tu(_0e,"removeLinks");var sje=Object.defineProperty,lje=(t,e)=>sje(t,"name",{value:e,configurable:!0}),uje=f0[" useId ".trim().toString()]||(()=>{}),cje=0;function m4(t){const[e,r]=H.useState(uje());return sh(()=>{t||r(n=>n??String(cje++))},[t]),t||(e?`radix-${e}`:"")}lje(m4,"useId");const fje=["top","right","bottom","left"],Gy=Math.min,zv=Math.max,y4=Math.round,fk=Math.floor,Vv=t=>({x:t,y:t}),dje={left:"right",right:"left",bottom:"top",top:"bottom"};function b0e(t,e,r){return zv(t,Gy(e,r))}function og(t,e){return typeof t=="function"?t(e):t}function Ky(t){return t.split("-")[0]}function $T(t){return t.split("-")[1]}function uZ(t){return t==="x"?"y":"x"}function cZ(t){return t==="y"?"height":"width"}function IA(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function fZ(t){return uZ(IA(t))}function hje(t,e,r){r===void 0&&(r=!1);const n=$T(t),i=fZ(t),a=cZ(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=w4(o)),[o,w4(o)]}function Aje(t){const e=w4(t);return[JK(t),e,JK(e)]}function JK(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Une=["left","right"],Hne=["right","left"],pje=["top","bottom"],vje=["bottom","top"];function gje(t,e,r){switch(t){case"top":case"bottom":return r?e?Hne:Une:e?Une:Hne;case"left":case"right":return e?pje:vje;default:return[]}}function mje(t,e,r,n){const i=$T(t);let a=gje(Ky(t),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),e&&(a=a.concat(a.map(JK)))),a}function w4(t){const e=Ky(t);return dje[e]+t.slice(e.length)}function yje(t){var e,r,n,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(i=t.left)!=null?i:0}}function x0e(t){return typeof t!="number"?yje(t):{top:t,right:t,bottom:t,left:t}}function _4(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function Qne(t,e,r){let{reference:n,floating:i}=t;const a=IA(e),o=fZ(e),s=cZ(o),l=Ky(e),u=a==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let A;switch(l){case"top":A={x:c,y:n.y-i.height};break;case"bottom":A={x:c,y:n.y+n.height};break;case"right":A={x:n.x+n.width,y:f};break;case"left":A={x:n.x-i.width,y:f};break;default:A={x:n.x,y:n.y}}const p=$T(e);return p&&(A[o]+=d*(p==="end"?1:-1)*(r&&u?-1:1)),A}async function wje(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:A=0}=og(e,t),p=x0e(A),m=s[d?f==="floating"?"reference":"floating":f],y=_4(await a.getClippingRect
vendor: 4,828 bytes, line 45
45({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),T=await(a.isElement==null?void 0:a.isElement(x))&&await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1},B=_4(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:x,strategy:l}):b);return{top:(y.top-B.top+p.top)/T.y,bottom:(B.bottom-y.bottom+p.bottom)/T.y,left:(y.left-B.left+p.left)/T.x,right:(B.right-y.right+p.right)/T.x}}const _je=50,bje=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=o.detectOverflow?o:{...o,detectOverflow:wje},l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:f}=Qne(u,n,l),d=n,A=0;const p={};for(let g=0;g<a.length;g++){const m=a[g];if(!m)continue;const{name:y,fn:b}=m,{x,y:T,data:B,reset:R}=await b({x:c,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:t,floating:e}});c=x??c,f=T??f,p[y]={...p[y],...B},R&&A<_je&&(A++,typeof R=="object"&&(R.placement&&(d=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:c,y:f}=Qne(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}},xje=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=og(t,e)||{};if(u==null)return{};const f=x0e(c),d={x:r,y:n},A=fZ(i),p=cZ(A),g=await o.getDimensions(u),m=A==="y",y=m?"top":"left",b=m?"bottom":"right",x=m?"clientHeight":"clientWidth",T=a.reference[p]+a.reference[A]-d[A]-a.floating[p],B=d[A]-a.reference[A],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let I=R?R[x]:0;(!I||!await(o.isElement==null?void 0:o.isElement(R)))&&(I=s.floating[x]||a.floating[p]);const N=T/2-B/2,F=I/2-g[p]/2-1,Q=Gy(f[y],F),j=Gy(f[b],F),W=I-g[p]-j,V=I/2-g[p]/2+N,Y=b0e(Q,V,W),G=!l.arrow&&$T(i)!=null&&V!==Y&&a.reference[p]/2-(V<Q?Q:j)-g[p]/2<0,K=G?V<Q?V-Q:V-W:0;return{[A]:d[A]+K,data:{[A]:Y,centerOffset:V-Y-K,...G&&{alignmentOffset:K}},reset:G}}}),Sje=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=og(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Ky(i),b=IA(s),x=Ky(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),B=d||(x||!g?[w4(s)]:Aje(s)),R=p!=="none";!d&&R&&B.push(...mje(s,g,p,T));const I=[s,...B],N=await l.detectOverflow(e,m),F=[];let Q=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&F.push(N[y]),f){const Y=hje(i,o,T);F.push(N[Y[0]],N[Y[1]])}if(Q=[...Q,{placement:i,overflows:F}],!F.every(Y=>Y<=0)){var j,W;const Y=(((j=a.flip)==null?void 0:j.index)||0)+1,G=I[Y];if(G&&(!(f==="alignment"?b!==IA(G):!1)||Q.every(q=>IA(q.placement)===b?q.overflows[0]>0:!0)))return{data:{index:Y,overflows:Q},reset:{placement:G}};let K=(W=Q.filter(X=>X.overflows[0]<=0).sort((X,q)=>X.overflows[1]-q.overflows[1])[0])==null?void 0:W.placement;if(!K)switch(A){case"bestFit":{var V;const X=(V=Q.filter(q=>{if(R){const ne=IA(q.placement);return ne===b||ne==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(ne=>ne>0).reduce((ne,te)=>ne+te,0)]).sort((q,ne)=>q[1]-ne[1])[0])==null?void 0:V[0];X&&(K=X);break}case"initialPlacement":K=s;break}if(i!==K)return{reset:{placement:K}}}return{}}}};function jne(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function zne(t){return fje.some(e=>t[e]>=0)}const Cje=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:i="referenceHidden",...a}=og(t,e);switch(i){case"referenceHidden":{const o=await n.detectOverflow(e,{...a,elementContext:"reference"}),s=jne(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:zne(s)}}}case"escaped":{const o=await n.detectOverflow(e,{...a,altBoundary:!0}),s=jne(o,r.floating);return{data:{escapedOffsets:s,escaped:zne(s)}}}default:return{}}}}},S0e=new Set(["left","top"]);async function Tje(t,e){const{placement:r,platform:n,elements:i}=t,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Ky(r),s=$T(r),l=IA(r)==="y",u=S0e.has(o)?-1:1,c=a&&l?-1:1,f=og(e,t);let{mainAxis:d,crossAxis:A,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}
45:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(A=s==="end"?p*-1:p),l?{x:A*c,y:d*u}:{x:d*u,y:A*c}}const Eje=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=e,l=await Tje(e,t);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},Bje=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i,platform:a}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x,y:T}=b;return{x,y:T}}},...u}=og(t,e),c={x:r,y:n},f=await a.detectOverflow(e,u),d=IA(i),A=uZ(d);let p=c[A],g=c[d];const m=(b,x)=>b0e(x+f[b==="y"?"top":"left"],x,x-f[b==="y"?"bottom":"right"]);o&&(p=m(A,p)),s&&(g=m(d,g));const y=l.fn({...e,[A]:p,[d]:g});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[A]:o,[d]:s}}}}}},Dje=function(t){return t===void 0&&(t={}),{options:t,fn(e){var r,n;const{x:i,y:a,placement:o,rects:s,middlewareData:l}=e,{offset:u=0,mainAxis:c=!0,crossAxis:f=!0}=og(t,e),d={x:i,y:a},A=IA(o),p=uZ(A);let g=d[p],m=d[A];const y=og(u,e),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(r=y.mainAxis)!=null?r:0,crossAxis:(n=y.crossAxis)!=null?n:0};if(c){const B=p==="y"?"height":"width",R=s.reference[p]-s.floating[B]+b.mainAxis,I=s.reference[p]+s.reference[B]-b.mainAxis;g<R?g=R:g>I&&(g=I)}if(f){var x,T;const B=p==="y"?"width":"height",R=S0e.has(Ky(o)),I=s.reference[A]-s.floating[B]+(R&&((x=l.offset)==null?void 0:x[A])||0)+(R?0:b.crossAxis),N=s.reference[A]+s.reference[B]+(R?0:((T=l.offset)==null?void 0:T[A])||0)-(R?b.crossAxis:0);m<I?m=I:m>N&&(m=N)}return{[p]:g,[A]:m}}}},Mje=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:i,elements:a}=e,{apply:o=()=>{},...s}=og(t,e),l=await i.detectOverflow(e,s),u=Ky(r),c=$T(r),f=IA(r)==="y",{width:d,height:A}=n.floating;let p,g;u==="top"||u==="bottom"?(p=u,g=c===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=u,p=c==="end"?"top":"bottom");const m=A-l.top-l.bottom,y=d-l.left-l.right,b=Gy(A-l[p],m),x=Gy(d-l[g],y),T=e.middlewareData.shift,B=!T;let R=b,I=x;T!=null&&T.enabled.x&&(I=y),T!=null&&T.enabled.y&&(R=m),B&&!c&&(f?I=d-2*zv(l.left,l.right):R=A-2*zv(l.top,l.bottom)),await o({...e,availableWidth:I,availableHeight:R});const N=await i.getDimensions(a.floating);return d!==N.width||A!==N.height?{reset:{rects:!0}}:{}}}};function i5(){return typeof window<"u"}function ZT(t){return C0e(t)?(t.nodeName||"").toLowerCase():"#document"}function qu(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bg(t){var e;return(e=(C0e(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function C0e(t){return i5()?t instanceof Node||t instanceof qu(t).Node:!1}function Zu(t){return i5()?t instanceof Element||t instanceof qu(t).Element:!1}function v0(t){return i5()?t instanceof HTMLElement||t instanceof qu(t).HTMLElement:!1}function Vne(t){return!i5()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof qu(t).ShadowRoot}function a5(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=ph(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function Lje(t){return/^(table|td|th)$/.test(ZT(t))}function o5(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Rje=/transform|translate|scale|rotate|perspective|filter/,Ije=/paint|layout|strict|content/,Ow=t=>!!t&&t!=="none";let Hz;function dZ(t){const e=Zu(t)?ph(t):t;return Ow(e.transform)||Ow(e.translate)||Ow(e.scale)||Ow(e.rotate)||Ow(e.perspective)||!hZ()&&(Ow(e.backdropFilter)||Ow(e.filter))||Rje.test(e.willChange||"")||Ije.test(e.contain||"")}function Oje(t){let e=Lb(t);for(;v0(e)&&!OL(e);){if(dZ(e))return e;if(o5(e))return null;e=Lb(e)}return null}function hZ(){return Hz==null&&(Hz=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Hz}function OL(t){return/^(html|body|#document)$/.test(ZT(t))}function ph(t){return qu(t).getComputedStyle(t)}function s5(t){return Zu(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}
45function Lb(t){if(ZT(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vne(t)&&t.host||bg(t);return Vne(e)?e.host:e}function T0e(t){const e=Lb(t);return OL(e)?(t.ownerDocument||t).body:v0(e)&&a5(e)?e:T0e(e)}function PL(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=T0e(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),o=qu(i);if(a){const s=e9(o);return e.concat(o,o.visualViewport||[],a5(i)?i:[],s&&r?PL(s):[])}else return e.concat(i,PL(i,[],r))}function e9(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function E0e(t){const e=ph(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=v0(t),a=i?t.offsetWidth:r,o=i?t.offsetHeight:n,s=y4(r)!==a||y4(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function AZ(t){return Zu(t)?t:t.contextElement}function UC(t){const e=AZ(t);if(!v0(e))return Vv(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:a}=E0e(e);let o=(a?y4(r.width):r.width)/n,s=(a?y4(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Pje=Vv(0);function B0e(t){const e=qu(t);
45return!hZ()||!e.visualViewport?Pje:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function kje(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===qu(t)}function Rb(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),a=AZ(t);let o=Vv(1);e&&(n?Zu(n)&&(o=UC(n)):o=UC(t));const s=kje(a,r,n)?B0e(a):Vv(0);let l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a&&n){const d=qu(a),A=Zu(n)?qu(n):n;let p=d,g=e9(p);for(;g&&A!==p;){const m=UC(g),y=g.getBoundingClientRect(),b=ph(g),x=y.left+(g.clientLeft+parseFloat(b.paddingLeft))*m.x,T=y.top+(g.clientTop+parseFloat(b.paddingTop))*m.y;l*=m.x,u*=m.y,c*=m.x,f*=m.y,l+=x,u+=T,p=qu(g),g=e9(p)}}return _4({width:c,height:f,x:l,y:u})}function l5(t,e){const r=s5(t).scrollLeft;return e?e.left+r:Rb(bg(t)).left+r}function D0e(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-l5(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function Nje(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const a=i==="fixed",o=bg(n),s=e?o5(e.floating):!1;if(n===o||s&&a)return r;let l={scrollLeft:0,scrollTop:0},u=Vv(1);const c=Vv(0),f=v0(n);if((f||!a)&&((ZT(n)!=="body"||a5(o))&&(l=s5(n)),f)){const A=Rb(n);u=UC(n),c.x=A.x+n.clientLeft,c.y=A.y+n.clientTop}const d=o&&!f&&!a?D0e(o,l):Vv(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:r.y*u.y-l.scrollTop*u.y+c.y+d.y}}function Fje(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Uje(t){const e=s5(t),r=t.ownerDocument.body,n=zv(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=zv(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+l5(t);const o=-e.scrollTop;return ph(r).direction==="rtl"&&(a+=zv(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:o}}const Hje=25;function Qje(t,e,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",i=qu(t),a=bg(t),o=i.visualViewport;let s=a.clientWidth,l=a.clientHeight,u=0,c=0;if(o){const d=!hZ()||e==="fixed";n?d||(u=-o.offsetLeft,c=-o.offsetTop):(s=o.width,l=o.height,d&&(u=o.offsetLeft,c=o.offsetTop))}if(l5(a)<=0){const d=a.ownerDocument,A=d.body,p=getComputedStyle(A),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(a.clientWidth-A.clientWidth-g),y=getComputedStyle(a).scrollbarGutter==="stable both-edges"?m/2:m;y<=Hje&&(s-=y)}return{width:s,height:l,x:u,y:c}}function jje(t,e){const r=Rb(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=UC(t),o=t.clientWidth*a.x,s=t.clientHeight*a.y,l=i*a.x,u=n*a.y;return{width:o,height:s,x:l,y:u}}function Gne(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=Qje(t,r,e);else if(e==="document")n=Uje(bg(t));else if(Zu(e))n=jje(e,r);else{const i=B0e(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return _4(n)}function zje(t,e){const r=e.get(t);if(r)return r;let n=PL(t,[],!1).filter(s=>Zu(s)&&ZT(s)!=="body"),i=null;const a=ph(t).position==="fixed";let o=a?Lb(t):t;for(;Zu(o)&&!OL(o);){const s=ph(o),l=dZ(o),u=i?i.position:a?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&s.position==="static")?n=n.filter(f=>f!==o):i=s,o=Lb(o)}return e.set(t,n),n}function Vje(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?o5(e)?[]:zje(e,this._c):[].concat(r),n],s=Gne(e,o[0],i);let l=s.top,u=s.right,c=s.bottom,f=s.left;for(let d=1;d<o.length;d++){const A=Gne(e,o[d],i);l=zv(A.top,l),u=Gy(A.right,u),c=Gy(A.bottom,c),f=zv(A.left,f)}return{width:u-f,height:c-l,x:f,y:l}}function Gje(t){const{width:e,height:r}=E0e(t);return{width:e,height:r}}function Kje(t,e,r){const n=v0(e),i=bg(e),a=r==="fixed",o=Rb(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const l=Vv(0);if((n||!a)&&((ZT(e)!=="body"||a5(i))&&(s=s5(e)),n)){const d=Rb(e,!0,a,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}!n&&i&&(l.x=l5(i));const u=i&&!n&&!a?D0e(i,s):Vv(0),c=o.left+s.scrollLeft-l.x-u.x,f=o.top+s.scrollTop-l.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function Qz(t){return ph(t).position==="static"}function Kne(t,e){if(!v0(t)||ph(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return bg(t)===r&&(r=r.ownerDocument.body),r}function M0e(t,e){const r=qu(t);if(o5(t))return r;if(!v0(t)){let i=Lb(t);for(;i&&!OL(i);){if(Zu(i)&&!Qz(i))return i;i=Lb(i)}return r}let n=Kne(t,e);for(;n&&Lje(n)&&Qz(n);)n=Kne(n,e);return n&&OL(n)&&Qz(n)&&!dZ(n)?r:n||Oje(t)||r}const Wje=async function(t){const e=this.getOffsetParent||M0e,r=this.getDimensions,n=await r(t.floating);return{reference:Kje(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Yje(t){return ph(t).direction==="rtl"}const $je={convertOffsetParentRelativeRectToViewportRelativeRect:Nje,getDocumentElement:bg,getClippingRect:Vje,getOffsetParent:M0e,getElementRects:Wje,getClientRects:Fje,getDimensions:Gje,getScale:UC,isElement:Zu,isRTL:Yje};function L0e(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Zje(t,e,r){let n=null,i;const a=bg(t);function o(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();const d=t.getBoundingClientRect(),{left:A,top:p,width:g,height:m}=d;
vendor: 4,107 bytes, line 45
45if(c||e(),!g||!m)return;const y=fk(p),b=fk(a.clientWidth-(A+g)),x=fk(a.clientHeight-(p+m)),T=fk(A),R={rootMargin:-y+"px "+-b+"px "+-x+"px "+-T+"px",threshold:zv(0,Gy(1,f))||1};let I=!0;function N(F){const Q=F[0].intersectionRatio;if(!L0e(d,t.getBoundingClientRect()))return s();if(Q!==f){if(!I)return s();Q?s(!1,Q):i=setTimeout(()=>{s(!1,1e-7)},1e3)}I=!1}try{n=new IntersectionObserver(N,{...R,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,R)}n.observe(t)}const l=qu(t),u=()=>s(r);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),o()}}function R0e(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=AZ(t),c=i||a?[...u?PL(u):[],...e?PL(e):[]]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r),a&&y.addEventListener("resize",r)});const f=u&&s?Zje(u,r,a):null;let d=-1,A=null;o&&(A=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&A&&e&&(A.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=A)==null||x.observe(e)})),r()}),u&&!l&&A.observe(u),e&&A.observe(e));let p,g=l?Rb(t):null;l&&m();function m(){const y=Rb(t);g&&!L0e(g,y)&&r(),g=y,p=requestAnimationFrame(m)}return r(),()=>{var y;c.forEach(b=>{i&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),f?.(),(y=A)==null||y.disconnect(),A=null,l&&cancelAnimationFrame(p)}}const Xje=Eje,qje=Bje,Jje=Sje,eze=Mje,tze=Cje,Wne=xje,rze=Dje,nze=(t,e,r)=>{const n=new Map,i=r??{},a={...$je,...i.platform,_c:n};return bje(t,e,{...i,platform:a})};var ize=typeof document<"u",aze=function(){},XF=ize?H.useLayoutEffect:aze;function b4(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!b4(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&t.$$typeof)&&!b4(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function I0e(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Yne(t,e){const r=I0e(t);return Math.round(e*r)/r}function jz(t){const e=H.useRef(t);return XF(()=>{e.current=t}),e}function O0e(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=t,[c,f]=H.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,A]=H.useState(n);b4(d,n)||A(n);const[p,g]=H.useState(null),[m,y]=H.useState(null),b=H.useCallback(q=>{q!==R.current&&(R.current=q,g(q))},[]),x=H.useCallback(q=>{q!==I.current&&(I.current=q,y(q))},[]),T=a||p,B=o||m,R=H.useRef(null),I=H.useRef(null),N=H.useRef(c),F=l!=null,Q=jz(l),j=jz(i),W=jz(u),V=H.useCallback(()=>{if(!R.current||!I.current)return;const q={placement:e,strategy:r,middleware:d};j.current&&(q.platform=j.current),nze(R.current,I.current,q).then(ne=>{const te={...ne,isPositioned:W.current!==!1};Y.current&&!b4(N.current,te)&&(N.current=te,ux.flushSync(()=>{f(te)}))})},[d,e,r,j,W]);XF(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(q=>({...q,isPositioned:!1})))},[u]);const Y=H.useRef(!1);XF(()=>(Y.current=!0,()=>{Y.current=!1}),[]),XF(()=>{if(T&&(R.current=T),B&&(I.current=B),T&&B){if(Q.current)return Q.current(T,B,V);V()}},[T,B,V,Q,F]);const G=H.useMemo(()=>({reference:R,floating:I,setReference:b,setFloating:x}),[b,x]),K=H.useMemo(()=>({reference:T,floating:B}),[T,B]),X=H.useMemo(()=>{const q={position:r,left:0,top:0};if(!K.floating)return q;const ne=Yne(K.floating,c.x),te=Yne(K.floating,c.y);return s?{...q,transform:"translate("+ne+"px, "+te+"px)",...I0e(K.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ne,top:te}},[r,s,K.floating,c.x,c.y]);return H.useMemo(()=>({...c,update:V,refs:G,elements:K,floatingStyles:X}
45),[c,V,G,K,X])}const oze=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Wne({element:n.current,padding:i}).fn(r):{}:n?Wne({element:n,padding:i}).fn(r):{}}}},P0e=(t,e)=>{const r=Xje(t);return{name:r.name,fn:r.fn,options:[t,e]}},sze=(t,e)=>{const r=qje(t);return{name:r.name,fn:r.fn,options:[t,e]}},lze=(t,e)=>({fn:rze(t).fn,options:[t,e]}),k0e=(t,e)=>{const r=Jje(t);return{name:r.name,fn:r.fn,options:[t,e]}},uze=(t,e)=>{const r=eze(t);return{name:r.name,fn:r.fn,options:[t,e]}},cze=(t,e)=>{const r=tze(t);return{name:r.name,fn:r.fn,options:[t,e]}},N0e=(t,e)=>{const r=oze(t);return{name:r.name,fn:r.fn,options:[t,e]}};var fze=Object.defineProperty,dze=(t,e)=>fze(t,"name",{value:e,configurable:!0});function F0e(t){const[e,r]=H.useState(void 0);return sh(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=t.offsetWidth,s=t.offsetHeight;r({width:o,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}dze(F0e,"useSize");var hze=Object.defineProperty,Ey=(t,e)=>hze(t,"name",{value:e,configurable:!0}),U0e="Popper",[H0e,Q0e]=dx(U0e),[Aze,j0e]=H0e(U0e),pze=Ey(t=>{const{__scopePopper:e,children:r}=t,[n,i]=H.useState(null),[a,o]=H.useState(void 0);return E.jsx(Aze,{scope:e,anchor:n,onAnchorChange:i,placementState:a,setPlacementState:o,children:r})},"Popper"),vze="PopperAnchor",gze=H.forwardRef(Ey(function(e,r){const{__scopePopper:n,virtualRef:i,...a}=e,o=j0e(vze,n),s=H.useRef(null),l=o.onAnchorChange,u=H.useCallback(g=>{s.current=g,g&&l(g)},[l]),c=Bs(r,u),f=H.useRef(null);H.useEffect(()=>{if(!i)return;const g=f.current;f.current=i.current,g!==f.current&&l(f.current)});const d=o.placementState&&u5(o.placementState),A=d?.[0],p=d?.[1];return i?null:E.jsx(_g.div,{"data-radix-popper-side":A,"data-radix-popper-align":p,...a,ref:c})},"PopperAnchor")),z0e="PopperContent",[mze,AFt]=H0e(z0e),yze=H.forwardRef(Ey(function(e,r){const{__scopePopper:n,side:i="bottom",sideOffset:a=0,align:o="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:A=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,y=j0e(z0e,n),[b,x]=H.useState(null),T=Bs(r,x),[B,R]=H.useState(null),I=F0e(B),N=I?.width??0,F=I?.height??0,Q=i+(o!=="center"?"-"+o:""),j=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},W=Array.isArray(c)?c:[c],V=W.length>0,Y={padding:j,boundary:W.filter(V0e),altBoundary:V},{refs:G,floatingStyles:K,placement:X,isPositioned:q,middlewareData:ne}=O0e({strategy:"fixed",placement:Q,whileElementsMounted:Ey((...be)=>R0e(...be,{animationFrame:p==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[P0e({mainAxis:a+F,alignmentAxis:s}),u&&sze({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?lze():void 0,...Y}),u&&k0e({...Y}),uze({...Y,apply:Ey(({elements:be,rects:Ve,availableWidth:Re,availableHeight:Se})=>{const{width:nt,height:qe}=Ve.reference,tt=be.floating.style;tt.setProperty("--radix-popper-available-width",`${Re}px`),tt.setProperty("--radix-popper-available-height",`${Se}px`),tt.setProperty("--radix-popper-anchor-width",`${nt}px`),tt.setProperty("--radix-popper-anchor-height",`${qe}px`)},"apply")}),B&&N0e({element:B,padding:l}),wze({arrowWidth:N,arrowHeight:F}),A&&cze({strategy:"referenceHidden",...Y,boundary:V?Y.boundary:void 0})]}),te=y.setPlacementState;sh(()=>(te(X),()=>{te(void 0)}),[X,te]);const[ce,he]=u5(X),ve=ag(g);sh(()=>{q&&ve?.()},[q,ve]);const ae=ne.arrow?.x,fe=ne.arrow?.y,we=ne.arrow?.centerOffset!==0,[Me,ge]=H.useState();return sh(()=>{b&&ge(window.getComputedStyle(b).zIndex)},[b]),E.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:q?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[ne.transformOrigin?.x,ne.transformOrigin?.y].join(" "),...ne.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(mze,{scope:n,placedSide:ce,placedAlign:he,onArrowChange:R,arrowX:ae,arrowY:fe,shouldHideArrow:we,children:E.jsx(_g.div,{"data-side":ce,"data-align":he,...m,ref:T,style:{...m.style,animation:q?m.style?.animation:"none"}})})})},"PopperContent"));function V0e(t){return t!==null}Ey(V0e,"isNotNull");var wze=Ey(t=>({name:"transformOrigin",options:t,fn(e){const{placement:r,rects:n,middlewareData:i}=e,o=i.arrow?.centerOffset!==0,s=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[u,c]=u5(r),f={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+s/2,A=(i.arrow?.y??0)+l/2;let p="",g="";return u==="bottom"?(p=o?f:`${d}px`,g=`${-l}px`):u==="top"?(p=o?f:`${d}px`,g=`${n.floating.height+l}px`):u==="right"?(p=`${-l}px`,g=o?f:`${A}px`):u==="left"&&(p=`${n.floating.width+l}px`,g=o?f:`${A}px`),{data:{x:p,y:g}}}}),"transformOrigin");function u5(t){const[e,r="center"]=t.split("-");return[e,r]}Ey(u5,"getSideAndAlignFromPlacement");var _ze=pze,bze=gze,xze=yze,Sze=Object.defineProperty,Cze=(t,e)=>Sze(t,"name",{value:e,configurable:!0}),Tze=H.forwardRef(Cze(function(e,r){const{container:n,...i}=e,[a,o]=H.useState(!1);sh(()=>o(!0),[]);const s=n||a&&globalThis?.document?.body;return s?ux.createPortal(E.jsx(_g.div,{...i,ref:r}),s):null},"Portal")),Eze=Object.defineProperty,sg=(t,e)=>Eze(t,"name",{value:e,configurable:!0});function G0e(t,e){return H.useReducer((r,n)=>e[r][n]??r,t)}sg(G0e,"useStateMachine");var K0e=sg(t=>{const{present:e,children:r}=t,n=W0e(e),i=typeof r=="function"?r({present:n.isPresent}):H.Children.only(r),a=Y0e(n.ref,$0e(i));return typeof r=="function"||n.isPresent?H.cloneElement(i,{ref:a}):null},"Presence");function W0e(t){const[e,r]=H.useState(),n=H.useRef(null),i=H.useRef(t),a=H.useRef("none"),o=
45H.useRef(void 0),s=t?"mounted":"unmounted",[l,u]=G0e(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H.useEffect(()=>{l==="mounted"?(a.current=o.current??aC(n.current),o.current=void 0):a.current="none"},[l]),sh(()=>{const c=n.current,f=i.current;if(f!==t){const A=a.current,p=aC(c);t?(o.current=p,u("MOUNT")):p==="none"||c?.display==="none"?u("UNMOUNT"):u(f&&A!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,u]),sh(()=>{if(e){let c;const f=e.ownerDocument.defaultView??window,d=sg(p=>{const m=aC(n.current).includes(CSS.escape(p.animationName));if(p.target===e&&m&&(u("ANIMATION_END"),!i.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",c=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},"handleAnimationEnd"),A=sg(p=>{p.target===e&&(a.current=aC(n.current))},"handleAnimationStart");return e.addEventListener("animationstart",A),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{f.clearTimeout(c),e.removeEventListener("animationstart",A),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:H.useCallback(c=>{if(c){const f=getComputedStyle(c);n.current=f,o.current=aC(f)}else n.current=null;r(c)},[])}}sg(W0e,"usePresence");function t9(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}sg(t9,"setRef");function Y0e(...t){const e=H.useRef(t);return e.current=t,H.useCallback(r=>{const n=e.current;let i=!1;const a=n.map(o=>{const s=t9(o,r);return!i&&typeof s=="function"&&(i=!0),s});if(i)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():t9(n[o],null)}}},[])}sg(Y0e,"useStableComposedRefs");function aC(t){return t?.animationName||"none"}sg(aC,"getAnimationName");function $0e(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}sg($0e,"getElementRef");var Bze=Object.defineProperty,pZ=(t,e)=>Bze(t,"name",{value:e,configurable:!0}),zz=!1;function Z0e(){const[t,e]=H.useState(zz);return H.useEffect(()=>{zz||(zz=!0,e(!0))},[]),t}pZ(Z0e,"useIsHydrated");var X0e=f0[" useSyncExternalStore ".trim().toString()];function q0e(){return()=>{}}pZ(q0e,"subscribe");function J0e(){return X0e(q0e,()=>!0,()=>!1)}pZ(J0e,"useIsHydratedModern");var Dze=typeof X0e=="function"?J0e:Z0e,Mze=Object.defineProperty,hx=(t,e)=>Mze(t,"name",{value:e,configurable:!0}),Vz="rovingFocusGroup.onEntryFocus",Lze={bubbles:!1,cancelable:!0},c5="RovingFocusGroup",[r9,ewe,Rze]=rZ(c5),[Ize,twe]=dx(c5,[Rze]),[Oze,Pze]=Ize(c5),kze=H.forwardRef(hx(function(e,r){return E.jsx(r9.Provider,{scope:e.__scopeRovingFocusGroup,children:E.jsx(r9.Slot,{scope:e.__scopeRovingFocusGroup,children:E.jsx(Nze,{...e,ref:r})})})},"RovingFocusGroup")),Nze=H.forwardRef(hx(function(e,r){const{__scopeRovingFocusGroup:n,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...d}=e,A=H.useRef(null),p=Bs(r,A),g=iZ(o),[m,y]=eZ({prop:s,defaultProp:l??null,onChange:u,caller:c5}),[b,x]=H.useState(!1),T=ag(c),B=ewe(n),R=H.useRef(!1),[I,N]=H.useState(0);return H.useEffect(()=>{const F=A.current;if(F)return F.addEventListener(Vz,T),()=>F.removeEventListener(Vz,T)},[T]),E.jsx(Oze,{scope:n,orientation:i,dir:g,loop:a,currentTabStopId:m,onItemFocus:H.useCallback(F=>y(F),[y]),onItemShiftTab:H.useCallback(()=>x(!0),[]),onFocusableItemAdd:H.useCallback(()=>N(F=>F+1),[]),onFocusableItemRemove:H.useCallback(()=>N(F=>F-1),[]),children:E.jsx(_g.div,{tabIndex:b||I===0?-1:0,"data-orientation":i,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:wi(e.onMouseDown,()=>{R.current=!0}),onFocus:wi(e.onFocus,F=>{const Q=!R.current;if(F.target===F.currentTarget&&Q&&!b){const j=new CustomEvent(Vz,Lze);if(F.currentTarget.dispatchEvent(j),!j.defaultPrevented){const W=B().filter(X=>X.focusable),V=W.find(X=>X.active),Y=W.find(X=>
45X.id===m),K=[V,Y,...W].filter(Boolean).map(X=>X.ref.current);vZ(K,f)}}R.current=!1}),onBlur:wi(e.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),Fze="RovingFocusGroupItem",Uze=H.forwardRef(hx(function(e,r){const{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...l}=e,u=m4(),c=o||u,f=Pze(Fze,n),d=f.currentTabStopId===c,A=ewe(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:m}=f,y=Dze();return sh(()=>{if(!(!y||!i))return p(),()=>g()},[y,i,p,g]),H.useEffect(()=>{if(!(y||!i))return p(),()=>g()},[y,i,p,g]),E.jsx(r9.ItemSlot,{scope:n,id:c,focusable:i,active:a,children:E.jsx(_g.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...l,ref:r,onMouseDown:wi(e.onMouseDown,b=>{i?f.onItemFocus(c):b.preventDefault()}),onFocus:wi(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:wi(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=nwe(b,f.orientation,f.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let B=A().filter(R=>R.focusable).map(R=>R.ref.current);if(x==="last")B.reverse();else if(x==="prev"||x==="next"){x==="prev"&&B.reverse();const R=B.indexOf(b.currentTarget);B=f.loop?iwe(B,R+1):B.slice(R+1)}setTimeout(()=>vZ(B))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:m!=null}):s})})},"RovingFocusGroupItem")),Hze={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rwe(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}hx(rwe,"getDirectionAwareKey");function nwe(t,e,r){const n=rwe(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Hze[n]}hx(nwe,"getFocusIntent");function vZ(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}hx(vZ,"focusFirst");function iwe(t,e){return t.map((r,n)=>t[(e+n)%t.length])}hx(iwe,"wrapArray");var Qze=kze,jze=Uze,zze=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},hS=new WeakMap,dk=new WeakMap,hk={},Gz=0,awe=function(t){return t&&(t.host||awe(t.parentNode))},Vze=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=awe(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},Gze=function(t,e,r,n){var i=Vze(e,Array.isArray(t)?t:[t]);hk[r]||(hk[r]=new WeakMap);var a=hk[r],o=[],s=new Set,l=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))c(d);else try{var A=d.getAttribute(n),p=A!==null&&A!=="false",g=(hS.get(d)||0)+1,m=(a.get(d)||0)+1;hS.set(d,g),a.set(d,m),o.push(d),g===1&&p&&dk.set(d,!0),m===1&&d.setAttribute(r,"true"),p||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return c(e),s.clear(),Gz++,function(){o.forEach(function(f){var d=hS.get(f)-1,A=a.get(f)-1;hS.set(f,d),a.set(f,A),d||(dk.has(f)||f.removeAttribute(n),dk.delete(f)),A||f.removeAttribute(r)}),Gz--,Gz||(hS=new WeakMap,hS=new WeakMap,dk=new WeakMap,hk={})}},Kze=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=zze(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),Gze(n,i,r,"aria-hidden")):function(){return null}},n9=function(t,e){return n9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},n9(t,e)};function owe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n9(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Bc=function(){return Bc=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Bc.apply(this,arguments)};function gZ(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function $ne(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(t,e||[])).next())})}function Zne(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Wze(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}var qF="right-scroll-bar-position",JF="width-before-scroll-bar",Yze="with-scroll-bars-hidden",$ze="--removed-body-scroll-bar-size";function Kz(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}
vendor: 4,695 bytes, lines 45-60
45function Zze(t,e){var r=H.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=e,r.facade}var Xze=typeof window<"u"?H.useLayoutEffect:H.useEffect,Xne=new WeakMap;function qze(t,e){var r=Zze(null,function(n){return t.forEach(function(i){return Kz(i,n)})});return Xze(function(){var n=Xne.get(r);if(n){var i=new Set(n),a=new Set(t),o=r.current;i.forEach(function(s){a.has(s)||Kz(s,null)}),a.forEach(function(s){i.has(s)||Kz(s,o)})}Xne.set(r,t)},[t]),r}function Jze(t){return t}function eVe(t,e){e===void 0&&(e=Jze);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(a){var o=e(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var l=function(){var c=o;o=[],c.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),r}}}};return i}function tVe(t){t===void 0&&(t={});var e=eVe(null);return e.options=Bc({async:!0,ssr:!1},t),e}var swe=function(t){var e=t.sideCar,r=gZ(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return H.createElement(n,Bc({},r))};swe.isSideCarExport=!0;function rVe(t,e){return t.useMedium(e),swe}var lwe=tVe(),Wz=function(){},f5=H.forwardRef(function(t,e){var r=H.useRef(null),n=H.useState({onScrollCapture:Wz,onWheelCapture:Wz,onTouchMoveCapture:Wz}),i=n[0],a=n[1],o=t.forwardProps,s=t.children,l=t.className,u=t.removeScrollBar,c=t.enabled,f=t.shards,d=t.sideCar,A=t.noRelative,p=t.noIsolation,g=t.inert,m=t.allowPinchZoom,y=t.as,b=y===void 0?"div":y,x=t.gapMode,T=gZ(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=d,R=qze([r,e]),I=Bc(Bc({},T),i);return H.createElement(H.Fragment,null,c&&H.createElement(B,{sideCar:lwe,removeScrollBar:u,shards:f,noRelative:A,noIsolation:p,inert:g,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:x}),o?H.cloneElement(H.Children.only(s),Bc(Bc({},I),{ref:R})):H.createElement(b,Bc({},I,{className:l,ref:R}),s))});f5.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};f5.classNames={fullWidth:JF,zeroRight:qF};var nVe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iVe(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=nVe();return e&&t.setAttribute("nonce",e),t}function aVe(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function oVe(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var sVe=function(){var t=0,e=null;return{add:function(r){t==0&&(e=iVe())&&(aVe(e,r),oVe(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},lVe=function(){var t=sVe();return function(e,r){H.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},uwe=function(){var t=lVe(),e=function(r){var n=r.styles,i=r.dynamic;return t(n,i),null};return e},uVe={left:0,top:0,right:0,gap:0},Yz=function(t){return parseInt(t||"",10)||0},cVe=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[Yz(r),Yz(n),Yz(i)]},fVe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return uVe;var e=cVe(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},dVe=uwe(),HC="data-scroll-locked",hVe=function(t,e,r,n){var i=t.left,a=t.top,o=t.right,s=t.gap;return r===void 0&&(r="margin"),`
46  .`.concat(Yze,` {
47   overflow: hidden `).concat(n,`;
48   padding-right: `).concat(s,"px ").concat(n,`;
49  }
50  body[`).concat(HC,`] {
51    overflow: hidden `).concat(n,`;
52    overscroll-behavior: contain;
53    `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
54    padding-left: `.concat(i,`px;
55    padding-top: `).concat(a,`px;
56    padding-right: `).concat(o,`px;
57    margin-left:0;
58    margin-top:0;
59    margin-right: `).concat(s,"px ").concat(n,`;
60    `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";
60")].filter(Boolean).join(""),`
61  }
62  
63  .`).concat(qF,` {
64    right: `).concat(s,"px ").concat(n,`;
65  }
66  
67  .`).concat(JF,` {
68    margin-right: `).concat(s,"px ").concat(n,`;
69  }
70  
71  .`).concat(qF," .").concat(qF,` {
72    right: 0 `).concat(n,`;
73  }
74  
75  .`).concat(JF," .").concat(JF,` {
76    margin-right: 0 `).concat(n,`;
77  }
78  
79  body[`).concat(HC,`] {
80    `).concat($ze,": ").concat(s,`px;
81  }
82`)},qne=function(){var t=parseInt(document.body.getAttribute(HC)||"0",10);return isFinite(t)?t:0},AVe=function(){H.useEffect(function(){return document.body.setAttribute(HC,(qne()+1).toString()),function(){var t=qne()-1;t<=0?document.body.removeAttribute(HC):document.body.setAttribute(HC,t.toString())}},[])},pVe=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;AVe();var a=H.useMemo(function(){return fVe(i)},[i]);return H.createElement(dVe,{styles:hVe(a,!e,i,r?"":"!important")})},i9=!1;if(typeof window<"u")try{var Ak=Object.defineProperty({},"passive",{get:function(){return i9=!0,!0}});window.addEventListener("test",Ak,Ak),window.removeEventListener("test",Ak,Ak)}catch{i9=!1}var AS=i9?{passive:!1}:!1,vVe=function(t){return t.tagName==="TEXTAREA"},cwe=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!vVe(t)&&r[e]==="visible")},gVe=function(t){return cwe(t,"overflowY")},mVe=function(t){return cwe(t,"overflowX")},Jne=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=fwe(t,n);if(i){var a=dwe(t,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},yVe=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},wVe=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},fwe=function(t,e){return t==="v"?gVe(e):mVe(e)},dwe=function(t,e){return t==="v"?yVe(e):wVe(e)},_Ve=function(t,e){return t==="h"&&e==="rtl"?-1:1},bVe=function(t,e,r,n,i){var a=_Ve(t,window.getComputedStyle(e).direction),o=a*n,s=r.target,l=e.contains(s),u=!1,c=o>0,f=0,d=0;do{if(!s)break;var A=dwe(t,s),p=A[0],g=A[1],m=A[2],y=g-m-a*p;(p||y)&&fwe(t,s)&&(f+=y,d+=p);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&s!==document.body||l&&(e.contains(s)||e===s));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},pk=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},eie=function(t){return[t.deltaX,t.deltaY]},tie=function(t){return t&&"current"in t?t.current:t},xVe=function(t,e){return t[0]===e[0]&&t[1]===e[1]},SVe=function(t){return`
83  .block-interactivity-`.concat(t,` {pointer-events: none;}
84  .allow-interactivity-`).concat(t,` {pointer-events: all;}
85`)},CVe=0,pS=[];function TVe(t){var e=H.useRef([]),r=H.useRef([0,0]),n=H.useRef(),i=H.useState(CVe++)[0],a=H.useState(uwe)[0],o=H.useRef(t);H.useEffect(function(){o.current=t},[t]),H.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var g=Wze([t.lockRef.current],(t.shards||[]).map(tie),!0).filter(Boolean);return g.forEach(function(m){return m.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var s=H.useCallback(function(g,m){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var y=pk(g),b=r.current,x="deltaX"in g?g.deltaX:b[0]-y[0],T="deltaY"in g?g.deltaY:b[1]-y[1],B,R=g.target,I=Math.abs(x)>Math.abs(T)?"h":"v";if("touches"in g&&I==="h"&&R.type==="range")return!1;var N=window.getSelection(),F=N&&N.anchorNode,Q=F?F===R||F.contains(R):!1;if(Q)return!1;var j=Jne(I,R);if(!j)return!0;if(j?B=I:(B=I==="v"?"h":"v",j=Jne(I,R)),!j)return!1;if(!n.current&&"changedTouches"in g&&(x||T)&&(n.current=B),!B)return!0;var W=n.current||B;return bVe(W,m,g,W==="h"?x:T)},[]),l=H.useCallback(function(g){var m=g;if(!(!pS.length||pS[pS.length-1]!==a)){var y="deltaY"in m?eie(m):pk(m),b=e.current.filter(function(B){return B.name===m.type&&(B.target===m.target||m.target===B.shadowParent)&&xVe(B.delta,y)})[0];if(b&&b.should){m.cancelable&&m.preventDefault();return}
85if(!b){var x=(o.current.shards||[]).map(tie).filter(Boolean).filter(function(B){return B.contains(m.target)}),T=x.length>0?s(m,x[0]):!o.current.noIsolation;T&&m.cancelable&&m.preventDefault()}}},[]),u=H.useCallback(function(g,m,y,b){var x={name:g,delta:m,target:y,should:b,shadowParent:EVe(y)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(T){return T!==x})},1)},[]),c=H.useCallback(function(g){r.current=pk(g),n.current=void 0},[]),f=H.useCallback(function(g){u(g.type,eie(g),g.target,s(g,t.lockRef.current))},[]),d=H.useCallback(function(g){u(g.type,pk(g),g.target,s(g,t.lockRef.current))},[]);H.useEffect(function(){return pS.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,AS),document.addEventListener("touchmove",l,AS),document.addEventListener("touchstart",c,AS),function(){pS=pS.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,AS),document.removeEventListener("touchmove",l,AS),document.removeEventListener("touchstart",c,AS)}},[]);var A=t.removeScrollBar,p=t.inert;return H.createElement(H.Fragment,null,p?H.createElement(a,{styles:SVe(i)}):null,A?H.createElement(pVe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function EVe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const BVe=rVe(lwe,TVe);var hwe=H.forwardRef(function(t,e){return H.createElement(f5,Bc({},t,{ref:e,sideCar:BVe}))});hwe.classNames=f5.classNames;var DVe=Object.defineProperty,ji=(t,e)=>DVe(t,"name",{value:e,configurable:!0}),MVe=["Enter"," "],LVe=["ArrowDown","PageUp","Home"],Awe=["ArrowUp","PageDown","End"],RVe=[...LVe,...Awe],d5="Menu",[a9,IVe,OVe]=rZ(d5),[Ax,pwe]=dx(d5,[OVe,Q0e,twe]),mZ=Q0e(),vwe=twe(),[PVe,iI]=Ax(d5),[kVe,yZ]=Ax(d5),NVe=ji(t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:i,onOpenChange:a,modal:o=!0}=t,s=mZ(e),[l,u]=H.useState(null),c=H.useRef(!1),f=ag(a),d=iZ(i);return H.useEffect(()=>{const A=ji(()=>{c.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},"handleKeyDown"),p=ji(()=>c.current=!1,"handlePointer");return document.addEventListener("keydown",A,{capture:!0}),()=>{document.removeEventListener("keydown",A,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),H.useEffect(()=>{if(!r)return;const A=ji(()=>f(!1),"handleBlur");return window.addEventListener("blur",A),()=>window.removeEventListener("blur",A)},[r,f]),E.jsx(_ze,{...s,children:E.jsx(PVe,{scope:e,open:r,onOpenChange:f,content:l,onContentChange:u,children:E.jsx(kVe,{scope:e,onClose:H.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:o,children:n})})})},"Menu"),FVe=H.forwardRef(ji(function(e,r){const{__scopeMenu:n,...i}=e,a=mZ(n);return E.jsx(bze,{...a,...i,ref:r})},"MenuAnchor")),gwe="MenuPortal",[UVe,HVe]=Ax(gwe,{forceMount:void 0}),QVe=ji(t=>{const{__scopeMenu:e,forceMount:r,children:n,container:i}=t,a=iI(gwe,e);return E.jsx(UVe,{scope:e,forceMount:r,children:E.jsx(K0e,{present:r||a.open,children:E.jsx(Tze,{asChild:!0,container:i,children:n})})})},"MenuPortal"),By="MenuContent",[jVe,mwe]=Ax(By),zVe=H.forwardRef(ji(function(e,r){const n=HVe(By,e.__scopeMenu),{forceMount:i=n.forceMount,...a}=e,o=iI(By,e.__scopeMenu),s=yZ(By,e.__scopeMenu);return E.jsx(a9.Provider,{scope:e.__scopeMenu,children:E.jsx(K0e,{present:i||o.open,children:E.jsx(a9.Slot,{scope:e.__scopeMenu,children:s.modal?E.jsx(VVe,{...a,ref:r}):E.jsx(GVe,{...a,ref:r})})})})},"MenuContent")),VVe=H.forwardRef(ji(function(e,r){const n=iI(By,e.__scopeMenu),i=H.useRef(null),a=Bs(r,i);return H.useEffect(()=>{const o=i.current;if(o)return Kze(o)},[]),E.jsx(ywe,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:wi(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentModal")),GVe=H.forwardRef(ji(function(e,r){const n=iI(By,e.__scopeMenu);return E.jsx(ywe,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentNonModal")),KVe=Mb("MenuContent.ScrollLock"),ywe=H.forwardRef(ji(function(e,r){const{__scopeMenu:n,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:A,onDismiss:p,disableOutsideScroll:g,...m}=e,y=iI(By,n),b=yZ(By,n),x=mZ(n),T=vwe(n),B=IVe(n),[R,I]=H.useState(null),N=H.useRef(null),F=Bs(r,N,y.onContentChange),Q=H.useRef(0),j=H.useRef(""),W=H.useRef(0),V=H.useRef(null),Y=H.useRef("right"),G=H.useRef(0),K=g?hwe:H.Fragment,X=g?{as:KVe,allowPinchZoom:!0}:void 0,q=ji(te=>{const ce=j.current+te,he=B().filter(ge=>!ge.disabled),ve=document.activeElement,ae=he.find(ge=>ge.ref.current===ve)?.textValue,fe=he.map(ge=>ge.textValue),we=Swe(fe,ce,ae),Me=he.find(ge=>ge.textValue===we)?.ref.current;ji((function ge(be){j.current=be,window.clearTimeout(Q.current),be!==""&&(Q.current=window.setTimeout(()=>ge(""),1e3))}),"updateSearch")(ce),Me&&setTimeout(()=>Me.focus())},"handleTypeaheadSearch");H.useEffect(()=>()=>window.clearTimeout(Q.current),[]),sZ();const ne=H.useCallback(te=>Y.current===V.current?.side&&Twe(te,V.current?.area),[]);return E.jsx(jVe,{scope:n,searchRef:j,onItemEnter:H.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),onItemLeave:H.useCallback(te=>{ne(te)||(N.current?.focus(),I(null))},[ne]),onTriggerLeave:H.useCallback(te=>{ne(te)&&te.preventDefault()},[ne]),pointerGraceTimerRef:W,onPointerGraceIntentChange:H.useCallback(te=>{V.current=te},[]),children:E.jsx(K,{...X,children:E.jsx(oje,{asChild:!0,trapped:a,onMountAutoFocus:wi(o,te=>{te.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:E.jsx(eje,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:A,onDismiss:p,children:E.jsx(Qze,{asChild:!0,...T,dir:b.dir,orientation:"vertical",loop:i,currentTabStopId:R,onCurrentTabStopIdChange:I,onEntryFocus:wi(u,te=>{b.isUsingKeyboardRef.current||te.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(xze,{role:"menu","aria-orientation":"vertical","data-state":wwe(y.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:F,style:{outline:"none",...m.style},onKeyDown:wi(m.onKeyDown,te=>{const he=te.target.closest("[data-radix-menu-content]")===te.currentTarget,ve=te.ctrlKey||te.altKey||te.metaKey,ae=te.key.length===1;he&&(te.key==="Tab"&&te.preventDefault(),!ve&&ae&&q(te.key));const fe=N.current;if(te.target!==fe||!RVe.includes(te.key))return;te.preventDefault();const Me=B().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);Awe.includes(te.key)&&Me.reverse(),bwe(Me)}),onBlur:wi(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(Q.current),j.current="")}),onPointerMove:wi(e.onPointerMove,x4(te=>{const ce=te.target,he=G.current!==te.clientX;if(te.currentTarget.contains(ce)&&he){const ve=te.clientX>G.current?"right":"left";Y.current=ve,G.current=te.clientX}}))})})})})})})},"MenuContentImpl")),o9="MenuItem",rie="menu.itemSelect",WVe=H.forwardRef(ji(function(e,r){const{disabled:n=!1,onSelect:i,...a}=e,o=H.useRef(null),s=yZ(o9,e.__scopeMenu),l=mwe(o9,e.__scopeMenu),u=Bs(r,o),c=H.useRef(!1),f=ji(()=>{const d=o.current;if(!n&&d){const A=new CustomEvent(rie,{bubbles:!0,cancelable:!0});d.addEventListener(rie,p=>i?.(p),{once:!0}),tZ(d,A),A.defaultPrevented?c.current=!1:s.onClose()}},"handleSelect");return E.jsx(YVe,{...a,ref:u,disabled:n,onClick:wi(e.onClick,f),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:wi(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:wi(e.onKeyDown,d=>{n||d.target!==d.currentTarget||l.searchRef.current!==""&&d.key===" "||MVe.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})},"MenuItem")),YVe=H.forwardRef(ji(function(e,r){const{__scopeMenu:n,disabled:i=!1,textValue:a,...o}=e,s=mwe(o9,n),l=vwe(n),u=H.useRef(null),c=Bs(r,u),[f,d]=H.useState(!1),[A,p]=H.useState("");return H.useEffect(()=>{const g=u.current;g&&p((g.textContent??"").trim())},[o.children]),E.jsx(a9.ItemSlot,{scope:n,disabled:i,textValue:a??A,children:E.jsx(jze,{asChild:!0,...l,focusable:!i,children:E.jsx(_g.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:c,onPointerMove:wi(e.onPointerMove,x4(g=>{i?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focu
85s({preventScroll:!0}))})),onPointerLeave:wi(e.onPointerLeave,x4(g=>s.onItemLeave(g))),onFocus:wi(e.onFocus,()=>d(!0)),onBlur:wi(e.onBlur,()=>d(!1))})})})},"MenuItemImpl")),$Ve="MenuRadioGroup",[pFt,vFt]=Ax($Ve,{value:void 0,onValueChange:ji(()=>{},"onValueChange")}),ZVe="MenuItemIndicator",[gFt,mFt]=Ax(ZVe,{checked:!1}),XVe="MenuSub",[yFt,wFt]=Ax(XVe);function wwe(t){return t?"open":"closed"}ji(wwe,"getOpenState");function _we(t){return t==="indeterminate"}ji(_we,"isIndeterminate");function qVe(t){return _we(t)?"indeterminate":t?"checked":"unchecked"}ji(qVe,"getCheckedState");function bwe(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}ji(bwe,"focusFirst");function xwe(t,e){return t.map((r,n)=>t[(e+n)%t.length])}ji(xwe,"wrapArray");function Swe(t,e,r){const i=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,a=r?t.indexOf(r):-1;let o=xwe(t,Math.max(a,0));i.length===1&&(o=o.filter(u=>u!==r));const l=o.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}ji(Swe,"getNextMatch");function Cwe(t,e){const{x:r,y:n}=t;let i=!1;for(let a=0,o=e.length-1;a<e.length;o=a++){const s=e[a],l=e[o],u=s.x,c=s.y,f=l.x,d=l.y;c>n!=d>n&&r<(f-u)*(n-c)/(d-c)+u&&(i=!i)}return i}ji(Cwe,"isPointInPolygon");function Twe(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return Cwe(r,e)}ji(Twe,"isPointerInGraceArea");function x4(t){return e=>e.pointerType==="mouse"?t(e):void 0}ji(x4,"whenMouse");var JVe=NVe,e6e=FVe,t6e=QVe,r6e=zVe,n6e=WVe,i6e=Object.defineProperty,aI=(t,e)=>i6e(t,"name",{value:e,configurable:!0}),wZ="DropdownMenu",[a6e,_Ft]=dx(wZ,[pwe]),oI=pwe(),[o6e,Ewe]=a6e(wZ),s6e=aI(t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,l=oI(e),u=H.useRef(null),[c,f]=eZ({prop:i,defaultProp:a??!1,onChange:o,caller:wZ});return E.jsx(o6e,{scope:e,triggerId:m4(),triggerRef:u,contentId:m4(),open:c,onOpenChange:f,onOpenToggle:H.useCallback(()=>f(d=>!d),[f]),modal:s,children:E.jsx(JVe,{...l,open:c,onOpenChange:f,dir:n,modal:s,children:r})})},"DropdownMenu"),l6e="DropdownMenuTrigger",u6e=H.forwardRef(aI(function(e,r){const{__scopeDropdownMenu:n,disabled:i=!1,...a}=e,o=Ewe(l6e,n),s=oI(n),l=Bs(r,o.triggerRef);return E.jsx(e6e,{asChild:!0,...s,children:E.jsx(_g.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...a,ref:l,onPointerDown:wi(e.onPointerDown,u=>{!i&&u.button===0&&u.ctrlKey===!1&&(o.onOpenToggle(),o.open||u.preventDefault())}),onKeyDown:wi(e.onKeyDown,u=>{i||(["Enter"," "].includes(u.key)&&o.onOpenToggle(),u.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})},"DropdownMenuTrigger")),c6e=aI(t=>{const{__scopeDropdownMenu:e,...r}=t,n=oI(e);return E.jsx(t6e,{...n,...r})},"DropdownMenuPortal"),f6e="DropdownMenuContent",d6e=H.forwardRef(aI(function(e,r){const{__scopeDropdownMenu:n,...i}=e,a=Ewe(f6e,n),o=oI(n),s=H.useRef(!1);return E.jsx(r6e,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:r,onCloseAutoFocus:wi(e.onCloseAutoFocus,l=>{s.current||a.triggerRef.current?.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:wi(e.onInteractOutside,l=>{const u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,f=u.button===2||c;(!a.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),h6e=H.forwardRef(aI(function(e,r){const{__scopeDropdownMenu:n,...i}=e,a=oI(n);return E.jsx(n6e,{...a,...i,ref:r})},"DropdownMenuItem")),A6e=s6e,p6e=u6e,v6e=c6e,g6e=d6e,m6e=h6e;const _Z=H.createContext({});function bZ(t){const e=H.useRef(null);return e.current===null&&(e.current=t()),e.current}const y6e=typeof window<"u",xZ=y6e?H.useLayoutEffect:H.useEffect,h5=H.createContext(null);function SZ(t,e){t.indexOf(e)===-1&&t.push(e)}function S4(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}const JA=(t,e,r)=>r>e?e:r<t?t:r;let A5=()=>{};
vendor: 61,485 bytes, line 85
85const Wy={},Bwe=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Dwe=t=>typeof t=="object"&&t!==null,Mwe=t=>/^0[^.\s]+$/u.test(t);function Lwe(t){let e;return()=>(e===void 0&&(e=t()),e)}const Gf=t=>t,sI=(...t)=>t.reduce((e,r)=>n=>r(e(n))),kL=(t,e,r)=>{const n=e-t;return n?(r-t)/n:1};class CZ{constructor(){this.subscriptions=[]}add(e){return SZ(this.subscriptions,e),()=>S4(this.subscriptions,e)}notify(e,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(e,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Nc=t=>t*1e3,jf=t=>t/1e3,Rwe=(t,e)=>e?t*(1e3/e):0,Iwe=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,w6e=1e-7,_6e=12;function b6e(t,e,r,n,i){let a,o,s=0;do o=e+(r-e)/2,a=Iwe(o,n,i)-t,a>0?r=o:e=o;while(Math.abs(a)>w6e&&++s<_6e);return o}function lI(t,e,r,n){if(t===e&&r===n)return Gf;const i=a=>b6e(a,0,1,t,r);return a=>a===0||a===1?a:Iwe(i(a),e,n)}const Owe=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Pwe=t=>e=>1-t(1-e),kwe=lI(.33,1.53,.69,.99),TZ=Pwe(kwe),Nwe=Owe(TZ),Fwe=t=>t>=1?1:(t*=2)<1?.5*TZ(t):.5*(2-Math.pow(2,-10*(t-1))),EZ=t=>1-Math.sin(Math.acos(t)),Uwe=Pwe(EZ),Hwe=Owe(EZ),x6e=lI(.42,0,1,1),BZ=lI(0,0,.58,1),Qwe=lI(.42,0,.58,1),S6e=t=>Array.isArray(t)&&typeof t[0]!="number",jwe=t=>Array.isArray(t)&&typeof t[0]=="number",C6e={linear:Gf,easeIn:x6e,easeInOut:Qwe,easeOut:BZ,circIn:EZ,circInOut:Hwe,circOut:Uwe,backIn:TZ,backInOut:Nwe,backOut:kwe,anticipate:Fwe},T6e=t=>typeof t=="string",nie=t=>{if(jwe(t)){A5(t.length===4);const[e,r,n,i]=t;return lI(e,r,n,i)}else if(T6e(t))return C6e[t];return t},vk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function E6e(t){let e=new Set,r=new Set,n=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function s(u){a.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,f=!1)=>{const A=f&&n?e:r;return c&&a.add(u),A.add(u),u},cancel:u=>{r.delete(u),a.delete(u)},process:u=>{if(o=u,n){i=!0;return}n=!0;const c=e;e=r,r=c,e.forEach(s),e.clear(),n=!1,i&&(i=!1,l.process(u))}};return l}const B6e=40;function zwe(t,e){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=vk.reduce((x,T)=>(x[T]=E6e(a),x),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:A,postRender:p}=o,g=()=>{const x=Wy.useManualTiming,T=x?i.timestamp:performance.now();r=!1,x||(i.delta=n?1e3/60:Math.max(Math.min(T-i.timestamp,B6e),1)),i.timestamp=T,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),A.process(i),p.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(g))},m=()=>{r=!0,n=!0,i.isProcessing||t(g)};return{schedule:vk.reduce((x,T)=>{const B=o[T];return x[T]=(R,I=!1,N=!1)=>(r||m(),B.schedule(R,I,N)),x},{}),cancel:x=>{for(let T=0;T<vk.length;T++)o[vk[T]].cancel(x)},state:i,steps:o}}const{schedule:xi,cancel:Yy,state:ws,steps:$z}=zwe(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gf,!0);let eU;function D6e(){eU=void 0}const ru={now:()=>(eU===void 0&&ru.set(ws.isProcessing||Wy.useManualTiming?ws.timestamp:performance.now()),eU),set:t=>{eU=t,queueMicrotask(D6e)}},Vwe=t=>e=>typeof e=="string"&&e.startsWith(t),Gwe=Vwe("--"),M6e=Vwe("var(--"),DZ=t=>M6e(t)?L6e.test(t.split("/*")[0].trim()):!1,L6e=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function iie(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const XT={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},NL={...XT,transform:t=>JA(0,1,t)},gk={...XT,default:1},WM=t=>Math.round(t*1e5)/1e5,MZ=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function R6e(t){return t==null}const I6e=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,LZ=(t,e)=>r=>!!(typeof r=="string"&&I6e.test(r)&&r.startsWith(t)||e&&!R6e(r)&&Object.prototype.hasOwnProperty.call(r,e)),Kwe=(t,e,r)=>n=>{if(typeof n!="string")return n;const[i,a,o,s]=n.match(MZ);return{[t]:parseFloat(i),[e]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},O6e=t=>JA(0,255,t),Zz={...XT,transform:t=>Math.round(O6e(t))},Q_={test:LZ("rgb","red"),parse:Kwe("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Zz.transform(t)+", "+Zz.transform(e)+", "+Zz.transform(r)+", "+WM(NL.transform(n))+")"};function P6e(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const s9={test:LZ("#"),parse:P6e,transform:Q_.transform},uI=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Sv=uI("deg"),QA=uI("%"),Ht=uI("px"),k6e=uI("vh"),N6e=uI("vw"),aie={...QA,parse:t=>QA.parse(t)/100,transform:t=>QA.transform(t*100)},bC={test:LZ("hsl","hue"),parse:Kwe("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+QA.transform(WM(e))+", "+QA.transform(WM(r))+", "+WM(NL.transform(n))+")"},ro={test:t=>Q_.test(t)||s9.test(t)||bC.test(t),parse:t=>Q_.test(t)?Q_.parse(t):bC.test(t)?bC.parse(t):s9.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Q_.transform(t):bC.transform(t),getAnimatableNone:t=>{const e=ro.parse(t);return e.alpha=0,ro.transform(e)}},F6e=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function U6e(t){return isNaN(t)&&typeof t=="string"&&(t.match(MZ)?.length||0)+(t.match(F6e)?.length||0)>0}const Wwe="number",Ywe="color",H6e="var",Q6e="var(",oie="${}",j6e=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function lT(t){const e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[];let a=0;const s=e.replace(j6e,l=>(ro.test(l)?(n.color.push(a),i.push(Ywe),r.push(ro.parse(l))):l.startsWith(Q6e)?(n.var.push(a),i.push(H6e),r.push(l)):(n.number.push(a),i.push(Wwe),r.push(parseFloat(l))),++a,oie)).split(oie);return{values:r,split:s,indexes:n,types:i}}function z6e(t){return lT(t).values}function $we({split:t,types:e}){const r=t.length;return n=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],n[a]!==void 0){const o=e[a];o===Wwe?i+=WM(n[a]):o===Ywe?i+=ro.transform(n[a]):i+=n[a]}return i}}function V6e(t){return $we(lT(t))}const G6e=t=>typeof t=="number"?0:ro.test(t)?ro.getAnimatableNone(t):t,K6e=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:G6e(t);function W6e(t){const e=lT(t);return $we(e)(e.values.map((n,i)=>K6e(n,e.split[i])))}const lh={test:U6e,parse:z6e,createTransformer:V6e,getAnimatableNone:W6e};function Xz(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Y6e({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,a=0,o=0;if(!e)i=a=o=r;else{const s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;i=Xz(l,s,t+1/3),a=Xz(l,s,t),o=Xz(l,s,t-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}function C4(t,e){return r=>r>0?e:t}const _i=(t,e,r)=>t+(e-t)*r,qz=(t,e,r)=>{const n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},$6e=[s9,Q_,bC],Z6e=t=>$6e.find(e=>e.test(t));function sie(t){const e=Z6e(t);if(!e)return!1;let r=e.parse(t);return e===bC&&(r=Y6e(r)),r}const lie=(t,e)=>{const r=sie(t),n=sie(e);if(!r||!n)return C4(t,e);const i={...r};return a=>(i.red=qz(r.red,n.red,a),i.green=qz(r.green,n.green,a),i.blue=qz(r.blue,n.blue,a),i.alpha=_i(r.alpha,n.alpha,a),Q_.transform(i))},l9=new Set(["none","hidden"]);function X6e(t,e){return l9.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function q6e(t,e){return r=>_i(t,e,r)}function RZ(t){return typeof t=="number"?q6e:typeof t=="string"?DZ(t)?C4:ro.test(t)?lie:t8e:Array.isArray(t)?Zwe:typeof t=="object"?ro.test(t)?lie:J6e:C4}function Zwe(t,e){const r=[...t],n=r.length,i=t.map((a,o)=>RZ(a)(a,e[o]));return a=>{for(let o=0;o<n;o++)r[o]=i[o](a);return r}}function J6e(t,e){const r={...t,...e},n={};for(const i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=RZ(t[i])(t[i],e[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}}function e8e(t,e){const r=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],o=t.indexes[a][n[a]],s=t.values[o]??0;r[i]=s,n[a]++}return r}const t8e=(t,e)=>{const r=lh.createTransformer(e),n=lT(t),i=lT(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?l9.has(t)&&!i.values.length||l9.has(e)&&!n.values.length?X6e(t,e):sI(Zwe(e8e(n,i),i.values),r):C4(t,e)};function Xwe(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?_i(t,e,r):RZ(t)(t,e)}const r8e=t=>{const e=({timestamp:r})=>t(r);return{start:(r=!0)=>xi.update(e,r),stop:()=>Yy(e),now:()=>ws.isProcessing?ws.timestamp:ru.now()}},qwe=(t,e,r=10)=>{let n="";const i=Math.max(Math.round(e/r),2);for(let a=0;a<i;a++)n+=Math.round(t(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},T4=2e4;function IZ(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e<T4;)e+=r,n=t.next(e);return e>=T4?1/0:e}function n8e(t,e=100,r){const n=r({...t,keyframes:[0,e]}),i=Math.min(IZ(n),T4);return{type:"keyframes",ease:a=>n.next(i*a).value/e,duration:jf(i)}}const xa={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function u9(t,e){return t*Math.sqrt(1-e*e)}const i8e=12;function a8e(t,e,r){let n=r;for(let i=1;i<i8e;i++)n=n-t(n)/e(n);return n}const Jz=.001;function o8e({duration:t=xa.duration,bounce:e=xa.bounce,velocity:r=xa.velocity,mass:n=xa.mass}){let i,a,o=1-e;o=JA(xa.minDamping,xa.maxDamping,o),t=JA(xa.minDuration,xa.maxDuration,jf(t)),o<1?(i=u=>{const c=u*o,f=c*t,d=c-r,A=u9(u,o),p=Math.exp(-f);return Jz-d/A*p},a=u=>{const f=u*o*t,d=f*r+r,A=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-f),g=u9(Math.pow(u,2),o);return(-i(u)+Jz>0?-1:1)*((d-A)*p)/g}):(i=u=>{const c=Math.exp(-u*t),f=(u-r)*t+1;return-Jz+c*f},a=u=>{const c=Math.exp(-u*t),f=(r-u)*(t*t);return c*f});const s=5/t,l=a8e(i,a,s);if(t=Nc(t),isNaN(l))return{stiffness:xa.stiffness,damping:xa.damping,duration:t};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:o*2*Math.sqrt(n*u),duration:t}}}const s8e=["duration","bounce"],l8e=["stiffness","damping","mass"];function uie(t,e){return e.some(r=>t[r]!==void 0)}function u8e(t){let e={velocity:xa.velocity,stiffness:xa.stiffness,damping:xa.damping,mass:xa.mass,isResolvedFromDuration:!1,...t};if(!uie(t,l8e)&&uie(t,s8e))if(e.velocity=0,t.visualDuration){const r=t.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,a=2*JA(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:xa.mass,stiffness:i,damping:a}}else{const r=o8e({...t,velocity:0});e={...e,...r,mass:xa.mass},e.isResolvedFromDuration=!0}return e}function E4(t=xa.visualDuration,e=xa.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:A}=u8e({...r,velocity:-jf(r.velocity||0)}),p=d||0,g=u/(2*Math.sqrt(l*c)),m=o-a,y=jf(Math.sqrt(l/c)),b=Math.abs(m)<5;n||(n=b?xa.restSpeed.granular:xa.restSpeed.default),i||(i=b?xa.restDelta.granular:xa.restDelta.default);let x,T,B,R,I,N;if(g<1)B=u9(y,g),R=(p+g*y*m)/B,x=Q=>{const j=Math.exp(-g*y*Q);return o-j*(R*Math.sin(B*Q)+m*Math.cos(B*Q))},I=g*y*R+m*B,N=g*y*m-R*B,T=Q=>Math.exp(-g*y*Q)*(I*Math.sin(B*Q)+N*Math.cos(B*Q));else if(g===1){x=j=>o-Math.exp(-y*j)*(m+(p+y*m)*j);const Q=p+y*m;T=j=>Math.exp(-y*j)*(y*Q*j-p)}else{const Q=y*Math.sqrt(g*g-1);x=Y=>{const G=Math.exp(-g*y*Y),K=Math.min(Q*Y,300);return o-G*((p+g*y*m)*Math.sinh(K)+Q*m*Math.cosh(K))/Q};const j=(p+g*y*m)/Q,W=g*y*j-m*Q,V=g*y*m-j*Q;T=Y=>{const G=Math.exp(-g*y*Y),K=Math.min(Q*Y,300);return G*(W*Math.sinh(K)+V*Math.cosh(K))}}const F={calculatedDuration:A&&f||null,velocity:Q=>Nc(T(Q)),next:Q=>{if(!A&&g<1){const W=Math.exp(-g*y*Q),V=Math.sin(B*Q),Y=Math.cos(B*Q),G=o-W*(R*V+m*Y),K=Nc(W*(I*V+N*Y));return s.done=Math.abs(K)<=n&&Math.abs(o-G)<=i,s.value=s.done?o:G,s}const j=x(Q);if(A)s.done=Q>=f;else{const W=Nc(T(Q));s.done=Math.abs(W)<=n&&Math.abs(o-j)<=i}return s.value=s.done?o:j,s},toString:()=>{const Q=Math.min(IZ(F),T4),j=qwe(W=>F.next(Q*W).value,Q,30);return Q+"ms "+j},toTransition:()=>{}};return F}E4.applyToOptions=t=>{const e=n8e(t,100,E4);return t.ease=e.ease,t.duration=Nc(e.duration),t.type="keyframes",t};const c8e=5;function Jwe(t,e,r){const n=Math.max(e-c8e,0);return Rwe(r-t(n),e-n)}function c9({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:c}){const f=t[0],d={done:!1,value:f},A=N=>s!==void 0&&N<s||l!==void 0&&N>l,p=N=>s===void 0?l:l===void 0||Math.abs(s-N)<Math.abs(l-N)?s:l;let g=r*e;const m=f+g,y=o===void 0?m:o(m);y!==m&&(g=y-f);const b=N=>-g*Math.exp(-N/n),x=N=>y+b(N),T=N=>{const F=b(N),Q=x(N);d.done=Math.abs(F)<=u,d.value=d.done?y:Q};let B,R;const I=N=>{A(d.value)&&(B=N,R=E4({keyframes:[d.value,p(d.value)],velocity:Jwe(x,N,d.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return I(0),{calculatedDuration:null,next:N=>{let F=!1;return!R&&B===void 0&&(F=!0,T(N),I(N)),B!==void 0&&N>=B?R.next(N-B):(!F&&T(N),d)}}}function f8e(t,e,r){const n=[],i=r||Wy.mix||Xwe,a=t.length-1;for(let o=0;o<a;o++){let s=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||Gf:e;s=sI(l,s)}n.push(s)}return n}function d8e(t,e,{clamp:r=!0,ease:n,mixer:i}={}){const a=t.length;if(A5(a===e.length),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=f8e(e,n,i),l=s.length,u=c=>{if(o&&c<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const d=kL(t[f],t[f+1],c);return s[f](d)};return r?c=>u(JA(t[0],t[a-1],c)):u}function h8e(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=kL(0,e,n);t.push(_i(r,1,i))}}function A8e(t){const e=[0];return h8e(e,t.length-1),e}function p8e(t,e){return t.map(r=>r*e)}function v8e(t,e){return t.map(()=>e||Qwe).splice(0,t.length-1)}function YM({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=S6e(n)?n.map(nie):nie(n),a={done:!1,value:e[0]},o=p8e(r&&r.length===e.length?r:A8e(e),t),s=d8e(o,e,{ease:Array.isArray(i)?i:v8e(e,i)});return{calculatedDuration:t,next:l=>(a.value=s(l),a.done=l>=t,a)}}const g8e=t=>t!==null;function p5(t,{repeat:e,repeatType:r="loop"},n,i=1){const a=t.filter(g8e),s=i<0||e&&r!=="loop"&&e%2===1?0:a.length-1;return!s||n===void 0?a[s]:n}const m8e={decay:c9,inertia:c9,tween:YM,keyframes:YM,spring:E4};function e_e(t){typeof t.type=="string"&&(t.type=m8e[t.type])}class OZ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}}const y8e=t=>t/100;class B4 extends OZ{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==ru.now()&&this.tick(ru.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;e_e(e);const{type:r=YM,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=e;let{keyframes:s}=e;const l=r||YM;l!==YM&&typeof s[0]!="number"&&(this.mixKeyframes=sI(y8e,Xwe(s[0],s[1])),s=[0,100]);const u=l({...e,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=IZ(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(e){const r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(e,r=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:A,type:p,onUpdate:g,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,T=n;if(f){const N=Math.min(this.currentTime,i)/s;let F=Math.floor(N),Q=N%1;!Q&&N>=1&&(Q=1),Q===1&&F--,F=Math.min(F,f+1),F%2&&(d==="reverse"?(Q=1-Q,A&&(Q-=A/s)):d==="mirror"&&(T=o)),x=JA(0,1,Q)*s}let B;b?(this.delayState.value=c[0],B=this.delayState):B=T.next(x),a&&!b&&(B.value=a(B.value));let{done:R}=B;!b&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return I&&p!==c9&&(B.value=p5(c,this.options,m,this.speed)),g&&g(B.value),I&&this.finish(),B}then(e,r){return this.finished.then(e,r)}get duration(){return jf(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+jf(e)}get time(){return jf(this.currentTime)}set time(e){e=Nc(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const r=this.generator.next(e).value;return Jwe(n=>this.generator.next(n).value,e,r)}get speed(){return this.playbackSpeed}set speed(e){const r=this.playbackSpeed!==e;r&&this.driver&&this.updateTime(ru.now()),this.playbackSpeed=e,r&&this.driver&&(this.time=jf(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=r8e,startTime:r}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ru.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function w8e(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const j_=t=>t*180/Math.PI,f9=t=>{const e=j_(Math.atan2(t[1],t[0]));return d9(e)},_8e={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:f9,rotateZ:f9,skewX:t=>j_(Math.atan(t[1])),skewY:t=>j_(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},d9=t=>(t=t%360,t<0&&(t+=360),t),cie=f9,fie=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),die=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),b8e={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fie,scaleY:die,scale:t=>(fie(t)+die(t))/2,rotateX:t=>d9(j_(Math.atan2(t[6],t[5]))),rotateY:t=>d9(j_(Math.atan2(-t[2],t[0]))),rotateZ:cie,rotate:cie,skewX:t=>j_(Math.atan(t[4])),skewY:t=>j_(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function h9(t){return t.includes("scale")?1:0}function A9(t,e){if(!t||t==="none")return h9(e);const r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(r)n=b8e,i=r;else{const s=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=_8e,i=s}if(!i)return h9(e);const a=n[e],o=i[1].split(",").map(S8e);return typeof a=="function"?a(o):o[a]}const x8e=(t,e)=>{const{transform:r="none"}=getComputedStyle(t);return A9(r,e)};function S8e(t){return parseFloat(t.trim())}const qT=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],JT=new Set([...qT,"pathRotation"]),hie=t=>t===XT||t===Ht,C8e=new Set(["x","y","z"]),T8e=qT.filter(t=>!C8e.has(t));function E8e(t){const e=[];return T8e.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}const dy={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:n})=>{const i=t.max-t.min;return n==="border-box"?i:i-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:n})=>{const i=t.max-t.min;return n==="border-box"?i:i-parseFloat(e)-parseFloat(r)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>A9(e,"x"),y:(t,{transform:e})=>A9(e,"y")};dy.translateX=dy.x;dy.translateY=dy.y;const ob=new Set;let p9=!1,v9=!1,g9=!1;function t_e(){if(v9){const t=Array.from(ob).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),r=new Map;e.forEach(n=>{const i=E8e(n);i.length&&(r.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([a,o])=>{n.getValue(a)?.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}v9=!1,p9=!1,ob.forEach(t=>t.complete(g9)),ob.clear()}function r_e(){ob.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(v9=!0)})}function B8e(){g9=!0,r_e(),t_e(),g9=!1}class PZ{constructor(e,r,n,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=n,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ob.add(this),p9||(p9=!0,xi.read(r_e),xi.resolveKeyframes(t_e))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:r,element:n,motionValue:i}=this;if(e[0]===null){const a=i?.get(),o=e[e.length-1];if(a!==void 0)e[0]=a;else if(n&&r){const s=n.readValue(r,o);s!=null&&(e[0]=s)}e[0]===void 0&&(e[0]=o),i&&a===void 0&&i.set(e[0])}w8e(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ob.delete(this)}cancel(){this.state==="scheduled"&&(ob.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const D8e=t=>t.startsWith("--");function n_e(t,e,r){D8e(e)?t.style.setProperty(e,r):t.style[e]=r}const M8e={};function i_e(t,e){const r=Lwe(t);return()=>M8e[e]??r()}const L8e=i_e(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),a_e=i_e(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),sM=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,Aie={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sM([0,.65,.55,1]),circOut:sM([.55,0,1,.45]),backIn:sM([.31,.01,.66,-.59]),backOut:sM([.33,1.53,.69,.99])};function o_e(t,e){if(t)return typeof t=="function"?a_e()?qwe(t,e):"ease-out":jwe(t)?sM(t):Array.isArray(t)?t.map(r=>o_e(r,e)||Aie.easeOut):Aie[t]}function R8e(t,e,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u=void 0){const c={[e]:r};l&&(c.offset=l);const f=o_e(s,i);Array.isArray(f)&&(c.easing=f);const d={delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),t.animate(c,d)}function s_e(t){return typeof t=="function"&&"applyToOptions"in t}function I8e({type:t,...e}){return s_e(t)&&a_e()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class l_e extends OZ{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:r,name:n,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=e;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=e,A5(typeof e.type!="string");const u=I8e(e);this.animation=R8e(r,n,i,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=p5(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(c),n_e(r,n,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return jf(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+jf(e)}get time(){return jf(Number(this.animation.currentTime)||0)}set time(e){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Nc(e),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:r,rangeEnd:n,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&L8e()?(this.animation.timeline=e,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),Gf):i(this)}}const u_e={anticipate:Fwe,backInOut:Nwe,circInOut:Hwe};function O8e(t){return t in u_e}function P8e(t){typeof t.ease=="string"&&O8e(t.ease)&&(t.ease=u_e[t.ease])}const eV=10;class k8e extends l_e{constructor(e){P8e(e),e_e(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:r,onUpdate:n,onComplete:i,element:a,...o}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}const s=new B4({...o,autoplay:!1}),l=Math.max(eV,ru.now()-this.startTime),u=JA(0,eV,l-eV),c=s.sample(l).value,{name:f}=this.options;a&&f&&n_e(a,f,c),r.setWithVelocity(s.sample(Math.max(0,l-u)).value,c,u),s.stop()}}const pie=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(lh.test(t)||t==="0")&&!t.startsWith("url("));function N8e(t){const e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function F8e(t,e,r,n){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const a=t[t.length-1],o=pie(i,e),s=pie(a,e);return!o||!s?!1:N8e(t)||(r==="spring"||s_e(r))&&n}function m9(t){t.duration=0,t.type="keyframes"}const c_e=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),U8e=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function H8e(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&U8e.test(t[e]))return!0;return!1}const Q8e=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),j8e=Lwe(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z8e(t){const{motionValue:e,name:r,repeatDelay:n,repeatType:i,damping:a,type:o,keyframes:s}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;const{onUpdate:u,transformTemplate:c}=e.owner.getProps();return j8e()&&r&&(c_e.has(r)||Q8e.has(r)&&H8e(s))&&(r!=="transform"||!c)&&!u&&!n&&i!=="mirror"&&a!==0&&o!=="inertia"}const V8e=40;class G8e extends OZ{constructor({autoplay:e=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ru.now();const d={autoplay:e,delay:r,type:n,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:u,element:c,...f},A=c?.KeyframeResolver||PZ;this.keyframeResolver=new A(s,(p,g,m)=>this.onKeyframesResolved(p,g,d,!m),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,r,n,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=ru.now();let f=!0;F8e(e,a,o,s)||(f=!1,(Wy.instantAnimations||!l)&&c?.(p5(e,n,r)),e[0]=e[e.length-1],m9(n),n.repeat=0);const A={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>V8e?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:e},p=f&&!u&&z8e(A),g=A.motionValue?.owner?.current;let m;if(p)try{m=new k8e({...A,element:g})}catch{m=new B4(A)}else m=new B4(A);m.finished.then(()=>{this.notifyFinished()}).catch(Gf),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),B8e()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function f_e(t,e,r,n=0,i=1){const a=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),o=t.size,s=(o-1)*n;return typeof r=="function"?r(a,o):i===1?a*n:s-a*n}const vie=30,K8e=t=>!isNaN(parseFloat(t));class W8e{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const i=ru.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=ru.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=K8e(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new CZ);const n=this.events[e].add(r);return e==="change"?()=>{n(),xi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ru.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>vie)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,vie);return Rwe(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uT(t,e){return new W8e(t,e)}function d_e(t,e){if(t?.inherit&&e){const{inherit:r,...n}=t;return{...e,...n}}return t}function kZ(t,e){const r=t?.[e]??t?.default??t;return r!==t?d_e(r,t):r}const Y8e={type:"spring",stiffness:500,damping:25,restSpeed:10},$8e=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Z8e={type:"keyframes",duration:.8},X8e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q8e=(t,{keyframes:e})=>e.length>2?Z8e:JT.has(t)?t.startsWith("scale")?$8e(e[1]):Y8e:X8e,J8e=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function eGe(t){for(const e in t)if(!J8e.has(e))return!0;return!1}const NZ=(t,e,r,n={},i,a)=>o=>{const s=kZ(n,t)||{},l=s.delay||n.delay||0;let{elapsed:u=0}=n;u=u-Nc(l);const c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...s,delay:-u,onUpdate:d=>{e.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:a?void 0:i};eGe(s)||Object.assign(c,q8e(t,c)),c.duration&&(c.duration=Nc(c.duration)),c.repeatDelay&&(c.repeatDelay=Nc(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(m9(c),c.delay===0&&(f=!0)),(Wy.instantAnimations||Wy.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(f=!0,m9(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,f&&!a&&e.get()!==void 0){const d=p5(c.keyframes,s);if(d!==void 0){xi.update(()=>{c.onUpdate(d),c.onComplete()});return}}return s.isSync?new B4(c):new G8e(c)},tGe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rGe(t){const e=tGe.exec(t);if(!e)return[,];const[,r,n,i]=e;return[`--${r??n}`,i]}function h_e(t,e,r=1){const[n,i]=rGe(t);if(!n)return;const a=window.getComputedStyle(e).getPropertyValue(n);if(a){const o=a.trim();return Bwe(o)?parseFloat(o):o}return DZ(i)?h_e(i,e,r+1):i}function gie(t){const e=[{},{}];return t?.values.forEach((r,n)=>{e[0][n]=r.get(),e[1][n]=r.getVelocity()}),e}function FZ(t,e,r,n){if(typeof e=="function"){const[i,a]=gie(n);e=e(r!==void 0?r:t.custom,i,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,a]=gie(n);e=e(r!==void 0?r:t.custom,i,a)}return e}function sb(t,e,r){const n=t.getProps();return FZ(n,e,r!==void 0?r:n.custom,t)}const A_e=new Set(["width","height","top","left","right","bottom",...qT]),y9=t=>Array.isArray(t);function nGe(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,uT(r))}function iGe(t){return y9(t)?t[t.length-1]||0:t}function aGe(t,e){const r=sb(t,e);let{transitionEnd:n={},transition:i={},...a}=r||{};a={...a,...n};for(const o in a){const s=iGe(a[o]);nGe(t,o,s)}}const Ts=t=>!!(t&&t.getVelocity);function oGe(t){return!!(Ts(t)&&t.add)}function w9(t,e){const r=t.getValue("willChange");if(oGe(r))return r.add(e);if(!r&&Wy.WillChange){const n=new Wy.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function UZ(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const sGe="framerAppearId",p_e="data-"+UZ(sGe);function v_e(t){return t.props[p_e]}function lGe({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function g_e(t,e,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...s}=e;const l=t.getDefaultTransition();a=a?d_e(a,l):l;const u=a?.reduceMotion,c=a?.skipAnimations;n&&(a=n);const f=[],d=i&&t.animationState&&t.animationState.getState()[i],A=a?.path;A&&A.animateVisualElement(t,s,a,r,f);for(const p in s){const g=t.getValue(p,t.latestValues[p]??null),m=s[p];if(m===void 0||d&&lGe(d,p))continue;const y={delay:r,...kZ(a||{},p)};c&&(y.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(m)&&m===b&&!y.velocity){xi.update(()=>g.set(m));continue}let x=!1;if(window.MotionHandoffAnimation){const R=v_e(t);if(R){const I=window.MotionHandoffAnimation(R,p,xi);I!==null&&(y.startTime=I,x=!0)}}w9(t,p);const T=u??t.shouldReduceMotion;g.start(NZ(p,g,m,T&&A_e.has(p)?{type:!1}:y,t,x));const B=g.animation;B&&f.push(B)}if(o){const p=()=>xi.update(()=>{o&&aGe(t,o)});f.length?Promise.all(f).then(p):p()}return f}function _9(t,e,r={}){const n=sb(t,e,r.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(g_e(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return uGe(t,e,l,u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[l,u]=s==="beforeChildren"?[a,o]:[o,a];return l().then(()=>u())}else return Promise.all([a(),o(r.delay)])}function uGe(t,e,r=0,n=0,i=0,a=1,o){const s=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),s.push(_9(l,e,{...o,delay:r+(typeof n=="function"?0:n)+f_e(t.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(s)}function cGe(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(a=>_9(t,a,r));n=Promise.all(i)}else if(typeof e=="string")n=_9(t,e,r);else{const i=typeof e=="function"?sb(t,e,r.custom):e;n=Promise.all(g_e(t,i,r))}return n.then(()=>{t.notify("AnimationComplete",e)})}const fGe={test:t=>t==="auto",parse:t=>t},m_e=t=>e=>e.test(t),y_e=[XT,Ht,QA,Sv,N6e,k6e,fGe],mie=t=>y_e.find(m_e(t));function dGe(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Mwe(t):!0}const hGe=new Set(["brightness","contrast","saturate","opacity"]);function AGe(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(MZ)||[];if(!n)return t;const i=r.replace(n,"");let a=hGe.has(e)?1:0;return n!==r&&(a*=100),e+"("+a+i+")"}const pGe=/\b([a-z-]*)\(.*?\)/gu,b9={...lh,getAnimatableNone:t=>{const e=t.match(pGe);return e?e.map(AGe).join(" "):t}},x9={...lh,getAnimatableNone:t=>{const e=lh.parse(t);return lh.createTransformer(t)(e.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},yie={...XT,transform:Math.round},vGe={rotate:Sv,pathRotation:Sv,rotateX:Sv,rotateY:Sv,rotateZ:Sv,scale:gk,scaleX:gk,scaleY:gk,scaleZ:gk,skew:Sv,skewX:Sv,skewY:Sv,distance:Ht,translateX:Ht,translateY:Ht,translateZ:Ht,x:Ht,y:Ht,z:Ht,perspective:Ht,transformPerspective:Ht,opacity:NL,originX:aie,originY:aie,originZ:Ht},D4={borderWidth:Ht,borderTopWidth:Ht,borderRightWidth:Ht,borderBottomWidth:Ht,borderLeftWidth:Ht,borderRadius:Ht,borderTopLeftRadius:Ht,borderTopRightRadius:Ht,borderBottomRightRadius:Ht,borderBottomLeftRadius:Ht,width:Ht,maxWidth:Ht,height:Ht,maxHeight:Ht,top:Ht,right:Ht,bottom:Ht,left:Ht,inset:Ht,insetBlock:Ht,insetBlockStart:Ht,insetBlockEnd:Ht,insetInline:Ht,insetInlineStart:Ht,insetInlineEnd:Ht,padding:Ht,paddingTop:Ht,paddingRight:Ht,paddingBottom:Ht,paddingLeft:Ht,paddingBlock:Ht,paddingBlockStart:Ht,paddingBlockEnd:Ht,paddingInline:Ht,paddingInlineStart:Ht,paddingInlineEnd:Ht,margin:Ht,marginTop:Ht,marginRight:Ht,marginBottom:Ht,marginLeft:Ht,marginBlock:Ht,marginBlockStart:Ht,marginBlockEnd:Ht,marginInline:Ht,marginInlineStart:Ht,marginInlineEnd:Ht,fontSize:Ht,backgroundPositionX:Ht,backgroundPositionY:Ht,...vGe,zIndex:yie,fillOpacity:NL,strokeOpacity:NL,numOctaves:yie},gGe={...D4,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:b9,WebkitFilter:b9,mask:x9,WebkitMask:x9},w_e=t=>gGe[t],mGe=new Set([b9,x9]);function __e(t,e){let r=w_e(t);return mGe.has(r)||(r=lh),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const yGe=new Set(["auto","none","0"]);function wGe(t,e,r){let n=0,i;for(;n<t.length&&!i;){const a=t[n];typeof a=="string"&&!yGe.has(a)&&lT(a).values.length&&(i=t[n]),n++}if(i&&r)for(const a of e)t[a]=__e(r,i)}class _Ge extends PZ{constructor(e,r,n,i,a){super(e,r,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let f=e[c];if(typeof f=="string"&&(f=f.trim(),DZ(f))){const d=h_e(f,r.current);d!==void 0&&(e[c]=d),c===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!A_e.has(n)||e.length!==2)return;const[i,a]=e,o=mie(i),s=mie(a),l=iie(i),u=iie(a);if(l!==u&&dy[n]){this.needsMeasurement=!0;return}if(o!==s)if(hie(o)&&hie(s))for(let c=0;c<e.length;c++){const f=e[c];typeof f=="string"&&(e[c]=parseFloat(f))}else dy[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:r}=this,n=[];for(let i=0;i<e.length;i++)(e[i]===null||dGe(e[i]))&&n.push(i);n.length&&wGe(e,n,r)}measureInitialState(){const{element:e,unresolvedKeyframes:r,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dy[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;const i=r[r.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){const{element:e,name:r,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const i=e.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,o=n[a];n[a]=dy[r](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,l])=>{e.getValue(s).set(l)}),this.resolveNoneKeyframes()}}const HZ=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function b_e(t,e,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let n=document;const i=r?.[t]??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(n=>n!=null)}const S9=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function tU(t){return Dwe(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:QZ}=zwe(queueMicrotask,!1),Wd={x:!1,y:!1};function x_e(){return Wd.x||Wd.y}function bGe(t){return t==="x"||t==="y"?Wd[t]?null:(Wd[t]=!0,()=>{Wd[t]=!1}):Wd.x||Wd.y?null:(Wd.x=Wd.y=!0,()=>{Wd.x=Wd.y=!1})}function S_e(t,e){const r=b_e(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[r,i,()=>n.abort()]}function xGe(t){return!(t.pointerType==="touch"||x_e())}function SGe(t,e,r={}){const[n,i,a]=S_e(t,r);return n.forEach(o=>{let s=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",p)},f=m=>{u&&(u(m),u=void 0),c()},d=m=>{s=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,f(m))},A=()=>{s=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},p=m=>{if(m.pointerType!=="touch"){if(s){l=!0;return}f(m)}},g=m=>{if(!xGe(m))return;l=!1;const y=e(o,m);typeof y=="function"&&(u=y,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",A,i)}),a}const C_e=(t,e)=>e?t===e?!0:C_e(t,e.parentElement):!1,jZ=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,CGe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function TGe(t){return CGe.has(t.tagName)||t.isContentEditable===!0}const EGe=new Set(["INPUT","SELECT","TEXTAREA"]);function BGe(t){return EGe.has(t.tagName)||t.isContentEditable===!0}const rU=new WeakSet;function wie(t){return e=>{e.key==="Enter"&&t(e)}}function tV(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const DGe=(t,e)=>{const r=t.currentTarget;if(!r)return;const n=wie(()=>{if(rU.has(r))return;tV(r,"down");const i=wie(()=>{tV(r,"up")}),a=()=>tV(r,"cancel");r.addEventListener("keyup",i,e),r.addEventListener("blur",a,e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)};function _ie(t){return jZ(t)&&!x_e()}const bie=new WeakSet;function MGe(t,e,r={}){const[n,i,a]=S_e(t,r),o=s=>{const l=s.currentTarget;if(!_ie(s)||bie.has(s))return;rU.add(l),r.stopPropagation&&bie.add(s);const u=e(l,s),c={...i,capture:!0},f=(p,g)=>{window.removeEventListener("pointerup",d,c),window.removeEventListener("pointercancel",A,c),rU.has(l)&&rU.delete(l),_ie(p)&&typeof u=="function"&&u(p,{success:g})},d=p=>{f(p,l===window||l===document||r.useGlobalTarget||C_e(l,p.target))},A=p=>{f(p,!1)};window.addEventListener("pointerup",d,c),window.addEventListener("pointercancel",A,c)};return n.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),tU(s)&&(s.addEventListener("focus",u=>DGe(u,i)),!TGe(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function zZ(t){return Dwe(t)&&"ownerSVGElement"in t}const nU=new WeakMap;let iU;const T_e=(t,e,r)=>(n,i)=>i&&i[0]?i[0][t+"Size"]:zZ(n)&&"getBBox"in n?n.getBBox()[e]:n[r],LGe=T_e("inline","width","offsetWidth"),RGe=T_e("block","height","offsetHeight");function IGe({target:t,borderBoxSize:e}){nU.get(t)?.forEach(r=>{r(t,{get width(){return LGe(t,e)},get height(){return RGe(t,e)}})})}function OGe(t){t.forEach(IGe)}function PGe(){typeof ResizeObserver>"u"||(iU=new ResizeObserver(OGe))}function kGe(t,e){iU||PGe();const r=b_e(t);return r.forEach(n=>{let i=nU.get(n);i||(i=new Set,nU.set(n,i)),i.add(e),iU?.observe(n)}),()=>{r.forEach(n=>{const i=nU.get(n);i?.delete(e),i?.size||iU?.unobserve(n)})}}const aU=new Set;let xC;function NGe(){xC=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};aU.forEach(e=>e(t))},window.addEventListener("resize",xC)}function FGe(t){return aU.add(t),xC||NGe(),()=>{aU.delete(t),!aU.size&&typeof xC=="function"&&(window.removeEventListener("resize",xC),xC=void 0)}}function xie(t,e){return typeof t=="function"?FGe(t):kGe(t,e)}function UGe(t){return zZ(t)&&t.tagName==="svg"}const HGe=[...y_e,ro,lh],QGe=t=>HGe.find(m_e(t)),Sie=()=>({translate:0,scale:1,origin:0,originPoint:0}),SC=()=>({x:Sie(),y:Sie()}),Cie=()=>({min:0,max:0}),yo=()=>({x:Cie(),y:Cie()}),jGe=new WeakMap;function v5(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function FL(t){return typeof t=="string"||Array.isArray(t)}const VZ=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],GZ=["initial",...VZ];function g5(t){return v5(t.animate)||GZ.some(e=>FL(t[e]))}function E_e(t){return!!(g5(t)||t.variants)}function zGe(t,e,r){for(const n in e){const i=e[n],a=r[n];if(Ts(i))t.addValue(n,i);else if(Ts(a))t.addValue(n,uT(i,{owner:t}));else if(a!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,uT(o!==void 0?o:i,{owner:t}))}}for(const n in r)e[n]===void 0&&t.removeValue(n);return e}const C9={current:null},B_e={current:!1},VGe=typeof window<"u";function GGe(){if(B_e.current=!0,!!VGe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>C9.current=t.matches;t.addEventListener("change",e),e()}else C9.current=!1}const Tie=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let M4={};function D_e(t){M4=t}function KGe(){return M4}class WGe{scrapeMotionValuesFromProps(e,r,n){return{}}constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=PZ,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const A=ru.now();this.renderScheduledAt<A&&(this.renderScheduledAt=A,xi.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=g5(r),this.isVariantNode=E_e(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const A in d){const p=d[A];u[A]!==void 0&&Ts(p)&&p.set(u[A])}}mount(e){if(this.hasBeenMounted)for(const r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=e,jGe.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(B_e.current||GGe(),this.shouldReduceMotion=C9.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Yy(this.notifyUpdate),Yy(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,r){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),r.accelerate&&c_e.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:s,times:l,ease:u,duration:c}=r.accelerate,f=new l_e({element:this.current,name:e,keyframes:s,times:l,ease:u,duration:Nc(c)}),d=o(f);this.valueSubscriptions.set(e,()=>{d(),f.cancel()});return}const n=JT.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&xi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{i(),a&&a()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in M4){const r=M4[e];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yo()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Tie.length;n++){const i=Tie[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=e[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=zGe(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){const n=this.values.get(e);r!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=uT(r===null?void 0:r,{owner:this}),this.addValue(e,n)),n}readValue(e,r){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(Bwe(n)||Mwe(n))?n=parseFloat(n):!QGe(n)&&lh.test(r)&&(n=__e(e,r)),this.setBaseTarget(e,Ts(n)?n.get():n)),Ts(n)?n.get():n}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const a=FZ(this.props,r,this.presenceContext?.custom);a&&(n=a[e])}if(r&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Ts(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new CZ),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}scheduleRenderMicrotask(){QZ.render(this.render)}}class M_e extends WGe{constructor(){super(...arguments),this.KeyframeResolver=_Ge}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){const n=e.style;return n?n[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ts(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class g0{constructor(e){this.isMounted=!1,this.node=e}update(){}}function L_e({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function YGe({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function $Ge(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function rV(t){return t===void 0||t===1}function T9({scale:t,scaleX:e,scaleY:r}){return!rV(t)||!rV(e)||!rV(r)}function g_(t){return T9(t)||R_e(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function R_e(t){return Eie(t.x)||Eie(t.y)}function Eie(t){return t&&t!=="0%"}function L4(t,e,r){const n=t-r,i=e*n;return r+i}function Bie(t,e,r,n,i){return i!==void 0&&(t=L4(t,i,n)),L4(t,r,n)+e}function E9(t,e=0,r=1,n,i){t.min=Bie(t.min,e,r,n,i),t.max=Bie(t.max,e,r,n,i)}function I_e(t,{x:e,y:r}){E9(t.x,e.translate,e.scale,e.originPoint),E9(t.y,r.translate,r.scale,r.originPoint)}const Die=.999999999999,Mie=1.0000000000001;function ZGe(t,e,r,n=!1){const i=r.length;if(!i)return;e.x=e.y=1;let a,o;for(let s=0;s<i;s++){a=r[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(TA(t.x,-a.scroll.offset.x),TA(t.y,-a.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,I_e(t,o)),n&&g_(a.latestValues)&&oU(t,a.latestValues,a.layout?.layoutBox))}e.x<Mie&&e.x>Die&&(e.x=1),e.y<Mie&&e.y>Die&&(e.y=1)}function TA(t,e){t.min+=e,t.max+=e}function Lie(t,e,r,n,i=.5){const a=_i(t.min,t.max,i);E9(t,e,r,a,n)}function Rie(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function oU(t,e,r){const n=r??t;Lie(t.x,Rie(e.x,n.x),e.scaleX,e.scale,e.originX),Lie(t.y,Rie(e.y,n.y),e.scaleY,e.scale,e.originY)}function O_e(t,e){return L_e($Ge(t.getBoundingClientRect(),e))}function XGe(t,e,r){const n=O_e(t,r),{scroll:i}=e;return i&&(TA(n.x,i.offset.x),TA(n.y,i.offset.y)),n}const qGe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JGe=qT.length;function eKe(t,e,r){let n="",i=!0;for(let o=0;o<JGe;o++){const s=qT[o],l=t[s];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(s.startsWith("scale")?1:0);else{const c=parseFloat(l);u=s.startsWith("scale")?c===1:c===0}if(!u||r){const c=S9(l,D4[s]);if(!u){i=!1;const f=qGe[s]||s;n+=`${f}(${c}) `}r&&(e[s]=c)}}const a=t.pathRotation;return a&&(i=!1,n+=`rotate(${S9(a,D4.pathRotation)}) `),n=n.trim(),r?n=r(e,i?"":n):i&&(n="none"),n}function KZ(t,e,r){const{style:n,vars:i,transformOrigin:a}=t;let o=!1,s=!1;for(const l in e){const u=e[l];if(JT.has(l)){o=!0;continue}else if(Gwe(l)){i[l]=u;continue}else{const c=S9(u,D4[l]);l.startsWith("origin")?(s=!0,a[l]=c):n[l]=c}}if(e.transform||(o||r?n.transform=eKe(e,t.transform,r):n.transform&&(n.transform="none")),s){const{originX:l="50%",originY:u="50%",originZ:c=0}=a;n.transformOrigin=`${l} ${u} ${c}`}}function P_e(t,{style:e,vars:r},n,i){const a=t.style;let o;for(o in e)a[o]=e[o];i?.applyProjectionStyles(a,n);for(o in r)a.setProperty(o,r[o])}function Iie(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Y2={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ht.test(t))t=parseFloat(t);else return t;const r=Iie(t,e.target.x),n=Iie(t,e.target.y);return`${r}% ${n}%`}},tKe={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=lh.parse(t);if(i.length>5)return n;const a=lh.createTransformer(t),o=typeof i[0]!="number"?1:0,s=r.x.scale*e.x,l=r.y.scale*e.y;i[0+o]/=s,i[1+o]/=l;const u=_i(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),a(i)}},B9={borderRadius:{...Y2,applyTo:[...HZ]},borderTopLeftRadius:Y2,borderTopRightRadius:Y2,borderBottomLeftRadius:Y2,borderBottomRightRadius:Y2,boxShadow:tKe};function k_e(t,{layout:e,layoutId:r}){return JT.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!B9[t]||t==="opacity")}function WZ(t,e,r){const n=t.style,i=e?.style,a={};if(!n)return a;for(const o in n)(Ts(n[o])||i&&Ts(i[o])||k_e(o,t)||r?.getValue(o)?.liveStyle!==void 0)&&(a[o]=n[o]);return a}function rKe(t){return window.getComputedStyle(t)}class nKe extends M_e{constructor(){super(...arguments),this.type="html",this.renderInstance=P_e}mount(e){A5(!!e.style),super.mount(e)}readValueFromInstance(e,r){if(JT.has(r))return this.projection?.isProjecting?h9(r):x8e(e,r);{const n=rKe(e),i=(Gwe(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return O_e(e,r)}build(e,r,n){KZ(e,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,r,n){return WZ(e,r,n)}}const iKe={offset:"stroke-dashoffset",array:"stroke-dasharray"},aKe={offset:"strokeDashoffset",array:"strokeDasharray"};function oKe(t,e,r=1,n=0,i=!0){t.pathLength=1;const a=i?iKe:aKe;t[a.offset]=`${-n}`,t[a.array]=`${e} ${r}`}const sKe=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function N_e(t,{attrX:e,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s}
vendor: 1,568 bytes, line 85
85,l,u,c){if(KZ(t,s,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d}=t;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const A of sKe)f[A]!==void 0&&(d[A]=f[A],delete f[A]);e!==void 0&&(f.x=e),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),i!==void 0&&oKe(f,i,a,o,!1)}const F_e=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),U_e=t=>typeof t=="string"&&t.toLowerCase()==="svg";function lKe(t,e,r,n){P_e(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(F_e.has(i)?i:UZ(i),e.attrs[i])}function H_e(t,e,r){const n=WZ(t,e,r);for(const i in t)if(Ts(t[i])||Ts(e[i])){const a=qT.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=t[i]}return n}class uKe extends M_e{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yo}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(JT.has(r)){const n=w_e(r);return n&&n.default||0}return r=F_e.has(r)?r:UZ(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,n){return H_e(e,r,n)}
vendor: 5,713 bytes, line 85
85build(e,r,n){N_e(e,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,r,n,i){lKe(e,r,n,i)}mount(e){this.isSVGTag=U_e(e.tagName),super.mount(e)}}const cKe=GZ.length;function Q_e(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?Q_e(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const e={};for(let r=0;r<cKe;r++){const n=GZ[r],i=t.props[n];(FL(i)||i===!1)&&(e[n]=i)}return e}function j_e(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}const fKe=[...VZ].reverse(),dKe=VZ.length;function hKe(t){return e=>Promise.all(e.map(({animation:r,options:n})=>cGe(t,r,n)))}function AKe(t){let e=hKe(t),r=Oie(),n=!0,i=!1;const a=u=>(c,f)=>{const d=sb(t,f,u==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:A,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function o(u){e=u(t)}function s(u){const{props:c}=t,f=Q_e(t.parent)||{},d=[],A=new Set;let p={},g=1/0;for(let y=0;y<dKe;y++){const b=fKe[y],x=r[b],T=c[b]!==void 0?c[b]:f[b],B=FL(T),R=b===u?x.isActive:null;R===!1&&(g=y);let I=T===f[b]&&T!==c[b]&&B;if(I&&(n||i)&&t.manuallyAnimateOnMount&&(I=!1),x.protectedKeys={...p},!x.isActive&&R===null||!T&&!x.prevProp||v5(T)||typeof T=="boolean")continue;if(b==="exit"&&x.isActive&&R!==!0){x.prevResolvedValues&&(p={...p,...x.prevResolvedValues});continue}const N=pKe(x.prevProp,T);let F=N||b===u&&x.isActive&&!I&&B||y>g&&B,Q=!1;const j=Array.isArray(T)?T:[T];let W=j.reduce(a(b),{});R===!1&&(W={});const{prevResolvedValues:V={}}=x,Y={...V,...W},G=q=>{F=!0,A.has(q)&&(Q=!0,A.delete(q)),x.needsAnimating[q]=!0;const ne=t.getValue(q);ne&&(ne.liveStyle=!1)};for(const q in Y){const ne=W[q],te=V[q];if(p.hasOwnProperty(q))continue;let ce=!1;y9(ne)&&y9(te)?ce=!j_e(ne,te)||N:ce=ne!==te,ce?ne!=null?G(q):A.add(q):ne!==void 0&&A.has(q)?G(q):x.protectedKeys[q]=!0}x.prevProp=T,x.prevResolvedValues=W,x.isActive&&(p={...p,...W}),(n||i)&&t.blockInitialAnimation&&(F=!1);const K=I&&N;F&&(!K||Q)&&d.push(...j.map(q=>{const ne={type:b};if(typeof q=="string"&&(n||i)&&!K&&t.manuallyAnimateOnMount&&t.parent){const{parent:te}=t,ce=sb(te,q);if(te.enteringChildren&&ce){const{delayChildren:he}=ce.transition||{};ne.delay=f_e(te.enteringChildren,t,he)}}return{animation:q,options:ne}}))}if(A.size){const y={};if(typeof c.initial!="boolean"){const b=sb(t,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(y.transition=b.transition)}A.forEach(b=>{const x=t.getBaseTarget(b),T=t.getValue(b);T&&(T.liveStyle=!0),y[b]=x??null}),d.push({animation:y})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,i=!1,m?e(d):Promise.resolve()}function l(u,c){if(r[u].isActive===c)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(u,c)),r[u].isActive=c;const f=s(u);for(const d in r)r[d].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>r,reset:()=>{r=Oie(),i=!0}}}function pKe(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!j_e(e,t):!1}function Pw(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Oie(){return{animate:Pw(!0),whileInView:Pw(),whileHover:Pw(),whileTap:Pw(),whileDrag:Pw(),whileFocus:Pw(),exit:Pw()}}function D9(t,e){t.min=e.min,t.max=e.max}function Ud(t,e){D9(t.x,e.x),D9(t.y,e.y)}function Pie(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const z_e=1e-4,vKe=1-z_e,gKe=1+z_e,V_e=.01,mKe=0-V_e,yKe=0+V_e;function nu(t){return t.max-t.min}function wKe(t,e,r){return Math.abs(t-e)<=r}function kie(t,e,r,n=.5){t.origin=n,t.originPoint=_i(e.min,e.max,t.origin),t.scale=nu(r)/nu(e),t.translate=_i(r.min,r.max,t.origin)-t.originPoint,(t.scale>=vKe&&t.scale<=gKe||isNaN(t.scale))&&(t.scale=1),(t.translate>=mKe&&t.translate<=yKe||isNaN(t.translate))&&(t.translate=0)}function $M(t,e,r,n){kie(t.x,e.x,r.x,n?n.originX:void 0),kie(t.y,e.y,r.y,n?n.originY:void 0)}function Nie(t,e,r,n=0){const i=n?_i(r.min,r.max,n):r.min;t.min=i+e.min,t.max=t.min+nu(e)}function _Ke(t,e,r,n){Nie(t.x,e.x,r.x,n?.x),Nie(t.y,e.y,r.y,n?.y)}function Fie(t,e,r,n=0){const i=n?_i(r.min,r.max,n):r.min;t.min=e.min-i,t.max=t.min+nu(e)}function R4(t,e,r,n){Fie(t.x,e.x,r.x,n?.x),Fie(t.y,e.y,r.y,n?.y)}function Uie(t,e,r,n,i){return t-=e,t=L4(t,1/r,n),i!==void 0&&(t=L4(t,1/i,n)),t}function bKe(t,e=0,r=1,n=.5,i,a=t,o=t){if(QA.test(e)&&(e=parseFloat(e),e=_i(o.min,o.max,e/100)-o.min),typeof e!="number")return;let s=_i(a.min,a.max,n);t===a&&(s-=e),t.min=Uie(t.min,e,r,s,i),t.max=Uie(t.max,e,r,s,i)}function Hie(t,e,[r,n,i],a,o){bKe(t,e[r],e[n],e[i],e.scale,a,o)}const xKe=["x","scaleX","originX"],SKe=["y","scaleY","originY"];function Qie(t,e,r,n){Hie(t.x,e,xKe,r?r.x:void 0,n?n.x:void 0),Hie(t.y,e,SKe,r?r.y:void 0,n?n.y:void 0)}function jie(t){return t.translate===0&&t.scale===1}function G_e(t){return jie(t.x)&&jie(t.y)}function zie(t,e){return t.min===e.min&&t.max===e.max}function CKe(t,e){return zie(t.x,e.x)&&zie(t.y,e.y)}function Vie(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function K_e(t,e){return Vie(t.x,e.x)&&Vie(t.y,e.y)}function Gie(t){return nu(t.x)/nu(t.y)}function Kie(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function _A(t){return[t("x"),t("y")]}function TKe(t,e,r){let n="";const i=t.x.translate/e.x,a=t.y.translate/e.y,o=r?.z||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{transformPerspective:u,rotate:c,pathRotation:f,rotateX:d,rotateY:A,skewX:p,skewY:g}=r;u&&(n=`perspective(${u}px) ${n}
85`),c&&(n+=`rotate(${c}deg) `),f&&(n+=`rotate(${f}deg) `),d&&(n+=`rotateX(${d}deg) `),A&&(n+=`rotateY(${A}deg) `),p&&(n+=`skewX(${p}deg) `),g&&(n+=`skewY(${g}deg) `)}const s=t.x.scale*e.x,l=t.y.scale*e.y;return(s!==1||l!==1)&&(n+=`scale(${s}, ${l})`),n||"none"}const EKe=HZ.length,Wie=t=>typeof t=="string"?parseFloat(t):t,Yie=t=>typeof t=="number"||Ht.test(t);function BKe(t,e,r,n,i,a){i?(t.opacity=_i(0,r.opacity??1,DKe(n)),t.opacityExit=_i(e.opacity??1,0,MKe(n))):a&&(t.opacity=_i(e.opacity??1,r.opacity??1,n));for(let o=0;o<EKe;o++){const s=HZ[o];let l=$ie(e,s),u=$ie(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Yie(l)===Yie(u)?(t[s]=Math.max(_i(Wie(l),Wie(u),n),0),(QA.test(u)||QA.test(l))&&(t[s]+="%")):t[s]=u}(e.rotate||r.rotate)&&(t.rotate=_i(e.rotate||0,r.rotate||0,n))}function $ie(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const DKe=W_e(0,.5,Uwe),MKe=W_e(.5,.95,Gf);function W_e(t,e,r){return n=>n<t?0:n>e?1:r(kL(t,e,n))}function LKe(t,e,r){const n=Ts(t)?t:uT(t);return n.start(NZ("",n,e,r)),n.animation}function UL(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}const RKe=(t,e)=>t.depth-e.depth;class IKe{constructor(){this.children=[],this.isDirty=!1}add(e){SZ(this.children,e),this.isDirty=!0}remove(e){S4(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(RKe),this.isDirty=!1,this.children.forEach(e)}}function OKe(t,e){const r=ru.now(),n=({timestamp:i})=>{const a=i-r;a>=e&&(Yy(n),t(a-e))};return xi.setup(n,!0),()=>Yy(n)}function sU(t){return Ts(t)?t.get():t}class PKe{constructor(){this.members=[]}add(e){SZ(this.members,e);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===e||n===this.lead||n===this.prevLead)continue;const i=n.instance;(!i||i.isConnected===!1)&&!n.snapshot&&(S4(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(S4(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){for(let r=this.members.indexOf(e)-1;r>=0;r--){const n=this.members[r];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=n.options,{layoutDependency:a}=e.options;(i===void 0||i!==a)&&(e.resumeFrom=n,r&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const lU={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nV=["","X","Y","Z"],kKe=1e3;let NKe=0;function iV(t,e,r,n){const{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Y_e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const r=v_e(e);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",xi,!(i||a))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Y_e(n)}function $_e({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},s=e?.()){this.id=NKe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 18,349 bytes, line 85
85{this.projectionUpdateScheduled=!1,this.nodes.forEach(HKe),this.nodes.forEach(KKe),this.nodes.forEach(WKe),this.nodes.forEach(QKe)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new IKe)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new CZ),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=zZ(o)&&!UGe(o),this.instance=o;const{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),t){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;xi.read(()=>{f=window.innerWidth}),t(o,()=>{const A=window.innerWidth;A!==f&&(f=A,this.root.updateBlockedByResize=!0,c&&c(),c=OKe(d,250),lU.hasAnimatedSinceResize&&(lU.hasAnimatedSinceResize=!1,this.nodes.forEach(qie)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||qKe,{onLayoutAnimationStart:g,onLayoutAnimationComplete:m}=u.getProps(),y=!this.targetLayout||!K_e(this.targetLayout,A),b=!f&&d;if(this.options.layoutRoot||this.resumeFrom||b||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...kZ(p,"layout"),onPlay:g,onComplete:m};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,b,x.path)}else f||qie(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Yy(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(YKe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Y_e(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(zKe),this.nodes.forEach(Zie);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xie);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(VKe),this.nodes.forEach(GKe),this.nodes.forEach(FKe),this.nodes.forEach(UKe)):this.nodes.forEach(Xie),this.clearAllSnapshots();const s=ru.now();ws.delta=JA(0,1e3/60,s-ws.timestamp),ws.timestamp=s,ws.isProcessing=!0,$z.update.process(ws),$z.preRender.process(ws),$z.render.process(ws),ws.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,QZ.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(jKe),this.sharedNodes.forEach($Ke)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!nu(this.snapshot.measuredBox.x)&&!nu(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=yo()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!G_e(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(s||g_(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),JKe(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return yo();const s=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(e9e))){const{scroll:u}=this.root;u&&(TA(s.x,u.offset.x),TA(s.y,u.offset.y))}return s}removeElementScroll(o){const s=yo();if(Ud(s,o),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;u!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Ud(s,o),TA(s.x,c.offset.x),TA(s.y,c.offset.y))}return s}applyTransform(o,s=!1,l){const u=l||yo();Ud(u,o);for(let c=0;c<this.path.length;c++){const f=this.path[c];!s&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(TA(u.x,-f.scroll.offset.x),TA(u.y,-f.scroll.offset.y)),g_(f.latestValues)&&oU(u,f.latestValues,f.layout?.layoutBox)}return g_(this.latestValues)&&oU(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(o){const s=yo();Ud(s,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!g_(u.latestValues))continue;let c;u.instance&&(T9(u.latestValues)&&u.updateSnapshot(),c=yo(),Ud(c,u.measurePageBox())),Qie(s,u.latestValues,u.snapshot?.layoutBox,c)}return g_(this.latestValues)&&Qie(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ws.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=ws.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=yo(),this.targetWithTransforms=yo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_Ke(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ud(this.target,this.layout.layoutBox),I_e(this.target,this.targetDelta)):Ud(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||T9(this.parent.latestValues)||R_e(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,s,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yo(),this.relativeTargetOrigin=yo(),R4(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),Ud(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ws.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Ud(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;ZGe(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=yo());const{target:A}=o;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pie(this.prevProjectionDelta.x,this.projectionDelta.x),Pie(this.prevProjectionDelta.y,this.projectionDelta.y)),$M(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Kie(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kie(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=SC(),this.projectionDelta=SC(),this.projectionDeltaWithTransform=SC()}setAnimationOrigin(o,s=!1,l){const u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},d=SC();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const A=yo(),p=u?u.source:void 0,g=this.layout?this.layout.source:void 0,m=p!==g,y=this.getStack(),b=!y||y.members.length<=1,x=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(XKe));this.animationProgress=0;let T;const B=l?.interpolateProjection(o);this.mixTargetDelta=R=>{const I=R/1e3,N=B?.(I);N?(d.x.translate=N.x,d.x.scale=_i(o.x.scale,1,I),d.x.origin=o.x.origin,d.x.originPoint=o.x.originPoint,d.y.translate=N.y,d.y.scale=_i(o.y.scale,1,I),d.y.origin=o.y.origin,d.y.originPoint=o.y.originPoint):(Jie(d.x,o.x,I),Jie(d.y,o.y,I)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(R4(A,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ZKe(this.relativeTarget,this.relativeTargetOrigin,A,I),T&&CKe(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=yo()),Ud(T,this.relativeTarget)),m&&(this.animationValues=f,BKe(f,c,this.latestValues,I,x,b)),N&&N.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=N.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Yy(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xi.update(()=>{lU.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=uT(0)),this.motionValue.jump(0,!1),this.currentAnimation=LKe(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kKe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=o;if(!(!s||!l||!u)){if(this!==o&&this.layout&&u&&Z_e(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||yo();const f=nu(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const d=nu(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}Ud(s,l),oU(s,c),$M(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new PKe),this.sharedNodes.get(o).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&iV("z",o,u,this.animationValues);for(let c=0;c<nV.length;c++)iV(`rotate${nV[c]}`,o,u,this.animationValues),iV(`skew${nV[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=sU(s?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=sU(s?.pointerEvents)||""),this.hasProjected&&!g_(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=TKe(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:d,y:A}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${A.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in B9){if(c[p]===void 0)continue;const{correct:g,applyTo:m,isCSSVariable:y}=B9[p],b=f==="none"?c[p]:g(c[p],u);if(m){const x=m.length;for(let T=0;T<x;T++)o[m[T]]=b}else y?this.options.visualElement.renderState.vars[p]=b:o[p]=b}
vendor: 4,606 bytes, line 85
85this.options.layoutId&&(o.pointerEvents=u===this?sU(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Zie),this.root.sharedNodes.clear()}}}function FKe(t){t.updateLayout()}function UKe(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=t.layout,{animationType:i}=t.options,a=e.source!==t.layout.source;if(i==="size")_A(c=>{const f=a?e.measuredBox[c]:e.layoutBox[c],d=nu(f);f.min=r[c].min,f.max=f.min+d});else if(i==="x"||i==="y"){const c=i==="x"?"y":"x";D9(a?e.measuredBox[c]:e.layoutBox[c],r[c])}else Z_e(i,e.layoutBox,r)&&_A(c=>{const f=a?e.measuredBox[c]:e.layoutBox[c],d=nu(r[c]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+d)});const o=SC();$M(o,r,e.layoutBox);const s=SC();a?$M(s,t.applyTransform(n,!0),e.measuredBox):$M(s,r,e.layoutBox);const l=!G_e(o);let u=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:d}=c;if(f&&d){const A=t.options.layoutAnchor||void 0,p=yo();R4(p,e.layoutBox,f.layoutBox,A);const g=yo();R4(g,r,d.layoutBox,A),K_e(p,g)||(u=!0),c.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function HKe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function QKe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function jKe(t){t.clearSnapshot()}function Zie(t){t.clearMeasurements()}function zKe(t){t.isLayoutDirty=!0,t.updateLayout()}function Xie(t){t.isLayoutDirty=!1}function VKe(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function GKe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qie(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function KKe(t){t.resolveTargetDelta()}function WKe(t){t.calcProjection()}function YKe(t){t.resetSkewAndRotation()}function $Ke(t){t.removeLeadSnapshot()}function Jie(t,e,r){t.translate=_i(e.translate,0,r),t.scale=_i(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function eae(t,e,r,n){t.min=_i(e.min,r.min,n),t.max=_i(e.max,r.max,n)}function ZKe(t,e,r,n){eae(t.x,e.x,r.x,n),eae(t.y,e.y,r.y,n)}function XKe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const qKe={duration:.45,ease:[.4,0,.1,1]},tae=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rae=tae("applewebkit/")&&!tae("chrome/")?Math.round:Gf;function nae(t){t.min=rae(t.min),t.max=rae(t.max)}function JKe(t){nae(t.x),nae(t.y)}function Z_e(t,e,r){return t==="position"||t==="preserve-aspect"&&!wKe(Gie(e),Gie(r),.2)}function e9e(t){return t!==t.root&&t.scroll?.wasRoot}const t9e=$_e({attachResizeListener:(t,e)=>UL(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),aV={current:void 0},X_e=$_e({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!aV.current){const t=new t9e({});t.mount(window),t.setOptions({layoutScroll:!0}),aV.current=t}return aV.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),YZ=H.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function iae(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function r9e(...t){return e=>{let r=!1;const n=t.map(i=>{const a=iae(i,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():iae(t[i],null)}}}}function n9e(...t){return H.useCallback(r9e(...t),t)}class i9e extends H.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(tU(r)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=r.offsetParent,
85i=tU(n)&&n.offsetWidth||0,a=tU(n)&&n.offsetHeight||0,o=getComputedStyle(r),s=this.props.sizeRef.current;s.height=parseFloat(o.height),s.width=parseFloat(o.width),s.top=r.offsetTop,s.left=r.offsetLeft,s.right=i-s.width-s.left,s.bottom=a-s.height-s.top,s.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function a9e({children:t,isPresent:e,anchorX:r,anchorY:n,root:i,pop:a}){const o=H.useId(),s=H.useRef(null),l=H.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=H.useContext(YZ),c=a!==!1?t.props?.ref??t?.ref:void 0,f=n9e(s,c);return H.useInsertionEffect(()=>{const{width:d,height:A,top:p,left:g,right:m,bottom:y,direction:b}=l.current;if(e||a===!1||!s.current||!d||!A)return;const x=b==="rtl",T=r==="left"?x?`right: ${m}`:`left: ${g}`:x?`left: ${g}`:`right: ${m}`,B=n==="bottom"?`bottom: ${y}`:`top: ${p}`;s.current.dataset.motionPopId=o;const R=document.createElement("style");u&&(R.nonce=u);const I=i??document.head;return I.appendChild(R),R.sheet&&R.sheet.insertRule(`
86          [data-motion-pop-id="${o}"] {
87            position: absolute !important;
88            width: ${d}px !important;
89            height: ${A}px !important;
90            ${T}px !important;
91            ${B}px !important;
92          }
93        `),()=>{s.current?.removeAttribute("data-motion-pop-id"),I.contains(R)&&I.removeChild(R)}},[e]),E.jsx(i9e,{isPresent:e,childRef:s,sizeRef:l,pop:a,children:a===!1?t:H.cloneElement(t,{ref:f})})}const o9e=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:u})=>{const c=bZ(s9e),f=H.useId(),d=H.useRef(r),A=H.useRef(n);xZ(()=>{d.current=r,A.current=n});let p=!0,g=H.useMemo(()=>(p=!1,{id:f,initial:e,isPresent:r,custom:i,onExitComplete:m=>{c.set(m,!0);for(const y of c.values())if(!y)return;n&&n()},register:m=>(c.set(m,!1),()=>{c.delete(m),!d.current&&!c.size&&A.current?.()})}),[r,c,n]);return a&&p&&(g={...g}),H.useMemo(()=>{c.forEach((m,y)=>c.set(y,!1))},[r]),H.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),t=E.jsx(a9e,{pop:o==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:u,children:t}),E.jsx(h5.Provider,{value:g,children:t})};function s9e(){return new Map}function q_e(t=!0){const e=H.useContext(h5);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:i}=e,a=H.useId();H.useEffect(()=>{if(t)return i(a)},[t]);const o=H.useCallback(()=>t&&n&&n(a),[a,n,t]);return!r&&n?[!1,o]:[!0]}const mk=t=>t.key||"";function aae(t){const e=[];return H.Children.forEach(t,r=>{H.isValidElement(r)&&e.push(r)}),e}const ZM=({children:t,custom:e,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{const[c,f]=q_e(o),d=H.useMemo(()=>aae(t),[t]),A=o&&!c?[]:d.map(mk),p=H.useRef(!0),g=H.useRef(d),m=bZ(()=>new Map),y=H.useRef(new Set),[b,x]=H.useState(d),[T,B]=H.useState(d);xZ(()=>{p.current=!1,g.current=d;for(let N=0;N<T.length;N++){const F=mk(T[N]);A.includes(F)?(m.delete(F),y.current.delete(F)):m.get(F)!==!0&&m.set(F,!1)}},[T,A.length,A.join("-")]);const R=[];if(d!==b){let N=[...d];for(let F=0;F<T.length;F++){const Q=T[F],j=mk(Q);A.includes(j)||(N.splice(F,0,Q),R.push(Q))}return a==="wait"&&R.length&&(N=R),B(aae(N)),x(d),null}const{forceRender:I}=H.useContext(_Z);return E.jsx(E.Fragment,{children:T.map(N=>{const F=mk(N),Q=o&&!c?!1:d===T||A.includes(F),j=()=>{if(y.current.has(F))return;if(m.has(F))y.current.add(F),m.set(F,!0);else return;let W=!0;m.forEach(V=>{V||(W=!1)}),W&&(I?.(),B(g.current),o&&f?.(),n&&n())};return E.jsx(o9e,{isPresent:Q,initial:!p.current||r?void 0:!1,custom:e,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:Q?void 0:j,anchorX:s,anchorY:l,children:N},F)})})},J_e=H.createContext({strict:!1}),oae={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let sae=!1;function l9e(){if(sae)return;const t={};for(const e in oae)t[e]={isEnabled:r=>
vendor: 5,893 bytes, line 93
93oae[e].some(n=>!!r[n])};D_e(t),sae=!0}function ebe(){return l9e(),KGe()}function u9e(t){const e=ebe();for(const r in t)e[r]={...e[r],...t[r]};D_e(e)}const c9e=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function I4(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||c9e.has(t)}let tbe=t=>!I4(t);function f9e(t){typeof t=="function"&&(tbe=e=>e.startsWith("on")?!I4(e):t(e))}try{f9e(require("@emotion/is-prop-valid").default)}catch{}function d9e(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||Ts(t[i])||(tbe(i)||r===!0&&I4(i)||!e&&!I4(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}const m5=H.createContext({});function h9e(t,e){if(g5(t)){const{initial:r,animate:n}=t;return{initial:r===!1||FL(r)?r:void 0,animate:FL(n)?n:void 0}}return t.inherit!==!1?e:{}}function A9e(t){const{initial:e,animate:r}=h9e(t,H.useContext(m5));return H.useMemo(()=>({initial:e,animate:r}),[lae(e),lae(r)])}function lae(t){return Array.isArray(t)?t.join(" "):t}const $Z=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rbe(t,e,r){for(const n in e)!Ts(e[n])&&!k_e(n,r)&&(t[n]=e[n])}function p9e({transformTemplate:t},e){return H.useMemo(()=>{const r=$Z();return KZ(r,e,t),Object.assign({},r.vars,r.style)},[e])}function v9e(t,e){const r=t.style||{},n={};return rbe(n,r,t),Object.assign(n,p9e(t,e)),n}function g9e(t,e){const r={},n=v9e(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r}const nbe=()=>({...$Z(),attrs:{}});function m9e(t,e,r,n){const i=H.useMemo(()=>{const a=nbe();return N_e(a,e,U_e(n),t.transformTemplate,t.style),{...a.attrs,style:{...a.style}}},[e]);if(t.style){const a={};rbe(a,t.style,t),i.style={...a,...i.style}}return i}const y9e=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ZZ(t){return typeof t!="string"||t.includes("-")?!1:!!(y9e.indexOf(t)>-1||/[A-Z]/u.test(t))}function w9e(t,e,r,{latestValues:n},i,a=!1,o){const l=(o??ZZ(t)?m9e:g9e)(e,n,i,t),u=d9e(e,typeof t=="string",a),c=t!==H.Fragment?{...u,...l,ref:r}:{},{children:f}=e,d=H.useMemo(()=>Ts(f)?f.get():f,[f]);return H.createElement(t,{...c,children:d})}function _9e({scrapeMotionValuesFromProps:t,createRenderState:e},r,n,i){return{latestValues:b9e(r,n,i,t),renderState:e()}}function b9e(t,e,r,n){const i={},a=n(t,{});for(const d in a)i[d]=sU(a[d]);let{initial:o,animate:s}=t;const l=g5(t),u=E_e(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),s===void 0&&(s=e.animate));let c=r?r.initial===!1:!1;c=c||o===!1;const f=c?s:o;if(f&&typeof f!="boolean"&&!v5(f)){const d=Array.isArray(f)?f:[f];for(let A=0;A<d.length;A++){const p=FZ(t,d[A]);if(p){const{transitionEnd:g,transition:m,...y}=p;for(const b in y){let x=y[b];if(Array.isArray(x)){const T=c?x.length-1:0;x=x[T]}x!==null&&(i[b]=x)}for(const b in g)i[b]=g[b]}}}return i}const ibe=t=>(e,r)=>{const n=H.useContext(m5),i=H.useContext(h5),a=()=>_9e(t,e,n,i);return r?a():bZ(a)},x9e=ibe({scrapeMotionValuesFromProps:WZ,createRenderState:$Z}),S9e=ibe({scrapeMotionValuesFromProps:H_e,createRenderState:nbe}),C9e=Symbol.for("motionComponentSymbol");function T9e(t,e,r){const n=H.useRef(r);H.useInsertionEffect(()=>{n.current=r});const i=H.useRef(null);return H.useCallback(a=>{a&&t.onMount?.(a),e&&(a?e.mount(a):e.unmount());const o=n.current;if(typeof o=="function")if(a){const s=o(a);typeof s=="function"&&(i.current=s)}else i.current?(i.current(),i.current=null):o(a);else o&&(o.current=a)},[e])}const abe=H.createContext({});function oC(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function E9e(t,e,r,n,i,a){const{visualElement:o}=H.useContext(m5),s=H.useContext(J_e),l=H.useContext(h5),u=H.useContext(YZ),c=u.reducedMotion,f=u.skipAnimations,d=H.useRef(null),A=H.useRef(!1);n=n||s.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:o,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:a}),A.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,g=H.useContext(abe);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&B9e(d.current,r,i,g);const m=H.useRef(!1);H.useInsertionEffect(()=>{p&&m.current&&p.update(r,l)});const y=r[p_e],b=H.useRef(!!y&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return xZ(()=>{A.current=!0,p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges())}),H.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),b.current=!1),p.enteringChildren=void 0)}),p}function B9e(t,e,r,n){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:f}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:obe(t.parent)),t.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&oC(s),visualElement:t,animationType:typeof a=="str
93ing"?a:"both",initialPromotionConfig:n,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function obe(t){if(t)return t.options.allowProjection!==!1?t.projection:obe(t.parent)}function oV(t,{forwardMotionProps:e=!1,type:r}={},n,i){n&&u9e(n);const a=r?r==="svg":ZZ(t),o=a?S9e:x9e;function s(u,c){let f;const d={...H.useContext(YZ),...u,layoutId:D9e(u)},{isStatic:A}=d,p=A9e(u),g=o(u,A);if(!A&&typeof window<"u"){M9e();const m=L9e(d);f=m.MeasureLayout,p.visualElement=E9e(t,g,d,i,m.ProjectionNode,a)}return E.jsxs(m5.Provider,{value:p,children:[f&&p.visualElement?E.jsx(f,{visualElement:p.visualElement,...d}):null,w9e(t,u,T9e(g,p.visualElement,c),g,A,e,a)]})}s.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=H.forwardRef(s);return l[C9e]=t,l}function D9e({layoutId:t}){const e=H.useContext(_Z).id;return e&&t!==void 0?e+"-"+t:t}function M9e(t,e){H.useContext(J_e).strict}function L9e(t){const e=ebe(),{drag:r,layout:n}=e;if(!r&&!n)return{};const i={...r,...n};return{MeasureLayout:r?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function R9e(t,e){if(typeof Proxy>"u")return oV;const r=new Map,n=(a,o)=>oV(a,o,t,e),i=(a,o)=>n(a,o);return new Proxy(i,{get:(a,o)=>o==="create"?n:(r.has(o)||r.set(o,oV(o,void 0,t,e)),r.get(o))})}const I9e=(t,e)=>e.isSVG??ZZ(t)?new uKe(e):new nKe(e,{allowProjection:t!==H.Fragment});class O9e extends g0{constructor(e){super(e),e.animationState||(e.animationState=AKe(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();v5(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let P9e=0;class k9e extends g0{constructor(){super(...arguments),this.id=P9e++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){const{initial:a,custom:o}=this.node.getProps();if(typeof a=="string"||typeof a=="object"&&a!==null&&!Array.isArray(a)){const s=sb(this.node,a,o);if(s){const{transition:l,transitionEnd:u,...c}=s;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);r&&!e&&i.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const N9e={animation:{Feature:O9e},exit:{Feature:k9e}};function cI(t){return{point:{x:t.pageX,y:t.pageY}}}const F9e=t=>e=>jZ(e)&&t(e,cI(e));function XM(t,e,r,n){return UL(t,e,F9e(r),n)}const sbe=({current:t})=>t?t.ownerDocument.defaultView:null,uae=(t,e)=>Math.abs(t-e);function U9e(t,e){const r=uae(t.x,e.x),n=uae(t.y,e.y);return Math.sqrt(r**2+n**2)}const cae=new Set(["auto","scroll"]);class lbe{constructor(e,r,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=yk(this.lastRawMoveEventInfo,this.transformPagePoint));const p=sV(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,m=U9e(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!m)return;const{point:y}=p,{timestamp:b}=ws;this.history.push({...y,timestamp:b});const{onStart:x,onMove:T}=this.handlers;g||(x&&x(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=yk(g,this.transformPagePoint),xi.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=sV(p.type==="pointercancel"?this.lastMoveEventInfo:yk(g,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,x),y&&y(p,x)},!jZ(e))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const l=cI(e),u=yk(l,this.transformPagePoint),{point:c}=u,{timestamp:f}=ws;this.history=[{...c,timestamp:f}];const{onSessionStart:d}=r;d&&d(e,sV(u,this.history));const A={passive:!0,capture:!0};this.removeListeners=sI(XM(this.contextWindow,"pointermove",this.handlePointerMove,A),XM(this.contextWindow,"pointerup",this.handlePointerUp,A),XM(this.contextWindow,"pointercancel",this.handlePointerUp,A)),s&&this.startScrollTracking(s)}startScrollTracking(e){let r=e.parentElement;for(;r;){const n=getComputedStyle(r);(cae.has(n.overflowX)||cae.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const r=this.scrollPositions.get(e);if(!r)return;const n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:i.x-r.x,y:i.y-r.y};a.x===0&&a.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,i),xi.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Yy(this.updatePoint)}}function yk(t,e){return e?{point:e(t.point)}:t}function fae(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sV({point:t},e){return{point:t,delta:fae(t,ube(e)),offset:fae(t,H9e(e)),velocity:Q9e(e,.1)}}function H9e(t){return t[0]}function ube(t){return t[t.length-1]}function Q9e(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=ube(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>Nc(e)));)r--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&i.timestamp-n.timestamp>Nc(e)*2&&(n=t[1]);const a=jf(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function j9e(t,{min:e,max:r},n){return e!==void 0&&t<e?t=n?_i(e,t,n.min):Math.max(t,e):r!==void 0&&t>r&&(t=n?_i(r,t,n.max):Math.min(t,r)),t}function dae(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function z9e(t,{top:e,left:r,bottom:n,right:i}){return{x:dae(t.x,r,i),y:dae(t.y,e,n)}}function hae(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function V9e(t,e){return{x:hae(t.x,e.x),y:hae(t.y,e.y)}}function G9e(t,e){let r=.5;const n=nu(t),i=nu(e);return i>n?r=kL(e.min,e.max-n,t.min):n>i&&(r=kL(t.min,t.max-i,e.min)),JA(0,1,r)}function K9e(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const M9=.35;function W9e(t=M9){return t===!1?t=0:t===!0&&(t=M9),{x:Aae(t,"left","right"),y:Aae(t,"top","bottom")}}function Aae(t,e,r){return{min:pae(t,e),max:pae(t,r)}}function pae(t,e){return typeof t=="number"?t:t[e]||0}const Y9e=new WeakMap;class $9e{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yo(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=f=>{r&&this.snapToCursor(cI(f).point),this.stopAnimation()},o=(f,d)=>{const{drag:A,dragPropagation:p,onDragStart:g}=this.getProps();if(A&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bGe(A),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_A(y=>{let b=this.getAxisMotionValue(y).get()||0;if(QA.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const T=x.layout.layoutBox[y];T&&(b=nu(T)*(parseFloat(b)/100))}}this.originPoint[y]=b}),g&&xi.update(()=>g(f,d),!1,!0),w9(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:A,dragDirectionLock:p,onDirectionLock:g,onDrag:m}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:y}=d;if(p&&this.currentDirection===null){this.currentDirection=X9e(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),m&&xi.update(()=>m(f,d),!1,!0)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();
vendor: 11,901 bytes, line 93
93this.panSession=new lbe(e,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:sbe(this.visualElement),element:this.visualElement.current})}stop(e,r){const n=e||this.latestPointerEvent,i=r||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&xi.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,r,n){const{drag:i}=this.getProps();if(!n||!wk(e,i,this.currentDirection))return;const a=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=j9e(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&oC(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=z9e(n.layoutBox,e):this.constraints=!1,this.elastic=W9e(r),i!==this.constraints&&!oC(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&_A(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=K9e(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!oC(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const a=XGe(n,i.root,this.visualElement.getTransformPagePoint());let o=V9e(i.layout.layoutBox,a);if(r){const s=r(YGe(o));this.hasMutatedConstraints=!!s,s&&(o=L_e(s))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=_A(c=>{if(!wk(c,r,this.currentDirection))return;let f=l&&l[c]||{};(o===!0||o===c)&&(f={min:0,max:0});const d=i?200:1e6,A=i?40:1e7,p={type:"inertia",velocity:n?e[c]:0,bounceStiffness:d,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(s)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return w9(this.visualElement,e),n.start(NZ(e,n,0,r,this.visualElement,!1))}stopAnimation(){_A(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){_A(r=>{const{drag:n}=this.getProps();if(!wk(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[r],l=a.get()||0;a.set(e[r]-_i(o,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!oC(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_A(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=G9e({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),_A(o=>{if(!wk(o,e,null))return;const s=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];s.set(_i(l,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Y9e.set(this.visualElement,this);const e=this.visualElement.current,r=XM(e,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps(),d=u.target,A=d!==e&&BGe(d);c&&f&&!A&&this.start(u)});let n;const i=()=>{const{dragConstraints:u}=this.getProps();oC(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Z9e(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,o=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),xi.read(i);const s=UL(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(_A(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())}));return()=>{s(),r(),o(),l&&l(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=M9,dragMomentum:s=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function vae(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Z9e(t,e,r){const n=xie(t,vae(r)),i=xie(e,vae(r));return()=>{n(),i()}}function wk(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function X9e(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class q9e extends g0{constructor(e){super(e),this.removeGroupControls=Gf,this.removeListeners=Gf,this.controls=new $9e(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gf}update(){const{dragControls:e}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};e!==r&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const lV=t=>(e,r)=>{t&&xi.update(()=>t(e,r),!1,!0)};class J9e extends g0{constructor(){super(...arguments),this.removePointerDownListener=Gf}onPointerDown(e){this.session=new lbe(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sbe(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:lV(e),onStart:lV(r),onMove:lV(n),onEnd:(a,o)=>{delete this.session,i&&xi.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=XM(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let uV=!1;class e7e extends H.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=e;a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),uV&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),lU.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,{projection:o}=n;return o&&(o.isPresent=a,e.layoutDependency!==r&&o.setOptions({...o.options,layoutDependency:r}),uV=!0,i||e.layoutDependency!==r||r===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||xi.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:r}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=r,n.root.didUpdate(),QZ.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;uV=!0,i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function cbe(t){const[e,r]=q_e(),n=H.useContext(_Z);return E.jsx(e7e,{...t,layoutGroup:n,switchLayoutGroup:H.useContext(abe),isPresent:e,safeToRemove:r})}const t7e={pan:{Feature:J9e},drag:{Feature:q9e,ProjectionNode:X_e,MeasureLayout:cbe}};function gae(t,e,r){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",r==="Start");const i="onHover"+r,a=n[i];a&&xi.postRender(()=>a(e,cI(e)))}class r7e extends g0{mount(){const{current:e}=this.node;e&&(this.unmount=SGe(e,(r,n)=>(gae(this.node,n,"Start"),i=>gae(this.node,i,"End"))))}unmount(){}}class n7e extends g0{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sI(UL(this.node.current,"focus",()=>this.onFocus()),UL(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mae(t,e,r){const{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap",r==="Start");const i="onTap"+(r==="End"?"":r),a=n[i];a&&xi.postRender(()=>a(e,cI(e)))}class i7e extends g0{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=MGe(e,(i,a)=>(mae(this.node,a,"Start"),(o,{success:s})=>mae(this.node,o,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:n?.tap===!1})}unmount(){}}const L9=new WeakMap,cV=new WeakMap,a7e=t=>{const e=L9.get(t.target);e&&e(t)},o7e=t=>{t.forEach(a7e)};function s7e({root:t,...e}){const r=t||document;cV.has(r)||cV.set(r,{});const n=cV.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(o7e,{root:t,...e})),n[i]}function l7e(t,e,r){const n=s7e(e);return L9.set(t,r),n.observe(t),()=>{L9.delete(t),n.unobserve(t)}}const u7e={some:0,all:1};class c7e extends g0{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:u7e[i]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};this.stopObserver=l7e(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(f7e(e,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function f7e({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const d7e={inView:{Feature:c7e},tap:{Feature:i7e},focus:{Feature:n7e},hover:{Feature:r7e}},h7e={layout:{ProjectionNode:X_e,MeasureLayout:cbe}},A7e={...N9e,...d7e,...t7e,...h7e},na=R9e(A7e,I9e);function eE({trigger:t,items:e,onChange:r,selectedValue:n,dropdownMenuTriggerClassName:i,contentClassName:a}){const[o,s]=H.useState(!1);return E.jsxs(A6e,{open:o,onOpenChange:s,modal:!1,children:[E.jsx(p6e,{className:ra("",i),asChild:!0,children:t}),E.jsx(v6e,{children:E.jsx(ZM,{children:o&&E.jsx(g6e,{asChild:!0,forceMount:!0,className:ra("bg-primary-white text-primary-dark-blue shadow-lg rounded-lg border border-primary-border p-2 min-w-fit z-50 mt-1",a),children:E.jsx(na.div,{initial:{opacity:0,scale:.95,y:-5}
93,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-5},transition:{duration:.15,ease:"easeOut"},children:e.map((l,u)=>{const c=n!==void 0&&l.value===n;return E.jsxs(m6e,{disabled:l.disabled,className:ra("relative flex items-center justify-between gap-3 rounded-md px-3 py-2 text-sm cursor-pointer select-none outline-none","hover:bg-primary-clean-water",c&&"bg-primary-clean-water font-medium"),onSelect:()=>r(l.value),children:[l.label,c&&E.jsx(aQe,{className:"w-3.5 h-3.5 shrink-0"})]},u)})})})})})]})}function p7e(t){return mr({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"16 16 12 12 8 16"},child:[]},{tag:"line",attr:{x1:"12",y1:"12",x2:"12",y2:"21"},child:[]},{tag:"path",attr:{d:"M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"},child:[]},{tag:"polyline",attr:{points:"16 16 12 12 8 16"},child:[]}]})(t)}function v7e(t){return mr({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(t)}function g7e(t){return mr({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},child:[]},{tag:"line",attr:{x1:"12",y1:"9",x2:"12",y2:"13"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12.01",y2:"17"},child:[]}]})(t)}function fbe(t){return mr({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12.01",y2:"16"},child:[]}]})(t)}const m7e=({message:t})=>E.jsxs("span",{className:"inline-flex items-center bg-red-100 text-red-800 rounded-2xl px-3 py-1 text-xs font-normal",children:[E.jsx(fbe,{className:"w-3 h-3 mr-1"}),t||"An error occurred"]});function y7e(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"},child:[]}]})(t)}function w7e(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"circle",attr:{cx:"12",cy:"14",r:"3.2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"14",r:"5",fill:"none"},child:[]},{tag:"path",attr:{d:"M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6zM16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.33z"},child:[]},{tag:"path",attr:{fill:"none",d:"M24 0H0v24h24z"},child:[]},{tag:"path",attr:{d:"M17 9c0-1.11-.89-2-2-2V4H9L7.17 6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9zm-5 10c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},child:[]}]})(t)}function _7e(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"},child:[]}]})(t)}function b7e(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99zM12 6c2.76 0 5 2.24 5 5v7H7v-7c0-2.76 2.24-5 5-5m0-4.5c-.83 0-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-2 2v1h18v-1l-2-2v-6c0-3.35-2.3
936-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5M11 8h2v4h-2zm0 6h2v2h-2z"},child:[]}]})(t)}var dbe=(t=>(t.GRID="grid",t.GENERATOR="generator",t.SOLAR="solar",t))(dbe||{});const x7e=new Date,px=x7e.toISOString(),hbe=px.split("T")[0],S7e=new Date(Date.now()-300*1e3).toISOString(),C7e=new Date(Date.now()-120*1e3).toISOString(),T7e=new Date(Date.now()-1440*60*1e3).toISOString(),HL="demo-company",E7e=[dbe.GRID],Qa=[{name:"PLTCE348",lat:6.36271,lng:2.4648666666666665,condition:62,category:an.TRANSFORMER},{name:"PLTCE086",lat:6.364357665623926,lng:2.473503782333547,condition:88,category:an.TRANSFORMER},{name:"PLTCE 614",lat:6.365443333333334,lng:2.4764416666666667,condition:45,category:an.TRANSFORMER},{name:"PLTCE 137",lat:6.365916651159955,lng:2.471166674436645,condition:52,category:an.TRANSFORMER},{name:"PLTCE 132",lat:6.365961910298839,lng:2.4695980943784104,condition:108,category:an.TRANSFORMER},{name:"PLTCE064",lat:6.366339907040612,lng:2.4665397607797392,condition:0,category:an.TRANSFORMER},{name:"Station MRS",lat:6.367264087627725,lng:2.4713447955187777,condition:71,category:an.SUBSTATION_FEEDER},{name:"SLTCE 097",lat:6.367455623413315,lng:2.47208395754926,condition:39,category:an.TRANSFORMER},{name:"PEB",lat:6.367588176543389,lng:2.4745087732549194,condition:65,category:an.TRANSFORMER},{name:"PLTCE 363",lat:6.3632996601746115,lng:2.4878531836863416,condition:95,category:an.TRANSFORMER},{name:"C306",lat:6.364606666666666,lng:2.4801800000000003,condition:0,category:an.TRANSFORMER},{name:"PLTCE 615",lat:6.366833333333333,lng:2.485515,condition:58,category:an.TRANSFORMER},{name:"PLTCE 616",lat:6.368341658448001,lng:2.4873762116368288,condition:22,category:an.SUBSTATION_FEEDER},{name:"C304",lat:6.362531257001219,lng:2.4613359959378824,condition:77,category:an.TRANSFORMER},{name:"C188",lat:6.358218448333333,lng:2.461688023333333,condition:66,category:an.TRANSFORMER},{name:"PLTCE 189",lat:6.357798911666667,lng:2.4573868016666665,condition:112,category:an.TRANSFORMER},{name:"PLTCE 298",lat:6.365608269999998,lng:2.4647877333333335,condition:84,category:an.TRANSFORMER}].map((t,e)=>({id:`dummy-device-${e+1}`,asset_name:t.name,company_id:HL,company:void 0,asset_type:"Transformer",description:"Demo transformer for illustration purposes",asset_capacity:500,created_at:"2025-01-01T00:00:00Z",gateway_serial:`DEMO-GW-${e+1}`,tariff:"Standard",transformer_year:"2019",address_of_tfo:"Demo Feeder Line",type_of_position:"Overhead",nature_of_position:"Urban",latitude:t.lat,longitude:t.lng,nature_of_transformer:"Distribution",is_active:t.condition!==0,condition:t.condition,last_seen:S7e,is_realtime:e%6===0?"true":"false",status:t.condition===0?"offline":"online",classification:{id:e%2===0?"demo-zone-a":"demo-zone-b",name:e%2===0?"Zone A":"Zone B",level_name:"Zone"},device_category:t.category,substation_name:t.category===an.SUBSTATION_FEEDER?"Demo Substation":void 0,feeder_name:t.category===an.SUBSTATION_FEEDER?"Feeder A":void 0,feeder_voltage_level:t.category===an.SUBSTATION_FEEDER?33:void 0})),tE=t=>(Qa.find(e=>e.id===t)?.status??Qa[0].status)==="offline",yae=[{name:"Lagos, Nigeria",lat:6.5244,lng:3.3792},{name:"Abuja, Nigeria",lat:9.0765,lng:7.3986},{name:"Port Harcourt, Nigeria",lat:4.8156,lng:7.0498},{name:"Kano, Nigeria",lat:12.0022,lng:8.592}],wae={lat:Qa.reduce((t,e)=>t+e.latitude,0)/Qa.length,lng:Qa.reduce((t,e)=>t+e.longitude,0)/Qa.length},R9=yae[Math.floor(Math.random()*yae.length)],B7e=R9.name,fV=Qa.map(t=>({...t,latitude:R9.lat+(t.latitude-wae.lat),longitude:R9.lng+(t.longitude-wae.lng)})),D7e={page:1,total_pages:1,page_size:Qa.length,total_results:Qa.length,results:Qa},M7e={total_devices:Qa.length},Abe=Qa.filter(t=>t.status==="online").length,L7e=Qa.length-Abe,pbe={total:Qa.length,dataset:[{key:"active",value:Abe},{key:"offline",value:L7e}],time:px},R7e={currency:"NGN",time:px,number_of_sites:Qa.length,avg_availability:98.4,total_revenue:1250430,current_load:452.6,total_consumption:18234.5},vbe=[{id:"demo-zone-a",name:"Zone A",level_name:"Zone",children:[],asset_count:9,company_id:HL},{id:"demo-zone-b",name:"Zone B",level_name:"Zone",children:[],asset_count:8,company_id:HL}],I9={sites_consumption:Qa.map((t,e)=>({gateway_serial:t.gateway_serial,asset_name:t.asset_name,total_consumption:900+e*137.4,latitude:t.latitude,longitude:t.longitude}))},_ae=1440*60*1e3,dV=t=>{const[e,r,n]=t.split("-").map(Number);return new Date(Date.UTC(e,r-1,n))},bae=t=>t.toISOString().split("T")[0],gbe=(t,e,r=!1)=>{const n=dV(t||hbe),i=e?dV(e):n,a=Math.max(1,Math.round((i.getTime()-n.getTime())/_ae)+1);if(a<=1){const o=bae(n);return{dataset:Array.from({length:24},(s,l)=>
93{const u=180+120*Math.sin((l-6)/24*Math.PI*2)+40*Math.sin(l/2),c=r?0:Math.max(20,Number(u.toFixed(2)));return{timestamp:`${o}T${String(l).padStart(2,"0")}:00:00Z`,avg:c,min:r?0:Number((c*.8).toFixed(2)),max:r?0:Number((c*1.2).toFixed(2))}})}}return{dataset:Array.from({length:a},(o,s)=>{const l=new Date(n.getTime()+s*_ae),u=180+90*Math.sin(s/7*Math.PI*2)+30*Math.sin(s/3),c=r?0:Math.max(20,Number(u.toFixed(2)));return{timestamp:bae(l),avg:c,min:r?0:Number((c*.75).toFixed(2)),max:r?0:Number((c*1.25).toFixed(2))}})}},I7e={dataset:[["site","consumption"],...I9.sites_consumption.map(t=>[t.asset_name,Number(t.total_consumption.toFixed(1))])],total_consumption:Number(I9.sites_consumption.reduce((t,e)=>t+e.total_consumption,0).toFixed(1))},uU=Qa.map((t,e)=>({device_id:t.id,device_name:t.asset_name,device_type:"transformer",device_capacity:t.asset_capacity,current_unbalance:4+e%6*3,voltage_unbalance:1.5+e%6*.6,power_factor:Number((.98-e%6*.03).toFixed(2)),load_ratio:40+e%6*12})),O7e={page:1,total_pages:Math.ceil(uU.length/Qi),page_size:Qi,total_results:uU.length,time:px,results:uU.slice(0,Qi)},cU=Qa.map((t,e)=>({device_id:t.id,device_name:t.asset_name,load_ratio:60+e%5*15,current_unbalance:5+e%5*4,voltage_unbalance:2+e%5*1.2})),P7e={page:1,total_pages:Math.ceil(cU.length/Qi),page_size:Qi,total_results:cU.length,time:px,results:cU.slice(0,Qi)},k7e=(t=!1)=>({currency:"NGN",time:new Date().toISOString(),current_load:t?0:62.4,reactive_power:t?0:18.2,power_factor:t?0:.94,frequency:t?0:50.1,apparent_power:t?0:66.8,total_revenue:t?0:48250,total_consumption:t?0:812.4,avg_availability:t?0:96.2,power_cuts:t?0:1}),N7e={last_seen:C7e,time:px,online:!0},F7e={last_seen:T7e,time:px,online:!1},U7e=(t=!1)=>{if(t)return{load:0,time:new Date().toISOString()};const e=68,r=(Math.random()*2-1)*12;return{load:Math.max(0,Number((e+r).toFixed(1))),time:new Date().toISOString()}},H7e=(t=!1)=>({current_phase_a:t?0:45.2,current_phase_b:t?0:47.8,current_phase_c:t?0:44.1,time:new Date().toISOString()}),Q7e=(t=!1)=>({voltage_phase_a:t?0:221,voltage_phase_b:t?0:224,voltage_phase_c:t?0:219,time:new Date().toISOString()}),j7e=(t=!1)=>({harmonic_distortion_phase_a:t?0:2.1,harmonic_distortion_phase_b:t?0:3.4,harmonic_distortion_phase_c:t?0:2.8,time:new Date().toISOString()}),z7e=(t=!1)=>({power_cuts:t?0:1,avg_availability:t?0:96.2,cO2_emissions:t?0:.8,total_consumption:t?0:812.4}),V7e=(t=!1)=>({window:{period:"month",start:"2026-09-01",end:"2026-09-23",is_final:!1,complete_days:23,reference_days:30,data_through:"2026-09-24T08:59:00",outage_minus_15_at_min:46,outage_minus_25_at_min:184,uptime_floor_min:11040},site:t?{status:"insufficient_data",grade:null,total_score:null,components:null,online_min:2880,outage_min:30240,days_reported:23,pct_underloaded:4.2,kwh:412.7}:{status:"graded",grade:"B",total_score:82.66,components:{load:23.4,power_cut:15.87,current_unbalance:14.1,neutral_current:12.85,thd:7.44,power_factor:9},online_min:33092,outage_min:28,days_reported:23,pct_underloaded:11.6,kwh:18342.9}}),y5=Array.from({length:24},(t,e)=>`${hbe}T${String(e).padStart(2,"0")}:00:00Z`),z_=(t,e)=>y5.map((r,n)=>Number((t+e*Math.sin((n-6)/24*Math.PI*2)).toFixed(2))),V_=()=>y5.map(()=>0),G7e=(t=!1)=>({dataset:{times:y5,red_phase:t?V_():z_(221,4),yellow_phase:t?V_():z_(224,4),blue_phase:t?V_():z_(219,4)}}),K7e=(t=!1)=>({dataset:{times:y5,red_phase:t?V_():z_(45,12),yellow_phase:t?V_():z_(48,12),blue_phase:t?V_():z_(44,12),neutral_phase:t?V_():z_(3,1)}}),w5=({company_id:t,isFromFinance:e,isDummy:r=!1})=>{const{t:n}=Vt(),i=yh(),[a,o]=H.useState(1),[s,l]=H.useState({label:n("common.all_status"),value:""}),[u,c]=H.useState(""),[f,d]=H.useState(""),A=Y=>{d(Y),o(1)},p=[{header:n("table.device_name"),accessorKey:"device_name",cell:({row:Y})=>{const G=Y.original?.asset_name||"-",K=Y.original?.thermal_image_url;return E.jsxs("span",{className:"flex items-center gap-1",children:[G,K&&E.jsxs("span",{className:"relative group flex items-center",children:[E.jsx(w7e,{className:"w-4 h-4 -mt-1 cursor-pointer"}),E.jsx("span",{className:`absolute left-1/4 -translate-x-1/4 -top-8 
94                           whitespace-nowrap rounded-md bg-black 
95                           px-2 py-1 text-xs text-white 
96                           opacity-0 group-hover:opacity-100 
97                           transition-opacity duration-200 
98                           pointer-events-none z-50`,children:n("info.has_thermal_image")})]})]})}}
98,{header:n("table.region"),accessorKey:"device_region",cell:({row:Y})=>{const G=Y.original?.classification?.name||"N/A";return E.jsx("span",{children:G})}},{header:n("site_details.asset_type"),accessorKey:"asset_type",cell:({row:Y})=>{const K=r5((X=>{switch(X){case"transformer":return n("asset_type.transformer");case"generator":return n("asset_type.generator");case"battery":return n("asset_type.battery");default:return X}})(Y.original?.asset_type)||"")||"N/A";return E.jsx("span",{children:K})}},{header:n("site_details.asset_capacity"),accessorKey:"asset_capacity",cell:({row:Y})=>{const G=Y.original?.asset_capacity||0;return E.jsx("span",{children:G})}},{header:n("common.status"),accessorKey:"status",cell:({row:Y})=>Y.original?.status==="online"?E.jsx(_C,{variant:"green",children:n("common.online")}):E.jsx(_C,{variant:"grey",children:n("common.offline")})}],g=[{label:n("common.all_status"),value:""},{label:n("common.online"),value:"online"},{label:n("common.offline"),value:"offline"}],{data:m,isLoading:y,error:b}=hr(["/devices","fetchAllDevices",t,a,f,s.value,u],"/devices",{page:a,page_size:Qi,company_id:t,type:s.value,classification_id:u,search:f},void 0,{isDummy:r,data:D7e}),{data:x,isLoading:T}=hr(["/get-total-devices","GetTotalNoOfDevice",t],"/get-total-devices",{company_id:t},void 0,{isDummy:r,data:M7e}),{data:B,isLoading:R}=hr(["/classifications","fetchAssetClassifications",t],"/classifications/",{company_id:t},{},{isDummy:r,data:vbe}),I=Y=>i(r?`/dashboard/admin/demo/site/${Y.id}`:`/dashboard/${e?"finance":"operations"}/site/${Y.id}`),N=Y=>{const G=g.find(K=>K.value===Y);G&&(l(G),o(1))},F=Y=>{c(Y),o(1)},Q=Y=>{o(Y)},j=y,W=m?.results.map(Y=>({"Device Name":Y.asset_name,Region:Y?.classification?.name||"N/A","Asset Type":Y?.asset_type||"N/A","Asset Capacity":Y?.asset_capacity||0,Status:Y.is_active?E.jsx(_C,{variant:"green",children:n("common.online")}):E.jsx(_C,{variant:"grey",children:n("common.offline")}),...Y}))??[],V=p0({count:m?.total_results,currentPage:a,itemsPerPage:Qi});return E.jsxs(nr,{children:[E.jsxs("div",{className:"flex flex-col gap-4 md:flex-row justify-between w-full mb-2",children:[E.jsxs("div",{className:"flex gap-2 items-start",children:[E.jsx("h3",{className:"heading-regular",children:"Sites"}),T?E.jsx("span",{className:"w-12.5 max-w-50px",children:E.jsx(qA,{})}):E.jsx("span",{className:"bg-primary-yellow text-sm p-2 rounded-lg flex items-center justify-center h-6",children:x?.total_devices??0})]}),E.jsxs("div",{className:"flex flex-col sm:flex-row flex-1 gap-3 sm:items-center mb-1 max-w-lg justify-end",children:[R&&E.jsx(qA,{}),B&&E.jsxs("div",{className:"flex flex-col gap-2",children:[E.jsx("span",{className:"p-small font-medium text-primary-dark-blue/70",children:n("label.region")}),E.jsx(V$,{data:B,selectedId:u,disableSelect:j,onSelect:F,showAll:!0})]}),E.jsxs("div",{className:"flex flex-col gap-2",children:[E.jsx("span",{className:"p-small font-medium text-primary-dark-blue/70",children:n("common.status")}),E.jsx(eE,{trigger:E.jsxs("button",{className:"text-md font-medium cursor-pointer inline-flex items-center gap-2 rounded-full px-4 py-2 border border-primary-border text-primary-dark-blue bg-white hover:bg-gray-50 transition-colors",children:[s.label,E.jsx(X$,{className:"w-4 h-4"})]}),items:g,onChange:N})]}),B&&E.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[E.jsx("span",{className:"p-small font-medium text-primary-dark-blue/70",children:n("label.search")}),E.jsx(Cye,{onSearch:A,className:""})]})]})]}),E.jsx("div",{className:"mt-5 w-full min-w-full! h-full",children:E.jsx(wg,{isLoading:j,error:b,data:W,columns:p,pagination:V,currentPage:a,onPageChange:Q,emptyStateImage:"",emptyStateText:void 0,onRowClick:I})})]})},W7e=({deviceId:t,site:e})=>{const{t:r,confirmLastSeen:n}=Vt(),{data:i,isLoading:a,isError:o}=hr(["/device-status",t],`/device-status/${t}`,{},{...ri,enabled:!!t}),l=n(new Date(i?.last_seen??""),new Date(i?.time??""),e)===r("common.online");return a?E.jsx(qA,{}):o?E.jsx(m7e,{}):l?E.jsx(_C,{variant:"green",children:r("common.online")}):E.jsx(_C,{variant:"grey",children:r("common.offline")})};function Y7e({company_id:t}){return E.jsx(w5,{company_id:t,isFromFinance:!1})}function xae(){const{id:t}=du();return E.jsx(Y7e,{company_id:t})}const mbe="/assets/smarteriselogo-dqUrjTju.png",ybe="/assets/smarteriselogo-colored-Kfq5LTa5.png";function wbe({className:t,logo:e}){const{t:r}=Vt();return E.jsxs("div",{className:`flex-none mt-auto pt-4 border-primary-border border h-14 w-40 relative p-2 rounded-md ${t} text-white`,children:[E.jsx("div",{className:"w-[60%] absolute -top-3.75 bg-inherit flex items-center justify-center text-sm font-medium left-1/2 transform -translate-x-1/2",children:r("sidebar.powered_by")}),E.jsx("div",{className:"flex justify-center items-center w-full",children:E.jsx("img",{src:e||mbe,alt:"Smarterise logo",className:"max-w-32.5"})})]})}const Sae=t=>{let e;const r=new Set,n=(u,c)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const d=e;e=c??(typeof f!="object"||f===null)?f:Object.assign({},e,f),r.forEach(A=>A(e,d))}},i=()=>e,s={setState:n,getState:i,getInitialState:()=>l,subscribe:u=>(r.add(u),()=>r.delete(u))},l=e=t(n,i,s);return s},$7e=(t=>t?Sae(t):Sae),Z7e=t=>t;function X7e(t,e=Z7e){const r=ue.useSyncExternalStore(t.subscribe,ue.useCallback(()=>e(t.getState()),[t,e]),ue.useCallback(()=>e(t.getInitialState()),[t,e]));return ue.useDebugValue(r),r}const Cae=t=>{const e=$7e(t),r=n=>X7e(e,n);return Object.assign(r,e),r},_5=(t=>t?Cae(t):Cae);function q7e(t,e){let r;try{r=t()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),s=(a=r.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>r.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>r.removeItem(i)}}const O9=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then(n){return O9(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return O9(n)(r)}}}},J7e=(t,e)=>(r,n,i)=>{let a={storage:q7e(()=>window.localStorage),partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1,s=0;const l=new Set,u=new Set;let c=a.storage;if(!c)return t((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...m)},n,i);const f=()=>{const m=a.partialize({...n()});return c.setItem(a.name,{state:m,version:a.version})},d=i.setState;i.setState=(m,y)=>(d(m,y),f());const A=t((...m)=>(r(...m),f()),n,i);i.getInitialState=()=>A;let p;const g=()=>{var m,y;if(!c)return;const b=++s;o=!1,l.forEach(T=>{var B;return T((B=n())!=null?B:A)});const x=((y=a.onRehydrateStorage)==null?void 0:y.call(a,(m=n())!=null?m:A))||void 0;return O9(c.getItem.bind(c))(a.name).then(T=>{if(T)if(typeof T.version=="number"&&T.version!==a.version){if(a.migrate){const B=a.migrate(T.state,T.version);return B instanceof Promise?B.then(R=>[!0,R]):[!0,B]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,T.state];return[!1,void 0]}).then(T=>{var B;if(b!==s)return;const[R,I]=T;if(p=a.merge(I,(B=n())!=null?B:A),r(p,!0),R)return f()}).then(()=>{b===s&&(x?.(n(),void 0),p=n(),o=!0,u.forEach(T=>T(p)))}).catch(T=>{b===s&&x?.(void 0,T)})};return i.persist={setOptions:m=>{a={...a,...m},m.storage&&(c=m.storage)},clearStorage:()=>{++s,c?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(l.add(m),()=>{l.delete(m)}),onFinishHydration:m=>(u.add(m),()=>{u.delete(m)})},a.skipHydration||g(),p||A},eWe=J7e,XZ=_5()(eWe(t=>({language:iu.EN_US,setLanguage:e=>{t({language:e}),Ms.changeLanguage(e)}}),{name:"language-storage",onRehydrateStorage:()=>t=>{t?.language&&Ms.changeLanguage(t.language)}})),vx=()=>XZ(t=>t.language),tWe=()=>XZ(t=>t.setLanguage),rWe=["auth-storage","auth0Token","returnTo"],nWe=()=>{try{rWe.forEach(t=>localStorage.removeItem(t)),Object.keys(localStorage).forEach(t=>{t.startsWith("@@auth0spajs@@")&&localStorage.removeItem(t)})}catch{}},cT=t=>!!t&&t.startsWith("/")&&!t.startsWith("//")&&!t.startsWith("/\\"),qZ="auth.session_hint",iWe=()=>{try{localStorage.setItem(qZ,"1")}catch{}},O4=()=>{try{localStorage.removeItem(qZ)}catch{}},aWe=()=>{try{return localStorage.getItem(qZ)==="1"}catch{return!1}},JZ="auth.restore",oWe=6e4,_be=(t,e=!1)=>{try{sessionStorage.setItem(JZ,JSON.stringify({returnTo:t,at:Date.now(),interactive:e}))}catch{}},bbe=()=>{try{const t=sessionStorage.getItem(JZ);return t?JSON.parse(t):null}catch{return null}},QL=()=>{try{sessionStorage.removeItem(JZ)}catch{}},sWe=()=>{const t=bbe();return aWe()&&(!t||Date.now()-t.at>oWe)},rc=_5()((t,e)=>({isAuthenticated:!1,user:null,login:r=>{t({isAuthenticated:!0,user:r}),iWe(),QL();const n=jFe(r?.company?.language);XZ.getState().setLanguage(n)},logout:()=>{const{isAuthenticated:r,user:n}=e();r&&n&&Ov.post("/user/logout/").catch(()=>{}),t({isAuthenticated:!1,user:null}),O4(),QL()}}
98)),lWe=({item:t,isOpen:e,isActive:r})=>E.jsxs("li",{className:"text-lg",children:[E.jsx(ig,{to:t.link,children:E.jsxs("div",{className:ah("flex items-center justify-between space-x-2 rounded-lg px-3 py-1 text-[14px] cursor-pointer transition-colors duration-200",e?"px-3 py-1":"flex items-center justify-center px-5 py-2",r?"yellow-gradient text-primary-dark-blue":"text-primary-white hover:bg-primary-yellow hover:text-primary-dark-blue"),children:[E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx(t.icon,{className:ah("text-lg transition-colors duration-200")}),E.jsx(ZM,{mode:"wait",children:e&&E.jsx(na.span,{className:"transition-colors duration-200 whitespace-nowrap",initial:{opacity:0,width:0},animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{duration:.2},children:t.label})})]}),E.jsx(ZM,{children:t.children&&e&&E.jsx(na.div,{animate:{rotate:r?180:0},transition:{type:"spring",stiffness:300,damping:20},initial:{opacity:0},exit:{opacity:0},children:E.jsx(y7e,{className:ah("transition-colors duration-200",r?"text-primary-dark-blue":"text-primary-white")})})})]})}),E.jsx(ZM,{children:t.children&&r&&e&&E.jsx(na.div,{className:"pl-8 pt-2 flex flex-col gap-3 text-sm overflow-hidden",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25},children:t.children.map(n=>E.jsx(ig,{to:n.href,children:E.jsx(na.span,{className:"text-primary-white hover:text-primary-dark-blue transition-colors duration-200",initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},children:n.label})},n.label))})})]}),uWe=({items:t,isOpen:e})=>{const r=fu(),{user:n}=rc(),i=r.pathname.startsWith("/dashboard/admin/demo"),a=H.useMemo(()=>{let o=t.find(s=>{const l=s.link.includes("admin/demo")?5:4;return r.pathname.startsWith(s.link.split("/").slice(0,l).join("/"))});return!o&&r.pathname.includes("/site/")&&(o=t.find(s=>s.link.includes("/sites"))),o?.label||""},[r.pathname,t]);return E.jsxs(na.div,{className:"bg-primary-dark-blue border-e border-primary-border text-sm h-full fixed z-40 flex flex-col",style:{padding:S$},animate:{width:e?240:80},transition:{type:"spring",stiffness:260,damping:25},children:[E.jsx(ig,{to:n?.access_level===fa.ADMIN||n?.access_level===fa.MANAGER?"/":"#",className:"flex justify-between items-center w-full flex-none bg-white/80 py-2 px-4 rounded-lg",children:E.jsx("img",{src:i?"https://res.cloudinary.com/dfn84o2fl/image/upload/v1777461131/dummy_energy_jzhqup.png":(e?n?.company.logo:n?.company?.small_logo)||mbe,alt:i?"Demo":n?.company.name,className:ah(e?"max-h-15":"max-h-50","transition-all duration-300")})}),E.jsx("ul",{className:"mt-10 space-y-5 flex-none",children:t.map(o=>E.jsx(lWe,{item:o,isOpen:e,isActive:a===o.label},o.label))}),e&&!i&&n&&!n?.company.name.includes("Smarterise")&&E.jsx(wbe,{className:"w-full bg-inherit"})]})};function cWe(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M289.7 403c-6.1 0-11.4 4.2-12.7 10.2-1 4.5-2.7 8.2-5 10.9-1.3 1.5-5.1 5.9-16.1 5.9-11 0-14.8-4.5-16.1-5.9-2.3-2.7-4-6.4-5-10.9-1.3-6-6.6-10.2-12.7-10.2-8.4 0-14.5 7.8-12.7 15.9 5 22.3 21 37.1 46.5 37.1s41.5-14.7 46.5-37.1c1.8-8.1-4.4-15.9-12.7-15.9zM412 352.2c-15.4-20.3-45.7-32.2-45.7-123.1 0-93.3-41.2-130.8-79.6-139.8-3.6-.9-6.2-2.1-6.2-5.9v-2.9c0-13.3-10.8-24.6-24-24.6h-.6c-13.2 0-24 11.3-24 24.6v2.9c0 3.7-2.6 5-6.2 5.9-38.5 9.1-79.6 46.5-79.6 139.8 0 90.9-30.3 102.7-45.7 123.1-9.9 13.1-.5 31.8 15.9 31.8h280.1c16.1 0 25.4-18.8 15.6-31.8zm-39 5.8H139.8c-3.8 0-5.8-4.4-3.3-7.3 7-8 14.7-18.5 21-33.4 9.6-22.6 14.3-51.5 14.3-88.2 0-37.3 7-66.5 20.9-86.8 12.4-18.2 27.9-25.1 38.7-27.6 8.4-2 14.4-5.8 18.6-10.5 3.2-3.6 8.7-3.8 11.9-.2 5.1 5.7 12 9.1 18.8 10.7 10.8 2.5 26.3 9.4 38.7 27.6 13.9 20.3 20.9 49.5 20.9 86.8 0 36.7 4.7 65.6 14.3 88.2 6.5 15.2 14.4 25.9 21.5 33.9 2.2 2.7.4 6.8-3.1 6.8z"},child:[]}]})(t)}function eX(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M312 372c-7.7 0-14 6.3-14 14 0 9.9-8.1 18-18 18H94c-9.9 0-18-8.1-18-18V126c0-9.9 8.1-18 18-18h186c9.9 0 18 8.1 18 18 0 7.7 6.3 14 14 14s14-6.3 14-14c0-25.4-20.6-46-46-46H94c-25.4 0-46 20.6-46 46v260c0 25.4 20.6 46 46 46h186c25.4 0 46-20.6 46-46 0-7.7-6.3-14-14-14z"},child:[]},{tag:"path",attr:{d:"M372.9 158.1c-2.6-2.6-6.1-4.1-9.9-4.1-3.7 0-7.3 1.4-9.9 4.1-5.5 5.5-5.5 14.3 0 19.8l65.2 64.2H162c-7.7 0-14 6.3-14 14s6.3 14 14 14h256.6L355 334.2c-5.4 5.4-5.4 14.3 0 19.8l.1.1c2.7 2.5 6.2 3.9 9.8 3.9 3.8 0 7.3-1.4 9.9-4.1l82.6-82.4c4.3-4.3 6.5-9.3 6.5-14.7 0-5.3-2.3-10.3-6.5-14.5l-84.5-84.2z"},child:[]}]})(t)}function fWe(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(t)}function sC(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"User"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M17.438,21.937H6.562a2.5,2.5,0,0,1-2.5-2.5V18.61c0-3.969,3.561-7.2,7.938-7.2s7.938,3.229,7.938,7.2v.827A2.5,2.5,0,0,1,17.438,21.937ZM12,12.412c-3.826,0-6.938,2.78-6.938,6.2v.827a1.5,1.5,0,0,0,1.5,1.5H17.438a1.5,1.5,0,0,0,1.5-1.5V18.61C18.938,15.192,15.826,12.412,12,12.412Z"},child:[]},{tag:"path",attr:{d:"M12,9.911a3.924,3.924,0,1,1,3.923-3.924A3.927,3.927,0,0,1,12,9.911Zm0-6.847a2.924,2.924,0,1,0,2.923,2.923A2.926,2.926,0,0,0,12,3.064Z"},child:[]}]}]}]})(t)}function dWe(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Globe"},child:[{tag:"path",attr:{d:"M14.645,2.428a8.1,8.1,0,0,0-1.61-.3,9.332,9.332,0,0,0-3.6.28l-.07.02a9.928,9.928,0,0,0,.01,19.15,9.091,9.091,0,0,0,2.36.34,1.274,1.274,0,0,0,.27.02,9.65,9.65,0,0,0,2.63-.36,9.931,9.931,0,0,0,.01-19.15Zm-.27.96a8.943,8.943,0,0,1,5.84,5.11h-4.26a13.778,13.778,0,0,0-2.74-5.35A8.254,8.254,0,0,1,14.375,3.388Zm-2.37-.09a12.78,12.78,0,0,1,2.91,5.2H9.075A12.545,12.545,0,0,1,12.005,3.3Zm3.16,6.2a13.193,13.193,0,0,1,0,5.01H8.845a12.185,12.185,0,0,1-.25-2.5,12.353,12.353,0,0,1,.25-2.51Zm-5.6-6.09.07-.02a9.152,9.152,0,0,1,1.16-.23A13.618,13.618,0,0,0,8.045,8.5H3.8A9,9,0,0,1,9.565,3.408Zm-6.5,8.6a8.71,8.71,0,0,1,.37-2.51h4.39a13.95,13.95,0,0,0-.23,2.51,13.757,13.757,0,0,0,.23,2.5H3.435A8.591,8.591,0,0,1,3.065,12.008Zm6.57,8.61a8.9,8.9,0,0,1-5.84-5.11h4.24a13.632,13.632,0,0,0,2.77,5.35A8.1,8.1,0,0,1,9.635,20.618Zm-.56-5.11h5.84a12.638,12.638,0,0,1-2.91,5.21A12.872,12.872,0,0,1,9.075,15.508Zm5.3,5.11a11.551,11.551,0,0,1-1.17.24,13.8,13.8,0,0,0,2.75-5.35h4.26A8.924,8.924,0,0,1,14.375,20.618Zm1.8-6.11a13.611,13.611,0,0,0,0-5.01h4.39a8.379,8.379,0,0,1,.37,2.51,8.687,8.687,0,0,1-.36,2.5Z"},child:[]}]}]})(t)}const tX=()=>{const{i18n:t}=d$(),e=vx(),r=tWe(),n=[{label:"EN",value:iu.EN_US},{label:"FR",value:iu.FR_FR}],i=a=>{const o=a;t.changeLanguage(o),r(o)};return E.jsx("div",{className:"flex items-center gap-2",children:E.jsx(eE,{trigger:E.jsxs("span",{className:"flex items-center border border-primary-border p-2 rounded-lg gap-1 justify-center cursor-pointer text-primary-dark-blue",children:[E.jsx(dWe,{}),e.toUpperCase()]}),items:n,onChange:i,contentClassName:"min-w-[90px]!"})})};var P9=function(t,e){return P9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},P9(t,e)};function hWe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");P9(t,e);function r(){this.constructor=t}
98t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ko=function(){return Ko=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ko.apply(this,arguments)};function Tae(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function Hd(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(t,e||[])).next())})}function Qd(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function AWe(t,e,r){for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}function zu(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function kw(t,e,r,n){if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function Eae(t,e,r,n,i){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r}function xbe(t,e){this.v=t,this.k=e}function Bae(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function dt(t,e,r){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function pWe(t){return new xbe(t,0)}function Sbe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Le(t,e){return t.get(dt(t,e))}function Sr(t,e,r){Sbe(t,e),e.set(t,r)}function Br(t,e,r){return t.set(dt(t,e),r),r}function rE(t,e){Sbe(t,e),e.add(t)}function Je(t,e,r){return(e=(function(n){var i=(function(a,o){if(typeof a!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var l=s.call(a,o);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)})(n,"string");return typeof i=="symbol"?i:i+""})(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function at(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};
98e%2?Dae(Object(r),!0).forEach(function(n){Je(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dae(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Mae(t,e){if(t==null)return{};var r,n,i=(function(o,s){if(o==null)return{};var l={};for(var u in o)if({}.hasOwnProperty.call(o,u)){if(s.indexOf(u)!==-1)continue;l[u]=o[u]}return l})(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function yl(t,e){return(function(r){if(Array.isArray(r))return r})(t)||(function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var a,o,s,l,u=[],c=!0,f=!1;try{if(s=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;c=!1}else for(;!(c=(a=s.call(i)).done)&&(u.push(a.value),u.length!==n);c=!0);}catch(d){f=!0,o=d}finally{try{if(!c&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(f)throw o}}return u}})(t,e)||(function(r,n){if(r){if(typeof r=="string")return Bae(r,n);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Bae(r,n):void 0}})(t,e)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
99In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Cbe(t){return function(){return new lM(t.apply(this,arguments))}}function lM(t){var e,r;function n(a,o){try{var s=t[a](o),l=s.value,u=l instanceof xbe;Promise.resolve(u?l.v:l).then(function(c){if(u){var f=a==="return"&&l.k?a:"next";if(!l.k||c.done)return n(f,c);c=t[f](c).value}i(!!s.done,c)},function(c){n("throw",c)})}catch(c){i(2,c)}}function i(a,o){a===2?e.reject(o):e.resolve({value:o,done:a}),(e=e.next)?n(e.key,e.arg):r=null}this._invoke=function(a,o){return new Promise(function(s,l){var u={key:a,arg:o,resolve:s,reject:l,next:null};r?r=r.next=u:(e=r=u,n(a,o))})},typeof t.return!="function"&&(this.return=void 0)}typeof SuppressedError=="function"&&SuppressedError,lM.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},lM.prototype.next=function(t){return this._invoke("next",t)},lM.prototype.throw=function(t){return this._invoke("throw",t)},lM.prototype.return=function(t){return this._invoke("return",t)};const vWe={timeoutInSeconds:60},k9=1e4,Lae="memory",Rae="Multifactor authentication required",Tbe="online_access",N9={name:"auth0-spa-js",version:"2.28.2"},Ebe=()=>Date.now(),zo="default";class Bn extends Error{constructor(e,r){super(r),this.error=e,this.error_description=r,Object.setPrototypeOf(this,Bn.prototype)}static fromPayload(e){let r=e.error,n=e.error_description;return new Bn(r,n)}}let Iae=class Bbe extends Bn{constructor(e,r){super("invalid_configuration","".concat(e," ").concat(r)),this.suggestion=r,Object.setPrototypeOf(this,Bbe.prototype)}};class rX extends Bn{constructor(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;super(e,r),this.state=n,this.appState=i,Object.setPrototypeOf(this,rX.prototype)}}class nX extends Bn{constructor(e,r,n,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;super(e,r),this.connection=n,this.state=i,this.appState=a,Object.setPrototypeOf(this,nX.prototype)}}class nE extends Bn{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,nE.prototype)}}class iX extends nE{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,iX.prototype)}}class aX extends Bn{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,aX.prototype)}}class oX extends Bn{constructor(){super("popup_open","Unable to open a popup for loginWithPopup - window.open returned `null`"),Object.setPrototypeOf(this,oX.prototype)}}class jL extends Bn{constructor(e,r,n,i){super(e,r),this.mfa_token=n,this.mfa_requirements=i,Object.setPrototypeOf(this,jL.prototype)}}class b5 extends Bn{constructor(e,r){super("missing_refresh_token","Missing Refresh Token (audience: '".concat(P4(e,["default"]),"', scope: '").concat(P4(r),"')")),this.audience=e,this.scope=r,Object.setPrototypeOf(this,b5.prototype)}}let gWe=class Dbe extends Bn{constructor(e,r){super("missing_scopes","Missing requested scopes after refresh (audience: '".concat(P4(e,["default"]),"', missing scope: '").concat(P4(r),"')")),this.audience=e,this.scope=r,Object.setPrototypeOf(this,Dbe.prototype)}},Mbe=class Lbe extends Bn{constructor(e){super("use_dpop_nonce","Server rejected DPoP proof: wrong nonce"),this.newDpopNonce=e,Object.setPrototypeOf(this,Lbe.prototype)}};function P4(t){return t&&!(arguments.length>1&&arguments[1]!==void 0?arguments[1]:[]).includes(t)?t:""}const k4=()=>window.crypto,$2=()=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let e="";for(;e.length<43;){const r=k4().getRandomValues(new Uint8Array(43-e.length));for(const n of r)e.length<43&&n<198&&(e+=t[n%66])}return e},hV=t=>btoa(t),mWe=[{key:"name",type:["string"]},{key:"version",type:["string","number"]},{key:"env",type:["object"]}],F9=function(t){let e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return Object.keys(t).reduce((r,n)=>{if(e&&n==="env")return r;const i=mWe.find(a=>a.key===n);return i&&i.type.includes(typeof t[n])&&(r[n]=t[n]),r},{})},uM=t=>{var e=t.clientId,r=zu(t,["clientId"]);return new URLSearchParams((n=>Object.keys(n).filter(i=>n[i]!==void 0).reduce((i,a)=>Object.assign(Object.assign({},i),{[a]:n[a]}),{}))(Object.assign({client_id:e},r))).toString()},Oae=async t=>await k4().subtle.digest({name:"SHA-256"},new TextEncoder().encode(t)),Pae=t=>(e=>decodeURIComponent(atob(e).split("").map(r=>"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g,"/").replace(/-/g,"+")),kae=t=>{const e=new Uint8Array(t);return(r=>{const n={"+":"-","/":"_","=":""};
vendor: 6,436 bytes, line 99
99return r.replace(/[+/=]/g,i=>n[i])})(window.btoa(String.fromCharCode(...Array.from(e))))};var Ib=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rbe={},sX={};Object.defineProperty(sX,"__esModule",{value:!0});var yWe=(function(){function t(){var e=this;this.locked=new Map,this.addToLocked=function(r,n){var i=e.locked.get(r);i===void 0?n===void 0?e.locked.set(r,[]):e.locked.set(r,[n]):n!==void 0&&(i.unshift(n),e.locked.set(r,i))},this.isLocked=function(r){return e.locked.has(r)},this.lock=function(r){return new Promise(function(n,i){e.isLocked(r)?e.addToLocked(r,n):(e.addToLocked(r),n())})},this.unlock=function(r){var n=e.locked.get(r);if(n!==void 0&&n.length!==0){var i=n.pop();e.locked.set(r,n),i!==void 0&&setTimeout(i,0)}else e.locked.delete(r)}}return t.getInstance=function(){return t.instance===void 0&&(t.instance=new t),t.instance},t})();sX.default=function(){return yWe.getInstance()};var qd=Ib&&Ib.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,a){function o(u){try{l(n.next(u))}catch(c){a(c)}}function s(u){try{l(n.throw(u))}catch(c){a(c)}}function l(u){u.done?i(u.value):new r(function(c){c(u.value)}).then(o,s)}l((n=n.apply(t,e||[])).next())})},Jd=Ib&&Ib.__generator||function(t,e){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(c[0]===6&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(f){c=[6,f],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([l,u])}}},Z2=Ib;Object.defineProperty(Rbe,"__esModule",{value:!0});var vS=sX,AV="browser-tabs-lock-key",_k={key:function(t){return qd(Z2,void 0,void 0,function(){return Jd(this,function(e){throw new Error("Unsupported")})})},getItem:function(t){return qd(Z2,void 0,void 0,function(){return Jd(this,function(e){throw new Error("Unsupported")})})},clear:function(){return qd(Z2,void 0,void 0,function(){return Jd(this,function(t){return[2,window.localStorage.clear()]})})},removeItem:function(t){return qd(Z2,void 0,void 0,function(){return Jd(this,function(e){throw new Error("Unsupported")})})},setItem:function(t,e){return qd(Z2,void 0,void 0,function(){return Jd(this,function(r){throw new Error("Unsupported")})})},keySync:function(t){return window.localStorage.key(t)},getItemSync:function(t){return window.localStorage.getItem(t)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(t){return window.localStorage.removeItem(t)},setItemSync:function(t,e){return window.localStorage.setItem(t,e)}};function pV(t){return new Promise(function(e){return setTimeout(e,t)})}function vV(t){for(var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="",n=0;n<t;n++)r+=e[Math.floor(61*Math.random())];return r}var wWe=(function(){function t(e){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+vV(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=e,t.waiters===void 0&&(t.waiters=[])}return t.prototype.acquireLock=function(e,r){return r===void 0&&(r=5e3),qd(this,void 0,void 0,function(){var n,i,a,o,s,l,u;return Jd(this,function(c){switch(c.label){case 0:n=Date.now()+vV(4),i=Date.now()+r,a=AV+"-"+e,o=this.storageHandler===void 0?_k:this.storageHandler,c.label=1;case 1:return Date.now()<i?[4,pV(30)]:[3,8];case 2:return c.sent(),o.getItemSync(a)!==null?[3,5]:(s=this.id+"-"+e+"-"+n,[4,pV(Math.floor(25*Math.random()))]);case 3:return c.sent(),o.setItemSync(a,JSON.stringify({id:this.id,iat:n,timeoutKey:s,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,pV(30)];case 4:return c.sent(),(l=o.getItemSync(a))!==null&&(u=JSON.parse(l)).id===this.id&&u.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(a,n),[2,!0]):[3,7];case 5:return t.lockCorrector(this.storageHandler===void 0?_k:this.storageHandler),[4,this.waitForSomethingToChange(i)];case 6:c.sent(),c.label=7;case 7:return n=Date.now()+vV(4),[3,1];case 8:return[2,!1]}})})},t.prototype.refreshLockWhileAcquired=function(e,r){return qd(this,void 0,void 0,function(){var n=this;return Jd(this,function(i){return setTimeout(function(){return qd(n,void 0,void 0,function(){var a,o,s;return Jd(this,function(l){switch(l.label){case 0:return[4,vS.default().lock(r)];case 1:return l.sent(),this.acquiredIatSet.has(r)?(a=this.storageHandler===void 0?_k:this.storageHandler,(o=a.getItemSync(e))===null?(vS.default().unlock(r),[2]):((s=JSON.parse(o)).timeRefreshed=Date.now(),a.setItemSync(e,JSON.stringify(s)),vS.default().unlock(r),this.refreshLockWhileAcquired(e,r),[2])):(vS.default().unlock(r),[2])}})})},1e3),[2]})})},t.prototype.waitForSomethingToChange=function(e){return qd(this,void 0,void 0,function(){return Jd(this,function(r){switch(r.label){case 0:return[4,new Promise(function(n){var i=!1,a=Date.now(),o=!1;function s(){if(o||(window.removeEventListener("storage",s),t.removeFromWaiting(s),clearTimeout(l),o=!0),!i){i=!0;var u=50-(Date.now()-a);u>0?setTimeout(n,u):n(null)}}window.addEventListener("storage",s),t.addToWaiting(s);var l=setTimeout(s,Math.max(0,e-Date.now()))})];case 1:return r.sent(),[2]}})})},t.addToWaiting=function(e){this.removeFromWaiting(e),t.waiters!==void 0&&t.waiters.push(e)},t.removeFromWaiting=function(e){t.waiters!==void 0&&(t.waiters=t.waiters.filter(function(r){return r!==e}))},t.notifyWaiters=function(){t.waiters!==void 0&&t.waiters.slice().forEac
99h(function(e){return e()})},t.prototype.releaseLock=function(e){return qd(this,void 0,void 0,function(){return Jd(this,function(r){switch(r.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,r.sent()]}})})},t.prototype.releaseLock__private__=function(e){return qd(this,void 0,void 0,function(){var r,n,i,a;return Jd(this,function(o){switch(o.label){case 0:return r=this.storageHandler===void 0?_k:this.storageHandler,n=AV+"-"+e,(i=r.getItemSync(n))===null?[2]:(a=JSON.parse(i)).id!==this.id?[3,2]:[4,vS.default().lock(a.iat)];case 1:o.sent(),this.acquiredIatSet.delete(a.iat),r.removeItemSync(n),vS.default().unlock(a.iat),t.notifyWaiters(),o.label=2;case 2:return[2]}})})},t.lockCorrector=function(e){for(var r=Date.now()-5e3,n=e,i=[],a=0;;){var o=n.keySync(a);if(o===null)break;i.push(o),a++}for(var s=!1,l=0;l<i.length;l++){var u=i[l];if(u.includes(AV)){var c=n.getItemSync(u);if(c!==null){var f=JSON.parse(c);(f.timeRefreshed===void 0&&f.timeAcquired<r||f.timeRefreshed!==void 0&&f.timeRefreshed<r)&&(n.removeItemSync(u),s=!0)}}}s&&t.notifyWaiters()},t.waiters=void 0,t})(),_We=Rbe.default=wWe;class bWe{async runWithLock(e,r,n){const i=new AbortController,a=setTimeout(()=>i.abort(),r);try{return await navigator.locks.request(e,{mode:"exclusive",signal:i.signal},async o=>{if(clearTimeout(a),!o)throw new Error("Lock not available");return await n()})}catch(o){throw clearTimeout(a),o?.name==="AbortError"?new nE:o}}}class xWe{constructor(){this.activeLocks=new Set,this.lock=new _We,this.pagehideHandler=()=>{this.activeLocks.forEach(e=>this.lock.releaseLock(e)),this.activeLocks.clear()}}async runWithLock(e,r,n){let i=!1;for(let a=0;a<10&&!i;a++)i=await this.lock.acquireLock(e,r);if(!i)throw new nE;this.activeLocks.add(e),this.activeLocks.size===1&&typeof window<"u"&&window.addEventListener("pagehide",this.pagehideHandler);try{return await n()}finally{this.activeLocks.delete(e),await this.lock.releaseLock(e),this.activeLocks.size===0&&typeof window<"u"&&window.removeEventListener("pagehide",this.pagehideHandler)}}}function SWe(){return typeof navigator<"u"&&typeof((t=navigator.locks)===null||t===void 0?void 0:t.request)=="function"?new bWe:new xWe;var t}let gV=null;function Ibe(){return gV||(gV=SWe()),gV}const CWe=new TextEncoder,TWe=new TextDecoder;function qM(t){return typeof t=="string"?CWe.encode(t):TWe.decode(t)}function Nae(t){if(typeof t.modulusLength!="number"||t.modulusLength<2048)throw new BWe(`${t.name} modulusLength must be at least 2048 bits`)}async function EWe(t,e,r){if(r.usages.includes("sign")===!1)throw new TypeError('private CryptoKey instances used for signing assertions must include "sign" in their "usages"');const n=`${JM(qM(JSON.stringify(t)))}.${JM(qM(JSON.stringify(e)))}`;return`${n}.${JM(await crypto.subtle.sign((function(i){switch(i.algorithm.name){case"ECDSA":return{name:i.algorithm.name,hash:"SHA-256"};case"RSA-PSS":return Nae(i.algorithm),{name:i.algorithm.name,saltLength:32};case"RSASSA-PKCS1-v1_5":return Nae(i.algorithm),{name:i.algorithm.name};case"Ed25519":return{name:i.algorithm.name}}throw new G_})(r),r,qM(n)))}`}let U9;Uint8Array.prototype.toBase64?U9=t=>(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t.toBase64({alphabet:"base64url",omitPadding:!0})):U9=e=>{e instanceof ArrayBuffer&&(e=new Uint8Array(e));const r=[];for(let n=0;n<e.byteLength;n+=32768)r.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(r.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function JM(t){return U9(t)}class G_ extends Error{constructor(e){var r;super(e??"operation not supported"),this.name=this.constructor.name,(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}class BWe extends Error{constructor(e){var r;super(e),this.name=this.constructor.name,(r=Error.captureStackTrace)===null||r===void 0||r.call(Error,this,this.constructor)}}function DWe(t){switch(t.algorithm.name){case"RSA-PSS":return(function(e){if(e.algorithm.hash.name==="SHA-256")return"PS256";throw new G_("unsupported RsaHashedKeyAlgorithm hash name")})(t);case"RSASSA-PKCS1-v1_5":return(function(e){if(e.algorithm.hash.name==="SHA-256")return"RS256";throw new G_("unsupported RsaHashedKeyAlgorithm hash name")})(t);case"ECDSA":return(function(e){if(e.algorithm.namedCurve==="P-256")return"ES256";throw new G_("unsupported EcKeyAlgorithm namedCurve")})(t);case"Ed25519":return"Ed25519";default:throw new G_("unsupported CryptoKey algorithm name")}}function Obe(t){return t instanceof CryptoKey}function Pbe(t){return Obe(t)&&t.type==="public"}async function MWe(t,e,r,n,i,a){const o=t?.privateKey,s=t?.publicKey;if(!Obe(l=o)||l.type!=="private")throw new TypeError('"keypair.privateKey" must be a private CryptoKey');var l;if(!Pbe(s))throw new TypeError('"keypair.publicKey" must be a public CryptoKey');if(s.extractable!==!0)throw new TypeError('"keypair.publicKey.extractable" must be true');
99if(typeof e!="string")throw new TypeError('"htu" must be a string');if(typeof r!="string")throw new TypeError('"htm" must be a string');if(n!==void 0&&typeof n!="string")throw new TypeError('"nonce" must be a string or undefined');if(i!==void 0&&typeof i!="string")throw new TypeError('"accessToken" must be a string or undefined');const u=Object.assign(Object.create(null),a,{iat:Math.floor(Date.now()/1e3),jti:crypto.randomUUID(),htm:r,nonce:n,htu:e,ath:i?JM(await crypto.subtle.digest("SHA-256",qM(i))):void 0});return EWe({alg:DWe(o),typ:"dpop+jwt",jwk:await kbe(s)},u,o)}async function kbe(t){const{kty:e,e:r,n,x:i,y:a,crv:o}=await crypto.subtle.exportKey("jwk",t);return{kty:e,crv:o,e:r,n,x:i,y:a}}const Nbe="dpop-nonce",LWe=["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange","urn:okta:params:oauth:grant-type:webauthn","http://auth0.com/oauth/grant-type/mfa-oob","http://auth0.com/oauth/grant-type/mfa-otp","http://auth0.com/oauth/grant-type/mfa-recovery-code"];function RWe(){return(async function(t,e){var r;let n;if(t.length===0)throw new TypeError('"alg" must be a non-empty string');switch(t){case"PS256":n={name:"RSA-PSS",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};break;case"RS256":n={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};break;case"ES256":n={name:"ECDSA",namedCurve:"P-256"};break;case"Ed25519":n={name:"Ed25519"};break;default:throw new G_}return crypto.subtle.generateKey(n,(r=e?.extractable)!==null&&r!==void 0&&r,["sign","verify"])})("ES256",{extractable:!1})}function IWe(t){return(async function(e){if(!Pbe(e))throw new TypeError('"publicKey" must be a public CryptoKey');if(e.extractable!==!0)throw new TypeError('"publicKey.extractable" must be true');const r=await kbe(e);let n;switch(r.kty){case"EC":n={crv:r.crv,kty:r.kty,x:r.x,y:r.y};break;case"OKP":n={crv:r.crv,kty:r.kty,x:r.x};break;case"RSA":n={e:r.e,kty:r.kty,n:r.n};break;default:throw new G_("unsupported JWK kty")}return JM(await crypto.subtle.digest({name:"SHA-256"},qM(JSON.stringify(n))))})(t.publicKey)}function OWe(t){let e=t.keyPair,r=t.url,n=t.method,i=t.nonce,a=t.accessToken;const o=(function(s){const l=new URL(s);return l.search="",l.hash="",l.href})(r);return MWe(e,o,n,i,a)}const H9=(t,e)=>new Promise(function(r,n){const i=new MessageChannel;i.port1.onmessage=function(a){a.data.error?n(new Error(a.data.error)):r(a.data),i.port1.close()},e.postMessage(t,[i.port2])}),Fbe=(t,e,r)=>{const n=new AbortController;let i;return e.signal=n.signal,Promise.race([fetch(t,e),new Promise((a,o)=>{i=setTimeout(()=>{n.abort(),o(new Error("Timeout when executing 'fetch'"))},r)})]).finally(()=>{clearTimeout(i)})},PWe=async function(t,e,r,n,i,a){let o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:k9;return i?(async(s,l,u,c,f,d,A,p,g,m)=>H9({type:"refresh",auth:{audience:l,scope:u},timeout:f,fetchUrl:s,fetchOptions:c,useFormData:A,useMrrt:p,skipTokenStorage:g,preserveRefreshToken:m},d))(t,e,r,n,o,i,a,arguments.length>7?arguments[7]:void 0,arguments.length>8?arguments[8]:void 0,arguments.length>9?arguments[9]:void 0):(async(s,l,u)=>{const c=await Fbe(s,l,u);return{ok:c.ok,json:await c.json(),headers:(f=c.headers,[...f].reduce((d,A)=>{let p=yl(A,2),g=p[0],m=p[1];return d[g]=m,d},{}))};var f})(t,n,o)};async function Ube(t,e,r,n,i,a,o,s,l,u,c,f){if(l){const R=await l.generateProof({url:t,method:i.method||"GET",nonce:await l.getNonce()});i.headers=Object.assign(Object.assign({},i.headers),{dpop:R})}let d,A=null;for(let R=0;R<3;R++)try{d=await PWe(t,r,n,i,a,o,e,s,c,f),A=null;break}catch(I){A=I}if(A)throw A;const p=d.json,g=p.error,m=p.error_description,y=zu(p,["error","error_description"]),b=d,x=b.headers,T=b.ok;let B;if(l&&(B=x[Nbe],B&&await l.setNonce(B)),!T){const R=m||"HTTP error. Unable to fetch ".concat(t);if(g==="mfa_required")throw new jL(g,R,y.mfa_token,y.mfa_requirements);if(g==="missing_refresh_token")throw new b5(r,n);if(g==="use_dpop_nonce"){if(!l||!B||u)throw new Mbe(B);return Ube(t,e,r,n,i,a,o,s,l,!0,c,f)}throw new Bn(g||"request_error",R)}return y}async function Fae(t,e,r){var n=t.baseUrl,i=t.timeout,a=t.audience,o=t.scope,s=t.auth0Client,l=t.useFormData,u=t.useMrrt,c=t.dpop,f=t.preserveRefreshToken,d=zu(t,["baseUrl","timeout","audience","scope","auth0Client","useFormData","useMrrt","dpop","preserveRefreshToken"]);const A=d.grant_type==="urn:ietf:params:oauth:grant-type:token-exchange",p=d.grant_type==="urn:okta:params:oauth:grant-type:webauthn",g=d.grant_type==="refresh_token"&&u,m=A||p||g,y=Object.assign(Object.assign(Object.assign({},d),m&&a&&{audience:a}),m&&o&&{scope:o}),b=p||!l,x=b?JSON.stringify(y):uM(y),T=(B=d.grant_type,LWe.includes(B));var B;return await Ube("".concat(n,"/oauth/token"),i,a||zo,o,{method:"POST",body:x,headers:{"Content-Type":b?"application/json":"application/x-www-form-urlencoded","Auth0-Client":btoa(JSON.stringify(F9(s||N9)))}},e,l,u,T?c:void 0,void 0,r,f)}const fU=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return(n=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(n))).join(" ");var n},X2=(t,e,r)=>{let n;return r&&(n=t[r]),n||(n=t[zo]),fU(n,e)},K_="@@auth0spajs@@",m_="@@user@@";class Wo{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K_,n=arguments.length>2?arguments[2]:void 0;this.prefix=r,this.suffix=n,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(
99Boolean).join("::")}static fromKey(e){const r=yl(e.split("::"),4),n=r[0],i=r[1],a=r[2],o=r[3];return new Wo({clientId:i,scope:o,audience:a},n)}static fromCacheEntry(e){const r=e.scope,n=e.audience,i=e.client_id;return new Wo({scope:r,audience:n,clientId:i})}}class kWe{set(e,r){localStorage.setItem(e,JSON.stringify(r))}get(e){const r=window.localStorage.getItem(e);if(r)try{return JSON.parse(r)}catch{return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith(K_))}}class Hbe{constructor(){this.enclosedCache=(function(){let e={};return{set(r,n){e[r]=n},get(r){const n=e[r];if(n)return n},remove(r){delete e[r]},allKeys:()=>Object.keys(e)}})()}}class NWe{constructor(e,r,n){this.cache=e,this.keyManifest=r,this.nowProvider=n||Ebe}async setIdToken(e,r,n){var i;const a=this.getIdTokenCacheKey(e);await this.cache.set(a,{id_token:r,decodedToken:n}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(a))}async getIdToken(e){const r=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!r&&e.scope&&e.audience){const n=await this.get(e);return!n||!n.id_token||!n.decodedToken?void 0:{id_token:n.id_token,decodedToken:n.decodedToken}}if(r)return{id_token:r.id_token,decodedToken:r.decodedToken}}async get(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=arguments.length>3?arguments[3]:void 0;var a;let o=await this.cache.get(e.toKey()),s=e;if(!o){const c=await this.getCacheKeys();if(!c)return;const f=this.matchExistingCacheKey(e,c);if(f&&(o=await this.cache.get(f),s=Wo.fromKey(f)),!o&&n&&i!=="cache-only")return this.getEntryWithRefreshToken(e,c)}if(!o)return;const l=await this.nowProvider(),u=Math.floor(l/1e3);return o.expiresAt-r<u?o.body.refresh_token?this.modifiedCachedEntry(o,s):(await this.cache.remove(s.toKey()),void await((a=this.keyManifest)===null||a===void 0?void 0:a.remove(s.toKey()))):o.body}async modifiedCachedEntry(e,r){const n={refresh_token:e.body.refresh_token,audience:e.body.audience,scope:e.body.scope},i={body:n,expiresAt:e.expiresAt};return await this.cache.set(r.toKey(),i),{refresh_token:n.refresh_token,audience:n.audience,scope:n.scope}}async set(e){var r;const n=new Wo({clientId:e.client_id,scope:e.scope,audience:e.audience}),i=await this.wrapCacheEntry(e);await this.cache.set(n.toKey(),i),await((r=this.keyManifest)===null||r===void 0?void 0:r.add(n.toKey()))}async remove(e,r,n){const i=new Wo({clientId:e,scope:n,audience:r});await this.cache.remove(i.toKey())}async stripRefreshToken(e){var r;const n=await this.getCacheKeys();if(n)for(const i of n){const a=await this.cache.get(i);((r=a?.body)===null||r===void 0?void 0:r.refresh_token)===e&&(delete a.body.refresh_token,await this.cache.set(i,a))}}async clear(e){var r;const n=await this.getCacheKeys();n&&(await n.filter(i=>!e||i.includes(e)).reduce(async(i,a)=>{await i,await this.cache.remove(a)},Promise.resolve()),await((r=this.keyManifest)===null||r===void 0?void 0:r.clear()))}async wrapCacheEntry(e){const r=await this.nowProvider();return{body:e,expiresAt:Math.floor(r/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?(e=await this.keyManifest.get())===null||e===void 0?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Wo({clientId:e},K_,m_).toKey()}matchExistingCacheKey(e,r){return r.filter(n=>{var i;const a=Wo.fromKey(n),o=new Set(a.scope&&a.scope.split(" ")),s=((i=e.scope)===null||i===void 0?void 0:i.split(" "))||[],l=a.scope&&s.reduce((u,c)=>u&&o.has(c),!0);return a.prefix===K_&&a.clientId===e.clientId&&a.audience===e.audience&&l})[0]}async getEntryWithRefreshToken(e,r){var n;for(const i of r){const a=Wo.fromKey(i);if(a.prefix===K_&&a.clientId===e.clientId){const o=await this.cache.get(i);if(!((n=o?.body)===null||n===void 0)&&n.refresh_token)return{refresh_token:o.body.refresh_token,audience:o.body.audience,scope:o.body.scope}}}}async getRefreshTokensByAudience(e,r){var n;const i=await this.getCacheKeys();if(!i)return[];const a=new Set;for(const o of i){const s=Wo.fromKey(o);if(s.prefix===K_&&s.clientId===r&&s.audience===e){const l=await this.cache.get(o);!((n=l?.body)===null||n===void 0)&&n.refresh_token&&a.add(l.body.refresh_token)}}return Array.from(a)}async updateEntry(e,r,n){let i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const a=await this.getCacheKeys();if(a)for(const o of a){if(Wo.fromKey(o).clientId!==n)continue;const s=await this.cache.get(o);if(!s?.body)continue;const l=s.body.refresh_token;l&&(i||l===e)&&(s.body.refresh_token=r,await this.cache.set(o,s))}}}class FWe{constructor(e,r,n){this.storage=e,this.clientId=r,this.cookieDomain=n,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId)}create(e){this.storage.save(this.storageKey,e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const q2=t=>typeof t=="number",UWe=["iss","aud","exp","nbf","iat","jti","azp","
99nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],HWe=t=>{if(!t.id_token)throw new Error("ID token is required but missing");const e=(a=>{const o=a.split("."),s=yl(o,3),l=s[0],u=s[1],c=s[2];if(o.length!==3||!l||!u||!c)throw new Error("ID token could not be decoded");const f=JSON.parse(Pae(u)),d={__raw:a},A={};return Object.keys(f).forEach(p=>{d[p]=f[p],UWe.includes(p)||(A[p]=f[p])}),{encoded:{header:l,payload:u,signature:c},header:JSON.parse(Pae(l)),claims:d,user:A}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(t.iss,'", found "').concat(e.claims.iss,'"'));if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error('Signature algorithm of "'.concat(e.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(t.aud,'" but was not one of "').concat(e.claims.aud.join(", "),'"'));if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(t.aud,'", found "').concat(e.claims.azp,'"'))}}else if(e.claims.aud!==t.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(t.aud,'" but found "').concat(e.claims.aud,'"'));if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(t.nonce,'", found "').concat(e.claims.nonce,'"'))}if(t.max_age&&!q2(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(e.claims.exp==null||!q2(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!q2(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const r=t.leeway||60,n=new Date(t.now||Date.now()),i=new Date(0);if(i.setUTCSeconds(e.claims.exp+r),n>i)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(n,") is after expiration time (").concat(i,")"));if(e.claims.nbf!=null&&q2(e.claims.nbf)){const a=new Date(0);if(a.setUTCSeconds(e.claims.nbf-r),n<a)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (".concat(n,") is before ").concat(a))}if(e.claims.auth_time!=null&&q2(e.claims.auth_time)){const a=new Date(0);if(a.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+r),n>a)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (".concat(n,") is after last auth at ").concat(a))}if(t.organization){const a=t.organization.trim();if(a.startsWith("org_")){const o=a;if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(o!==e.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(o,'", found "').concat(e.claims.org_id,'"'))}else{const o=a.toLowerCase();if(!e.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(o!==e.claims.org_name)throw new Error('Organization Name (org_name) claim mismatch in the ID token; expected "'.concat(o,'", found "').concat(e.claims.org_name,'"'))}}return e};var zL=Ib&&Ib.__assign||function(){return zL=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},zL.apply(this,arguments)};function J2(t,e){if(!e)return"";var r="; "+t;return e===!0?r:r+"="+e}function QWe(t,e,r){return encodeURIComponent(t).replace(/%(23|24|26|2B|5E|60|7C)/g,decode
99URIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(e).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(n){if(typeof n.expires=="number"){var i=new Date;i.setMilliseconds(i.getMilliseconds()+864e5*n.expires),n.expires=i}return J2("Expires",n.expires?n.expires.toUTCString():"")+J2("Domain",n.domain)+J2("Path",n.path)+J2("Secure",n.secure)+J2("SameSite",n.sameSite)})(r)}function jWe(){return(function(t){for(var e={},r=t?t.split("; "):[],n=/(%[\dA-F]{2})+/gi,i=0;i<r.length;i++){var a=r[i].split("="),o=a.slice(1).join("=");o.charAt(0)==='"'&&(o=o.slice(1,-1));try{e[a[0].replace(n,decodeURIComponent)]=o.replace(n,decodeURIComponent)}catch{}}return e})(document.cookie)}var zWe=function(t){return jWe()[t]};function Qbe(t,e,r){document.cookie=QWe(t,e,zL({path:"/"},r))}var jbe=Qbe,zbe=function(t,e){Qbe(t,"",zL(zL({},e),{expires:-1}))};const lC={get(t){const e=zWe(t);if(e!==void 0)return JSON.parse(e)},save(t,e,r){let n={};window.location.protocol==="https:"&&(n={secure:!0,sameSite:"none"}),r?.daysUntilExpire&&(n.expires=r.daysUntilExpire),r?.cookieDomain&&(n.domain=r.cookieDomain),jbe(t,JSON.stringify(e),n)},remove(t,e){let r={};e?.cookieDomain&&(r.domain=e.cookieDomain),zbe(t,r)}},mV="_legacy_",VWe={get(t){return lC.get(t)||lC.get("".concat(mV).concat(t))},save(t,e,r){let n={};window.location.protocol==="https:"&&(n={secure:!0}),r?.daysUntilExpire&&(n.expires=r.daysUntilExpire),r?.cookieDomain&&(n.domain=r.cookieDomain),jbe("".concat(mV).concat(t),JSON.stringify(e),n),lC.save(t,e,r)},remove(t,e){let r={};e?.cookieDomain&&(r.domain=e.cookieDomain),zbe(t,r),lC.remove(t,e),lC.remove("".concat(mV).concat(t),e)}},GWe={get(t){if(typeof sessionStorage>"u")return;const e=sessionStorage.getItem(t);return e!=null?JSON.parse(e):void 0},save(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove(t){sessionStorage.removeItem(t)}};var uy;(function(t){t.Code="code",t.ConnectCode="connect_code"})(uy||(uy={}));function KWe(t,e,r){var n=e===void 0?null:e,i=(function(l,u){var c=atob(l);if(u){for(var f=new Uint8Array(c.length),d=0,A=c.length;d<A;++d)f[d]=c.charCodeAt(d);return String.fromCharCode.apply(null,new Uint16Array(f.buffer))}return c})(t,r!==void 0&&r),a=i.indexOf(`
100`,10)+1,o=i.substring(a)+(n?"//# sourceMappingURL="+n:""),s=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(s)}var Uae,Hae,Qae,yV,WWe=(Uae
vendor: 8,104 bytes, line 100
100="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7ZnVuY3Rpb24gZShlLHQpeyhudWxsPT10fHx0PmUubGVuZ3RoKSYmKHQ9ZS5sZW5ndGgpO2Zvcih2YXIgcj0wLG89QXJyYXkodCk7cjx0O3IrKylvW3JdPWVbcl07cmV0dXJuIG99ZnVuY3Rpb24gdCh0LHIpe3JldHVybiBmdW5jdGlvbihlKXtpZihBcnJheS5pc0FycmF5KGUpKXJldHVybiBlfSh0KXx8ZnVuY3Rpb24oZSx0KXt2YXIgcj1udWxsPT1lP251bGw6InVuZGVmaW5lZCIhPXR5cGVvZiBTeW1ib2wmJmVbU3ltYm9sLml0ZXJhdG9yXXx8ZVsiQEBpdGVyYXRvciJdO2lmKG51bGwhPXIpe3ZhciBvLG4scyxhLGk9W10sYz0hMCxsPSExO3RyeXtpZihzPShyPXIuY2FsbChlKSkubmV4dCwwPT09dCl7aWYoT2JqZWN0KHIpIT09cilyZXR1cm47Yz0hMX1lbHNlIGZvcig7IShjPShvPXMuY2FsbChyKSkuZG9uZSkmJihpLnB1c2goby52YWx1ZSksaS5sZW5ndGghPT10KTtjPSEwKTt9Y2F0Y2goZSl7bD0hMCxuPWV9ZmluYWxseXt0cnl7aWYoIWMmJm51bGwhPXIucmV0dXJuJiYoYT1yLnJldHVybigpLE9iamVjdChhKSE9PWEpKXJldHVybn1maW5hbGx5e2lmKGwpdGhyb3cgbn19cmV0dXJuIGl9fSh0LHIpfHxmdW5jdGlvbih0LHIpe2lmKHQpe2lmKCJzdHJpbmciPT10eXBlb2YgdClyZXR1cm4gZSh0LHIpO3ZhciBvPXt9LnRvU3RyaW5nLmNhbGwodCkuc2xpY2UoOCwtMSk7cmV0dXJuIk9iamVjdCI9PT1vJiZ0LmNvbnN0cnVjdG9yJiYobz10LmNvbnN0cnVjdG9yLm5hbWUpLCJNYXAiPT09b3x8IlNldCI9PT1vP0FycmF5LmZyb20odCk6IkFyZ3VtZW50cyI9PT1vfHwvXig/OlVpfEkpbnQoPzo4fDE2fDMyKSg/OkNsYW1wZWQpP0FycmF5JC8udGVzdChvKT9lKHQscik6dm9pZCAwfX0odCxyKXx8ZnVuY3Rpb24oKXt0aHJvdyBuZXcgVHlwZUVycm9yKCJJbnZhbGlkIGF0dGVtcHQgdG8gZGVzdHJ1Y3R1cmUgbm9uLWl0ZXJhYmxlIGluc3RhbmNlLlxuSW4gb3JkZXIgdG8gYmUgaXRlcmFibGUsIG5vbi1hcnJheSBvYmplY3RzIG11c3QgaGF2ZSBhIFtTeW1ib2wuaXRlcmF0b3JdKCkgbWV0aG9kLiIpfSgpfWNsYXNzIHIgZXh0ZW5kcyBFcnJvcntjb25zdHJ1Y3RvcihlLHQpe3N1cGVyKHQpLHRoaXMuZXJyb3I9ZSx0aGlzLmVycm9yX2Rlc2NyaXB0aW9uPXQsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsci5wcm90b3R5cGUpfXN0YXRpYyBmcm9tUGF5bG9hZChlKXtsZXQgdD1lLmVycm9yLG89ZS5lcnJvcl9kZXNjcmlwdGlvbjtyZXR1cm4gbmV3IHIodCxvKX19Y2xhc3MgbyBleHRlbmRzIHJ7Y29uc3RydWN0b3IoZSx0KXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIiwiTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyIuY29uY2F0KG4oZSxbImRlZmF1bHQiXSksIicsIHNjb3BlOiAnIikuY29uY2F0KG4odCksIicpIikpLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXQsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsby5wcm90b3R5cGUpfX1mdW5jdGlvbiBuKGUpe3JldHVybiBlJiYhKGFyZ3VtZW50cy5sZW5ndGg+MSYmdm9pZCAwIT09YXJndW1lbnRzWzFdP2FyZ3VtZW50c1sxXTpbXSkuaW5jbHVkZXMoZSk/ZToiIn0iZnVuY3Rpb24iPT10eXBlb2YgU3VwcHJlc3NlZEVycm9yJiZTdXBwcmVzc2VkRXJyb3I7Y29uc3Qgcz1lPT57dmFyIHQ9ZS5jbGllbnRJZCxyPWZ1bmN0aW9uKGUsdCl7dmFyIHI9e307Zm9yKHZhciBvIGluIGUpT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGUsbykmJnQuaW5kZXhPZihvKTwwJiYocltvXT1lW29dKTtpZihudWxsIT1lJiYiZnVuY3Rpb24iPT10eXBlb2YgT2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyl7dmFyIG49MDtmb3Iobz1PYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKGUpO248by5sZW5ndGg7bisrKXQuaW5kZXhPZihvW25dKTwwJiZPYmplY3QucHJvdG90eXBlLnByb3BlcnR5SXNFbnVtZXJhYmxlLmNhbGwoZSxvW25dKSYmKHJbb1tuXV09ZVtvW25dXSl9cmV0dXJuIHJ9KGUsWyJjbGllbnRJZCJdKTtyZXR1cm4gbmV3IFVSTFNlYXJjaFBhcmFtcygoZT0+T2JqZWN0LmtleXMoZSkuZmlsdGVyKHQ9PnZvaWQgMCE9PWVbdF0pLnJlZHVjZSgodCxyKT0+T2JqZWN0LmFzc2lnbihPYmplY3QuYXNzaWduKHt9LHQpLHtbcl06ZVtyXX0pLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IGE9e30saT1udWxsO2NvbnN0IGM9KGUsdCk9PiIiLmNvbmNhdChlLCJ8IikuY29uY2F0KHQpLGw9KGUsdCk9PnQuc3RhcnRzV2l0aCgiIi5jb25jYXQoZSwifCIpKSx1PShlLHQpPT5hW2MoZSx0KV0sZj1lPT57T2JqZWN0LmVudHJpZXMoYSkuZm9yRWFjaChyPT57bGV0IG89dChyLDIpLG49b1swXTtvWzFdPT09ZSYmZGVsZXRlIGFbbl19KX0saD1lPT57Y29uc3QgdD1uZXcgVVJMU2VhcmNoUGFyYW1zKGUpLHI9e307cmV0dXJuIHQuZm9yRWFjaCgoZSx0KT0+e3JbdF09ZX0pLHJ9LGQ9YXN5bmMgZT0+e2xldCByLG4saT1lLmRhdGEsZj1pLnRpbWVvdXQsZD1pLmF1dGgscD1pLmZldGNoVXJsLHk9aS5mZXRjaE9wdGlvbnMsZz1pLnVzZUZvcm1EYXRhLGI9aS51c2VNcnJ0LE89aS5za2lwVG9rZW5TdG9yYWdlLGs9aS5wcmVzZXJ2ZVJlZnJlc2hUb2tlbixtPXQoZS5wb3J0cywxKVswXSxqPXt9O2NvbnN0IHY9ZHx8e30sXz12LmF1ZGllbmNlLHc9di5zY29wZTt0cnl7Y29uc3QgZT1nP2goeS5ib2R5KTpKU09OLnBhcnNlKHkuYm9keSk7aWYoZS5yZWZyZXNoX3Rva2VufHwicmVmcmVzaF90b2tlbiIhPT1lLmdyYW50X3R5cGUpZS5tZmFfdG9rZW4mJihuPXUoXyx3KSwhbiYmYiYmKG49YS5sYXRlc3RfcmVmcmVzaF90b2tlbikpO2Vsc2V7aWYobj11KF8sdyksIW4mJmIpe2NvbnN0IGU9YS5sYXRlc3RfcmVmcmVzaF90b2tlbix0PSgoZSx0KT0+ISFPYmplY3Qua2V5cyhhKS5maW5kKHI9PntpZigibGF0ZXN0X3JlZnJlc2hfdG9rZW4iIT09cil7Y29uc3Qgbz1sKHQsciksbj1yLnNwbGl0KCJ8IilbMV0uc3BsaXQoIiAiKSxzPWUuc3BsaXQoIiAiKS5ldmVyeShlPT5uLmluY2x1ZGVzKGUpKTtyZXR1cm4gbyYmc319KSkodyxfKTtlJiYhdCYmKG49ZSl9aWYoIW4pdGhyb3cgbmV3IG8oXyx3KTt5LmJvZHk9Zz9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxlKSx7cmVmcmVzaF90b2tlbjpufSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxlKSx7cmVmcmVzaF90b2tlbjpufSkpfWxldCBpLGQ7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGk9bmV3IEFib3J0Q29udHJvbGxlcix5LnNpZ25hbD1pLnNpZ25hbCk7dHJ5e2Q9YXdhaXQgUHJvbWlzZS5yYWNlKFsoUD1mLG5ldyBQcm9taXNlKGU9PnNldFRpbWVvdXQoZSxQKSkpLGZldGNoKHAsT2JqZWN0LmFzc2lnbih7fSx5KSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBtLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZClyZXR1cm4gaSYmaS5hYm9ydCgpLHZvaWQgbS5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtpZihVPWQuaGVhZGVycyxqPVsuLi5VXS5yZWR1Y2UoKGUscik9PntsZXQgbz10KHIsMiksbj1vWzBdLHM9b1sxXTtyZXR1cm4gZVtuXT1zLGV9LHt9KSxyPWF3YWl0IGQuanNvbigpLE8pcmV0dXJuIGRlbGV0ZSByLnJlZnJlc2hfdG9rZW4sdm9pZCBtLnBvc3RNZXNzYWdlKHtvazpkLm9rLGpzb246cixoZWFkZXJzOmp9KTtyLnJlZnJlc2hfdG9rZW4/KGImJihhLmxhdGVzdF9yZWZyZXNoX3Rva2VuPXIucmVmcmVzaF90b2tlbixTPW4sTT1yLnJlZnJlc2hfdG9rZW4sT2JqZWN0LmVudHJpZXMoYSkuZm9yRWFjaChlPT57bGV0IHI9dChlLDIpLG89clswXTtyWzFdPT09UyYmKGFbb109TSl9KSksKChlLHQscik9PnthW2ModCxyKV09ZX0pKHIucmVmcmVzaF90b2tlbixfLHcpLGRlbGV0ZSByLnJlZnJlc2hfdG9rZW4pOmt8fCgoZSx0KT0+e2RlbGV0ZSBhW2MoZSx0KV19KShfLHcpLG0ucG9zdE1lc3NhZ2Uoe29rOmQub2ssanNvbjpyLGhlYWRlcnM6an0pfWNhdGNoKGUpe20ucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yOmUuZXJyb3IsZXJyb3JfZGVzY3JpcHRpb246ZS5tZXNzYWdlfSxoZWFkZXJzOmp9KX12YXIgUyxNLFUsUH0scD1hc3luYyBlPT57bGV0IHI9ZS5kYXRhLG89ci50aW1lb3V0LG49ci5hdXRoLGk9ci5mZXRjaFVybCxjPXIuZmV0Y2hPcHRpb25zLHU9ci51c2VGb3JtRGF0YSxkPXQoZS5wb3J0cywxKVswXTtjb25zdCBwPShufHx7fSkuYXVkaWVuY2U7dHJ5e2NvbnN0IGU9KGU9Pntjb25zdCByPW5ldyBTZXQ7cmV0dXJuIE9iamVjdC5lbnRyaWVzKGEpLmZvckVhY2gobz0+e2xldCBuPXQobywyKSxzPW5bMF0sYT1uWzFdO2woZSxzKSYmci5hZGQoYSl9KSxBcnJheS5mcm9tKHIpfSkocCk7aWYoMD09PWUubGVuZ3RoKXJldHVybiB2b2lkIGQucG9zdE1lc3NhZ2Uoe29rOiEwfSk7Y29uc3Qgcj11P2goYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7Zm9yKGNvbnN0IHQgb2YgZSl7Y29uc3QgZT11P3MoT2JqZWN0LmFzc2lnbihPYmplY3QuYXNzaWduKHt9LHIpLHt0b2tlbjp0fSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7dG9rZW46dH0pKTtsZXQgbixhLGwsaDsiZnVuY3Rpb24iPT10eXBlb2YgQWJvcnRDb250cm9sbGVyJiYobj1uZXcgQWJvcnRDb250cm9sbGVyLGE9bi5zaWduYWwpO3RyeXtoPWF3YWl0IFByb21pc2UucmFjZShbbmV3IFByb21pc2UoZT0+e2w9c2V0VGltZW91dChlLG8pfSksZmV0Y2goaSxPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sYykse2JvZHk6ZSxzaWduYWw6YX0pKV0pLmZpbmFsbHkoKCk9PmNsZWFyVGltZW91dChsKSl9Y2F0Y2goZSl7cmV0dXJuIHZvaWQgZC5wb3N0TWVzc2FnZSh7ZXJyb3I6ZS5tZXNzYWdlfSl9aWYoIWgpcmV0dXJuIG4mJm4uYWJvcnQoKSx2b2lkIGQucG9zdE1lc3NhZ2Uoe2Vycm9yOiJUaW1lb3V0IHdoZW4gZXhlY3V0aW5nICdmZXRjaCcifSk7aWYoIWgub2spe2xldCBlO3RyeXtjb25zdCB0PUpTT04ucGFyc2UoYXdhaXQgaC50ZXh0KCkpO2U9dC5lcnJvcl9kZXNjcmlwdGlvbn1jYXRjaChlKXt9cmV0dXJuIHZvaWQgZC5wb3N0TWVzc2FnZSh7ZXJyb3I6ZXx8IkhUVFAgZXJyb3IgIi5jb25jYXQoaC5zdGF0dXMpfSl9Zih0KX1kLnBvc3RNZXNzYWdlKHtvazohMH0pfWNhdGNoKGUpe2QucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZXx8IlVua25vd24gZXJyb3IgZHVyaW5nIHRva2VuIHJldm9jYXRpb24ifSl9fSx5PShlLHQpPT57aWYoIWkpcmV0dXJuITE7dHJ5e2NvbnN0IHI9bmV3IFVSTChpKS5vcmlnaW4sbz1uZXcgVVJMKGUuZmV0Y2hVcmwpO3JldHVybiBvLm9yaWdpbj09PXImJm8ucGF0aG5hbWU9PT10fWNhdGNoKGUpe3JldHVybiExfX07YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsZT0+e2NvbnN0IHI9ZS5kYXRhLG89dChlLnBvcnRzLDEpWzBdO2lmKCEoInR5cGUiaW4gcil8fCJpbml0IiE9PXIudHlwZSlyZXR1cm4idHlwZSJpbiByJiYiY2xlYXIiPT09ci50eXBlPyhhPXt9LHZvaWQobnVsbD09b3x8by5wb3N0TWVzc2FnZSh7b2s6ITB9KSkpOiJ0eXBlImluIHImJiJyZXZva2UiPT09ci50eXBlP3kociwiL29hdXRoL3Jldm9rZSIpP3ZvaWQgcChlKTp2b2lkKG51bGw9PW98fG8ucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yOiJpbnZhbGlkX2ZldGNoX3VybCIsZXJyb3JfZGVzY3JpcHRpb246IlVuYXV0aG9yaXplZCBmZXRjaCBVUkwifSxoZWFkZXJzOnt9fSkpOnZvaWQoImZldGNoVXJsImluIHImJnkociwiL29hdXRoL3Rva2VuIik/ZChlKTpudWxsPT1vfHxvLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjoiaW52YWxpZF9mZXRjaF91cmwiLGVycm9yX2Rlc2NyaXB0aW9uOiJVbmF1dGhvcml6ZWQgZmV0Y2ggVVJMIn0saGVhZGVyczp7fX0pKTtpZihudWxsPT09aSl0cnl7bmV3IFVSTChyLmFsbG93ZWRCYXNlVXJsKSxpPXIuYWxsb3dlZEJhc2VVcmx9Y2F0Y2goZSl7cmV0dXJufX0pfSgpOwoK",
100Hae=null,Qae=!1,function(t){return yV=yV||KWe(Uae,Hae,Qae),new Worker(yV,t)});class YWe{constructor(e,r){this.cache=e,this.clientId=r,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var r;const n=new Set(((r=await this.cache.get(this.manifestKey))===null||r===void 0?void 0:r.keys)||[]);n.add(e),await this.cache.set(this.manifestKey,{keys:[...n]})}async remove(e){const r=await this.cache.get(this.manifestKey);if(r){const n=new Set(r.keys);return n.delete(e),n.size>0?await this.cache.set(this.manifestKey,{keys:[...n]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return"".concat(K_,"::").concat(e)}}const jae="auth0.is.authenticated",$We={memory:()=>new Hbe().enclosedCache,localstorage:()=>new kWe},zae=t=>$We[t],Vae=t=>{const e=t.openUrl,r=t.onRedirect,n=zu(t,["openUrl","onRedirect"]);return Object.assign(Object.assign({},n),{openUrl:e===!1||e?e:r})},ZWe=(t,e,r)=>{const n=t?.split(" ")||[],i=r?n.filter(o=>o!==Tbe):n,a=e?.split(" ")||[];return i.filter(o=>a.indexOf(o)==-1).join(",")},Nw={NONCE:"nonce",KEYPAIR:"keypair"};class XWe{constructor(e){this.clientId=e}getVersion(){return 1}createDbHandle(){const e=window.indexedDB.open("auth0-spa-js",this.getVersion());return new Promise((r,n)=>{e.onupgradeneeded=()=>Object.values(Nw).forEach(i=>e.result.createObjectStore(i)),e.onerror=()=>n(e.error),e.onsuccess=()=>r(e.result)})}async getDbHandle(){return this.dbHandle||(this.dbHandle=await this.createDbHandle()),this.dbHandle}async executeDbRequest(e,r,n){const i=n((await this.getDbHandle()).transaction(e,r).objectStore(e));return new Promise((a,o)=>{i.onsuccess=()=>a(i.result),i.onerror=()=>o(i.error)})}buildKey(e){const r=e?"_".concat(e):"auth0";return"".concat(this.clientId,"::").concat(r)}setNonce(e,r){return this.save(Nw.NONCE,this.buildKey(r),e)}setKeyPair(e){return this.save(Nw.KEYPAIR,this.buildKey(),e)}async save(e,r,n){await this.executeDbRequest(e,"readwrite",i=>i.put(n,r))}findNonce(e){return this.find(Nw.NONCE,this.buildKey(e))}findKeyPair(){return this.find(Nw.KEYPAIR,this.buildKey())}find(e,r){return this.executeDbRequest(e,"readonly",n=>n.get(r))}async deleteBy(e,r){const n=await this.executeDbRequest(e,"readonly",i=>i.getAllKeys());await Promise.all(n?.filter(r).map(i=>this.executeDbRequest(e,"readwrite",a=>a.delete(i)))||[])}deleteByClientId(e,r){return this.deleteBy(e,n=>typeof n=="string"&&n.startsWith("".concat(r,"::")))}clearNonces(){return this.deleteByClientId(Nw.NONCE,this.clientId)}clearKeyPairs(){return this.deleteByClientId(Nw.KEYPAIR,this.clientId)}}class qWe{constructor(e){this.storage=new XWe(e)}getNonce(e){return this.storage.findNonce(e)}setNonce(e,r){return this.storage.setNonce(e,r)}async getOrGenerateKeyPair(){let e=await this.storage.findKeyPair();return e||(e=await RWe(),await this.storage.setKeyPair(e)),e}async generateProof(e){const r=await this.getOrGenerateKeyPair();return OWe(Object.assign({keyPair:r},e))}async calculateThumbprint(){return IWe(await this.getOrGenerateKeyPair())}async clear(){await Promise.all([this.storage.clearNonces(),this.storage.clearKeyPairs()])}}var CC;(function(t){t.Bearer="Bearer",t.DPoP="DPoP"})(CC||(CC={}));class JWe{constructor(e,r){this.hooks=r,this.config=Object.assign(Object.assign({},e),{fetch:e.fetch||(typeof window>"u"?fetch:window.fetch.bind(window))})}isAbsoluteUrl(e){return/^(https?:)?\/\//i.test(e)}buildUrl(e,r){if(r){if(this.isAbsoluteUrl(r))return r;if(e)return"".concat(e.replace(/\/?\/$/,""),"/").concat(r.replace(/^\/+/,""))}throw new TypeError("`url` must be absolute or `baseUrl` non-empty.")}getAccessToken(e){return this.config.getAccessToken?this.config.getAccessToken(e):this.hooks.getAccessToken(e)}extractUrl(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}buildBaseRequest(e,r){if(!this.config.baseUrl)return new Request(e,r);const n=this.buildUrl(this.config.baseUrl,this.extractUrl(e)),i=e instanceof Request?new Request(n,e):n;return new Request(i,r)}setAuthorizationHeader(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:CC.Bearer;e.headers.set("authorization","".concat(n," ").concat(r))}async setDpopProofHeader(e,r){if(!this.config.dpopNonceId)return;const n=await this.hooks.getDpopNonce(),i=await this.hooks.generateDpopProof({accessToken:r,method:e.method,nonce:n,url:e.url});e.headers.set("dpop",i)}async prepareRequest(e,r){const n=await this.getAccessToken(r);if(n===void 0)throw new Bn("missing_access_token","No access token available");let i,a;typeof n=="string"?(i=this.config.dpopNonceId?CC.DPoP:CC.Bearer,a=n):(i=n.token_type,a=n.access_token),this.setAuthorizationHeader(e,a,i),i===CC.DPoP&&await this.setDpopProofHeader(e,a)}getHeader(e,r){return Array.isArray(e)?new Headers(e).get(r)||"":typeof e.get=="function"?e.get(r)||"":e[r]||""}hasUseDpopNonceError(e){if(e.status!==401)return!1;const r=this.getHeader(e.headers,"www-authenticate");return r.includes("invalid_dpop_nonce")||r.includes("use_dpop_nonce")}async handleResponse(e,r){const n=this.getHeader(e.headers,Nbe);if(n&&await this.hooks.setDpopNonce(n),!this.hasUseDpopNonceError(e))return e;if(!n||!r.onUseDpopNonceError)throw new Mbe(n);return r.onUseDpopNonceError()}async internalFetchWithAuth(e,r,n,i){const a=this.buildBaseRequest
100(e,r);await this.prepareRequest(a,i);const o=await this.config.fetch(a);return this.handleResponse(o,n)}fetchWithAuth(e,r,n){const i={onUseDpopNonceError:()=>this.internalFetchWithAuth(e,r,Object.assign(Object.assign({},i),{onUseDpopNonceError:void 0}),n)};return this.internalFetchWithAuth(e,r,i,n)}}class eYe{constructor(e,r){this.myAccountFetcher=e,this.apiBase=r}async connectAccount(e){const r=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/connected-accounts/connect"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},{scope:["create:me:connected_accounts"]});return this._handleResponse(r)}async completeAccount(e){const r=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/connected-accounts/complete"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},{scope:["create:me:connected_accounts"]});return this._handleResponse(r)}async getFactors(){const e=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/factors"),{method:"GET"},{scope:["read:me:factors"]});return(await this._handleResponse(e)).factors}
vendor: 2,835 bytes, line 100
100async getAuthenticationMethods(e){const r=e?"?".concat(new URLSearchParams({type:e})):"",n=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods").concat(r),{method:"GET"},{scope:["read:me:authentication_methods"]});return(await this._handleResponse(n)).authentication_methods}async getAuthenticationMethod(e){const r=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods/").concat(encodeURIComponent(e)),{method:"GET"},{scope:["read:me:authentication_methods"]});return this._handleResponse(r)}async deleteAuthenticationMethod(e){const r=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods/").concat(encodeURIComponent(e)),{method:"DELETE"},{scope:["delete:me:authentication_methods"]});r.ok||await this._handleResponse(r)}async updateAuthenticationMethod(e,r){const n=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods/").concat(encodeURIComponent(e)),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},{scope:["update:me:authentication_methods"]});return this._handleResponse(n)}async enrollmentChallenge(e){var r;const n=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)},{scope:["create:me:authentication_methods"]}),i=await this._handleResponse(n),a=(r=n.headers.get("location"))!==null&&r!==void 0?r:"",o=decodeURIComponent(a.split("/").pop()||"");return Object.assign(Object.assign({},i),{id:o,location:a})}async enrollmentVerify(e){const r=e,n=r.location;r.type;const i=zu(r,["location","type"]),a=await this.myAccountFetcher.fetchWithAuth("".concat(n,"/verify"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)},{scope:["create:me:authentication_methods"]});return this._handleResponse(a)}async _handleResponse(e){let r;try{r=await e.text(),r=JSON.parse(r)}catch(n){throw new N4({type:"invalid_json",status:e.status,title:"Invalid JSON response",detail:r||String(n)})}if(e.ok)return r;throw new N4(r)}}class N4 extends Error{constructor(e){let r=e.type,n=e.status,i=e.title,a=e.detail,o=e.validation_errors;super(a),this.name="MyAccountApiError",this.type=r,this.status=n,this.title=i,this.detail=a,this.validation_errors=o,Object.setPrototypeOf(this,N4.prototype)}}const tYe={otp:{authenticatorTypes:["otp"]},sms:{authenticatorTypes:["oob"],oobChannels:["sms"]},email:{authenticatorTypes:["oob"],oobChannels:["email"]},push:{authenticatorTypes:["oob"],oobChannels:["auth0"]},voice:{authenticatorTypes:["oob"],oobChannels:["voice"]}},rYe="http://auth0.com/oauth/grant-type/mfa-otp",nYe="http://auth0.com/oauth/grant-type/mfa-oob",iYe="http://auth0.com/oauth/grant-type/mfa-rec
100overy-code";var bk,wV;let Q9;(typeof navigator>"u"||(bk=navigator.userAgent)===null||bk===void 0||(wV=bk.startsWith)===null||wV===void 0||!wV.call(bk,"Mozilla/5.0 "))&&(Q9="".concat("oauth4webapi","/").concat("v3.8.6"));function xg(t,e){if(t==null)return!1;try{return t instanceof e||Object.getPrototypeOf(t)[Symbol.toStringTag]===e.prototype[Symbol.toStringTag]}catch{return!1}}const wl="ERR_INVALID_ARG_VALUE",Ls="ERR_INVALID_ARG_TYPE";function In(t,e,r){const n=new TypeError(t,{cause:r});return Object.assign(n,{code:e}),n}const Rs=Symbol(),F4=Symbol(),j9=Symbol(),nc=Symbol(),vh=Symbol(),aYe=new TextEncoder,oYe=new TextDecoder;function QC(t){return typeof t=="string"?aYe.encode(t):oYe.decode(t)}let z9,Vbe;Uint8Array.prototype.toBase64?z9=t=>(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t.toBase64({alphabet:"base64url",omitPadding:!0})):z9=e=>{e instanceof ArrayBuffer&&(e=new Uint8Array(e));const r=[];for(let n=0;n<e.byteLength;n+=32768)r.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(r.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function lb(t){return typeof t=="string"?Vbe(t):z9(t)}Vbe=Uint8Array.fromBase64?t=>{try{return Uint8Array.fromBase64(t,{alphabet:"base64url"})}catch(e){throw In("The input to be decoded is not correctly encoded.",wl,e)}}:t=>{try{const e=atob(t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}catch(e){throw In("The input to be decoded is not correctly encoded.",wl,e)}};class Lc extends Error{constructor(e,r){var n;super(e,r),Je(this,"code",void 0),this.name=this.constructor.name,this.code=G9,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}}class lX extends Error{constructor(e,r){var n;super(e,r),Je(this,"code",void 0),this.name=this.constructor.name,r!=null&&r.code&&(this.code=r?.code),(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}}function yr(t,e,r){return new lX(t,{code:e,cause:r})}function sYe(t,e){if((function(r,n){if(!(r instanceof CryptoKey))throw In("".concat(n," must be a CryptoKey"),Ls)})(t,e),t.type!=="private")throw In("".concat(e," must be a private CryptoKey"),wl)}function U4(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Ob(t){xg(t,Headers)&&(t=Object.fromEntries(t.entries()));const e=new Headers(t??{});if(Q9&&!e.has("user-agent")&&e.set("user-agent",Q9),e.has("authorization"))throw In('"options.headers" must not include the "authorization" header name',wl);return e}function uX(t,e){if(e!==void 0){if(typeof e=="function"&&(e=e(t.href)),!(e instanceof AbortSignal))throw In('"options.signal" must return or be an instance of AbortSignal',Ls);return e}}function Gae(t){return t.includes("//")?t.replace("//","/"):t}async function lYe(t,e){return(async function(r,n,i,a){if(!(r instanceof URL))throw In('"'.concat(n,'" must be an instance of URL'),Ls);x5(r,a?.[Rs]!==!0);const o=i(new URL(r.href)),s=Ob(a?.headers);return s.set("accept","application/json"),(a?.[nc]||fetch)(o.href,{body:void 0,headers:Object.fromEntries(s.entries()),method:"GET",redirect:"manual",signal:uX(o,a?.signal)})})(t,"issuerIdentifier",r=>{switch(e?.algorithm){case void 0:case"oidc":(function(n,i){n.pathname=Gae("".concat(n.pathname,"/").concat(i))})(r,".well-known/openid-configuration");break;case"oauth2":(function(n,i){let a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];n.pathname==="/"?n.pathname=i:n.pathname=Gae("".concat(i,"/").concat(a?n.pathname:n.pathname.replace(/(\/)$/,"")))})(r,".well-known/oauth-authorization-server");break;default:throw In('"options.algorithm" must be "oidc" (default), or "oauth2"',wl)}return r},e)}function Dy(t,e,r,n,i){try{if(typeof t!="number"||!Number.isFinite(t))throw In("".concat(r," must be a number"),Ls,i);if(t>0)return;if(e){if(t!==0)throw In("".concat(r," must be a non-negative number"),wl,i);return}throw In("".concat(r," must be a positive number"),wl,i)}catch(a){throw n?yr(a.message,n,i):a}}function ia(t,e,r,n){try{if(typeof t!="string")throw In("".concat(e," must be a string"),Ls,n);if(t.length===0)throw In("".concat(e," must not be empty"),wl,n)}catch(i){throw r?yr(i.message,r,n):i}}function Gbe(t){(function(e,r){if(T5(e)!==r)throw(function(n){let i='"response" content-type must be ';for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];if(o.length>2){const l=o.pop();i+="".concat(o.join(", "),", or ").concat(l)}else o.length===2?i+="".concat(o[0]," or ").concat(o[1]):i+=o[0];return yr(i,exe,n)})(e,r)})(t,"application/json")}function Kbe(){return lb(crypto.getRandomValues(new Uint8Array(32)))}function uYe(t){switch(t.algorithm.name){case"RSA-PSS":return(function(e){switch(e.algorithm.hash.name){case"SHA-256":return"PS256";case"SHA-384":return"PS384";case"SHA-512":return"PS512";default:throw new Lc("unsupported RsaHashedKeyAlgorithm hash name",{cause:e})}})(t);case"RSASSA-PKCS1-v1_5":return(function(e){switch(e.algorithm.hash.name){case"SHA-256":return"RS256";case"SHA-384":return"RS384";case"SHA-512":return"RS512";default:throw new Lc("unsupported RsaHashedKeyAlgorithm hash name",{cause:e})}})(t);case"ECDSA":return(function(e){switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512";default:throw new Lc("unsupported EcKeyAlgorithm namedCurve",{cause:e})}})(t);case"Ed25519":case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return t.algorithm.name;case"EdDSA":return"Ed25519";default:throw new Lc("unsupported CryptoKey algorithm name",{cause:t})}}function fT(t){const e=t?.[F4];return typeof e=="number"&&Number.isFinite(e)?e:0}function H4(t){const e=t?.[j9];return typeof e=="number"&&Number.isFinite(e)&&Math.sign(e)!==-1?e:30}function Q4(){return Math.floor(Date.now()/1e3)}function ec(t){if(typeof t!="object"||t===null)throw In('"as" must be an object',Ls);ia(t.issuer,'"as.issuer"')}function tc(t){if(typeof t!="object"||t===null)throw In('"client" must be an object',Ls);ia(t.client_id,'"client.client_id"')}function Kae(t){return ia(t,'"clientSecret"'),(e,r,n,i)=>{n.set("client_id",r.client_id),n.set("client_secret",t)}}function cYe(t,e){const r=(a=t)instanceof CryptoKey?{key:a}:a?.key instanceof CryptoKey?(a.kid!==void 0&&ia(a.kid,'"kid"'),{key:a.key,kid:a.kid}):{},n=r.key,i=r.kid;var a;return sYe(n,'"clientPrivateKey.key"'),async(o,s,l,u)=>{const c={alg:uYe(n),kid:i},f=(function(d,A){const p=Q4()+fT(A);return{jti:Kbe(),aud:d.issuer,exp:p+60,iat:p,nbf:p,iss:A.client_id,sub:A.client_id}})(o,s);l.set("client_id",s.client_id),l.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),l.set("client_assertion",await(async function(d,A,p){if(!p.usages.includes("sign"))throw In('CryptoKey instances used for signing assertions must include "sign" in their "usages"',wl);const g="".concat(lb(QC(JSON.stringify(d))),".").concat(lb(QC(JSON.stringify(A)))),m=lb(await crypto.subtle.sign((function(y){switch(y.algorithm.name){case"ECDSA":return{name:y.algorithm.name,hash:RYe(y)};case"RSA-PSS":switch($ae(y),y.algorithm.hash.name){case"SHA-256":case"SHA-384":case"SHA-512":return{name:y.algorithm.name,saltLength:parseInt(y.algorithm.hash.name.slice(-3),10)>>3};default:throw new Lc("unsupported RSA-PSS hash name",{cause:y})}case"RSASSA-PKCS1-v1_5":return $ae(y),y.algorithm.name;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":case"Ed25519":return y.algorithm.name}throw new Lc("unsupported CryptoKey algorithm name",{cause:y})})(p),p,QC(g)));return"".concat(g,".").concat(m)})(c,f,n))}}const fYe=URL.parse?(t,e)=>URL.parse(t,e):(t,e)=>{try{return new URL(t,e)}catch{return null}};function x5(t,e){if(e&&t.protocol!=="https:")throw yr("only requests to HTTPS are allowed",txe,t);if(t.protocol!=="https:"&&t.protocol!=="http:")throw yr("only HTTP and HTTPS requests are allowed",rxe,t)}function Wae(t,e,r,n){let i;if(typeof t!="string"||!(i=fYe(t)))throw yr("authorization server metadata does not contain a valid ".concat(r?'"as.mtls_endpoint_aliases.'.concat(e,'"'):'"as.'.concat(e,'"')),t===void 0?DYe:MYe,{attribute:r?"mtls_endpoint_aliases.".concat(e):e});return x5(i,n),i}function gx(t,e,r,n){return r&&t.mtls_endpoint_aliases&&e in t.mtls_endpoint_aliases?Wae(t.mtls_endpoint_aliases[e],e,r,n):Wae(t[e],e,r,n)}
100class S5 extends Error{constructor(e,r){var n;super(e,r),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"error",void 0),Je(this,"status",void 0),Je(this,"error_description",void 0),Je(this,"response",void 0),this.name=this.constructor.name,this.code=TYe,this.cause=r.cause,this.error=r.cause.error,this.status=r.response.status,this.error_description=r.cause.error_description,Object.defineProperty(this,"response",{enumerable:!1,value:r.response}),(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}}class Wbe extends Error{constructor(e,r){var n,i;super(e,r),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"error",void 0),Je(this,"error_description",void 0),this.name=this.constructor.name,this.code=EYe,this.cause=r.cause,this.error=r.cause.get("error"),this.error_description=(n=r.cause.get("error_description"))!==null&&n!==void 0?n:void 0,(i=Error.captureStackTrace)===null||i===void 0||i.call(Error,this,this.constructor)}}class cX extends Error{constructor(e,r){var n;super(e,r),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"response",void 0),Je(this,"status",void 0),this.name=this.constructor.name,this.code=CYe,this.cause=r.cause,this.status=r.response.status,this.response=r.response,Object.defineProperty(this,"response",{enumerable:!1}),(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}}const j4="[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+",dYe="("+j4+')\\s*=\\s*"((?:[^"\\\\]|\\\\[\\s\\S])*)"',hYe="("+j4+")\\s*=\\s*("+j4+")",AYe=new RegExp("^[,\\s]*("+j4+")"),pYe=new RegExp("^[,\\s]*"+dYe+"[,\\s]*(.*)"),vYe=new RegExp("^[,\\s]*"+hYe+"[,\\s]*(.*)"),gYe=new RegExp("^([a-zA-Z0-9\\-\\._\\~\\+\\/]+={0,2})(?:$|[,\\s])(.*)");async function C5(t,e,r){if(t.status!==e){let i;var n;throw Xbe(t),(i=await(async function(a){if(a.status>399&&a.status<500){iE(a),Gbe(a);try{const o=await a.clone().json();if(U4(o)&&typeof o.error=="string"&&o.error.length)return o}catch{}}})(t))?(await((n=t.body)===null||n===void 0?void 0:n.cancel()),new S5("server responded with an error in the response body",{cause:i,response:t})):yr('"response" is not a conform '.concat(r," response (unexpected HTTP status code)"),B5,t)}}function fX(t){if(!dX.has(t))throw In('"options.DPoP" is not a valid DPoPHandle',wl)}async function mYe(t,e,r,n){ec(t),tc(e);const i=gx(t,"userinfo_endpoint",e.use_mtls_endpoint_aliases,n?.[Rs]!==!0),a=Ob(n?.headers);return e.userinfo_signed_response_alg?a.set("accept","application/jwt"):(a.set("accept","application/json"),a.append("accept","application/jwt")),(async function(o,s,l,u,c,f){var d;if(ia(o,'"accessToken"'),!(l instanceof URL))throw In('"url" must be an instance of URL',Ls);x5(l,f?.[Rs]!==!0),u=Ob(u),f!=null&&f.DPoP&&(fX(f.DPoP),await f.DPoP.addProof(l,u,s.toUpperCase(),o)),u.set("authorization","".concat(u.has("dpop")?"DPoP":"Bearer"," ").concat(o));const A=await(f?.[nc]||fetch)(l.href,{duplex:xg(c,ReadableStream)?"half":void 0,body:c,headers:Object.fromEntries(u.entries()),method:s,redirect:"manual",signal:uX(l,f?.signal)});return f==null||(d=f.DPoP)===null||d===void 0||d.cacheNonce(A,l),A})(r,"GET",i,a,null,at(at({},n),{},{[F4]:fT(e)}))}const Ybe=Symbol();function T5(t){var e;return(e=t.headers.get("content-type"))===null||e===void 0?void 0:e.split(";")[0]}async function yYe(t,e,r,n,i){if(ec(t),tc(e),!xg(n,Response))throw In('"response" must be an instance of Response',Ls);if(Xbe(n),n.status!==200)throw yr('"response" is not a conform UserInfo Endpoint response (unexpected HTTP status code)',B5,n);let a;if(iE(n),T5(n)==="application/jwt"){const o=await nxe(await n.text(),ixe.bind(void 0,e.userinfo_signed_response_alg,t.userinfo_signing_alg_values_supported,void 0),fT(e),H4(e),i?.[vh]).then(wYe.bind(void 0,e.client_id)).then(_Ye.bind(void 0,t)),s=o.claims,l=o.jwt;Zbe.set(n,l),a=s}else{if(e.userinfo_signed_response_alg)throw yr("JWT UserInfo Response expected",BYe,n);a=await dI(n)}if(ia(a.sub,'"response" body "sub" property',gn,{body:a}),r!==Ybe){if(ia(r,'"expectedSubject"'),a.sub!==r)throw yr('unexpected "response" body "sub" property value',V4,{expected:r,body:a,attribute:"sub"})}return a}
100async function E5(t,e,r,n,i,a,o){return await r(t,e,i,a),a.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),(o?.[nc]||fetch)(n.href,{body:i,headers:Object.fromEntries(a.entries()),method:"POST",redirect:"manual",signal:uX(n,o?.signal)})}async function fI(t,e,r,n,i,a){var o;const s=gx(t,"token_endpoint",e.use_mtls_endpoint_aliases,a?.[Rs]!==!0);i.set("grant_type",n);const l=Ob(a?.headers);l.set("accept","application/json"),a?.DPoP!==void 0&&(fX(a.DPoP),await a.DPoP.addProof(s,l,"POST"));const u=await E5(t,e,r,s,i,l,a);return a==null||(o=a.DPoP)===null||o===void 0||o.cacheNonce(u,s),u}const $be=new WeakMap,Zbe=new WeakMap;function V9(t){if(!t.id_token)return;const e=$be.get(t);if(!e)throw In('"ref" was already garbage collected or did not resolve from the proper sources',wl);return e}async function dT(t,e,r,n,i,a){if(ec(t),tc(e),!xg(r,Response))throw In('"response" must be an instance of Response',Ls);await C5(r,200,"Token Endpoint"),iE(r);const o=await dI(r);if(ia(o.access_token,'"response" body "access_token" property',gn,{body:o}),ia(o.token_type,'"response" body "token_type" property',gn,{body:o}),o.token_type=o.token_type.toLowerCase(),o.expires_in!==void 0){let s=typeof o.expires_in!="number"?parseFloat(o.expires_in):o.expires_in;Dy(s,!0,'"response" body "expires_in" property',gn,{body:o}),o.expires_in=s}if(o.refresh_token!==void 0&&ia(o.refresh_token,'"response" body "refresh_token" property',gn,{body:o}),o.scope!==void 0&&typeof o.scope!="string")throw yr('"response" body "scope" property must be a string',gn,{body:o});if(o.id_token!==void 0){ia(o.id_token,'"response" body "id_token" property',gn,{body:o});const s=["aud","exp","iat","iss","sub"];e.require_auth_time===!0&&s.push("auth_time"),e.default_max_age!==void 0&&(Dy(e.default_max_age,!0,'"client.default_max_age"'),s.push("auth_time")),n!=null&&n.length&&s.push(...n);const l=await nxe(o.id_token,ixe.bind(void 0,e.id_token_signed_response_alg,t.id_token_signing_alg_values_supported,"RS256"),fT(e),H4(e),i).then(xYe.bind(void 0,s)).then(Jbe.bind(void 0,t)).then(qbe.bind(void 0,e.client_id)),u=l.claims,c=l.jwt;if(Array.isArray(u.aud)&&u.aud.length!==1){if(u.azp===void 0)throw yr('ID Token "aud" (audience) claim includes additional untrusted audiences',Gv,{claims:u,claim:"aud"});if(u.azp!==e.client_id)throw yr('unexpected ID Token "azp" (authorized party) claim value',Gv,{expected:e.client_id,claims:u,claim:"azp"})}u.auth_time!==void 0&&Dy(u.auth_time,!0,'ID Token "auth_time" (authentication time)',gn,{claims:u}),Zbe.set(r,c),$be.set(o,u)}if(a?.[o.token_type]!==void 0)a[o.token_type](r,o);else if(o.token_type!=="dpop"&&o.token_type!=="bearer")throw new Lc("unsupported `token_type` value",{cause:{body:o}});return o}function Xbe(t){let e;if(e=(function(r){if(!xg(r,Response))throw In('"response" must be an instance of Response',Ls);const n=r.headers.get("www-authenticate");if(n===null)return;const i=[];let a=n;for(;a;){var o;let c=a.match(AYe);const f=(o=c)===null||o===void 0?void 0:o[1].toLowerCase();if(!f)return;const d=a.substring(c[0].length);if(d&&!d.match(/^[\s,]/))return;const A=d.match(/^\s+(.*)$/),p=!!A;a=A?A[1]:void 0;const g={};let m;if(p)for(;a;){let b,x;if(c=a.match(pYe)){var s=yl(c,4);if(b=s[1],x=s[2],a=s[3],x.includes("\\"))try{x=JSON.parse('"'.concat(x,'"'))}catch{}g[b.toLowerCase()]=x}else{if(!(c=a.match(vYe))){if(c=a.match(gYe)){if(Object.keys(g).length)break;var l=yl(c,3);m=l[1],a=l[2];break}return}var u=yl(c,4);b=u[1],x=u[2],a=u[3],g[b.toLowerCase()]=x}}else a=d||void 0;const y={scheme:f,parameters:g};m&&(y.token68=m),i.push(y)}return i.length?i:void 0})(t))throw new cX("server responded with a challenge in the WWW-Authenticate HTTP Header",{cause:e,response:t})}function wYe(t,e){return e.claims.aud!==void 0?qbe(t,e):e}function qbe(t,e){if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t))throw yr('unexpected JWT "aud" (audience) claim value',Gv,{expected:t,claims:e.claims,claim:"aud"})}else if(e.claims.aud!==t)throw yr('unexpected JWT "aud" (audience) claim value',Gv,{expected:t,claims:e.claims,claim:"aud"});return e}function _Ye(t,e){return e.claims.iss!==void 0?Jbe(t,e):e}function Jbe(t,e){var r,n;const i=(r=(n=t[axe])===null||n===void 0?void 0:n.call(t,e))!==null&&r!==void 0?r:t.issuer;if(e.claims.iss!==i)throw yr('unexpected JWT "iss" (issuer) claim value',Gv,{expected:i,claims:e.claims,claim:"iss"});return e}const dX=new WeakSet,Yae=Symbol(),bYe={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation",auth_time:"authentication time"};function xYe(t,e){for(const r of t)if(e.claims[r]===void 0)throw yr('JWT "'.concat(r,'" (').concat(bYe[r],") claim missing"),gn,{claims:e.claims});return e}const _V=Symbol(),bV=Symbol();async function SYe(t,e,r,n){return typeof n?.expectedNonce=="string"||typeof n?.maxAge=="number"||n!=null&&n.requireIdToken?(async function(i,a,o,s,l,u,c){const f=[];switch(s){case void 0:s=_V;break;case _V:break;default:ia(s,'"expectedNonce" argument'),f.push("nonce")}switch(l!=null||(l=a.default_max_age),l){case void 0:l=bV;break;case bV:break;default:Dy(l,!0,'"maxAge" argument'),f.push("auth_time")}const d=await dT(i,a,o,f,u,c);ia(d.id_token,'"response" body "id_token" property',gn,{body:d});const A=V9(d);if(l!==bV){const p=Q4()+fT(a),g=H4(a);if(A.auth_time+l<p-g)throw yr("too much time has elapsed since the last End-User authentication",VL,{claims:A,now:p,tolerance:g,claim:"auth_time"})}if(s===_V){if(A.nonce!==void 0)throw yr('unexpected ID Token "nonce" claim value',Gv,{expected:void 0,claims:A,claim:"nonce"})}else if(A.nonce!==s)throw yr('unexpected ID Token "nonce" claim value',Gv,{expected:s,claims:A,claim:"nonce"});return d})(t,e,r,n.expectedNonce,n.maxAge,n[vh],n.recognizedTokenTypes):(async function(i,a,o,s,l){const u=await dT(i,a,o,void 0,s,l),c=V9(u);if(c){if(a.default_max_age!==void 0){Dy(a.default_max_age,!0,'"client.default_max_age"');const f=Q4()+fT(a),d=H4(a);if(c.auth_time+a.default_max_age<f-d)throw yr("too much time has elapsed since the last End-User authentication",VL,{claims:c,now:f,tolerance:d,claim:"auth_time"})}if(c.nonce!==void 0)throw yr('unexpected ID Token "nonce" claim value',Gv,{expected:void 0,claims:c,claim:"nonce"})}return u})(t,e,r,n?.[vh],n?.recognizedTokenTypes)}const CYe="OAUTH_WWW_AUTHENTICATE_CHALLENGE",TYe="OAUTH_RESPONSE_BODY_ERROR",G9="OAUTH_UNSUPPORTED_OPERATION",EYe="OAUTH_AUTHORIZATION_RESPONSE_E
100RROR",BYe="OAUTH_JWT_USERINFO_EXPECTED",z4="OAUTH_PARSE_ERROR",gn="OAUTH_INVALID_RESPONSE",exe="OAUTH_RESPONSE_IS_NOT_JSON",B5="OAUTH_RESPONSE_IS_NOT_CONFORM",txe="OAUTH_HTTP_REQUEST_FORBIDDEN",rxe="OAUTH_REQUEST_PROTOCOL_FORBIDDEN",VL="OAUTH_JWT_TIMESTAMP_CHECK_FAILED",Gv="OAUTH_JWT_CLAIM_COMPARISON_FAILED",V4="OAUTH_JSON_ATTRIBUTE_COMPARISON_FAILED",DYe="OAUTH_MISSING_SERVER_METADATA",MYe="OAUTH_INVALID_SERVER_METADATA";async function LYe(t){if(!xg(t,Response))throw In('"response" must be an instance of Response',Ls);await C5(t,200,"Revocation Endpoint")}function iE(t){if(t.bodyUsed)throw In('"response" body has been used already',wl)}function $ae(t){const e=t.algorithm;if(typeof e.modulusLength!="number"||e.modulusLength<2048)throw new Lc("unsupported ".concat(e.name," modulusLength"),{cause:t})}function RYe(t){switch(t.algorithm.namedCurve){case"P-256":return"SHA-256";case"P-384":return"SHA-384";case"P-521":return"SHA-512";default:throw new Lc("unsupported ECDSA namedCurve",{cause:t})}}async function nxe(t,e,r,n,i){let a,o,s=t.split("."),l=s[0],u=s[1],c=s.length;if(c===5){if(i===void 0)throw new Lc("JWE decryption is not configured",{cause:t});var f=(t=await i(t)).split(".");l=f[0],u=f[1],c=f.length}if(c!==3)throw yr("Invalid JWT",gn,t);try{a=JSON.parse(QC(lb(l)))}catch(A){throw yr("failed to parse JWT Header body as base64url encoded JSON",z4,A)}if(!U4(a))throw yr("JWT Header must be a top level object",gn,t);if(e(a),a.crit!==void 0)throw new Lc('no JWT "crit" header parameter extensions are supported',{cause:{header:a}});try{o=JSON.parse(QC(lb(u)))}catch(A){throw yr("failed to parse JWT Payload body as base64url encoded JSON",z4,A)}if(!U4(o))throw yr("JWT Payload must be a top level object",gn,t);const d=Q4()+r;if(o.exp!==void 0){if(typeof o.exp!="number")throw yr('unexpected JWT "exp" (expiration time) claim type',gn,{claims:o});if(o.exp<=d-n)throw yr('unexpected JWT "exp" (expiration time) claim value, expiration is past current timestamp',VL,{claims:o,now:d,tolerance:n,claim:"exp"})}if(o.iat!==void 0&&typeof o.iat!="number")throw yr('unexpected JWT "iat" (issued at) claim type',gn,{claims:o});if(o.iss!==void 0&&typeof o.iss!="string")throw yr('unexpected JWT "iss" (issuer) claim type',gn,{claims:o});if(o.nbf!==void 0){if(typeof o.nbf!="number")throw yr('unexpected JWT "nbf" (not before) claim type',gn,{claims:o});if(o.nbf>d+n)throw yr('unexpected JWT "nbf" (not before) claim value',VL,{claims:o,now:d,tolerance:n,claim:"nbf"})}if(o.aud!==void 0&&typeof o.aud!="string"&&!Array.isArray(o.aud))throw yr('unexpected JWT "aud" (audience) claim type',gn,{claims:o});return{header:a,claims:o,jwt:t}}async function IYe(t){if(t.method!=="POST")throw In("form_post responses are expected to use the POST method",wl,{cause:t});if(T5(t)!=="application/x-www-form-urlencoded")throw In("form_post responses are expected to use the application/x-www-form-urlencoded content-type",wl,{cause:t});return(async function(e){if(e.bodyUsed)throw In("form_post Request instances must contain a readable body",wl,{cause:e});return e.text()})(t)}function ixe(t,e,r,n){if(t===void 0)if(Array.isArray(e)){if(!e.includes(n.alg))throw yr('unexpected JWT "alg" header parameter',gn,{header:n,expected:e,reason:"authorization server metadata"})}else{if(r===void 0)throw yr('missing client or server configuration to verify used JWT "alg" header parameter',void 0,{client:t,issuer:e,fallback:r});if(typeof r=="string"?n.alg!==r:typeof r=="function"?!r(n.alg):!r.includes(n.alg))throw yr('unexpected JWT "alg" header parameter',gn,{header:n,expected:r,reason:"default value"})}else if(typeof t=="string"?n.alg!==t:!t.includes(n.alg))throw yr('unexpected JWT "alg" header parameter',gn,{header:n,expected:t,reason:"client configuration"})}function y_(t,e){const r=t.getAll(e),n=r[0];if(r.length>1)throw yr('"'.concat(e,'" parameter must be provided only once'),gn);return n}const OYe=Symbol(),PYe=Symbol();
100function kYe(t,e,r,n){if(ec(t),tc(e),r instanceof URL&&(r=r.searchParams),!(r instanceof URLSearchParams))throw In('"parameters" must be an instance of URLSearchParams, or URL',Ls);if(y_(r,"response"))throw yr('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()',gn,{parameters:r});const i=y_(r,"iss"),a=y_(r,"state");if(!i&&t.authorization_response_iss_parameter_supported)throw yr('response parameter "iss" (issuer) missing',gn,{parameters:r});if(i&&i!==t.issuer)throw yr('unexpected "iss" (issuer) response parameter value',gn,{expected:t.issuer,parameters:r});switch(n){case void 0:case PYe:if(a!==void 0)throw yr('unexpected "state" response parameter encountered',gn,{expected:void 0,parameters:r});break;case OYe:break;default:if(ia(n,'"expectedState" argument'),a!==n)throw yr(a===void 0?'response parameter "state" missing':'unexpected "state" response parameter value',gn,{expected:n,parameters:r})}if(y_(r,"error"))throw new Wbe("authorization response from the server is an error",{cause:r});const o=y_(r,"id_token"),s=y_(r,"token");if(o!==void 0||s!==void 0)throw new Lc("implicit and hybrid flows are not supported");return l=new URLSearchParams(r),dX.add(l),l;var l}async function dI(t){let e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gbe;try{e=await t.json()}catch(n){throw r(t),yr('failed to parse "response" body as JSON',z4,n)}if(!U4(e))throw yr('"response" body must be a top level object',gn,{body:e});return e}const xV=Symbol(),axe=Symbol(),oxe=new TextEncoder,K9=new TextDecoder,hX=new TextDecoder("utf-8",{fatal:!0});function sxe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];const n=e.reduce((o,s)=>o+s.length,0),i=new Uint8Array(n);let a=0;for(const o of e)i.set(o,a),a+=o.length;return i}function ub(t){const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(n>127)throw new TypeError("non-ASCII string encountered in encode()");e[r]=n}return e}const xk=function(t){return new TypeError("CryptoKey does not support this operation, its ".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"algorithm.name"," must be ").concat(t))};function NYe(t,e,r){var n;const i=t.algorithm;if(i.name!==e.name)throw xk(e.name);if(e.hash&&((n=i.hash)===null||n===void 0?void 0:n.name)!==e.hash)throw xk(e.hash,"algorithm.hash");if(e.namedCurve&&i.namedCurve!==e.namedCurve)throw xk(e.namedCurve,"algorithm.namedCurve");if(e.length!==void 0&&i.length!==e.length)throw xk(e.length,"algorithm.length");(function(a,o){if(o&&!a.usages.includes(o))throw new TypeError("CryptoKey does not support this operation, its usages must include ".concat(o,"."))})(t,r)}const Sk=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(function(a,o){for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];if(l.length>2){const f=l.pop();a+="one of type ".concat(l.join(", "),", or ").concat(f,".")}else l.length===2?a+="one of type ".concat(l[0]," or ").concat(l[1],"."):a+="of type ".concat(l[0],".");if(o==null)a+=" Received ".concat(o);else if(typeof o=="function"&&o.name)a+=" Received function ".concat(o.name);else if(typeof o=="object"&&o!=null){var c;(c=o.constructor)!==null&&c!==void 0&&c.name&&(a+=" Received an instance of ".concat(o.constructor.name))}return a})("Key for the ".concat(t," algorithm must be "),e,...n)};class Is extends Error{constructor(e,r){var n;super(e,r),Je(this,"code","ERR_JOSE_GENERIC"),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}}Je(Is,"code","ERR_JOSE_GENERIC");class W_ extends Is{constructor(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"unspecified",i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unspecified";super(e,{cause:{claim:n,reason:i,payload:r}}),Je(this,"code","ERR_JWT_CLAIM_VALIDATION_FAILED"),Je(this,"claim",void 0),Je(this,"reason",void 0),Je(this,"payload",void 0),this.claim=n,this.reason=i,this.payload=r}}Je(W_,"code","ERR_JWT_CLAIM_VALIDATION_FAILED");class W9 extends Is{constructor(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"unspecified",i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unspecified";super(e,{cause:{claim:n,reason:i,payload:r}}
vendor: 2,108 bytes, line 100
100),Je(this,"code","ERR_JWT_EXPIRED"),Je(this,"claim",void 0),Je(this,"reason",void 0),Je(this,"payload",void 0),this.claim=n,this.reason=i,this.payload=r}}Je(W9,"code","ERR_JWT_EXPIRED");class lxe extends Is{constructor(){super(...arguments),Je(this,"code","ERR_JOSE_ALG_NOT_ALLOWED")}}Je(lxe,"code","ERR_JOSE_ALG_NOT_ALLOWED");class lg extends Is{constructor(){super(...arguments),Je(this,"code","ERR_JOSE_NOT_SUPPORTED")}}Je(lg,"code","ERR_JOSE_NOT_SUPPORTED");Je(class extends Is{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"decryption operation failed",arguments.length>1?arguments[1]:void 0),Je(this,"code","ERR_JWE_DECRYPTION_FAILED")}},"code","ERR_JWE_DECRYPTION_FAILED");Je(class extends Is{constructor(){super(...arguments),Je(this,"code","ERR_JWE_INVALID")}},"code","ERR_JWE_INVALID");class vl extends Is{constructor(){super(...arguments),Je(this,"code","ERR_JWS_INVALID")}}Je(vl,"code","ERR_JWS_INVALID");class Zd extends Is{constructor(){super(...arguments),Je(this,"code","ERR_JWT_INVALID")}}Je(Zd,"code","ERR_JWT_INVALID");Je(class extends Is{constructor(){super(...arguments),Je(this,"code","ERR_JWK_INVALID")}},"code","ERR_JWK_INVALID");class AX extends Is{constructor(){super(...arguments),Je(this,"code","ERR_JWKS_INVALID")}}Je(AX,"code","ERR_JWKS_INVALID");class pX extends Is{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"no applicable key found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),Je(this,"code","ERR_JWKS_NO_MATCHING_KEY")}}Je(pX,"code","ERR_JWKS_NO_MATCHING_KEY");class uxe extends Is{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"multiple matching keys found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),Je(this,Symbol.asyncIterator,Cbe(function*(){})),Je(this,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS")}}Je(uxe,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS");class cxe extends Is{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"request timed out",arguments.length>1?arguments[1]:void 0),Je(this,"code","ERR_JWKS_TIMEOUT")}}
100Je(cxe,"code","ERR_JWKS_TIMEOUT");class fxe extends Is{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"signature verification failed",arguments.length>1?arguments[1]:void 0),Je(this,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED")}}Je(fxe,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED");const dxe=t=>{if(t?.[Symbol.toStringTag]==="CryptoKey")return!0;try{return t instanceof CryptoKey}catch{return!1}},FYe=t=>dxe(t)||(e=>e?.[Symbol.toStringTag]==="KeyObject")(t);function hxe(t){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(t);const e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}const SV="The input to be decoded is not correctly encoded.";function D5(t){if(Uint8Array.fromBase64)try{return Uint8Array.fromBase64(typeof t=="string"?t:K9.decode(t),{alphabet:"base64url"})}catch(r){throw new TypeError(SV,{cause:r})}let e=t;if(e instanceof Uint8Array&&(e=K9.decode(e)),e.includes("+")||e.includes("/"))throw new TypeError(SV);e=e.replace(/-/g,"+").replace(/_/g,"/");try{return hxe(e)}catch{throw new TypeError(SV)}}function vX(t){let e=t;return typeof e=="string"&&(e=oxe.encode(e)),Uint8Array.prototype.toBase64?e.toBase64({alphabet:"base64url",omitPadding:!0}):(function(r){if(Uint8Array.prototype.toBase64)return r.toBase64();const n=[];for(let i=0;i<r.length;i+=32768)n.push(String.fromCharCode.apply(null,r.subarray(i,i+32768)));return btoa(n.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function $y(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Axe(t){return $y(t)&&Array.isArray(t.keys)&&Array.from(t.keys).every($y)}function Zae(t,e,r){try{return D5(t)}catch{throw new r("Failed to base64url decode the ".concat(e))}}async function pxe(t,e){var r,n,i,a;if(e.kty==="RSA"&&"oth"in e&&e.oth!==void 0)throw new lg('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');if(!t.kty.includes(e.kty))throw new lg('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');const o=(r=(n=t.resolve)===null||n===void 0?void 0:n.call(t,{kty:e.kty,crv:e.crv}))!==null&&r!==void 0?r:t.subtle,s=!(!e.d&&!e.priv),l=at({},e);return l.kty!=="AKP"&&delete l.alg,delete l.use,crypto.subtle.importKey("jwk",l,o,(i=e.ext)!==null&&i!==void 0?i:!s,(a=e.key_ops)!==null&&a!==void 0?a:t.usages[s?1:0])}function vxe(t){return at({__proto__:null},t)}const CV=t=>t[Symbol.toStringTag];function UYe(t,e,r){const n=t.alg,i=t.secret,a=r==="decrypt"||r==="sign";if(i&&e instanceof Uint8Array)return[gxe,e];if($y(e)){const o=(function(s){const l=vxe(s);if(l.ext!==void 0&&typeof l.ext!="boolean")throw new TypeError('"ext" (Extractable) Parameter must be a boolean');if(l.key_ops!==void 0){const u=l.key_ops,c=Array.isArray(u)?[...u]:void 0;if(!c||c.some(f=>typeof f!="string")||new Set(c).size!==c.length)throw new TypeError('"key_ops" (Key Operations) Parameter must be an array of unique strings');l.key_ops=c}return l})(e);if(typeof o.kty!="string")throw new TypeError(i?Sk(n,e,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"):Sk(n,e,"CryptoKey","KeyObject","JSON Web Key"));if(!(i?o.kty==="oct"&&typeof o.k=="string":o.kty!=="oct"&&(a?o.kty==="AKP"&&typeof o.priv=="string"||typeof o.d=="string":o.d===void 0&&o.priv===void 0)))throw new TypeError(i?'JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present':"JSON Web Key for this operation must be a ".concat(a?"private":"public"," JWK"));return((s,l,u)=>{const c=s.alg;if(l.use!==void 0){const d=u==="sign"||u==="verify"?"sig":"enc";if(l.use!==d)throw new TypeError('Invalid key for this operation, its "use" must be "'.concat(d,'" when present'))}if(l.alg!==void 0&&l.alg!==c)throw new TypeError('Invalid key for this operation, its "alg" must be "'.concat(c,'" when present'));if(Array.isArray(l.key_ops)){var f;const d=u==="encrypt"||u==="decrypt"?(f=s.ops)===null||f===void 0?void 0:f[u==="encrypt"?0:1]:u;if(d&&!l.key_ops.includes(d))throw new TypeError('Invalid key for this operation, its "key_ops" must include "'.concat(d,'" when present'))}})(t,o,r),[wxe,e,o]}if(!FYe(e))throw new TypeError(i?Sk(n,e,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"):Sk(n,e,"CryptoKey","KeyObject","JSON Web Key"));if(i){if(e.type!=="secret")throw new TypeError("".concat(CV(e),' instances for symmetric algorithms must be of type "secret"'))}else{if(e.type==="secret")throw new TypeError("".concat(CV(e),' instances for asymmetric algorithms must not be of type "secret"'));const o=a?"private":"public";if((e.type==="public"||e.type==="private")&&e.type!==o){const s=r==="sign"?"signing":r==="verify"?"verifying":"".concat(r.slice(0,-1),"tion");throw new TypeError("".concat(CV(e)," instances for asymmetric algorithm ").concat(s,' must be of type "').concat(o,'"'))}}return dxe(e)?[mxe,e]:[yxe,e]}const gxe=0,mxe=1,yxe=2,wxe=3;let Ck;const HYe={__proto__:null,prime256v1:"P-256",secp384r1:"P-384",secp521r1:"P-521"};function G4(t,e,r){Ck||(Ck=new WeakMap);const n=Ck.get(t);return r&&(n?n[e]=r:Ck.set(t,{[e]:r})),r??n?.[e]}const Xae=async(t,e,r)=>{var n;return(n=G4(t,r.alg))!==null&&n!==void 0?n:G4(t,r.alg,await pxe(r,at(at({},e),{},{alg:r.alg})))};async function _xe(t,e,r){const n=UYe(t,e,r);switch(n[0]){case gxe:case mxe:return n[1];case wxe:{const i=n[1],a=n[2];if(a.kty==="oct")return D5(a.k);if(!Object.isFrozen(i)){const o=i.key_ops;Array.isArray(o)&&Object.freeze(o),Object.freeze(i)}return Xae(i,a,t)}case yxe:{const i=n[1];return i.type==="secret"?i.export():"toCryptoKey"in i&&typeof i.toCryptoKey=="function"?((a,o)=>{var s,l,u;const c=G4(a,o.alg);if(c)return c;const f=a.type==="public",d=o.usages[f?0:1],A=a.asymmetricKeyType,p=HYe[(s=a.asymmetricKeyDetails)===null||s===void 0?void 0:s.namedCurve],g=(l=(u=o.resolve)===null||u===void 0?void 0:u.call(o,{crv:p,asymmetricKeyType:A}))!==null&&l!==void 0?l:o.subtle;return G4(a,o.alg,a.toCryptoKey(g,f,d))})(i,t):Xae(i,i.export({format:"jwk"}),t)}}}function gX(t){const e={__proto__:null};for(const r in t)e[r]=at(at({},t[r]),{},{alg:r});return e}const QYe=[["encrypt","wrapKey"],["decrypt","unwrapKey"]],jYe=[[],["deriveBits"]],M5=[[],[]];function Tk(t){return{kty:["RSA"],subtle:{name:"RSA-OAEP",hash:"SHA-".concat(t)},usages:QYe,ops:["wrapKey","unwrapKey"]}}function Ek(){return{kty:["EC","OKP"],subtle:{name:"ECDH"},resolve:t=>{let e=t.kty,r=t.crv,n=t.asymmetricKeyType;if(r==="X25519"||n==="x25519")return{name:"X25519"};
100if(e==="OKP")throw new lg('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');return{name:"ECDH",namedCurve:r}},usages:jYe,ops:[void 0,"deriveBits"]}}function gS(t){let e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return{kty:["oct"],secret:!0,subtle:{name:e?"AES-GCM":"AES-KW",length:t},usages:M5,ops:e?["encrypt","decrypt"]:["wrapKey","unwrapKey"]}}function TV(){return{kty:["oct"],secret:!0,subtle:{name:"PBKDF2"},usages:M5,ops:["deriveBits","deriveBits"]}}const zYe=gX({dir:{kty:["oct"],secret:!0,subtle:{name:"AES-GCM"},usages:M5,ops:["encrypt","decrypt"]},"RSA-OAEP":Tk(1),"RSA-OAEP-256":Tk(256),"RSA-OAEP-384":Tk(384),"RSA-OAEP-512":Tk(512),"ECDH-ES":Ek(),"ECDH-ES+A128KW":Ek(),"ECDH-ES+A192KW":Ek(),"ECDH-ES+A256KW":Ek(),A128KW:gS(128),A192KW:gS(192),A256KW:gS(256),A128GCMKW:gS(128,!0),A192GCMKW:gS(192,!0),A256GCMKW:gS(256,!0),"PBES2-HS256+A128KW":TV(),"PBES2-HS384+A192KW":TV(),"PBES2-HS512+A256KW":TV()}),VYe=["encrypt","decrypt"];function mS(t){let e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return{kty:["oct"],secret:!0,subtle:{name:e?"AES-CBC":"AES-GCM",length:t},usages:M5,ops:VYe,cekBits:t,ivBits:e?128:96,cbc:e}}gX({A128GCM:mS(128),A192GCM:mS(192),A256GCM:mS(256),"A128CBC-HS256":mS(256,!0),"A192CBC-HS384":mS(384,!0),"A256CBC-HS512":mS(512,!0)});
100const bxe={__proto__:null,b64:!0};function GYe(t,e){if(e!==void 0&&(!Array.isArray(e)||e.some(r=>typeof r!="string")))throw new TypeError('"'.concat(t,'" option must be an array of strings'));if(e)return new Set(e)}function xxe(t,e,r,n,i){if(i.crit!==void 0&&n?.crit===void 0)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||n.crit===void 0)return[];if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some(o=>typeof o!="string"||o.length===0))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');const a=r===void 0?e:at(at({__proto__:null},r),e);for(const o of n.crit){if(!(o in a))throw new lg('Extension Header Parameter "'.concat(o,'" is not recognized'));if(!Object.hasOwn(i,o)||i[o]===void 0)throw new t('Extension Header Parameter "'.concat(o,'" is missing'));if(a[o]&&(!Object.hasOwn(n,o)||n[o]===void 0))throw new t('Extension Header Parameter "'.concat(o,'" MUST be integrity protected'))}return n.crit}function Sxe(t,e){if(e.includes("b64")){const r=t.b64;if(typeof r!="boolean")throw new vl('The "b64" (base64url-encode payload) Header Parameter must be a boolean');return r}return!0}var Bk,EV;let Jf,qae;(typeof navigator>"u"||(Bk=navigator.userAgent)===null||Bk===void 0||(EV=Bk.startsWith)===null||EV===void 0||!EV.call(Bk,"Mozilla/5.0 "))&&(qae="".concat("openid-client","/").concat("v6.8.4"),Jf={"user-agent":qae});const xo=t=>dU.get(t);let dU,Dk;function Cxe(t){return t!==void 0?Kae(t):(Dk||(Dk=new WeakMap),(e,r,n,i)=>{let a;return(a=Dk.get(r))||((function(o,s){if(typeof o!="string")throw ep("".concat(s," must be a string"),AI);if(o.length===0)throw ep("".concat(s," must not be empty"),hI)})(r.client_secret,'"metadata.client_secret"'),a=Kae(r.client_secret),Dk.set(r,a)),a(e,r,n,i)})}const KYe=Ybe,wn=nc,hI="ERR_INVALID_ARG_VALUE",AI="ERR_INVALID_ARG_TYPE";function ep(t,e,r){const n=new TypeError(t,{cause:r});return Object.assign(n,{code:e}),n}function WYe(t){return(async function(e){return ia(e,"codeVerifier"),lb(await crypto.subtle.digest("SHA-256",QC(e)))})(t)}function YYe(){return Kbe()}class K4 extends Error{constructor(e,r){var n;super(e,r),Je(this,"code",void 0),this.name=this.constructor.name,this.code=r?.code,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}}function zl(t,e,r){return new K4(t,{cause:e,code:r})}function To(t){if(t instanceof TypeError||t instanceof K4||t instanceof S5||t instanceof Wbe||t instanceof cX)throw t;if(t instanceof lX)switch(t.code){case txe:throw zl("only requests to HTTPS are allowed",t,t.code);case rxe:throw zl("only requests to HTTP or HTTPS are allowed",t,t.code);case B5:throw zl("unexpected HTTP response status code",t.cause,t.code);case exe:throw zl("unexpected response content-type",t.cause,t.code);case z4:throw zl("parsing error occured",t,t.code);case gn:throw zl("invalid response encountered",t,t.code);case Gv:throw zl("unexpected JWT claim value encountered",t,t.code);case V4:throw zl("unexpected JSON attribute value encountered",t,t.code);case VL:throw zl("JWT timestamp claim value failed validation",t,t.code);default:throw zl(t.message,t,t.code)}if(t instanceof Lc)throw zl("unsupported operation",t,t.code);if(t instanceof DOMException)switch(t.name){case"OperationError":throw zl("runtime operation error",t,G9);case"NotSupportedError":throw zl("runtime unsupported operation",t,G9);case"TimeoutError":throw zl("operation timed out",t,"OAUTH_TIMEOUT");case"AbortError":throw zl("operation aborted",t,"OAUTH_ABORT")}throw new K4("something went wrong",{cause:t})}async function $Ye(t,e,r,n,i){const a=await(async function(l,u){var c,f;if(!(l instanceof URL))throw ep('"server" must be an instance of URL',AI);const d=!l.href.includes("/.well-known/"),A=(c=u?.timeout)!==null&&c!==void 0?c:30,p=AbortSignal.timeout(1e3*A),g=await(d?lYe(l,{algorithm:u?.algorithm,[nc]:u?.[wn],[Rs]:u==null||(f=u.execute)===null||f===void 0?void 0:f.includes(eoe),signal:p,headers:new Headers(Jf)}):(u?.[wn]||fetch)((x5(l,u==null||(m=u.execute)===null||m===void 0||!m.includes(eoe)),l.href),{headers:Object.fromEntries(new Headers(at({accept:"application/json"},Jf)).entries()),body:void 0,method:"GET",redirect:"manual",signal:p})).then(y=>(async function(b,x){const T=b;if(!(T instanceof URL)&&T!==xV)throw In('"expectedIssuerIdentifier" must be an instance of URL',Ls);if(!xg(x,Response))throw In('"response" must be an instance of Response',Ls);if(x.status!==200)throw yr('"response" is not a conform Authorization Server Metadata response 
100(unexpected HTTP status code)',B5,x);iE(x);const B=await dI(x);if(ia(B.issuer,'"response" body "issuer" property',gn,{body:B}),T!==xV&&new URL(B.issuer).href!==T.href)throw yr('"response" body "issuer" property does not match the expected value',V4,{expected:T.href,body:B,attribute:"issuer"});return B})(xV,y)).catch(To);var m;return d&&new URL(g.issuer).href!==l.href&&((function(y,b,x){return!(y.origin!=="https://login.microsoftonline.com"||x!=null&&x.algorithm&&x.algorithm!=="oidc"||(b[Txe]=!0,0))})(l,g,u)||(function(y,b){return!(!y.hostname.endsWith(".b2clogin.com")||b!=null&&b.algorithm&&b.algorithm!=="oidc")})(l,u)||(()=>{throw new K4("discovered metadata issuer does not match the expected issuer",{code:V4,cause:{expected:l.href,body:g,attribute:"issuer"}})})()),g})(t,i),o=new hT(a,e,r,n);let s=xo(o);if(i!=null&&i[wn]&&(s.fetch=i[wn]),i!=null&&i.timeout&&(s.timeout=i.timeout),i!=null&&i.execute)for(const l of i.execute)l(o);return o}new TextDecoder;const Txe=Symbol();class hT{constructor(e,r,n,i){var a,o,s,l,u;if(typeof r!="string"||!r.length)throw ep('"clientId" must be a non-empty string',AI);if(typeof n=="string"&&(n={client_secret:n}),((a=n)===null||a===void 0?void 0:a.client_id)!==void 0&&r!==n.client_id)throw ep('"clientId" and "metadata.client_id" must be the same',hI);const c=at(at({},structuredClone(n)),{},{client_id:r});let f;c[F4]=(o=(s=n)===null||s===void 0?void 0:s[F4])!==null&&o!==void 0?o:0,c[j9]=(l=(u=n)===null||u===void 0?void 0:u[j9])!==null&&l!==void 0?l:30,f=i||(typeof c.client_secret=="string"&&c.client_secret.length?Cxe(c.client_secret):(g,m,y,b)=>{y.set("client_id",m.client_id)});let d=Object.freeze(c);const A=structuredClone(e);Txe in e&&(A[axe]=g=>{let m=g.claims.tid;return e.issuer.replace("{tenantid}",m)});let p=Object.freeze(A);dU||(dU=new WeakMap),dU.set(this,{__proto__:null,as:p,c:d,auth:f,tlsOnly:!0,jwksCache:{}})}serverMetadata(){const e=structuredClone(xo(this).as);return(function(r){Object.defineProperties(r,(function(n){return{supportsPKCE:{__proto__:null,value(){var i;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"S256";return((i=n.code_challenge_methods_supported)===null||i===void 0?void 0:i.includes(a))===!0}}}})(r))})(e),e}clientMetadata(){return structuredClone(xo(this).c)}get timeout(){return xo(this).timeout}set timeout(e){xo(this).timeout=e}get[wn](){return xo(this).fetch}set[wn](e){xo(this).fetch=e}}function pI(t){Object.defineProperties(t,(function(e){let r;if(e.expires_in!==void 0){const n=new Date;n.setSeconds(n.getSeconds()+e.expires_in),r=n.getTime()}
100return{expiresIn:{__proto__:null,value(){if(r){const n=Date.now();return r>n?Math.floor((r-n)/1e3):0}}},claims:{__proto__:null,value(){try{return V9(this)}catch{return}}}}})(t))}async function Jae(t,e,r){var n;let i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const a=(n=t.headers.get("retry-after"))===null||n===void 0?void 0:n.trim();if(a===void 0)return;let o;if(/^\d+$/.test(a))o=parseInt(a,10);else{const s=new Date(a);if(Number.isFinite(s.getTime())){const l=new Date,u=s.getTime()-l.getTime();u>0&&(o=Math.ceil(u/1e3))}}if(i&&!Number.isFinite(o))throw new lX("invalid Retry-After header value",{cause:t});o>e&&await Exe(o-e,r)}function Exe(t,e){return new Promise((r,n)=>{const i=a=>{try{e.throwIfAborted()}catch(s){return void n(s)}if(a<=0)return void r();const o=Math.min(a,5);setTimeout(()=>i(a-o),1e3*o)};i(t)})}async function BV(t,e){_h(t);const r=xo(t),n=r.as,i=r.c,a=r.auth,o=r.fetch,s=r.tlsOnly,l=r.timeout;return(async function(u,c,f,d,A){ec(u),tc(c);const p=gx(u,"backchannel_authentication_endpoint",c.use_mtls_endpoint_aliases,A?.[Rs]!==!0),g=new URLSearchParams(d);g.set("client_id",c.client_id);const m=Ob(A?.headers);return m.set("accept","application/json"),E5(u,c,f,p,g,m,A)})(n,i,a,e,{[nc]:o,[Rs]:!s,headers:new Headers(Jf),signal:Sg(l)}).then(u=>(async function(c,f,d){if(ec(c),tc(f),!xg(d,Response))throw In('"response" must be an instance of Response',Ls);await C5(d,200,"Backchannel Authentication Endpoint"),iE(d);const A=await dI(d);ia(A.auth_req_id,'"response" body "auth_req_id" property',gn,{body:A});let p=typeof A.expires_in!="number"?parseFloat(A.expires_in):A.expires_in;return Dy(p,!0,'"response" body "expires_in" property',gn,{body:A}),A.expires_in=p,A.interval!==void 0&&Dy(A.interval,!1,'"response" body "interval" property',gn,{body:A}),A})(n,i,u)).catch(To)}async function Y9(t,e,r,n){var i,a;_h(t),r=new URLSearchParams(r);let o=(i=e.interval)!==null&&i!==void 0?i:5;const s=(a=n?.signal)!==null&&a!==void 0?a:AbortSignal.timeout(1e3*e.expires_in);try{await Exe(o,s)}catch(I){To(I)}const l=xo(t),u=l.as,c=l.c,f=l.auth,d=l.fetch,A=l.tlsOnly,p=l.nonRepudiation,g=l.timeout,m=l.decrypt,y=(I,N)=>Y9(t,at(at({},e),{},{interval:I}),r,at(at({},n),{},{signal:s,flag:N})),b=(function(I,N){const F=Sg(N);if(!F)return{signal:I,cleanup(){}};const Q=new AbortController,j=W=>{const V=W.target;Q.abort(V.reason)};return I.aborted?Q.abort(I.reason):F.aborted?Q.abort(F.reason):(I.addEventListener("abort",j,{once:!0}),F.addEventListener("abort",j,{once:!0})),{signal:Q.signal,cleanup(){I.removeEventListener("abort",j),F.removeEventListener("abort",j)}}})(s,g),x=await(async function(I,N,F,Q,j){ec(I),tc(N),ia(Q,'"authReqId"');const W=new URLSearchParams(j?.additionalParameters);return W.set("auth_req_id",Q),fI(I,N,F,"urn:openid:params:grant-type:ciba",W,j)})(u,c,f,e.auth_req_id,{[nc]:d,[Rs]:!A,additionalParameters:r,DPoP:n?.DPoP,headers:new Headers(Jf),signal:b.signal}).catch(To).finally(b.cleanup);var T;if(x.status===503&&x.headers.has("retry-after"))return await Jae(x,o,s,!0),await((T=x.body)===null||T===void 0?void 0:T.cancel()),y(o);const B=(async function(I,N,F,Q){return dT(I,N,F,void 0,Q?.[vh],Q?.recognizedTokenTypes)})(u,c,x,{[vh]:m});let R;try{R=await B}catch(I){if(mx(I,n))return y(o,jA);if(I instanceof S5)switch(I.error){case"slow_down":o+=5;case"authorization_pending":return await Jae(I.response,o,s),y(o)}To(I)}return R.id_token&&await p?.(x),pI(R),R}function eoe(t){xo(t).tlsOnly=!1}async function cM(t,e,r,n,i){if(_h(t),!(i?.flag===jA||e instanceof URL||(function(I,N){try{return Object.getPrototypeOf(I)[Symbol.toStringTag]===N}catch{return!1}})(e,"Request")))throw ep('"currentUrl" must be an instance of URL, or Request',AI);let a,o;const s=xo(t),l=s.as,u=s.c,c=s.auth,f=s.fetch,d=s.tlsOnly,A=s.jarm,p=s.hybrid,g=s.nonRepudiation,m=s.timeout,y=s.decrypt,b=s.implicit;if(i?.flag===jA)a=i.authResponse,o=i.redirectUri;else{if(!(e instanceof URL)){const I=e;switch(e=new URL(e.url),I.method){case"GET":break;case"POST":const N=new URLSearchParams(await IYe(I));if(p)e.hash=N.toString();else for(const F of N.entries()){var x=yl(F,2);const Q=x[0],j=x[1];e.searchParams.append(Q,j)}break;
100default:throw ep("unexpected Request HTTP method",hI)}}switch(o=(function(I){return(I=new URL(I)).search="",I.hash="",I.href})(e),!0){case!!A:a=await A(e,r?.expectedState);break;case!!p:a=await p(e,r?.expectedNonce,r?.expectedState,r?.maxAge);break;case!!b:throw new TypeError("authorizationCodeGrant() cannot be used by response_type=id_token clients");default:try{a=kYe(l,u,e.searchParams,r?.expectedState)}catch(I){To(I)}}}const T=await(async function(I,N,F,Q,j,W,V){if(ec(I),tc(N),!dX.has(Q))throw In('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()',wl);ia(j,'"redirectUri"');const Y=y_(Q,"code");if(!Y)throw yr('no authorization code in "callbackParameters"',gn);const G=new URLSearchParams(V?.additionalParameters);return G.set("redirect_uri",j),G.set("code",Y),W!==Yae&&(ia(W,'"codeVerifier"'),G.set("code_verifier",W)),fI(I,N,F,"authorization_code",G,V)})(l,u,c,a,o,r?.pkceCodeVerifier||Yae,{additionalParameters:n,[nc]:f,[Rs]:!d,DPoP:i?.DPoP,headers:new Headers(Jf),signal:Sg(m)}).catch(To);typeof r?.expectedNonce!="string"&&typeof r?.maxAge!="number"||(r.idTokenExpected=!0);const B=SYe(l,u,T,{expectedNonce:r?.expectedNonce,maxAge:r?.maxAge,requireIdToken:r?.idTokenExpected,[vh]:y});let R;try{R=await B}catch(I){if(mx(I,i))return cM(t,void 0,r,n,at(at({},i),{},{flag:jA,authResponse:a,redirectUri:o}));To(I)}return R.id_token&&await g?.(T),pI(R),R}async function $9(t,e,r,n){_h(t),r=new URLSearchParams(r);const i=xo(t),a=i.as,o=i.c,s=i.auth,l=i.fetch,u=i.tlsOnly,c=i.nonRepudiation,f=i.timeout,d=i.decrypt,A=await(async function(m,y,b,x,T){ec(m),tc(y),ia(x,'"refreshToken"');const B=new URLSearchParams(T?.additionalParameters);return B.set("refresh_token",x),fI(m,y,b,"refresh_token",B,T)})(a,o,s,e,{[nc]:l,[Rs]:!u,additionalParameters:r,DPoP:n?.DPoP,headers:new Headers(Jf),signal:Sg(f)}).catch(To),p=(async function(m,y,b,x){return dT(m,y,b,void 0,x?.[vh],x?.recognizedTokenTypes)})(a,o,A,{[vh]:d});let g;try{g=await p}catch(m){if(mx(m,n))return $9(t,e,r,at(at({},n),{},{flag:jA}));To(m)}return g.id_token&&await c?.(A),pI(g),g}async function Z9(t,e,r){_h(t),e=new URLSearchParams(e);const n=xo(t),i=n.as,a=n.c,o=n.auth,s=n.fetch,l=n.tlsOnly,u=n.timeout,c=await(async function(A,p,g,m,y){return ec(A),tc(p),fI(A,p,g,"client_credentials",new URLSearchParams(m),y)})(i,a,o,e,{[nc]:s,[Rs]:!l,DPoP:r?.DPoP,headers:new Headers(Jf),signal:Sg(u)}).catch(To),f=(async function(A,p,g,m){return dT(A,p,g,void 0,void 0,void 0)})(i,a,c);let d;try{d=await f}catch(A){if(mx(A,r))return Z9(t,e,at(at({},r),{},{flag:jA}));To(A)}return pI(d),d}function X9(t,e){_h(t);const r=xo(t),n=r.as,i=r.c,a=r.tlsOnly,o=r.hybrid,s=r.jarm,l=r.implicit,u=gx(n,"authorization_endpoint",!1,a);if((e=new URLSearchParams(e)).has("client_id")||e.set("client_id",i.client_id),!e.has("request_uri")&&!e.has("request")){if(e.has("response_type")||e.set("response_type",o?"code id_token":l?"id_token":"code"),l&&!e.has("nonce"))throw ep("response_type=id_token clients must provide a nonce parameter in their authorization request parameters",hI);s&&e.set("response_mode","jwt")}for(const f of e.entries()){var c=yl(f,2);const d=c[0],A=c[1];u.searchParams.append(d,A)}return u}async function Bxe(t,e,r){_h(t);const n=X9(t,e),i=xo(t),a=i.as,o=i.c,s=i.auth,l=i.fetch,u=i.tlsOnly,c=i.timeout,f=await(async function(p,g,m,y,b){var x;ec(p),tc(g);const T=gx(p,"pushed_authorization_request_endpoint",g.use_mtls_endpoint_aliases,b?.[Rs]!==!0),B=new URLSearchParams(y);B.set("client_id",g.client_id);const R=Ob(b?.headers);R.set("accept","application/json"),b?.DPoP!==void 0&&(fX(b.DPoP),await b.DPoP.addProof(T,R,"POST"));const I=await E5(p,g,m,T,B,R,b);return b==null||(x=b.DPoP)===null||x===void 0||x.cacheNonce(I,T),I})(a,o,s,n.searchParams,{[nc]:l,[Rs]:!u,DPoP:r?.DPoP,headers:new Headers(Jf),signal:Sg(c)}).catch(To),d=(async function(p,g,m){if(ec(p),tc(g),!xg(m,Response))throw In('"response" must be an instance of Response',Ls);await C5(m,201,"Pushed Authorization Request Endpoint"),iE(m);const y=await dI(m);ia(y.request_uri,'"response" body "request_uri" property',gn,{body:y});let b=typeof y.expires_in!="number"?parseFloat(y.expires_in):y.expires_in;return Dy(b,!0,'"response" body "expires_in" property',gn,{body:y}),y.expires_in=b,y})(a,o,f);let A;
100try{A=await d}catch(p){if(mx(p,r))return Bxe(t,e,at(at({},r),{},{flag:jA}));To(p)}return X9(t,{request_uri:A.request_uri})}function _h(t){if(!(t instanceof hT))throw ep('"config" must be an instance of Configuration',AI);if(Object.getPrototypeOf(t)!==hT.prototype)throw ep("subclassing Configuration is not allowed",hI)}function Sg(t){return t?AbortSignal.timeout(1e3*t):void 0}async function Dxe(t,e,r,n){_h(t);const i=xo(t),a=i.as,o=i.c,s=i.fetch,l=i.tlsOnly,u=i.nonRepudiation,c=i.timeout,f=i.decrypt,d=await mYe(a,o,e,{[nc]:s,[Rs]:!l,DPoP:n?.DPoP,headers:new Headers(Jf),signal:Sg(c)}).catch(To);let A,p=yYe(a,o,r,d,{[vh]:f});try{A=await p}catch(g){if(mx(g,n))return Dxe(t,e,r,at(at({},n),{},{flag:jA}));To(g)}return T5(d)==="application/jwt"&&await u?.(d),A}function mx(t,e){return!(e==null||!e.DPoP||e.flag===jA)&&(function(r){if(r instanceof cX){const n=r.cause,i=n[0];return n.length===1&&i.scheme==="dpop"&&i.parameters.error==="use_dpop_nonce"}return r instanceof S5&&r.error==="use_dpop_nonce"})(t)}Object.freeze(hT.prototype);const jA=Symbol();async function dl(t,e,r,n){_h(t);const i=xo(t),a=i.as,o=i.c,s=i.auth,l=i.fetch,u=i.tlsOnly,c=i.timeout,f=i.decrypt,d=i.nonRepudiation,A=await(async function(y,b,x,T,B,R){return ec(y),tc(b),ia(T,'"grantType"'),fI(y,b,x,T,new URLSearchParams(B),R)})(a,o,s,e,new URLSearchParams(r),{[nc]:l,[Rs]:!u,DPoP:n?.DPoP,headers:new Headers(Jf),signal:Sg(c)}).catch(To);let p;e==="urn:ietf:params:oauth:grant-type:token-exchange"&&(p={n_a:()=>{}});const g=(async function(y,b,x,T){return dT(y,b,x,void 0,T?.[vh],T?.recognizedTokenTypes)})(a,o,A,{[vh]:f,recognizedTokenTypes:p});let m;try{m=await g}catch(y){if(mx(y,n))return dl(t,e,r,at(at({},n),{},{flag:jA}));To(y)}return m.id_token&&await d?.(A),pI(m),m}async function ZYe(t,e,r){_h(t);const n=xo(t),i=n.as,a=n.c,o=n.auth,s=n.fetch,l=n.tlsOnly,u=n.timeout;return(async function(c,f,d,A,p){ec(c),tc(f),ia(A,'"token"');const g=gx(c,"revocation_endpoint",f.use_mtls_endpoint_aliases,p?.[Rs]!==!0),m=new URLSearchParams(p?.additionalParameters);m.set("token",A);const y=Ob(p?.headers);return y.delete("accept"),E5(c,f,d,g,m,y,p)})(i,a,o,e,{[nc]:s,[Rs]:!l,additionalParameters:new URLSearchParams(r),headers:new Headers(Jf),signal:Sg(u)}).then(LYe).catch(To)}async function Mxe(t,e,r){return e instanceof Uint8Array?crypto.subtle.importKey("raw",e,t.subtle,!1,[r]):(NYe(e,t.subtle,r),t.minRsaBits&&(function(n,i){const a=i.algorithm.modulusLength;if(typeof a!="number"||a<2048)throw new TypeError("".concat(n," requires key modulusLength to be 2048 bits or larger"))})(t.alg,e),e)}const vI=[["verify"],["sign"]];function DV(t){const e={name:"HMAC",hash:"SHA-".concat(t)};return{kty:["oct"],secret:!0,subtle:e,signing:e,usages:vI}}function yS(t,e){const r={name:e?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:"SHA-".concat(t)};return{kty:["RSA"],subtle:r,signing:e?at(at({},r),{},{saltLength:e}):r,usages:vI,minRsaBits:2048}}function MV(t,e){return{kty:["EC"],crv:t,subtle:{name:"ECDSA",namedCurve:t},signing:{name:"ECDSA",hash:"SHA-".concat(e)},usages:vI}}function toe(){const t={name:"Ed25519"};return{kty:["OKP"],crv:"Ed25519",subtle:t,signing:t,usages:vI}}function LV(t){const e={name:"ML-DSA-".concat(t)};return{kty:["AKP"],subtle:e,signing:e,usages:vI}}const mX=gX({HS256:DV(256),HS384:DV(384),HS512:DV(512),RS256:yS(256),RS384:yS(384),RS512:yS(512),PS256:yS(256,32),PS384:yS(384,48),PS512:yS(512,64),ES256:MV("P-256",256),ES384:MV("P-384",384),ES512:MV("P-521",512),EdDSA:toe(),Ed25519:toe(),"ML-DSA-44":LV(44),"ML-DSA-65":LV(65),"ML-DSA-87":LV(87)});function Lxe(t){const e=typeof t=="string"?mX[t]:void 0;if(!e)throw new lg("alg ".concat(t," is not supported either by JOSE or your javascript runtime"));return e}function XYe(t){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:t===void 0?{}:(function(r,n,i){let a;try{a=JSON.parse(hX.decode(D5(r)))}catch{throw new n(i)}if(!$y(a))throw new n(i);return a})(t,vl,"JWS Protected Header is invalid")}async function qYe(t,e,r,n,i,a,o){var s;let l=!1;typeof r=="function"&&(r=await r(i,t),l=!0);const u=typeof o=="string",c=Lxe(a),f=sxe(n!==void 0?ub(n):new Uint8Array,ub("."),u?(s=e[2])!==null&&s!==void 0?s:e[2]=(function(p,g,m){try{return ub(p)}
100catch{throw new m("The ".concat(g," is not a valid base64url string"))}})(o,"payload",vl):o),d=Zae(t.signature,"signature",vl),A=await _xe(c,r,"verify");if(!await(async function(p,g,m,y){const b=await Mxe(p,g,"verify");try{return await crypto.subtle.verify(p.signing,b,m,y)}catch{return!1}})(c,A,d,f))throw new fxe;return[u?Zae(o,"payload",vl):o,i,u,A,l]}async function JYe(t,e,r){if(t instanceof Uint8Array&&(t=K9.decode(t)),typeof t!="string")throw new vl("Compact JWS must be a string or Uint8Array");const n=t.split("."),i=n[0],a=n[1],o=n[2];if(n.length!==3)throw new vl("Invalid Compact JWS");const s={payload:a,protected:i,signature:o},l=XYe(i),u=(function(p,g,m){const y=Sxe(p,xxe(vl,bxe,m[1],p,g)),b=g.alg;if(typeof b!="string"||!b)throw new vl('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(m[0]&&!m[0].has(b))throw new lxe('"alg" (Algorithm) Header Parameter value not allowed');return[y,b]})(l,l,e),c=yl(u,2),f=c[0],d=c[1],A=f?a:(function(p){try{return ub(p)}catch{throw new vl("JWS Compact Serialization payload must use only ASCII characters")}})(a);return qYe(s,e,r,i,l,d,A)}const GL=t=>Math.floor(t.getTime()/1e3),e$e={s:1,m:60,h:3600,d:86400,w:604800,y:31557600},t$e=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,uC="check_failed";function RV(){throw new TypeError("Invalid time period format")}function W4(t){typeof t!="string"&&RV();const e=t$e.exec(t);(!e||e[4]&&e[1])&&RV();const r=parseFloat(e[2]),n=Math.round(r*e$e[e[3][0].toLowerCase()]);return Number.isFinite(n)||RV(),e[1]==="-"||e[4]==="ago"?-n:n}function jC(t,e){if(!Number.isFinite(e))throw new TypeError("Invalid ".concat(t," input"));return e}function IV(t,e){if(typeof e!="string")throw new TypeError('"'.concat(t,'" claim must be a string'))}function OV(t,e){return typeof t=="number"?jC(e,t):t instanceof Date?jC(e,GL(t)):GL(new Date)+W4(t)}const roe=t=>{const e=t.toLowerCase();return t.includes("/")?e:"application/".concat(e)};function PV(t,e){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const n=t[e];if(n!==void 0||r){if(typeof n!="number")throw new W_('"'.concat(e,'" claim must be a number'),t,e,"invalid");return n}}function kV(t,e){throw new W_('unexpected "'.concat(e,'" claim value'),t,e,uC)}function r$e(t,e){let r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{r=JSON.parse(hX.decode(e))}catch{}if(!$y(r))throw new Zd("JWT Claims Set must be a top-level JSON object");const i=n.typ;if(i!==void 0&&(typeof t.typ!="string"||roe(t.typ)!==roe(i)))throw new W_('unexpected "typ" JWT header value',r,"typ",uC);const a=n.requiredClaims,o=a===void 0?[]:a,s=n.issuer,l=n.subject,u=n.audience,c=n.maxTokenAge,f=[...o
100];c!==void 0&&f.push("iat"),u!==void 0&&f.push("aud"),l!==void 0&&f.push("sub"),s!==void 0&&f.push("iss");for(const B of new Set(f.reverse()))if(!Object.hasOwn(r,B))throw new W_('missing required "'.concat(B,'" claim'),r,B,"missing");var d,A;s===void 0||(Array.isArray(s)?s:[s]).includes(r.iss)||kV(r,"iss"),l!==void 0&&r.sub!==l&&kV(r,"sub"),u===void 0||(d=r.aud,A=typeof u=="string"?[u]:u,typeof d=="string"?A.includes(d):Array.isArray(d)&&A.some(B=>d.includes(B)))||kV(r,"aud");const p=n.clockTolerance;let g=0;if(typeof p=="string")g=W4(p);else if(p!==void 0){if(typeof p!="number")throw new TypeError("Invalid clockTolerance option type");g=p}jC("clockTolerance option",g);const m=n.currentDate,y=jC("currentDate option",GL(m===void 0?new Date:m)),b=PV(r,"iat",c!==void 0),x=PV(r,"nbf");if(x!==void 0&&x>y+g)throw new W_('"nbf" claim timestamp check failed',r,"nbf",uC);const T=PV(r,"exp");if(T!==void 0&&T<=y-g)throw new W9('"exp" claim timestamp check failed',r,"exp",uC);if(c!==void 0){const B=y-b;if(B-g>jC("maxTokenAge option",typeof c=="number"?c:W4(c)))throw new W9('"iat" claim timestamp check failed (too far in the past)',r,"iat",uC);if(B<-g)throw new W_('"iat" claim timestamp check failed (it should be in the past)',r,"iat",uC)}return r}let q9;function Xm(t){return q9.get(t)}async function n$e(t,e,r){const n=await JYe(t,(function(a){return[a&&GYe("algorithms",a.algorithms),a?.crit]})(r),e);if(!n[2])throw new Zd("JWTs MUST NOT use unencoded payload");const i={payload:r$e(n[1],n[0],r),protectedHeader:n[1]};return typeof e=="function"?at(at({},i),{},{key:n[3]}):i}function i$e(t){if(t===void 0)return[void 0,""];const e=(function(r,n){let i,a;try{i=JSON.stringify(n),a=JSON.parse(i)}catch(o){throw new r("JOSE Header is not valid JSON",{cause:o})}if(!$y(a))throw new r("JOSE Header is not a JSON object");return[a,i]})(vl,t);return[e[0],vX(e[1])]}function a$e(t,e,r){return(function(n,i){const a=(i??{}).crit;if(Array.isArray(a)&&new Set(a).size!==a.length)throw new n('"crit" (Critical) Header Parameter MUST NOT contain duplicate values')})(vl,t),Sxe(t,xxe(vl,bxe,r,t,e))}async function o$e(t,e,r,n){const i=sxe(ub(t),ub("."),e),a=await _xe(r,n,"sign");return vX(await(async function(o,s,l){const u=await Mxe(o,s,"sign"),c=await crypto.subtle.sign(o.signing,u,l);return new Uint8Array(c)})(r,a,i))}async function s$e(t,e,r,n,i){const a=yl(i$e(e),2),o=a[0],s=a[1];if(!o)throw new vl("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");a$e(o,o,r)||i();const l=(function(f){const d=f.alg;if(typeof d!="string"||!d)throw new vl('JWS "alg" (Algorithm) Header Parameter missing or invalid');return Lxe(d)})(o),u=vX(t),c=await o$e(s,ub(u),l,n);return"".concat(s,".").concat(u,".").concat(c)}const l$e=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!$y(t))throw new TypeError("JWT Claims Set MUST be an object");(q9||(q9=new WeakMap)).set(this,structuredClone(t))}setIssuer(t){return IV("iss",t),Xm(this).iss=t,this}setSubject(t){return IV("sub",t),Xm(this).sub=t,this}setAudience(t){return(function(e){if(typeof e!="string"&&(!Array.isArray(e)||Array.from(e).some(r=>typeof r!="string")))throw new TypeError('"aud" claim must be a string or an array of strings')})(t),Xm(this).aud=t,this}setJti(t){return IV("jti",t),Xm(this).jti=t,this}setNotBefore(t){return Xm(this).nbf=OV(t,"setNotBefore"),this}setExpirationTime(t){return Xm(this).exp=OV(t,"setExpirationTime"),this}setIssuedAt(t){const e=Xm(this);return e.iat=t===void 0?GL(new Date):typeof t=="string"?jC("setIssuedAt",GL(new Date)+W4(t)):OV(t,"setIssuedAt"),this}};var Mk=new WeakMap;class Rxe extends l$e{constructor(){super(...arguments),Sr(this,Mk,void 0)}setProtectedHeader(e){return(function(r,n){if(r!==void 0)throw new TypeError("".concat(n," can only be called once"))})(Le(Mk,this),"setProtectedHeader"),Br(Mk,this,e),this}async sign(e,r){return s$e((function(n){const i=Xm(n);for(const a of["iat","nbf","exp"]){const o=i[a];if(typeof o=="number"&&!Number.isFinite(o))throw new TypeError('"'.concat(a,'" claim must be a finite number'))}return oxe.encode(JSON.stringify(i))})(this),Le(Mk,this),r?.crit,e,()=>{throw new Zd("JWTs MUST NOT use unencoded payload")})}}const noe='"alg" (Algorithm)';function ioe(){throw new lg("Invalid or unsupported ".concat(arguments.length>0&&arguments[0]!==void 0?arguments[0]:'JWK "alg" (Algorithm) Parameter'," value"))}const eD=(t,e)=>{if(t.byteLength!==e.length)return!1;for(let r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0},J9=t=>{const e=t.data[t.pos++];if(e===void 0)throw new Error("Unexpected end of ASN.1 input");return e},eL=t=>{const e=J9(t);if(128&e){const r=127&e;let n=0;for(let i=0;i<r;i++)n=n<<8|J9(t);return n}return e},tL=(t,e,r)=>{if(J9(t)!==e)throw new Error(r)},aoe=(t,e)=>{if(e<0||t.pos+e>t.data.length)throw new Error("Unexpected end of ASN.1 input");const r=t.data.subarray(t.pos,t.pos+e);return t.pos+=e,r},u$e=t=>{const e=(i=>{tL(i,6,"Expected algorithm OID");const a=eL(i);return aoe(i,a)})(t);if(eD(e,[43,101,110]))return"X25519";if(!eD(e,[42,134,72,206,61,2,1]))throw new Error("Unsupported key algorithm");tL(t,6,"Expected curve OID");const r=eL(t),n=aoe(t,r);
100if(eD(n,[42,134,72,206,61,3,1,7]))return"P-256";if(eD(n,[43,129,4,0,34]))return"P-384";if(eD(n,[43,129,4,0,35]))return"P-521";throw new Error("Unsupported named curve")},c$e=async(t,e,r,n)=>{const i=(function(s,l){var u,c;return(u=typeof s=="string"?(c=mX[s])!==null&&c!==void 0?c:zYe[s]:void 0)!==null&&u!==void 0?u:ioe(l)})(r,noe);i.secret&&ioe(noe);const a=t==="spki";let o;if(i.resolve)try{const s={data:e,pos:0};(function(l,u){if(tL(l,48,"Invalid ".concat(u==="spki"?"SPKI":"PKCS#8"," structure")),eL(l),u==="pkcs8"){tL(l,2,"Expected version field");const c=eL(l);l.pos+=c}tL(l,48,"Expected algorithm identifier"),eL(l)})(s,t),o=i.resolve({crv:u$e(s)})}catch{throw new lg("Invalid or unsupported key format")}else o=i.subtle;return crypto.subtle.importKey(t,e,o,a,i.usages[1])},f$e=(t,e,r)=>{const n=((i,a)=>hxe(i.replace(a,"")))(t,/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g);return c$e("pkcs8",n,e)};async function ooe(t,e,r){const n=t.get(e)||t.set(e,{}).get(e),i=r.alg;if(n[i]===void 0){const a=await pxe(r,at(at({},e),{},{alg:i,ext:!0}));if(a.type!=="public")throw new AX("JSON Web Key Set members must be public keys");n[i]=a}return n[i]}function soe(t){let e;try{e=structuredClone(t)}catch{}if(!Axe(e))throw new AX("JSON Web Key Set malformed");const r=new WeakMap;return Object.defineProperty(async(n,i)=>{const a=at(at({},n),i?.header),o=a.alg,s=a.kid,l=typeof o=="string"?mX[o]:void 0;if(!l||l.secret)throw new lg('Unsupported "alg" value for a JSON Web Key Set');const u=e.keys.filter(d=>(function(A,p,g,m){const y=vxe(A),b=y.kty,x=y.key_ops,T=y.ext,B=y.kid,R=y.alg,I=y.use,N=y.crv,F=Array.isArray(x)?[...x]:x;return(T===void 0||typeof T=="boolean")&&(F===void 0||Array.isArray(F)&&F.every((Q,j)=>typeof Q=="string"&&F.indexOf(Q)===j)&&F.includes("verify"))&&p.kty.includes(b)&&(m===void 0||typeof m=="string"&&m===B)&&(R===void 0?b!=="AKP":g===R)&&(I===void 0||I==="sig")&&(!p.crv||N===p.crv)})(d,l,o,s)),c=u[0],f=u.length;if(!f)throw new pX;if(f!==1){const d=new uxe;throw d[Symbol.asyncIterator]=Cbe(function*(){for(const A of u)try{yield yield pWe(ooe(r,A,l))}catch{}}),d}return ooe(r,c,l)},"jwks",{value:()=>structuredClone(e)})}var Lk,NV;let e7;(typeof navigator>"u"||(Lk=navigator.userAgent)===null||Lk===void 0||(NV=Lk.startsWith)===null||NV===void 0||!NV.call(Lk,"Mozilla/5.0 "))&&(e7="".concat("jose","/").concat("v6.2.10"));const Ixe=Symbol(),Oxe=Symbol();function tD(t,e){return Number.isFinite(t)&&Date.now()<t+e}function loe(t,e,r){if(Number.isNaN(t))throw new TypeError('"'.concat(r,'" option must not be NaN'));return typeof t=="number"?t:e}function d$e(t,e){if(!(t instanceof URL))throw new TypeError("url must be an instance of URL");const r=new URL(t.href).href,n=e??{},i=n.timeoutDuration;if(typeof i=="number"&&(!Number.isInteger(i)||i<0))throw new TypeError('"timeoutDuration" option must be a non-negative integer');const a=typeof i=="number"?i:5e3,o=loe(n.cooldownDuration,3e4,"cooldownDuration"),s=loe(n.cacheMaxAge,6e5,"cacheMaxAge"),l=new Headers(n.headers);e7&&!l.has("User-Agent")&&l.set("User-Agent",e7),l.has("accept")||l.set("accept","application/json, application/jwk-set+json");const u=n[Ixe],c=n[Oxe];let f,d,A,p=0,g=0;if(c&&typeof c=="object"){const y=c.uat,b=c.jwks;tD(y,s)&&Axe(b)&&(f=y,A=soe(b))}const m=async()=>{if(d&&(typeof WebSocketPair<"u"||typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime<"u"&&EdgeRuntime==="vercel")&&(d=void 0),!d){const y=++p,b=d=(async function(x,T,B){const I=await(arguments.length>3&&arguments[3]!==void 0?arguments[3]:fetch)(x,{method:"GET",signal:B,redirect:"manual",headers:T}).catch(N=>{throw N.name==="TimeoutError"?new cxe:N});if(I.status!==200)throw new Is("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await I.json()}catch{throw new Is("Failed to parse the JSON Web Key Set HTTP response as JSON")}})(r,l,AbortSignal.timeout(a),u).then(x=>{const T=soe(x);if(y<=g)return;A=T;const B=Date.now();c&&(c.uat=B,c.jwks=x),f=B,g=y}).finally(()=>{d===b&&(d=void 0)})}await d};return Object.defineProperties(async(y,b)=>{A&&tD(f,s)||await m();try{return await A(y,b)}
100catch(x){if(x instanceof pX&&!tD(f,o))return await m(),A(y,b);throw x}},{coolingDown:{get:()=>tD(f,o),enumerable:!0},fresh:{get:()=>tD(f,s),enumerable:!0},reload:{value:m,enumerable:!0},reloading:{get:()=>!!d,enumerable:!0},jwks:{value:()=>{var y;return(y=A)===null||y===void 0?void 0:y.jwks()},enumerable:!0}})}async function yX(t,e,r){if(typeof t!="string"||t.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return f$e(t,e)}const h$e=["mfaToken"],A$e=["mfaToken"];var Fw,Rk,rD,hU,AU,wS,nD,_S,iD,aD,oD,pU,vU,Ik,bS,rL,nL,cb,gU,mU,iL,sD,ny,yU,lD,wU,_U,Ok,fM,cC,Bv,dM,hM,AM,pM,fC,vM,xf,Pk,kk,Y4,$4,KL,TC,rr,En,Cv,uD,aL,zC,Nk,Dt;function gI(t){if(typeof t!="object"||t===null)return{};const e=t;return{statusCode:typeof e.statusCode=="number"?e.statusCode:void 0,headers:e.headers instanceof Headers?e.headers:void 0,body:typeof e.body=="string"?e.body:void 0}}function wo(t){var e,r;if(typeof t!="object"||t===null)return{error:"unknown_error",error_description:String(t)};const n=t;let i;if(n.response instanceof Response)try{i=new Headers(n.response.headers),i.delete("set-cookie")}catch{i=void 0}const a={error:(e=n.error)!==null&&e!==void 0?e:"",error_description:(r=n.error_description)!==null&&r!==void 0?r:"",message:n.message,statusCode:typeof n.status=="number"?n.status:void 0,headers:i};if(n.error==="mfa_required"&&n.cause){a.mfa_token=typeof n.cause.mfa_token=="string"?n.cause.mfa_token:void 0;const o=n.cause.mfa_requirements;typeof o=="object"&&o!==null&&(a.mfa_requirements=o)}return a}var uoe=class extends Error{constructor(t,e){super(e),Je(this,"code",void 0),this.name="NotSupportedError",this.code=t}},ld=class extends Error{constructor(t,e,r){super(e),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"statusCode",void 0),Je(this,"headers",void 0),Je(this,"body",void 0),this.code=t,this.cause=r&&{error:r.error,error_description:r.error_description,message:r.message,mfa_token:r.mfa_token,mfa_requirements:r.mfa_requirements};const n=gI(r);this.statusCode=n.statusCode,this.headers=n.headers,this.body=n.body}},Fk=class extends ld{constructor(t,e){super("token_by_code_error",t,e),this.name="TokenByCodeError"}},coe=class extends ld{constructor(t,e){super("token_by_client_credentials_error",t,e),this.name="TokenByClientCredentialsError"}},foe=class extends ld{constructor(t,e){super("token_by_refresh_token_error",t,e),this.name="TokenByRefreshTokenError"}},doe=class extends ld{constructor(t,e){super("token_by_password_error",t,e),this.name="TokenByPasswordError"}},FV=class extends ld{constructor(t,e){super("token_for_connection_error",t,e),this.name="TokenForConnectionErrorCode"}},Dc=class extends ld{constructor(t,e){super("token_exchange_error",t,e),this.name="TokenExchangeError"}},p$e=class extends ld{constructor(t,e){super("token_revocation_error",t,e),this.name="TokenRevocationError"}},v$e=class extends ld{constructor(t,e){super("user_info_error",t,e),this.name="UserInfoError"}},Qm=class extends Error{constructor(t){super(t),Je(this,"code","verify_logout_token_error"),this.name="VerifyLogoutTokenError"}},Uk=class extends ld{constructor(t){super("backchannel_authentication_error","There was an error when trying to use Client-Initiated Backchannel Authentication.",t),Je(this,"code","backchannel_authentication_error"),this.name="BackchannelAuthenticationError"}},g$e=class extends ld{constructor(t){super("build_authorization_url_error","There was an error when trying to build the authorization URL.",t),this.name="BuildAuthorizationUrlError"}},m$e=class extends ld{constructor(t){super("build_link_user_url_error","There was an error when trying to build the Link User URL.",t),this.name="BuildLinkUserUrlError"}},y$e=class extends ld{constructor(t){super("build_unlink_user_url_error","There was an error when trying to build the Unlink User URL.",t),this.name="BuildUnlinkUserUrlError"}},Pxe=class extends Error{constructor(){super("The client secret or client assertion signing key must be provided."),Je(this,"code","missing_client_auth_error"),this.name="MissingClientAuthError"}}
100,gM=class extends Error{constructor(t){super(t),Je(this,"code","organization_validation_error"),this.name="OrganizationValidationError"}},Ji=class extends Error{constructor(t){super(t||"fullResponse: true requested but no HTTP Response was captured. This is a bug in CapturingFetch."),Je(this,"code","missing_captured_response_error"),this.name="MissingCapturedResponseError"}};function ti(t){try{const e=new Headers(t);return e.delete("set-cookie"),e}catch{return new Headers}}function VC(t,e,r){var n;const i=typeof e=="object"&&e!==null?e:void 0,a=(n=i?.response)!==null&&n!==void 0?n:r,o=typeof i?.status=="number"?i.status:a?.status;typeof o=="number"&&(t.statusCode=o),a!=null&&a.headers&&(t.headers=ti(a.headers))}function t7(t){return Object.entries(t).filter(e=>yl(e,2)[1]!==void 0).reduce((e,r)=>at(at({},e),{},{[r[0]]:r[1]}),{})}function wX(t){if(!t.trim())throw new gM("organization must not be blank")}function WL(t,e){if(!t)return;const r=e.trim();if(r.startsWith("org_")){const n=t.org_id;if(typeof n!="string")throw new gM("Organization Id (org_id) claim must be a string present in the ID token");if(n!==r)throw new gM('Organization Id (org_id) claim value mismatch in the ID token; expected "'.concat(r,'", found "').concat(n,'"'))}else{const n=t.org_name;if(typeof n!="string")throw new gM("Organization Name (org_name) claim must be a string present in the ID token");if(n.toLowerCase()!==r.toLowerCase())throw new gM('Organization Name (org_name) claim value mismatch in the ID token; expected "'.concat(r,'", found "').concat(n,'"'))}}var mI=class extends Error{constructor(t,e,r){super(e),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"statusCode",void 0),Je(this,"headers",void 0),Je(this,"body",void 0),this.code=t,this.cause=r&&{error:r.error,error_description:r.error_description,message:r.message};const n=gI(r);this.statusCode=n.statusCode,this.headers=n.headers,this.body=n.body}},r7=class extends mI{constructor(t,e){super("mfa_list_authenticators_error",t,e),this.name="MfaListAuthenticatorsError"}},n7=class extends mI{constructor(t,e){super("mfa_enrollment_error",t,e),this.name="MfaEnrollmentError"}},hoe=class extends mI{constructor(t,e){super("mfa_delete_authenticator_error",t,e),this.name="MfaDeleteAuthenticatorError"}},i7=class extends mI{constructor(t,e){super("mfa_challenge_error",t,e),this.name="MfaChallengeError"}},Hk=class extends mI{constructor(t,e){super("mfa_verify_error",t,e),this.name="MfaVerifyError"}};function w$e(t){return{id:t.id,authenticatorType:t.authenticator_type,active:t.active,name:t.name,oobChannels:t.oob_channels,type:t.type}}var Fi=class kxe{constructor(e,r,n,i,a,o,s){Je(this,"accessToken",void 0),Je(this,"idToken",void 0),Je(this,"refreshToken",void 0),Je(this,"expiresAt",void 0),Je(this,"scope",void 0),Je(this,"claims",void 0),Je(this,"authorizationDetails",void 0),Je(this,"tokenType",void 0),Je(this,"issuedTokenType",void 0),Je(this,"recoveryCode",void 0),Je(this,"act",void 0),this.accessToken=e,this.idToken=n,this.refreshToken=i,this.expiresAt=r,this.scope=a,this.claims=o,this.authorizationDetails=s}static fromTokenEndpointResponse(e){const r=e.id_token?e.claims():void 0,n=new kxe(e.access_token,Math.floor(Date.now()/1e3)+Number(e.expires_in),e.id_token,e.refresh_token,e.scope,r,e.authorization_details);return n.tokenType=e.token_type,n.issuedTokenType=e.issued_token_type,n}};function Nxe(t,e){if(e.enabled===!1)return t;const r={name:e.name,version:e.version},n=btoa(JSON.stringify(r));return async(i,a)=>{const o=i instanceof Request?new Headers(i.headers):new Headers;return a!=null&&a.headers&&new Headers(a.headers).forEach((s,l)=>{o.set(l,s)}),o.set("Auth0-Client",n),t(i,at(at({},a),{},{headers:o}))}}function yI(t){var e,r;return t?.enabled===!1?t:{enabled:!0,name:(e=t?.name)!==null&&e!==void 0?e:"@auth0/auth0-auth-js",version:(r=t?.version)!==null&&r!==void 0?r:"1.16.1"}}function qi(t){let e;const r=async(n,i)=>{const a=await t(n,i);return e=a.clone(),a};return r.getCapturedResponse=()=>e,r}function wI(t,e,r){if(!e)return t;const n=e.signal,i=e.headers,a=e.customFetch,o=a?Nxe(a,r):t;return n||i?async(s,l)=>{const u=i?new Headers(s instanceof Request?s.headers:void 0):void 0;
100if(u&&l!=null&&l.headers&&new Headers(l.headers).forEach((A,p)=>u.set(p,A)),i)for(const A of Object.entries(i)){var c=yl(A,2);const p=c[0],g=c[1],m=p.toLowerCase();m!=="authorization"&&m!=="auth0-client"&&u.set(p,g)}const f=(function(A,p){if(!A)return{signal:p??void 0};if(!p)return{signal:A};if(typeof AbortSignal<"u"&&typeof AbortSignal.any=="function")return{signal:AbortSignal.any([A,p])};const g=new AbortController,m=[A,p],y=m.find(T=>T.aborted);if(y)return g.abort(y.reason),{signal:g.signal};const b=[],x=()=>{m.forEach((T,B)=>{const R=b[B];R&&T.removeEventListener("abort",R)})};return m.forEach((T,B)=>{const R=()=>{x(),g.abort(T.reason)};b[B]=R,T.addEventListener("abort",R,{once:!0})}),{signal:g.signal,cleanup:x}})(n,l?.signal);try{return await o(s,at(at(at({},l),u&&{headers:u}),{},{signal:f.signal}))}finally{var d;(d=f.cleanup)===null||d===void 0||d.call(f)}}:o}var Aoe={otp:"http://auth0.com/oauth/grant-type/mfa-otp",oob:"http://auth0.com/oauth/grant-type/mfa-oob","recovery-code":"http://auth0.com/oauth/grant-type/mfa-rec
100overy-code"},_$e=(Fw=new WeakMap,Rk=new WeakMap,rD=new WeakMap,hU=new WeakMap,AU=new WeakMap,wS=new WeakMap,nD=new WeakMap,_S=new WeakSet,class{constructor(t){var e,r;rE(this,_S),Sr(this,Fw,void 0),Sr(this,Rk,void 0),Sr(this,rD,void 0),Sr(this,hU,void 0),Sr(this,AU,void 0),Sr(this,wS,void 0),Sr(this,nD,void 0),Br(Fw,this,"https://".concat(t.domain)),Br(Rk,this,t.clientId),Br(rD,this,t.clientSecret),Br(hU,this,(e=t.customFetch)!==null&&e!==void 0?e:function(){return fetch(...arguments)}),Br(AU,this,(r=t.telemetryConfig)!==null&&r!==void 0?r:yI()),Br(wS,this,t.getConfiguration),Br(nD,this,t.createCaptureConfiguration)}async listAuthenticators(t,e){const r="".concat(Le(Fw,this),"/mfa/authenticators"),n=t.mfaToken,i=await dt(_S,this,Qk).call(this,e)(r,{method:"GET",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});if(!i.ok){const a=await i.clone().text(),o=i.status,s=ti(i.headers);let l;try{l=JSON.parse(a)}catch{throw new r7("Failed to list authenticators",{error:"unknown_error",error_description:"Failed to list authenticators",statusCode:o,headers:s,body:a})}throw new r7(l.error_description||"Failed to list authenticators",at(at({},l),{},{statusCode:o,headers:s,body:a}))}return(await i.json()).map(w$e)}async enrollAuthenticator(t,e){const r="".concat(Le(Fw,this),"/mfa/associate"),n=t.mfaToken,i=Mae(t,h$e),a={authenticator_types:i.authenticatorTypes};"oobChannels"in i&&(a.oob_channels=i.oobChannels),"phoneNumber"in i&&i.phoneNumber&&(a.phone_number=i.phoneNumber),"email"in i&&i.email&&(a.email=i.email);const o=await dt(_S,this,Qk).call(this,e)(r,{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify(a)});if(!o.ok){const s=await o.clone().text(),l=o.status,u=ti(o.headers);let c;try{c=JSON.parse(s)}catch{throw new n7("Failed to enroll authenticator",{error:"unknown_error",error_description:"Failed to enroll authenticator",statusCode:l,headers:u,body:s})}throw new n7(c.error_description||"Failed to enroll authenticator",at(at({},c),{},{statusCode:l,headers:u,body:s}))}return(function(s){if(s.authenticator_type==="otp")return{authenticatorType:"otp",secret:s.secret,barcodeUri:s.barcode_uri,recoveryCodes:s.recovery_codes,id:s.id};if(s.authenticator_type==="oob")return{authenticatorType:"oob",oobChannel:s.oob_channel,oobCode:s.oob_code,bindingMethod:s.binding_method,id:s.id,barcodeUri:s.barcode_uri,recoveryCodes:s.recovery_codes};throw new Error("Unexpected authenticator type: ".concat(s.authenticator_type))})(await o.json())}async deleteAuthenticator(t,e){const r=t.authenticatorId,n=t.mfaToken,i="".concat(Le(Fw,this),"/mfa/authenticators/").concat(encodeURIComponent(r)),a=await dt(_S,this,Qk).call(this,e)(i,{method:"DELETE",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});if(!a.ok){const o=await a.clone().text(),s=a.status,l=ti(a.headers);let u;try{u=JSON.parse(o)}catch{throw new hoe("Failed to delete authenticator",{error:"unknown_error",error_description:"Failed to delete authenticator",statusCode:s,headers:l,body:o})}throw new hoe(u.error_description||"Failed to delete authenticator",at(at({},u),{},{statusCode:s,headers:l,body:o}))}}async challengeAuthenticator(t,e){const r="".concat(Le(Fw,this),"/mfa/challenge"),n=t.mfaToken,i=Mae(t,A$e),a={mfa_token:n,client_id:Le(Rk,this),challenge_type:i.challengeType};Le(rD,this)&&(a.client_secret=Le(rD,this)),i.authenticatorId&&(a.authenticator_id=i.authenticatorId);const o=await dt(_S,this,Qk).call(this,e)(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!o.ok){const s=await o.clone().text(),l=o.status,u=ti(o.headers);let c;try{c=JSON.parse(s)}catch{throw new i7("Failed to challenge authenticator",{error:"unknown_error",error_description:"Failed to challenge authenticator",statusCode:l,headers:u,body:s})}throw new i7(c.error_description||"Failed to challenge authenticator",at(at({},c),{},{statusCode:l,headers:u,body:s}))}return(function(s){const l={challengeType:s.challenge_type};return s.oob_code!==void 0&&(l.oobCode=s.oob_code),s.binding_method!==void 0&&(l.bindingMethod=s.binding_method),l})(await o.json())}async verify(t,e){if(!Le(wS,this))throw new Error("MFA verify requires a configuration provider (getConfiguration was not set)");const r={mfa_token:t.mfaToken};
100if(t.audience&&(r.audience=t.audience),t.factorType==="otp"?r.otp=t.otp:t.factorType==="oob"?(r.oob_code=t.oobCode,t.bindingCode&&(r.binding_code=t.bindingCode)):t.factorType==="recovery-code"&&(r.recovery_code=t.recoveryCode),t.fullResponse){var n;if(!Le(nD,this))throw new Error("MFA verify fullResponse requires a capture-config factory (createCaptureConfiguration was not set)");const f=qi((n=(await Le(wS,this).call(this,e))[wn])!==null&&n!==void 0?n:fetch),d=await Le(nD,this).call(this,f);try{const A=await dl(d,Aoe[t.factorType],r),p=Fi.fromTokenEndpointResponse(A);A.recovery_code&&(p.recoveryCode=A.recovery_code);const g=f.getCapturedResponse();if(!g)throw new Ji;return{data:p,response:g}}catch(A){var i,a,o;if(A instanceof Ji||A instanceof Hk)throw A;const p=A,g=new Hk(p.error_description||p.message||"Failed to verify MFA challenge",{error:(i=p.error)!==null&&i!==void 0?i:"mfa_verify_error",error_description:(a=(o=p.error_description)!==null&&o!==void 0?o:p.message)!==null&&a!==void 0?a:"Failed to verify MFA challenge"});throw VC(g,A,f.getCapturedResponse()),g}}const s=await Le(wS,this).call(this,e);try{const f=await dl(s,Aoe[t.factorType],r),d=Fi.fromTokenEndpointResponse(f);return f.recovery_code&&(d.recoveryCode=f.recovery_code),d}catch(f){var l,u,c;if(f instanceof Hk)throw f;const d=f,A=new Hk(d.error_description||d.message||"Failed to verify MFA challenge",{error:(l=d.error)!==null&&l!==void 0?l:"mfa_verify_error",error_description:(u=(c=d.error_description)!==null&&c!==void 0?c:d.message)!==null&&u!==void 0?u:"Failed to verify MFA challenge"});throw VC(A,f),A}}});function Qk(t){return wI(Le(hU,this),t,Le(AU,this))}var _X=class extends Error{constructor(t,e,r){super(e),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"statusCode",void 0),Je(this,"headers",void 0),Je(this,"body",void 0),this.code=t,this.cause=r&&{error:r.error,error_description:r.error_description,message:r.message};const n=gI(r);this.statusCode=n.statusCode,this.headers=n.headers,this.body=n.body}},b$e=class extends _X{constructor(t,e){super("passkey_register_error",t,e),this.name="PasskeyRegisterError"}},x$e=class extends _X{constructor(t,e){super("passkey_challenge_error",t,e),this.name="PasskeyChallengeError"}},S$e=class extends _X{constructor(t,e){super("passkey_get_token_error",t,e),this.name="PasskeyGetTokenError",this.cause=e&&{error:e.error,error_description:e.error_description,message:e.message,mfa_token:e.mfa_token,mfa_requirements:e.mfa_requirements}}};function poe(t){return t.useMtls?{}:t.clientSecret?{client_secret:t.clientSecret}:{}}var Fxe="urn:okta:params:oauth:grant-type:webauthn",C$e=(iD=new WeakMap,aD=new WeakMap,oD=new WeakMap,pU=new WeakMap,vU=new WeakMap,Ik=new WeakMap,bS=new WeakSet,class{constructor(t){var e,r;rE(this,bS),Sr(this,iD,void 0),Sr(this,aD,void 0),Sr(this,oD,void 0),Sr(this,pU,void 0),Sr(this,vU,void 0),Sr(this,Ik,void 0),Br(iD,this,"https://".concat(t.domain)),Br(aD,this,t.clientId),Br(oD,this,{clientSecret:t.clientSecret,useMtls:t.useMtls}),Br(pU,this,(e=t.customFetch)!==null&&e!==void 0?e:function(){return fetch(...arguments)}),Br(vU,this,(r=t.telemetryConfig)!==null&&r!==void 0?r:yI()),Br(Ik,this,t.grantRequest)}async register(t,e){const r="".concat(Le(iD,this),"/passkey/register"),n=at(at(at(at(at(at(at(at({},t.email&&{email:t.email}),t.name&&{name:t.name}),t.phoneNumber&&{phone_number:t.phoneNumber}),t.username&&{username:t.username}),t.givenName&&{given_name:t.givenName}),t.familyName&&{family_name:t.familyName}),t.nickname&&{nickname:t.nickname}),t.picture&&{picture:t.picture}),i=at(at({client_id:Le(aD,this)},poe(Le(oD,this))),{},{user_profile:n});t.realm&&(i.realm=t.realm),t.organization&&(i.organization=t.organization),t.userMetadata&&(i.user_metadata=t.userMetadata);const a=await dt(bS,this,voe).call(this,e)(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!a.ok){const l=await dt(bS,this,goe).call(this,a),u=new b$e(l.error_description||"Failed to request signup challenge",l);throw u.statusCode=a.status,u.headers=ti(a.headers),u}return{authSession:(s=await a.json()).auth_session,authnParamsPublicKey:at({},s.authn_params_public_key)};var s}async challenge(t,e){const r="".concat(Le(iD,this),"/passkey/challenge"),n=at({client_id:Le(aD,this)},poe(Le(oD,this)));t!=null&&t.realm&&(n.realm=t.realm),t!=null&&t.organization&&(n.organization=t.organization);const i=await dt(bS,this,voe).call(this,e)(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok){const s=await dt(bS,this,goe).call(this,i),l=new x$e(s.error_description||"Failed to request login challenge",s);throw l.statusCode=i.status,l.headers=ti(i.headers),l}return{authSession:(o=await i.json()).auth_session,authnParamsPublicKey:at({},o.authn_params_public_key)};var o}async getTokenByPasskey(t,e){t.organization!==void 0&&wX(t.organization);
100const r=new URLSearchParams({auth_session:t.authSession,authn_response:JSON.stringify(t.credential)});let n;t.realm&&r.append("realm",t.realm),t.scope&&r.append("scope",t.scope),t.audience&&r.append("audience",t.audience),t.organization&&r.append("organization",t.organization);try{n=await Le(Ik,this).call(this,Fxe,r,e,t.fullResponse)}catch(a){if(a instanceof Ji)throw a;const o=wo(a),s=new S$e(o.error_description||"Failed to exchange passkey credential for tokens.",o);throw VC(s,a),s}if(t.fullResponse){const a=n;return t.organization&&WL(a.data.claims,t.organization),a}const i=n;return t.organization&&WL(i.claims,t.organization),i}});function voe(t){return wI(Le(pU,this),t,Le(vU,this))}async function goe(t){const e=await t.clone().text();try{return at(at({},JSON.parse(e)),{},{statusCode:t.status,headers:t.headers,body:e})}catch{return{error:"unknown_error",error_description:"HTTP ".concat(t.status," ").concat(t.statusText),statusCode:t.status,headers:t.headers,body:e}}}var L5=class extends Error{constructor(e,r,n){super(r),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"statusCode",void 0),Je(this,"headers",void 0),Je(this,"body",void 0),Object.setPrototypeOf(this,new.target.prototype),this.code=e,this.cause=n&&(n.error||n.error_description)?{error:n.error,error_description:n.error_description,message:n.message,mfa_token:n.mfa_token,mfa_requirements:n.mfa_requirements}:void 0;const i=gI(n);this.statusCode=i.statusCode,this.headers=i.headers,this.body=i.body}},a7=class extends L5{constructor(t,e){super("passwordless_start_error",t,e),this.name="PasswordlessStartError"}},o7=class extends L5{constructor(t,e){super("passwordless_verify_error",t,e),this.name="PasswordlessVerifyError"}},moe=class extends L5{constructor(t,e){super("passwordless_db_get_token_error",t,e),this.name="PasswordlessDbGetTokenError"}},bU=class extends L5{constructor(t,e,r,n,i){super("passwordless_challenge_error",t,r),Je(this,"statusCode",void 0),Je(this,"validationErrors",void 0),this.name="PasswordlessChallengeError",this.statusCode=e,this.validationErrors=n,this.headers=i??this.headers}};function s7(t){return/^\+[1-9]\d{1,14}$/.test(t)}async function Uxe(t,e,r){if(t.useMtls)return{};if(t.clientAssertionSigningKey){var n;const i=(n=t.clientAssertionSigningAlg)!==null&&n!==void 0?n:"RS256",a=t.clientAssertionSigningKey instanceof CryptoKey?t.clientAssertionSigningKey:await yX(t.clientAssertionSigningKey,i);return{client_assertion:await new Rxe({}).setProtectedHeader({alg:i}).setIssuer(e).setSubject(e).setAudience("https://".concat(r,"/")).setJti(crypto.randomUUID()).setIssuedAt().setExpirationTime("".concat(120,"s")).sign(a),client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}if(t.clientSecret)return{client_secret:t.clientSecret};throw new Pxe}var T$e=(rL=new WeakMap,nL=new WeakMap,cb=new WeakMap,gU=new WeakMap,mU=new WeakMap,iL=new WeakMap,sD=new WeakMap,ny=new WeakSet,class{constructor(t){var e,r;rE(this,ny),Sr(this,rL,void 0),Sr(this,nL,void 0),Sr(this,cb,void 0),Sr(this,gU,void 0),Sr(this,mU,void 0),Sr(this,iL,void 0),Sr(this,sD,void 0),Br(nL,this,t.domain),Br(rL,this,"https://".concat(t.domain)),Br(cb,this,t.clientId),Br(gU,this,(e=t.customFetch)!==null&&e!==void 0?e:function(){return fetch(...arguments)}),Br(mU,this,(r=t.telemetryConfig)!==null&&r!==void 0?r:yI()),Br(iL,this,{clientSecret:t.clientSecret,clientAssertionSigningKey:t.clientAssertionSigningKey,clientAssertionSigningAlg:t.clientAssertionSigningAlg,useMtls:t.useMtls}),Br(sD,this,t.grantRequest)}async sendEmail(t,e){const r=await dt(ny,this,yoe).call(this,(function(n){var i;const a=(i=n.send)!==null&&i!==void 0?i:"code",o={email:n.email,connection:"email",send:a};return a==="link"&&n.authParams&&(o.authParams=n.authParams),o})(t),"Failed to send passwordless email",t.language,e);if(t.fullResponse)return{data:void 0,response:r}}async sendSms(t,e){if(!s7(t.phoneNumber))throw new a7("Phone number must be in E.164 format (e.g. +14155550100).");const r=await dt(ny,this,yoe).call(this,(function(n){return{phone_number:n.phoneNumber,connection:"sms"}})(t),"Failed to send passwordless SMS",t.language,e);if(t.fullResponse)return{data:void 0,response:r}}async challengeWithEmail(t,e){const r=(function(n){var i;return{email:n.email,connection:n.connection,allow_signup:(i=n.allowSignup)!==null&&i!==void 0&&i}})(t);return dt(ny,this,woe).call(this,r,"Failed to request email OTP challenge",e)}async challengeWithPhoneNumber(t,e){if(!s7(t.phoneNumber))throw new bU("Phone number must be in E.164 format (e.g. +14155550100).",0,void 0,void 0);const r=(function(n){var i;const a={phone_number:n.phoneNumber,connection:n.connection,allow_signup:(i=n.allowSignup)!==null&&i!==void 0&&i};return n.deliveryMethod&&(a.delivery_method=n.deliveryMethod),a})(t);return dt(ny,this,woe).call(this,r,"Failed to request phone OTP challenge",e)}
100async getTokenByPasswordlessDbConnection(t,e){const r=new URLSearchParams({auth_session:t.authSession,otp:t.otp});if(t.scope&&r.append("scope",t.scope),t.audience&&r.append("audience",t.audience),!Le(sD,this))throw new moe("Missing grant request delegate.",wo(new Error("missing grantRequest")));try{return await Le(sD,this).call(this,"http://auth0.com/oauth/grant-type/passwordless/otp",r,e,t.fullResponse)}catch(n){if(n instanceof Ji)throw n;const i=new moe("There was an error while trying to request a token.",wo(n)),a=n;throw i.statusCode=a._statusCode,i.headers=a._headers,i}}});function Hxe(t){return wI(Le(gU,this),t,Le(mU,this))}async function yoe(t,e,r,n){var i;const a=await Uxe(Le(iL,this),Le(cb,this),Le(nL,this)),o=at(at({client_id:Le(cb,this)},t),a);let s;try{s=await dt(ny,this,Hxe).call(this,n)("".concat(Le(rL,this),"/passwordless/start"),{method:"POST",headers:at({"Content-Type":"application/json"},r?{"x-request-language":r}:{}),body:JSON.stringify(o)})}catch{throw new a7("".concat(e,": a network error occurred."))}if(s.ok)return s;const l=await s.clone().text();let u;if(s.status!==204)try{u=JSON.parse(l)}catch{u=void 0}const c=new a7(((i=u)===null||i===void 0?void 0:i.error_description)||e,u);throw c.statusCode=s.status,c.headers=ti(s.headers),c.body=l,c}async function woe(t,e,r){var n,i;const a=await Uxe(Le(iL,this),Le(cb,this),Le(nL,this)),o=at(at({client_id:Le(cb,this)},t),a);let s;try{s=await dt(ny,this,Hxe).call(this,r)("".concat(Le(rL,this),"/otp/challenge"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)})}catch{throw new bU("challenge error: a network error occurred.",0,void 0,void 0)}if(s.ok){let f;try{f=await s.json()}catch{throw new bU("".concat(e,": could not parse the response body."),s.status,void 0,void 0,ti(s.headers))}return{authSession:f.auth_session}}const l=await s.clone().text();let u;try{u=JSON.parse(l)}catch{u=void 0}const c=u?at(at({},u),{},{statusCode:s.status,headers:s.headers,body:l}):{error:"",error_description:"",statusCode:s.status,headers:s.headers,body:l};throw new bU(((n=u)===null||n===void 0?void 0:n.error_description)||e,s.status,c,(i=u)===null||i===void 0?void 0:i.validation_errors,ti(s.headers))}var Qxe=class extends Error{constructor(t,e,r){super(e),Je(this,"cause",void 0),Je(this,"code",void 0),Je(this,"statusCode",void 0),Je(this,"headers",void 0),Je(this,"body",void 0),Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.cause=r&&{error:r.error,error_description:r.error_description,message:r.message};const n=gI(r);this.statusCode=n.statusCode,this.headers=n.headers,this.body=n.body}},_oe=class extends Qxe{constructor(t,e){super("signup_error",t,e),this.name="SignUpError"}},UV=class extends Qxe{constructor(t,e){super("change_password_error",t,e),this.name="ChangePasswordError"}};function boe(t,e,r){for(const n of e)if(t[n]===null||t[n]===void 0||t[n]==="")throw new r('Required parameter "'.concat(String(n),'" was null, undefined, or empty.'))}function xoe(t){var e,r;return{id:(e=(r=t._id)!==null&&r!==void 0?r:t.user_id)!==null&&e!==void 0?e:t.id,email:typeof t.email=="string"?t.email:"",emailVerified:!!t.email_verified,username:t.username,givenName:t.given_name,familyName:t.family_name,name:t.name,nickname:t.nickname,picture:t.picture,userMetadata:t.user_metadata}}var E$e=(yU=new WeakMap,lD=new WeakMap,wU=new WeakMap,_U=new WeakMap,Ok=new WeakSet,class{constructor(t){var e,r;rE(this,Ok),Sr(this,yU,void 0),Sr(this,lD,void 0),Sr(this,wU,void 0),Sr(this,_U,void 0),Br(yU,this,"https://".concat(t.domain)),Br(lD,this,t.clientId),Br(wU,this,(e=t.customFetch)!==null&&e!==void 0?e:function(){return fetch(...arguments)}),Br(_U,this,(r=t.telemetryConfig)!==null&&r!==void 0?r:yI())}async signUp(t,e){var r;boe(t,["email","password","connection"],_oe);const n=at({client_id:(r=t.clientId)!==null&&r!==void 0?r:Le(lD,this)},(function(a){const o={email:a.email,password:a.password,connection:a.connection};return a.username!==void 0&&(o.username=a.username),a.givenName!==void 0&&(o.given_name=a.givenName),a.familyName!==void 0&&(o.family_name=a.familyName),a.name!==void 0&&(o.name=a.name),a.nickname!==void 0&&(o.nickname=a.nickname),a.picture!==void 0&&(o.picture=a.picture),a.userMetadata!==void 0&&(o.user_metadata=a.userMetadata),o})(t)),i=await dt(Ok,this,Soe).call(this,"/dbconnections/signup",n,_oe,"Failed to sign up",e);if(t.fullResponse){const a=i.clone();return{data:xoe(await i.json()),response:a}}return xoe(await i.json())}async changePassword(t,e){var r;if(boe(t,["connection"],UV),!t.email&&!t.username)throw new UV('Either "email" or "username" is required.');const n=at({client_id:(r=t.clientId)!==null&&r!==void 0?r:Le(lD,this)},(function(a){const o={connection:a.connection};return a.email!==void 0&&(o.email=a.email),a.username!==void 0&&(o.username=a.username),a.organization!==void 0&&(o.organization=a.organization),o})(t)),i=await dt(Ok,this,Soe).call(this,"/dbconnections/change_password",n,UV,"Failed to request a password change",e);if(t.fullResponse){const a=i.clone();return{data:await i.text(),response:a}}return i.text()}});async function Soe(t,e,r,n,i){const a=wI(Le(wU,this),i,Le(_U,this));let o;try{o=await a("".concat(Le(yU,this)).concat(t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch{throw new r("".concat(n,": a network error occurred."))}if(o.ok)return o;const s=await o.clone().text(),l=await(async function(c){let f;try{f=await c.json()}catch{return}return typeof f.error=="string"?f:typeof f.code=="string"?{error:f.code,error_description:typeof f.description=="str
100ing"?f.description:""}:void 0})(o.clone()),u=new r(l?.error_description||n,l??{error:"unknown_error",error_description:n});throw u.statusCode=o.status,u.headers=ti(o.headers),u.body=s,u}var hy=class extends Error{constructor(t,e,r){super(e),Je(this,"code",void 0),Je(this,"cause",void 0),this.name="AnonymousSessionError",this.code=t,this.cause=r&&{error:r.error,error_description:r.error_description,message:r.message}}};async function jxe(t,e,r){if(t.useMtls)return{};if(t.clientAssertionSigningKey){var n;const i=(n=t.clientAssertionSigningAlg)!==null&&n!==void 0?n:"RS256",a=t.clientAssertionSigningKey instanceof CryptoKey?t.clientAssertionSigningKey:await yX(t.clientAssertionSigningKey,i);return{client_assertion:await new Rxe({}).setProtectedHeader({alg:i}).setIssuer(e).setSubject(e).setAudience("https://".concat(r,"/")).setJti(crypto.randomUUID()).setIssuedAt().setExpirationTime("".concat(120,"s")).sign(a),client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}return t.clientSecret?{client_secret:t.clientSecret}:{}}async function zxe(t){const e="Request failed with status ".concat(t.status);let r={};try{r=await t.json()}catch{}return{error:typeof r.error=="string"?r.error:"server_error",error_description:typeof r.error_description=="string"?r.error_description:e}}var B$e=(fM=new WeakMap,cC=new WeakMap,Bv=new WeakMap,dM=new WeakMap,hM=new WeakMap,AM=new WeakMap,pM=new WeakMap,fC=new WeakMap,vM=new WeakSet,class{constructor(t){var e;rE(this,vM),Sr(this,fM,void 0),Sr(this,cC,void 0),Sr(this,Bv,void 0),Sr(this,dM,void 0),Sr(this,hM,void 0),Sr(this,AM,void 0),Sr(this,pM,void 0),Sr(this,fC,void 0),Br(fM,this,t.domain),Br(cC,this,"https://".concat(t.domain)),Br(Bv,this,t.clientId),Br(dM,this,t.clientSecret),Br(hM,this,t.clientAssertionSigningKey),Br(AM,this,t.clientAssertionSigningAlg),Br(pM,this,t.useMtls),Br(fC,this,(e=t.customFetch)!==null&&e!==void 0?e:function(){return fetch(...arguments)})}async createSession(t){const e={client_id:Le(Bv,this)};t!=null&&t.audience&&(e.audience=t.audience),t!=null&&t.scope&&(e.scope=t.scope),t!=null&&t.metadata&&(e.metadata=t.metadata);const r=await dt(vM,this,Vxe).call(this,e);if(!r.sessionToken)throw new hy("server_error","session_token missing from create session response");return{sessionToken:r.sessionToken,accessToken:r.accessToken,expiresAt:r.expiresAt,sessionTokenExpiresAt:r.sessionTokenExpiresAt,scope:r.scope}}async getAccessToken(t){return t!=null&&t.sessionToken?dt(vM,this,D$e).call(this,t.sessionToken,t):this.createSession({audience:t?.audience,scope:t?.scope})}async logout(){const t="".concat(Le(cC,this),"/anonymous/logout"),e={client_id:Le(Bv,this)},r=await Le(fC,this).call(this,t,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",redirect:"error",body:JSON.stringify(e)});if(!r.ok){const n=await zxe(r);throw new hy(n.error,n.error_description||"Failed to end anonymous session",n)}}async mintTransferToken(t){const e="".concat(Le(cC,this),"/anonymous/token"),r={client_id:Le(Bv,this),session_token:t,audience:"urn:auth0:anon_transfer"};try{const n=await jxe({clientSecret:Le(dM,this),clientAssertionSigningKey:Le(hM,this),clientAssertionSigningAlg:Le(AM,this),useMtls:Le(pM,this)},Le(Bv,this),Le(fM,this));Object.assign(r,n);const i=await Le(fC,this).call(this,e,{method:"POST",headers:{"Content-Type":"application/json"},redirect:"error",body:JSON.stringify(r)});if(!i.ok)return null;const a=await i.json();return typeof a.anon_transfer_token=="string"?a.anon_transfer_token:null}catch{return null}}});async function D$e(t,e){const r={client_id:Le(Bv,this),session_token:t};e!=null&&e.audience&&(r.audience=e.audience),e!=null&&e.scope&&(r.scope=e.scope);const n=await dt(vM,this,Vxe).call(this,r);return{sessionToken:t,accessToken:n.accessToken,expiresAt:n.expiresAt,sessionTokenExpiresAt:n.sessionTokenExpiresAt,scope:n.scope}}async function Vxe(t){const e="".concat(Le(cC,this),"/anonymous/token"),r=await jxe({clientSecret:Le(dM,this),clientAssertionSigningKey:Le(hM,this),clientAssertionSigningAlg:Le(AM,this),useMtls:Le(pM,this)},Le(Bv,this),Le(fM,this));Object.assign(t,r);const n=await Le(fC,this).call(this,e,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",redirect:"error",body:JSON.stringify(t)});if(!n.ok){const a=await zxe(n);throw new hy(a.error,a.error_description||"Anonymous token request failed",a)}let i;try{i=await n.json()}catch{throw new hy("server_error","Invalid response from anonymous token endpoint")}return(function(a){const o=Math.floor(Date.now()/1e3);if(typeof a.access_token!="string"||!a.access_token)throw new hy("server_error","access_token missing or invalid in anonymous token response");const s=a.expires_in;if(typeof s!="number"||!Number.isFinite(s))throw new hy("server_error","expires_in missing or invalid in anonymous token response");return{accessToken:a.access_token,expiresAt:o+s,scope:a.scope,sessionToken:a.session_token,sessionTokenExpiresAt:typeof a.session_expires_in=="number"&&Number.isFinite(a.session_expires_in)?o+a.session_expires_in:void 0}})(i)}var Gxe=(xf=new WeakMap,Pk=new WeakMap,kk=new WeakMap,class{constructor(t,e){Sr(this,xf,
100new Map),Sr(this,Pk,void 0),Sr(this,kk,void 0),Br(kk,this,Math.max(1,Math.floor(t))),Br(Pk,this,Math.max(0,Math.floor(e)))}get(t){const e=Le(xf,this).get(t);if(e){if(!(Date.now()>=e.expiresAt))return Le(xf,this).delete(t),Le(xf,this).set(t,e),e.value;Le(xf,this).delete(t)}}set(t,e,r){Le(xf,this).has(t)&&Le(xf,this).delete(t);const n=r!=null&&Number.isFinite(r)&&r>0?r:Le(Pk,this);for(Le(xf,this).set(t,{value:e,expiresAt:Date.now()+n});Le(xf,this).size>Le(kk,this);){const i=Le(xf,this).keys().next().value;if(i===void 0)break;Le(xf,this).delete(i)}}}),Coe=new Map;function Toe(t){return{ttlMs:1e3*(typeof t?.ttl=="number"?t.ttl:600),maxEntries:typeof t?.maxEntries=="number"&&t.maxEntries>0?t.maxEntries:100}}var Eoe=class{static createDiscoveryCache(t){const e=(r=t.maxEntries,n=t.ttlMs,"".concat(r,":").concat(n));var r,n;let i=(a=e,Coe.get(a));var a;return i||(i=new Gxe(t.maxEntries,t.ttlMs),Coe.set(e,i)),i}static createJwksCache(){return{}}},l7="openid profile email offline_access",M$e=Object.freeze(new Set(["grant_type","client_id","client_secret","client_assertion","client_assertion_type","subject_token","subject_token_type","requested_token_type","actor_token","actor_token_type","audience","aud","resource","resources","resource_indicator","scope","connection","login_hint","organization","assertion"]));function Kxe(t){if(t==null)throw new Dc("subject_token is required");if(typeof t!="string")throw new Dc("subject_token must be a string");if(t.trim().length===0)throw new Dc("subject_token cannot be blank or whitespace");if(t!==t.trim())throw new Dc("subject_token must not include leading or trailing whitespace");if(/^bearer\s+/i.test(t))throw new Dc("subject_token must not include the 'Bearer ' prefix")}function Wxe(t,e){if(e)for(const n of Object.entries(e)){var r=yl(n,2);const i=r[0],a=r[1];if(!M$e.has(i))if(Array.isArray(a)){if(a.length>20)throw new Dc("Parameter '".concat(i,"' exceeds maximum array size of ").concat(20));a.forEach(o=>{t.append(i,o)})}else t.append(i,a)}}var Boe="urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token",Doe="urn:ietf:params:oauth:grant-type:token-exchange",Yxe="urn:ietf:params:oauth:token-type:access_token";function Moe(t,e){return(r,n)=>{const i=n?.body;if(e!==Fxe||!(i instanceof URLSearchParams))return t(r,n);const a={};for(const l of i){var o=yl(l,2);const u=o[0],c=o[1];a[u]=u==="authn_response"?JSON.parse(c):c}const s=new Headers(n?.headers);return s.set("Content-Type","application/json"),t(r,at(at({},n),{},{headers:s,body:JSON.stringify(a)}))}}var L$e=(Y4=new WeakMap,$4=new WeakMap,KL=new WeakMap,TC=new WeakMap,rr=new WeakMap,En=new WeakMap,Cv=new WeakMap,uD=new WeakMap,aL=new WeakMap,zC=new WeakMap,Nk=new WeakMap,Dt=new WeakSet,class{constructor(t){var e;if(rE(this,Dt),Sr(this,Y4,void 0),Sr(this,$4,void 0),Sr(this,KL,void 0),Sr(this,TC,void 0),Sr(this,rr,void 0),Sr(this,En,void 0),Sr(this,Cv,void 0),Sr(this,uD,void 0),Sr(this,aL,void 0),Sr(this,zC,void 0),Sr(this,Nk,void 0),Je(this,"mfa",void 0),Je(this,"passkey",void 0),Je(this,"passwordless",void 0),Je(this,"database",void 0),Je(this,"anonymous",void 0),Br(rr,this,t),t.useMtls&&!t.customFetch)throw new uoe("mtls_without_custom_fetch_not_supported","Using mTLS without a custom fetch implementation is not supported");Br(Cv,this,yI(t.telemetry)),Br(En,this,Nxe((e=t.customFetch)!==null&&e!==void 0?e:function(){return fetch(...arguments)},Le(Cv,this)));const r=Toe(t.discoveryCache);Br(aL,this,Eoe.createDiscoveryCache(r)),Br(zC,this,new Map),Br(Nk,this,Eoe.createJwksCache()),this.mfa=new _$e({domain:Le(rr,this).domain,clientId:Le(rr,this).clientId,clientSecret:Le(rr,this).clientSecret,customFetch:Le(En,this),telemetryConfig:Le(Cv,this),getConfiguration:async n=>(await dt(Dt,this,Gl).call(this,n)).configuration,createCaptureConfiguration:async n=>{const i=(await dt(Dt,this,iy).call(this)).serverMetadata;return dt(Dt,this,yi).call(this,i,n)}}),this.passkey=new C$e({domain:Le(rr,this).domain,clientId:Le(rr,this).clientId,clientSecret:Le(rr,this).clientSecret,useMtls:Le(rr,this).useMtls,customFetch:Le(En,this),telemetryConfig:Le(Cv,this),grantRequest:async(n,i,a,o)=>{const s=(await dt(Dt,this,iy).call(this)).serverMetadata,l=dt(Dt,this,$xe).call(this,a);if(o){const f=qi(l),d=await dt(Dt,this,yi).call(this,s,f);d[wn]=Moe(f,n);const A=await dl(d,n,i),p=Fi.fromTokenEndpointResponse(A),g=f.getCapturedResponse();if(!g)throw new Ji;return{data:p,response:g}}const u=await dt(Dt,this,yi).call(this,s);u[wn]=Moe(l,n);const c=await dl(u,n,i);return Fi.fromTokenEndpointResponse(c)}}),this.passwordless=new T$e({domain:Le(rr,this).domain,clientId:Le(rr,this).clientId,customFetch:Le(En,this),telemetryConfig:Le(Cv,this),clientSecret:Le(rr,this).clientSecret,clientAssertionSigningKey:Le(rr,this).clientAssertionSigningKey,clientAssertionSigningAlg:Le(rr,this).clientAssertionSigningAlg,useMtls:Le(rr,this).useMtls,grantRequest:async(n,i,a,o)=>{const s=(await dt(Dt,this,Gl).call(this,a)).configuration;if(o){var l;const u=qi((l=s[wn])!==null&&l!==void 0?l:Le(En,this)),c=await dt(Dt,this,yi).call(this,s.serverMetadata(),u),f=await dl(c,n,i),d=Fi.fromTokenEndpointResponse(f),A=u.getCapturedResponse();if(!A)throw new Ji;return{data:d,response:A}}try{const u=await dl(s,n,i);return Fi.fromTokenEndpointResponse(u)}catch(u){const c=u,f={};
100throw VC(f,u),c._statusCode=f.statusCode,c._headers=f.headers,u}}}),this.database=new E$e({domain:Le(rr,this).domain,clientId:Le(rr,this).clientId,customFetch:Le(En,this),telemetryConfig:Le(Cv,this)}),this.anonymous=new B$e({domain:Le(rr,this).domain,clientId:Le(rr,this).clientId,clientSecret:Le(rr,this).clientSecret,clientAssertionSigningKey:Le(rr,this).clientAssertionSigningKey,clientAssertionSigningAlg:Le(rr,this).clientAssertionSigningAlg,useMtls:Le(rr,this).useMtls,customFetch:Le(En,this)})}async getServerMetadata(){return(await dt(Dt,this,iy).call(this)).serverMetadata}async buildAuthorizationUrl(t){const e=(await dt(Dt,this,iy).call(this)).serverMetadata;if(t!=null&&t.pushedAuthorizationRequests&&!e.pushed_authorization_request_endpoint)throw new uoe("par_not_supported_error","The Auth0 tenant does not have pushed authorization requests enabled. Learn how to enable it here: https://auth0.com/docs/get-started/applications/configure-par");try{return await dt(Dt,this,QV).call(this,t)}catch(r){throw new g$e(r)}}async buildLinkUserUrl(t){try{const e=await dt(Dt,this,QV).call(this,{authorizationParams:at(at({},t.authorizationParams),{},{requested_connection:t.connection,requested_connection_scope:t.connectionScope,scope:"openid link_account offline_access",id_token_hint:t.idToken})});return{linkUserUrl:e.authorizationUrl,codeVerifier:e.codeVerifier}}catch(e){throw new m$e(e)}}async buildUnlinkUserUrl(t){try{const e=await dt(Dt,this,QV).call(this,{authorizationParams:at(at({},t.authorizationParams),{},{requested_connection:t.connection,scope:"openid unlink_account",id_token_hint:t.idToken})});return{unlinkUserUrl:e.authorizationUrl,codeVerifier:e.codeVerifier}}catch(e){throw new y$e(e)}}async backchannelAuthentication(t,e){var r;const n=await dt(Dt,this,Gl).call(this,e),i=n.configuration,a=n.serverMetadata,o=t7(at(at({},Le(rr,this).authorizationParams),t?.authorizationParams)),s=new URLSearchParams(at(at({scope:l7},o),{},{client_id:Le(rr,this).clientId,binding_message:t.bindingMessage,login_hint:JSON.stringify({format:"iss_sub",iss:a.issuer,sub:t.loginHint.sub})}));if(t.requestedExpiry&&s.append("requested_expiry",t.requestedExpiry.toString()),t.authorizationDetails&&s.append("authorization_details",JSON.stringify(t.authorizationDetails)),t.fullResponse){var l;const f=qi((l=i[wn])!==null&&l!==void 0?l:Le(En,this)),d=await dt(Dt,this,yi).call(this,i.serverMetadata(),f);try{const A=await BV(i,s),p=await Y9(d,A),g=f.getCapturedResponse();if(!g)throw new Ji;return{data:Fi.fromTokenEndpointResponse(p),response:g}}catch(A){if(A instanceof Ji)throw A;const p=new Uk(A);throw VC(p,A,f.getCapturedResponse()),p}}const u=qi((r=i[wn])!==null&&r!==void 0?r:Le(En,this)),c=await dt(Dt,this,yi).call(this,i.serverMetadata(),u);try{const f=await BV(i,s),d=await Y9(c,f);return Fi.fromTokenEndpointResponse(d)}catch(f){const d=new Uk(f);throw VC(d,f,u.getCapturedResponse()),d}}async initiateBackchannelAuthentication(t,e){var r;const n=await dt(Dt,this,Gl).call(this,e),i=n.configuration,a=n.serverMetadata,o=t7(at(at({},Le(rr,this).authorizationParams),t?.authorizationParams)),s=new URLSearchParams(at(at({scope:l7},o),{},{client_id:Le(rr,this).clientId,binding_message:t.bindingMessage,login_hint:JSON.stringify({format:"iss_sub",iss:a.issuer,sub:t.loginHint.sub})}));t.requestedExpiry&&s.append("requested_expiry",t.requestedExpiry.toString()),t.authorizationDetails&&s.append("authorization_details",JSON.stringify(t.authorizationDetails));const l=qi((r=i[wn])!==null&&r!==void 0?r:Le(En,this)),u=await dt(Dt,this,yi).call(this,i.serverMetadata(),l);try{const c=await BV(u,s);return{authReqId:c.auth_req_id,expiresIn:c.expires_in,interval:c.interval}}catch(c){const f=new Uk(c),d=l.getCapturedResponse();throw f.statusCode=d?.status,f.headers=d?ti(d.headers):void 0,f}}async backchannelAuthenticationGrant(t,e){var r;let n=t.authReqId;const i=(await dt(Dt,this,Gl).call(this,e)).configuration,a=new URLSearchParams({auth_req_id:n}),o=qi((r=i[wn])!==null&&r!==void 0?r:Le(En,this)),s=await dt(Dt,this,yi).call(this,i.serverMetadata(),o);try{const l=await dl(s,"urn:openid:params:grant-type:ciba",a);return Fi.fromTokenEndpointResponse(l)}catch(l){const u=new Uk(l),c=o.getCapturedResponse();throw u.statusCode=c?.status,u.headers=c?ti(c.headers):void 0,u}}async getTokenForConnection(t,e){var r;if(t.refreshToken&&t.accessToken)throw new FV("Either a refresh or access token should be specified, but not both.");const n=(r=t.accessToken)!==null&&r!==void 0?r:t.refreshToken;if(!n)throw new FV("Either a refresh or access token must be specified.");try{return await this.exchangeToken(at({connection:t.connection,subjectToken:n,subjectTokenType:t.accessToken?Yxe:"urn:ietf:params:oauth:token-type:refresh_token",loginHint:t.loginHint},t.fullResponse?{fullResponse:!0}:{}),e)}catch(i){if(i instanceof Dc){const a=new FV(i.message,i.cause);throw a.statusCode=i.statusCode,a.headers=i.headers,a}throw i}}async exchangeToken(t,e){return t.fullResponse?"connection"in t?dt(Dt,this,Loe).call(this,t,e,!0):dt(Dt,this,Ioe).call(this,t,e,!0):"connection"in t?dt(Dt,this,Loe).call(this,t,e):dt(Dt,this,Ioe).call(this,t,e)}async getTokenByCode(t,e,r){var n;const i=(await dt(Dt,this,Gl).call(this,r)).configuration;if(e.organization!==void 0&&wX(e.organization),e.fullResponse){var a;const u=qi((a=i[wn])!==null&&a!==void 0?a:Le(En,this)),c=await dt(Dt,this,yi).call(this,i.serverMetadata(),u);let f,d;try{const A=await cM(c,t,{pkceCodeVerifier:e.codeVerifier});if(f=Fi.fromTokenEndpointResponse(A),d=u.getCapturedResponse(),!d)throw new Ji}catch(A){if(A instanceof Ji)throw A;const p=new Fk("There was an error while trying to request a token.",wo(A)),g=u.getCapturedResponse();throw p.statusCode=g?.status,p.headers=g?ti(g.headers):void 0,p}return e.organization&&WL(f.claims,e.organization),{data:f,response:d}}const o=qi((n=i[wn])!==null&&n!==void 0?n:Le(En,this)),s=await dt(Dt,this,yi).call(this,i.serverMetadata(),o);let l;try{const u=await cM(s,t,{pkceCodeVerifier:e.codeVerifier});l=Fi.fromTokenEndpointResponse(u)}catch(u){const c=new Fk("There was an error while trying to request a token.",wo(u)),f=o.getCapturedResponse();throw c.statusCode=f?.status,c.headers=f?ti(f.headers):void 0,c}return e.organization&&WL(l.claims,e.organization),l}async getTokenByMagicLinkCode(t,e,r){var n;const i=(await dt(Dt,this,Gl).call(this,r)).configuration;if(e!=null&&e.fullResponse){var a;const l=qi((a=i[wn])!==null&&a!==void 0?a:Le(En,this)),u=await dt(Dt,this,yi).call(this,i.serverMetadata(),l);try{const c=await cM(u,t,{expectedState:e?.expectedState}),f=Fi.fromTokenEndpointResponse(c),d=l.getCapturedResponse();if(!d)throw new Ji;return{data:f,response:d}}catch(c){if(c instanceof Ji)throw c;const f=c instanceof Error&&c.message?c.message:"There was an error while trying to request a token.",d=new Fk(f,c),A=l.getCapturedResponse();throw d.statusCode=A?.status,d.headers=A?ti(A.headers):void 0,d}}const o=qi((n=i[wn])!==null&&n!==void 0?n:Le(En,this)),s=await dt(Dt,this,yi).call(this,i.serverMetadata(),o);try{const l=await cM(s,t,{expectedState:e?.expectedState});return Fi.fromTokenEndpointResponse(l)}catch(l){const u=l instanceof Error&&l.message?l.message:"There was an error while trying to request a token.",c=new Fk(u,l),f=o.getCapturedResponse();throw c.statusCode=f?.status,c.headers=f?ti(f.headers):void 0,c}}async getTokenByRefreshToken(t,e){var r;const n=(await dt(Dt,this,Gl).call(this,e)).configuration,i=new URLSearchParams;
100if(t.audience&&i.append("audience",t.audience),t.scope&&i.append("scope",t.scope),t.fullResponse){var a;const l=qi((a=n[wn])!==null&&a!==void 0?a:Le(En,this)),u=await dt(Dt,this,yi).call(this,n.serverMetadata(),l);try{const c=await $9(u,t.refreshToken,i),f=Fi.fromTokenEndpointResponse(c),d=l.getCapturedResponse();if(!d)throw new Ji;return{data:f,response:d}}catch(c){if(c instanceof Ji)throw c;const f=new foe("The access token has expired and there was an error while trying to refresh it.",wo(c)),d=l.getCapturedResponse();throw f.statusCode=d?.status,f.headers=d?ti(d.headers):void 0,f}}const o=qi((r=n[wn])!==null&&r!==void 0?r:Le(En,this)),s=await dt(Dt,this,yi).call(this,n.serverMetadata(),o);try{const l=await $9(s,t.refreshToken,i);return Fi.fromTokenEndpointResponse(l)}catch(l){const u=new foe("The access token has expired and there was an error while trying to refresh it.",wo(l)),c=o.getCapturedResponse();throw u.statusCode=c?.status,u.headers=c?ti(c.headers):void 0,u}}async revokeToken(t,e){var r;const n=(await dt(Dt,this,Gl).call(this,e)).configuration,i={};t.tokenTypeHint&&(i.token_type_hint=t.tokenTypeHint);const a=qi((r=n[wn])!==null&&r!==void 0?r:Le(En,this)),o=await dt(Dt,this,yi).call(this,n.serverMetadata(),a);try{await ZYe(o,t.token,i)}catch(s){const l=new p$e("An error occurred while trying to revoke the token.",wo(s)),u=a.getCapturedResponse();throw l.statusCode=u?.status,l.headers=u?ti(u.headers):void 0,l}}async getUserInfo(t,e){const r=(await dt(Dt,this,Gl).call(this,e,!0)).configuration;try{var n;return await Dxe(r,t.accessToken,(n=t.expectedSubject)!==null&&n!==void 0?n:KYe)}catch(i){throw new v$e("There was an error while trying to retrieve the user info.",wo(i))}}async getTokenByPassword(t,e){var r;const n=(await dt(Dt,this,Gl).call(this,e)).configuration,i=new URLSearchParams({username:t.username,password:t.password});t.audience&&i.append("audience",t.audience),t.scope&&i.append("scope",t.scope),t.realm&&i.append("realm",t.realm);let a=n;if(t.auth0ForwardedFor){const u=await dt(Dt,this,bX).call(this);a=new hT(n.serverMetadata(),Le(rr,this).clientId,{client_secret:Le(rr,this).clientSecret,use_mtls_endpoint_aliases:Le(rr,this).useMtls},u);const c=n[wn];a[wn]=(f,d)=>c(f,at(at({},d),{},{headers:at(at({},d.headers),{},{"auth0-forwarded-for":t.auth0ForwardedFor})}))}if(t.fullResponse){var o;const u=qi((o=a[wn])!==null&&o!==void 0?o:Le(En,this)),c=await dt(Dt,this,yi).call(this,a.serverMetadata(),u);try{const f=await dl(c,"password",i),d=Fi.fromTokenEndpointResponse(f),A=u.getCapturedResponse();if(!A)throw new Ji;return{data:d,response:A}}catch(f){if(f instanceof Ji)throw f;const d=new doe("There was an error while trying to request a token.",wo(f)),A=u.getCapturedResponse();throw d.statusCode=A?.status,d.headers=A?ti(A.headers):void 0,d}}const s=qi((r=a[wn])!==null&&r!==void 0?r:Le(En,this)),l=await dt(Dt,this,yi).call(this,a.serverMetadata(),s);try{const u=await dl(l,"password",i);return Fi.fromTokenEndpointResponse(u)}catch(u){const c=new doe("There was an error while trying to request a token.",wo(u)),f=s.getCapturedResponse();throw c.statusCode=f?.status,c.headers=f?ti(f.headers):void 0,c}}async getTokenByPasswordlessEmail(t,e){const r=new URLSearchParams({username:t.email,otp:t.code,realm:"email"});return t.audience&&r.append("audience",t.audience),t.scope&&r.append("scope",t.scope),dt(Dt,this,Ooe).call(this,r,e,t.fullResponse)}async getTokenByPasswordlessSms(t,e){if(!s7(t.phoneNumber))throw new o7("Phone number must be in E.164 format (e.g. +14155550100).");const r=new URLSearchParams({username:t.phoneNumber,otp:t.code,realm:"sms"});return t.audience&&r.append("audience",t.audience),t.scope&&r.append("scope",t.scope),dt(Dt,this,Ooe).call(this,r,e,t.fullResponse)}async getTokenByClientCredentials(t,e){var r;const n=(await dt(Dt,this,Gl).call(this,e)).configuration;if(t.fullResponse){var i;const s=qi((i=n[wn])!==null&&i!==void 0?i:Le(En,this)),l=await dt(Dt,this,yi).call(this,n.serverMetadata(),s),u=new URLSearchParams({audience:t.audience});t.organization&&u.append("organization",t.organization);try{const c=await Z9(l,u),f=Fi.fromTokenEndpointResponse(c),d=s.getCapturedResponse();if(!d)throw new Ji;return{data:f,response:d}}catch(c){if(c instanceof Ji)throw c;const f=new coe("There was an error while trying to request a token.",wo(c)),d=s.getCapturedResponse();throw f.statusCode=d?.status,f.headers=d?ti(d.headers):void 0,f}}const a=qi((r=n[wn])!==null&&r!==void 0?r:Le(En,this)),o=await dt(Dt,this,yi).call(this,n.serverMetadata(),a);
100try{const s=new URLSearchParams({audience:t.audience});t.organization&&s.append("organization",t.organization);const l=await Z9(o,s);return Fi.fromTokenEndpointResponse(l)}catch(s){const l=new coe("There was an error while trying to request a token.",wo(s)),u=a.getCapturedResponse();throw l.statusCode=u?.status,l.headers=u?ti(u.headers):void 0,l}}async buildLogoutUrl(t){const e=await dt(Dt,this,iy).call(this),r=e.configuration;if(!e.serverMetadata.end_session_endpoint){const i=new URL("https://".concat(Le(rr,this).domain,"/v2/logout"));return i.searchParams.set("returnTo",t.returnTo),i.searchParams.set("client_id",Le(rr,this).clientId),t.federated&&i.searchParams.set("federated",""),i}const n={post_logout_redirect_uri:t.returnTo};return t.federated&&(n.federated=""),(function(i,a){_h(i);const o=xo(i),s=o.as,l=o.c,u=gx(s,"end_session_endpoint",!1,o.tlsOnly);(a=new URLSearchParams(a)).has("client_id")||a.set("client_id",l.client_id);for(const f of a.entries()){var c=yl(f,2);const d=c[0],A=c[1];u.searchParams.append(d,A)}return u})(r,n)}async verifyLogoutToken(t){const e=(await dt(Dt,this,iy).call(this)).serverMetadata,r=Toe(Le(rr,this).discoveryCache),n=e.jwks_uri;Le(uD,this)||Br(uD,this,d$e(new URL(n),{cacheMaxAge:r.ttlMs,[Ixe]:Le(En,this),[Oxe]:Le(Nk,this)}));const i=(await n$e(t.logoutToken,Le(uD,this),{issuer:e.issuer,audience:Le(rr,this).clientId,algorithms:["RS256"],requiredClaims:["iat"]})).payload;if(!("sid"in i)&&!("sub"in i))throw new Qm('either "sid" or "sub" (or both) claims must be present');if("sid"in i&&typeof i.sid!="string")throw new Qm('"sid" claim must be a string');if("sub"in i&&typeof i.sub!="string")throw new Qm('"sub" claim must be a string');if("nonce"in i)throw new Qm('"nonce" claim is prohibited');if(!("events"in i))throw new Qm('"events" claim is missing');if(typeof i.events!="object"||i.events===null)throw new Qm('"events" claim must be an object');if(!("http://schemas.openid.net/event/backchannel-logout"in i.events))throw new Qm('"http://schemas.openid.net/event/backchannel-logout" member is missing in the "events" claim');if(typeof i.events["http://schemas.openid.net/event/backchannel-logout"]!="object")throw new Qm('"http://schemas.openid.net/event/backchannel-logout" member in the "events" claim must be an object');return{sid:i.sid,sub:i.sub}}});function R$e(){const t=Le(rr,this).domain.toLowerCase();return"".concat(t,"|mtls:").concat(Le(rr,this).useMtls?"1":"0")}async function yi(t,e){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const n=await dt(Dt,this,bX).call(this,r),i=new hT(t,Le(rr,this).clientId,{client_secret:Le(rr,this).clientSecret,use_mtls_endpoint_aliases:Le(rr,this).useMtls},n);return i[wn]=e??Le(En,this),i}function $xe(t){return wI(Le(En,this),t,Le(Cv,this))}async function Gl(t){let e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];const r=await dt(Dt,this,iy).call(this,e),n=r.configuration,i=r.serverMetadata;if(!t)return{configuration:n,serverMetadata:i};const a=dt(Dt,this,$xe).call(this,t);return{configuration:await dt(Dt,this,yi).call(this,i,a,e),serverMetadata:i}}async function iy(){let t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];const e=Le(t?$4:Y4,this);if(e&&Le(KL,this))return{configuration:e,serverMetadata:Le(KL,this)};const r=dt(Dt,this,R$e).call(this);t||await dt(Dt,this,bX).call(this,!1);const n=Le(aL,this).get(r);if(n)return dt(Dt,this,HV).call(this,n.serverMetadata,t);const i=Le(zC,this).get(r);if(i){const o=await i;return dt(Dt,this,HV).call(this,o.serverMetadata,t)}const a=(async()=>{const o=(await $Ye(new URL("https://".concat(Le(rr,this).domain)),Le(rr,this).clientId,{use_mtls_endpoint_aliases:Le(rr,this).useMtls},(s,l,u,c)=>{u.set("client_id",l.client_id)},{[wn]:Le(En,this)})).serverMetadata();return Le(aL,this).set(r,{serverMetadata:o}),{serverMetadata:o}})();a.catch(()=>{}),Le(zC,this).set(r,a);try{const o=(await a).serverMetadata;return dt(Dt,this,HV).call(this,o,t)}finally{Le(zC,this).delete(r)}}async function HV(t,e){const r=await dt(Dt,this,yi).call(this,t,void 0,e);return Br(KL,this,t),Br(e?$4:Y4,this,r),{configuration:r,serverMetadata:t}}async function Loe(t,e,r){var n,i,a;const o=(await dt(Dt,this,Gl).call(this,e)).configuration;if("audience"in t||"resource"in t)throw new Dc("audience and resource parameters are not supported for Token Vault exchanges");Kxe(t.subjectToken);const s=new URLSearchParams({connection:t.connection,subject_token:t.subjectToken,subject_token_type:(n=t.subjectTokenType)!==null&&n!==void 0?n:Yxe,requested_token_type:(i=t.requestedTokenType)!==null&&i!==void 0?i:"http://auth0.com/oauth/token-type/federated-connection-access-token"});if(t.loginHint&&s.append("login_hint",t.loginHint),t.scope&&s.append("scope",t.scope),Wxe(s,t.extra),r){var l;const f=qi((l=o[wn])!==null&&l!==void 0?l:Le(En,this)),d=await dt(Dt,this,yi).call(this,o.serverMetadata(),f);try{const A=await dl(d,Boe,s),p=Fi.fromTokenEndpointResponse(A),g=f.getCapturedResponse();if(!g)throw new Ji;return{data:p,response:g}}catch(A){if(A instanceof Ji)throw A;const p=new Dc("Failed to exchange token for connection '".concat(t.connection,"'."),wo(A)),g=f.getCapturedResponse();throw p.statusCode=g?.status,p.headers=g?ti(g.headers):void 0,p}}const u=qi((a=o[wn])!==null&&a!==void 0?a:Le(En,this)),c=await dt(Dt,this,yi).call(this,o.serverMetadata(),u);try{const f=await dl(c,Boe,s);return Fi.fromTokenEndpointResponse(f)}catch(f){const d=new Dc("Failed to exchange token for connection '".concat(t.connection,"'."),wo(f)),A=u.getCapturedResponse();throw d.statusCode=A?.status,d.headers=A?ti(A.headers):void 0,d}}function Roe(t,e,r){var n;if(r.organization&&WL(t.claims,r.organization),r.actorToken)if((n=t.claims)!==null&&n!==void 0&&n.act)t.act=t.claims.act;
100else try{t.act=(function(i){if(typeof i!="string")throw new Zd("JWTs must use Compact JWS serialization, JWT must be a string");const a=i.split("."),o=a[1],s=a.length;if(s===5)throw new Zd("Only JWTs using Compact JWS serialization can be decoded");if(s!==3)throw new Zd("Invalid JWT");if(!o)throw new Zd("JWTs must contain a payload");let l,u;try{l=D5(o)}catch{throw new Zd("Failed to base64url decode the payload")}try{u=JSON.parse(hX.decode(l))}catch{throw new Zd("Failed to parse the decoded payload as JSON")}if(!$y(u))throw new Zd("Invalid JWT Claims Set");return u})(e.access_token).act}catch{}return t}async function Ioe(t,e,r){var n;const i=(await dt(Dt,this,Gl).call(this,e)).configuration;if(Kxe(t.subjectToken),t.organization!==void 0&&wX(t.organization),t.actorToken!==void 0&&t.actorTokenType===void 0)throw new Dc("actorTokenType is required when actorToken is provided");const a=new URLSearchParams({subject_token_type:t.subjectTokenType,subject_token:t.subjectToken});if(t.audience&&a.append("audience",t.audience),t.scope&&a.append("scope",t.scope),t.requestedTokenType&&a.append("requested_token_type",t.requestedTokenType),t.organization&&a.append("organization",t.organization),t.actorToken&&a.append("actor_token",t.actorToken),t.actorTokenType&&a.append("actor_token_type",t.actorTokenType),Wxe(a,t.extra),r){var o;const f=qi((o=i[wn])!==null&&o!==void 0?o:Le(En,this)),d=await dt(Dt,this,yi).call(this,i.serverMetadata(),f);let A,p,g;try{if(p=await dl(d,Doe,a),A=Fi.fromTokenEndpointResponse(p),g=f.getCapturedResponse(),!g)throw new Ji}catch(m){if(m instanceof Ji)throw m;const y=new Dc("Failed to exchange token of type '".concat(t.subjectTokenType,"'").concat(t.audience?" for audience '".concat(t.audience,"'"):"","."),wo(m)),b=f.getCapturedResponse();throw y.statusCode=b?.status,y.headers=b?ti(b.headers):void 0,y}return dt(Dt,this,Roe).call(this,A,p,t),{data:A,response:g}}const s=qi((n=i[wn])!==null&&n!==void 0?n:Le(En,this)),l=await dt(Dt,this,yi).call(this,i.serverMetadata(),s);let u,c;try{c=await dl(l,Doe,a),u=Fi.fromTokenEndpointResponse(c)}catch(f){const d=new Dc("Failed to exchange token of type '".concat(t.subjectTokenType,"'").concat(t.audience?" for audience '".concat(t.audience,"'"):"","."),wo(f)),A=s.getCapturedResponse();throw d.statusCode=A?.status,d.headers=A?ti(A.headers):void 0,d}return dt(Dt,this,Roe).call(this,u,c,t),u}async function Ooe(t,e,r){var n;const i=(await dt(Dt,this,Gl).call(this,e)).configuration;if(r){var a;const l=qi((a=i[wn])!==null&&a!==void 0?a:Le(En,this)),u=await dt(Dt,this,yi).call(this,i.serverMetadata(),l);try{const c=await dl(u,"http://auth0.com/oauth/grant-type/passwordless/otp",t),f=Fi.fromTokenEndpointResponse(c),d=l.getCapturedResponse();if(!d)throw new Ji;return{data:f,response:d}}catch(c){if(c instanceof Ji)throw c;const f=new o7("There was an error while trying to request a token.",wo(c)),d=l.getCapturedResponse();throw f.statusCode=d?.status,f.headers=d?ti(d.headers):void 0,f}}const o=qi((n=i[wn])!==null&&n!==void 0?n:Le(En,this)),s=await dt(Dt,this,yi).call(this,i.serverMetadata(),o);try{const l=await dl(s,"http://auth0.com/oauth/grant-type/passwordless/otp",t);return Fi.fromTokenEndpointResponse(l)}catch(l){const u=new o7("There was an error while trying to request a token.",wo(l)),c=o.getCapturedResponse();throw u.statusCode=c?.status,u.headers=c?ti(c.headers):void 0,u}}async function bX(){let t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];const e=!!Le(rr,this).clientSecret||!!Le(rr,this).clientAssertionSigningKey||!!Le(rr,this).useMtls;return t&&!e?(r,n,i,a)=>{i.set("client_id",n.client_id)}:(Le(TC,this)||Br(TC,this,(async()=>{if(!Le(rr,this).clientSecret&&!Le(rr,this).clientAssertionSigningKey&&!Le(rr,this).useMtls)throw new Pxe;if(Le(rr,this).useMtls)return(n,i,a,o)=>{a.set("client_id",i.client_id)};let r=Le(rr,this).clientAssertionSigningKey;return!r||r instanceof CryptoKey||(r=await yX(r,Le(rr,this).clientAssertionSigningAlg||"RS256")),r?(function(n,i){return cYe(n)})(r):Cxe(Le(rr,this).clientSecret)})().catch(r=>{throw Br(TC,this,void 0),r})),Le(TC,this))}async function QV(t){const e=(await dt(Dt,this,iy).call(this)).configuration,r=YYe(),n=await WYe(r),i=t7(at(at({},Le(rr,this).authorizationParams),t?.authorizationParams)),a=new URLSearchParams(at(at({
100scope:l7},i),{},{client_id:Le(rr,this).clientId,code_challenge:n,code_challenge_method:"S256"}));return{authorizationUrl:t!=null&&t.pushedAuthorizationRequests?await Bxe(e,a):await X9(e,a),codeVerifier:r}}new Gxe(1e3,6e4);class Zy extends Bn{constructor(e,r){super(e,r),Object.setPrototypeOf(this,Zy.prototype)}static fromPayload(e){let r=e.error,n=e.error_description;return new Zy(r,n)}}class Z4 extends Zy{constructor(e,r){super(e,r),Object.setPrototypeOf(this,Z4.prototype)}}class xX extends Zy{constructor(e,r){super(e,r),Object.setPrototypeOf(this,xX.prototype)}}class SX extends Zy{constructor(e,r){super(e,r),Object.setPrototypeOf(this,SX.prototype)}}class EC extends Zy{constructor(e,r){super(e,r),Object.setPrototypeOf(this,EC.prototype)}}class CX extends Zy{constructor(e,r){super(e,r),Object.setPrototypeOf(this,CX.prototype)}}class I$e{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6e5;this.contexts=new Map,this.ttlMs=e}set(e,r){this.cleanup(),this.contexts.set(e,Object.assign(Object.assign({},r),{createdAt:Date.now()}))}get(e){const r=this.contexts.get(e);if(r){if(!(Date.now()-r.createdAt>this.ttlMs))return r;this.contexts.delete(e)}}remove(e){this.contexts.delete(e)}cleanup(){const e=Date.now();for(const n of this.contexts){var r=yl(n,2);const i=r[0];e-r[1].createdAt>this.ttlMs&&this.contexts.delete(i)}}get size(){return this.contexts.size}}class O$e{constructor(e,r){this.authJsMfaClient=e,this.auth0Client=r,this.contextManager=new I$e}setMFAAuthDetails(e,r,n,i){this.contextManager.set(e,{scope:r,audience:n,mfaRequirements:i})}async getAuthenticators(e){var r,n,i;const a=this.contextManager.get(e);if(!a)throw new Z4("invalid_request","MFA context not found for this MFA token");const o=(n=(r=a.mfaRequirements)===null||r===void 0?void 0:r.challenge)===null||n===void 0?void 0:n.map(s=>s.type);try{const s=await this.authJsMfaClient.listAuthenticators({mfaToken:e});return o&&o.length!==0?s.filter(l=>!!l.type&&o.includes(l.type)):s}catch(s){throw s instanceof r7?new Z4((i=s.cause)===null||i===void 0?void 0:i.error,s.message):s}}async enroll(e){var r;const n=(function(i){const a=tYe[i.factorType];return Object.assign(Object.assign(Object.assign({mfaToken:i.mfaToken,authenticatorTypes:a.authenticatorTypes},a.oobChannels&&{oobChannels:a.oobChannels}),"phoneNumber"in i&&{phoneNumber:i.phoneNumber}),"email"in i&&{email:i.email})})(e);try{return await this.authJsMfaClient.enrollAuthenticator(n)}catch(i){throw i instanceof n7?new xX((r=i.cause)===null||r===void 0?void 0:r.error,i.message):i}}async challenge(e){var r;try{const n={challengeType:e.challengeType,mfaToken:e.mfaToken};return e.authenticatorId&&(n.authenticatorId=e.authenticatorId),await this.authJsMfaClient.challengeAuthenticator(n)}catch(n){throw n instanceof i7?new SX((r=n.cause)===null||r===void 0?void 0:r.error,n.message):n}}async getEnrollmentFactors(e){const r=this.contextManager.get(e);if(!r||!r.mfaRequirements)throw new CX("mfa_context_not_found","MFA context not found for this MFA token. Please retry the original request to get a new MFA token.");return r.mfaRequirements.enroll&&r.mfaRequirements.enroll.length!==0?r.mfaRequirements.enroll:[]}async verify(e){const r=this.contextManager.get(e.mfaToken);if(!r)throw new EC("mfa_context_not_found","MFA context not found for this MFA token. Please retry the original request to get a new MFA token.");const n=(function(o){return"otp"in o&&o.otp?rYe:"oobCode"in o&&o.oobCode?nYe:"recoveryCode"in o&&o.recoveryCode?iYe:void 0})(e);if(!n)throw new EC("invalid_request","Unable to determine grant type. Provide one of: otp, oobCode, or recoveryCode.");const i=r.scope,a=r.audience;try{const o=await this.auth0Client._requestTokenForMfa({grant_type:n,mfaToken:e.mfaToken,scope:i,audience:a,otp:e.otp,oob_code:e.oobCode,binding_code:e.bindingCode,recovery_code:e.recoveryCode});return this.contextManager.remove(e.mfaToken),o}catch(o){throw o instanceof EC?new EC(o.error,o.error_description):o}}}class bA extends Error{constructor(e,r,n){super(r),this.name="PasskeyError",this.code=e,this.cause=n,Object.setPrototypeOf(this,bA.prototype)}}var w_,dC;class P$e{constructor(e,r){w_.set(this,void 0),dC.set(this,void 0),Eae(this,w_,e),Eae(this,dC,r)}async signup(e){if(!window.PublicKeyCredential)throw new bA("passkey_not_supported","WebAuthn is not supported in this browser.");const r=e.scope,n=e.audience,i=zu(e,["scope","audience"]),a=await kw(this,w_,"f").register(i),o=Poe(a.authnParamsPublicKey),s=await navigator.credentials.create({publicKey:o});if(!s)throw new bA("passkey_cancelled","Passkey creation was cancelled or no credential was returned.");const l=Noe(s);return kw(this,dC,"f")._requestTokenForPasskey({authSession:a.authSession,credential:l,realm:i.realm,organization:i.organization,scope:r,audie
100nce:n})}async login(e){if(!window.PublicKeyCredential)throw new bA("passkey_not_supported","WebAuthn is not supported in this browser.");const r=e||{},n=r.scope,i=r.audience,a=zu(r,["scope","audience"]),o=await kw(this,w_,"f").challenge(Object.keys(a).length>0?a:void 0),s=koe(o.authnParamsPublicKey),l=await navigator.credentials.get({publicKey:s});if(!l)throw new bA("passkey_cancelled","Passkey authentication was cancelled or no credential was returned.");const u=Foe(l);return kw(this,dC,"f")._requestTokenForPasskey({authSession:o.authSession,credential:u,realm:a.realm,organization:a.organization,scope:n,audience:i})}async getSignupChallenge(e){if(!window.PublicKeyCredential)throw new bA("passkey_not_supported","WebAuthn is not supported in this browser.");const r=await kw(this,w_,"f").register(e);return{authSession:r.authSession,publicKey:Poe(r.authnParamsPublicKey)}}async getLoginChallenge(e){if(!window.PublicKeyCredential)throw new bA("passkey_not_supported","WebAuthn is not supported in this browser.");const r=await kw(this,w_,"f").challenge(e);return{authSession:r.authSession,publicKey:koe(r.authnParamsPublicKey)}}async getTokenWithPasskey(e){if(!window.PublicKeyCredential)throw new bA("passkey_not_supported","WebAuthn is not supported in this browser.");const r=e.authSession,n=e.credential,i=e.realm,a=e.organization,o=e.scope,s=e.audience,l=n.response;let u;if(l instanceof AuthenticatorAttestationResponse)u=Noe(n);else{if(!(l instanceof AuthenticatorAssertionResponse))throw new bA("passkey_invalid_credential","The provided credential is not a valid attestation or assertion response.");u=Foe(n)}return kw(this,dC,"f")._requestTokenForPasskey({authSession:r,credential:u,realm:i,organization:a,scope:o,audience:s})}}function cy(t){const e=new Uint8Array(t),r=Array.from(e,n=>String.fromCharCode(n)).join("");return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function u7(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=e+"=".repeat((4-e.length%4)%4),n=atob(r),i=new Uint8Array(n.length);for(let a=0;a<n.length;a++)i[a]=n.charCodeAt(a);return i.buffer}function Poe(t){return Object.assign(Object.assign({},t),{challenge:u7(t.challenge),user:Object.assign(Object.assign({},t.user),{id:u7(t.user.id)}),pubKeyCredParams:t.pubKeyCredParams,authenticatorSelection:t.authenticatorSelection})}function koe(t){return Object.assign(Object.assign({},t),{challenge:u7(t.challenge)})}function Noe(t){var e;const r=t.response;return{id:t.id,rawId:cy(t.rawId),type:t.type,authenticatorAttachment:(e=t.authenticatorAttachment)!==null&&e!==void 0?e:void 0,response:{clientDataJSON:cy(r.clientDataJSON),attestationObject:cy(r.attestationObject)},clientExtensionResults:t.getClientExtensionResults()}}function Foe(t){var e;const r=t.response;return{id:t.id,rawId:cy(t.rawId),type:t.type,authenticatorAttachment:(e=t.authenticatorAttachment)!==null&&e!==void 0?e:void 0,response:{clientDataJSON:cy(r.clientDataJSON),authenticatorData:cy(r.authenticatorData),signature:cy(r.signature),userHandle:r.userHandle?cy(r.userHandle):void 0},clientExtensionResults:t.getClientExtensionResults()}}w_=new WeakMap,dC=new WeakMap;function jV(t){return{get(){try{const e=window.localStorage.getItem(t);return e?JSON.parse(e):null}catch{return null}},set(e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch{}},remove(){try{window.localStorage.removeItem(t)}catch{}}}}function zV(){let t=null;return{get:()=>t,set:e=>{t=e},remove:()=>{t=null}}}class k$e{constructor(e,r){this.slots=new Map,this.baseKey="".concat("@@auth0spajs@@","::").concat(e,"::anonymous"),this.useLocalStorage=r==="localStorage"&&typeof window<"u"&&!!window.localStorage,this.sessionKey="".concat(this.baseKey,"::").concat("session"),this.sessionStore=this.useLocalStorage?jV(this.sessionKey):zV();const n="".concat(this.baseKey,"::").concat("session_expired");this.expiredStore=this.useLocalStorage?jV(n):zV()}getStore(e,r){const n="".concat(this.baseKey,"::").concat(JSON.stringify([e??"",r??""]));return this.slots.has(n)||this.slots.set(n,this.useLocalStorage?jV(n):zV()),this.slots.get(n)}getSessionToken(){return this.sessionStore.get()}setSessionToken(e){this.sessionStore.set(e),this.expiredStore.remove()}isSessionExpired(){return!!this.expiredStore.get()}markSessionExpired(){this.expiredStore.set(!0)}removeAll(){if(this.sessionStore.remove(),this.expiredStore.remove(),this.slots.forEac
100h(e=>e.remove()),this.slots.clear(),this.useLocalStorage)try{const e=this.baseKey+"::",r=[];for(let n=0;n<window.localStorage.length;n++){const i=window.localStorage.key(n);i?.startsWith(e)&&r.push(i)}r.forEach(n=>window.localStorage.removeItem(n))}catch{}}}class N$e{constructor(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"localStorage",i=arguments.length>3?arguments[3]:void 0;this.authJsClient=e,this.clientId=r,this.cache=new k$e(r,n),this.lockManager=i??Ibe()}async createSession(e){const r=await this.authJsClient.createSession(e);return this.cache.setSessionToken(Object.assign({sessionToken:r.sessionToken},r.sessionTokenExpiresAt!==void 0&&{sessionTokenExpiresAt:r.sessionTokenExpiresAt})),this.cache.getStore(e?.audience,e?.scope).set(Object.assign({accessToken:r.accessToken,expiresAt:r.expiresAt},r.scope!==void 0&&{scope:r.scope})),r}async getTokenSilently(e){const r=this.cache.getStore(e?.audience,e?.scope),n=r.get();return n&&n.expiresAt-60>Date.now()/1e3?n:this.lockManager.runWithLock("anonymous::".concat(this.clientId),5e3,async()=>{var i;if(this.cache.isSessionExpired())throw new hy("session_expired","The anonymous session has expired. Call createSession() to start a new one.");const a=r.get();if(a&&a.expiresAt-60>Date.now()/1e3)return a;const o=(i=this.cache.getSessionToken())===null||i===void 0?void 0:i.sessionToken;let s;try{s=await this.authJsClient.getAccessToken(Object.assign(Object.assign({},e),{sessionToken:o}))}catch(l){throw l instanceof hy&&(l.code==="session_expired"||l.code==="invalid_session_token")&&(this.cache.removeAll(),this.cache.markSessionExpired()),l}return this.cache.getStore(e?.audience,e?.scope).set(Object.assign({accessToken:s.accessToken,expiresAt:s.expiresAt},s.scope!==void 0&&{scope:s.scope})),this.cache.getSessionToken()||this.cache.setSessionToken(Object.assign({sessionToken:s.sessionToken},s.sessionTokenExpiresAt!==void 0&&{sessionTokenExpiresAt:s.sessionTokenExpiresAt})),Object.assign({accessToken:s.accessToken,expiresAt:s.expiresAt},s.scope!==void 0&&{scope:s.scope})})}async mintTransferToken(){const e=this.cache.getSessionToken();return e?.sessionToken?this.authJsClient.mintTransferToken(e.sessionToken):null}async logout(){await this.authJsClient.logout(),this.cache.removeAll()}hasSession(){var e;return!!(!((e=this.cache.getSessionToken())===null||e===void 0)&&e.sessionToken)}getClaims(){return null}}class F$e{resolveOnlineAccess(e){if(e.refreshTokenMode!=="online")return!1;if(e.useRefreshTokens!==!0)throw new Iae('`refreshTokenMode: "online"` requires the refresh-token grant.',"Set `useRefreshTokens: true`.");if(e.useDpop!==!0)throw new Iae('`refreshTokenMode: "online"` requires DPoP, which is missing or disabled.',"Set `useDpop: true` (DPoP is mandatory for online access).");return!0}warnEnterpriseConnectConfig(e){var r,n;if(e.enterpriseConnect!==!0)return;const i=(r=e.authorizationParams)===null||r===void 0?void 0:r.scope;(e.useRefreshTokens===!0||typeof i=="string"&&i.includes("offline_access"))&&console.warn("Enterprise Connect issues no refresh token; `useRefreshTokens` and `offline_access` in `scope` have no effect."),!((n=e.authorizationParams)===null||n===void 0)&&n.organization&&console.warn("Enterprise Connect resolves the organization from the email domain (Home Realm Discovery); a static `organization` breaks multi-customer setups.")}constructor(e){let r,n;if(this.userCache=new Hbe().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0,refreshTokenMode:"offline",anonymousSessionsCacheMode:"localStorage"},this.onlineAccess=this.resolveOnlineAccess(e),this.warnEnterpriseConnectConfig(e),this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),typeof window<"u"&&(()=>{if(!k4())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(k4().subtle===void 0)throw new Error(`
101      auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
102    `)})(),this.lockManager=Ibe(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)n=e.cache;else{if(r=e.cacheLocation||Lae,!zae(r))throw new Error('Invalid cac
102he location "'.concat(r,'"'));n=zae(r)()}var i;this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:k9,this.cookieStorage=e.legacySameSiteCookie===!1?lC:VWe,this.orgHintCookieName=(i=this.options.clientId,"auth0.".concat(i,".organization_hint")),this.isAuthenticatedCookieName=(c=>"auth0.".concat(c,".is.authenticated"))(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const a=e.useCookiesForTransactions?this.cookieStorage:GWe;let o="";var s;this.onlineAccess?o=Tbe:this.options.useRefreshTokens&&(o="offline_access"),this.scope=(function(c,f){for(var d=arguments.length,A=new Array(d>2?d-2:0),p=2;p<d;p++)A[p-2]=arguments[p];if(typeof c!="object")return{[zo]:fU(f,c,...A)};let g={[zo]:fU(f,...A)};return Object.keys(c).forEach(m=>{const y=c[m];g[m]=fU(f,y,...A)}),g})(this.options.authorizationParams.scope,"openid",o),this.transactionManager=new FWe(a,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Ebe,this.cacheManager=new NWe(n,n.allKeys?void 0:new YWe(n,this.options.clientId),this.nowProvider),this.dpop=this.options.useDpop?new qWe(this.options.clientId):void 0,this.domainUrl=(s=this.options.domain,/^https?:\/\//.test(s)?s:"https://".concat(s)),this.tokenIssuer=((c,f)=>c?c.startsWith("https://")?c:"https://".concat(c,"/"):"".concat(f,"/"))(this.options.issuer,this.domainUrl);const l="".concat(this.domainUrl,"/me/"),u=this.createFetcher(Object.assign(Object.assign({},this.options.useDpop&&{dpopNonceId:"__auth0_my_account_api__"}),{getAccessToken:c=>{var f;return this.getTokenSilently({authorizationParams:{scope:(f=c?.scope)===null||f===void 0?void 0:f.join(" "),audience:l},detailedResponse:!0})}}));this.myAccount=new eYe(u,l),this.authJsClient=new L$e({domain:this.options.domain,clientId:this.options.clientId}),this.mfa=new O$e(this.authJsClient.mfa,this),this.anonymous=new N$e(this.authJsClient.anonymous,this.options.clientId,this.options.anonymousSessionsCacheMode,this.lockManager),this.passkey=new P$e(this.authJsClient.passkey,this),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&r===Lae&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new WWe,this.worker.postMessage({type:"init",allowedBaseUrl:this.domainUrl}))}getConfiguration(){return Object.freeze({domain:this.options.domain,clientId:this.options.clientId})}_url(e){const r=this.options.auth0Client||N9,n=F9(r,!0),i=encodeURIComponent(btoa(JSON.stringify(n)));return"".concat(this.domainUrl).concat(e,"&auth0Client=").concat(i)}_authorizeUrl(e){return this._url("/authorize?".concat(uM(e)))}async _verifyIdToken(e,r,n){const i=await this.nowProvider();return HWe({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:r,organization:n,leeway:this.options.leeway,max_age:(a=this.options.authorizationParams.max_age,typeof a!="string"?a:parseInt(a,10)||void 0),now:i});var a}_processOrgHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}_extractSessionTransferToken(e){return new URLSearchParams(window.location.search).get(e)||void 0}_clearSessionTransferTokenFromUrl(e){try{const r=new URL(window.location.href);r.searchParams.has(e)&&(r.searchParams.delete(e),window.history.replaceState({},"",r.toString()))}catch{}}_applySessionTransferToken(e){const r=this.options.sessionTransferTokenQueryParamName;if(!r||e.session_transfer_token)return e;const n=this._extractSessionTransferToken(r);return n?(this._clearSessionTransferTokenFromUrl(r),Object.assign(Object.assign({},e),{session_transfer_token:n})):e}async _applyAnonTransferToken(e){const r=await this.anonymous.mintTransferToken();return r?Object.assign(Object.assign({},e),{anon_transfer_token:r}):e}async _prepareAuthorizeUrl(e,r,n){var i;const a=hV($2()),o=hV($2()),s=$2(),l=await Oae(s),u=kae(l),c=await((i=this.dpop)===null||i===void 0?void 0:i.calculateThumbprint()),f=((A,p,g,m,y,b,x,T,B)=>Object.assign(Object.assign(Object.assign({client_id:A.clientId},A.authorizationParams),g),{scope:X2(p,g.scope,g.audience),response_type:"code",response_mode:T||"query",state:m,nonce:y,redirect_uri:x||A.authorizationParams.redirect_uri,code_challenge:b,code_challenge_method:"S256",dpop_jkt:B}))(this.options,this.scope,e,a,o,u,e.redirect_uri||this.options.authorizationParams.redirect_uri||n,r?.response_mode,c),d=this._authorizeUrl(f);
102return{nonce:o,code_verifier:s,scope:f.scope,audience:f.audience||zo,redirect_uri:f.redirect_uri,state:a,url:d}}async loginWithPopup(e,r){var n;if(e=e||{},!(r=r||{}).popup&&(r.popup=(l=>{const u=window.screenX+(window.innerWidth-400)/2,c=window.screenY+(window.innerHeight-600)/2;return window.open(l,"auth0:authorize:popup","left=".concat(u,",top=").concat(c,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))})(""),!r.popup))throw new oX;const i=await this._applyAnonTransferToken(this._applySessionTransferToken(e.authorizationParams||{})),a=await this._prepareAuthorizeUrl(i,{response_mode:"web_message"},window.location.origin);r.popup.location.href=a.url;const o=await((l,u)=>new Promise((c,f)=>{let d;const A=setInterval(()=>{l.popup&&l.popup.closed&&(clearInterval(A),clearTimeout(p),window.removeEventListener("message",d,!1),f(new aX(l.popup)))},1e3),p=setTimeout(()=>{clearInterval(A),f(new iX(l.popup)),window.removeEventListener("message",d,!1)},1e3*(l.timeoutInSeconds||60));d=function(g){if(g.origin===u&&g.data&&g.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(A),window.removeEventListener("message",d,!1),l.closePopup!==!1&&l.popup.close(),g.data.response.error)return f(Bn.fromPayload(g.data.response));c(g.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},r),{timeoutInSeconds:r.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}),new URL(a.url).origin);if(a.state!==o.state)throw new Bn("state_mismatch","Invalid state");const s=((n=e.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o.code,redirect_uri:a.redirect_uri},{nonceIn:a.nonce,organization:s})}async getUser(){var e;if(await this._isSessionCeilingReached())return;const r=await this._getIdTokenFromCache();return(e=r?.decodedToken)===null||e===void 0?void 0:e.user}async getIdTokenClaims(){var e;if(await this._isSessionCeilingReached())return;const r=await this._getIdTokenFromCache();return(e=r?.decodedToken)===null||e===void 0?void 0:e.claims}async loginWithRedirect(){var e;const r=Vae(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),n=r.openUrl,i=r.fragment,a=r.appState,o=zu(r,["openUrl","fragment","appState"]),s=((e=o.authorizationParams)===null||e===void 0?void 0:e.organization)||this.options.authorizationParams.organization,l=await this._applyAnonTransferToken(this._applySessionTransferToken(o.authorizationParams||{})),u=await this._prepareAuthorizeUrl(l),c=u.url,f=zu(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:a,response_type:uy.Code}),s&&{organization:s}));const d=i?"".concat(c,"#").concat(i):c;n?await n(d):window.location.assign(d)}async handleRedirectCallback(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location.href).split("?").slice(1);if(e.length===0)throw new Error("There are no query params available for parsing.");const r=this.transactionManager.get();if(!r)throw new Bn("missing_transaction","Invalid state");this.transactionManager.remove();const n=(i=>{i.indexOf("#")>-1&&(i=i.substring(0,i.indexOf("#")));const a=new URLSearchParams(i);return{state:a.get("state"),code:a.get("code")||void 0,connect_code:a.get("connect_code")||void 0,error:a.get("error")||void 0,error_description:a.get("error_description")||void 0}})(e.join(""));return r.response_type===uy.ConnectCode?this._handleConnectAccountRedirectCallback(n,r):this._handleLoginRedirectCallback(n,r)}async _handleLoginRedirectCallback(e,r){const n=e.code,i=e.state,a=e.error,o=e.error_description;if(a)throw new rX(a,o||a,i,r.appState);if(!r.code_verifier||r.state&&r.state!==i)throw new Bn("state_mismatch","Invalid state");const s=r.organization,l=r.nonce,u=r.redirect_uri;return await this._requestToken(Object.assign({audience:r.audience,scope:r.scope,code_verifier:r.code_verifier,grant_type:"authorization_code",code:n},u?{redirect_uri:u}:{}),{nonceIn:l,organization:s}),{appState:r.appState,response_type:uy.Code}}async _handleConnectAccountRedirectCallback(e,r){const n=e.connect_code,i=e.state,a=e.error,o=e.error_description;if(a)throw new nX(a,o||a,r.connection,i,r.appState);if(!n)throw new Bn("missing_connect_code","Missing connect code");if(!(r.code_verifier&&r.state&&r.auth_session&&r.redirect_uri&&r.state===i))throw new Bn("state_mismatch","Invalid state");const s=await this.myAccount.completeAccount({auth_session:r.auth_session,connect_code:n,redirect_uri:r.redirect_uri,code_verifier:r.code_verifier});return Object.assign(Object.assign({},s),{appState:r.appState,response_type:uy.ConnectCode})}async _maybeCreateAnonymousSession(){if(this.options.createAnonymousSessionOnFailedSilentAuth){if(this.anonymous.hasSe
102ssion())return;try{await this.anonymous.getTokenSilently()}catch(e){console.debug("[auth0-spa-js] Anonymous session creation failed",e)}}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get(jae))return void await this._maybeCreateAnonymousSession();this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(jae)}try{await this.getTokenSilently(e)}catch(r){r instanceof Bn&&r.error==="login_required"&&r.error_description!==Rae&&await this._maybeCreateAnonymousSession()}}async getTokenSilently(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var r,n;const i=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:X2(this.scope,(r=e.authorizationParams)===null||r===void 0?void 0:r.scope,((n=e.authorizationParams)===null||n===void 0?void 0:n.audience)||this.options.authorizationParams.audience)})}),a=await this._getTokenSilently(i);return e.detailedResponse?a:a?.access_token}async _getTokenSilently(e){const r=e.cacheMode,n=zu(e,["cacheMode"]);if(await this._isSessionCeilingReached())return;if(r!=="off"){const s=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||zo,clientId:this.options.clientId,cacheMode:r});if(s)return s}if(r==="cache-only")return;const i=(a=this.options.clientId,o=n.authorizationParams.audience||"default","".concat("auth0.lock.getTokenSilently",".").concat(a,".").concat(o));var a,o;try{return await this.lockManager.runWithLock(i,5e3,async()=>{if(r!=="off"){const A=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||zo,clientId:this.options.clientId});if(A)return A}const s=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(n):await this._getTokenFromIFrame(n),l=s.id_token,u=s.token_type,c=s.access_token,f=s.oauthTokenScope,d=s.expires_in;return Object.assign(Object.assign({id_token:l,token_type:u,access_token:c},f?{scope:f}:null),{expires_in:d})})}catch(s){if(this._isInteractiveError(s)&&this.options.interactiveErrorHandler==="popup")return await this._handleInteractiveErrorWithPopup(n);throw s}}_isInteractiveError(e){return e instanceof jL||e instanceof Bn&&this._isIframeMfaError(e)}_isIframeMfaError(e){return e.error==="login_required"&&e.error_description===Rae}async _handleInteractiveErrorWithPopup(e){try{await this.loginWithPopup({authorizationParams:e.authorizationParams});const r=await this._getEntryFromCache({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||zo,clientId:this.options.clientId});if(!r)throw new Bn("interactive_handler_cache_miss","Token not found in cache after interactive authentication");return r}catch(r){throw r}}async getTokenWithPopup(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var n,i;const a=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:X2(this.scope,(n=e.authorizationParams)===null||n===void 0?void 0:n.scope,((i=e.authorizationParams)===null||i===void 0?void 0:i.audience)||this.options.authorizationParams.audience)})});return r=Object.assign(Object.assign({},vWe),r),await this.loginWithPopup(a,r),(await this.cacheManager.get(new Wo({scope:a.authorizationParams.scope,audience:a.authorizationParams.audience||zo,clientId:this.options.clientId}),void 0,this.options.useMrrt)).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){e.clientId!==null?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const r=e.logoutParams||{},n=r.federated,i=zu(r,["federated"]),a=n?"&federated":"";return this._url("/v2/logout?".concat(uM(Object.assign({clientId:e.clientId},i))))+a}async revokeRefreshToken(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.options.useRefreshTokens)return;const r=e.audience||this.options.authorizationParams.audience||zo,n=await this.cacheManager.getRefreshTokensByAudience(r,this.options.clientId);await(async function(i,a){let o=i.baseUrl,s=i.timeout,l=i.auth0Client,u=i.useFormData,c=i.refreshTokens,f=i.audience,d=i.client_id,A=i.onRefreshTokenRevoked;const p=s||k9,g="refresh_token",m="".concat(o,"/oauth/revoke"),y={"Content-Type":u?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(F9(l||N9)))};if(a){const x={client_id:d,token_type_hint:g},T=u?uM(x):JSON.stringify(x);try{return await H9({type:"revoke",timeout:p,fetchUrl:m,fetchOptions:{method:"POST",body:T,headers:y},useFormData:u,auth:{audience:f??zo}},a)}catch(B){throw new Bn("revoke_error",B.message)}}for(const x of c){const T={client_id:d,token_type_hint:g,token:x},B=u?uM(T):JSON.stringify(T),R=await Fbe(m,{method:"POST",body:B,headers:y},p);if(!R.ok){let I,N;try{var b=JSON.parse(await R.text());I=b.error,N=b.error_description}catch{}throw new Bn(I||"revoke_error",N||"HTTP error ".concat(R.status))}await A?.(x)}})({baseUrl:this.domainUrl,timeout:this.httpTimeoutMs,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,client_id:this.options.clientId,refreshTokens:n,audience:r,onRefreshTokenRevoked:i=>this.cacheManager.stripRefreshToken(i)},this.worker),this.onlineAccess&&await this._clearLocalSession()}async logout(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var r;this.options.enterpriseConnect&&((r=e.logoutParams)===null||r===void 0?void 0:r.federated)!==!0&&console.warn("Enterprise Connect logout without `federated: true` leaves the enterprise IdP session alive; the next login may silently reuse the previous user.");const n=Vae(e),i=n.openUrl,a=zu(n,["openUrl"]);await this._clearLocalSession(e.clientId);const o=this._buildLogoutUrl(a);i?await i(o):i!==!1&&window.location.assign(o)}async _getTokenFromIFrame(e){const r=(n=this.options.clientId,"".concat("auth0.lock.getTokenFromIFrame",".").concat(n));var n;try{return await this.lockManager.runWithLock(r,5e3,async()=>{const i=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),a=this.cookieStorage.get(this.orgHintCookieName);a&&!i.organization&&(i.organization=a);const o=await this._prepareAuthorizeUrl(i,{response_mode:"web_message"},window.location.origin),s=o.url,l=o.state,u=o.nonce,c=o.code_verifier,f=o.redirect_uri,d=o.scope,A=o.audience;if(window.crossOriginIsolated)throw new Bn("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const p=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds;let g;
102try{g=new URL(this.domainUrl).origin}catch{g=this.domainUrl}const m=await(function(b,x){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:60;return new Promise((B,R)=>{const I=window.document.createElement("iframe");I.setAttribute("width","0"),I.setAttribute("height","0"),I.style.display="none";const N=()=>{window.document.body.contains(I)&&(window.document.body.removeChild(I),window.removeEventListener("message",F,!1))};let F;const Q=setTimeout(()=>{R(new nE),N()},1e3*T);F=function(j){if(j.origin!=x||!j.data||j.data.type!=="authorization_response")return;const W=j.source;W&&W.close(),j.data.response.error?R(Bn.fromPayload(j.data.response)):B(j.data.response),clearTimeout(Q),window.removeEventListener("message",F,!1),setTimeout(N,2e3)},window.addEventListener("message",F,!1),window.document.body.appendChild(I),I.setAttribute("src",b)})})(s,g,p);if(l!==m.state)throw new Bn("state_mismatch","Invalid state");const y=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:c,code:m.code,grant_type:"authorization_code",redirect_uri:f,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:u,organization:i.organization});return Object.assign(Object.assign({},y),{scope:d,oauthTokenScope:y.scope,audience:A})})}catch(i){throw i.error==="login_required"&&(i instanceof Bn&&this._isIframeMfaError(i)&&this.options.interactiveErrorHandler==="popup"||this.logout({openUrl:!1})),i}}async _getTokenUsingRefreshToken(e){const r=await this.cacheManager.get(new Wo({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||zo,clientId:this.options.clientId}),void 0,this.options.useMrrt);if(!(r&&r.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new b5(e.authorizationParams.audience||zo,e.authorizationParams.scope)}const n=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null,a=((c,f,d,A)=>{var p;if(c&&d&&A){if(f.audience!==d)return f.scope;const g=A.split(" "),m=((p=f.scope)===null||p===void 0?void 0:p.split(" "))||[],y=m.every(b=>g.includes(b));return g.length>=m.length&&y?A:f.scope}return f.scope})(this.options.useMrrt,e.authorizationParams,r?.audience,r?.scope);try{const c=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:r&&r.refresh_token,redirect_uri:n}),i&&{timeout:i}),{scopesToRequest:a});if(await this._propagateRotatedRefreshToken(r?.refresh_token,c.refresh_token),this.options.useMrrt&&(o=r?.audience,s=r?.scope,l=e.authorizationParams.audience,u=e.authorizationParams.scope,o!==l||!((f,d)=>{const A=d?.split(" ")||[];return(f?.split(" ")||[]).every(p=>A.includes(p))})(u,s))){const f=ZWe(a,c.scope,this.onlineAccess);if(f){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw await this.cacheManager.remove(this.options.clientId,e.authorizationParams.audience,e.authorizationParams.scope),new gWe(e.authorizationParams.audience||"default",f)}}return Object.assign(Object.assign({},c),{scope:e.authorizationParams.scope,oauthTokenScope:c.scope,audience:e.authorizationParams.audience||zo})}catch(c){if(c.message){if(c.message.includes("user is blocked"))throw await this.logout({openUrl:!1}),c;if((c.message.includes("Missing Refresh Token")||c.message.includes("invalid refresh token"))&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e)}throw c}var o,s,l,u}async _propagateRotatedRefreshToken(e,r){!this.onlineAccess&&r&&e&&await this.cacheManager.updateEntry(e,r,this.options.clientId,this.options.useMrrt)}async _saveEntryInCache(e){const r=e.decodedToken.claims,n=r.session_expiry,i=r.iat;if(n!==void 0){if(typeof n!="number")throw new Bn("invalid_token","Invalid session_expiry: value must be a number.");if(n>=1e10)throw new Bn("invalid_token","Invalid session_expiry: value appears to be in milliseconds; expected a Unix timestamp in seconds.");if(i===void 0||n<=i)throw new Bn("invalid_token","Invalid session_expiry: session ceiling is before or at the token issue time.")}const a=e.id_token,o=e.decodedToken,s=zu(e,["id_token","decodedToken"]);this.userCache.set(m_,{id_token:a,decodedToken:o}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(s)}async _clearLocalSession(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.clientId;var r;e===null?await this.cacheManager.clear():await this.cacheManager.clear(e),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove(m_);try{await((r=this.dpop)===null||r===void 0?void 0:r.clear())}catch{}if(this.worker)try{await H9({type:"clear"},this.worker)}catch{}}async _isSessionCeilingReached(){var e,r;const n=this.userCache.get(m_),i=n??await this.cacheManager.getIdToken(new Wo({clientId:this.options.clientId})),a=(r=(e=i?.decodedToken)===null||e===void 0?void 0:e.claims)===null||r===void 0?void 0:r.session_expiry;if(a===void 0)return!1;const o=await this.nowProvider();return Math.floor(o/1e3)>=a-30&&(await this._clearLocalSession(),!0)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||zo,r=this.scope[e],n=await this.cacheManager.getIdToken(new Wo({clientId:this.options.clientId,audience:e,scope:r})),i=this.userCache.get(m_);return n&&n.id_token===i?.id_token?i:(this.userCache.set(m_,n),n)}async _getEntryFromCache(e){let r=e.scope,n=e.audience,i=e.clientId,a=e.cacheMode;
102const o=await this.cacheManager.get(new Wo({scope:r,audience:n,clientId:i}),60,this.options.useMrrt,a);if(o&&o.access_token){const s=o.token_type,l=o.access_token,u=o.oauthTokenScope,c=o.expires_in,f=await this._getIdTokenFromCache();return f&&Object.assign(Object.assign({id_token:f.id_token,token_type:s||"Bearer",access_token:l},u?{scope:u}:null),{expires_in:c})}}_storeMfaContext(e,r,n){e instanceof jL&&this.mfa.setMFAAuthDetails(e.mfa_token,r,n,e.mfa_requirements)}async _requestToken(e,r){var n,i,a,o,s,l;const u=r||{},c=u.nonceIn,f=u.organization,d=u.scopesToRequest;try{const A=await Fae(Object.assign(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,useMrrt:this.options.useMrrt,dpop:this.dpop,preserveRefreshToken:this.onlineAccess},e),{scope:d||e.scope}),this.worker);let p=await this._verifyIdToken(A.id_token,c,f);if(e.grant_type==="authorization_code"){const g=await this._getIdTokenFromCache();!((i=(n=g?.decodedToken)===null||n===void 0?void 0:n.claims)===null||i===void 0)&&i.sub&&g.decodedToken.claims.sub!==p.claims.sub&&(await this.cacheManager.clear(this.options.clientId),this.userCache.remove(m_))}if(e.grant_type!=="authorization_code"){const g=await this._getIdTokenFromCache(),m=(o=(a=g?.decodedToken)===null||a===void 0?void 0:a.claims)===null||o===void 0?void 0:o.session_expiry;m!==void 0&&(p=Object.assign(Object.assign({},p),{claims:Object.assign(Object.assign({},p.claims),{session_expiry:m})}))}return!A.refresh_token&&this.onlineAccess&&(A.refresh_token=(s=e.refresh_token)!==null&&s!==void 0?s:(l=await this.cacheManager.get(new Wo({scope:d||e.scope,audience:e.audience||zo,clientId:this.options.clientId}),void 0,this.options.useMrrt))===null||l===void 0?void 0:l.refresh_token),await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},A),{decodedToken:p,scope:e.scope,audience:e.audience||zo}),A.scope?{oauthTokenScope:A.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(f||p.claims.org_id),Object.assign(Object.assign({},A),{decodedToken:p})}catch(A){throw e.grant_type!=="authorization_code"&&this._storeMfaContext(A,d||e.scope,e.audie
102nce),A}}_buildTokenExchangeParams(e){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),{grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",subject_token:e.subject_token,subject_token_type:e.subject_token_type}),e.actor_token&&{actor_token:e.actor_token}),e.actor_token_type&&{actor_token_type:e.actor_token_type}),{scope:X2(this.scope,e.scope,e.audience||this.options.authorizationParams.audience),audience:e.audience||this.options.authorizationParams.audience,organization:e.organization||this.options.authorizationParams.organization})}async loginWithCustomTokenExchange(e){return this._requestToken(this._buildTokenExchangeParams(e))}async customTokenExchange(e){const r=this._buildTokenExchangeParams(e);try{const n=await Fae(Object.assign(Object.assign({},r),{baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,dpop:this.dpop}),this.worker,!0);return n.id_token&&await this._verifyIdToken(n.id_token,void 0,e.organization),n}catch(n){throw this._storeMfaContext(n,r.scope,r.audience),n}}async exchangeToken(e){return this.loginWithCustomTokenExchange(e)}_assertDpop(e){if(!e)throw new Error("`useDpop` option must be enabled before using DPoP.")}getDpopNonce(e){return this._assertDpop(this.dpop),this.dpop.getNonce(e)}setDpopNonce(e,r){return this._assertDpop(this.dpop),this.dpop.setNonce(e,r)}generateDpopProof(e){return this._assertDpop(this.dpop),this.dpop.generateProof(e)}createFetcher(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new JWe(e,{isDpopEnabled:()=>!!this.options.useDpop,getAccessToken:r=>{var n;return this.getTokenSilently({authorizationParams:{scope:(n=r?.scope)===null||n===void 0?void 0:n.join(" "),audience:r?.audience},detailedResponse:!0})},getDpopNonce:()=>this.getDpopNonce(e.dpopNonceId),setDpopNonce:r=>this.setDpopNonce(r,e.dpopNonceId),generateDpopProof:r=>this.generateDpopProof(r)})}async connectAccountWithRedirect(e){const r=e.openUrl,n=e.appState,i=e.connection,a=e.scopes,o=e.authorization_params,s=e.redirectUri,l=s===void 0?this.options.authorizationParams.redirect_uri||window.location.origin:s;if(!i)throw new Error("connection is required");const u=hV($2()),c=$2(),f=await Oae(c),d=kae(f),A=await this.myAccount.connectAccount({connection:i,scopes:a,redirect_uri:l,state:u,code_challenge:d,code_challenge_method:"S256",authorization_params:o}),p=A.connect_uri,g=A.connect_params,m=A.auth_session;this.transactionManager.create({state:u,code_verifier:c,auth_session:m,redirect_uri:l,appState:n,connection:i,response_type:uy.ConnectCode});const y=new URL(p);y.searchParams.set("ticket",g.ticket),r?await r(y.toString()):window.location.assign(y)}async _requestTokenForPasskey(e){const r=e.audience||this.options.authorizationParams.audience,n=e.organization||this.options.authorizationParams.organization;return this._requestToken(Object.assign(Object.assign(Object.assign({grant_type:"urn:okta:params:oauth:grant-type:webauthn",auth_session:e.authSession,authn_response:e.credential},e.realm&&{realm:e.realm}),n&&{organization:n}),{scope:X2(this.scope,e.scope,r),audience:r}))}async _requestTokenForMfa(e,r){const n=e.mfaToken,i=zu(e,["mfaToken"]),a=await this.cacheManager.get(new Wo({scope:i.scope,audience:i.audience||zo,clientId:this.options.clientId}),void 0,this.options.useMrrt),o=await this._requestToken(Object.assign(Object.assign({},i),{mfa_token:n}),r);return await this._propagateRotatedRefreshToken(a?.refresh_token,o.refresh_token),o}}var Zxe={isAuthenticated:!1,isLoading:!0,error:void 0,user:void 0},tn=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},U$e=Ko(Ko({},Zxe),{buildAuthorizeUrl:tn,buildLogoutUrl:tn,getAccessTokenSilently:tn,getAccessTokenWithPopup:tn,getIdTokenClaims:tn,loginWithCustomTokenExchange:tn,customTokenExchange:tn,exchangeToken:tn,loginWithRedirect:tn,loginWithPopup:tn,connectAccountWithRedirect:tn,logout:tn,revokeRefreshToken:tn,handleRedirectCallback:tn,getDpopNonce:tn,setDpopNonce:tn,generateDpopProof:tn,createFetcher:tn,getConfiguration:tn,mfa:{getAuthenticators:tn,enroll:tn,challenge:tn,verify:tn,getEnrollmentFactors:tn},passkey:{signup:tn,login:tn},myAccount:{getFactors:tn,getAuthenticationMethods:tn,getAuthenticationMethod:tn,updateAuthenticationMethod:tn,deleteAuthenticationMethod:tn,enrollmentChallenge:tn,enrollmentVerify:tn},anonymous:{createSession:tn,getTokenSilently:tn,logout:tn,hasSe
102ssion:tn,getClaims:tn,mintTransferToken:tn}}),Xxe=H.createContext(U$e),Uoe=(function(t){hWe(e,t);function e(r,n){var i=t.call(this,n??r)||this;return i.error=r,i.error_description=n,Object.setPrototypeOf(i,e.prototype),i}return e})(Error),H$e=/[?&](?:connect_)?code=[^&]+/,Q$e=/[?&]state=[^&]+/,j$e=/[?&]error=[^&]+/,z$e=function(t){return t===void 0&&(t=window.location.search),(H$e.test(t)||j$e.test(t))&&Q$e.test(t)},qxe=function(t){return function(e){if(e instanceof Error)return e;if(e!==null&&typeof e=="object"&&"error"in e&&typeof e.error=="string"){if("error_description"in e&&typeof e.error_description=="string"){var r=e;return new Uoe(r.error,r.error_description)}var n=e;return new Uoe(n.error)}return new Error(t)}},Hoe=qxe("Login failed"),xS=qxe("Get access token failed"),Jxe=function(t){var e,r;t?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),t.authorizationParams=(e=t.authorizationParams)!==null&&e!==void 0?e:{},t.authorizationParams.redirect_uri=t.redirectUri,delete t.redirectUri),!((r=t?.authorizationParams)===null||r===void 0)&&r.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),t.authorizationParams.redirect_uri=t.authorizationParams.redirectUri,delete t.authorizationParams.redirectUri)},V$e=function(t,e){switch(e.type){case"LOGIN_POPUP_STARTED":return Ko(Ko({},t),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return Ko(Ko({},t),{isAuthenticated:!!e.user,user:e.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":case"SYNC_USER":return t.user===e.user?t:Ko(Ko({},t),{isAuthenticated:!!e.user,user:e.user});case"LOGOUT":return Ko(Ko({},t),{isAuthenticated:!1,user:void 0});case"ERROR":return Ko(Ko({},t),{isLoading:!1,error:e.error})}},G$e=function(t){return Jxe(t),Ko(Ko({},t),{auth0Client:{name:"auth0-react",version:"2.28.2"}})},K$e=function(t){var e;window.history.replaceState({},document.title,(e=t.returnTo)!==null&&e!==void 0?e:window.location.pathname)},Qoe=function(){var t,e,r=new Promise(function(n,i){t=n,e=i});return r.catch(function(){}),{promise:r,resolve:t,reject:e}},W$e=function(t){var e=t,r=e.children,n=e.skipRedirectCallback,i=e.onRedirectCallback,a=i===void 0?K$e:i,o=e.context,s=o===void 0?Xxe:o,l=e.client,u=Tae(e,["children","skipRedirectCallback","onRedirectCallback","context","client"]);l&&(u.domain||u.clientId)&&console.warn("Auth0Provider: the `client` prop takes precedence over `domain`/`clientId` and other configuration options. Remove `domain`, `clientId`, and any other Auth0Client configuration props when using the `client` prop.");var c=H.useState(function(){return l??new F$e(G$e(u))})[0],f=H.useReducer(V$e,Zxe),d=f[0],A=f[1],p=H.useState(Qoe),g=p[0],m=p[1],y=H.useState(!1),b=y[0],x=y[1],T=H.useRef(!1),B=H.useRef(!1),R=H.useCallback(function(Se){return A({type:"ERROR",error:Se}),Se},[]),I=H.useCallback(function(Se,nt){return Hd(void 0,void 0,void 0,function(){var qe,tt,lt,ct,Ze,Jt,Sn,jr;return Qd(this,function(Oe){switch(Oe.label){case 0:return Oe.trys.push([0,7,,8]),qe=void 0,nt&&z$e()&&!n?[4,c.handleRedirectCallback()]:[3,3];case 1:return tt=Oe.sent(),lt=tt.appState,ct=lt===void 0?{}:lt,Ze=tt.response_type,Jt=Tae(tt,["appState","response_type"]),[4,c.getUser()];case 2:return qe=Oe.sent(),ct.response_type=Ze,Ze===uy.ConnectCode&&(ct.connectedAccount=Jt),a(ct,qe),[3,6];case 3:return[4,c.checkSession()];case 4:return Oe.sent(),[4,c.getUser()];case 5:qe=Oe.sent(),Oe.label=6;case 6:return A({type:"INITIALISED",user:qe}),Se.resolve(),[3,8];case 7:return Sn=Oe.sent(),jr=Hoe(Sn),R(jr),x(!0),Se.reject(jr),[3,8];case 8:return[2]}})})},[c,a,n,R]);H.useEffect(function(){B.current||(B.current=!0,I(g,!0))},[I,g]),H.useEffect(function(){if(!(!b||T.current||!d.isAuthenticated)){T.current=!0;var Se=Qoe();m(Se),I(Se,!1)}},[b,d.isAuthenticated,I]);var N=H.useCallback(function(Se){return Jxe(Se),c.loginWithRedirect(Se)},[c]),F=H.useCallback(function(Se,nt){return Hd(void 0,void 0,void 0,function(){var qe,tt;return Qd(this,function(lt){switch(lt.label){case 0:A({type:"LOGIN_POPUP_STARTED"}),lt.label=1;case 1:return lt.trys.push([1,3,,4]),[4,c.loginWithPopup(Se,nt)];case 2:return lt.sent(),[3,4];case 3:return qe=lt.sent(),R(Hoe(qe)),[2];case 4:return[4,c.getUser()];case 5:return tt=lt.sent(),A({type:"LOGIN_POPUP_COMPLETE",user:tt}),[2]}})})},[c,R]),Q=H.useCallback(function(){for(var Se=[],nt=0;nt<arguments.length;nt++)Se[nt]=arguments[nt];return Hd(void 0,AWe([],Se),void 0,function(qe){return qe===void 0&&(qe={}),Qd(this,function(tt){switch(tt.label){case 0:return[4,c.logout(qe)];case 1:return tt.sent(),(qe.openUrl||qe.openUrl===!1)&&A({type:"LOGOUT"}),[2]}})})},[c]),j=H.useCallback(function(Se){return Hd(void 0,void 0,void 0,function(){var nt,qe;return Qd(this,function(tt){switch(tt.label){case 0:return tt.trys.push([0,,2,4]),[4,c.revokeRefreshToken(Se)];case 1:return tt.sent(),[3,4];case 2:return nt=A,qe={type:"SYNC_USER"},[4,c.getUser()];case 3:return nt.apply(void 0,[(qe.user=tt.sent(),qe)]),[7];case 4:return[2]}})})},[c]),W=H.useCallback(function(Se){return Hd(void 0,void 0,void 0,function(){var nt,qe,tt,lt;return Qd(this,function(ct){switch(ct.label){case 0:return ct.trys.push([0,2,3,5]),[4,c.getTokenSilently(Se)];case 1:return nt=ct.sent(),[3,5];case 2:throw qe=ct.sent(),xS(qe);case 3:return tt=A,lt={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,c.getUser()];case 4:return tt.apply(void 0,[(lt.user=ct.sent(),lt)]),[7];case 5:return[2,nt]}})})},[c]),V=H.useCallback(function(Se,nt){return Hd(void 0,void 0,void 0,function(){var qe,tt,lt,ct;return Qd(this,function(Ze){switch(Ze.label){case 0:return Ze.trys.push([0,2,3,5]),[4,c.getTokenWithPopup(Se,nt)];case 1:return qe=Ze.sent(),[3,5];case 2:throw tt=Ze.sent(),xS(tt);case 3:return lt=A,ct={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,c.getUser()];case 4:return lt.apply(void 0,[(ct.user=Ze.sent(),ct)]),[7];case 5:return[2,qe]}})})},[c]),Y=H.useCallback(function(Se){return c.connectAccountWithRedirect(Se)},[c]),G=H.useCallback(function(){return c.getIdTokenClaims()},[c]),K=H.useCallback(function(Se){return Hd(void 0,void 0,void 0,function(){var nt,qe,tt,lt;return Qd(this,function(ct){switch(ct.label){case 0:return ct.trys.push([0,2,3,5]),[4,c.loginWithCustomTokenExchange(Se)];case 1:return nt=ct.sent(),[3,5];case 2:throw qe=ct.sent(),xS(qe);case 3:return tt=A,lt={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,c.getUser()];case 4:return tt.apply(void 0,[(lt.user=ct.sent(),lt)]),[7];case 5:return[2,nt]}})})},[c]),X=H.useCallback(function(Se){return c.customTokenExchange(Se)},[c]),q=H.useCallback(function(Se){return Hd(void 0,void 0,void 0,function(){return Qd(this,function(nt){return[2,K(Se)]})})},[K]),ne=H.useCallback(function(Se){return Hd(void 0,void 0,void 0,function(){var nt,qe,tt;return Qd(this,function(lt){switch(lt.label){case 0:return lt.trys.push([0,2,3,5]),[4,c.handleRedirectCallback(Se)];case 1:return[2,lt.sent()];case 2:throw nt=lt.sent(),xS(nt);case 3:return qe=A,tt={type:"HANDLE_REDIRECT_COMPLETE"},[4,c.getUser()];case 4:return qe.apply(void 0,[(tt.user=lt.sent(),tt)]),[7];case 5:return[2]}})})},[c]),te=H.useCallback(function(Se){return c.getDpopNonce(Se)},[c]),ce=H.useCallback(function(Se,nt){return c.setDpopNonce(Se,nt)},[c]),he=H.useCallback(function(Se){return c.generateDpopProof(Se)},[c]),ve=H.useCallback(function(Se){return c.createFetcher(Se)},[c]),ae=H.useCallback(function(){return c.getConfiguration()},[c]),fe=H.useMemo(function(){return c.mfa},[c]),we=H.useMemo(function(){return c.myAccount},[c]),Me=H.useMemo(function(){return c.anonymous},[c]),ge=H.useCallback(function(Se){return Hd(void 0,void 0,void 0,function(){var nt,qe,tt,lt;return Qd(this,function(ct){switch(ct.label){case 0:return ct.trys.push([0,2,3,5]),[4,c.passkey.signup(Se)];case 1:return nt=ct.sent(),[3,5];case 2:throw qe=ct.sent(),xS(qe);case 3:return tt=A,lt={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,c.getUser()];case 4:return tt.apply(void 0,[(lt.user=ct.sent(),lt)]),[7];case 5:return[2,nt]}})})},[c]),be=H.useCallback(function(Se){return Hd(void 0,void 0,void 0,function(){var nt,qe,tt,lt;return Qd(this,function(ct){switch(ct.label){case 0:return ct.trys.push([0,2,3,5]),[4,c.passkey.login(Se)];case 1:return nt=ct.sent(),[3,5];case 2:throw qe=ct.sent(),xS(qe);case 3:return tt=A,lt={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,c.getUser()];case 4:return tt.apply(void 0,[(lt.user=ct.sent(),lt)]),[7];case 5:return[2,nt]}})})},[c]),Ve=H.useMemo(function(){return{signup:ge,login:be}},[ge,be]),Re=H.useMemo(function(){return Ko(Ko({},d),{getAccessTokenSilently:W,getAccessTokenWithPopup:V,getIdTokenClaims:G,loginWithCustomTokenExchange:K,customTokenExchange:X,exchangeToken:q,loginWithRedirect:N,loginWithPopup:F,connectAccountWithRedirect:Y,logout:Q,revokeRefreshToken:j,handleRedirectCallback:ne,getDpopNonce:te,setDpopNonce:ce,generateDpopProof:he,createFetcher:ve,getConfiguration:ae,mfa:fe,passkey:Ve,myAccount:we,anonymous:Me,_initPromise:g.promise})},[d,W,V,G,K,X,q,N,F,Y,Q,j,ne,te,ce,he,ve,ae,fe,Ve,we,Me,g]);return ue.createElement(s.Provider,{value:Re},r)},bh=function(t){return t===void 0&&(t=Xxe),H.useContext(t)}
102;const Y$e=()=>{const{logout:t}=rc(),{logout:e}=bh();return{handleLogout:()=>{e({logoutParams:{returnTo:`${window.location.origin}/auth/login`}}),t()}}};function $$e(t,e,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:r}).format(e).split(/\s/g).slice(2).join(" ")}const Z$e={},mM={};function Rv(t,e){try{const n=(Z$e[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return n in mM?mM[n]:joe(n,n.split(":"))}catch{if(t in mM)return mM[t];const r=t?.match(X$e);return r?joe(t,r.slice(1)):NaN}}const X$e=/([+-]\d\d):?(\d\d)?/;function joe(t,e){const r=+(e[0]||0),n=+(e[1]||0),i=+(e[2]||0)/60;return mM[t]=r*60+n>0?r*60+n+i:r*60-n-i}class OA extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Rv(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),e1e(this,e)):this.setTime(Date.now())}
102static tz(e,...r){return r.length?new OA(...r,e):new OA(Date.now(),e)}withTimeZone(e){return new OA(+this,e)}getTimezoneOffset(){const e=-Rv(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),X4(this),+this}[Symbol.for("constructDateFrom")](e){return new OA(+new Date(e),this.timeZone)}}const zoe=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!zoe.test(t))return;const e=t.replace(zoe,"$1UTC");OA.prototype[e]&&(t.startsWith("get")?OA.prototype[t]=function(){return this.internal[e]()}:(OA.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),q$e(this),+this},OA.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),X4(this),+this}))});function X4(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-Rv(t.timeZone,t)*60))}function q$e(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),e1e(t)}function e1e(t,e){const r=Array.isArray(e)?J$e(e):+t.internal,n=Rv(t.timeZone,t),i=n>0?Math.floor(n):Math.ceil(n),a=new Date(+t);a.setUTCHours(a.getUTCHours()-1);const o=-new Date(+t).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),l=o-s;let u=o;if(l&&o!==i){const F=Date.prototype.getHours.apply(t),Q=Array.isArray(e)?e[3]||0:t.internal.getUTCHours();if(F!==Q){const j=new Date(+t),W=o-i;W&&j.setUTCMinutes(j.getUTCMinutes()+W);const V=Rv(t.timeZone,j);(V>0?Math.floor(V):Math.ceil(V))===i&&(u=s)}}const c=u-i;c&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+c);const f=new Date(+t);f.setUTCSeconds(0);const d=o>0?f.getSeconds():(f.getSeconds()-60)%60,A=Math.round(-(Rv(t.timeZone,t)*60))%60;(A||d)&&Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+A+d);const p=Rv(t.timeZone,t),g=p>0?Math.floor(p):Math.ceil(p),y=-new Date(+t).getTimezoneOffset()-g,b=g!==i,x=y-c,T=g-i,B=r-g*60*1e3,R=T>0&&Voe(t)-r===T*60*1e3&&Voe(t,B)!==r;if(b&&x&&!R){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+x);const F=Rv(t.timeZone,t),Q=F>0?Math.floor(F):Math.ceil(F),j=g-Q;j&&x<0&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+j)}X4(t);const N=(e?r:r+A*1e3)-+t.internal;N&&Math.abs(N)<1800*1e3&&(Date.prototype.setTime.call(t,+t+N),X4(t))}function J$e(t){return Date.UTC(t[0],t.length>1?t[1]:0,t.length>2?t[2]:1,...t.slice(3))}function Voe(t,e){const r=new Date(e??+t);return r.setUTCSeconds(r.getUTCSeconds()-Math.round(-Rv(t.timeZone,r)*60)),+r}class hl extends OA{static tz(e,...r){return r.length?new hl(...r,e):new hl(Date.now(),e)}toISOString(){const[e,r,n]=this.tzComponents(),i=`${e}${r}:${n}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,r,n,i]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${r} ${i}`}
102toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[r,n,i]=this.tzComponents();return`${e} GMT${r}${n}${i} (${$$e(this.timeZone,this)})`}toLocaleString(e,r){return Date.prototype.toLocaleString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(e,r){return Date.prototype.toLocaleDateString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(e,r){return Date.prototype.toLocaleTimeString.call(this,e,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset(),r=e>0?"-":"+",n=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),i=String(Math.abs(e)%60).padStart(2,"0");return[r,n,i]}withTimeZone(e){return new hl(+this,e)}[Symbol.for("constructDateFrom")](e){return new hl(+new Date(e),this.timeZone)}}const t1e=6048e5,eZe=864e5,R5=6e4,I5=36e5,tZe=1e3,Goe=Symbol.for("constructDateFrom");function Wn(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Goe in t?t[Goe](e):t instanceof Date?new t.constructor(e):new Date(e)}function Gt(t,e){return Wn(e||t,t)}function Kf(t,e,r){const n=Gt(t,r?.in);return isNaN(e)?Wn(r?.in||t,NaN):(e&&n.setDate(n.getDate()+e),n)}function ed(t,e,r){const n=Gt(t,r?.in);if(isNaN(e))return Wn(t,NaN);if(!e)return n;const i=n.getDate(),a=Wn(t,n.getTime());a.setMonth(n.getMonth()+e+1,0);const o=a.getDate();return i>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}function r1e(t,e,r){return Wn(t,+Gt(t)+e)}function rZe(t,e,r){return r1e(t,e*I5)}let nZe={};function yx(){return nZe}function tp(t,e){const r=yx(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Gt(t,e?.in),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Pb(t,e){return tp(t,{...e,weekStartsOn:1})}function n1e(t,e){const r=Gt(t,e?.in),n=r.getFullYear(),i=Wn(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=Pb(i),o=Wn(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const s=Pb(o);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function q4(t){const e=Gt(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function dp(t,...e){const r=Wn.bind(null,e.find(n=>typeof n=="object"));return e.map(r)}function Xy(t,e){const r=Gt(t,e?.in);return r.setHours(0,0,0,0),r}function qy(t,e,r){const[n,i]=dp(r?.in,t,e),a=Xy(n),o=Xy(i),s=+a-q4(a),l=+o-q4(o);return Math.round((s-l)/eZe)}function iZe(t,e){const r=n1e(t,e),n=Wn(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Pb(n)}function YL(t,e,r){const n=Gt(t,r?.in);return n.setTime(n.getTime()+e*R5),n}function TX(t,e,r){return ed(t,e*3,r)}function aZe(t,e,r){return r1e(t,e*1e3)}function $L(t,e,r){return Kf(t,e*7,r)}function Wf(t,e,r){return ed(t,e*12,r)}function c7(t,e){let r,n=e?.in;return t.forEach(i=>{!n&&typeof i=="object"&&(n=Wn.bind(null,i));const a=Gt(i,n);(!r||r<a||isNaN(+a))&&(r=a)}),Wn(n,r||NaN)}function f7(t,e){let r,n=e?.in;return t.forEach(i=>{!n&&typeof i=="object"&&(n=Wn.bind(null,i));const a=Gt(i,n);(!r||r>a||isNaN(+a))&&(r=a)}),Wn(n,r||NaN)}function i1e(t,e,r){const[n,i]=dp(r?.in,t,e);return+Xy(n)==+Xy(i)}function uh(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function AT(t){return!(!uh(t)&&typeof t!="number"||isNaN(+Gt(t)))}function pT(t,e,r){const[n,i]=dp(r?.in,t,e),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return a*12+o}function Ay(t,e){const r=Gt(t,e?.in);return Math.trunc(r.getMonth()/3)+1}function J4(t,e,r){const[n,i]=dp(r?.in,t,e),a=n.getFullYear()-i.getFullYear(),o=Ay(n)-Ay(i);return a*4+o}function e3(t,e,r){const[n,i]=dp(r?.in,t,e);return n.getFullYear()-i.getFullYear()}function oZe(t,e,r){const[n,i]=dp(r?.in,t,e),a=Koe(n,i),o=Math.abs(qy(n,i));n.setDate(n.getDate()-a*o);const s=+(Koe(n,i)===-a),l=a*(o-s);return l===0?0:l}function Koe(t,e){const r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function a1e(t,e){const r=Gt(t,e?.in);return r.setHours(23,59,59,999),r}function EX(t,e){const r=Gt(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function o1e(t,e){const[r,n]=dp(t,e.start,e.end);return{start:r,end:n}}function sZe(t,e){const{start:r,end:n}=o1e(e?.in,t);let i=+r>+n;const a=i?+r:+n,o=i?n:r;o.setHours(0,0,0,0),o.setDate(1);let s=1;const l=[];for(;+o<=a;)l.push(Wn(r,o)),o.setMonth(o.getMonth()+s);return i?l.reverse():l}function d7(t,e){const r=Gt(t,e?.in),n=r.getMonth(),i=n-n%3;return r.setMonth(i,1),r.setHours(0,0,0,0),r}function BX(t,e){const r=Gt(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function DX(t,e){const r=Gt(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}function _I(t,e){const r=Gt(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function lZe(t,e){const{start:r,end:n}=o1e(e?.in,t);let i=+r>+n;const a=i?+r:+n,o=i?n:r;o.setHours(0,0,0,0),o.setMonth(0,1);let s=1;const l=[];for(;+o<=a;)l.push(Wn(r,o)),o.setFullYear(o.getFullYear()+s);return i?l.reverse():l}function MX(t,e){const r=yx(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Gt(t,e?.in),a=i.getDay(),o=(a<n?-7:0)+6-(a-n);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function uZe(t,e){return MX(t,{...e,weekStartsOn:1}
vendor: 17,738 bytes, line 102
102)}const cZe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fZe=(t,e,r)=>{let n;const i=cZe[t];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function VV(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const dZe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hZe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},AZe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pZe={date:VV({formats:dZe,defaultWidth:"full"}),time:VV({formats:hZe,defaultWidth:"full"}),dateTime:VV({formats:AZe,defaultWidth:"full"})},vZe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gZe=(t,e,r,n)=>vZe[t];function cD(t){return(e,r)=>{const n=r?.context?String(r.context):"standalone";let i;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,s=r?.width?String(r.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{const o=t.defaultWidth,s=r?.width?String(r.width):t.defaultWidth;i=t.values[s]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return i[a]}}const mZe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yZe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wZe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_Ze={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bZe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},xZe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SZe=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CZe={ordinalNumber:SZe,era:cD({values:mZe,defaultWidth:"wide"}),quarter:cD({values:yZe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:cD({values:wZe,defaultWidth:"wide"}),day:cD({values:_Ze,defaultWidth:"wide"}),dayPeriod:cD({values:bZe,defaultWidth:"wide",formattingValues:xZe,defaultFormattingWidth:"wide"})};function fD(t){return(e,r={})=>{const n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;const o=a[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?EZe(s,f=>f.test(o)):TZe(s,f=>f.test(o));let u;u=t.valueCallback?t.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;const c=e.slice(o.length);return{value:u,rest:c}}}function TZe(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function EZe(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function BZe(t){return(e,r={})=>{const n=e.match(t.matchPattern);if(!n)return null;const i=n[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const s=e.slice(i.length);return{value:o,rest:s}}}const DZe=/^(\d+)(th|st|nd|rd)?/i,MZe=/\d+/i,LZe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},RZe={any:[/^b/i,/^(a|c)/i]},IZe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},OZe={any:[/1/i,/2/i,/3/i,/4/i]},PZe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kZe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},NZe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},FZe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},UZe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},HZe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},QZe={ordinalNumber:BZe({matchPattern:DZe,parsePattern:MZe,valueCallback:t=>parseInt(t,10)}),era:fD({matchPatterns:LZe,defaultMatchWidth:"wide",parsePatterns:RZe,defaultParseWidth:"any"}),quarter:fD({matchPatterns:IZe,defaultMatchWidth:"wide",parsePatterns:OZe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:fD({matchPatterns:PZe,defaultMatchWidth:"wide",parsePatterns:kZe,defaultParseWidth:"any"}),day:fD({matchPatterns:NZe,defaultMatchWidth:"wide",parsePatterns:FZe,defaultParseWidth:"any"}),dayPeriod:fD({matchPatterns:UZe,defaultMatchWidth:"any",parsePatterns:HZe,defaultParseWidth:"any"})},I_={code:"en-US",formatDistance:fZe,formatLong:pZe,formatRelative:gZe,localize:CZe,match:QZe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function jZe(t,e){const r=Gt(t,e?.in);return qy(r,_I(r))+1}function bI(t,e){const r=Gt(t,e?.in),n=+Pb(r)-+iZe(r);return Math.round(n/t1e)+1}function LX(t,e){const r=Gt(t,e?.in),n=r.getFullYear(),i=yx(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Wn(e?.in||t,0);o.setFullYear(n+1,0,a),o.setHours(0,0,0,0);const s=tp(o,e),l=Wn(e?.in||t,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);const u=tp(l,e);return+r>=+s?n+1:+r>=+u?n:n-1}function zZe(t,e){const r=yx(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=LX(t,e),a=Wn(e?.in||t,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),tp(a,e)}function O5(t,e){const r=Gt(t,e?.in),n=+tp(r,e)-+zZe(r,e);return Math.round(n/t1e)+1}function si(t,e){const r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}const jm={y(t,e){const r=t.getFullYear(),n=r>0?r:1-r;return si(e==="yy"?n%100:n,e.length)},M(t,e){const r=t.getMonth();return e==="M"?String(r+1):si(r+1,2)},d(t,e){return si(t.getDate(),e.length)},a(t,e){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(t,e){return si(t.getHours()%12||12,e.length)},H(t,e){return si(t.getHours(),e.length)},m(t,e){return si(t.getMinutes(),e.length)},s(t,e){return si(t.getSeconds(),e.length)},S(t,e){const r=e.length,n=t.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return si(i,e.length)}},SS={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Woe={G:function(t,e,r){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){const n=t.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return jm.y(t,e)},Y:function(t,e,r,n){const i=LX(t,n),a=i>0?i:1-i;if(e==="YY"){const o=a%100;return si(o,2)}return e==="Yo"?r.ordinalNumber(a,{unit:"year"}):si(a,e.length)},R:function(t,e){const r=n1e(t);return si(r,e.length)},u:function(t,e){const r=t.getFullYear();return si(r,e.length)},Q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return si(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return si(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){const n=t.getMonth();switch(e){case"M":case"MM":return jm.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return si(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){const i=O5(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):si(i,e.length)},I:function(t,e,r){const n=bI(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):si(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):jm.d(t,e)},D:function(t,e,r){const n=jZe(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):si(n,e.length)},E:function(t,e,r){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){const i=t.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return si(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){const i=t.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return si(a,e.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){const n=t.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return si(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,r){const n=t.getHours();let i;switch(n===12?i=SS.noon:n===0?i=SS.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,r){const n=t.getHours();let i;switch(n>=17?i=SS.evening:n>=12?i=SS.afternoon:n>=4?i=SS.morning:i=SS.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return jm.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):jm.H(t,e)},K:function(t,e,r){const n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):si(n,e.length)},k:function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):si(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):jm.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):jm.s(t,e)},S:function(t,e){return jm.S(t,e)},X:function(t,e,r){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return $oe(n);case"XXXX":case"XX":return __(n);default:return __(n,":")}},x:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"x":return $oe(n);case"xxxx":case"xx":return __(n);default:return __(n,":")}},O:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Yoe(n,":");default:return"GMT"+__(n,":")}},z:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Yoe(n,":");default:return"GMT"+__(n,":")}},t:function(t,e,r){const n=Math.trunc(+t/1e3);return si(n,e.length)},T:function(t,e,r){return si(+t,e.length)}};function Yoe(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),a=n%60;return a===0?r+String(i):r+String(i)+e+si(a,2)}function $oe(t,e){return t%60===0?(t>0?"-":"+")+si(Math.abs(t)/60,2):__(t,e)}function __(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),i=si(Math.trunc(n/60),2),a=si(n%60,2);return r+i+e+a}const Zoe=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},s1e=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},VZe=(t,e)=>{const r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Zoe(t,e);let a;switch(n){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",Zoe(n,e)).replace("{{time}}",s1e(i,e))},h7={p:s1e,P:VZe},GZe=/^D+$/,KZe=/^Y+$/,WZe=["D","DD","YY","YYYY"];function YZe(t){return GZe.test(t)}function $Ze(t){return KZe.test(t)}function ZZe(t,e,r){const n=XZe(t,e,r);if(console.warn(n),WZe.includes(t))throw new RangeError(n)}function XZe(t,e,r){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const qZe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,JZe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eXe=/^'([^]*?)'?$/,tXe=/''/g,rXe=/[a-zA-Z]/;function py(t,e,r){const n=yx(),i=r?.locale??n.locale??I_,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Gt(t,r?.in);if(!AT(s))throw new RangeError("Invalid time value");let l=e.match(JZe).map(c=>{const f=c[0];if(f==="p"||f==="P"){const d=h7[f];return d(c,i.formatLong)}return c}).join("").match(qZe).map(c=>{if(c==="''")return{isToken:!1,value:"'"};const f=c[0];if(f==="'")return{isToken:!1,value:nXe(c)};if(Woe[f])return{isToken:!0,value:c};
102if(f.match(rXe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:c}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(c=>{if(!c.isToken)return c.value;const f=c.value;(!r?.useAdditionalWeekYearTokens&&$Ze(f)||!r?.useAdditionalDayOfYearTokens&&YZe(f))&&ZZe(f,e,String(t));const d=Woe[f[0]];return d(s,f,i.localize,u)}).join("")}function nXe(t){const e=t.match(eXe);return e?e[1].replace(tXe,"'"):t}function Xoe(t,e){return Gt(t,e?.in).getDate()}function iXe(t,e){return Gt(t,e?.in).getDay()}function aXe(t,e){const r=Gt(t,e?.in),n=r.getFullYear(),i=r.getMonth(),a=Wn(r,0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()}function oXe(){return Object.assign({},yx())}function ul(t,e){return Gt(t,e?.in).getHours()}function sXe(t,e){const r=Gt(t,e?.in).getDay();return r===0?7:r}function cl(t,e){return Gt(t,e?.in).getMinutes()}function Jl(t,e){return Gt(t,e?.in).getMonth()}function My(t){return Gt(t).getSeconds()}function A7(t){return+Gt(t)}function on(t,e){return Gt(t,e?.in).getFullYear()}function zA(t,e){return+Gt(t)>+Gt(e)}function eh(t,e){return+Gt(t)<+Gt(e)}function lXe(t,e){return+Gt(t)==+Gt(e)}function uXe(t,e){const r=cXe(e)?new e(0):Wn(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}function cXe(t){return typeof t=="function"&&t.prototype?.constructor===t}const fXe=10;class l1e{subPriority=0;validate(e,r){return!0}}class dXe extends l1e{constructor(e,r,n,i,a){super(),this.value=e,this.validateValue=r,this.setValue=n,this.priority=i,a&&(this.subPriority=a)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,n){return this.setValue(e,r,this.value,n)}}class hXe extends l1e{priority=fXe;subPriority=-1;constructor(e,r){super(),this.context=e||(n=>Wn(r,n))}set(e,r){return r.timestampIsSet?e:Wn(e,uXe(e,this.context))}}let $n=class{run(e,r,n,i){const a=this.parse(e,r,n,i);return a?{setter:new dXe(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,r,n){return!0}};class AXe extends $n{priority=140;parse(e,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,r,n){return r.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const ja={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},BA={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function za(t,e){return t&&{value:e(t.value),rest:t.rest}}function da(t,e){const r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function DA(t,e){const r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};const n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(i*I5+a*R5+o*tZe),rest:e.slice(r[0].length)}}function u1e(t){return da(ja.anyDigitsSigned,t)}function Ea(t,e){switch(t){case 1:return da(ja.singleDigit,e);case 2:return da(ja.twoDigits,e);case 3:return da(ja.threeDigits,e);case 4:return da(ja.fourDigits,e);default:return da(new RegExp("^\\d{1,"+t+"}"),e)}}function t3(t,e){switch(t){case 1:return da(ja.singleDigitSigned,e);case 2:return da(ja.twoDigitsSigned,e);case 3:return da(ja.threeDigitsSigned,e);case 4:return da(ja.fourDigitsSigned,e);default:return da(new RegExp("^-?\\d{1,"+t+"}"),e)}}function RX(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function c1e(t,e){const r=e>0,n=r?e:1-e;let i;if(n<=50)i=t||100;
102else{const a=n+50,o=Math.trunc(a/100)*100,s=t>=a%100;i=t+o-(s?100:0)}return r?i:1-i}function f1e(t){return t%400===0||t%4===0&&t%100!==0}class pXe extends $n{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,n){const i=a=>({year:a,isTwoDigitYear:r==="yy"});switch(r){case"y":return za(Ea(4,e),i);case"yo":return za(n.ordinalNumber(e,{unit:"year"}),i);default:return za(Ea(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n){const i=e.getFullYear();if(n.isTwoDigitYear){const o=c1e(n.year,i);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const a=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class vXe extends $n{priority=130;parse(e,r,n){const i=a=>({year:a,isTwoDigitYear:r==="YY"});switch(r){case"Y":return za(Ea(4,e),i);case"Yo":return za(n.ordinalNumber(e,{unit:"year"}),i);default:return za(Ea(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,i){const a=LX(e,i);if(n.isTwoDigitYear){const s=c1e(n.year,a);return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),tp(e,i)}const o=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(o,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),tp(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class gXe extends $n{priority=130;parse(e,r){return t3(r==="R"?4:r.length,e)}set(e,r,n){const i=Wn(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),Pb(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class mXe extends $n{priority=130;parse(e,r){return t3(r==="u"?4:r.length,e)}set(e,r,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class yXe extends $n{priority=120;parse(e,r,n){switch(r){case"Q":case"QQ":return Ea(r.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class wXe extends $n{priority=120;parse(e,r,n){switch(r){case"q":case"qq":return Ea(r.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class _Xe extends $n{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,n){const i=a=>a-1;switch(r){case"M":return za(da(ja.month,e),i);case"MM":return za(Ea(2,e),i);case"Mo":return za(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}class bXe extends $n{priority=110;parse(e,r,n){const i=a=>a-1;switch(r){case"L":return za(da(ja.month,e),i);case"LL":return za(Ea(2,e),i);case"Lo":return za(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function xXe(t,e,r){const n=Gt(t,r?.in),i=O5(n,r)-e;return n.setDate(n.getDate()-i*7),Gt(n,r?.in)}class SXe extends $n{priority=100;parse(e,r,n){switch(r){case"w":return da(ja.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Ea(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,i){return tp(xXe(e,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function CXe(t,e,r){const n=Gt(t,r?.in),i=bI(n,r)-e;return n.setDate(n.getDate()-i*7),n}class TXe extends $n{priority=100;parse(e,r,n){switch(r){case"I":return da(ja.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Ea(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return Pb(CXe(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const EXe=[31,28,31,30,31,30,31,31,30,31,30,31],BXe=[31,29,31,30,31,30,31,31,30,31,30,31];class DXe extends $n{priority=90;subPriority=1;parse(e,r,n){switch(r){case"d":return da(ja.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Ea(r.length,e)}}validate(e,r){const n=e.getFullYear(),i=f1e(n),a=e.getMonth();return i?r>=1&&r<=BXe[a]:r>=1&&r<=EXe[a]}set(e,r,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class MXe extends $n{priority=90;subpriority=1;parse(e,r,n){switch(r){case"D":case"DD":return da(ja.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Ea(r.length,e)}}validate(e,r){const n=e.getFullYear();return f1e(n)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function IX(t,e,r){const n=yx(),i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Gt(t,r?.in),o=a.getDay(),l=(e%7+7)%7,u=7-i,c=e<0||e>6?e-(o+u)%7:(l+u)%7-(o+u)%7;return Kf(a,c,r)}class LXe extends $n{priority=90;parse(e,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=IX(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class RXe extends $n{priority=90;parse(e,r,n,i){const a=o=>{const s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(r){case"e":case"ee":return za(Ea(r.length,e),a);case"eo":return za(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=IX(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class IXe extends $n{priority=90;parse(e,r,n,i){const a=o=>{const s=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+s};switch(r){case"c":case"cc":return za(Ea(r.length,e),a);case"co":return za(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=IX(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function OXe(t,e,r){const n=Gt(t,r?.in),i=sXe(n,r),a=e-i;return Kf(n,a,r)}class PXe extends $n{priority=90;parse(e,r,n){const i=a=>a===0?7:a;switch(r){case"i":case"ii":return Ea(r.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return za(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return za(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return za(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);default:return za(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,r){return r>=1&&r<=7}set(e,r,n){return e=OXe(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class kXe extends $n{priority=80;parse(e,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(RX(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class NXe extends $n{priority=80;
102parse(e,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(RX(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class FXe extends $n{priority=80;parse(e,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(RX(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class UXe extends $n{priority=70;parse(e,r,n){switch(r){case"h":return da(ja.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ea(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,n){const i=e.getHours()>=12;return i&&n<12?e.setHours(n+12,0,0,0):!i&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class HXe extends $n{priority=70;parse(e,r,n){switch(r){case"H":return da(ja.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ea(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class QXe extends $n{priority=70;parse(e,r,n){switch(r){case"K":return da(ja.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ea(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class jXe extends $n{priority=70;parse(e,r,n){switch(r){case"k":return da(ja.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ea(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,n){const i=n<=24?n%24:n;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class zXe extends $n{priority=60;parse(e,r,n){switch(r){case"m":return da(ja.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Ea(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]}class VXe extends $n{priority=50;parse(e,r,n){switch(r){case"s":return da(ja.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Ea(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]}class GXe extends $n{priority=30;parse(e,r){const n=i=>Math.trunc(i*Math.pow(10,-r.length+3));return za(Ea(r.length,e),n)}set(e,r,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]}class KXe extends $n{priority=10;parse(e,r){switch(r){case"X":return DA(BA.basicOptionalMinutes,e);case"XX":return DA(BA.basic,e);case"XXXX":return DA(BA.basicOptionalSeconds,e);case"XXXXX":return DA(BA.extendedOptionalSeconds,e);default:return DA(BA.extended,e)}}set(e,r,n){return r.timestampIsSet?e:Wn(e,e.getTime()-q4(e)-n)}incompatibleTokens=["t","T","x"]}class WXe extends $n{priority=10;parse(e,r){switch(r){case"x":return DA(BA.basicOptionalMinutes,e);case"xx":return DA(BA.basic,e);case"xxxx":return DA(BA.basicOptionalSeconds,e);case"xxxxx":return DA(BA.extendedOptionalSeconds,e);default:return DA(BA.extended,e)}}set(e,r,n){return r.timestampIsSet?e:Wn(e,e.getTime()-q4(e)-n)}incompatibleTokens=["t","T","X"]}class YXe extends $n{priority=40;parse(e){return u1e(e)}set(e,r,n){return[Wn(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class $Xe extends $n{priority=20;parse(e){return u1e(e)}set(e,r,n){return[Wn(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}const ZXe={G:new AXe,y:new pXe,Y:new vXe,R:new gXe,u:new mXe,Q:new yXe,q:new wXe,M:new _Xe,L:new bXe,w:new SXe,I:new TXe,d:new DXe,D:new MXe,E:new LXe,e:new RXe,c:new IXe,i:new PXe,a:new kXe,b:new NXe,B:new FXe,h:new UXe,H:new HXe,K:new QXe,k:new jXe,m:new zXe,s:new VXe,S:new GXe,X:new KXe,x:new WXe,t:new YXe,T:new $Xe},XXe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qXe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JXe=/^'([^]*?)'?$/,eqe=/''/g,tqe=/\S/,rqe=/[a-zA-Z]/;
102function nqe(t,e,r,n){const i=()=>Wn(n?.in||r,NaN),a=oXe(),o=n?.locale??a.locale??I_,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!e)return t?i():Gt(r,n?.in);const u={firstWeekContainsDate:s,weekStartsOn:l,locale:o},c=[new hXe(n?.in,r)],f=e.match(qXe).map(m=>{const y=m[0];if(y in h7){const b=h7[y];return b(m,o.formatLong)}return m}).join("").match(XXe),d=[];for(let m of f){const y=m[0],b=ZXe[y];if(b){const{incompatibleTokens:x}=b;if(Array.isArray(x)){const B=d.find(R=>x.includes(R.token)||R.token===y);if(B)throw new RangeError(`The format string mustn't contain \`${B.fullToken}\` and \`${m}\` at the same time`)}else if(b.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);d.push({token:y,fullToken:m});const T=b.run(t,m,o.match,u);if(!T)return i();c.push(T.setter),t=T.rest}else{if(y.match(rqe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(m==="''"?m="'":y==="'"&&(m=iqe(m)),t.indexOf(m)===0)t=t.slice(m.length);else return i()}}if(t.length>0&&tqe.test(t))return i();const A=c.map(m=>m.priority).sort((m,y)=>y-m).filter((m,y,b)=>b.indexOf(m)===y).map(m=>c.filter(y=>y.priority===m).sort((y,b)=>b.subPriority-y.subPriority)).map(m=>m[0]);let p=Gt(r,n?.in);if(isNaN(+p))return i();const g={};for(const m of A){if(!m.validate(p,u))return i();const y=m.set(p,g,u);Array.isArray(y)?(p=y[0],Object.assign(g,y[1])):p=y}return p}function iqe(t){return t.match(JXe)[1].replace(eqe,"'")}function d1e(t,e,r){const[n,i]=dp(r?.in,t,e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}function aqe(t,e,r){const[n,i]=dp(r?.in,t,e);return+d7(n)==+d7(i)}function h1e(t,e,r){const[n,i]=dp(r?.in,t,e);return n.getFullYear()===i.getFullYear()}
102function ZL(t,e,r){const n=+Gt(t,r?.in),[i,a]=[+Gt(e.start,r?.in),+Gt(e.end,r?.in)].sort((o,s)=>o-s);return n>=i&&n<=a}function oqe(t,e,r){return Kf(t,-1,r)}function sqe(t,e){const r=()=>Wn(e?.in,NaN),i=fqe(t);let a;if(i.date){const u=dqe(i.date,2);a=hqe(u.restDateString,u.year)}if(!a||isNaN(+a))return r();const o=+a;let s=0,l;if(i.time&&(s=Aqe(i.time),isNaN(s)))return r();if(i.timezone){if(l=pqe(i.timezone),isNaN(l))return r()}else{const u=new Date(o+s),c=Gt(0,e?.in);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return Gt(o+s+l,e?.in)}const jk={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},lqe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,uqe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,cqe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fqe(t){const e={},r=t.split(jk.dateTimeDelimiter);let n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],jk.timeZoneDelimiter.test(e.date)&&(e.date=t.split(jk.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){const i=jk.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}function dqe(t,e){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((n[1]||n[2]).length)}}function hqe(t,e){if(e===null)return new Date(NaN);const r=t.match(lqe);if(!r)return new Date(NaN);const n=!!r[4],i=dD(r[1]),a=dD(r[2])-1,o=dD(r[3]),s=dD(r[4]),l=dD(r[5])-1;if(n)return wqe(e,s,l)?vqe(e,s,l):new Date(NaN);{const u=new Date(0);return!mqe(e,a,o)||!yqe(e,i)?new Date(NaN):(u.setUTCFullYear(e,a,Math.max(i,o)),u)}}function dD(t){return t?parseInt(t):1}function Aqe(t){const e=t.match(uqe);if(!e)return NaN;const r=GV(e[1]),n=GV(e[2]),i=GV(e[3]);return _qe(r,n,i)?r*I5+n*R5+i*1e3:NaN}function GV(t){return t&&parseFloat(t.replace(",","."))||0}function pqe(t){if(t==="Z")return 0;const e=t.match(cqe);if(!e)return 0;const r=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return bqe(n,i)?r*(n*I5+i*R5):NaN}function vqe(t,e,r){const n=new Date(0);n.setUTCFullYear(t,0,4);const i=n.getUTCDay()||7,a=(e-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}const gqe=[31,null,31,30,31,30,31,31,30,31,30,31];function A1e(t){return t%400===0||t%4===0&&t%100!==0}function mqe(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(gqe[e]||(A1e(t)?29:28))}function yqe(t,e){return e>=1&&e<=(A1e(t)?366:365)}function wqe(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function _qe(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function bqe(t,e){return e>=0&&e<=59}function ju(t,e,r){const n=Gt(t,r?.in),i=n.getFullYear(),a=n.getDate(),o=Wn(t,0);o.setFullYear(i,e,15),o.setHours(0,0,0,0);const s=aXe(o);return n.setMonth(e,Math.min(a,s)),n}function xU(t,e,r){const n=Gt(t,r?.in);return n.setHours(e),n}function SU(t,e,r){const n=Gt(t,r?.in);return n.setMinutes(e),n}function hC(t,e,r){const n=Gt(t,r?.in),i=Math.trunc(n.getMonth()/3)+1,a=e-i;return ju(n,n.getMonth()+a*3)}function CU(t,e,r){const n=Gt(t,r?.in);return n.setSeconds(e),n}function Xd(t,e,r){const n=Gt(t,r?.in);return isNaN(+n)?Wn(t,NaN):(n.setFullYear(e),n)}function fb(t,e,r){return ed(t,-e,r)}function p1e(t,e,r){return TX(t,-1,r)}function qoe(t,e,r){return $L(t,-1,r)}function Jy(t,e,r){return Wf(t,-e,r)}const Joe=5,xqe=4;function Sqe(t,e){const r=e.startOfMonth(t),n=r.getDay()>0?r.getDay():7,i=e.addDays(t,-n+1),a=e.addDays(i,Joe*7-1);return e.getMonth(t)===e.getMonth(a)?Joe:xqe}function v1e(t,e){const r=e.startOfMonth(t),n=r.getDay();return n===1?r:n===0?e.addDays(r,-6):e.addDays(r,-1*(n-1))}function Cqe(t,e){const r=v1e(t,e),n=Sqe(t,e);return e.addDays(r,n*7-1)}const g1e={...I_,labels:{labelDayButton:(t,e,r,n)=>{let i;n&&typeof n.format=="function"?i=n.format.bind(n):i=(o,s)=>py(o,s,{locale:I_,...r});let a=i(t,"PPPP");return e.today&&(a=`Today, ${a}`),e.selected&&(a=`${a}, selected`),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:t=>`Week ${t}`,labelYearDropdown:"Choose the Year",labelGrid:(t,e,r)=>{let n;return r&&typeof r.format=="function"?n=r.format.bind(r):n=(i,a)=>py(i,a,{locale:I_,...e}),n(t,"LLLL yyyy")},labelGridcell:(t,e,r,n)=>{let i;n&&typeof n.format=="function"?i=n.format.bind(n):i=(o,s)=>py(o,s,{locale:I_,...r});let a=i(t,"PPPP");return e?.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(t,e,r)=>{let n;return r&&typeof r.format=="function"?n=r.format.bind(r):n=(i,a)=>py(i,a,{locale:I_,...e}),n(t,"cccc")}}};class Qc{constructor(e,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?hl.tz(this.options.timeZone):new this.Date,this.newDate=(n,i,a)=>this.overrides?.newDate?this.overrides.newDate(n,i,a):this.options.timeZone?new hl(n,i,a,this.options.timeZone):new Date(n,i,a),this.addDays=(n,i)=>this.overrides?.addDays?this.overrides.addDays(n,i):Kf(n,i),this.addMonths=(n,i)=>this.overrides?.addMonths?this.overrides.addMonths(n,i):ed(n,i),this.addWeeks=(n,i)=>
102this.overrides?.addWeeks?this.overrides.addWeeks(n,i):$L(n,i),this.addYears=(n,i)=>this.overrides?.addYears?this.overrides.addYears(n,i):Wf(n,i),this.differenceInCalendarDays=(n,i)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,i):qy(n,i),this.differenceInCalendarMonths=(n,i)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,i):pT(n,i),this.eachMonthOfInterval=n=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):sZe(n),this.eachYearOfInterval=n=>{const i=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(n):lZe(n),a=new Set(i.map(s=>this.getYear(s)));if(a.size===i.length)return i;const o=[];return a.forEach(s=>{o.push(new Date(s,0,1))}),o},this.endOfBroadcastWeek=n=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):Cqe(n,this),this.endOfISOWeek=n=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(n):uZe(n),this.endOfMonth=n=>this.overrides?.endOfMonth?this.overrides.endOfMonth(n):EX(n),this.endOfWeek=(n,i)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(n,i):MX(n,this.options),this.endOfYear=n=>this.overrides?.endOfYear?this.overrides.endOfYear(n):DX(n),this.format=(n,i,a)=>{const o=this.overrides?.format?this.overrides.format(n,i,this.options):py(n,i,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(o):o},this.getISOWeek=n=>this.overrides?.getISOWeek?this.overrides.getISOWeek(n):bI(n),this.getMonth=(n,i)=>this.overrides?.getMonth?this.overrides.getMonth(n,this.options):Jl(n,this.options),this.getYear=(n,i)=>this.overrides?.getYear?this.overrides.getYear(n,this.options):on(n,this.options),this.getWeek=(n,i)=>this.overrides?.getWeek?this.overrides.getWeek(n,this.options):O5(n,this.options),this.isAfter=(n,i)=>this.overrides?.isAfter?this.overrides.isAfter(n,i):zA(n,i),this.isBefore=(n,i)=>this.overrides?.isBefore?this.overrides.isBefore(n,i):eh(n,i),this.isDate=n=>this.overrides?.isDate?this.overrides.isDate(n):uh(n),this.isSameDay=(n,i)=>this.overrides?.isSameDay?this.overrides.isSameDay(n,i):i1e(n,i),this.isSameMonth=(n,i)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(n,i):d1e(n,i),this.isSameYear=(n,i)=>this.overrides?.isSameYear?this.overrides.isSameYear(n,i):h1e(n,i),this.max=n=>this.overrides?.max?this.overrides.max(n):c7(n),this.min=n=>this.overrides?.min?this.overrides.min(n):f7(n),this.setMonth=(n,i)=>this.overrides?.setMonth?this.overrides.setMonth(n,i):ju(n,i),this.setYear=(n,i)=>this.overrides?.setYear?this.overrides.setYear(n,i):Xd(n,i),this.startOfBroadcastWeek=(n,i)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):v1e(n,this),this.startOfDay=n=>this.overrides?.startOfDay?this.overrides.startOfDay(n):Xy(n),this.startOfISOWeek=n=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(n):Pb(n),this.startOfMonth=n=>this.overrides?.startOfMonth?this.overrides.startOfMonth(n):BX(n),this.startOfWeek=(n,i)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(n,this.options):tp(n,this.options),this.startOfYear=n=>this.overrides?.startOfYear?this.overrides.startOfYear(n):_I(n),this.options={locale:g1e,...e},this.overrides=r}getDigitMap(){const{numerals:e="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let i=0;i<10;i++)n[i.toString()]=r.format(i);return n}replaceDigits(e){const r=this.getDigitMap();return e.replace(/\d/g,n=>r[n]||n)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&Qc.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:r,timeZone:n,numerals:i}=this.options,a=r?.code;if(a&&Qc.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:n,numberingSystem:i}).format(e)}catch{}const o=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(e,o)}}Qc.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const hp=new Qc;class m1e{constructor(e,r,n=hp){this.date=e,this.displayMonth=r,this.outside=!!(r&&!n.isSameMonth(e,r)),this.dateLib=n,this.isoDate=n.format(e,"yyyy-MM-dd"),this.displayMonthId=n.format(r,"yyyy-MM"),this.dateMonthId=n.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}
102class Tqe{constructor(e,r){this.date=e,this.weeks=r}}class Eqe{constructor(e,r){this.days=r,this.weekNumber=e}}function Bqe(t){return ue.createElement("button",{...t})}function Dqe(t){return ue.createElement("span",{...t})}function Mqe(t){const{size:e=24,orientation:r="left",className:n}=t;return ue.createElement("svg",{className:n,width:e,height:e,viewBox:"0 0 24 24"},r==="up"&&ue.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),r==="down"&&ue.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),r==="left"&&ue.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),r==="right"&&ue.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Lqe(t){const{day:e,modifiers:r,...n}=t;return ue.createElement("td",{...n})}function Rqe(t){const{day:e,modifiers:r,...n}=t,i=ue.useRef(null);return ue.useEffect(()=>{r.focused&&i.current?.focus()},[r.focused]),ue.createElement("button",{ref:i,...n})}var tr;(function(t){t.Root="root",t.Chevron="chevron",t.Day="day",t.DayButton="day_button",t.CaptionLabel="caption_label",t.Dropdowns="dropdowns",t.Dropdown="dropdown",t.DropdownRoot="dropdown_root",t.Footer="footer",t.MonthGrid="month_grid",t.MonthCaption="month_caption",t.MonthsDropdown="months_dropdown",t.Month="month",t.Months="months",t.Nav="nav",t.NextMonthButton="button_next",t.PreviousMonthButton="button_previous",t.Week="week",t.Weeks="weeks",t.Weekday="weekday",t.Weekdays="weekdays",t.WeekNumber="week_number",t.WeekNumberHeader="week_number_header",t.YearsDropdown="years_dropdown"})(tr||(tr={}));var ca;(function(t){t.disabled="disabled",t.hidden="hidden",t.outside="outside",t.focused="focused",t.today="today"})(ca||(ca={}));var th;(function(t){t.range_end="range_end",t.range_middle="range_middle",t.range_start="range_start",t.selected="selected"})(th||(th={}));var Sc;(function(t){t.weeks_before_enter="weeks_before_enter",t.weeks_before_exit="weeks_before_exit",t.weeks_after_enter="weeks_after_enter",t.weeks_after_exit="weeks_after_exit",t.caption_after_enter="caption_after_enter",t.caption_after_exit="caption_after_exit",t.caption_before_enter="caption_before_enter",t.caption_before_exit="caption_before_exit"})(Sc||(Sc={}));function Iqe(t){const{options:e,className:r,components:n,classNames:i,...a}=t,o=[i[tr.Dropdown],r].join(" "),s=e?.find(({value:l})=>l===a.value);return ue.createElement("span",{"data-disabled":a.disabled,className:i[tr.DropdownRoot]},ue.createElement(n.Select,{className:o,...a},e?.map(({value:l,label:u,disabled:c})=>ue.createElement(n.Option,{key:l,value:l,disabled:c},u))),ue.createElement("span",{className:i[tr.CaptionLabel],"aria-hidden":!0},s?.label,ue.createElement(n.Chevron,{orientation:"down",size:18,className:i[tr.Chevron]})))}function Oqe(t){return ue.createElement("div",{...t})}function Pqe(t){return ue.createElement("div",{...t})}function kqe(t){const{calendarMonth:e,displayIndex:r,...n}=t;return ue.createElement("div",{...n},t.children)}function Nqe(t){const{calendarMonth:e,displayIndex:r,...n}=t;return ue.createElement("div",{...n})}function Fqe(t){return ue.createElement("table",{...t})}function Uqe(t){return ue.createElement("div",{...t})}const y1e=H.createContext(void 0);function xI(){const t=H.useContext(y1e);if(t===void 0)throw new Error("useDayPicker() must be used within a custom component.");return t}function Hqe(t){const{components:e}=xI();return ue.createElement(e.Dropdown,{...t})}function Qqe(t){const{onPreviousClick:e,onNextClick:r,previousMonth:n,nextMonth:i,...a}=t,{components:o,classNames:s,labels:{labelPrevious:l,labelNext:u}}=xI(),c=H.useCallback(d=>{i&&r?.(d)},[i,r]),f=H.useCallback(d=>{n&&e?.(d)},[n,e]);return ue.createElement("nav",{...a},ue.createElement(o.PreviousMonthButton,{type:"button",className:s[tr.PreviousMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":l(n),onClick:f},ue.createElement(o.Chevron,{disabled:n?void 0:!0,className:s[tr.Chevron],orientation:"left"})),ue.createElement(o.NextMonthButton,{type:"button",className:s[tr.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":u(i),onClick:c},ue.createElement(o.Chevron,{disabled:i?void 0:!0,orientation:"right",className:s[tr.Chevron]}
vendor: 4,391 bytes, line 102
102)))}function jqe(t){const{components:e}=xI();return ue.createElement(e.Button,{...t})}function zqe(t){return ue.createElement("option",{...t})}function Vqe(t){const{components:e}=xI();return ue.createElement(e.Button,{...t})}function Gqe(t){const{rootRef:e,...r}=t;return ue.createElement("div",{...r,ref:e})}function Kqe(t){return ue.createElement("select",{...t})}function Wqe(t){const{week:e,...r}=t;return ue.createElement("tr",{...r})}function Yqe(t){return ue.createElement("th",{...t})}function $qe(t){return ue.createElement("thead",{"aria-hidden":!0},ue.createElement("tr",{...t}))}function Zqe(t){const{week:e,...r}=t;return ue.createElement("th",{...r})}function Xqe(t){return ue.createElement("th",{...t})}function qqe(t){return ue.createElement("tbody",{...t})}function Jqe(t){const{components:e}=xI();return ue.createElement(e.Dropdown,{...t})}const eJe=Object.freeze(Object.defineProperty({__proto__:null,Button:Bqe,CaptionLabel:Dqe,Chevron:Mqe,Day:Lqe,DayButton:Rqe,Dropdown:Iqe,DropdownNav:Oqe,Footer:Pqe,Month:kqe,MonthCaption:Nqe,MonthGrid:Fqe,Months:Uqe,MonthsDropdown:Hqe,Nav:Qqe,NextMonthButton:jqe,Option:zqe,PreviousMonthButton:Vqe,Root:Gqe,Select:Kqe,Week:Wqe,WeekNumber:Zqe,WeekNumberHeader:Xqe,Weekday:Yqe,Weekdays:$qe,Weeks:qqe,YearsDropdown:Jqe},Symbol.toStringTag,{value:"Module"}));function Pv(t,e,r=!1,n=hp){let{from:i,to:a}=t;const{differenceInCalendarDays:o,isSameDay:s}=n;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(e,i)>=(r?1:0)&&o(a,e)>=(r?1:0)):!r&&a?s(a,e):!r&&i?s(i,e):!1}function OX(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function P5(t){return!!(t&&typeof t=="object"&&"from"in t)}function PX(t){return!!(t&&typeof t=="object"&&"after"in t)}function kX(t){return!!(t&&typeof t=="object"&&"before"in t)}function w1e(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function _1e(t,e){return Array.isArray(t)&&t.every(e.isDate)}function kv(t,e,r=hp){const n=Array.isArray(e)?e:[e],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=r;return n.some(s=>{if(typeof s=="boolean")return s;if(r.isDate(s))return i(t,s);if(_1e(s,r))return s.some(l=>i(t,l));if(P5(s))return Pv(s,t,!1,r);if(w1e(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(t.getDay()):s.dayOfWeek===t.getDay();if(OX(s)){const l=a(s.before,t),u=a(s.after,t),c=l>0,f=u<0;return o(s.before,s.after)?f&&c:c||f}return PX(s)?a(t,s.after)>0:kX(s)?a(s.before,t)>0:typeof s=="function"?s(t):!1})}function tJe(t,e,r,n,i){const{disabled:a,hidden:o,modifiers:s,showOutsideDays:l,broadcastCalendar:u,today:c=i.today()}=e,{isSameDay:f,isSameMonth:d,startOfMonth:A,isBefore:p,endOfMonth:g,isAfter:m}=i,y=r&&A(r),b=n&&g(n),x={[ca.focused]:[],[ca.outside]:[],[ca.disabled]:[],[ca.hidden]:[],[ca.today]:[]},T={};for(const B of t){const{date:R,displayMonth:I}=B,N=!!(I&&!d(R,I)),F=!!(y&&p(R,y)),Q=!!(b&&m(R,b)),j=!!(a&&kv(R,a,i)),W=!!(o&&kv(R,o,i))||F||Q||!u&&!l&&N||u&&l===!1&&N,V=f(R,c);N&&x.outside.push(B),j&&x.disabled.push(B),W&&x.hidden.push(B),V&&x.today.push(B),s&&Object.keys(s).forEach(Y=>{const G=s?.[Y];G&&kv(R,G,i)&&(T[Y]?T[Y].push(B):T[Y]=[B])})}return B=>{const R={[ca.focused]:!1,[ca.disabled]:!1,[ca.hidden]:!1,[ca.outside]:!1,[ca.today]:!1},I={};for(const N in x){const F=x[N];R[N]=F.some(Q=>Q===B)}for(const N in T)I[N]=T[N].some(F=>F===B);return{...R,...I}}}function rJe(t,e,r={}){return Object.entries(t).filter(([,i])=>i===!0).reduce((i,[a])=>(r[a]?i.push(r[a]):e[ca[a]]?i.push(e[ca[a]]):e[th[a]]&&i.push(e[th[a]]),i),[e[tr.Day]])}function nJe(t){return{...eJe,...t}}function iJe(t){const e={"data-mode":t.mode??void 0,"data-required":"required"in t?t.required:void 0,"data-multiple-months":t.numberOfMonths&&t.numberOfMonths>1||void 0,"data-week-numbers":t.showWeekNumber||void 0,"data-broadcast-calendar":t.broadcastCalendar||void 0,"data-nav-layout":t.navLayout||void 0};return Object.entries(t).forEach(([r,n])=>{r.startsWith("data-")&&(e[r]=n)}),e}function aJe(){const t={};for(const e in tr)t[tr[e]]=`rdp-${tr[e]}`;for(const e in ca)t[ca[e]]=`rdp-${ca[e]}`;for(const e in th)t[th[e]]=`rdp-${th[e]}`;for(const e in Sc)t[Sc[e]]=`rdp-${Sc[e]}`;return t}function b1e(t,e,r){return(r??new Qc(e)).formatMonthYear(t)}const oJe=b1e;function sJe(t,e,r){return(r??new Qc(e)).format(t,"d")}function lJe(t,e=hp){return e.format(t,"LLLL")}function uJe(t,e,r){return(r??new Qc(e)).format(t,"cccccc")}function cJe(t,e=hp){return t<10?e.formatNumber(`0${t.toLocaleStr
102ing()}`):e.formatNumber(`${t.toLocaleString()}`)}function fJe(){return""}function x1e(t,e=hp){return e.format(t,"yyyy")}const dJe=x1e,hJe=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:b1e,formatDay:sJe,formatMonthCaption:oJe,formatMonthDropdown:lJe,formatWeekNumber:cJe,formatWeekNumberHeader:fJe,formatWeekdayName:uJe,formatYearCaption:dJe,formatYearDropdown:x1e},Symbol.toStringTag,{value:"Module"}));function AJe(t){return t?.formatMonthCaption&&!t.formatCaption&&(t.formatCaption=t.formatMonthCaption),t?.formatYearCaption&&!t.formatYearDropdown&&(t.formatYearDropdown=t.formatYearCaption),{...hJe,...t}}function NX(t,e,r,n){let i=(n??new Qc(r)).format(t,"PPPP");return e.today&&(i=`Today, ${i}`),e.selected&&(i=`${i}, selected`),i}const pJe=NX;function FX(t,e,r){return(r??new Qc(e)).formatMonthYear(t)}const vJe=FX;function S1e(t,e,r,n){let i=(n??new Qc(r)).format(t,"PPPP");return e?.today&&(i=`Today, ${i}`),i}function C1e(t){return"Choose the Month"}function T1e(){return""}const gJe="Go to the Next Month";function E1e(t,e){return gJe}function B1e(t){return"Go to the Previous Month"}function D1e(t,e,r){return(r??new Qc(e)).format(t,"cccc")}function M1e(t,e){return`Week ${t}`}function L1e(t){return"Week Number"}function R1e(t){return"Choose the Year"}const mJe=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:vJe,labelDay:pJe,labelDayButton:NX,labelGrid:FX,labelGridcell:S1e,labelMonthDropdown:C1e,labelNav:T1e,labelNext:E1e,labelPrevious:B1e,labelWeekNumber:M1e,labelWeekNumberHeader:L1e,labelWeekday:D1e,labelYearDropdown:R1e},Symbol.toStringTag,{value:"Module"})),jd=(t,e,r)=>e||(r?typeof r=="function"?r:(...n)=>r:t);function yJe(t,e){const r=e.locale?.labels??{};return{...mJe,...t??{},labelDayButton:jd(NX,t?.labelDayButton,r.labelDayButton),labelMonthDropdown:jd(C1e,t?.labelMonthDropdown,r.labelMonthDropdown),labelNext:jd(E1e,t?.labelNext,r.labelNext),labelPrevious:jd(B1e,t?.labelPrevious,r.labelPrevious),labelWeekNumber:jd(M1e,t?.labelWeekNumber,r.labelWeekNumber),labelYearDropdown:jd(R1e,t?.labelYearDropdown,r.labelYearDropdown),labelGrid:jd(FX,t?.labelGrid,r.labelGrid),labelGridcell:jd(S1e,t?.labelGridcell,r.labelGridcell),labelNav:jd(T1e,t?.labelNav,r.labelNav),labelWeekNumberHeader:jd(L1e,t?.labelWeekNumberHeader,r.labelWeekNumberHeader),labelWeekday:jd(D1e,t?.labelWeekday,r.labelWeekday)}}function wJe(t,e,r,n,i){const{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:l,getMonth:u}=i;return l({start:o(t),end:s(t)}).map(d=>{const A=n.formatMonthDropdown(d,i),p=u(d),g=e&&d<a(e)||r&&d>a(r)||!1;return{value:p,label:A,disabled:g}})}function _Je(t,e={},r={}){let n={...e?.[tr.Day]};return Object.entries(t).filter(([,i])=>i===!0).forEach(([i])=>{n={...n,...r?.[i]}}),n}function bJe(t,e,r,n){const i=n??t.today(),a=r?t.startOfBroadcastWeek(i,t):e?t.startOfISOWeek(i):t.startOfWeek(i),o=[];for(let s=0;s<7;s++){const l=t.addDays(a,s);o.push(l)}return o}function xJe(t,e,r,n,i=!1){if(!t||!e)return;const{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:l}=n,u=a(t),c=o(e),f=s({start:u,end:c});return i&&f.reverse(),f.map(d=>{const A=r.formatYearDropdown(d,n);return{value:l(d),label:A,disabled:!1}})}function SJe(t,e={}){const{weekStartsOn:r,locale:n}=e,i=r??n?.options?.weekStartsOn??0,a=s=>{const l=typeof s=="number"||typeof s=="string"?new Date(s):s;return new hl(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,t)},o=s=>{const l=a(s);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>a(hl.tz(t)),newDate:(s,l,u)=>new hl(s,l,u,12,0,0,t),startOfDay:s=>a(s),startOfWeek:(s,l)=>{const u=a(s),c=l?.weekStartsOn??i,f=(u.getDay()-c+7)%7;return u.setDate(u.getDate()-f),u},startOfISOWeek:s=>{const l=a(s),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:s=>{const l=a(s);return l.setDate(1),l},startOfYear:s=>{const l=a(s);return l.setMonth(0,1),l},endOfWeek:(s,l)=>{const u=a(s),d=(((l?.weekStartsOn??i)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+d),u},endOfISOWeek:s=>{const l=a(s),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:s=>{const l=a(s);return l.setMonth(l.getMonth()+1,0),l},endOfYear:s=>{const l=a(s);return l.setMonth(11,31),l},eachMonthOfInterval:s=>{const l=a(s.start),u=a(s.end),c=[],f=new hl(l.getFullYear(),l.getMonth(),1,12,0,0,t),d=u.getFullYear()*12+u.getMonth();for(;f.getFullYear()*12+f.getMonth()<=d;
vendor: 5,756 bytes, line 102
102)c.push(new hl(f,t)),f.setMonth(f.getMonth()+1,1);return c},addDays:(s,l)=>{const u=a(s);return u.setDate(u.getDate()+l),u},addWeeks:(s,l)=>{const u=a(s);return u.setDate(u.getDate()+l*7),u},addMonths:(s,l)=>{const u=a(s);return u.setMonth(u.getMonth()+l),u},addYears:(s,l)=>{const u=a(s);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:s=>{const l=a(s.start),u=a(s.end),c=[],f=new hl(l.getFullYear(),0,1,12,0,0,t);for(;f.getFullYear()<=u.getFullYear();)c.push(new hl(f,t)),f.setFullYear(f.getFullYear()+1,0,1);return c},getWeek:(s,l)=>{const u=o(s);return O5(u,{weekStartsOn:l?.weekStartsOn??i,firstWeekContainsDate:l?.firstWeekContainsDate??n?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const l=o(s);return bI(l)},differenceInCalendarDays:(s,l)=>{const u=o(s),c=o(l);return qy(u,c)},differenceInCalendarMonths:(s,l)=>{const u=o(s),c=o(l);return pT(u,c)}}}const SI=t=>t instanceof HTMLElement?t:null,KV=t=>[...t.querySelectorAll("[data-animated-month]")??[]],CJe=t=>SI(t.querySelector("[data-animated-month]")),WV=t=>SI(t.querySelector("[data-animated-caption]")),YV=t=>SI(t.querySelector("[data-animated-weeks]")),TJe=t=>SI(t.querySelector("[data-animated-nav]")),EJe=t=>SI(t.querySelector("[data-animated-weekdays]"));function BJe(t,e,{classNames:r,months:n,focused:i,dateLib:a}){const o=H.useRef(null),s=H.useRef(n),l=H.useRef(!1);H.useLayoutEffect(()=>{const u=s.current;if(s.current=n,!e||!t.current||!(t.current instanceof HTMLElement)||n.length===0||u.length===0||n.length!==u.length)return;const c=a.isSameMonth(n[0].date,u[0].date),f=a.isAfter(n[0].date,u[0].date),d=f?r[Sc.caption_after_enter]:r[Sc.caption_before_enter],A=f?r[Sc.weeks_after_enter]:r[Sc.weeks_before_enter],p=o.current,g=t.current.cloneNode(!0);if(g instanceof HTMLElement?(KV(g).forEach(x=>{if(!(x instanceof HTMLElement))return;const T=CJe(x);T&&x.contains(T)&&x.removeChild(T);const B=WV(x);B&&B.classList.remove(d);const R=YV(x);R&&R.classList.remove(A)}),o.current=g):o.current=null,l.current||c||i)return;const m=p instanceof HTMLElement?KV(p):[],y=KV(t.current);if(y?.every(b=>b instanceof HTMLElement)&&m&&m.every(b=>b instanceof HTMLElement)){l.current=!0,t.current.style.isolation="isolate";const b=TJe(t.current);b&&(b.style.zIndex="1"),y.forEach((x,T)=>{const B=m[T];if(!B)return;x.style.position="relative",x.style.overflow="hidden";const R=WV(x);R&&R.classList.add(d);const I=YV(x);I&&I.classList.add(A);const N=()=>{l.current=!1,t.current&&(t.current.style.isolation=""),b&&(b.style.zIndex=""),R&&R.classList.remove(d),I&&I.classList.remove(A),x.style.position="",x.style.overflow="",x.contains(B)&&x.removeChild(B)};B.style.pointerEvents="none",B.style.position="absolute",B.style.overflow="hidden",B.setAttribute("aria-hidden","true");const F=EJe(B);F&&(F.style.opacity="0");const Q=WV(B);Q&&(Q.classList.add(f?r[Sc.caption_before_exit]:r[Sc.caption_after_exit]),Q.addEventListener("animationend",N));const j=YV(B);j&&j.classList.add(f?r[Sc.weeks_before_exit]:r[Sc.weeks_after_exit]),x.insertBefore(B,x.firstChild)})}})}function DJe(t,e,r,n){const i=t[0],a=t[t.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:l}=r??{},{addDays:u,differenceInCalendarDays:c,differenceInCalendarMonths:f,endOfBroadcastWeek:d,endOfISOWeek:A,endOfMonth:p,endOfWeek:g,isAfter:m,startOfBroadcastWeek:y,startOfISOWeek:b,startOfWeek:x}=n,T=l?y(i,n):o?b(i):x(i),B=l?d(a):o?A(p(a)):g(p(a)),R=e&&(l?d(e):o?A(e):g(e)),I=R&&m(B,R)?R:B,N=c(I,T),F=f(a,i)+1,Q=[];for(let V=0;V<=N;V++){const Y=u(T,V);Q.push(Y)}const W=(l?35:42)*F;if(s&&Q.length<W){const V=W-Q.length;for(let Y=0;Y<V;Y++){const G=u(Q[Q.length-1],1);Q.push(G)}}return Q}function MJe(t){const e=[];return t.reduce((r,n)=>{const i=n.weeks.reduce((a,o)=>a.concat(o.days.slice()),e.slice());return r.concat(i.slice())},e.slice())}function LJe(t,e,r,n){const{numberOfMonths:i=1}=r,a=[];for(let o=0;o<i;o++){const s=n.addMonths(t,o);if(e&&s>e)break;a.push(s)}return a}function ese(t,e,r,n){const{month:i,defaultMonth:a,today:o=n.today(),numberOfMonths:s=1}=t;let l=i||a||o;const{differenceInCalendarMonths:u,addMonths:c,startOfMonth:f}=n;if(r&&u(r,l)<s-1){const d=-1*(s-1);l=c(r,d)}return e&&u(l,e)<0&&(l=e),f(l)}function RJe(t,e,r,n){const{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:l,getISOWeek:u,getWeek:c,startOfBroadcastWeek:f,startOfISOWeek:d,startOfWeek:A}=n,p=t.reduce((g,m)=>{const y=r.broadcastCalendar?f(m,n):r.ISOWeek?d(m):A(m),b=r.broadcastCalendar?a(m):r.ISOWeek?o(s(m)):l(s(m)),x=e.filter(I=>I>=y&&I<=b),T=r.broadcastCalendar?35:42;if(r.fixedWeeks&&x.length<T){const I=e.filter(N=>{const F=T-x.length;return N>b&&N<=i(b,F)});x.push(...I)}const B=x.reduce((I,N)=>{const F=r.ISOWeek?u(N):c(N),Q=I.find(W=>W.weekNumber===F),j=new m1e(N,m,n);return Q?Q.days.push(j):I.push(new Eqe(F,[j])),I},[]),R=new Tqe(m,B);return g.push(R),g},[]);return r.reverseMonths?p.reverse():p}function IJe(t,e){let{startMonth:r,endMonth:n}=t;const{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:l,endOfYear:u,newDate:c,today:f}=e,{fromYear:d,toYear:A,fromMonth:p,toMonth:g}=t;!r&&p&&(r=p),!r&&d&&(r=e.newDate(d,0,1)),!n&&g&&(n=g),!n&&A&&(n=c(A,11,31));const m=t.captionLayout==="dropdown"||t.captionLayout==="dropdown-years";return r?r=o(r):d?r=c(d,0,1):!r&&m&&(r=i(l(t.today??f(),-100))),n?n=s(n):A?n=c(A,11,31):!n&&m&&(n=u(t.today??f())),[r&&a(r),n&&a(n)]}function OJe(t,e,r,n){if(r.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:a=1}=r,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:l}=n,u=i?a:1,c=o(t);if(!e)return s(c,u);if(!(l(e,t)<a))return s(c,u)}function PJe(t,e,r,n){if(r.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:a}=r,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:l}=n,u=i?a??1:1,c=o(t);if(!e)return s(c,-u);
vendor: 4,421 bytes, line 102
102if(!(l(c,e)<=0))return s(c,-u)}function kJe(t){const e=[];return t.reduce((r,n)=>r.concat(n.weeks.slice()),e.slice())}function k5(t,e){const[r,n]=H.useState(t);return[e===void 0?r:e,n]}function NJe(t,e){const[r,n]=IJe(t,e),{startOfMonth:i,endOfMonth:a}=e,o=ese(t,r,n,e),[s,l]=k5(o,t.month?o:void 0);H.useEffect(()=>{const T=ese(t,r,n,e);l(T)},[t.timeZone]);const{months:u,weeks:c,days:f,previousMonth:d,nextMonth:A}=H.useMemo(()=>{const T=LJe(s,n,{numberOfMonths:t.numberOfMonths},e),B=DJe(T,t.endMonth?a(t.endMonth):void 0,{ISOWeek:t.ISOWeek,fixedWeeks:t.fixedWeeks,broadcastCalendar:t.broadcastCalendar},e),R=RJe(T,B,{broadcastCalendar:t.broadcastCalendar,fixedWeeks:t.fixedWeeks,ISOWeek:t.ISOWeek,reverseMonths:t.reverseMonths},e),I=kJe(R),N=MJe(R),F=PJe(s,r,t,e),Q=OJe(s,n,t,e);return{months:R,weeks:I,days:N,previousMonth:F,nextMonth:Q}},[e,s.getTime(),n?.getTime(),r?.getTime(),t.disableNavigation,t.broadcastCalendar,t.endMonth?.getTime(),t.fixedWeeks,t.ISOWeek,t.numberOfMonths,t.pagedNavigation,t.reverseMonths]),{disableNavigation:p,onMonthChange:g}=t,m=T=>c.some(B=>B.days.some(R=>R.isEqualTo(T))),y=T=>{if(p)return;let B=i(T);r&&B<i(r)&&(B=i(r)),n&&B>i(n)&&(B=i(n)),l(B),g?.(B)};return{months:u,weeks:c,days:f,navStart:r,navEnd:n,previousMonth:d,nextMonth:A,goToMonth:y,goToDay:T=>{m(T)||y(T.date)}}}var xA;(function(t){t[t.Today=0]="Today",t[t.Selected=1]="Selected",t[t.LastFocused=2]="LastFocused",t[t.FocusedModifier=3]="FocusedModifier"})(xA||(xA={}));function tse(t){return!t[ca.disabled]&&!t[ca.hidden]&&!t[ca.outside]}function FJe(t,e,r,n){let i,a=-1;for(const o of t){const s=e(o);tse(s)&&(s[ca.focused]&&a<xA.FocusedModifier?(i=o,a=xA.FocusedModifier):n?.isEqualTo(o)&&a<xA.LastFocused?(i=o,a=xA.LastFocused):r(o.date)&&a<xA.Selected?(i=o,a=xA.Selected):s[ca.today]&&a<xA.Today&&(i=o,a=xA.Today))}return i||(i=t.find(o=>tse(e(o)))),i}function UJe(t,e,r,n,i,a,o){const{ISOWeek:s,broadcastCalendar:l}=a,{addDays:u,addMonths:c,addWeeks:f,addYears:d,endOfBroadcastWeek:A,endOfISOWeek:p,endOfWeek:g,max:m,min:y,startOfBroadcastWeek:b,startOfISOWeek:x,startOfWeek:T}=o;let R={day:u,week:f,month:c,year:d,startOfWeek:I=>l?b(I,o):s?x(I):T(I),endOfWeek:I=>l?A(I):s?p(I):g(I)}[t](r,e==="after"?1:-1);return e==="before"&&n?R=m([n,R]):e==="after"&&i&&(R=y([i,R])),R}function I1e(t,e,r,n,i,a,o,s=0){if(s>365)return;const l=UJe(t,e,r.date,n,i,a,o),u=!!(a.disabled&&kv(l,a.disabled,o)),c=!!(a.hidden&&kv(l,a.hidden,o)),f=l,d=new m1e(l,f,o);return!u&&!c?d:I1e(t,e,d,n,i,a,o,s+1)}function HJe(t,e,r,n,i){const{autoFocus:a}=t,[o,s]=H.useState(),l=FJe(e.days,r,n||(()=>!1),o),[u,c]=H.useState(a?l:void 0);return{isFocusTarget:g=>!!l?.isEqualTo(g),setFocused:c,focused:u,blur:()=>{s(u),c(void 0)},moveFocus:(g,m)=>{if(!u)return;const y=I1e(g,m,u,e.navStart,e.navEnd,t,i);y&&(t.disableNavigation&&!e.days.some(x=>x.isEqualTo(y))||(e.goToDay(y),c(y)))}}}function QJe(t,e){const{selected:r,required:n,onSelect:i}=t,[a,o]=k5(r,i?r:void 0),s=i?r:a,{isSameDay:l}=e,u=A=>s?.some(p=>l(p,A))??!1,{min:c,max:f}=t;return{selected:s,select:(A,p,g)=>{let m=[...s??[]];if(u(A)){if(s?.length===c||n&&s?.length===1)return;m=s?.filter(y=>!l(y,A))}else s?.length===f?m=[A]:m=[...m,A];return i||o(m),i?.(m,A,p,g),m},isSelected:u}}function jJe(t,e,r=0,n=0,i=!1,a=hp){const{from:o,to:s}=e||{},{isSameDay:l,isAfter:u,isBefore:c}=a;let f;if(!o&&!s)f={from:t,to:r>0?void 0:t};else if(o&&!s)l(o,t)?r===0?f={from:o,to:t}:i?f={from:o,to:void 0}:f=void 0:c(t,o)?f={from:t,to:o}:f={from:o,to:t};else if(o&&s)if(l(o,t)&&l(s,t))i?f={from:o,to:s}:f=void 0;else if(l(o,t))f={from:o,to:r>0?void 0:t};else if(l(s,t))f={from:t,to:r>0?void 0:t};else if(c(t,o))f={from:t,to:s};else if(u(t,o))f={from:o,to:t};else if(u(t,s))f={from:o,to:t};else throw new Error("Invalid range");if(f?.from&&f?.to){const d=a.differenceInCalendarDays(f.to,f.from);n>0&&d>n?f={from:t,to:void 0}:r>1&&d<r&&(f={from:t,to:void 0})}return f}function zJe(t,e,r=hp){const n=Array.isArray(e)?e:[e];let i=t.from;const a=r.differenceInCalendarDays(t.to,t.from),o=Math.min(a,6);for(let s=0;s<=o;s++){if(n.includes(i.getDay()))return!0;i=r.addDays(i,1)}return!1}function rse(t,e,r=hp){return Pv(t,e.from,!1,r)||Pv(t,e.to,!1,r)||Pv(e,t.from,!1,r)||Pv(e,t.to,!1,r)}function VJe(t,e,r=hp){const n=Array.isArray(e)?e:[e];if(n.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:r.isDate(s)?Pv(t,s,!1,r):_1e(s,r)?s.some(l=>Pv(t,l,!1,r)):P5(s)?s.from&&s.to?rse(t,{from:s.from,to:s.to}
102,r):!1:w1e(s)?zJe(t,s.dayOfWeek,r):OX(s)?r.isAfter(s.before,s.after)?rse(t,{from:r.addDays(s.after,1),to:r.addDays(s.before,-1)},r):kv(t.from,s,r)||kv(t.to,s,r):PX(s)||kX(s)?kv(t.from,s,r)||kv(t.to,s,r):!1))return!0;const o=n.filter(s=>typeof s=="function");if(o.length){let s=t.from;const l=r.differenceInCalendarDays(t.to,t.from);for(let u=0;u<=l;u++){if(o.some(c=>c(s)))return!0;s=r.addDays(s,1)}}return!1}function GJe(t,e){const{disabled:r,excludeDisabled:n,resetOnSelect:i,selected:a,required:o,onSelect:s}=t,[l,u]=k5(a,s?a:void 0),c=s?a:l;return{selected:c,select:(A,p,g)=>{const{min:m,max:y}=t;let b;if(A){const x=c?.from,T=c?.to,B=!!x&&!!T,R=!!x&&!!T&&e.isSameDay(x,T)&&e.isSameDay(A,x);i&&(B||!c?.from)?!o&&R?b=void 0:b={from:A,to:void 0}:b=jJe(A,c,m,y,o,e)}return n&&r&&b?.from&&b.to&&VJe({from:b.from,to:b.to},r,e)&&(b.from=A,b.to=void 0),s||u(b),s?.(b,A,p,g),b},isSelected:A=>c&&Pv(c,A,!1,e)}}function KJe(t,e){const{selected:r,required:n,onSelect:i}=t,[a,o]=k5(r,i?r:void 0),s=i?r:a,{isSameDay:l}=e;return{selected:s,select:(f,d,A)=>{let p=f;return!n&&s&&s&&l(f,s)&&(p=void 0),i||o(p),i?.(p,f,d,A),p},isSelected:f=>s?l(s,f):!1}}function WJe(t,e){const r=KJe(t,e),n=QJe(t,e),i=GJe(t,e);switch(t.mode){case"single":return r;case"multiple":return n;case"range":return i;default:return}}function Lf(t,e){return t instanceof hl&&t.timeZone===e?t:new hl(t,e)}function CS(t,e,r){return Lf(t,e)}function nse(t,e,r){return typeof t=="boolean"||typeof t=="function"?t:t instanceof Date?CS(t,e):Array.isArray(t)?t.map(n=>n instanceof Date?CS(n,e):n):P5(t)?{...t,from:t.from?Lf(t.from,e):t.from,to:t.to?Lf(t.to,e):t.to}:OX(t)?{before:CS(t.before,e),after:CS(t.after,e)}:PX(t)?{after:CS(t.after,e)}:kX(t)?{before:CS(t.before,e)}:t}function $V(t,e,r){return t&&(Array.isArray(t)?t.map(n=>nse(n,e)):nse(t,e))}function O1e(t){let e=t;const r=e.timeZone;if(r&&(e={...t,timeZone:r},e.today&&(e.today=Lf(e.today,r)),e.month&&(e.month=Lf(e.month,r)),e.defaultMonth&&(e.defaultMonth=Lf(e.defaultMonth,r)),e.startMonth&&(e.startMonth=Lf(e.startMonth,r)),e.endMonth&&(e.endMonth=Lf(e.endMonth,r)),e.mode==="single"&&e.selected?e.selected=Lf(e.selected,r):e.mode==="multiple"&&e.selected?e.selected=e.selected?.map(Kt=>Lf(Kt,r)):e.mode==="range"&&e.selected&&(e.selected={from:e.selected.from?Lf(e.selected.from,r):e.selected.from,to:e.selected.to?Lf(e.selected.to,r):e.selected.to}),e.disabled!==void 0&&(e.disabled=$V(e.disabled,r)),e.hidden!==void 0&&(e.hidden=$V(e.hidden,r)),e.modifiers)){const Kt={};Object.keys(e.modifiers).forEach(un=>{Kt[un]=$V(e.modifiers?.[un],r)}),e.modifiers=Kt}const{components:n,formatters:i,labels:a,dateLib:o,locale:s,classNames:l}=H.useMemo(()=>{const Kt={...g1e,...e.locale},un=e.broadcastCalendar?1:e.weekStartsOn,ar=e.noonSafe&&e.timeZone?SJe(e.timeZone,{weekStartsOn:un,locale:Kt}):void 0,Yr=e.dateLib&&ar?{...ar,...e.dateLib}:e.dateLib??ar,aa=new Qc({locale:Kt,weekStartsOn:un,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},Yr);return{dateLib:aa,components:nJe(e.components),formatters:AJe(e.formatters),labels:yJe(e.labels,aa.options),locale:Kt,classNames:{...aJe(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.noonSafe,e.components,e.formatters,e.labels,e.classNames]);e.today||(e={...e,today:o.today()});const{captionLayout:u,mode:c,navLayout:f,numberOfMonths:d=1,onDayBlur:A,onDayClick:p,onDayFocus:g,onDayKeyDown:m,onDayMouseEnter:y,onDayMouseLeave:b,onNextClick:x,onPrevClick:T,showWeekNumber:B,styles:R}=e,{formatCaption:I,formatDay:N,formatMonthDropdown:F,formatWeekNumber:Q,formatWeekNumberHeader:j,formatWeekdayName:W,formatYearDropdown:V}=i,Y=NJe(e,o),{days:G,months:K,navStart:X,navEnd:q,previousMonth:ne,nextMonth:te,goToMonth:ce}=Y,he=tJe(G,e,X,q,o),{isSelected:ve,select:ae,selected:fe}=WJe(e,o)??{},{blur:we,focused:Me,isFocusTarget:ge,moveFocus:be,setFocused:Ve}=HJe(e,Y,he,ve??(()=>!1),o),{labelDayButton:Re,labelGridcell:Se,labelGrid:nt,labelMonthDropdown:qe,labelNav:tt,labelPrevious:lt,labelNext:ct,labelWeekday:Ze,labelWeekNumber:Jt,labelWeekNumberHeader:Sn,labelYearDropdown:jr}=a,Oe=H.useMemo(()=>bJe(o,e.ISOWeek,e.broadcastCalendar,e.today),[o,e.ISOWeek,e.broadcastCalendar,e.today]),ht=c!==void 0||p!==void 0,At=H.useCallback(()=>{ne&&(ce(ne),T?.(ne))},[ne,ce,T]),Ft=H.useCallback(()=>{te&&(ce(te),x?.(te))},[ce,te,x]),Yt=H.useCallback((Kt,un)=>ar=>{ar.preventDefault(),ar.stopPropagation(),Ve(Kt),!un.disabled&&(ae?.(Kt.date,un,ar),p?.(Kt.date,un,ar))},[ae,p,Ve]),zr=H.useCallback((Kt,un)=>ar=>{Ve(Kt),g?.(Kt.date,un,ar)},[g,Ve]),ni=H.useCallback((Kt,un)=>ar=>{we(),A?.(Kt.date,un,ar)},[we,A]),ii=H.useCallback((Kt,un)=>ar=>{const Yr={ArrowLeft:[ar.shiftKey?"month":"day",e.dir==="rtl"?"after":"before"],ArrowRight:[ar.shiftKey?"month":"day",e.dir==="rtl"?"before":"after"],ArrowDown:[ar.shiftKey?"year":"week","after"],ArrowUp:[ar.shiftKey?"year":"week","before"],PageUp:[ar.shiftKey?"year":"month","before"],PageDown:[ar.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Yr[ar.key]){ar.preventDefault(),ar.stopPropagation();const[aa,$r]=Yr[ar.key];be(aa,$r)}m?.(Kt.date,un,ar)},[be,m,e.dir]),Qs=H.useCallback((Kt,un)=>ar=>{y?.(Kt.date,un,ar)},[y]),js=H.useCallback((Kt,un)=>ar=>{b?.(Kt.date,un,ar)},[b]),dd=H.useCallback(Kt=>un=>{const ar=Number(un.target.value),Yr=o.setMonth(o.startOfMonth(Kt),ar);ce(Yr)},[o,ce]),pu=H.useCallback(Kt=>un=>{const ar=Number(un.target.value),Yr=o.setYear(o.startOfMonth(Kt),ar);ce(Yr)},[o,ce]),{className:Cl,style:Wc}=H.useMemo(()=>
vendor: 6,116 bytes, line 102
102({className:[l[tr.Root],e.className].filter(Boolean).join(" "),style:{...R?.[tr.Root],...e.style}}),[l,e.className,e.style,R]),hd=iJe(e),vu=H.useRef(null);BJe(vu,!!e.animate,{classNames:l,months:K,focused:Me,dateLib:o});const _p={dayPickerProps:e,selected:fe,select:ae,isSelected:ve,months:K,nextMonth:te,previousMonth:ne,goToMonth:ce,getModifiers:he,components:n,classNames:l,styles:R,labels:a,formatters:i};return ue.createElement(y1e.Provider,{value:_p},ue.createElement(n.Root,{rootRef:e.animate?vu:void 0,className:Cl,style:Wc,dir:e.dir,id:e.id,lang:e.lang??s.code,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],...hd},ue.createElement(n.Months,{className:l[tr.Months],style:R?.[tr.Months]},!e.hideNavigation&&!f&&ue.createElement(n.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[tr.Nav],style:R?.[tr.Nav],"aria-label":tt(),onPreviousClick:At,onNextClick:Ft,previousMonth:ne,nextMonth:te}),K.map((Kt,un)=>ue.createElement(n.Month,{"data-animated-month":e.animate?"true":void 0,className:l[tr.Month],style:R?.[tr.Month],key:un,displayIndex:un,calendarMonth:Kt},f==="around"&&!e.hideNavigation&&un===0&&ue.createElement(n.PreviousMonthButton,{type:"button",className:l[tr.PreviousMonthButton],tabIndex:ne?void 0:-1,"aria-disabled":ne?void 0:!0,"aria-label":lt(ne),onClick:At,"data-animated-button":e.animate?"true":void 0},ue.createElement(n.Chevron,{disabled:ne?void 0:!0,className:l[tr.Chevron],orientation:e.dir==="rtl"?"right":"left"})),ue.createElement(n.MonthCaption,{"data-animated-caption":e.animate?"true":void 0,className:l[tr.MonthCaption],style:R?.[tr.MonthCaption],calendarMonth:Kt,displayIndex:un},u?.startsWith("dropdown")?ue.createElement(n.DropdownNav,{className:l[tr.Dropdowns],style:R?.[tr.Dropdowns]},(()=>{const ar=u==="dropdown"||u==="dropdown-months"?ue.createElement(n.MonthsDropdown,{key:"month",className:l[tr.MonthsDropdown],"aria-label":qe(),classNames:l,components:n,disabled:!!e.disableNavigation,onChange:dd(Kt.date),options:wJe(Kt.date,X,q,i,o),style:R?.[tr.Dropdown],value:o.getMonth(Kt.date)}):ue.createElement("span",{key:"month"},F(Kt.date,o)),Yr=u==="dropdown"||u==="dropdown-years"?ue.createElement(n.YearsDropdown,{key:"year",className:l[tr.YearsDropdown],"aria-label":jr(o.options),classNames:l,components:n,disabled:!!e.disableNavigation,onChange:pu(Kt.date),options:xJe(X,q,i,o,!!e.reverseYears),style:R?.[tr.Dropdown],value:o.getYear(Kt.date)}):ue.createElement("span",{key:"year"},V(Kt.date,o));return o.getMonthYearOrder()==="year-first"?[Yr,ar]:[ar,Yr]})(),ue.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},I(Kt.date,o.options,o))):ue.createElement(n.CaptionLabel,{className:l[tr.CaptionLabel],role:"status","aria-live":"polite"},I(Kt.date,o.options,o))),f==="around"&&!e.hideNavigation&&un===d-1&&ue.createElement(n.NextMonthButton,{type:"button",className:l[tr.NextMonthButton],tabIndex:te?void 0:-1,"aria-disabled":te?void 0:!0,"aria-label":ct(te),onClick:Ft,"data-animated-button":e.animate?"true":void 0},ue.createElement(n.Chevron,{disabled:te?void 0:!0,className:l[tr.Chevron],orientation:e.dir==="rtl"?"left":"right"})),un===d-1&&f==="after"&&!e.hideNavigation&&ue.createElement(n.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[tr.Nav],style:R?.[tr.Nav],"aria-label":tt(),onPreviousClick:At,onNextClick:Ft,previousMonth:ne,nextMonth:te}),ue.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":c==="multiple"||c==="range","aria-label":nt(Kt.date,o.options,o)||void 0,className:l[tr.MonthGrid],style:R?.[tr.MonthGrid]},!e.hideWeekdays&&ue.createElement(n.Weekdays,{"data-animated-weekdays":e.animate?"true":void 0,className:l[tr.Weekdays],style:R?.[tr.Weekdays]},B&&ue.createElement(n.WeekNumberHeader,{"aria-label":Sn(o.options),className:l[tr.WeekNumberHeader],style:R?.[tr.WeekNumberHeader],scope:"col"},j()),Oe.map(ar=>ue.createElement(n.Weekday,{"aria-label":Ze(ar,o.options,o),className:l[tr.Weekday],key:String(ar),style:R?.[tr.Weekday],scope:"col"},W(ar,o.options,o)))),ue.createElement(n.Weeks,{"data-animated-weeks":e.animate?"true":void 0,className:l[tr.Weeks],style:R?.[tr.Weeks]},Kt.weeks.map(ar=>ue.createElement(n.Week,{className:l[tr.Week],key:ar.weekNumber,style:R?.[tr.Week],week:ar},B&&ue.createElement(n.WeekNumber,{week:ar,style:R?.[tr.WeekNumber],"aria-label":Jt(ar.weekNumber,{locale:s}),className:l[tr.WeekNumber],scope:"row",role:"rowheader"},Q(ar.weekNumber,o)),ar.days.map(Yr=>{const{date:aa}=Yr,$r=he(Yr);if($r[ca.focused]=!$r.hidden&&!!Me?.isEqualTo(Yr),$r[th.selected]=ve?.(aa)||$r.selected,P5(fe)){const{from:gu,to:oa}=fe;$r[th.range_start]=!!(gu&&oa&&o.isSameDay(aa,gu)),$r[th.range_end]=!!(gu&&oa&&o.isSameDay(aa,oa)),$r[th.range_middle]=Pv(fe,aa,!0,o)}const Lg=_Je($r,R,e.modifiersStyles),B0=rJe($r,l,e.modifiersClassNames),D0=!ht&&!$r.hidden?Se(aa,$r,o.options,o):void 0;return ue.createElement(n.Day,{key:`${Yr.isoDate}_${Yr.displayMonthId}`,day:Yr,modifiers:$r,className:B0.join(" "),style:Lg,role:"gridcell","aria-selected":$r.selected||void 0,"aria-label":D0,"data-day":Yr.isoDate,"data-month":Yr.outside?Yr.dateMonthId:void 0,"data-selected":$r.selected||void 0,"data-disabled":$r.disabled||void 0,"data-hidden":$r.hidden||void 0,"data-outside":Yr.outside||void 0,"data-focused":$r.focused||void 0,"data-today":$r.today||void 0},!$r.hidden&&ht?ue.createElement(n.DayButton,{className:l[tr.DayButton],style:R?.[tr.DayButton],type:"button",day:Yr,modifiers:$r,disabled:!$r.focused&&$r.disabled||void 0,"aria-disabled":$r.focused&&$r.disabled||void 0,tabIndex:ge(Yr)?0:-1,"aria-label":Re(aa,$r,o.options,o),onClick:Yt(Yr,$r),onBlur:ni(Yr,$r),onFocus:zr(Yr,$r),onKeyDown:ii(Yr,$r),onMouseEnter:Qs(Yr,$r),onMouseLeave:js(Yr,$r)},N(aa,o.options,o)):!$r.hidden&&N(Yr.date,o.options,o))})))))))),e.footer&&ue.createElement(n.Footer,{className:l[tr.Footer],style:R?.[tr.Footer],role:"status","aria-live":"polite"},e.footer)))}const BC=t=>`${t.getFullYear()}
102-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,YJe=()=>{const t=new Date,e=new Date(t);return e.setHours(0,0,0,0),{startDate:BC(e),endDate:BC(t)}},Au=_5(t=>({...YJe(),setToday:()=>{const e=new Date,r=new Date(e);r.setHours(0,0,0,0),t({startDate:BC(r),endDate:BC(e)})},setMonth:()=>{const e=new Date,r=new Date(e.getFullYear(),e.getMonth(),1);t({startDate:BC(r),endDate:BC(e)})},setCustom:(e,r)=>t({startDate:e,endDate:r}),clearFilter:()=>t({startDate:"",endDate:""})})),mn=()=>E.jsx("div",{className:"custom-loader"}),zi=({type:t,icon:e=null,iconPosition:r="left",className:n=null,text:i,loader:a=null,handleClick:o,...s})=>E.jsx("button",{type:"submit",...s,onClick:l=>{l.preventDefault(),t!==bi.DISABLED&&!a?.loading&&o&&o()},className:`flex focus:outline-none gap-2 justify-center rounded-lg items-center text-center my-auto h-10 ${t} ${n}`,children:e?E.jsxs(E.Fragment,{children:[r==="left"&&E.jsx(e,{size:14}),i," ",a?.loading&&E.jsx(mn,{})," ",r==="right"&&E.jsx(e,{size:14})]}):a?.loading?E.jsxs(E.Fragment,{children:[i,E.jsx(mn,{})]}):i});function $Je(){const{t}=Vt(),{startDate:e,endDate:r,setToday:n,setMonth:i,setCustom:a}=Au(),{validateDates:o}=Vt(),[s,l]=H.useState("today"),[u,c]=H.useState(void 0),f=H.useRef(null),[d,A]=H.useState(!1);H.useEffect(()=>{if(!e||!r)return;const m=new Date,y=new Date(m);y.setHours(0,0,0,0);const b=I=>`${I.getFullYear()}-${String(I.getMonth()+1).padStart(2,"0")}-${String(I.getDate()).padStart(2,"0")}`,x=b(y),T=b(m),B=new Date(m.getFullYear(),m.getMonth(),1),R=b(B);e===x&&r===T?(l("today"),c(void 0)):e===R&&r===T?(l("month"),c(void 0)):(l("custom"),c({from:new Date(e),to:new Date(r)}))},[e,r]);const p=m=>{l(m),m==="today"?(n(),A(!1)):m==="month"?(i(),A(!1)):m==="custom"&&A(y=>!y)},g=()=>{if(u?.from&&u?.to){const m=y=>`${y.getFullYear()}-${String(y.getMonth()+1).padStart(2,"0")}-${String(y.getDate()).padStart(2,"0")}`;if(!o(m(u.from),m(u.to)))return;a(m(u.from),m(u.to)),A(!1)}};return H.useEffect(()=>{const m=y=>{f.current&&!f.current.contains(y.target)&&d&&A(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[d]),E.jsxs("div",{className:"relative inline-block",children:[E.jsx("nav",{className:"inline-flex items-center gap-1 rounded-full bg-primary-clean-water px-2 py-1 border border-primary-border",children:[{id:"today",label:t("filter.today")},{id:"month",label:t("filter.month")},{id:"custom",label:t("filter.custom")}].map(m=>{const y=s===m.id;return E.jsx("button",{onClick:()=>p(m.id),className:`cursor-pointer px-4 py-2 rounded-full text-sm font-medium transition-all
103                ${y?"dark-blue-gradient text-primary-white shadow":"text-primary-dark-blue hover:bg-primary-gray-light"}`,children:m.label},m.id)})}),s==="custom"&&d&&E.jsxs("div",{ref:f,className:"absolute left-0 mt-2 z-50 rounded-xl border border-primary-border bg-primary-white p-3 shadow-lg",children:[E.jsx(O1e,{mode:"range",numberOfMonths:2,selected:u,onSelect:m=>c(m),className:"text-sm",classNames:{root:"p-1",months:"flex gap-6",month_grid:"border-collapse",nav:"absolute right-6",button_previous:"h-4 w-4 cursor-pointer",button_next:"h-4 w-4 cursor-pointer",month_caption:"mb-2",caption_label:"text-sm font-medium text-primary-dark-blue",weekday:"text-xs font-medium text-primary-gray-dark",day:"h-8 w-8 p-0",day_button:"h-8 w-8 text-xs rounded-md transition",today:"text-primary-dark-blue font-semibold",selected:"bg-primary-dark-blue text-primary-dark-blue",range_start:"bg-primary-dark-blue text-primary-white rounded-l-md",range_end:"bg-primary-dark-blue text-primary-white rounded-r-md",range_middle:"bg-primary-dark-blue/8 text-[red]",outside:"text-primary-gray-light opacity-40",disabled:"opacity-30"}}),u?.from&&u?.to&&E.jsxs("div",{className:"flex flex-col sm:flex-row mt-2 gap-2 w-full *:basis-1/2",children:[E.jsx(zi,{text:"Cancel",type:bi.SECONDARY,handleClick:()=>{A(!1)}}),E.jsx(zi,{text:"Apply",type:bi.PRIMARY_DARK_BLUE,className:"hover:scale-101",handleClick:g})]})]})]})}const ZJe={hidden:{y:-20,opacity:0},visible:{y:0,opacity:1,transition:{duration:.35,ease:BZ}}}
103,ise={hover:{scale:1.08},tap:{scale:.95}},XJe=H.forwardRef(function({showDateFilter:e},r){const{handleLogout:n}=Y$e(),[i,a]=H.useState(!1);return H.useEffect(()=>{const o=()=>{a(window.scrollY>0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]),E.jsx(na.nav,{ref:r,variants:ZJe,initial:"hidden",animate:"visible",className:"bg-primary-white items-start flex flex-wrap lg:items-center justify-between min-h-20 gap-6 lg:gap-4",style:{padding:S$,paddingBottom:"20px",boxShadow:i?"0 4px 12px rgba(0,0,0,0.08)":"0 0 0 rgba(0,0,0,0)"},children:E.jsxs(ZM,{children:[e&&E.jsx("div",{className:"lg:max-w-[70%] flex-1",children:E.jsx($Je,{})}),E.jsxs(na.div,{className:`flex items-center gap-2 ${e?"justify-center":"ml-auto"} cursor-pointer`,initial:{opacity:0},animate:{opacity:1},transition:{delay:.15},children:[E.jsx(tX,{}),E.jsx(na.div,{variants:ise,whileHover:"hover",whileTap:"tap",children:E.jsx(ig,{to:"/dashboard/my-account",className:"h-8 w-8 rounded-full border border-primary-border p-1 flex items-center justify-center hover:bg-primary-clean-water hover:text-primary-dark-blue",children:E.jsx(sC,{size:22})})}),E.jsx(na.span,{variants:ise,whileHover:"hover",whileTap:"tap",onClick:n,className:"h-8 w-8 rounded-full border border-primary-border p-1 flex items-center justify-center text-primary-blackLighter hover:bg-primary-clean-water hover:text-primary-dark-blue",children:E.jsx(eX,{size:22})})]})]})})});function P1e({children:t}){return E.jsx("div",{className:"w-full min-w-75 min-h-screen flex items-center justify-center overflow-x-hidden",children:E.jsx("div",{className:"w-full h-full min-h-full max-w-500 shadow-lg overflow-x-auto",children:t})})}function UX(t){return mr({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.384 6.115a.485.485 0 0 0-.047-.736A12.44 12.44 0 0 0 8 3C5.259 3 2.723 3.882.663 5.379a.485.485 0 0 0-.048.736.52.52 0 0 0 .668.05A11.45 11.45 0 0 1 8 4c2.507 0 4.827.802 6.716 2.164.205.148.49.13.668-.049"},child:[]},{tag:"path",attr:{d:"M13.229 8.271a.482.482 0 0 0-.063-.745A9.46 9.46 0 0 0 8 6c-1.905 0-3.68.56-5.166 1.526a.48.48 0 0 0-.063.745.525.525 0 0 0 .652.065A8.46 8.46 0 0 1 8 7a8.46 8.46 0 0 1 4.576 1.336c.206.132.48.108.653-.065m-2.183 2.183c.226-.226.185-.605-.1-.75A6.5 6.5 0 0 0 8 9c-1.06 0-2.062.254-2.946.704-.285.145-.326.524-.1.75l.015.015c.16.16.407.19.611.09A5.5 5.5 0 0 1 8 10c.868 0 1.69.201 2.42.56.203.1.45.07.61-.091zM9.06 12.44c.196-.196.198-.52-.04-.66A2 2 0 0 0 8 11.5a2 2 0 0 0-1.02.28c-.238.14-.236.464-.04.66l.706.706a.5.5 0 0 0 .707 0l.707-.707z"},child:[]}]})(t)}function HX(t){return mr({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.706 3.294A12.6 12.6 0 0 0 8 3C5.259 3 2.723 3.882.663 5.379a.485.485 0 0 0-.048.736.52.52 0 0 0 .668.05A11.45 11.45 0 0 1 8 4q.946 0 1.852.148zM8 6c-1.905 0-3.68.56-5.166 1.526a.48.48 0 0 0-.063.745.525.525 0 0 0 .652.065 8.45 8.45 0 0 1 3.51-1.27zm2.596 1.404.785-.785q.947.362 1.785.907a.482.482 0 0 1 .063.745.525.525 0 0 1-.652.065 8.5 8.5 0 0 0-1.98-.932zM8 10l.933-.933a6.5 6.5 0 0 1 2.013.637c.285.145.326.524.1.75l-.015.015a.53.53 0 0 1-.611.09A5.5 5.5 0 0 0 8 10m4.905-4.905.747-.747q.886.451 1.685 1.03a.485.485 0 0 1 .047.737.52.52 0 0 1-.668.05 11.5 11.5 0 0 0-1.811-1.07M9.02 11.78c.238.14.236.464.04.66l-.707.706a.5.5 0 0 1-.707 0l-.707-.707c-.195-.195-.197-.518.04-.66A2 2 0 0 1 8 11.5c.374 0 .723.102 1.021.28zm4.355-9.905a.53.53 0 0 1 .75.75l-10.75 10.75a.53.53 0 0 1-.75-.75z"},child:[]}]})(t)}function qJe(t){return mr({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"},child:[]},{tag:"path",attr:{d:"M6.271 5.055a.5.5 0 0 1 .52.038l3.5 2.5a.5.5 0 0 1 0 .814l-3.5 2.5A.5.5 0 0 1 6 10.5v-5a.5.5 0 0 1 .271-.445"},child:[]}]})(t)}function hD(t){return mr({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5 0a.5.5 0 0 1 .5.5V2h1V.5a.5.5 0 0 1 1 0V2h1V.5a.5.5 0 0 1 1 0V2h1V.5a.5.5 0 0 1 1 0V2A2.5 2.5 0 0 1 14 4.5h1.5a.5.5 0 0 1 0 1H14v1h1.5a.5.5 0 0 1 0 1H14v1h1.5a.5.5 0 0 1 0 1H14v1h1.5a.5.5 0 0 1 0 1H14a2.5 2.5 0 0 1-2.5 2.5v1.5a.5.5 0 0 1-1 0V14h-1v1.5a.5.5 0 0 1-1 0V14h-1v1.5a.5.5 0 0 1-1 0V14h-1v1.5a.5.5 0 0 1-1 0V14A2.5 2.5 0 0 1 2 11.5H.5a.5.5 0 0 1 0-1H2v-1H.5a.5.5 0 0 1 0-1H2v-1H.5a.5.5 0 0 1 0-1H2v-1H.5a.5.5 0 0 1 0-1H2A2.5 2.5 0 0 1 4.5 2V.5A.5.5 0 0 1 5 0m-.5 3A1.5 1.5 0 0 0 3 4.5v7A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 11.5 3zM5 6.5A1.5 1.5 0 0 1 6.5 5h3A1.5 1.5 0 0 1 11 6.5v3A1.5 1.5 0 0 1 9.5 11h-3A1.5 1.5 0 0 1 5 9.5zM6.5 6a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"},child:[]}]})(t)}function JJe(t){return mr({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14.763.075A.5.5 0 0 1 15 .5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V14h-1v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .342-.474L6 7.64V4.5a.5.5 0 0 1 .276-.447l8-4a.5.5 0 0 1 .487.022M6 8.694 1 10.36V15h5zM7 15h2v-1.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V15h2
103V1.309l-7 3.5z"},child:[]},{tag:"path",attr:{d:"M2 11h1v1H2zm2 0h1v1H4zm-2 2h1v1H2zm2 0h1v1H4zm4-4h1v1H8zm2 0h1v1h-1zm-2 2h1v1H8zm2 0h1v1h-1zm2-2h1v1h-1zm0 2h1v1h-1zM8 7h1v1H8zm2 0h1v1h-1zm2 0h1v1h-1zM8 5h1v1H8zm2 0h1v1h-1zm2 0h1v1h-1zm0-2h1v1h-1z"},child:[]}]})(t)}function eet(t){return mr({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a.5.5 0 0 1 .47.33L10 12.036l1.53-4.208A.5.5 0 0 1 12 7.5h3.5a.5.5 0 0 1 0 1h-3.15l-1.88 5.17a.5.5 0 0 1-.94 0L6 3.964 4.47 8.171A.5.5 0 0 1 4 8.5H.5a.5.5 0 0 1 0-1h3.15l1.88-5.17A.5.5 0 0 1 6 2"},child:[]}]})(t)}function AD(t){return mr({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 22h14a2 2 0 0 0 2-2v-9a1 1 0 0 0-.29-.71l-8-8a1 1 0 0 0-1.41 0l-8 8A1 1 0 0 0 3 11v9a2 2 0 0 0 2 2zm5-2v-5h4v5zm-5-8.59 7-7 7 7V20h-3v-5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v5H5z"},child:[]}]})(t)}const tet=(t,e)=>{const{t:r}=Vt(),i=fu().pathname,a=H.useCallback(()=>[{label:r("sidebar.home"),link:`/dashboard/finance/home/${e}`,icon:AD},{label:r("sidebar.sites"),link:`/dashboard/finance/sites/${e}?isFromFinance=true`,icon:hD},{label:r("sidebar.my_account"),link:"/dashboard/my-account",icon:sC}],[e,r]),o=H.useCallback(()=>[{label:r("sidebar.home"),link:`/dashboard/operations/home/${e}`,icon:AD},{label:r("sidebar.sites"),link:`/dashboard/operations/sites/${e}`,icon:hD},{label:r("sidebar.activity_log"),link:`/dashboard/operations/activity-log/${e}`,icon:eet},{label:r("sidebar.my_account"),link:"/dashboard/my-account",icon:sC}],[e,r]),s=H.useCallback(()=>[{label:r("sidebar.home"),link:`/dashboard/senior-manager/home/${e}`,icon:AD},{label:r("sidebar.sites"),link:`/dashboard/senior-manager/sites/${e}`,icon:hD},{label:r("sidebar.my_account"),link:"/dashboard/my-account",icon:sC}],[e,r]),l=H.useCallback(()=>[{label:r("sidebar.home"),link:`/dashboard/admin/home/${e}`,icon:AD},{label:r("sidebar.companies"),link:`/dashboard/admin/companies/${e}`,icon:JJe},{label:r("sidebar.user_analytics"),link:`/dashboard/admin/user-analytics/${e}`,icon:sC},{label:r("devices"),link:`/dashboard/admin/devices/${e}`,icon:hD},{label:r("sidebar.my_account"),link:"/dashboard/my-account",icon:sC}],[e,r]),u=H.useCallback(()=>[{label:r("sidebar.home"),link:"/dashboard/admin/demo/home",icon:AD},{label:r("sidebar.sites"),link:"/dashboard/admin/demo/sites",icon:hD}],[r]),c=H.useCallback(d=>d.filter(A=>A.label!=="My Account"),[]),f=H.useCallback(()=>i.includes("finance")?a():i.includes("operations")?o():i.includes("senior-manager")?s():l(),[i,a,o,s,l]);return H.useMemo(()=>t===fa.ADMIN?i.includes("admin/demo")?u():i.includes("admin")?l():c(f()):t===fa.MANAGER?!i.includes("finance")&&!i.includes("operations")?s():c(f()):t===fa.FINANCE?a():t===fa.OPERATIONS?o():[],[t,i,l,u,o,a,s,c,f])};var p7=function(t,e){return p7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},p7(t,e)};function xh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");p7(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var v7=function(){return v7=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},v7.apply(this,arguments)};function Kl(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(t,[])).next())})}function ll(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function zk(t,e,r){if(arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||e)}var ug=(function(){function t(e,r,n,i){this.left=e,this.top=r,this.width=n,this.height=i}return t.prototype.add=function(e,r,n,i){return new t(this.left+e,this.top+r,this.width+n,this.height+i)},t.fromClientRect=function(e,r){return new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},t.fromDOMRectList=function(e,r){var n=Array.from(r).find(function(i){return i.width!==0});return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY}
vendor: 3,436 bytes, line 103
103,t.EMPTY=new t(0,0,0,0),t})(),N5=function(t,e){return ug.fromClientRect(t,e.getBoundingClientRect())},ret=function(t){var e=t.body,r=t.documentElement;if(!e||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),i=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new ug(0,0,n,i)},F5=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=t.charCodeAt(r++);(a&64512)===56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),r--)}else e.push(i)}return e},Fa=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],i=-1,a="";++i<r;){var o=t[i];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},ase="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",net=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Vk=0;Vk<ase.length;Vk++)net[ase.charCodeAt(Vk)]=Vk;var ose="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yM=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Gk=0;Gk<ose.length;Gk++)yM[ose.charCodeAt(Gk)]=Gk;var iet=function(t){var e=t.length*.75,r=t.length,n,i=0,a,o,s,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),c=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)a=yM[t.charCodeAt(n)],o=yM[t.charCodeAt(n+1)],s=yM[t.charCodeAt(n+2)],l=yM[t.charCodeAt(n+3)],c[i++]=a<<2|o>>4,c[i++]=(o&15)<<4|s>>2,c[i++]=(s&3)<<6|l&63;return u},aet=function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r},oet=function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r},db=5,QX=11,ZV=2,set=QX-db,k1e=65536>>db,uet=1<<db,XV=uet-1,cet=1024>>db,fet=k1e+cet,det=fet,het=32,Aet=det+het,pet=65536>>QX,vet=1<<set,get=vet-1,sse=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},met=function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))},yet=function(t,e){var r=iet(t),n=Array.isArray(r)?oet(r):new Uint32Array(r),i=Array.isArray(r)?aet(r):new Uint16Array(r),a=24,o=sse(i,a/2,n[4]/2),s=n[5]===2?sse(i,(a+n[4])/2):met(n,Math.ceil((a+n[4])/4));return new wet(n[0],n[1],n[2],n[3],o,s)},wet=(function(){function t(e,r,n,i,a,o){this.initialValue=e,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=o}return t.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>db],r=(r<<ZV)+(e&XV),this.data[r];if(e<=65535)return r=this.index[k1e+(e-55296>>db)],r=(r<<ZV)+(e&XV),this.data[r];if(e<this.highStart)return r=Aet-pet+(e>>QX),r=this.index[r],r+=e>>db&get,r=this.index[r],r=(r<<ZV)+(e&XV),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),lse="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_et=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kk=0;Kk<lse.length;Kk++)_et[lse.charCodeAt(Kk)]=Kk;var bet="
vendor: 5,502 bytes, line 103
103KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCI
vendor: 47,388 bytes, line 103
103IIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",
vendor: 29,764 bytes, line 103
103use=50,xet=1,N1e=2,F1e=3,Cet=4,Tet=5,cse=7,U1e=8,fse=9,vy=10,g7=11,dse=12,m7=13,Eet=14,wM=15,y7=16,Wk=17,pD=18,Bet=19,hse=20,w7=21,vD=22,qV=23,TS=24,bc=25,_M=26,bM=27,ES=28,Det=29,O_=30,Met=31,Yk=32,$k=33,_7=34,b7=35,x7=36,XL=37,S7=38,TU=39,EU=40,JV=41,H1e=42,Let=43,Ret=[9001,65288],Q1e="!",pn="×",Zk="÷",C7=yet(bet),fv=[O_,x7],T7=[xet,N1e,F1e,Tet],j1e=[vy,U1e],Ase=[bM,_M],Iet=T7.concat(j1e),pse=[S7,TU,EU,_7,b7],Oet=[wM,m7],Pet=function(t,e){e===void 0&&(e="strict");var r=[],n=[],i=[];return t.forEach(function(a,o){var s=C7.get(a);if(s>use?(i.push(!0),s-=use):i.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(o),r.push(y7);if(s===Cet||s===g7){if(o===0)return n.push(o),r.push(O_);var l=r[o-1];return Iet.indexOf(l)===-1?(n.push(n[o-1]),r.push(l)):(n.push(o),r.push(O_))}if(n.push(o),s===Met)return r.push(e==="strict"?w7:XL);if(s===H1e||s===Det)return r.push(O_);if(s===Let)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(XL):r.push(O_);r.push(s)}),[n,r,i]},e6=function(t,e,r,n){var i=n[r];if(Array.isArray(t)?t.indexOf(i)!==-1:t===i)for(var a=r;a<=n.length;){a++;var o=n[a];if(o===e)return!0;if(o!==vy)break}if(i===vy)for(var a=r;a>0;){a--;var s=n[a];if(Array.isArray(t)?t.indexOf(s)!==-1:t===s)for(var l=r;l<=n.length;){l++;var o=n[l];if(o===e)return!0;if(o!==vy)break}if(s!==vy)break}return!1},vse=function(t,e){for(var r=t;r>=0;){var n=e[r];if(n===vy)r--;else return n}return 0},ket=function(t,e,r,n,i){if(r[n]===0)return pn;var a=n-1;if(Array.isArray(i)&&i[a]===!0)return pn;var o=a-1,s=a+1,l=e[a],u=o>=0?e[o]:0,c=e[s];if(l===N1e&&c===F1e)return pn;if(T7.indexOf(l)!==-1)return Q1e;if(T7.indexOf(c)!==-1||j1e.indexOf(c)!==-1)return pn;if(vse(a,e)===U1e)return Zk;if(C7.get(t[a])===g7||(l===Yk||l===$k)&&C7.get(t[s])===g7||l===cse||c===cse||l===fse||[vy,m7,wM].indexOf(l)===-1&&c===fse||[Wk,pD,Bet,TS,ES].indexOf(c)!==-1||vse(a,e)===vD||e6(qV,vD,a,e)||e6([Wk,pD],w7,a,e)||e6(dse,dse,a,e))return pn;if(l===vy)return Zk;if(l===qV||c===qV)return pn;if(c===y7||l===y7)return Zk;if([m7,wM,w7].indexOf(c)!==-1||l===Eet||u===x7&&Oet.indexOf(l)!==-1||l===ES&&c===x7||c===hse||fv.indexOf(c)!==-1&&l===bc||fv.indexOf(l)!==-1&&c===bc||l===bM&&[XL,Yk,$k].indexOf(c)!==-1||[XL,Yk,$k].indexOf(l)!==-1&&c===_M||fv.indexOf(l)!==-1&&Ase.indexOf(c)!==-1||Ase.indexOf(l)!==-1&&fv.indexOf(c)!==-1||[bM,_M].indexOf(l)!==-1&&(c===bc||[vD,wM].indexOf(c)!==-1&&e[s+1]===bc)||[vD,wM].indexOf(l)!==-1&&c===bc||l===bc&&[bc,ES,TS].indexOf(c)!==-1)return pn;if([bc,ES,TS,Wk,pD].indexOf(c)!==-1)for(var f=a;f>=0;){var d=e[f];if(d===bc)return pn;if([ES,TS].indexOf(d)!==-1)f--;else break}if([bM,_M].indexOf(c)!==-1)for(var f=[Wk,pD].indexOf(l)!==-1?o:a;f>=0;){var d=e[f];if(d===bc)return pn;if([ES,TS].indexOf(d)!==-1)f--;else break}if(S7===l&&[S7,TU,_7,b7].indexOf(c)!==-1||[TU,_7].indexOf(l)!==-1&&[TU,EU].indexOf(c)!==-1||[EU,b7].indexOf(l)!==-1&&c===EU||pse.indexOf(l)!==-1&&[hse,_M].indexOf(c)!==-1||pse.indexOf(c)!==-1&&l===bM||fv.indexOf(l)!==-1&&fv.indexOf(c)!==-1||l===TS&&fv.indexOf(c)!==-1||fv.concat(bc).indexOf(l)!==-1&&c===vD&&Ret.indexOf(t[s])===-1||fv.concat(bc).indexOf(c)!==-1&&l===pD)return pn;if(l===JV&&c===JV){for(var A=r[a],p=1;A>0&&(A--,e[A]===JV);)p++;if(p%2!==0)return pn}return l===Yk&&c===$k?pn:Zk},Net=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=Pet(t,e.lineBreak),n=r[0],i=r[1],a=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(i=i.map(function(s){return[bc,O_,H1e].indexOf(s)!==-1?XL:s}));var o=e.wordBreak==="keep-all"?a.map(function(s,l){return s&&t[l]>=19968&&t[l]<=40959}):void 0;return[n,i,o]},Fet=(function(){function t(e,r,n,i){this.codePoints=e,this.required=r===Q1e,this.start=n,this.end=i}return t.prototype.slice=function(){return Fa.apply(void 0,this.codePoints.slice(this.start,this.end))},t})(),Uet=function(t,e){var r=F5(t),n=Net(r,e),i=n[0],a=n[1],o=n[2],s=r.length,l=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var c=pn;u<s&&(c=ket(r,a,i,++u,o))===pn;);if(c!==pn||u===s){var f=new Fet(r,c,l,u);return l=u,{value:f,done:!1}}return{done:!0,value:null}}}},Het=1,Qet=2,CI=4,gse=8,r3=10,mse=47,oL=92,jet=9,zet=32,Xk=34,gD=61,Vet=35,Get=36,Ket=37,qk=39,Jk=40,mD=41,Wet=95,Vu=45,Yet=33,$et=60,Zet=62,Xet=64,qet=91,Jet=93,ett=61,ttt=123,eN=63,rtt=125,yse=124,ntt=126,itt=128,wse=65533,t6=42,Y_=43,att=44,ott=58,stt=59,qL=46,ltt=0,utt=8,ctt=11,ftt=14,dtt=31,htt=127,fA=-1,z1e=48,V1e=97,G1e=101,Att=102,ptt=117,vtt=122,K1e=65,W1e=69,Y1e=70,gtt=85,mtt=90,Al=function(t){return t>=z1e&&t<=57},ytt=function(t){return t>=55296&&t<=57343},BS=function(t){return Al(t)||t>=K1e&&t<=Y1e||t>=V1e&&t<=Att},wtt=function(t){return t>=V1e&&t<=vtt},_tt=function(t){return t>=K1e&&t<=mtt},btt=function(t){return wtt(t)||_tt(t)},xtt=function(t){return t>=itt},tN=function(t){return t===r3||t===jet||t===zet},n3=function(t){return btt(t)||xtt(t)||t===Wet},_se=function(t){return n3(t)||Al(t)||t===Vu},Stt=function(t){return t>=ltt&&t<=utt||t===ctt||t>=ftt&&t<=dtt||t===htt},ay=function(t,e){return t!==oL?!1:e!==r3},rN=function(t,e,r){return t===Vu?n3(e)||ay(e,r):n3(t)?!0:!!(t===oL&&ay(t,e))},r6=function(t,e,r){return t===Y_||t===Vu?Al(e)?!0:e===qL&&Al(r):Al(t===qL?e:t)},Ctt=function(t){var e=0,r=1;(t[e]===Y_||t[e]===Vu)&&(t[e]===Vu&&(r=-1),e++);for(var n=[];Al(t[e]);)n.push(t[e++]);var i=n.length?parseInt(Fa.apply(void 0,n),10):0;t[e]===qL&&e++;for(var a=[];Al(t[e]);)a.push(t[e++]);var o=a.length,s=o?parseInt(Fa.apply(void 0,a),10):0;(t[e]===W1e||t[e]===G1e)&&e++;var l=1;(t[e]===Y_||t[e]===Vu)&&(t[e]===Vu&&(l=-1),e++);for(var u=[];Al(t[e]);)u.push(t[e++]);var c=u.length?parseInt(Fa.apply(void 0,u),10):0;return r*(i+s*Math.pow(10,-o))*Math.pow(10,l*c)},Ttt={type:2},Ett={type:3},Btt={type:4},Dtt={type:13},Mtt={type:8},Ltt={type:21},Rtt={type:9},Itt={type:10},Ott={type:11},Ptt={type:12},ktt={type:14},nN={type:23},Ntt={type:1},Ftt={type:25},Utt={type:24},Htt={type:26},Qtt={type:27},jtt={type:28},ztt={type:29},Vtt={type:31},E7={type:32},$1e=(function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(F5(e))},t.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==E7;)e.push(r),r=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Xk:return this.consumeStringToken(Xk);case Vet:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(_se(r)||ay(n,i)){var a=rN(r,n,i)?Qet:Het,o=this.consumeName();return{type:5,value:o,flags:a}}break;case Get:if(this.peekCodePoint(0)===gD)return this.consumeCodePoint(),Dtt;break;case qk:return this.consumeStringToken(qk);case Jk:return Ttt;case mD:return Ett;case t6:if(this.peekCodePoint(0)===gD)return this.consumeCodePoint(),ktt;break;case Y_:if(r6(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case att:return Btt;case Vu:var s=e,l=this.peekCodePoint(0),u=this.peekCodePoint(1);if(r6(s,l,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(rN(s,l,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===Vu&&u===Zet)return this.consumeCodePoint(),this.consumeCodePoint(),Utt;break;case qL:if(r6(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case mse:if(this.peekCodePoint(0)===t6)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===t6&&(c=this.consumeCodePoint(),c===mse))return this.consumeToken();if(c===fA)return this.consumeToken()}break;case ott:return Htt;case stt:return Qtt;case $et:if(this.peekCodePoint(0)===Yet&&this.peekCodePoint(1)===Vu&&this.peekCodePoint(2)===Vu)return this.consumeCodePoint(),this.consumeCodePoint(),Ftt;break;case Xet:var f=this.peekCodePoint(0),d=this.peekCodePoint(1),A=this.peekCodePoint(2);if(rN(f,d,A)){var o=this.consumeName();return{type:7,value:o}}break;case qet:return jtt;case oL:if(ay(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Jet:return ztt;case ett:if(this.peekCodePoint(0)===gD)return this.consumeCodePoint(),Mtt;break;case ttt:return Ott;case rtt:return Ptt;case ptt:case gtt:var p=this.peekCodePoint(0),g=this.peekCodePoint(1);return p===Y_&&(BS(g)||g===eN)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case yse:if(this.peekCodePoint(0)===gD)return this.consumeCodePoint(),Rtt;if(this.peekCodePoint(0)===yse)return this.consumeCodePoint(),Ltt;break;case ntt:if(this.peekCodePoint(0)===gD)return this.consumeCodePoint(),Itt;break;case fA:return E7}return tN(e)?(this.consumeWhiteSpace(),Vtt):Al(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):n3(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Fa(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();BS(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var n=!1;r===eN&&e.length<6;)e.push(r),r=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(Fa.apply(void 0,e.map(function(l){return l===eN?z1e:l})),16),a=parseInt(Fa.apply(void 0,e.map(function(l){return l===eN?Y1e:l})),16);return{type:30,start:i,end:a}}var o=parseInt(Fa.apply(void 0,e),16);if(this.peekCodePoint(0)===Vu&&BS(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var s=[];BS(r)&&s.length<6;)s.push(r),r=this.consumeCodePoint();var a=parseInt(Fa.apply(void 0,s),16);return{type:30,start:o,end:a}}else return{type:30,start:o,end:o}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Jk?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Jk?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===fA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===qk||r===Xk){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===fA||this.peekCodePoint(0)===mD)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),nN)}for(;;){var i=this.consumeCodePoint();if(i===fA||i===mD)return{type:22,value:Fa.apply(void 0,e)};if(tN(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===fA||this.peekCodePoint(0)===mD?(this.consumeCodePoint(),{type:22,value:Fa.apply(void 0,e)}):(this.consumeBadUrlRemnants(),nN);if(i===Xk||i===qk||i===Jk||Stt(i))return this.consumeBadUrlRemnants(),nN;if(i===oL)if(ay(i,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),nN;else e.push(i)}},t.prototype.consumeWhiteSpace=function(){for(;tN(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===mD||e===fA)return;ay(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var r=5e4,n="";e>0;){var i=Math.min(r,e);n+=Fa.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var r="",n=0;do{var i=this._value[n];if(i===fA||i===void 0||i===e)return r+=this.consumeStringSlice(n),{type:0,value:r};if(i===r3)return this._value.splice(0,n),Ntt;if(i===oL){var a=this._value[n+1];a!==fA&&a!==void 0&&(a===r3?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):ay(i,a)&&(r+=this.consumeStringSlice(n),r+=Fa(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],r=CI,n=this.peekCodePoint(0);for((n===Y_||n===Vu)&&e.push(this.consumeCodePoint());Al(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===qL&&Al(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=gse;Al(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===W1e||n===G1e)&&((i===Y_||i===Vu)&&Al(a)||Al(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=gse;Al(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Ctt(e),r]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],n=e[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(rN(i,a,o)){var s=this.consumeName();return{type:15,number:r,flags:n,unit:s}}return i===Ket?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(BS(e)){for(var r=Fa(e);BS(this.peekCodePoint(0))&&r.length<6;)r+=Fa(this.consumeCodePoint());tN(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||ytt(n)||n>1114111?wse:n}return e===fA?wse:e},t.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(_se(r))e+=Fa(r);else if(ay(r,this.peekCodePoint(0)))e+=Fa(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},t})(),Z1e=(function(){function t(e){this._tokens=e}return t.create=function(e){var r=new $1e;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||Ktt(n,e))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?E7:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t})(),TI=function(t){return t.type===15},aE=function(t){return t.type===17},pi=function(t){return t.type===20},Gtt=function(t){return t.type===0},B7=function(t,e){return pi(t)&&t.value===e},X1e=function(t){return t.type!==31},vT=function(t){return t.type!==31&&t.type!==4},Ap=function(t){var e=[],r=[];return t.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&e.push(r),e},Ktt=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},e0=function(t){return t.type===17||t.type===15},no=function(t){return t.type===16||e0(t)},q1e=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Es={type:17,number:0,flags:CI},jX={type:16,number:50,flags:CI},gy={type:16,number:100,flags:CI},xM=function(t,e,r){var n=t[0],i=t[1];return[Ii(n,e),Ii(typeof i<"u"?i:n,r)]},Ii=function(t,e){if(t.type===16)return t.number/100*e;if(TI(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},J1e="deg",eSe="grad",tSe="rad",rSe="turn",U5={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case J1e:return Math.PI*e.number/180;case eSe:return Math.PI/200*e.number;case tSe:return e.number;case rSe:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},nSe=function(t){return t.type===15&&(t.unit===J1e||t.unit===eSe||t.unit===tSe||t.unit===rSe)},iSe=function(t){var e=t.filter(pi).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Es,Es];case"to top":case"bottom":return zf(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Es,gy];case"to right":case"left":return zf(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[gy,gy];case"to bottom":case"top":return zf(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[gy,Es];case"to left":case"right":return zf(270)}return 0},zf=function(t){return Math.PI*t/180},Ly={name:"color",parse:function(t,e){if(e.type===18){var r=Wtt[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return my(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3),o=e.value.substring(3,4);return my(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6);return my(parseInt(n,16),parseInt(i,16),parseInt(a,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8);return my(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(e.type===20){var s=Kv[e.value.toUpperCase()];if(typeof s<"u")return s}return Kv.TRANSPARENT}},Ry=function(t){return(255&t)===0},jo=function(t){var e=255&t,r=255&t>>8,n=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+n+","+r+","+e/255+")":"rgb("+i+","+n+","+r+")"},my=function(t,e,r,n){return(t<<24|e<<16|r<<8|Math.round(n*255)<<0)>>>0},bse=function(t,e){if(t.type===17)return t.number;if(t.type===16){var r=e===3?1:255;return e===3?t.number/100*r:Math.round(t.number/100*r)}return 0},xse=function(t,e){var r=e.filter(vT);if(r.length===3){var n=r.map(bse),i=n[0],a=n[1],o=n[2];return my(i,a,o,1)}if(r.length===4){var s=r.map(bse),i=s[0],a=s[1],o=s[2],l=s[3];return my(i,a,o,l)}return 0};function n6(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<1/2?e:r<2/3?(e-t)*6*(2/3-r)+t:t}var Sse=function(t,e){var r=e.filter(vT),n=r[0],i=r[1],a=r[2],o=r[3],s=(n.type===17?zf(n.number):U5.parse(t,n))/(Math.PI*2),l=no(i)?i.number/100:0,u=no(a)?a.number/100:0,c=typeof o<"u"&&no(o)?Ii(o,1):1;if(l===0)return my(u*255,u*255,u*255,1);var f=u<=.5?u*(l+1):u+l-u*l,d=u*2-f,A=n6(d,f,s+1/3),p=n6(d,f,s),g=n6(d,f,s-1/3);return my(A*255,p*255,g*255,c)},Wtt={hsl:Sse,hsla:Sse,rgb:xse,rgba:xse},sL=function(t,e){return Ly.parse(t,Z1e.create(e).parseComponentValue())},Kv={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ytt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(pi(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$tt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},H5=function(t,e){var r=Ly.parse(t,e[0]),n=e[1];return n&&no(n)?{color:r,stop:n}:{color:r,stop:null}},Cse=function(t,e){var r=t[0],n=t[t.length-1];r.stop===null&&(r.stop=Es),n.stop===null&&(n.stop=gy);for(var i=[],a=0,o=0;o<t.length;o++){var s=t[o].stop;if(s!==null){var l=Ii(s,e);l>a?i.push(l):i.push(a),a=l}else i.push(null)}for(var u=null,o=0;o<i.length;o++){var c=i[o];if(c===null)u===null&&(u=o);else if(u!==null){for(var f=o-u,d=i[u-1],A=(c-d)/(f+1),p=1;p<=f;p++)i[u+p-1]=A*p;u=null}}return t.map(function(g,m){var y=g.color;return{color:y,stop:Math.max(Math.min(1,i[m]/e),0)}})},Ztt=function(t,e,r){var n=e/2,i=r/2,a=Ii(t[0],e)-n,o=i-Ii(t[1],r);return(Math.atan2(o,a)+Math.PI*2)%(Math.PI*2)},Xtt=function(t,e,r){var n=typeof t=="number"?t:Ztt(t,e,r),i=Math.abs(e*Math.sin(n))+Math.abs(r*Math.cos(n)),a=e/2,o=r/2,s=i/2,l=Math.sin(n-Math.PI/2)*s,u=Math.cos(n-Math.PI/2)*s;return[i,a-u,a+u,o-l,o+l]},Vd=function(t,e){return Math.sqrt(t*t+e*e)},Tse=function(t,e,r,n,i){var a=[[0,0],[0,e],[t,0],[t,e]];return a.reduce(function(o,s){var l=s[0],u=s[1],c=Vd(r-l,n-u);return(i?c<o.optimumDistance:c>o.optimumDistance)?{optimumCorner:s,optimumDistance:c}:o},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},qtt=function(t,e,r,n,i){var a=0,o=0;switch(t.size){case 0:t.shape===0?a=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-i)):t.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(r),Math.abs(r-i)));break;case 2:if(t.shape===0)a=o=Math.min(Vd(e,r),Vd(e,r-i),Vd(e-n,r),Vd(e-n,r-i));else if(t.shape===1){var s=Math.min(Math.abs(r),Math.abs(r-i))/Math.min(Math.abs(e),Math.abs(e-n)),l=Tse(n,i,e,r,!0),u=l[0],c=l[1];a=Vd(u-e,(c-r)/s),o=s*a}break;case 1:t.shape===0?a=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-i)):t.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(r),Math.abs(r-i)));break;case 3:if(t.shape===0)a=o=Math.max(Vd(e,r),Vd(e,r-i),Vd(e-n,r),Vd(e-n,r-i));else if(t.shape===1){var s=Math.max(Math.abs(r),Math.abs(r-i))/Math.max(Math.abs(e),Math.abs(e-n)),f=Tse(n,i,e,r,!1),u=f[0],c=f[1];a=Vd(u-e,(c-r)/s),o=s*a}break}return Array.isArray(t.size)&&(a=Ii(t.size[0],n),o=t.size.length===2?Ii(t.size[1],i):a),[a,o]},Jtt=function(t,e){var r=zf(180),n=[];return Ap(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&o.value==="to"){r=iSe(i);return}else if(nSe(o)){r=U5.parse(t,o);return}}var s=H5(t,i);n.push(s)}),{angle:r,stops:n,type:1}},iN=function(t,e){var r=zf(180),n=[];return Ap(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){r=iSe(i);return}else if(nSe(o)){r=(U5.parse(t,o)+zf(270))%zf(360);return}}var s=H5(t,i);n.push(s)}),{angle:r,stops:n,type:1}},ert=function(t,e){var r=zf(180),n=[],i=1,a=0,o=3,s=[];return Ap(e).forEach(function(l,u){var c=l[0];if(u===0){if(pi(c)&&c.value==="linear"){i=1;return}else if(pi(c)&&c.value==="radial"){i=2;return}}if(c.type===18){if(c.name==="from"){var f=Ly.parse(t,c.values[0]);n.push({stop:Es,color:f})}else if(c.name==="to"){var f=Ly.parse(t,c.values[0]);n.push({stop:gy,color:f})}else if(c.name==="color-stop"){var d=c.values.filter(vT);if(d.length===2){var f=Ly.parse(t,d[1]),A=d[0];aE(A)&&n.push({stop:{type:16,number:A.number*100,flags:A.flags},color:f})}}}}),i===1?{angle:(r+zf(180))%zf(360),stops:n,type:i}:{size:o,shape:a,stops:n,position:s,type:i}},aSe="closest-side",oSe="farthest-side",sSe="closest-corner",lSe="farthest-corner",uSe="circle",cSe="ellipse",fSe="cover",dSe="contain",trt=function(t,e){var r=0,n=3,i=[],a=[];return Ap(e).forEach(function(o,s){var l=!0;if(s===0){var u=!1;l=o.reduce(function(f,d){if(u)if(pi(d))switch(d.value){case"center":return a.push(jX),f;case"top":case"left":return a.push(Es),f;case"right":case"bottom":return a.push(gy),f}else(no(d)||e0(d))&&a.push(d);else if(pi(d))switch(d.value){case uSe:return r=0,!1;case cSe:return r=1,!1;case"at":return u=!0,!1;case aSe:return n=0,!1;case fSe:case oSe:return n=1,!1;case dSe:case sSe:return n=2,!1;case lSe:return n=3,!1}else if(e0(d)||no(d))return Array.isArray(n)||(n=[]),n.push(d),!1;return f},l)}if(l){var c=H5(t,o);i.push(c)}}),{size:n,shape:r,stops:i,position:a,type:2}},aN=function(t,e){var r=0,n=3,i=[],a=[];return Ap(e).forEach(function(o,s){var l=!0;if(s===0?l=o.reduce(function(c,f){if(pi(f))switch(f.value){case"center":return a.push(jX),!1;case"top":case"left":return a.push(Es),!1;case"right":case"bottom":return a.push(gy),!1}else if(no(f)||e0(f))return a.push(f),!1;return c},l):s===1&&(l=o.reduce(function(c,f){if(pi(f))switch(f.value){case uSe:return r=0,!1;case cSe:return r=1,!1;case dSe:case aSe:return n=0,!1;case oSe:return n=1,!1;case sSe:return n=2,!1;case fSe:case lSe:return n=3,!1}else if(e0(f)||no(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return c},l)),l){var u=H5(t,o);i.push(u)}}),{size:n,shape:r,stops:i,position:a,type:2}},rrt=function(t){return t.type===1},nrt=function(t){return t.type===2},zX={name:"image",parse:function(t,e){if(e.type===22){var r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(e.type===18){var n=hSe[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function irt(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!hSe[t.name])}var hSe={"linear-gradient":Jtt,"-moz-linear-gradient":iN,"-ms-linear-gradient":iN,"-o-linear-gradient":iN,"-webkit-linear-gradient":iN,"radial-gradient":trt,"-moz-radial-gradient":aN,"-ms-radial-gradient":aN,"-o-radial-gradient":aN,"-webkit-radial-gradient":aN,"-webkit-gradient":ert},art={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(n){return vT(n)&&irt(n)}).map(function(n){return zX.parse(t,n)})}},ort={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(pi(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},srt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Ap(e).map(function(r){return r.filter(no)}).map(q1e)}},lrt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Ap(e).map(function(r){return r.filter(pi).map(function(n){return n.value}).join(" ")}).map(urt)}},urt=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},GC;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(GC||(GC={}));var crt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Ap(e).map(function(r){return r.filter(frt)})}},frt=function(t){return pi(t)||no(t)},Q5=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},drt=Q5("top"),hrt=Q5("right"),Art=Q5("bottom"),prt=Q5("left"),j5=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return q1e(r.filter(no))}}}
vendor: 16,673 bytes, line 103
103,vrt=j5("top-left"),grt=j5("top-right"),mrt=j5("bottom-right"),yrt=j5("bottom-left"),z5=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},wrt=z5("top"),_rt=z5("right"),brt=z5("bottom"),xrt=z5("left"),V5=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return TI(r)?r.number:0}}},Srt=V5("top"),Crt=V5("right"),Trt=V5("bottom"),Ert=V5("left"),Brt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Drt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return e==="rtl"?1:0}},Mrt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(pi).reduce(function(r,n){return r|Lrt(n.value)},0)}},Lrt=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Rrt={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Irt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},i3;(function(t){t.NORMAL="normal",t.STRICT="strict"})(i3||(i3={}));var Ort={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return e==="strict"?i3.STRICT:i3.NORMAL}},Prt={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ese=function(t,e){return pi(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:no(t)?Ii(t,e):e},krt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:zX.parse(t,e)}},Nrt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return e==="inside"?0:1}},D7={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},G5=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Frt=G5("top"),Urt=G5("right"),Hrt=G5("bottom"),Qrt=G5("left"),jrt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(pi).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},zrt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return e==="break-word"?"break-word":"normal"}},K5=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Vrt=K5("top"),Grt=K5("right"),Krt=K5("bottom"),Wrt=K5("left"),Yrt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},$rt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Zrt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&B7(e[0],"none")?[]:Ap(e).map(function(r){for(var n={color:Kv.TRANSPARENT,offsetX:Es,offsetY:Es,blur:Es},i=0,a=0;a<r.length;a++){var o=r[a];e0(o)?(i===0?n.offsetX=o:i===1?n.offsetY=o:n.blur=o,i++):n.color=Ly.parse(t,o)}return n})}},Xrt={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},qrt={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var r=tnt[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},Jrt=function(t){var e=t.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},ent=function(t){var e=t.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=e[0],n=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],e.length===16?[r,n,i,a,o,s]:null},tnt={matrix:Jrt,matrix3d:ent},Bse={type:16,number:50,flags:CI},rnt=[Bse,Bse],nnt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(no);return r.length!==2?rnt:[r[0],r[1]]}},int={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},lL;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(lL||(lL={}));var ant={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return lL.BREAK_ALL;case"keep-all":return lL.KEEP_ALL;default:return lL.NORMAL}}},ont={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(aE(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ASe={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},snt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return aE(e)?e.number:1}},lnt={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},unt={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(pi).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},cnt={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],n=[];return e.forEach(function(i){switch(i.type){case 20:case 0:r.push(i.value);break;case 17:r.push(i.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},fnt={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},dnt={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){return aE(e)?e.number:pi(e)&&e.value==="bold"?700:400}},hnt={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(pi).map(function(r){return r.value})}},Ant={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},So=function(t,e){return(t&e)!==0},pnt={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},vnt={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var n=[],i=e.filter(X1e),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(o.type===20){var l=s&&aE(s)?s.number:1;n.push({counter:o.value,increment:l})}}return n}},gnt={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var r=[],n=e.filter(X1e),i=0;i<n.length;i++){var a=n[i],o=n[i+1];if(pi(a)&&a.value!=="none"){var s=o&&aE(o)?o.number:0;r.push({counter:a.value,reset:s})}}return r}},mnt={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(TI).map(function(r){return ASe.parse(t,r)})}},ynt={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;var n=[],i=e.filter(Gtt);if(i.length%2!==0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;n.push({open:o,close:s})}return n}},Dse=function(t,e,r){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?r?n.open:n.close:""},wnt={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&B7(e[0],"none")?[]:Ap(e).map(function(r){for(var n={color:255,offsetX:Es,offsetY:Es,blur:Es,spread:Es,inset:!1},i=0,a=0;a<r.length;a++){var o=r[a];B7(o,"inset")?n.inset=!0:e0(o)?(i===0?n.offsetX=o:i===1?n.offsetY=o:i===2?n.blur=o:n.spread=o,i++):n.color=Ly.parse(t,o)}return n})}},_nt={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var r=[0,1,2],n=[];return e.filter(pi).forEach(function(i){switch(i.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(i){n.indexOf(i)===-1&&n.push(i)}),n}},bnt={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},xnt={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return TI(e)?e.number:0}},Snt=(function(){function t(e,r){var n,i;this.animationDuration=Rt(e,mnt,r.animationDuration),this.backgroundClip=Rt(e,Ytt,r.backgroundClip),this.backgroundColor=Rt(e,$tt,r.backgroundColor),this.backgroundImage=Rt(e,art,r.backgroundImage),this.backgroundOrigin=Rt(e,ort,r.backgroundOrigin),this.backgroundPosition=Rt(e,srt,r.backgroundPosition),this.backgroundRepeat=Rt(e,lrt,r.backgroundRepeat),this.backgroundSize=Rt(e,crt,r.backgroundSize),this.borderTopColor=Rt(e,drt,r.borderTopColor),this.borderRightColor=Rt(e,hrt,r.borderRightColor),this.borderBottomColor=Rt(e,Art,r.borderBottomColor),this.borderLeftColor=Rt(e,prt,r.borderLeftColor),this.borderTopLeftRadius=Rt(e,vrt,r.borderTopLeftRadius),this.borderTopRightRadius=Rt(e,grt,r.borderTopRightRadius),this.borderBottomRightRadius=Rt(e,mrt,r.borderBottomRightRadius),this.borderBottomLeftRadius=Rt(e,yrt,r.borderBottomLeftRadius),this.borderTopStyle=Rt(e,wrt,r.borderTopStyle),this.borderRightStyle=Rt(e,_rt,r.borderRightStyle),this.borderBottomStyle=Rt(e,brt,r.borderBottomStyle),this.borderLeftStyle=Rt(e,xrt,r.borderLeftStyle),this.borderTopWidth=Rt(e,Srt,r.borderTopWidth),this.borderRightWidth=Rt(e,Crt,r.borderRightWidth),this.borderBottomWidth=Rt(e,Trt,r.borderBottomWidth),this.borderLeftWidth=Rt(e,Ert,r.borderLeftWidth),this.boxShadow=Rt(e,wnt,r.boxShadow),this.color=Rt(e,Brt,r.color),this.direction=Rt(e,Drt,r.direction),this.display=Rt(e,Mrt,r.display),this.float=Rt(e,Rrt,r.cssFloat),this.fontFamily=Rt(e,cnt,r.fontFamily),this.fontSize=Rt(e,fnt,r.fontSize),this.fontStyle=Rt(e,Ant,r.fontStyle),this.fontVariant=Rt(e,hnt,r.fontVariant),this.fontWeight=Rt(e,dnt,r.fontWeight),this.letterSpacing=Rt(e,Irt,r.letterSpacing),this.lineBreak=Rt(e,Ort,r.lineBreak),this.lineHeight=Rt(e,Prt,r.lineHeight),this.listStyleImage=Rt(e,krt,r.listStyleImage),this.listStylePosition=Rt(e,Nrt,r.listStylePosition),this.listStyleType=Rt(e,D7,r.listStyleType),this.marginTop=Rt(e,Frt,r.marginTop),this.marginRight=Rt(e,Urt,r.marginRight),this.marginBottom=Rt(e,Hrt,r.marginBottom),this.marginLeft=Rt(e,Qrt,r.marginLeft),this.opacity=Rt(e,snt,r.opacity);var a=Rt(e,jrt,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=Rt(e,zrt,r.overflowWrap),this.paddingTop=Rt(e,Vrt,r.paddingTop),this.paddingRight=Rt(e,Grt,r.paddingRight),this.paddingBottom=Rt(e,Krt,r.paddingBottom),this.paddingLeft=Rt(e,Wrt,r.paddingLeft),this.paintOrder=Rt(e,_nt,r.paintOrder),this.position=Rt(e,$rt,r.position),this.textAlign=Rt(e,Yrt,r.textAlign),this.textDecorationColor=Rt(e,lnt,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=Rt(e,unt,(i=r.textDecorationLine)!==null&&i!==void 0?i:r.textDecoration),this.textShadow=Rt(e,Zrt,r.textShadow),this.textTransform=Rt(e,Xrt,r.textTransform),this.transform=Rt(e,qrt,r.transform),this.transformOrigin=Rt(e,nnt,r.transformOrigin),this.visibility=Rt(e,int,r.visibility),this.webkitTextStrokeColor=Rt(e,bnt,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Rt(e,xnt,r.webkitTextStrokeWidth),this.wordBreak=Rt(e,ant,r.wordBreak),this.zIndex=Rt(e,ont,r.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Ry(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return So(this.display,4)||So(this.display,33554432)||So(this.display,268435456)||So(this.display,536870912)||So(this.display,67108864)||So(this.display,134217728)},t})(),Cnt=(function(){function t(e,r){this.content=Rt(e,pnt,r.content),this.quotes=Rt(e,ynt,r.quotes)}return t})(),Mse=(function(){function t(e,r){this.counterIncrement=Rt(e,vnt,r.counterIncrement),this.counterReset=Rt(e,gnt,r.counterReset)}return t})(),Rt=function(t,e,r){var n=new $1e,i=r!==null&&typeof r<"u"?r.toString():e.initialValue;n.write(i);var a=new Z1e(n.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(t,pi(o)?o.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return U5.parse(t,a.parseComponentValue());case"color":return Ly.parse(t,a.parseComponentValue());case"image":return zX.parse(t,a.parseComponentValue());case"length":var s=a.parseComponentValue();return e0(s)?s:Es;case"length-percentage":var l=a.parseComponentValue();return no(l)?l:Es;case"time":return ASe.parse(t,a.parseComponentValue())}break}},Tnt="data-html2canvas-debug",Ent=function(t){var e=t.getAttribute(Tnt);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},M7=function(t,e){var r=Ent(t);return r===1||e===r},pp=(function(){function t(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,M7(r,3))debugger;this.styles=new Snt(e,window.getComputedStyle(r,null)),I7(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=N5(this.context,r),M7(r,4)&&(this.flags|=16)}return t})(),Bnt=
vendor: 26,159 bytes, line 103
103"AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",
103Lse="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 15,750 bytes, line 103
103+/",SM=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var oN=0;oN<Lse.length;oN++)SM[Lse.charCodeAt(oN)]=oN;var Dnt=function(t){var e=t.length*.75,r=t.length,n,i=0,a,o,s,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var u=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),c=Array.isArray(u)?u:new Uint8Array(u);for(n=0;n<r;n+=4)a=SM[t.charCodeAt(n)],o=SM[t.charCodeAt(n+1)],s=SM[t.charCodeAt(n+2)],l=SM[t.charCodeAt(n+3)],c[i++]=a<<2|o>>4,c[i++]=(o&15)<<4|s>>2,c[i++]=(s&3)<<6|l&63;return u},Mnt=function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r},Lnt=function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r},hb=5,VX=11,i6=2,Rnt=VX-hb,pSe=65536>>hb,Int=1<<hb,a6=Int-1,Ont=1024>>hb,Pnt=pSe+Ont,knt=Pnt,Nnt=32,Fnt=knt+Nnt,Unt=65536>>VX,Hnt=1<<Rnt,Qnt=Hnt-1,Rse=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},jnt=function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))},znt=function(t,e){var r=Dnt(t),n=Array.isArray(r)?Lnt(r):new Uint32Array(r),i=Array.isArray(r)?Mnt(r):new Uint16Array(r),a=24,o=Rse(i,a/2,n[4]/2),s=n[5]===2?Rse(i,(a+n[4])/2):jnt(n,Math.ceil((a+n[4])/4));return new Vnt(n[0],n[1],n[2],n[3],o,s)},Vnt=(function(){function t(e,r,n,i,a,o){this.initialValue=e,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=o}return t.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>hb],r=(r<<i6)+(e&a6),this.data[r];if(e<=65535)return r=this.index[pSe+(e-55296>>hb)],r=(r<<i6)+(e&a6),this.data[r];if(e<this.highStart)return r=Fnt-Unt+(e>>VX),r=this.index[r],r+=e>>hb&Qnt,r=this.index[r],r=(r<<i6)+(e&a6),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t})(),Ise="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gnt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var sN=0;sN<Ise.length;sN++)Gnt[Ise.charCodeAt(sN)]=sN;var Knt=1,o6=2,s6=3,Ose=4,Pse=5,Wnt=7,kse=8,l6=9,u6=10,Nse=11,Fse=12,Use=13,Hse=14,c6=15,Ynt=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=t.charCodeAt(r++);(a&64512)===56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),r--)}else e.push(i)}return e},$nt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],i=-1,a="";++i<r;){var o=t[i];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},Znt=znt(Bnt),Rf="×",f6="÷",Xnt=function(t){return Znt.get(t)},qnt=function(t,e,r){var n=r-2,i=e[n],a=e[r-1],o=e[r];if(a===o6&&o===s6)return Rf;if(a===o6||a===s6||a===Ose||o===o6||o===s6||o===Ose)return f6;if(a===kse&&[kse,l6,Nse,Fse].indexOf(o)!==-1||(a===Nse||a===l6)&&(o===l6||o===u6)||(a===Fse||a===u6)&&o===u6||o===Use||o===Pse||o===Wnt||a===Knt)return Rf;if(a===Use&&o===Hse){for(;i===Pse;)i=e[--n];if(i===Hse)return Rf}if(a===c6&&o===c6){for(var s=0;i===c6;)s++,i=e[--n];if(s%2===0)return Rf}return f6},Jnt=function(t){var e=Ynt(t),r=e.length,n=0,i=0,a=e.map(Xnt);return{next:function(){if(n>=r)return{done:!0,value:null};for(var o=Rf;n<r&&(o=qnt(e,a,++n))===Rf;);if(o!==Rf||n===r){var s=$nt.apply(null,e.slice(i,n));return i=n,{value:s,done:!1}}return{done:!0,value:null}}}},eit=function(t){for(var e=Jnt(t),r=[],n;!(n=e.next()).done;)n.value&&r.push(n.value.slice());return r},tit=function(t){var e=123;if(t.createRange){var r=t.createRange();if(r.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),r.selectNode(n);var i=r.getBoundingClientRect(),a=Math.round(i.height);if(t.body.removeChild(n),a===e)return!0}}return!1},rit=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var r=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=e.firstChild,i=F5(n.data).map(function(l){return Fa(l)}),a=0,o={},s=i.every(function(l,u){r.setStart(n,a),r.setEnd(n,a+l.length);var c=r.getBoundingClientRect();a+=l.length;var f=c.x>o.x||c.y>o.y;return o=c,u===0?!0:f});return t.body.removeChild(e),s},nit=function(){return typeof new Image().crossOrigin<"u"},iit=function(){return typeof new XMLHttpRequest().responseType=="string"},ait=function(t){var e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},Qse=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},oit=function(t){var e=t.createElement("canvas"),r=100;e.width=r,e.height=r;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var i=new Image,a=e.toDataURL();i.src=a;var o=L7(r,r,0,0,i);return n.fillStyle="red",n.fillRect(0,0,r,r),jse(o).then(function(s){n.drawImage(s,0,0);var l=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var u=t.createElement("div");return u.style.backgroundImage="url("+a+")",u.style.height=r+"px",Qse(l)?jse(L7(r,r,0,0,u)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),Qse(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},L7=function(t,e,r,n,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",r.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},jse=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Ss={get SUPPORT_RANGE_BOUNDS(){var t=tit(document);return Object.defineProperty(Ss,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Ss.SUPPORT_RANGE_BOUNDS&&rit(document);return Object.defineProperty(Ss,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=ait(document);return Object.defineProperty(Ss,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?oit(document):Promise.resolve(!1);return Object.defineProperty(Ss,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=nit();return Object.defineProperty(Ss,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=iit();return Object.defineProperty(Ss,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ss,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ss,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},uL=(function(){function t(e,r){this.text=e,this.bounds=r}return t})(),sit=function(t,e,r,n){var i=cit(e,r),a=[],o=0;return i.forEach(function(s){if(r.textDecorationLine.length||s.trim().length>0)if(Ss.SUPPORT_RANGE_BOUNDS){var l=zse(n,o,s.length).getClientRects();if(l.length>1){var u=GX(s),c=0;u.forEach(function(d){a.push(new uL(d,ug.fromDOMRectList(t,zse(n,c+o,d.length).getClientRects()))),c+=d.length})}else a.push(new uL(s,ug.fromDOMRectList(t,l)))}else{var f=n.splitText(s.length);a.push(new uL(s,lit(t,n))),n=f}else Ss.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),a},lit=function(t,e){var r=e.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var a=N5(t,n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return ug.EMPTY},zse=function(t,e,r){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(t,e),i.setEnd(t,e+r),i},GX=function(t){if(Ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return eit(t)},uit=function(t,e){if(Ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(t)).map(function(n){return n.segment})}return dit(t,e)},cit=function(t,e){return e.letterSpacing!==0?GX(t):uit(t,e)},fit=[32,160,4961,65792,65793,4153,4241],dit=function(t,e){for(var r=Uet(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],i,a=function(){if(i.value){var o=i.value.slice(),s=F5(o),l="";s.forEach(function(u){fit.indexOf(u)===-1?l+=Fa(u):(l.length&&n.push(l),n.push(Fa(u)),l="")}),l.length&&n.push(l)}};!(i=r.next()).done;)a();return n},hit=(function(){function t(e,r,n){this.text=Ait(r.data,n.textTransform),this.textBounds=sit(e,this.text,n,r)}return t})(),Ait=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(pit,vit);case 2:return t.toUpperCase();default:return t}},pit=/(^|\s|:|-|\(|\))([a-z])/g,vit=function(t,e,r){return t.length>0?e+r.toUpperCase():t},vSe=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return e})(pp),gSe=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return e})(pp),mSe=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this,a=new XMLSerializer,o=N5(r,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e})(pp),ySe=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.value=n.value,i}return e})(pp),R7=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return e})(pp),git=[{type:15,flags:0,unit:"px",number:3}],mit=[{type:16,flags:0,number:50}],yit=function(t){return t.width>t.height?new ug(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new ug(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},wit=function(t){var e=t.type===_it?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},a3="checkbox",o3="radio",_it="password",Vse=707406591,KX=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=wit(n),(i.type===a3||i.type===o3)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=yit(i.bounds)),i.type){case a3:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=git;break;case o3:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=mit;break}return i}return e})(pp),wSe=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this,a=n.options[n.selectedIndex||0];return i.value=a&&a.text||"",i}return e})(pp),_Se=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.value=n.value,i}return e})(pp),bSe=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=SSe(r,n.contentWindow.document.documentElement);var a=n.contentWindow.document.documentElement?sL(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Kv.TRANSPARENT,o=n.contentWindow.document.body?sL(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):Kv.TRANSPARENT;i.backgroundColor=Ry(a)?Ry(o)?i.styles.backgroundColor:o:a}}catch{}return i}return e})(pp),bit=["OL","UL","MENU"],BU=function(t,e,r,n){for(var i=e.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,CSe(i)&&i.data.trim().length>0)r.textNodes.push(new hit(t,i,r.styles));else if(DC(i))if(DSe(i)&&i.assignedNodes)i.assignedNodes().forEach(function(s){return BU(t,s,r,n)});else{var o=xSe(t,i);o.styles.isVisible()&&(xit(i,o,n)?o.flags|=4:Sit(o.styles)&&(o.flags|=2),bit.indexOf(i.tagName)!==-1&&(o.flags|=8),r.elements.push(o),i.slot,i.shadowRoot?BU(t,i.shadowRoot,o,n):!s3(i)&&!TSe(i)&&!l3(i)&&BU(t,i,o,n))}},xSe=function(t,e){return O7(e)?new vSe(t,e):ESe(e)?new gSe(t,e):TSe(e)?new mSe(t,e):Cit(e)?new ySe(t,e):Tit(e)?new R7(t,e):Eit(e)?new KX(t,e):l3(e)?new wSe(t,e):s3(e)?new _Se(t,e):BSe(e)?new bSe(t,e):new pp(t,e)},SSe=function(t,e){var r=xSe(t,e);return r.flags|=4,BU(t,e,r,r),r},xit=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||WX(t)&&r.styles.isTransparent()},Sit=function(t){return t.isPositioned()||t.isFloating()},CSe=function(t){return t.nodeType===Node.TEXT_NODE},DC=function(t){return t.nodeType===Node.ELEMENT_NODE},I7=function(t){return DC(t)&&typeof t.style<"u"&&!DU(t)},DU=function(t){return typeof t.className=="object"},Cit=function(t){return t.tagName==="LI"},Tit=function(t){return t.tagName==="OL"},Eit=function(t){return t.tagName==="INPUT"},Bit=function(t){return t.tagName==="HTML"},TSe=function(t){return t.tagName==="svg"},WX=function(t){return t.tagName==="BODY"},ESe=function(t){return t.tagName==="CANVAS"},Gse=function(t){return t.tagName==="VIDEO"},O7=function(t){return t.tagName==="IMG"},BSe=function(t){return t.tagName==="IFRAME"},Kse=function(t){return t.tagName==="STYLE"},Dit=function(t){return t.tagName==="SCRIPT"},s3=function(t){return t.tagName==="TEXTAREA"},l3=function(t){return t.tagName==="SELECT"},DSe=function(t){return t.tagName==="SLOT"},Wse=function(t){return t.tagName.indexOf("-")>0},Mit=(function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},t.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},t.prototype.pop=function(e){var r=this;e.forEach(function(n){return r.counters[n].pop()})},t.prototype.parse=function(e){var r=this,n=e.counterIncrement,i=e.counterReset,a=!0;n!==null&&n.forEach(function(s){var l=r.counters[s.counter];l&&s.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var o=[];return a&&i.forEach(function(s){var l=r.counters[s.counter];o.push(s.counter),l||(l=r.counters[s.counter]=[]),l.push(s.reset)}),o},t})(),Yse={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},$se={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,9
vendor: 5,344 bytes, line 103
1030,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Lit={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Rit={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},DS=function(t,e,r,n,i,a){return t<e||t>r?JL(t,i,a.length>0):n.integers.reduce(function(o,s,l){for(;t>=s;)t-=s,o+=n.values[l];return o},"")+a},MSe=function(t,e,r,n){var i="";do r||t--,i=n(t)+i,t/=e;while(t*e>=e);return i},Na=function(t,e,r,n,i){var a=r-e+1;return(t<0?"-":"")+(MSe(Math.abs(t),a,n,function(o){return Fa(Math.floor(o%a)+e)})+i)},Uw=function(t,e,r){r===void 0&&(r=". ");var n=e.length;return MSe(Math.abs(t),n,!1,function(i){return e[Math.floor(i%n)]})+r},AC=1,qm=2,Jm=4,CM=8,dv=function(t,e,r,n,i,a){if(t<-9999||t>9999)return JL(t,4,i.length>0);var o=Math.abs(t),s=i;if(o===0)return e[0]+s;for(var l=0;o>0&&l<=4;l++){var u=o%10;u===0&&So(a,AC)&&s!==""?s=e[u]+s:u>1||u===1&&l===0||u===1&&l===1&&So(a,qm)||u===1&&l===1&&So(a,Jm)&&t>100||u===1&&l>1&&So(a,CM)?s=e[u]+(l>0?r[l-1]:"")+s:u===1&&l>0&&(s=r[l-1]+s),o=Math.floor(o/10)}return(t<0?n:"")+s},Zse="十百千萬",Xse="拾佰仟萬",qse="マイナス",d6="마이너스",JL=function(t,e,r){var n=r?". ":"",i=r?"、":"",a=r?", ":"",o=r?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Na(t,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return Uw(t,"〇一二三四五六七八九",i);case 6:return DS(t,1,3999,Yse,3,n).toLowerCase();case 7:return DS(t,1,3999,Yse,3,n);case 8:return Na(t,945,969,!1,n);case 9:return Na(t,97,122,!1,n);case 10:return Na(t,65,90,!1,n);case 11:return Na(t,1632,1641,!0,n);case 12:case 49:return DS(t,1,9999,$se,3,n);case 35:return DS(t,1,9999,$se,3,n).toLowerCase();case 13:return Na(t,2534,2543,!0,n);case 14:case 30:return Na(t,6112,6121,!0,n);case 15:return Uw(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Uw(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return dv(t,"零一二三四五六七八九",Zse,"負",i,qm|Jm|CM);case 47:return dv(t,"零壹貳參肆伍陸柒捌玖",Xse,"負",i,AC|qm|Jm|CM);case 42:return dv(t,"零一二三四五六七八九",Zse,"负",i,qm|Jm|CM);case 41:return dv(t,"零壹贰叁肆伍陆柒捌玖",Xse,"负",i,AC|qm|Jm|CM);case 26:return dv(t,"〇一二三四五六七八九","十百千万",qse,i,0);case 25:return dv(t,"零壱弐参四伍六七八九","拾百千万",qse,i,AC|qm|Jm);case 31:return dv(t,"영일이삼사오육칠팔구","십백천만",d6,a,AC|qm|Jm);case 33:return dv(t,"零一二三四五六七八九","十百千萬",d6,a,0);case 32:return dv(t,"零壹貳參四五六七八九","拾百千",d6,a,AC|qm|Jm);case 18:return Na(t,2406,2415,!0,n);case 20:return DS(t,1,19999,Rit,3,n);case 21:return Na(t,2790,2799,!0,n);case 22:return Na(t,2662,2671,!0,n);case 22:return DS(t,1,10999,Lit,3,n);case 23:return Uw(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Uw(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Na(t,3302,3311,!0,n);case 28:return Uw(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Uw(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Na(t,3792,3801,!0,n);case 37:return Na(t,6160,6169,!0,n);case 38:return Na(t,4160,4169,!0,n);case 39:return Na(t,2918,2927,!0,n);case 40:return Na(t,1776,1785,!0,n);case 43:return Na(t,3046,3055,!0,n);case 44:return Na(t,3174,3183,!0,n);case 45:return Na(t,3664,3673,!0,n);case 46:return Na(t,3872,3881,!0,n);default:return Na(t,48,57,!0,n)}},LSe="data-html2canvas-ignore",Jse=(function(){function t(e,r,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new Mit,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,r){var n=this,i=Iit(e,r);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=i.contentWindow,l=s.document,u=kit(i).then(function(){return Kl(n,void 0,void 0,function(){var c,f;return ll(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEac
vendor: 1,842 bytes, line 103
103h(Hit),s&&(s.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==r.top||s.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-r.left,s.scrollY-r.top,0,0))),c=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Pit(l)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(l,f)}).then(function(){return i})]:[2,i]}})})});return l.open(),l.write(Fit(document.doctype)+"<html></html>"),Uit(this.referenceElement.ownerDocument,a,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(e){if(M7(e,2))debugger;if(ESe(e))return this.createCanvasClone(e);if(Gse(e))return this.createVideoClone(e);if(Kse(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return O7(r)&&(O7(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Wse(r)?this.createCustomElementClone(r):r},t.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return h6(e.style,r),r},t.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(a,o){return o&&typeof o.cssText=="string"?a+o.cssText:a},""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)}
vendor: 6,003 bytes, lines 103-106
103,t.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var a=e.getContext("2d"),o=i.getContext("2d");if(o)if(!this.options.allowTaint&&a)o.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var s=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(s){var l=s.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},t.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},t.prototype.appendChildNode=function(e,r,n){(!DC(r)||!Dit(r)&&!r.hasAttribute(LSe)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!DC(r)||!Kse(r))&&e.appendChild(this.cloneNode(r,n))},t.prototype.cloneChildNodes=function(e,r,n){for(var i=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(DC(a)&&DSe(a)&&typeof a.assignedNodes=="function"){var o=a.assignedNodes();o.length&&o.forEach(function(s){return i.appendChildNode(r,s,n)})}else this.appendChildNode(r,a,n)},t.prototype.cloneNode=function(e,r){if(CSe(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&DC(e)&&(I7(e)||DU(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var a=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&I7(i)&&(this.clonedReferenceElement=i),WX(i)&&zit(i);var l=this.counters.parse(new Mse(this.context,a)),u=this.resolvePseudoContent(e,i,o,cL.BEFORE);Wse(e)&&(r=!0),Gse(e)||this.cloneChildNodes(e,i,r),u&&i.insertBefore(u,i.firstChild);var c=this.resolvePseudoContent(e,i,s,cL.AFTER);return c&&i.appendChild(c),this.counters.pop(l),(a&&(this.options.copyStyles||DU(e))&&!BSe(e)||r)&&h6(a,i),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(s3(e)||l3(e))&&(s3(i)||l3(i))&&(i.value=e.value),i}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,r,n,i){var a=this;if(n){var o=n.content,s=r.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new Mse(this.context,n));var l=new Cnt(this.context,n),u=s.createElement("html2canvaspseudoelement");h6(n,u),l.content.forEach(function(f){if(f.type===0)u.appendChild(s.createTextNode(f.value));else if(f.type===22){var d=s.createElement("img");d.src=f.value,d.style.opacity="1",u.appendChild(d)}else if(f.type===18){if(f.name==="attr"){var A=f.values.filter(pi);A.length&&u.appendChild(s.createTextNode(e.getAttribute(A[0].value)||""))}else if(f.name==="counter"){var p=f.values.filter(vT),g=p[0],m=p[1];if(g&&pi(g)){var y=a.counters.getCounterValue(g.value),b=m&&pi(m)?D7.parse(a.context,m.value):3;u.appendChild(s.createTextNode(JL(y,b,!1)))}}else if(f.name==="counters"){var x=f.values.filter(vT),g=x[0],T=x[1],m=x[2];if(g&&pi(g)){var B=a.counters.getCounterValues(g.value),R=m&&pi(m)?D7.parse(a.context,m.value):3,I=T&&T.type===0?T.value:"",N=B.map(function(j){return JL(j,R,!1)}).join(I);u.appendChild(s.createTextNode(N))}}}else if(f.type===20)switch(f.value){case"open-quote":u.appendChild(s.createTextNode(Dse(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(Dse(l.quotes,--a.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(f.value))}}),u.className=P7+" "+k7;var c=i===cL.BEFORE?" "+P7:" "+k7;return DU(r)?r.className.baseValue+=c:r.className+=c,u}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t})(),cL;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(cL||(cL={}));var Iit=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(LSe,"true"),t.body.appendChild(r),r},Oit=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},Pit=function(t){return Promise.all([].slice.call(t.images,0).map(Oit))},kit=function(t){return new Promise(function(e,r){var n=t.contentWindow;if(!n)return r("No window assigned for iframe");var i=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),e(t))},50)}})},Nit=["all","d","content"],h6=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t.item(r);Nit.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},Fit=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},Uit=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},Hit=function(t){var e=t[0],r=t[1],n=t[2];e.scrollLeft=r,e.scrollTop=n},Qit=":before",jit=":after",P7="___html2canvas___pseudoelement_before",k7="___html2canvas___pseudoelement_after",ele=`{
104    content: "" !important;
105    display: none !important;
106}
106`,zit=function(t){Vit(t,"."+P7+Qit+ele+`
107         .`+k7+jit+ele)},Vit=function(t,e){var r=t.ownerDocument;if(r){var n=r.createElement("style");n.textContent=e,t.appendChild(n)}},RSe=(function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t})(),Git=(function(){function t(e,r){this.context=e,this._options=r,this._cache={}}return t.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(p6(e)||$it(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return Kl(this,void 0,void 0,function(){var r,n,i,a,o=this;return ll(this,function(s){switch(s.label){case 0:return r=RSe.isSameOrigin(e),n=!A6(e)&&this._options.useCORS===!0&&Ss.SUPPORT_CORS_IMAGES&&!r,i=!A6(e)&&!r&&!p6(e)&&typeof this._options.proxy=="string"&&Ss.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!A6(e)&&!p6(e)&&!i&&!n?[2]:(a=e,i?[4,this.proxy(a)]:[3,2]);case 1:a=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,u){var c=new Image;c.onload=function(){return l(c)},c.onerror=u,(Zit(a)||n)&&(c.crossOrigin="anonymous"),c.src=a,c.complete===!0&&setTimeout(function(){return l(c)},500),o._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise(function(a,o){var s=Ss.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")a(l.response);else{var f=new FileReader;f.addEventListener("load",function(){return a(f.result)},!1),f.addEventListener("error",function(d){return o(d)},!1),f.readAsDataURL(l.response)}else o("Failed to proxy resource "+i+" with status code "+l.status)},l.onerror=o;var u=n.indexOf("?")>-1?"&":"?";if(l.open("GET",""+n+u+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),r._options.imageTimeout){var c=r._options.imageTimeout;l.timeout=c,l.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+i)}}l.send()})},t})(),Kit=/^data:image\/svg\+xml/i,Wit=/^data:image\/.*;base64,/i,Yit=/^data:image\/.*/i,$it=function(t){return Ss.SUPPORT_SVG_DRAWING||!Xit(t)},A6=function(t){return Yit.test(t)},Zit=function(t){return Wit.test(t)},p6=function(t){return t.substr(0,4)==="blob"},Xit=function(t){return t.substr(-3).toLowerCase()==="svg"||Kit.test(t)},Mt=(function(){function t(e,r){this.type=0,this.x=e,this.y=r}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t})(),MS=function(t,e,r){return new Mt(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},lN=(function(){function t(e,r,n,i){this.type=1,this.start=e,this.startControl=r,this.endControl=n,this.end=i}return t.prototype.subdivide=function(e,r){var n=MS(this.start,this.startControl,e),i=MS(this.startControl,this.endControl,e),a=MS(this.endControl,this.end,e),o=MS(n,i,e),s=MS(i,a,e),l=MS(o,s,e);return r?new t(this.start,n,o,l):new t(l,s,a,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t})(),Nf=function(t){return t.type===1},qit=(function(){function t(e){var r=e.styles,n=e.bounds,i=xM(r.borderTopLeftRadius,n.width,n.height),a=i[0],o=i[1],s=xM(r.borderTopRightRadius,n.width,n.height),l=s[0],u=s[1],c=xM(r.borderBottomRightRadius,n.width,n.height),f=c[0],d=c[1],A=xM(r.borderBottomLeftRadius,n.width,n.height),p=A[0],g=A[1],m=[];m.push((a+l)/n.width),m.push((p+f)/n.width),m.push((o+g)/n.height),m.push((u+d
vendor: 5,567 bytes, line 107
107)/n.height);var y=Math.max.apply(Math,m);y>1&&(a/=y,o/=y,l/=y,u/=y,f/=y,d/=y,p/=y,g/=y);var b=n.width-l,x=n.height-d,T=n.width-f,B=n.height-g,R=r.borderTopWidth,I=r.borderRightWidth,N=r.borderBottomWidth,F=r.borderLeftWidth,Q=Ii(r.paddingTop,e.bounds.width),j=Ii(r.paddingRight,e.bounds.width),W=Ii(r.paddingBottom,e.bounds.width),V=Ii(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||o>0?Xi(n.left+F/3,n.top+R/3,a-F/3,o-R/3,ei.TOP_LEFT):new Mt(n.left+F/3,n.top+R/3),this.topRightBorderDoubleOuterBox=a>0||o>0?Xi(n.left+b,n.top+R/3,l-I/3,u-R/3,ei.TOP_RIGHT):new Mt(n.left+n.width-I/3,n.top+R/3),this.bottomRightBorderDoubleOuterBox=f>0||d>0?Xi(n.left+T,n.top+x,f-I/3,d-N/3,ei.BOTTOM_RIGHT):new Mt(n.left+n.width-I/3,n.top+n.height-N/3),this.bottomLeftBorderDoubleOuterBox=p>0||g>0?Xi(n.left+F/3,n.top+B,p-F/3,g-N/3,ei.BOTTOM_LEFT):new Mt(n.left+F/3,n.top+n.height-N/3),this.topLeftBorderDoubleInnerBox=a>0||o>0?Xi(n.left+F*2/3,n.top+R*2/3,a-F*2/3,o-R*2/3,ei.TOP_LEFT):new Mt(n.left+F*2/3,n.top+R*2/3),this.topRightBorderDoubleInnerBox=a>0||o>0?Xi(n.left+b,n.top+R*2/3,l-I*2/3,u-R*2/3,ei.TOP_RIGHT):new Mt(n.left+n.width-I*2/3,n.top+R*2/3),this.bottomRightBorderDoubleInnerBox=f>0||d>0?Xi(n.left+T,n.top+x,f-I*2/3,d-N*2/3,ei.BOTTOM_RIGHT):new Mt(n.left+n.width-I*2/3,n.top+n.height-N*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||g>0?Xi(n.left+F*2/3,n.top+B,p-F*2/3,g-N*2/3,ei.BOTTOM_LEFT):new Mt(n.left+F*2/3,n.top+n.height-N*2/3),this.topLeftBorderStroke=a>0||o>0?Xi(n.left+F/2,n.top+R/2,a-F/2,o-R/2,ei.TOP_LEFT):new Mt(n.left+F/2,n.top+R/2),this.topRightBorderStroke=a>0||o>0?Xi(n.left+b,n.top+R/2,l-I/2,u-R/2,ei.TOP_RIGHT):new Mt(n.left+n.width-I/2,n.top+R/2),this.bottomRightBorderStroke=f>0||d>0?Xi(n.left+T,n.top+x,f-I/2,d-N/2,ei.BOTTOM_RIGHT):new Mt(n.left+n.width-I/2,n.top+n.height-N/2),this.bottomLeftBorderStroke=p>0||g>0?Xi(n.left+F/2,n.top+B,p-F/2,g-N/2,ei.BOTTOM_LEFT):new Mt(n.left+F/2,n.top+n.height-N/2),this.topLeftBorderBox=a>0||o>0?Xi(n.left,n.top,a,o,ei.TOP_LEFT):new Mt(n.left,n.top),this.topRightBorderBox=l>0||u>0?Xi(n.left+b,n.top,l,u,ei.TOP_RIGHT):new Mt(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||d>0?Xi(n.left+T,n.top+x,f,d,ei.BOTTOM_RIGHT):new Mt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||g>0?Xi(n.left,n.top+B,p,g,ei.BOTTOM_LEFT):new Mt(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||o>0?Xi(n.left+F,n.top+R,Math.max(0,a-F),Math.max(0,o-R),ei.TOP_LEFT):new Mt(n.left+F,n.top+R),this.topRightPaddingBox=l>0||u>0?Xi(n.left+Math.min(b,n.width-I),n.top+R,b>n.width+I?0:Math.max(0,l-I),Math.max(0,u-R),ei.TOP_RIGHT):new Mt(n.left+n.width-I,n.top+R),this.bottomRightPaddingBox=f>0||d>0?Xi(n.left+Math.min(T,n.width-F),n.top+Math.min(x,n.height-N),Math.max(0,f-I),Math.max(0,d-N),ei.BOTTOM_RIGHT):new Mt(n.left+n.width-I,n.top+n.height-N),this.bottomLeftPaddingBox=p>0||g>0?Xi(n.left+F,n.top+Math.min(B,n.height-N),Math.max(0,p-F),Math.max(0,g-N),ei.BOTTOM_LEFT):new Mt(n.left+F,n.top+n.height-N),this.topLeftContentBox=a>0||o>0?Xi(n.left+F+V,n.top+R+Q,Math.max(0,a-(F+V)),Math.max(0,o-(R+Q)),ei.TOP_LEFT):new Mt(n.left+F+V,n.top+R+Q),this.topRightContentBox=l>0||u>0?Xi(n.left+Math.min(b,n.width+F+V),n.top+R+Q,b>n.width+F+V?0:l-F+V,u-(R+Q),ei.TOP_RIGHT):new Mt(n.left+n.width-(I+j),n.top+R+Q),this.bottomRightContentBox=f>0||d>0?Xi(n.left+Math.min(T,n.width-(F+V)),n.top+Math.min(x,n.height+R+Q),Math.max(0,f-(I+j)),d-(N+W),ei.BOTTOM_RIGHT):new Mt(n.left+n.width-(I+j),n.top+n.height-(N+W)),this.bottomLeftContentBox=p>0||g>0?Xi(n.left+F+V,n.top+B,Math.max(0,p-(F+V)),g-(N+W),ei.BOTTOM_LEFT):new Mt(n.left+F+V,n.top+n.height-(N+W))}return t})(),ei;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ei||(ei={}));var Xi=function(t,e,r,n,i){var a=4*((Math.sqrt(2)-1)/3),o=r*a,s=n*a,l=t+r,u=e+n;switch(i){case ei.TOP_LEFT:return new lN(new Mt(t,u),new Mt(t,u-s),new Mt(l-o,e),new Mt(l,e));case ei.TOP_RIGHT:return new lN(new Mt(t,e),new Mt(t+o,e),new Mt(l,u-s),new Mt(l,u));case ei.BOTTOM_RIGHT:return new lN(new Mt(l,e),new Mt(l,e+s),new Mt(t+o,u),new Mt(t,u));case ei.BOTTOM_LEFT:default:return new lN(new Mt(l,u),new Mt(l-o,u),new Mt(t,e+s),new Mt(t,e))}},u3=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Jit=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},c3=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},eat=(function(){function t(e,r,n){this.offsetX=e,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return t})(),uN=(function(){function t(e,r){this.path=e,this.target=r,this.type=1}return t})(),tat=(function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t})(),rat=function(t){return t.type===0},ISe=function(t){return t.type===1},nat=function(t){return t.type===2},tle=function(t,e){return t.length===e.length?t.some(function(r,n){return r===e[n]}):!1},iat=function(t,e,r,n,i){return t.map(function(a,o){switch(o){case 0:return a.add(e,r);case 1:return a.add(e+n,r);case 2:return a.add(e+n,r+i);case 3:return a.add(e,r+i)}return a})},OSe=(function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t})(),PSe=(function(){function t(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new qit
vendor: 4,710 bytes, line 107
107(this.container),this.container.styles.opacity<1&&this.effects.push(new tat(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new eat(n,i,a))}if(this.container.styles.overflowX!==0){var o=u3(this.curves),s=c3(this.curves);tle(o,s)?this.effects.push(new uN(o,6)):(this.effects.push(new uN(o,2)),this.effects.push(new uN(s,4)))}}return t.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,i=this.effects.slice(0);n;){var a=n.effects.filter(function(l){return!ISe(l)});if(r||n.container.styles.position!==0||!n.parent){if(i.unshift.apply(i,a),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=u3(n.curves),s=c3(n.curves);tle(o,s)||i.unshift(new uN(s,6))}}else i.unshift.apply(i,a);n=n.parent}return i.filter(function(l){return So(l.target,e)})},t})(),N7=function(t,e,r,n){t.container.elements.forEach(function(i){var a=So(i.flags,4),o=So(i.flags,2),s=new PSe(i,t);So(i.styles.display,2048)&&n.push(s);var l=So(i.flags,8)?[]:n;if(a||o){var u=a||i.styles.isPositioned()?r:e,c=new OSe(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var f=i.styles.zIndex.order;if(f<0){var d=0;u.negativeZIndex.some(function(p,g){return f>p.element.container.styles.zIndex.order?(d=g,!1):d>0}),u.negativeZIndex.splice(d,0,c)}else if(f>0){var A=0;u.positiveZIndex.some(function(p,g){return f>=p.element.container.styles.zIndex.order?(A=g+1,!1):A>0}),u.positiveZIndex.splice(A,0,c)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else i.styles.isFloating()?u.nonPositionedFloats.push(c):u.nonPositionedInlineLevel.push(c);N7(s,c,a?c:r,l)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),N7(s,e,r,l);So(i.flags,8)&&kSe(i,l)})},kSe=function(t,e){for(var r=t instanceof R7?t.start:1,n=t instanceof R7?t.reversed:!1,i=0;i<e.length;i++){var a=e[i];a.container instanceof ySe&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=JL(r,a.container.styles.listStyleType,!0),r+=n?-1:1}},aat=function(t){var e=new PSe(t,null),r=new OSe(e),n=[];return N7(e,r,r,n),kSe(e.container,n),r},rle=function(t,e){switch(e){case 0:return Vf(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Vf(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Vf(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return Vf(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},oat=function(t,e){switch(e){case 0:return Vf(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Vf(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Vf(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return Vf(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},sat=function(t,e){switch(e){case 0:return Vf(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Vf(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Vf(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return Vf(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},lat=function(t,e){switch(e){case 0:return cN(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return cN(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return cN(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return cN(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},cN=function(t,e){var r=[];return Nf(t)?r.push(t.subdivide(.5,!1)):r.push(t),Nf(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},Vf=function(t,e,r,n){var i=[];return Nf(t)?i.push(t.subdivide(.5,!1)):i.push(t),Nf(r)?i.push(r.subdivide(.5,!0)):i.push(r),Nf(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),Nf(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},NSe=function(t){var e=t.bounds,r=t.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))}
vendor: 5,187 bytes, line 107
107,f3=function(t){var e=t.styles,r=t.bounds,n=Ii(e.paddingLeft,r.width),i=Ii(e.paddingRight,r.width),a=Ii(e.paddingTop,r.width),o=Ii(e.paddingBottom,r.width);return r.add(n+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+i),-(e.borderTopWidth+e.borderBottomWidth+a+o))},uat=function(t,e){return t===0?e.bounds:t===2?f3(e):NSe(e)},cat=function(t,e){return t===0?e.bounds:t===2?f3(e):NSe(e)},v6=function(t,e,r){var n=uat(pC(t.styles.backgroundOrigin,e),t),i=cat(pC(t.styles.backgroundClip,e),t),a=fat(pC(t.styles.backgroundSize,e),r,n),o=a[0],s=a[1],l=xM(pC(t.styles.backgroundPosition,e),n.width-o,n.height-s),u=dat(pC(t.styles.backgroundRepeat,e),l,a,n,i),c=Math.round(n.left+l[0]),f=Math.round(n.top+l[1]);return[u,c,f,o,s]},LS=function(t){return pi(t)&&t.value===GC.AUTO},fN=function(t){return typeof t=="number"},fat=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=t[0],s=t[1];if(!o)return[0,0];if(no(o)&&s&&no(s))return[Ii(o,r.width),Ii(s,r.height)];var l=fN(a);if(pi(o)&&(o.value===GC.CONTAIN||o.value===GC.COVER)){if(fN(a)){var u=r.width/r.height;return u<a!=(o.value===GC.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var c=fN(n),f=fN(i),d=c||f;if(LS(o)&&(!s||LS(s))){if(c&&f)return[n,i];if(!l&&!d)return[r.width,r.height];if(d&&l){var A=c?n:i*a,p=f?i:n/a;return[A,p]}var g=c?n:r.width,m=f?i:r.height;return[g,m]}if(l){var y=0,b=0;return no(o)?y=Ii(o,r.width):no(s)&&(b=Ii(s,r.height)),LS(o)?y=b*a:(!s||LS(s))&&(b=y/a),[y,b]}var x=null,T=null;if(no(o)?x=Ii(o,r.width):s&&no(s)&&(T=Ii(s,r.height)),x!==null&&(!s||LS(s))&&(T=c&&f?x/n*i:r.height),T!==null&&LS(o)&&(x=c&&f?T/i*n:r.width),x!==null&&T!==null)return[x,T];throw new Error("Unable to calculate background-size for element")},pC=function(t,e){var r=t[e];return typeof r>"u"?t[0]:r},dat=function(t,e,r,n,i){var a=e[0],o=e[1],s=r[0],l=r[1];switch(t){case 2:return[new Mt(Math.round(n.left),Math.round(n.top+o)),new Mt(Math.round(n.left+n.width),Math.round(n.top+o)),new Mt(Math.round(n.left+n.width),Math.round(l+n.top+o)),new Mt(Math.round(n.left),Math.round(l+n.top+o))];case 3:return[new Mt(Math.round(n.left+a),Math.round(n.top)),new Mt(Math.round(n.left+a+s),Math.round(n.top)),new Mt(Math.round(n.left+a+s),Math.round(n.height+n.top)),new Mt(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new Mt(Math.round(n.left+a),Math.round(n.top+o)),new Mt(Math.round(n.left+a+s),Math.round(n.top+o)),new Mt(Math.round(n.left+a+s),Math.round(n.top+o+l)),new Mt(Math.round(n.left+a),Math.round(n.top+o+l))];default:return[new Mt(Math.round(i.left),Math.round(i.top)),new Mt(Math.round(i.left+i.width),Math.round(i.top)),new Mt(Math.round(i.left+i.width),Math.round(i.height+i.top)),new Mt(Math.round(i.left),Math.round(i.height+i.top))]}},hat="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",nle="Hidden Text",Aat=(function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,r){var n=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),i.src=hat,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(nle)),n.appendChild(a),n.appendChild(i);var s=i.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(nle)),n.style.lineHeight="normal",i.style.verticalAlign="super";var l=i.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:l}},t.prototype.getMetrics=function(e,r){var n=e+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,r)),this._data[n]},t})(),FSe=(function(){function t(e,r){this.context=e,this.options=r}return t})(),pat=1e4,vat=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new Aat(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return e.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(i){return n.applyEffect(i)})},e.prototype.applyEffect=function(r){this.ctx.save(),nat(r)&&(this.ctx.globalAlpha=r.opacity),rat(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),ISe(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore(
vendor: 9,453 bytes, line 107
107)},e.prototype.renderStack=function(r){return Kl(this,void 0,void 0,function(){var n;return ll(this,function(i){switch(i.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return Kl(this,void 0,void 0,function(){return ll(this,function(n){switch(n.label){case 0:if(So(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,n,i){var a=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+i);else{var o=GX(r.text);o.reduce(function(s,l){return a.ctx.fillText(l,s,r.bounds.top+i),s+a.ctx.measureText(l).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),i=_at(r.fontFamily).join(", "),a=TI(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,a,i].join(" "),i,a]},e.prototype.renderTextNode=function(r,n){return Kl(this,void 0,void 0,function(){var i,a,o,s,l,u,c,f,d=this;return ll(this,function(A){return i=this.createFontStyle(n),a=i[0],o=i[1],s=i[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(o,s),u=l.baseline,c=l.middle,f=n.paintOrder,r.textBounds.forEach(function(p){f.forEach(function(g){switch(g){case 0:d.ctx.fillStyle=jo(n.color),d.renderTextWithLetterSpacing(p,n.letterSpacing,u);var m=n.textShadow;m.length&&p.text.trim().length&&(m.slice(0).reverse().forEach(function(y){d.ctx.shadowColor=jo(y.color),d.ctx.shadowOffsetX=y.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=y.offsetY.number*d.options.scale,d.ctx.shadowBlur=y.blur.number,d.renderTextWithLetterSpacing(p,n.letterSpacing,u)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),n.textDecorationLine.length&&(d.ctx.fillStyle=jo(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(y){switch(y){case 1:d.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+u),p.bounds.width,1);break;case 2:d.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:d.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+c),p.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&p.text.trim().length&&(d.ctx.strokeStyle=jo(n.webkitTextStrokeColor),d.ctx.lineWidth=n.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+u)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,n,i){if(i&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=f3(r),o=c3(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return Kl(this,void 0,void 0,function(){var n,i,a,o,s,l,b,b,u,c,f,d,T,A,p,B,g,m,y,b,x,T,B;return ll(this,function(R){switch(R.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,i=r.curves,a=n.styles,o=0,s=n.textNodes,R.label=1;case 1:return o<s.length?(l=s[o],[4,this.renderTextNode(l,a)]):[3,4];case 2:R.sent(),R.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof vSe))return[3,8];R.label=5;case 5:return R.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return b=R.sent(),this.renderReplacedElement(n,i,b),[3,8];case 7:return R.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof gSe&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof mSe))return[3,12];R.label=9;case 9:return R.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return b=R.sent(),this.renderReplacedElement(n,i,b),[3,12];case 11:return R.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof bSe&&n.tree?(u=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:c=R.sent(),n.width&&n.height&&this.ctx.drawImage(c,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),R.label=14;case 14:if(n instanceof KX&&(f=Math.min(n.bounds.width,n.bounds.height),n.type===a3?n.checked&&(this.ctx.save(),this.path([new Mt(n.bounds.left+f*.39363,n.bounds.top+f*.79),new Mt(n.bounds.left+f*.16,n.bounds.top+f*.5549),new Mt(n.bounds.left+f*.27347,n.bounds.top+f*.44071),new Mt(n.bounds.left+f*.39694,n.bounds.top+f*.5649),new Mt(n.bounds.left+f*.72983,n.bounds.top+f*.23),new Mt(n.bounds.left+f*.84,n.bounds.top+f*.34085),new Mt(n.bounds.left+f*.39363,n.bounds.top+f*.79)]),this.ctx.fillStyle=jo(Vse),this.ctx.fill(),this.ctx.restore()):n.type===o3&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+f/2,n.bounds.top+f/2,f/4,0,Math.PI*2,!0),this.ctx.fillStyle=jo(Vse),this.ctx.fill(),this.ctx.restore())),gat(n)&&n.value.length){switch(d=this.createFontStyle(a),T=d[0],A=d[1],p=this.fontMetrics.getMetrics(T,A).baseline,this.ctx.font=T,this.ctx.fillStyle=jo(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=yat(n.styles.textAlign),B=f3(n),g=0,n.styles.textAlign){case 1:g+=B.width/2;break;case 2:g+=B.width;break}m=B.add(g,0,0,-B.height/2+1),this.ctx.save(),this.path([new Mt(B.left,B.top),new Mt(B.left+B.width,B.top),new Mt(B.left+B.width,B.top+B.height),new Mt(B.left,B.top+B.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new uL(n.value,m),a.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!So(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(y=n.styles.listStyleImage,y.type!==0)return[3,18];b=void 0,x=y.url,R.label=15;case 15:return R.trys.push([15,17,,18]),[4,this.context.cache.match(x)];case 16:return b=R.sent(),this.ctx.drawImage(b,n.bounds.left-(b.width+10),n.bounds.top),[3,18];case 17:return R.sent(),this.context.logger.error("Error loading list-style-image "+x),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(T=this.createFontStyle(a)[0],this.ctx.font=T,this.ctx.fillStyle=jo(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",B=new ug(n.bounds.left,n.bounds.top+Ii(n.styles.paddingTop,n.bounds.width),n.bounds.width,Ese(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new uL(r.listValue,B),a.letterSpacing,Ese(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),R.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return Kl(this,void 0,void 0,function(){var n,i,y,a,o,y,s,l,y,u,c,y,f,d,y,A,p,y,g,m,y;return ll(this,function(b){switch(b.label){case 0:if(So(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:b.sent(),n=0,i=r.negativeZIndex,b.label=2;case 2:return n<i.length?(y=i[n],[4,this.renderStack(y)]):[3,5];case 3:b.sent(),b.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:b.sent(),a=0,o=r.nonInlineLevel,b.label=7;case 7:return a<o.length?(y=o[a],[4,this.renderNode(y)]):[3,10];case 8:b.sent(),b.label=9;case 9:return a++,[3,7];case 10:s=0,l=r.nonPositionedFloats,b.label=11;case 11:return s<l.length?(y=l[s],[4,this.renderStack(y)]):[3,14];case 12:b.sent(),b.label=13;case 13:return s++,[3,11];case 14:u=0,c=r.nonPositionedInlineLevel,b.label=15;case 15:return u<c.length?(y=c[u],[4,this.renderStack(y)]):[3,18];case 16:b.sent(),b.label=17;case 17:return u++,[3,15];case 18:f=0,d=r.inlineLevel,b.label=19;case 19:return f<d.length?(y=d[f],[4,this.renderNode(y)]):[3,22];case 20:b.sent(),b.label=21;case 21:return f++,[3,19];case 22:A=0,p=r.zeroOrAutoZIndexOrTransformedOrOpacity,b.label=23;case 23:return A<p.length?(y=p[A],[4,this.renderStack(y)]):[3,26];case 24:b.sent(),b.label=25;case 25:return A++,[3,23];case 26:g=0,m=r.positiveZIndex,b.label=27;case 27:return g<m.length?(y=m[g],[4,this.renderStack(y)]):[3,30];case 28:b.sent(),b.label=29;case 29:return g++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var n=this;r.forEach(function(i,a){var o=Nf(i)?i.start:i;a===0?n.ctx.moveTo(o.x,o.y):n.ctx.lineTo(o.x,o.y),Nf(i)&&n.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},e.prototype.renderRepeat=function(r,n,i,a){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(i,a),this.ctx.fill(),this.ctx.translate(-i,-a)},e.prototype.resizeImage=function(r,n,i){var a;if(r.width===n&&r.height===i)return r;var o=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,s=o.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,i);var l=s.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,n,i),s}
vendor: 5,827 bytes, line 107
107,e.prototype.renderBackgroundImage=function(r){return Kl(this,void 0,void 0,function(){var n,i,a,o,s,l;return ll(this,function(u){switch(u.label){case 0:n=r.styles.backgroundImage.length-1,i=function(c){var f,d,A,Q,K,X,V,Y,N,p,Q,K,X,V,Y,g,m,y,b,x,T,B,R,I,N,F,Q,j,W,V,Y,G,K,X,q,ne,te,ce,he,ve,ae,fe;return ll(this,function(we){switch(we.label){case 0:if(c.type!==0)return[3,5];f=void 0,d=c.url,we.label=1;case 1:return we.trys.push([1,3,,4]),[4,a.context.cache.match(d)];case 2:return f=we.sent(),[3,4];case 3:return we.sent(),a.context.logger.error("Error loading background-image "+d),[3,4];case 4:return f&&(A=v6(r,n,[f.width,f.height,f.width/f.height]),Q=A[0],K=A[1],X=A[2],V=A[3],Y=A[4],N=a.ctx.createPattern(a.resizeImage(f,V,Y),"repeat"),a.renderRepeat(Q,N,K,X)),[3,6];case 5:rrt(c)?(p=v6(r,n,[null,null,null]),Q=p[0],K=p[1],X=p[2],V=p[3],Y=p[4],g=Xtt(c.angle,V,Y),m=g[0],y=g[1],b=g[2],x=g[3],T=g[4],B=document.createElement("canvas"),B.width=V,B.height=Y,R=B.getContext("2d"),I=R.createLinearGradient(y,x,b,T),Cse(c.stops,m).forEach(function(Me){return I.addColorStop(Me.stop,jo(Me.color))}),R.fillStyle=I,R.fillRect(0,0,V,Y),V>0&&Y>0&&(N=a.ctx.createPattern(B,"repeat"),a.renderRepeat(Q,N,K,X))):nrt(c)&&(F=v6(r,n,[null,null,null]),Q=F[0],j=F[1],W=F[2],V=F[3],Y=F[4],G=c.position.length===0?[jX]:c.position,K=Ii(G[0],V),X=Ii(G[G.length-1],Y),q=qtt(c,K,X,V,Y),ne=q[0],te=q[1],ne>0&&te>0&&(ce=a.ctx.createRadialGradient(j+K,W+X,0,j+K,W+X,ne),Cse(c.stops,ne*2).forEach(function(Me){return ce.addColorStop(Me.stop,jo(Me.color))}),a.path(Q),a.ctx.fillStyle=ce,ne!==te?(he=r.bounds.left+.5*r.bounds.width,ve=r.bounds.top+.5*r.bounds.height,ae=te/ne,fe=1/ae,a.ctx.save(),a.ctx.translate(he,ve),a.ctx.transform(1,0,0,ae,0,0),a.ctx.translate(-he,-ve),a.ctx.fillRect(j,fe*(W-ve)+ve,V,Y*fe),a.ctx.restore()):a.ctx.fill())),we.label=6;case 6:return n--,[2]}})},a=this,o=0,s=r.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<s.length?(l=s[o],[5,i(l)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,n,i){return Kl(this,void 0,void 0,function(){return ll(this,function(a){return this.path(rle(i,n)),this.ctx.fillStyle=jo(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,n,i,a){return Kl(this,void 0,void 0,function(){var o,s;return ll(this,function(l){switch(l.label){case 0:return n<3?[4,this.renderSolidBorder(r,i,a)]:[3,2];case 1:return l.sent(),[2];case 2:return o=oat(a,i),this.path(o),this.ctx.fillStyle=jo(r),this.ctx.fill(),s=sat(a,i),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return Kl(this,void 0,void 0,function(){var n,i,a,o,s,l,u,c,f=this;return ll(this,function(d){switch(d.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,i=!Ry(n.backgroundColor)||n.backgroundImage.length,a=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],o=mat(pC(n.backgroundClip,0),r.curves),i||n.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Ry(n.backgroundColor)||(this.ctx.fillStyle=jo(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:d.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(A){f.ctx.save();var p=u3(r.curves),g=A.inset?0:pat,m=iat(p,-g+(A.inset?1:-1)*A.spread.number,(A.inset?1:-1)*A.spread.number,A.spread.number*(A.inset?-2:2),A.spread.number*(A.inset?-2:2));A.inset?(f.path(p),f.ctx.clip(),f.mask(m)):(f.mask(p),f.ctx.clip(),f.path(m)),f.ctx.shadowOffsetX=A.offsetX.number+g,f.ctx.shadowOffsetY=A.offsetY.number,f.ctx.shadowColor=jo(A.color),f.ctx.shadowBlur=A.blur.number,f.ctx.fillStyle=A.inset?jo(A.color):"rgba(0,0,0,1)",f.ctx.fill(),f.ctx.restore()}),d.label=2;case 2:s=0,l=0,u=a,d.label=3;case 3:return l<u.length?(c=u[l],c.style!==0&&!Ry(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,r.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,r.curves,3)];case 6:return d.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,r.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,r.curves)];case 10:d.sent(),d.label=11;case 11:s++,d.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,n,i,a,o){return Kl(this,void 0,void 0,function(){var s,l,u,c,f,d,A,p,g,m,y,b,x,T,B,R,B,R;return ll(this,function(I){return this.ctx.save(),s=lat(a,i),l=rle(a,i),o===2&&(this.path(l),this.ctx.clip()),Nf(l[0])?(u=l[0].start.x,c=l[0].start.y):(u=l[0].x,c=l[0].y),Nf(l[1])?(f=l[1].end.x,d=l[1].end.y):(f=l[1].x,d=l[1].y),i===0||i===2?A=Math.abs(u-f):A=Math.abs(c-d),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(l.slice(0,2)),p=n<3?n*3:n*2,g=n<3?n*2:n,o===3&&(p=n,g=n),m=!0,A<=p*2?m=!1:A<=p*2+g?(y=A/(2*p+g),p*=y,g*=y):(b=Math.floor((A+g)/(p+g)),x=(A-b*p)/(b-1),T=(A-(b+1)*p)/b,g=T<=0||Math.abs(g-x)<Math.abs(g-T)?x:T),m&&(o===3?this.ctx.setLineDash([0,p+g]):this.ctx.setLineDash([p,g])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=jo(r),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Nf(l[0])&&(B=l[3],R=l[0],this.ctx.beginPath(),this.formatPath([new Mt(B.end.x,B.end.y),new Mt(R.start.x,R.start.y)]),this.ctx.stroke()),Nf(l[1])&&(B=l[1],R=l[2],this.ctx.beginPath(),this.formatPath([new Mt(B.end.x,B.end.y),new Mt(R.start.x,R.start.y)]),this.ctx.stroke())),this.ctx.restore(
vendor: 4,181 bytes, line 107
107),[2]})})},e.prototype.render=function(r){return Kl(this,void 0,void 0,function(){var n;return ll(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=jo(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=aat(r),[4,this.renderStack(n)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(FSe),gat=function(t){return t instanceof _Se||t instanceof wSe?!0:t instanceof KX&&t.type!==o3&&t.type!==a3},mat=function(t,e){switch(t){case 0:return u3(e);case 2:return Jit(e);default:return c3(e)}},yat=function(t){switch(t){case 1:return"center";case 2:return"right";default:return"left"}},wat=["-apple-system","system-ui"],_at=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return wat.indexOf(e)===-1}):t},bat=(function(t){xh(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return e.prototype.render=function(r){return Kl(this,void 0,void 0,function(){var n,i;return ll(this,function(a){switch(a.label){case 0:return n=L7(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,xat(n)];case 1:return i=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=jo(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(FSe),xat=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Sat=(function(){function t(e){var r=e.id,n=e.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,zk([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,zk([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,zk([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,zk([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t})(),Cat=(function(){function t(e,r){var n;this.windowBounds=r,this.instanceName="#"+t.instanceCount++,this.logger=new Sat({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new Git(this,e)}return t.instanceCount=1,t})(),Tat=function(t,e){return e===void 0&&(e={}),Eat(t,e)};typeof window<"u"&&RSe.setContext(window);var Eat=function(t,e){return Kl(void 0,void 0,void 0,function(){var r,n,i,a,o,s,l,u,c,f,d,A,p,g,m,y,b,x,T,B,I,R,I,N,F,Q,j,W,V,Y,G,K,X,q,ne,te,ce,he,ve,ae;return ll(this,function(fe){switch(fe.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=t.ownerDocument,!r)throw new Error("Element is not attached to a Document");
vendor: 4,259 bytes, line 107
107if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return i={allowTaint:(N=e.allowTaint)!==null&&N!==void 0?N:!1,imageTimeout:(F=e.imageTimeout)!==null&&F!==void 0?F:15e3,proxy:e.proxy,useCORS:(Q=e.useCORS)!==null&&Q!==void 0?Q:!1},a=v7({logging:(j=e.logging)!==null&&j!==void 0?j:!0,cache:e.cache},i),o={windowWidth:(W=e.windowWidth)!==null&&W!==void 0?W:n.innerWidth,windowHeight:(V=e.windowHeight)!==null&&V!==void 0?V:n.innerHeight,scrollX:(Y=e.scrollX)!==null&&Y!==void 0?Y:n.pageXOffset,scrollY:(G=e.scrollY)!==null&&G!==void 0?G:n.pageYOffset},s=new ug(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),l=new Cat(a,s),u=(K=e.foreignObjectRendering)!==null&&K!==void 0?K:!1,c={allowTaint:(X=e.allowTaint)!==null&&X!==void 0?X:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},l.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),f=new Jse(l,t,c),d=f.clonedReferenceElement,d?[4,f.toIFrame(r,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return A=fe.sent(),p=WX(d)||Bit(d)?ret(d.ownerDocument):N5(l,d),g=p.width,m=p.height,y=p.left,b=p.top,x=Bat(l,d,e.backgroundColor),T={canvas:e.canvas,backgroundColor:x,scale:(ne=(q=e.scale)!==null&&q!==void 0?q:n.devicePixelRatio)!==null&&ne!==void 0?ne:1,x:((te=e.x)!==null&&te!==void 0?te:0)+y,y:((ce=e.y)!==null&&ce!==void 0?ce:0)+b,width:(he=e.width)!==null&&he!==void 0?he:Math.ceil(g),height:(ve=e.height)!==null&&ve!==void 0?ve:Math.ceil(m)},u?(l.logger.debug("Document cloned, using foreign object rendering"),I=new bat(l,T),[4,I.render(d)]):[3,3];case 2:return B=fe.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+y+","+b+" with size "+g+"x"+m+" using computed rendering"),l.logger.debug("Starting DOM parsing"),R=SSe(l,d),x===R.styles.backgroundColor&&(R.styles.backgroundColor=Kv.TRANSPARENT),l.logger.debug("Starting renderer for element at "+T.x+","+T.y+" with size "+T.width+"x"+T.height),I=new vat(l,T),[4,I.render(R)];case 4:B=fe.sent(),fe.label=5;case 5:return(!((ae=e.removeContainer)!==null&&ae!==void 0)||ae)&&(Jse.destroy(A)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,B]}})})},Bat=function(t,e,r){var n=e.ownerDocument,i=n.documentElement?sL(t,getComputedStyle(n.documentElement).backgroundColor):Kv.TRANSPARENT,a=n.body?sL(t,getComputedStyle(n.body).backgroundColor):Kv.TRANSPARENT,o=typeof r=="string"?sL(t,r):r===null?Kv.TRANSPARENT:4294967295;return e===n.documentElement?Ry(i)?Ry(a)?o:a:i:o};function Dat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 14V22H4C4 17.5817 7.58172 14 12 14ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM21 17H22V22H14V17H15V16C15 14.3431 16.3431 13 18 13C19.6569 13 21 14.3431 21 16V17ZM19 17V16C19 15.4477 18.5523 15 18 15C17.4477 15 17 15.4477 17 16V17H19Z"},child:[]}]})(t)}function Mat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 11V13H19V11H5Z"},child:[]}]})(t)}function YX(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M18.364 5.63604L16.9497 7.05025C15.683 5.7835 13.933 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12H21C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C14.4853 3 16.7353 4.00736 18.364 5.63604Z"},child:[]}]})(t)}function Lat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"},child:[]}]})(t)}function USe(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"},child:[]}]})(t)}
107function Rat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM17.4571 9.45711L11 15.9142L6.79289 11.7071L8.20711 10.2929L11 13.0858L16.0429 8.04289L17.4571 9.45711Z"},child:[]}]})(t)}function Iat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"},child:[]}]})(t)}function Oat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z"},child:[]}]})(t)}function Pat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 4H15V8H19V20H5V4ZM3.9985 2C3.44749 2 3 2.44405 3 2.9918V21.0082C3 21.5447 3.44476 22 3.9934 22H20.0066C20.5551 22 21 21.5489 21 20.9925L20.9997 7L16 2H3.9985ZM10.4999 7.5C10.4999 9.07749 10.0442 10.9373 9.27493 12.6534C8.50287 14.3757 7.46143 15.8502 6.37524 16.7191L7.55464 18.3321C10.4821 16.3804 13.7233 15.0421 16.8585 15.49L17.3162 13.5513C14.6435 12.6604 12.4999 9.98994 12.4999 7.5H10.4999ZM11.0999 13.4716C11.3673 12.8752 11.6042 12.2563 11.8037 11.6285C12.2753 12.3531 12.8553 13.0182 13.5101 13.5953C12.5283 13.7711 11.5665 14.0596 10.6352 14.4276C10.7999 14.1143 10.9551 13.7948 11.0999 13.4716Z"},child:[]}]})(t)}function kat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M19 22H5C3.34315 22 2 20.6569 2 19V3C2 2.44772 2.44772 2 3 2H17C17.5523 2 18 2.44772 18 3V15H22V19C22 20.6569 20.6569 22 19 22ZM18 17V19C18 19.5523 18.4477 20 19 20C19.5523 20 20 19.5523 20 19V17H18ZM16 20V4H4V19C4 19.5523 4.44772 20 5 20H16ZM6 7H14V9H6V7ZM6 11H14V13H6V11ZM6 15H11V17H6V15Z"},child:[]}]})(t)}function Nat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM8 9V11H16V9H8ZM8 13V15H16V13H8Z"},child:[]}]})(t)}function Fat(t){return mr({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17.5858 5H14V3H21V10H19V6.41421L14.7071 10.7071L13.2929 9.29289L17.5858 5ZM3 14H5V17.5858L9.29289 13.2929L10.7071 14.7071L6.41421 19H10V21H3V14Z"},child:[]}]})(t)}const m0=({isOpen:t,onClose:e,closeOnOutsideClick:r=!0,children:n,className:i})=>t?E.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-gray-800/50  backdrop-blur-sm z-50 h-auto min-h-auto overflow-y-auto",onClick:()=>r&&e(),children:E.jsxs("div",{className:ra("w-full max-w-md p-8 bg-primary-white rounded-lg shadow-lg relative max-h-162.5 overflow-y-auto custom-scrollbar",i),onClick:a=>a.stopPropagation(),children:[E.jsx("button",{className:" cursor-pointer absolute top-3 right-5 bg-primary-dark-blue/80 px-2 py-[0.5px] rounded-lg flex items-center justify-center text-primary-white hover:text-gray-800",onClick:e,children:"×"}),n]})}):null;function Uat({html:t,title:e,fileName:r,onClose:n}){const i=H.useRef(null),[a,o]=H.useState(!1),s=()=>{const u=i.current?.contentWindow;if(!u)return;const c=document.title;document.title=r,u.addEventListener("afterprint",()=>{document.title=c},{once:!0}),u.focus(),u.print()},l=async()=>{const u=i.current?.contentDocument,c=u?.querySelector(".bill");if(!(!u||!c)){o(!0);try{await u.fonts.ready;const f=await Tat(c,{scale:2,useCORS:!0,backgroundColor:"#ffffff"}),d=await new Promise(g=>f.toBlob(g,"image/png"));if(!d)throw new Error("Could not encode the bill image");const A=URL.createObjectURL(d),p=document.createElement("a");p.href=A,p.download=`${r}.png`,p.click(),setTimeout(()=>URL.revokeObjectURL(A),1e3)}catch(f){console.error("Bill image export failed:",f),Oi("Error exporting bill image. Please try again.",{variant:"error"})}finally{o(!1)}}};return E.jsxs(m0,{isOpen:!!t,onClose:n,closeOnOutsideClick:!1,className:"max-w-5xl max-h-[94vh] p-6",children:[E.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 pr-10 mb-4",children:[E.jsxs("div",{children:[E.jsx("h2",{className:"text-lg font-bold text-primary-blackMain",children:e}),E.jsx("p",{className:"text-sm text-primary-dark-blue/60",children:"Review the bill, then print it, save it as a PDF, or download it as an image."})]}),E.jsxs("div",{className:"flex gap-3",children:[E.jsx(zi,{text:"Print / Save PDF",icon:Pat,type:bi.PRIMARY,className:"px-4",handleClick:s}),E.jsx(zi,{text:"PNG",icon:Oat,type:bi.SECONDARY,className:"px-4",loader:{loading:a,height:4,width:4},disabled:a,handleClick:l})]})]}),E.jsx("iframe",{ref:i,title:"Bill preview",srcDoc:t??"",className:"w-full h-[72vh] rounded-lg border border-primary-border bg-[#eef0f3]"})]})}const Hat=700;let yD=null;const Qat=t=>{if(Aa.isAxiosError(t)){if(!t.response)return"Could not reach the server. Check your connection and try again.";const e=t.response.data;try{const r=(typeof e=="string"?JSON.parse(e):e)?.detail;if(r)return String(r)}catch{}return`The server could not generate this bill (error ${t.response.status}).`}return"Something went wrong while generating the bill."},W5=_5((t,e)=>({job:null,view:"expanded",start:async r=>{yD?.abort(),yD=new AbortController;const{signal:n}=yD,i=Date.now(),a=()=>e().job?.id===i;t({job:{...r,id:i,status:"generating",startedAt:Date.now()},view:"expanded"});try{const o=`/generate-bill/${r.siteId}?start_date=${r.startDate}&end_date=${r.endDate}`,s=await Ov.post(o,{},{responseType:"text",signal:n});if(!a())return;
107if(!s||typeof s!="string")throw new Error("No HTML received from server");t(l=>({job:l.job&&{...l.job,status:"ready",html:s,finishedAt:Date.now()}})),e().view==="expanded"?setTimeout(()=>{a()&&e().view==="expanded"&&t({view:"preview"})},Hat):Oi(`Bill for ${r.siteName} is ready`,{variant:"success"})}catch(o){if(Aa.isCancel(o)||!a())return;console.error("Bill generation failed:",o),t(s=>({job:s.job&&{...s.job,status:"error",error:Qat(o),finishedAt:Date.now()}})),e().view==="minimized"&&Oi(`Bill for ${r.siteName} could not be generated`,{variant:"error"})}},retry:()=>{const{job:r,start:n}=e();if(!r)return;const{siteId:i,siteName:a,startDate:o,endDate:s}=r;n({siteId:i,siteName:a,startDate:o,endDate:s})},cancel:()=>{yD?.abort(),yD=null,t({job:null,view:"expanded"})},dismiss:()=>t({job:null,view:"expanded"}),minimize:()=>t({view:"minimized"}),expand:()=>{const{job:r}=e();r&&t({view:r.status==="ready"?"preview":"expanded"})}})),yy=[{label:"Checking the billing period",duration:400},{label:"Fetching meter readings",duration:1500},{label:"Calculating consumption & charges",duration:1200},{label:"Comparing with the previous period",duration:1e3},{label:"Drawing usage charts",duration:900},{label:"Preparing your bill",duration:1/0}],g6=yy.slice(0,-1).reduce((t,e)=>t+e.duration,0);function HSe(t){const[e,r]=H.useState(()=>Date.now()),n=t?.status==="generating";if(H.useEffect(()=>{if(!n)return;const l=setInterval(()=>r(Date.now()),250);return()=>clearInterval(l)},[n]),!t)return{activeStep:0,elapsedMs:0,percent:0};const i=Math.max(0,(t.finishedAt??e)-t.startedAt);if(t.status==="ready")return{activeStep:yy.length,elapsedMs:i,percent:100};let a=0,o=0;for(;a<yy.length-1&&i>=o+yy[a].duration;)o+=yy[a].duration,a+=1;const s=i<=g6?i/g6*90:90+7*(1-Math.exp(-(i-g6)/8e3));return{activeStep:a,elapsedMs:i,percent:s}}const QSe=t=>{const e=Math.floor(t/1e3);return`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`},ile=t=>{const[e,r,n]=t.split("-").map(Number);return new Date(e,r-1,n)},jSe=(t,e)=>{const r=ile(t),n=ile(e),i=r.getFullYear()===n.getFullYear(),a=r.toLocaleDateString(void 0,{day:"numeric",month:"short",...i?{}:{year:"numeric"}}),o=n.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"});return`${a} – ${o}`};function jat({className:t}){const{job:e,view:r,expand:n,cancel:i,dismiss:a,retry:o}=W5(),{activeStep:s,elapsedMs:l,percent:u}=HSe(e);if(!e||r!=="minimized")return null;const c=e.status==="generating",f=e.status==="error",d=c?"Generating bill":f?"Bill generation failed":"Bill ready",A=c?`${yy[s].label}…`:f?e.error:`${e.siteName} · ${jSe(e.startDate,e.endDate)}`;return E.jsxs("div",{role:"status","aria-live":"polite",className:ra("fixed bottom-6 z-50 w-80 overflow-hidden rounded-xl border border-primary-border bg-primary-white shadow-lg","animate-in fade-in slide-in-from-bottom-4 duration-200",t),children:[E.jsxs("div",{className:"flex items-start gap-3 p-4",children:[E.jsx("span",{className:ra("mt-0.5 shrink-0",f?"text-error":c?"text-primary-yellow":"text-primary-dark-green"),children:c?E.jsx(YX,{size:20,className:"animate-spin"}):f?E.jsx(Lat,{size:20}):E.jsx(Rat,{size:20})}),E.jsxs("button",{type:"button",onClick:n,className:"min-w-0 flex-1 cursor-pointer text-left",title:c?"Show progress":"Open bill",children:[E.jsxs("span",{className:"flex items-baseline justify-between gap-2",children:[E.jsx("span",{className:"truncate text-sm font-semibold text-primary-dark-blue",children:d}),c&&E.jsx("span",{className:"shrink-0 text-xs tabular-nums text-primary-dark-blue/60",children:QSe(l)})]}),E.jsx("span",{className:"mt-0.5 line-clamp-2 block text-xs text-primary-dark-blue/60",children:A}),c&&E.jsx("span",{className:"mt-0.5 block truncate text-xs text-primary-dark-blue/45",children:e.siteName})]}),c&&E.jsxs("div",{className:"-mr-1 -mt-1 flex shrink-0 items-center",children:[E.jsx("button",{type:"button",onClick:n,title:"Bring back to focus","aria-label":"Bring back to focus",className:"cursor-pointer rounded-md p-1.5 text-primary-dark-blue/60 hover:bg-grey-100 hover:text-primary-dark-blue",children:E.jsx(Fat,{size:16})}),E.jsx("button",{type:"button",onClick:i,title:"Cancel","aria-label":"Cancel bill generation",className:"cursor-pointer rounded-md p-1.5 text-primary-dark-blue/60 hover:bg-grey-100 hover:text-primary-dark-blue",children:E.jsx(USe,{size:16})})]})]}),c&&E.jsx("div",{className:"h-1 w-full bg-grey-100",children:E.jsx("div",{className:"h-full bg-primary-yellow transition-[width] duration-300 ease-out",style:{width:`${u}%`}})}),!c&&E.jsxs("div",{className:"flex justify-end gap-2 border-t border-primary-border px-4 py-2.5",children:[E.jsx("button",{type:"button",onClick:a,className:"cursor-pointer rounded-md px-3 py-1.5 text-xs font-medium text-primary-dark-blue/70 hover:bg-grey-100",children:"Dismiss"}),E.jsx("button",{type:"button",onClick:f?o:n,className:"cursor-pointer rounded-md bg-primary-dark-blue px-3 py-1.5 text-xs font-semibold text-primary-white hover:bg-primary-dark-blue/90",children:f?"Try again":"View bill"})]})]})}function zat(){const{job:t,view:e,minimize:r,cancel:n,retry:i,dismiss:a}=W5(),{activeStep:o,elapsedMs:s,percent:l}=HSe(t);if(!t||e!=="expanded")return null;const u=t.status==="error",c=t.status==="ready",f=u?"Bill generation failed":c?"Bill ready":"Generating bill";return E.jsxs(m0,{isOpen:!0,onClose:u?a:r,closeOnOutsideClick:!1,className:"max-w-lg p-0",children:[E.jsxs("div",{className:"flex items-start gap-3 px-6 pt-6 pr-14",children:[E.jsx("div",{className:ra("flex h-10 w-10 shrink-0 items-center justify-center rounded-full",u?"bg-error/10 text-error":"bg-primary-yellow-light text-primary-dark-blue"),children:E.jsx(kat,{size:20})}),E.jsxs("div",{className:"min-w-0",children:[E.jsx("h2",{className:"text-lg font-semibold text-primary-dark-blue",children:f}),E.jsxs("p",{className:"truncate text-sm text-primary-dark-blue/60",children:[t.siteName," · ",jSe(t.startDate,t.endDate)]})]})]}),E.jsx("ol",{className:"mx-6 mt-5 flex flex-col",children:yy.map((d,A)=>{const p=A<o,g=A===o&&!c,m=g&&u;return E.jsxs("li",{className:"relative flex gap-3 pb-4 last:pb-0",children:[A<yy.length-1&&E.jsx("span",{className:ra("absolute left-2.75 top-6 bottom-0 w-px",p?"bg-primary-dark-blue":"bg-primary-border")}),E.jsx("span",{className:ra("relative z-10 flex h-6 w-6 shrink-0 items-center justify-center rounded-full border text-xs",p&&"border-primary-dark-blue bg-primary-dark-blue text-primary-white",g&&!m&&"border-primary-yellow bg-primary-yellow-light text-primary-dark-blue",m&&"border-error bg-error text-primary-white",!p&&!g&&"border-primary-border bg-primary-white text-grey-400"),children:p?E.jsx(Iat,{size:14}):m?E.jsx(USe,{size:14}):g?E.jsx(YX,{size:14,className:"animate-spin"}):A+1}),E.jsx("span",{className:ra("pt-0.5 text-sm",g?"font-semibold text-primary-dark-blue":"text-primary-dark-blue/70",!p&&!g&&"text-primary-dark-blue/45",m&&"text-error"),children:d.label})]},d.label)})}),E.jsx("div",{className:"mx-6 mt-6",children:u?E.jsx("p",{className:"rounded-lg bg-error/10 px-3 py-2 text-sm text-error",children:t.error}):E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-grey-100",children:E.jsx("div",{className:"h-full rounded-full bg-primary-yellow transition-[width] duration-300 ease-out",style:{width:`${l}%`}})}),E.jsxs("div",{className:"mt-2 flex justify-between text-xs text-primary-dark-blue/60",children:[E.jsx("span",{children:c?"Opening preview…":"This usually takes a few seconds"}),E.jsx("span",{className:"tabular-nums",children:QSe(s)})]})]})}),E.jsx("div",{className:"mt-6 flex items-center justify-between gap-3 border-t border-primary-border bg-primary-gray-light px-6 py-4",children:u?E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"text-xs text-primary-dark-blue/60",children:"Your dates are kept for the retry."}),E.jsxs("div",{className:"flex gap-3",children:[E.jsx(zi,{text:"Close",type:bi.SECONDARY,className:"px-4",handleClick:a}),E.jsx(zi,{text:"Try again",type:bi.PRIMARY,className:"px-4",handleClick:i})]})]}):E.jsxs(E.Fragment,{children:[E.jsx("span",{className:"text-xs text-primary-dark-blue/60",children:"You can minimize this and keep working."}),E.jsxs("div",{className:"flex gap-3",children:[E.jsx(zi,{text:"Cancel",type:bi.SECONDARY,className:"px-4",disabled:c,handleClick:n}),E.jsx(zi,{text:"Minimize",icon:Mat,type:bi.PRIMARY,className:"px-4",disabled:c,handleClick:r})]})]})})]})}function Vat({dockClassName:t}){const{job:e,view:r,minimize:n}
107=W5(),i=e?.siteName??"site";return E.jsxs(E.Fragment,{children:[E.jsx(zat,{}),E.jsx(jat,{className:t}),E.jsx(Uat,{html:r==="preview"?e?.html??null:null,title:`Bill for ${i}`,fileName:`Bill-${i.replace(/[^\w-]+/g,"_")}-${e?.startDate}_${e?.endDate}`,onClose:n})]})}function Gat(){const{user:t}=rc(),[e,r]=H.useState(!0),n=fu(),i=NFe(t?.company_id||t?.company.id,t?.id).includes(n.pathname),a=tet(t?.access_level,t?.company?.id),o=H.useRef(null),[s,l]=H.useState(0);return H.useEffect(()=>{o.current&&l(o.current.offsetHeight);const u=new ResizeObserver(()=>{o.current&&l(o.current.offsetHeight)});return o.current&&u.observe(o.current),()=>u.disconnect()},[]),H.useEffect(()=>{const u=()=>{r(window.innerWidth>=1200)};return u(),window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),E.jsx(P1e,{children:E.jsxs("div",{className:"h-full",children:[E.jsx(uWe,{items:a,isOpen:e}),E.jsx("div",{className:`fixed top-0 right-0 z-40 flex justify-center bg-inherit ${e?"left-60":"left-20"}`,children:E.jsx("div",{ref:o,className:"w-full max-w-440",children:E.jsx(XJe,{showDateFilter:!i,isSidebarOpen:e})})}),E.jsx("div",{className:`${e?"ml-60":"ml-20"} flex flex-col items-center justify-center min-h-full overflow-hidden`,style:{padding:S$},children:E.jsx("div",{className:"w-full h-full min-h-screen scroll-smooth overflow-x-auto",style:{marginTop:`${s+10}px`},children:E.jsx(w$,{})})}),E.jsx(Vat,{dockClassName:e?"left-64":"left-24"})]})})}function Kat({tabs:t,defaultActiveId:e,onChange:r,className:n=""}){const[i,a]=H.useState(e??t[0]?.value),o=s=>{a(s),r?.(s)};return E.jsx("div",{className:`w-full border-b-2 border-gray-300 ${n}`,children:E.jsx("div",{className:"flex items-center gap-8 relative",children:t.map(s=>{const l=i===s.value;return E.jsxs("button",{onClick:()=>o(s.value),className:"relative flex items-center gap-2 pb-3 text-sm transition-colors cursor-pointer",children:[E.jsx("span",{className:l?"font-semibold":" hover:font-semibold",children:s.label}),typeof s.count=="number"&&E.jsx("span",{className:"rounded px-1.5 py-0.5 text-[10px] font-semibold bg-primary-yellow text-black",children:s.count}),l&&E.jsx("span",{className:"absolute left-0 right-0 -bottom-0.5 h-1.25 bg-primary-yellow rounded-t-full"})]},s.value)})})})}
107var F7=function(t,e){return F7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},F7(t,e)};function Ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");F7(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Wat=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),Yat=(function(){function t(){this.browser=new Wat,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})(),Dr=new Yat;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Dr.wxa=!0,Dr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Dr.worker=!0:!Dr.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Dr.node=!0,Dr.svgSupported=!0):$at(navigator.userAgent,Dr);function $at(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var $X=12,zSe="sans-serif",cg=$X+"px "+zSe,Zat=20,Xat=100,qat="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Jat(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-Zat)/Xat;e[n]=i}return e}var eot=Jat(qat),Eo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=Eo.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||cg),t.measureText(r);r=r||"",n=n||cg;
107var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||$X,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=eot[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}};function VSe(t){for(var e in Eo)Eo.hasOwnProperty(e)&&t[e]&&(Eo[e]=t[e])}var GSe=td(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),KSe=td(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),oE=Object.prototype.toString,Y5=Array.prototype,tot=Y5.forEach,rot=Y5.filter,ZX=Y5.slice,not=Y5.map,ale=(function(){}).constructor,dN=ale?ale.prototype:null,XX="__proto__",m6=2311,iot=Math.pow(2,53)-1;function qX(){return m6>=iot&&(m6=0),m6++}function $5(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function vt(t){if(t==null||typeof t!="object")return t;var e=t,r=oE.call(t);if(r==="[object Array]"){if(!KC(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=vt(t[n])}}else if(KSe[r]){if(!KC(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!GSe[r]&&!KC(t)&&!kb(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==XX&&(e[o]=vt(t[o]))}return e}function Xt(t,e,r){if(!Tt(e)||!Tt(t))return r?vt(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==XX){var i=t[n],a=e[n];Tt(a)&&Tt(i)&&!je(a)&&!je(i)&&!kb(a)&&!kb(i)&&!U7(a)&&!U7(i)&&!KC(a)&&!KC(i)?Xt(i,a,r):(r||!(n in t))&&(t[n]=vt(e[n]))}return t}function Z5(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=Xt(r,t[n],e);return r}function Fe(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==XX&&(t[r]=e[r]);return t}function WSe(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function Ct(t,e,r){for(var n=Cr(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var aot=Eo.createCanvas;function zt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function JX(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Da(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else Ct(t,e,r)}function Os(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function ee(t,e,r){if(t&&e)if(t.forEach&&t.forEach===tot)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function ze(t,e,r){if(!t)return[];if(!e)return X5(t);if(t.map&&t.map===not)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function td(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function ln(t,e,r){if(!t)return[];if(!e)return X5(t);if(t.filter&&t.filter===rot)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Cg(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function Cr(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function oot(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(ZX.call(arguments)))}}var ot=dN&&mt(dN.bind)?dN.call.bind(dN.bind):oot;function lr(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ZX.call(arguments)))}}function je(t){return Array.isArray?Array.isArray(t):oE.call(t)==="[object Array]"}function mt(t){return typeof t=="function"}function et(t){return typeof t=="string"}function d3(t){return oE.call(t)==="[object String]"}function Hr(t){return typeof t=="number"}function Tt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function U7(t){return!!GSe[oE.call(t)]}function lu(t){return!!KSe[oE.call(t)]}function kb(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function EI(t){return t.colorStops!=null}function YSe(t){return t.image!=null}function $Se(t){return oE.call(t)==="[object RegExp]"}function Ds(t){return t!==t}function gl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function ft(t,e){return t??e}function Ju(t,e,r){return t??e??r}function X5(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ZX.apply(t,e)}function BI(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 Ps(t,e){if(!t)throw new Error(e)}function Rc(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ZSe="__ec_primitive__";function eR(t){t[ZSe]=!0}function KC(t){return t[ZSe]}var sot=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Cr(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),XSe=typeof Map=="function";function lot(){return XSe?new Map:new sot}var qSe=(function(){function t(e){var r=je(e);this.data=lot();var n=this;e instanceof t?e.each(i):e&&ee(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}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,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return XSe?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function st(t){return new qSe(t)}function gT(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function DI(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&Fe(r,e),r}function eq(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ut(t,e){return t.hasOwnProperty(e)}function Ki(){}var fL=180/Math.PI,uot=Number.EPSILON||Math.pow(2,-52);const cot=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:uot,HashMap:qSe,RADIAN_TO_DEGREE:fL,assert:Ps,assignProps:WSe,bind:ot,clone:vt,concatArray:gT,createCanvas:aot,createHashMap:st,createObject:DI,curry:lr,defaults:Ct,disableUserSelect:eq,each:ee,eqNaN:Ds,extend:Fe,filter:ln,find:Cg,guid:qX,hasOwn:ut,indexOf:zt,inherits:JX,isArray:je,isArrayLike:Os,isBuiltInObject:U7,isDom:kb,isFunction:mt,isGradientObject:EI,isImagePatternObject:YSe,isNumber:Hr,isObject:Tt,isPrimitive:KC,isRegExp:$Se,isString:et,isStringSafe:d3,isTypedArray:lu,keys:Cr,logError:$5,map:ze,merge:Xt,mergeAll:Z5,mixin:Da,noop:Ki,normalizeCssArray:BI,reduce:td,retrieve:gl,retrieve2:ft,retrieve3:Ju,setAsPrimitive:eR,slice:X5,trim:Rc},Symbol.toStringTag,{value:"Module"}));
107var H7=function(t,e){return H7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},H7(t,e)};function vi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");H7(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function y0(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function bs(t,e){return t[0]=e[0],t[1]=e[1],t}function VA(t){return[t[0],t[1]]}function Wv(t,e,r){return t[0]=e,t[1]=r,t}function Q7(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function h3(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function wy(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function tR(t){return Math.sqrt(tq(t))}var fot=tR;function tq(t){return t[0]*t[0]+t[1]*t[1]}var dot=tq;function hot(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function Aot(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function pot(t,e){return t[0]*e[0]+t[1]*e[1]}function dL(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function _x(t,e){var r=tR(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function A3(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Nv=A3;function JSe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Iy=JSe;function vot(t,e){return t[0]=-e[0],t[1]=-e[1],t}function hL(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function Wi(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Fv(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Uv(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}const got=Object.freeze(Object.defineProperty({__proto__:null,add:Q7,applyTransform:Wi,clone:VA,copy:bs,create:y0,dist:Nv,distSquare:Iy,distance:A3,distanceSquare:JSe,div:Aot,dot:pot,len:tR,lenSquare:tq,length:fot,lengthSquare:dot,lerp:hL,max:Uv,min:Fv,mul:hot,negate:vot,normalize:_x,scale:dL,scaleAndAdd:h3,set:Wv,sub:wy},Symbol.toStringTag,{value:"Module"}));var RS=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),mot=(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 r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new RS(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new RS(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new RS(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new RS(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new RS(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new RS(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),ud=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),yot=Math.log(2);function j7(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/yot);return t[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,A=0;d<s;d++){var p=1<<d;p&i||(f+=(A%2?-1:1)*t[r][d]*j7(t,e-1,c,u,i|p,a),A++)}return a[o]=f,f}function ole(t,e){var r=[[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]]],n={},i=j7(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*j7(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var p3="___zrEVENTSAVED",y6=[];function wot(t,e,r,n,i){return z7(y6,e,n,i,!0)&&z7(t,r,y6[0],y6[1])}function _ot(t,e){t&&r(t),e&&r(e);function r(n){var i=n[p3];i&&(i.clearMarkers&&i.clearMarkers(),delete n[p3])}}function z7(t,e,r,n,i){if(e.getBoundingClientRect&&Dr.domSupported&&!eCe(e)){var a=e[p3]||(e[p3]={}),o=bot(e,a),s=xot(o,a,i);if(s)return s(t,r,n),!0}return!1}function bot(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){ee(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function xot(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,d=c.left,A=c.top;o.push(d,A),l=l&&a&&d===a[f]&&A===a[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?ole(s,o):ole(o,s))}function eCe(t){return t.nodeName.toUpperCase()==="CANVAS"}var Sot=/([&<>"'])/g,Cot={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function pl(t){return t==null?"":(t+"").replace(Sot,function(e,r){return Cot[r]})}var Tot=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,w6=[],Eot=Dr.browser.firefox&&+Dr.browser.version.split(".")[0]<39;function V7(t,e,r,n){return r=r||{},n?sle(t,e,r):Eot&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):sle(t,e,r),r}function sle(t,e,r){if(Dr.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(eCe(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}
107else if(z7(w6,t,n,i)){r.zrX=w6[0],r.zrY=w6[1];return}}r.zrX=r.zrY=0}function rq(t){return t||window.event}function If(t,e,r){if(e=rq(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&V7(t,o,e,r)}else{V7(t,e,e,r);var a=Bot(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Tot.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Bot(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function G7(t,e,r,n){t.addEventListener(e,r,n)}function Dot(t,e,r,n){t.removeEventListener(e,r,n)}var fg=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function lle(t){return t.which===2||t.which===3}var Mot=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=V7(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in _6)if(_6.hasOwnProperty(r)){var n=_6[r](this._track,e);if(n)return n}},t})();function ule(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Lot(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var _6={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=ule(n)/ule(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Lot(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Si(){return[1,0,0,1,0,0]}function bx(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function t0(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 Fc(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function gh(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Tg(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(r),f=Math.cos(r);return t[0]=i*f+s*c,t[1]=-i*c+s*f,t[2]=a*f+l*c,t[3]=-a*c+f*l,t[4]=f*(o-n[0])+c*(u-n[1])+n[0],t[5]=f*(u-n[1])-c*(o-n[0])+n[1],t}function q5(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function jc(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function tCe(t){var e=Si();return t0(e,t),e}const Rot=Object.freeze(Object.defineProperty({__proto__:null,clone:tCe,copy:t0,create:Si,identity:bx,invert:jc,mul:Fc,rotate:Tg,scale:q5,translate:gh},Symbol.toStringTag,{value:"Module"}));var Lt=(function(){function t(e,r){this.x=e||0,this.y=r||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,r){return this.x=e,this.y=r,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,r){this.x+=e.x*r,this.y+=e.y*r},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 r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+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,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.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,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),$_=Math.min,MC=Math.max,K7=Math.abs,cle=["x","y"],Iot=["width","height"],Hw=new Lt,Qw=new Lt,jw=new Lt,zw=new Lt,Ec=iCe(),TM=Ec.minTv,W7=Ec.maxTv,AL=[0,0],St=(function(){function t(e,r,n,i){b6(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=$_(e.x,this.x),n=$_(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=MC(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=MC(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return rCe(Si(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&Lt.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;
107if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=b6(Pot,e.x,e.y,e.width,e.height)),r instanceof t||(r=b6(kot,r.x,r.y,r.width,r.height));var s=!!n;Ec.reset(i,s);var l=Ec.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,d=e.y+e.height-l,A=r.x+l,p=r.x+r.width-l,g=r.y+l,m=r.y+r.height-l;if(u>c||f>d||A>p||g>m)return!1;var y=!(c<A||p<u||d<g||m<f);return(s||a)&&(AL[0]=1/0,AL[1]=0,fle(u,c,A,p,0,s,a,o),fle(f,d,g,m,1,s,a,o),s&&Lt.copy(n,y?Ec.useDir?Ec.dirMinTv:TM:W7)),y},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){mT(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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&mT(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Hw.x=jw.x=r.x,Hw.y=zw.y=r.y,Qw.x=zw.x=r.x+r.width,Qw.y=jw.y=r.y+r.height,Hw.transform(n),zw.transform(n),Qw.transform(n),jw.transform(n),e.x=$_(Hw.x,Qw.x,jw.x,zw.x),e.y=$_(Hw.y,Qw.y,jw.y,zw.y);var l=MC(Hw.x,Qw.x,jw.x,zw.x),u=MC(Hw.y,Qw.y,jw.y,zw.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=bx(e||[]),gh(e,e,Wv(x6,-r.x,-r.y)),q5(e,e,Wv(x6,i,a)),gh(e,e,Wv(x6,n.x,n.y)),e},t})(),J5=St.create,b6=St.set,mT=St.copy,rCe=St.calculateTransform,nCe=St.applyTransform,Oot=St.contain,Pot=new St(0,0,0,0),kot=new St(0,0,0,0),x6=[];function fle(t,e,r,n,i,a,o,s){var l=K7(e-r),u=K7(n-t),c=$_(l,u),f=cle[i],d=cle[1-i],A=Iot[i];e<r||n<t?l<u?(a&&(W7[f]=-l),s&&(o[f]=e,o[A]=0)):(a&&(W7[f]=u),s&&(o[f]=t,o[A]=0)):(o&&(o[f]=MC(t,r),o[A]=$_(e,n)-o[f]),a&&(c<AL[0]||Ec.useDir)&&(AL[0]=$_(c,AL[0]),(l<u||!Ec.bidirectional)&&(TM[f]=l,TM[d]=0,Ec.useDir&&Ec.calcDirMTV()),(l>=u||!Ec.bidirectional)&&(TM[f]=-u,TM[d]=0,Ec.useDir&&Ec.calcDirMTV())))}function iCe(){var t=0,e=new Lt,r=new Lt,n={minTv:new Lt,maxTv:new Lt,useDir:!1,dirMinTv:new Lt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=MC(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),c=l*a.y+u*a.x;if(i(c)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/c,r.y=s*l/c,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return K7(a)<1e-10}return n}var aCe="silent";function Not(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Fot}}function Fot(){fg(this.event)}var Uot=(function(t){vi(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(ud),wD=(function(){function t(e,r){this.x=e,this.y=r}return t})(),Hot=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S6=new St(0,0,0,0),oCe=(function(t){vi(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new wD(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Uot,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr
107=new mot(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ee(Hot,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=sCe(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new wD(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new wD(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Not(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new wD(r,n);if(dle(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new St(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(S6.copy(d.getBoundingRect()),d.transform&&S6.applyTransform(d.transform),S6.intersect(c)&&s.push(d))}if(s.length)for(var A=4,p=Math.PI/12,g=Math.PI*2,m=0;m<u;m+=A)for(var y=0;y<g;y+=p){var b=r+m*Math.cos(y),x=n+m*Math.sin(y);if(dle(s,o,b,x,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Mot);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);
107if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new wD;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(ud);ee(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){oCe.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=sCe(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Nv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function Qot(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?aCe:!0}return!1}function dle(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=Qot(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==aCe)){e.target=o;break}}}function sCe(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var lCe=32,_D=7;function jot(t){for(var e=0;t>=lCe;)e|=t&1,t>>=1;return t+e}function hle(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;zot(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function zot(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Ale(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function C6(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[r+c])>0?o=c+1:l=c}return l}function T6(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[r+c])<0?l=c:o=c+1}return l}function Vot(t,e){var r=_D,n,i,a=0,o=[];n=[],i=[];function s(A,p){n[a]=A,i[a]=p,a+=1}function l(){for(;a>1;){var A=a-2;if(A>=1&&i[A-1]<=i[A]+i[A+1]||A>=2&&i[A-2]<=i[A]+i[A-1])i[A-1]<i[A+1]&&A--;else if(i[A]>i[A+1])break;c(A)}}function u(){for(;a>1;){var A=a-2;A>0&&i[A-1]<i[A+1]&&A--,c(A)}}function c(A){var p=n[A],g=i[A],m=n[A+1],y=i[A+1];i[A]=g+y,A===a-3&&(n[A+1]=n[A+2],i[A+1]=i[A+2]),a--;var b=T6(t[m],t,p,g,0,e);p+=b,g-=b,g!==0&&(y=C6(t[p+g-1],t,m,y,y-1,e),y!==0&&(g<=y?f(p,g,m,y):d(p,g,m,y)))}function f(A,p,g,m){var y=0;for(y=0;y<p;y++)o[y]=t[A+y];var b=0,x=g,T=A;if(t[T++]=t[x++],--m===0){for(y=0;y<p;y++)t[T+y]=o[b+y];return}if(p===1){for(y=0;y<m;y++)t[T+y]=t[x+y];t[T+m]=o[b];return}for(var B=r,R,I,N;;){R=0,I=0,N=!1;do if(e(t[x],o[b])<0){if(t[T++]=t[x++],I++,R=0,--m===0){N=!0;break}}else if(t[T++]=o[b++],R++,I=0,--p===1){N=!0;break}while((R|I)<B);if(N)break;do{if(R=T6(t[x],o,b,p,0,e),R!==0){for(y=0;y<R;y++)t[T+y]=o[b+y];if(T+=R,b+=R,p-=R,p<=1){N=!0;break}}if(t[T++]=t[x++],--m===0){N=!0;break}if(I=C6(o[b],t,x,m,0,e),I!==0){for(y=0;y<I;y++)t[T+y]=t[x+y];if(T+=I,x+=I,m-=I,m===0){N=!0;break}}if(t[T++]=o[b++],--p===1){N=!0;break}B--}while(R>=_D||I>=_D);if(N)break;B<0&&(B=0),B+=2}if(r=B,r<1&&(r=1),p===1){for(y=0;y<m;y++)t[T+y]=t[x+y];t[T+m]=o[b]}else{if(p===0)throw new Error;for(y=0;y<p;y++)t[T+y]=o[b+y]}}function d(A,p,g,m){var y=0;for(y=0;y<m;y++)o[y]=t[g+y];var b=A+p-1,x=m-1,T=g+m-1,B=0,R=0;if(t[T--]=t[b--],--p===0){for(B=T-(m-1),y=0;y<m;y++)t[B+y]=o[y];return}if(m===1){for(T-=p,b-=p,R=T+1,B=b+1,y=p-1;y>=0;y--)t[R+y]=t[B+y];t[T]=o[x];return}for(var I=r;;){var N=0,F=0,Q=!1;do if(e(o[x],t[b])<0){if(t[T--]=t[b--],N++,F=0,--p===0){Q=!0;break}}else if(t[T--]=o[x--],F++,N=0,--m===1){Q=!0;break}while((N|F)<I);if(Q)break;do{if(N=p-T6(o[x],t,A,p,p-1,e),N!==0){for(T-=N,b-=N,p-=N,R=T+1,B=b+1,y=N-1;y>=0;y--)t[R+y]=t[B+y];if(p===0){Q=!0;break}}if(t[T--]=o[x--],--m===1){Q=!0;break}if(F=m-C6(t[b],o,0,m,m-1,e),F!==0){for(T-=F,x-=F,m-=F,R=T+1,B=x+1,y=0;y<F;y++)t[R+y]=o[B+y];if(m<=1){Q=!0;break}}if(t[T--]=t[b--],--p===0){Q=!0;break}I--}while(N>=_D||F>=_D);if(Q)break;I<0&&(I=0),I+=2}if(r=I,r<1&&(r=1),m===1){for(T-=p,b-=p,R=T+1,B=b+1,y=p-1;y>=0;y--)t[R+y]=t[B+y];t[T]=o[x]}else{if(m===0)throw new Error;for(B=T-(m-1),y=0;y<m;y++)t[B+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function MU(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<lCe){a=hle(t,r,n,e),Ale(t,r,n,r+a,e);return}var o=Vot(t,e),s=jot(i);do{if(a=hle(t,r,n,e),a<s){var l=i;l>s&&(l=s),Ale(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Yu=1,EM=2,vC=4,ple=!1;function E6(){ple||(ple=!0,console.warn("z / z2 / zlevel of displayable is invali
107d, which may cause unexpected errors"))}function vle(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Got=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vle}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,MU(n,vle)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),d=0;d<f.length;d++){var A=f[d];e.__dirty&&(A.__dirty|=Yu),this._updateAndAddDisplayable(A,s,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(E6(),p.z=0),isNaN(p.z2)&&(E6(),p.z2=0),isNaN(p.zlevel)&&(E6(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,n);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},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 r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=zt(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})(),v3;v3=Dr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var pL={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,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.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-pL.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?pL.bounceIn(t*2)*.5:pL.bounceOut(t*2-1)*.5+.5}},hN=Math.pow,Oy=Math.sqrt,g3=1e-8,uCe=1e-4,gle=Oy(3),AN=1/3,MA=y0(),Ff=y0(),WC=y0();function _y(t){return t>-g3&&t<g3}function cCe(t){return t>g3||t<-g3}function _o(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function mle(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function m3(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,A=0;if(_y(c)&&_y(f))if(_y(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[A++]=p)}else{var g=f*f-4*c*d;if(_y(g)){var m=f/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(a[A++]=p),y>=0&&y<=1&&(a[A++]=y)}else if(g>0){var b=Oy(g),x=c*s+1.5*o*(-f+b),T=c*s+1.5*o*(-f-b);x<0?x=-hN(-x,AN):x=hN(x,AN),T<0?T=-hN(-T,AN):T=hN(T,AN);var p=(-s-(x+T))/(3*o);p>=0&&p<=1&&(a[A++]=p)}else{var B=(2*c*s-3*o*f)/(2*Oy(c*c*c)),R=Math.acos(B)/3,I=Oy(c),N=Math.cos(R),p=(-s-2*I*N)/(3*o),y=(-s+I*(N+gle*Math.sin(R)))/(3*o),F=(-s+I*(N-gle*Math.sin(R)))/(3*o);p>=0&&p<=1&&(a[A++]=p),y>=0&&y<=1&&(a[A++]=y),F>=0&&F<=1&&(a[A++]=F)}}return A}function fCe(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(_y(o)){if(cCe(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(_y(c))i[0]=-a/(2*o);else if(c>0){var f=Oy(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 r0(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function dCe(t,e,r,n,i,a,o,s,l,u,c){var f,d=.005,A=1/0,p,g,m,y;MA[0]=l,MA[1]=u;for(var b=0;b<1;b+=.05)Ff[0]=_o(t,r,i,o,b),Ff[1]=_o(e,n,a,s,b),m=Iy(MA,Ff),m<A&&(f=b,A=m);A=1/0;for(var x=0;x<32&&!(d<uCe);x++)p=f-d,g=f+d,Ff[0]=_o(t,r,i,o,p),Ff[1]=_o(e,n,a,s,p),m=Iy(Ff,MA),p>=0&&m<A?(f=p,A=m):(WC[0]=_o(t,r,i,o,g),WC[1]=_o(e,n,a,s,g),y=Iy(WC,MA),g<=1&&y<A?(f=g,A=y):d*=.5);return c&&(c[0]=_o(t,r,i,o,f),c[1]=_o(e,n,a,s,f)),Oy(A)}function Kot(t,e,r,n,i,a,o,s,l){for(var u=t,c=e,f=0,d=1/l,A=1;A<=l;A++){var p=A*d,g=_o(t,r,i,o,p),m=_o(e,n,a,s,p),y=g-u,b=m-c;f+=Math.sqrt(y*y+b*b),u=g,c=m}return f}function Yo(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Y7(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function Wot(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(_y(a)){if(cCe(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}
107else{var c=o*o-4*a*s;if(_y(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Oy(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 hCe(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function rR(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function ACe(t,e,r,n,i,a,o,s,l){var u,c=.005,f=1/0;MA[0]=o,MA[1]=s;for(var d=0;d<1;d+=.05){Ff[0]=Yo(t,r,i,d),Ff[1]=Yo(e,n,a,d);var A=Iy(MA,Ff);A<f&&(u=d,f=A)}f=1/0;for(var p=0;p<32&&!(c<uCe);p++){var g=u-c,m=u+c;Ff[0]=Yo(t,r,i,g),Ff[1]=Yo(e,n,a,g);var A=Iy(Ff,MA);if(g>=0&&A<f)u=g,f=A;else{WC[0]=Yo(t,r,i,m),WC[1]=Yo(e,n,a,m);var y=Iy(WC,MA);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=Yo(t,r,i,u),l[1]=Yo(e,n,a,u)),Oy(f)}function Yot(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,A=Yo(t,r,i,d),p=Yo(e,n,a,d),g=A-s,m=p-l;u+=Math.sqrt(g*g+m*m),s=A,l=p}return u}var $ot=/cubic-bezier\(([0-9,\.e ]+)\)/;function nq(t){var e=t&&$ot.exec(t);if(e){var r=e[1].split(","),n=+Rc(r[0]),i=+Rc(r[1]),a=+Rc(r[2]),o=+Rc(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:m3(0,n,a,1,l,s)&&_o(0,i,o,1,s[0])}}}var Zot=(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||Ki,this.ondestroy=e.ondestroy||Ki,this.onrestart=e.onrestart||Ki,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=mt(e)?e:pL[e]||nq(e)},t})(),pCe=(function(){function t(e){this.value=e}return t})(),Xot=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new pCe(e);return this.insertEntry(r),r},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 r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,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})(),yT=(function(){function t(e){this._list=new Xot,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new pCe(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),yle={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 ch(t){return t=Math.round(t),t<0?0:t>255?255:t}function qot(t){return t=Math.round(t),t<0?0:t>360?360:t}function nR(t){return t<0?0:t>1?1:t}function LU(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ch(parseFloat(e)/100*255):ch(parseInt(e,10))}function Yv(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?nR(parseFloat(e)/100):nR(parseFloat(e))}function B6(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function by(t,e,r){return t+(e-t)*r}function Bf(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function $7(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var vCe=new yT(20),pN=null;function IS(t,e){pN&&$7(pN,e),pN=vCe.put(t,pN||e.slice())}function _l(t,e){if(t){e=e||[];var r=vCe.get(t);if(r)return $7(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in yle)return $7(e,yle[n]),IS(t,e),e;var i=n.length;
107if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Bf(e,0,0,0,1);return}return Bf(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),IS(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Bf(e,0,0,0,1);return}return Bf(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),IS(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Bf(e,+u[0],+u[1],+u[2],1):Bf(e,0,0,0,1);c=Yv(u.pop());case"rgb":if(u.length>=3)return Bf(e,LU(u[0]),LU(u[1]),LU(u[2]),u.length===3?c:Yv(u[3])),IS(t,e),e;Bf(e,0,0,0,1);return;case"hsla":if(u.length!==4){Bf(e,0,0,0,1);return}return u[3]=Yv(u[3]),Z7(u,e),IS(t,e),e;case"hsl":if(u.length!==3){Bf(e,0,0,0,1);return}return Z7(u,e),IS(t,e),e;default:return}}Bf(e,0,0,0,1)}}function Z7(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Yv(t[1]),i=Yv(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Bf(e,ch(B6(o,a,r+1/3)*255),ch(B6(o,a,r)*255),ch(B6(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Jot(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;e===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var A=[l*360,u,s];return t[3]!=null&&A.push(t[3]),A}}function y3(t,e){var r=_l(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Yf(r,r.length===4?"rgba":"rgb")}}function est(t){var e=_l(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function vL(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=ch(by(o[0],s[0],l)),r[1]=ch(by(o[1],s[1],l)),r[2]=ch(by(o[2],s[2],l)),r[3]=nR(by(o[3],s[3],l)),r}}var tst=vL;function iq(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=_l(e[i]),s=_l(e[a]),l=n-i,u=Yf([ch(by(o[0],s[0],l)),ch(by(o[1],s[1],l)),ch(by(o[2],s[2],l)),nR(by(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var rst=iq;function $v(t,e,r,n){var i=_l(t);if(t)return i=Jot(i),e!=null&&(i[0]=qot(mt(e)?e(i[0]):e)),r!=null&&(i[1]=Yv(mt(r)?r(i[1]):r)),n!=null&&(i[2]=Yv(mt(n)?n(i[2]):n)),Yf(Z7(i),"rgba")}function iR(t,e){var r=_l(t);if(r&&e!=null)return r[3]=nR(e),Yf(r,"rgba")}function Yf(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function aR(t,e){var r=_l(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function nst(){return Yf([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var wle=new yT(100);function w3(t){if(et(t)){var e=wle.get(t);return e||(e=y3(t,-.1),wle.put(t,e)),e}else if(EI(t)){var r=Fe({},t);return r.colorStops=ze(t.colorStops,function(n){return{offset:n.offset,color:y3(n.color,-.1)}}),r}return t}const ist=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:vL,fastMapToColor:tst,lerp:iq,lift:y3,liftColor:w3,lum:aR,mapToColor:rst,modifyAlpha:iR,modifyHSL:$v,parse:_l,parseCssFloat:Yv,parseCssInt:LU,random:nst,stringify:Yf,toHex:est},Symbol.toStringTag,{value:"Module"}));var _3=Math.round;function oR(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=_l(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var _le=1e-4;function xy(t){return t<_le&&t>-_le}function vN(t){return _3(t*1e3)/1e3}function X7(t){return _3(t*1e4)/1e4}function ast(t){return"matrix("+vN(t[0])+","+vN(t[1])+","+vN(t[2])+","+vN(t[3])+","+X7(t[4])+","+X7(t[5])+")"}var ost={left:"start",right:"end",center:"middle",middle:"middle"};function sst(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function lst(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function ust(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function gCe(t){return t&&!!t.image}function cst(t){return t&&!!t.svgElement}function aq(t){return gCe(t)||cst(t)}
107function mCe(t){return t.type==="linear"}function yCe(t){return t.type==="radial"}function wCe(t){return t&&(t.type==="linear"||t.type==="radial")}function eQ(t){return"url(#"+t+")"}function _Ce(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function bCe(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*fL,i=ft(t.scaleX,1),a=ft(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+_3(o*fL)+"deg, "+_3(s*fL)+"deg)"),l.join(" ")}var fst=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})(),q7=Array.prototype.slice;function Dv(t,e,r){return(e-t)*r+t}function D6(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Dv(e[a],r[a],n);return t}function dst(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Dv(e[o][s],r[o][s],n)}return t}function gN(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function ble(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function hst(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Ast(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:q7.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function gL(t){if(Os(t)){var e=t.length;if(Os(t[0])){for(var r=[],n=0;n<e;n++)r.push(q7.call(t[n]));return r}return q7.call(t)}return t}function RU(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 pst(t){return Os(t&&t[0])?2:1}var mN=0,IU=1,xCe=2,BM=3,J7=4,eW=5,xle=6;function Sle(t){return t===J7||t===eW}function yN(t){return t===IU||t===xCe}var bD=[0,0,0,0],vst=(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,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=xle,l=r;if(Os(r)){var u=pst(r);s=u,(u===1&&!Hr(r[0])||u===2&&!Hr(r[0][0]))&&(o=!0)}else if(Hr(r)&&!Ds(r))s=mN;else if(et(r))if(!isNaN(+r))s=mN;else{var c=_l(r);c&&(l=c,s=BM)}else if(EI(r)){var f=Fe({},l);f.colorStops=ze(r.colorStops,function(A){return{offset:A.offset,color:_l(A.color)}}),mCe(r)?s=J7:yCe(r)&&(s=eW),l=f}a===0?this.valType=s:(s!==this.valType||s===xle)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=mt(n)?n:pL[n]||nq(n)),i.push(d),d},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,m){return g.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=yN(i),u=Sle(i),c=0;c<a;c++){var f=n[c],d=f.value,A=o.value;f.percent=f.time/e,s||(l&&c!==a-1?Ast(d,A,i):u&&hst(d.colorStops,A.colorStops))}if(!s&&i!==eW&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<a;c++)i===mN?n[c].additiveValue=n[c].value-p:i===BM?n[c].additiveValue=gN([],n[c].value,p,-1):yN(i)&&(n[c].additiveValue=i===IU?gN([],n[c].value,p,-1):ble([],n[c].value,p,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===BM,c,f=this._lastFr,d=Math.min,A,p;if(s===1)A=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var g=d(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}p=o[c+1],A=o[c]}if(A&&p){this._lastFr=c,this._lastFrP=r;var m=p.percent-A.percent,y=m===0?1:d((r-A.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=n?this._additiveValue:u?bD:e[l];
107if((yN(a)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?A.rawValue:p.rawValue;else if(yN(a))a===IU?D6(b,A[i],p[i],y):dst(b,A[i],p[i],y);else if(Sle(a)){var x=A[i],T=p[i],B=a===J7;e[l]={type:B?"linear":"radial",x:Dv(x.x,T.x,y),y:Dv(x.y,T.y,y),colorStops:ze(x.colorStops,function(I,N){var F=T.colorStops[N];return{offset:Dv(I.offset,F.offset,y),color:RU(D6([],I.color,F.color,y))}}),global:T.global},B?(e[l].x2=Dv(x.x2,T.x2,y),e[l].y2=Dv(x.y2,T.y2,y)):e[l].r=Dv(x.r,T.r,y)}else if(u)D6(b,A[i],p[i],y),n||(e[l]=RU(b));else{var R=Dv(A[i],p[i],y);n?this._additiveValue=R:e[l]=R}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===mN?e[n]=e[n]+i:r===BM?(_l(e[n],bD),gN(bD,bD,i,1),e[n]=RU(bD)):r===IU?gN(e[n],e[n],i,1):r===xCe&&ble(e[n],e[n],i,1)},t})(),oq=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){$5("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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,r,n){return this.whenWithKeys(e,r,Cr(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new vst(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===BM&&u&&(u=RU(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,gL(u),i),this._trackKeys.push(s)}l.addKeyframe(e,gL(r[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 r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new Zot({life:i,loop:this._loop,delay:this._delay||0,onframe:function(A){r._started=2;var p=r._additiveAnimators;if(p){for(var g=!1,m=0;m<p.length;m++)if(p[m]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,A);var y=r._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](r._target,A)},ondestroy:function(){r._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 r=this._clip;e&&r.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 ze(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=gL(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Cr(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function LC(){return new Date().getTime()}var gst=(function(t){vi(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=LC()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update(
107))},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(v3(n),!r._paused&&r.update())}v3(n)},e.prototype.start=function(){this._running||(this._time=LC(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=LC(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=LC()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new oq(r,n.loop);return this.addAnimator(i),i},e})(ud),mst=300,M6=Dr.domSupported,L6=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ze(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),Cle={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Tle=!1;function tW(t){var e=t.pointerType;return e==="pen"||e==="touch"}function yst(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 R6(t){t&&(t.zrByTouch=!0)}function wst(t,e){return If(t.dom,new _st(t,e),!0)}function SCe(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var _st=(function(){function t(e,r){this.stopPropagation=Ki,this.stopImmediatePropagation=Ki,this.preventDefault=Ki,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Yd={mousedown:function(t){t=If(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=If(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=If(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=If(this.dom,t);var e=t.toElement||t.relatedTarget;SCe(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Tle=!0,t=If(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Tle||(t=If(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=If(this.dom,t),R6(t),this.__lastTouchMoment=ne
107w Date,this.handler.processGesture(t,"start"),Yd.mousemove.call(this,t),Yd.mousedown.call(this,t)},touchmove:function(t){t=If(this.dom,t),R6(t),this.handler.processGesture(t,"change"),Yd.mousemove.call(this,t)},touchend:function(t){t=If(this.dom,t),R6(t),this.handler.processGesture(t,"end"),Yd.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<mst&&Yd.click.call(this,t)},pointerdown:function(t){Yd.mousedown.call(this,t)},pointermove:function(t){tW(t)||Yd.mousemove.call(this,t)},pointerup:function(t){Yd.mouseup.call(this,t)},pointerout:function(t){tW(t)||Yd.mouseout.call(this,t)}};ee(["click","dblclick","contextmenu"],function(t){Yd[t]=function(e){e=If(this.dom,e),this.trigger(t,e)}});var rW={pointermove:function(t){tW(t)||rW.mousemove.call(this,t)},pointerup:function(t){rW.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 bst(t,e){var r=e.domHandlers;Dr.pointerEventsSupported?ee(L6.pointer,function(n){OU(e,n,function(i){r[n].call(t,i)})}):(Dr.touchEventsSupported&&ee(L6.touch,function(n){OU(e,n,function(i){r[n].call(t,i),yst(e)})}),ee(L6.mouse,function(n){OU(e,n,function(i){i=rq(i),e.touching||r[n].call(t,i)})}))}function xst(t,e){Dr.pointerEventsSupported?ee(Cle.pointer,r):Dr.touchEventsSupported||ee(Cle.mouse,r);function r(n){function i(a){a=rq(a),SCe(t,a.target)||(a=wst(t,a),e.domHandlers[n].call(t,a))}OU(e,n,i,{capture:!0})}}function OU(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,G7(t.domTarget,e,r,n)}function I6(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Dot(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Ele=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),Sst=(function(t){vi(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Ele(r,Yd),M6&&(i._globalHandlerScope=new Ele(document,rW)),bst(i,i._localHandlerScope),i}return e.prototype.dispose=function(){I6(this._localHandlerScope),M6&&I6(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,M6&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?xst(this,n):I6(n)}},e})(ud),CCe=1;Dr.hasGlobalWindow&&(CCe=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var b3=CCe,nW=.4,iW="#333",aW="#ccc",Cst="#eee",Ble=bx,Dle=5e-5;function Vw(t){return t>Dle||t<-Dle}var Gw=[],OS=[],O6=Si(),P6=Math.abs,vp=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return n0(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 Vw(this.rotation)||Vw(this.x)||Vw(this.y)||Vw(this.scaleX-1)||Vw(this.scaleY-1)||Vw(this.skewX)||Vw(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Ble(n),this.invTransform=null);return}n=n||Si(),r?this.getLocalTransform(n):Ble(n),e&&(r?Fc(n,e,n):t0(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Si(),jc(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Gw);var n=Gw[0]<0?-1:1,i=Gw[1]<0?-1:1,a=((Gw[0]-n)*r+n)/Gw[0]||0,o=((Gw[1]-i)*r+i)/Gw[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);
107n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Si(),Fc(OS,e.invTransform,r),r=OS);var n=this.originX,i=this.originY;(n||i)&&(O6[4]=n,O6[5]=i,Fc(OS,r,O6),OS[4]-=n,OS[5]-=i,r=OS),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&Wi(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Wi(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&P6(e[0]-1)>1e-10&&P6(e[3]-1)>1e-10?Math.sqrt(P6(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){rp(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,A=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,g=i+l;r[4]=-p*a-d*g*o,r[5]=-g*o-A*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=A*a,r[2]=d*o,u&&Tg(r,r,u),r[4]+=n+c,r[5]+=i+f,r},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})(),n0=vp.getLocalTransform;function YC(){return new vp}var dg=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rp(t,e){return WSe(t,e,dg)}function GA(t){wN||(wN=new yT(100)),t=t||cg;var e=wN.get(t);return e||(e={font:t,strWidthCache:new yT(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Eo.measureText("国",t).width,asciiCharWidth:Eo.measureText("a",t).width},wN.put(t,e)),e}var wN;function Tst(t){if(!(k6>=Mle)){t=t||cg;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Eo.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?k6=Mle:i>2&&k6++,e}}var k6=0,Mle=5;function TCe(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=Tst(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function KA(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=Eo.measureText(e,t.font).width,r.put(e,n)),n}function Lle(t,e,r,n){var i=KA(GA(e),t),a=MI(e),o=wT(0,i,r),s=Ab(0,a,n),l=new St(o,s,i,a);return l}function tQ(t,e,r,n){var i=((t||"")+"").split(`
108`),a=i.length;if(a===1)return Lle(i[0],e,r,n);for(var o=new St(0,0,0,0),s=0;s<i.length;s++){var l=Lle(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function wT(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Ab(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function MI(t){return GA(t).stWideCharWidth}function np(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function x3(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=np(n[0],r.width),u+=np(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var N6="__zr_normal__",F6=dg.concat(["ignore"]),Est=td(dg,function(t,e){return t[e]=!0,t},{ignore:!1}),PS={},Bst=new St(0,0,0,0),_N=[],PU=0,rQ=1,nQ=(function(){function t(e){this.id=qX(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=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]+=r,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 r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var c=n.position!=null,f=n.autoOverflowArea,d=void 0;if((f||c)&&(d=Bst,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect
108()),i||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(PS,n,d):x3(PS,n,d),a.x=PS.x,a.y=PS.y,o=PS.align,s=PS.verticalAlign;var A=n.origin;if(A&&n.rotation!=null){var p=void 0,g=void 0;A==="center"?(p=d.width*.5,g=d.height*.5):(p=np(A[0],d.width),g=np(A[1],d.height)),u=!0,a.originX=-a.x+p+(i?0:d.x),a.originY=-a.y+g+(i?0:d.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var b=y.overflowRect=y.overflowRect||new St(0,0,0,0);a.getLocalTransform(_N),jc(_N,_N),St.copy(b,d),b.applyTransform(_N)}else y.overflowRect=null;var x=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,T=void 0,B=void 0,R=void 0;x&&this.canBeInsideText()?(T=n.insideFill,B=n.insideStroke,(T==null||T==="auto")&&(T=this.getInsideTextFill()),(B==null||B==="auto")&&(B=this.getInsideTextStroke(T),R=!0)):(T=n.outsideFill,B=n.outsideStroke,(T==null||T==="auto")&&(T=this.getOutsideFill()),(B==null||B==="auto")&&(B=this.getOutsideStroke(T),R=!0)),T=T||"#000",(T!==y.fill||B!==y.stroke||R!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=T,y.stroke=B,y.autoStroke=R,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Yu,l&&r.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()?aW:iW},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&_l(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Yf(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},Fe(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(Tt(e))for(var n=e,i=Cr(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==N6)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,F6)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(N6,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===N6,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(zt(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){$5("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=this._textContent,f=Rle(this,c,u,i);f&&!this.__inHover&&(this.__inHover=f),this._applyStateObj(e,u,this._normalState,r,Ole(this,n,l),l);var d=this._textGuide;return c&&c.useState(e,r,n,!!f),d&&d.useState(e,r,n,!!f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=PU,this.__dirty&=~Yu),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=this._textContent,A=Rle(this,d,f,n);A&&!this.__inHover&&(this.__inHover=A);var p=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,Ole(this,r,g),g);var m=this._textGuide;d&&d.useStates(e,r,!!A),m&&m.useStates(e,r,!!A),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!A&&this.__inHover&&(this.__inHover=PU,this.__dirty&=~Yu)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=zt(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=zt(i,e),o=zt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];Fe(r,a),a.textConfig&&(n=n||{},Fe(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==rQ){var s=!(r&&i);r&&r.textConfig?(this.textConfig=Fe({},i?this.textConfig:n.textConfig),Fe(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={}
108,u=!1,c=0;c<F6.length;c++){var f=F6[c],d=a&&Est[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var A=this.animators[c],p=A.targetName;A.getLoop()||A.__changeFinalValue(p?(r||n)[p]:r||n)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,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 r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new vp,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Fe(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|=Yu;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);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 r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new oq(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=zt(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){U6(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){U6(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=U6(this,r,n,i),o=0;o<a.length;o++)a[o].__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.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=PU,e.__dirty=Yu;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Da(nQ,ud);Da(nQ,vp);function U6(t,e,r,n,i){r=r||{};var a=[];ECe(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(p,g){r.during(g)});for(var d=0;d<a.length;d++){var A=a[d];c&&A.done(c),f&&A.aborted(f),r.force&&A.duration(r.duration),A.start(r.easing)}return a}function H6(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function Dst(t){return Os(t[0])}function Mst(t,e,r){if(Os(e[r]))if(Os(t[r])||(t[r]=[]),lu(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),H6(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(Dst(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?H6(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else H6(a,i,o);a.length=i.length}else t[r]=e[r]}
108function Lst(t,e){return t===e||Os(t)&&Os(e)&&Rst(t,e)}function Rst(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function ECe(t,e,r,n,i,a,o,s){for(var l=Cr(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,A=!Tt(a),p=t.animators,g=[],m=0;m<l.length;m++){var y=l[m],b=n[y];if(b!=null&&r[y]!=null&&(A||a[y]))if(Tt(b)&&!Os(b)&&!EI(b)){if(e){s||(r[y]=b,t.updateDuringAnimation(e));continue}ECe(t,y,r[y],b,i,a&&a[y],o,s)}else g.push(y);else s||(r[y]=b,t.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!f&&x)for(var T=0;T<p.length;T++){var B=p[T];if(B.targetName===e){var R=B.stopTracks(g);if(R){var I=zt(p,B);p.splice(I,1)}}}if(i.force||(g=ln(g,function(j){return!Lst(n[j],r[j])}),x=g.length),x>0||i.force&&!o.length){var N=void 0,F=void 0,Q=void 0;if(s){F={},d&&(N={});for(var T=0;T<x;T++){var y=g[T];F[y]=r[y],d?N[y]=n[y]:r[y]=n[y]}}else if(d){Q={};for(var T=0;T<x;T++){var y=g[T];Q[y]=gL(r[y]),Mst(r,n,y)}}var B=new oq(r,!1,!1,f?ln(p,function(W){return W.targetName===e}):null);B.targetName=e,i.scope&&(B.scope=i.scope),d&&N&&B.whenWithKeys(0,N,g),Q&&B.whenWithKeys(0,Q,g),B.whenWithKeys(u??500,s?F:n,g).delay(c||0),t.addAnimator(B,e),o.push(B)}}function Rle(t,e,r,n){return!(r&&r.hoverLayer||n)||Ile(t)||e&&Ile(e)?PU:rQ}function Ile(t){return t.type==="text"||t.type==="tspan"}function Ole(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var xt=(function(t){vi(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=zt(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=zt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new St(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(St.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(nQ);xt.prototype.type="group";var kU={},Z_={};function Ist(t){delete Z_[t]}function Ost(t){if(!t)return!1;if(typeof t=="string")return aR(t,1)<nW;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=aR(e[i].color,1);return r/=n,r<nW}return!1}var Pst=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new Got,o=n.renderer||"canvas";kU[o]||(o=Cr(kU)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new kU[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Dr.node&&!Dr.worker&&!l?new Sst(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Dr.touchEventsSupported:!!c,d=44,A;
108f&&(A=ft(n.pointerSize,d)),this.handler=new oCe(a,s,u,s.root,A),this.animation=new gst({stage:{update:l?null:function(){return i._flush(!1)}}}),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,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Ost(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||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=LC(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=LC();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},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,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof xt&&e[r].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,Ist(this.id))},t})();function oW(t,e){var r=new Pst(qX(),t,e);return Z_[r.id]=r,r}function kst(t){t.dispose()}function Nst(){for(var t in Z_)Z_.hasOwnProperty(t)&&Z_[t].dispose();Z_={}}function Fst(t){return Z_[t]}function BCe(t,e){kU[t]=e}var sW;function DCe(t){if(typeof sW=="function")return sW(t)}function MCe(t){sW=t}var Ust="6.1.0";const Hst=Object.freeze(Object.defineProperty({__proto__:null,dispose:kst,disposeAll:Nst,getElementSSRData:DCe,getInstance:Fst,init:oW,registerPainter:BCe,registerSSRDataGetter:MCe,version:Ust},Symbol.toStringTag,{value:"Module"}));var Ple=1e-4,S3=20,Qst=14;function jst(t){return t.replace(/^\s+|\s+$/g,"")}var bn=Math.min,cr=Math.max,Vi=Math.abs,ip=Math.round,rd=Math.floor,xx=Math.ceil,Sx=Math.pow,Nb=Math.log,sR=Math.LN10,C3=Math.PI,zst=Math.random;function Jr(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var it=Vst;function Vst(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return T3(t,e,r)}function T3(t,e,r){return et(t)?LCe(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function Gst(t){return et(t)&&LCe(t)}function LCe(t){return!!jst(t).match(/%$/)}function Kr(t,e,r){return isNaN(e)?r?""+t:+t:(e=bn(cr(0,e),S3),t=(+t).toFixed(e),r?t:+t)}function Kst(t,e,r){return e==null&&(e=10),Kr(t,e,r)}function qo(t){return t.sort(function(e,r){return e-r}),t}function PA(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(ip(t*e)/e===t)return r}return RCe(t)}function RCe(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return cr(0,o-n)}function Wst(t,e){var r=rd(Nb(t[1]-t[0])/sR),n=ip(Nb(Vi(e[1]-e[0]))/sR),i=bn(cr(-r+n,0),S3);return isFinite(i)?i:S3}function sq(t,e,r){var n=Vi(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=Nb(2*Vi(r||1)*Vi(n))/sR,a=Nb(Vi(e))/sR,o=cr(0,xx(-i+a));return isFinite(o)||(o=NaN),o}function Yst(t,e,r){if(!t[e])return 0;var n=ICe(t,r);return n[e]||0}function ICe(t,e){var r=td(t,function(A,p){return A+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Sx(10,e),i=ze(t,function(A){return(isNaN(A)?0:A)/r*n*100}),a=n*100,o=ze(i,function(A){return rd(A)}),s=td(o,function(A,p){return A+p},0),l=ze(i,function(A,p){return A-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return ze(o,function(A){return A/n})}function b_(t,e){var r=cr(PA(t),PA(e)),n=t+e;return r>S3?n:Kr(n,r)}var lR=Sx(2,53)-1;function lq(t){var e=C3*2;return(t%e+e)%e}function Fb(t){return t>-Ple&&t<Ple}var $st=/^(?:(\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 gp(t){if(t instanceof Date)return t;if(et(t)){var e=$st.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(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(ip(t))}function uq(t){return Sx(10,iQ(t))}function iQ(t){if(t===0)return 0;var e=rd(Nb(t)/sR);return t/Sx(10,e)>=10&&e++,e}var OCe=2;function aQ(t,e){var r=iQ(t),n=Sx(10,r),i=t/n,a;return e===OCe?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,Kr(t,-r)}function NU(t,e){var r=(t.length-1)*e+1,n=rd(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function lW(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}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 ap(t){var e=parseFloat(t);return e==t&&(e!==0||!et(t)||t.indexOf("x")<=0)?e:NaN}function cq(t){return!isNaN(ap(t))}function fq(){return ip(zst()*9)}function PCe(t,e){return e===0?t:PCe(e,t%e)}function kle(t,e){return t==null?e:e==null?t:t*e/PCe(t,e)}
108function nd(t){return t!=null&&isFinite(t)}var Zst="[ECharts] ",Xst=typeof console<"u"&&console.warn&&console.log;function qst(t,e,r){Xst&&console[t](Zst+e)}function kCe(t,e){qst("error",t)}function sn(t){throw new Error(t)}function Nle(t,e,r){return(e-t)*r+t}var NCe="series\0",FCe="\0_ec_\0";function Kn(t){return t instanceof Array?t:t==null?[]:[t]}function Ub(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Fle=["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 sE(t){return Tt(t)&&!je(t)&&!(t instanceof Date)?t.value:t}function Jst(t){return Tt(t)&&!(t instanceof Array)}function UCe(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=st();ee(e,function(l,u){if(!Tt(l)){e[u]=null;return}});var s=elt(t,o,r);return(n||i)&&tlt(s,t,o,e),n&&rlt(s,e),n||i?nlt(s,e,i):a&&ilt(s,e),alt(s),s}function elt(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||uR(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function tlt(t,e,r,n){ee(n,function(i,a){if(!(!i||i.id==null)){var o=mL(i.id),s=r.get(o);if(s!=null){var l=t[s];Ps(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function rlt(t,e){ee(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!uR(r)&&!uR(a)&&HCe("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function nlt(t,e,r){ee(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||uR(i.existing)||i.existing&&n.id!=null&&!HCe("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function ilt(t,e){ee(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function alt(t){var e=st();ee(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),ee(t,function(r){var n=r.newOption;Ps(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),ee(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Tt(a)){if(o.name=a.name!=null?mL(a.name):i?i.name:NCe+n,i)o.id=mL(i.id);else if(a.id!=null)o.id=mL(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function HCe(t,e,r){var n=io(e[t],null),i=io(r[t],null);return n!=null&&i!=null&&n===i}function mL(t){return io(t,"")}function io(t,e){return t==null?e:et(t)?t:Hr(t)||d3(t)?t+"":e}function dq(t){var e=t.name;return!!(e&&e.indexOf(NCe))}function uR(t){return t&&t.id!=null&&mL(t.id).indexOf(FCe)===0}function olt(t){return FCe+t}function slt(t,e,r){ee(t,function(n){var i=n.newOption;Tt(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=llt(e,i,n.existing,r))})}function llt(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function ult(t,e){var r={},n={};return i(t||[],r),i(e||[],n,r),[a(r),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=io(o[u].seriesId,null);if(f==null)return;for(var d=Kn(o[u].dataIndex),A=l&&l[f],p=0,g=d.length;p<g;p++){var m=d[p];A&&A[m]?A[m]=null:(s[f]||(s[f]={}))[m]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Hb(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return je(e.dataIndex)?ze(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return je(e.name)?ze(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}
108function qt(){var t="__ec_inner_"+clt++;return function(e){return e[t]||(e[t]={})}}var clt=fq();function $C(t,e,r){var n=hq(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=lE(t,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function hq(t,e){var r;if(et(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=st(),a={},o=!1;return ee(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&zt(e.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ta={useDefault:!0,enableAll:!1,enableNone:!1},flt={useDefault:!1,enableAll:!0,enableNone:!0};function lE(t,e,r,n){n=n||ta;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function Aq(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function QCe(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function dlt(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function hlt(t){return t==="auto"?Dr.domSupported?"html":"richText":t||"html"}function uW(t,e){var r=st(),n=[];return ee(t,function(i){var a=e(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function jCe(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Hr(n)){var o=Nle(r||0,n,i);return Kr(o,a?Math.max(PA(r||0),PA(n)):e)}else{if(et(n))return i<1?r:n;for(var s=[],l=r,u=n,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 A=l&&l[f]?l[f]:0,p=u[f],o=Nle(A,p,i);s[f]=Kr(o,a?Math.max(PA(A),PA(p)):e)}}return s}}var Py=(function(){function t(){}return t.prototype.reset=function(e,r,n,i){return this._list=e,this._step=i=i||1,this._idx=r,this._end=n??(i>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function Q6(t){t.option=t.parentModel=t.ecModel=null}function Cs(){return[1/0,-1/0]}function cW(t,e){hg(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function zCe(t,e){hg(e)&&e<t[0]&&(t[0]=e)}function VCe(t,e){hg(e)&&e>t[1]&&(t[1]=e)}function Alt(t,e){Qb(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function hg(t){return t!=null&&isFinite(t)}function Qb(t,e){return hg(t)&&hg(e)&&t<=e}function plt(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function FU(t){Qb(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function uE(){var t="__ec_once_"+vlt++;return function(e,r){ut(e,t)||(e[t]=1,r())}}var vlt=fq();function oQ(t,e,r){var n=st(),i=0;ee(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function glt(t){return t.value+""}function mlt(t){return t+""}function WA(t,e){return ft(e,!0)?t.seriesIndex+2:0}function GCe(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function lo(t,e){return{seriesType:t,overallReset:e}}function LI(t){return{overallReset:t}}var ylt=".",Kw="___EC__COMPONENT__CONTAINER___",KCe="___EC__EXTENDED_CLASS___";function kA(t){var e={main:"",sub:""};if(t){var r=t.split(ylt);e.main=r[0]||"",e.sub=r[1]||""}return e}function wlt(t){Ps(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function _lt(t){return!!(t&&t[KCe])}function pq(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return blt(n)?i=(function(a){Ee(o,a);function o(){return a.apply(this,arguments)||this}return o}
108)(n):(i=function(){(r.$constructor||n).apply(this,arguments)},JX(i,this)),Fe(i.prototype,r),i[KCe]=!0,i.extend=this.extend,i.superCall=Clt,i.superApply=Tlt,i.superClass=n,i}}function blt(t){return mt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function WCe(t,e){t.extend=e.extend}var xlt=Math.round(Math.random()*10);function Slt(t){var e=["__\0is_clz",xlt++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function Clt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function Tlt(t,e,r){return this.superClass.prototype[e].apply(t,r)}function sQ(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){wlt(i),n.prototype.type=i;var a=kA(i);if(!a.sub)e[a.main]=n;else if(a.sub!==Kw){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Kw]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=kA(n),a=[],o=e[i.main];return o&&o[Kw]?ee(o,function(s,l){l!==Kw&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=kA(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return ee(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=kA(n),a=e[i.main];return a&&a[Kw]};function r(n){var i=e[n.main];return(!i||!i[Kw])&&(i=e[n.main]={},i[Kw]=!0),i}}function jb(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&zt(i,l)>=0||a&&zt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var Elt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Blt=jb(Elt),Dlt=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Blt(this,e,r)},t})(),fW=new yT(50);function Mlt(t){if(typeof t=="string"){var e=fW.get(t);return e&&e.image}else return t}function vq(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=fW.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!lQ(e)&&a.pending.push(o)):(e=Eo.loadImage(t,Ule,Ule),e.__zrImageSrc=t,fW.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Ule(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function lQ(t){return t&&t.width&&t.height}var j6=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Llt(t,e,r,n,i){var a={};return YCe(a,t,e,r,n,i),a.text}function YCe(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
109`);a=$Ce(r,n,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)ZCe(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
110`),t.isTruncated=s}function $Ce(t,e,r,n){n=n||{};var i=Fe({},n);r=ft(r,"..."),i.maxIterations=ft(n.maxIterations,2);var a=i.minChar=ft(n.minChar,0),o=i.fontMeasureInfo=GA(e),s=o.asciiCharWidth;i.placeholder=ft(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var c=KA(o,r);return c>l&&(r="",c=0),l=t-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=t,i}function ZCe(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=KA(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?Rlt(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=KA(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function Rlt(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=TCe(r,t.charCodeAt(i));return i}function Ilt(t,e,r,n){var i=gq(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=a==="truncate",f=MI(u),d=ft(e.lineHeight,f),A=e.lineOverflow==="truncate",p=!1,g=e.width;g==null&&r!=null&&(g=r-s);var m=e.height;m==null&&n!=null&&(m=n-l);var y;g!=null&&(a==="break"||a==="breakAll")?y=i?XCe(i,e.font,g,a==="breakAll",0).lines:[]:y=i?i.split(`
111`):[];var b=y.length*d;if(m==null&&(m=b),b>m&&A){var x=Math.floor(m/d);p=p||y.length>x,y=y.slice(0,x),b=y.length*d}if(i&&c&&g!=null)for(var T=$Ce(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),B={},R=0;R<y.length;R++)ZCe(B,y[R],T),y[R]=B.textLine,p=p||B.isTruncated;for(var I=m,N=0,F=GA(u),R=0;R<y.length;R++)N=Math.max(KA(F,y[R]),N);g==null&&(g=N);var Q=g;return I+=l,Q+=s,{lines:y,height:m,outerWidth:Q,outerHeight:I,lineHeight:d,calculatedLineHeight:f,contentWidth:N,contentHeight:b,width:g,isTruncated:p}}var Olt=(function(){function t(){}return t})(),Hle=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),Plt=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function klt(t,e,r,n,i){var a=new Plt,o=gq(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&r!=null&&(c=r-l);var f=e.height;f==null&&n!=null&&(f=n-u);for(var d=e.overflow,A=(d==="break"||d==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:d==="breakAll"}:null,p=j6.lastIndex=0,g;(g=j6.exec(o))!=null;){var m=g.index;m>p&&z6(a,o.substring(p,m),e,A),z6(a,g[2],e,A,g[1]),p=j6.lastIndex}p<o.length&&z6(a,o.substring(p,o.length),e,A);var y=[],b=0,x=0,T=d==="truncate",B=e.lineOverflow==="truncate",R={};function I(we,Me,ge){we.width=Me,we.lineHeight=ge,b+=ge,x=Math.max(x,Me)}e:for(var N=0;N<a.lines.length;N++){for(var F=a.lines[N],Q=0,j=0,W=0;W<F.tokens.length;W++){var V=F.tokens[W],Y=V.styleName&&e.rich[V.styleName]||{},G=V.textPadding=Y.padding,K=G?G[1]+G[3]:0,X=V.font=Y.font||e.font;V.contentHeight=MI(X);var q=ft(Y.height,V.contentHeight);if(V.innerHeight=q,G&&(q+=G[0]+G[2]),V.height=q,V.lineHeight=Ju(Y.lineHeight,e.lineHeight,q),V.align=Y&&Y.align||i,V.verticalAlign=Y&&Y.verticalAlign||"middle",B&&f!=null&&b+V.lineHeight>f){var ne=a.lines.length;W>0?(F.tokens=F.tokens.slice(0,W),I(F,j,Q),a.lines=a.lines.slice(0,N+1)):a.lines=a.lines.slice(0,N),a.isTruncated=a.isTruncated||a.lines.length<ne;break e}var te=Y.width,ce=te==null||te==="auto";if(typeof te=="string"&&te.charAt(te.length-1)==="%")V.percentWidth=te,y.push(V),V.contentWidth=KA(GA(X),V.text);else{if(ce){var he=Y.backgroundColor,ve=he&&he.image;ve&&(ve=Mlt(ve),lQ(ve)&&(V.width=Math.max(V.width,ve.width*q/ve.height)))}var ae=T&&c!=null?c-j:null;ae!=null&&ae<V.width?!ce||ae<K?(V.text="",V.width=V.contentWidth=0):(YCe(R,V.text,ae-K,X,e.ellipsis,{minChar:e.truncateMinChar}),V.text=R.text,a.isTruncated=a.isTruncated||R.isTruncated,V.width=V.contentWidth=KA(GA(X),V.text)):V.contentWidth=KA(GA(X),V.text)}V.width+=K,j+=V.width,Y&&(Q=Math.max(Q,V.lineHeight))}I(F,j,Q)}a.outerWidth=a.width=ft(c,x),a.outerHeight=a.height=ft(f,b),a.contentHeight=b,a.contentWidth=x,a.outerWidth+=l,a.outerHeight+=u;for(var N=0;N<y.length;N++){var V=y[N],fe=V.percentWidth;V.width=parseInt(fe,10)/100*a.width}return a}function z6(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,A=d?d[1]+d[3]:0;
111if(o.width!=null&&o.width!=="auto"){var p=np(o.width,n.width)+A;s.length>0&&p+n.accumWidth>n.width&&(c=e.split(`
112`),u=!0),n.accumWidth=p}else{var g=XCe(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+A,f=g.linesWidths,c=g.lines}}c||(c=e.split(`
113`));for(var m=GA(l),y=0;y<c.length;y++){var b=c[y],x=new Olt;if(x.styleName=i,x.text=b,x.isLineHolder=!b&&!a,typeof o.width=="number"?x.width=o.width:x.width=f?f[y]:KA(m,b),!y&&!u){var T=(s[s.length-1]||(s[0]=new Hle)).tokens,B=T.length;B===1&&T[0].isLineHolder?T[0]=x:(b||!B||a)&&T.push(x)}else s.push(new Hle([x]))}}function Nlt(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Flt=td(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ult(t){return Nlt(t)?!!Flt[t]:!0}function XCe(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=GA(e),d=0;d<t.length;d++){var A=t.charAt(d);if(A===`
114`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=TCe(f,A.charCodeAt(0)),g=n?!1:!Ult(A);if(a.length?c+p>r:i+c+p>r){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=A,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=A,c=p)):g?(a.push(l),o.push(u),l=A,u=p):(a.push(A),o.push(p));continue}c+=p,g?(l+=A,u+=p):(l&&(s+=l,l="",u=0),s+=A)}return l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}function Qle(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;St.set(jle,wT(r,o,i),Ab(n,s,a),o,s),St.intersect(e,jle,null,zle);var l=zle.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=wT(l.x,l.width,i,!0),t.baseY=Ab(l.y,l.height,a,!0)}}var jle=new St(0,0,0,0),zle={outIntersectRect:{},clamp:!0};function gq(t){return t!=null?t+="":t=""}function Hlt(t){var e=gq(t.text),r=t.font,n=KA(GA(r),e),i=MI(r);return dW(t,n,i,null)}function dW(t,e,r,n){var i=new St(wT(t.x||0,e,t.textAlign),Ab(t.y||0,r,t.textBaseline),e,r),a=n??(qCe(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function qCe(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var hW="__zr_style_"+Math.round(Math.random()*10),pb={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},uQ={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};pb[hW]=!0;var Vle=["z","z2","invisible"],Qlt=["invisible"],id=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Cr(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&jlt(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new St(0,0,0,0)),n?St.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new St(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Fe(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=EM,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&EM)},e.prototype.styleUpdated=function(){this.__dirty&=~EM},e.prototype.createStyle=function(r){return DI(pb,r)},e.prototype.useStyle=function(r){r[hW]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[hW]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Vle)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===rQ,c;if(n&&n.style?o?a?c=n.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(c,n.style)):l&&(c=i.style),c)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var d=Cr(f),A=0;A<d.length;A++){var p=d[A];p in c&&(c[p]=c[p],this.style[p]=f[p])}for(var g=Cr(c),A=0;A<g.length;A++){var p=g[A];this.style[p]=this.style[p]}this._transitionState(r,{style:c},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(c):this.useStyle(c);if(!u)for(var m=this.__inHover?Qlt:Vle,A=0;A<m.length;A++){var p=m[A];n&&n[p]!=null?this[p]=n[p]:l&&i[p]!=null&&(this[p]=i[p])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return Fe(r,n),r},e.prototype.getAnimationStyleProps=function(){return uQ},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Yu|EM})(),e})(nQ),V6=new St(0,0,0,0),G6=new St(0,0,0,0);
114function jlt(t,e,r){return V6.copy(t.getBoundingRect()),t.transform&&V6.applyTransform(t.transform),G6.width=e,G6.height=r,!V6.intersect(G6)}var Ku=Math.min,Wu=Math.max,K6=Math.sin,W6=Math.cos,Ww=Math.PI*2,bN=y0(),xN=y0(),SN=y0();function cQ(t,e,r){if(t.length!==0){for(var n=t[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],i=Ku(i,n[0]),a=Wu(a,n[0]),o=Ku(o,n[1]),s=Wu(s,n[1]);e[0]=i,e[1]=o,r[0]=a,r[1]=s}}function Gle(t,e,r,n,i,a){i[0]=Ku(t,r),i[1]=Ku(e,n),a[0]=Wu(t,r),a[1]=Wu(e,n)}var Kle=[],Wle=[];function zlt(t,e,r,n,i,a,o,s,l,u){var c=fCe,f=_o,d=c(t,r,i,o,Kle);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var A=0;A<d;A++){var p=f(t,r,i,o,Kle[A]);l[0]=Ku(p,l[0]),u[0]=Wu(p,u[0])}d=c(e,n,a,s,Wle);for(var A=0;A<d;A++){var g=f(e,n,a,s,Wle[A]);l[1]=Ku(g,l[1]),u[1]=Wu(g,u[1])}l[0]=Ku(t,l[0]),u[0]=Wu(t,u[0]),l[0]=Ku(o,l[0]),u[0]=Wu(o,u[0]),l[1]=Ku(e,l[1]),u[1]=Wu(e,u[1]),l[1]=Ku(s,l[1]),u[1]=Wu(s,u[1])}function Vlt(t,e,r,n,i,a,o,s){var l=hCe,u=Yo,c=Wu(Ku(l(t,r,i),1),0),f=Wu(Ku(l(e,n,a),1),0),d=u(t,r,i,c),A=u(e,n,a,f);o[0]=Ku(t,i,d),o[1]=Ku(e,a,A),s[0]=Wu(t,i,d),s[1]=Wu(e,a,A)}function Glt(t,e,r,n,i,a,o,s,l){var u=Fv,c=Uv,f=Math.abs(i-a);if(f%Ww<1e-4&&f>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(bN[0]=W6(i)*r+t,bN[1]=K6(i)*n+e,xN[0]=W6(a)*r+t,xN[1]=K6(a)*n+e,u(s,b
114N,xN),c(l,bN,xN),i=i%Ww,i<0&&(i=i+Ww),a=a%Ww,a<0&&(a=a+Ww),i>a&&!o?a+=Ww:i<a&&o&&(i+=Ww),o){var d=a;a=i,i=d}for(var A=0;A<a;A+=Math.PI/2)A>i&&(SN[0]=W6(A)*r+t,SN[1]=K6(A)*n+e,u(s,SN,s),c(l,SN,l))}var qn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Yw=[],$w=[],dA=[],zm=[],hA=[],AA=[],Y6=Math.min,$6=Math.max,Zw=Math.cos,Xw=Math.sin,hv=Math.abs,AW=Math.PI,ey=AW*2,Z6=typeof Float32Array<"u",xD=[];function X6(t){var e=Math.round(t/AW*1e8)/1e8;return e%2*AW}function fQ(t,e){var r=X6(t[0]);r<0&&(r+=ey);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=ey?i=r+ey:e&&r-i>=ey?i=r-ey:!e&&r>i?i=r+(ey-X6(r-i)):e&&r<i&&(i=r-(ey-X6(i-r))),t[0]=r,t[1]=i}var op=(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,r,n){n=n||0,n>0&&(this._ux=hv(n/b3/e)||0,this._uy=hv(n/b3/r)||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,r){return this._drawPendingPt(),this.addData(qn.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=hv(e-this._xi),i=hv(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(qn.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(qn.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(qn.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),xD[0]=i,xD[1]=a,fQ(xD,o),i=xD[0],a=xD[1];var s=a-i;return this.addData(qn.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Zw(a)*n+e,this._yi=Xw(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(qn.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(qn.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,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){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Z6&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(Z6&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,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=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Z6&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){dA[0]=dA[1]=hA[0]=hA[1]=Number.MAX_VALUE,zm[0]=zm[1]=AA[0]=AA[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case qn.M:r=i=e[o++],n=a=e[o++],hA[0]=i,hA[1]=a,AA[0]=i,AA[1]=a;break;case qn.L:Gle(r,n,e[o],e[o+1],hA,AA),r=e[o++],n=e[o++];break;case qn.C:zlt(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],hA,AA),r=e[o++],n=e[o++];break;case qn.Q:Vlt(r,n,e[o++],e[o++],e[o],e[o+1],hA,AA),r=e[o++],n=e[o++];break;case qn.A:var u=e[o++],c=e[o++],f=e[o++],d=e[o++],A=e[o++],p=e[o++]+A;o+=1;var g=!e[o++];
114l&&(i=Zw(A)*f+u,a=Xw(A)*d+c),Glt(u,c,f,d,A,p,g,hA,AA),r=Zw(p)*f+u,n=Xw(p)*d+c;break;case qn.R:i=r=e[o++],a=n=e[o++];var m=e[o++],y=e[o++];Gle(i,a,i+m,a+y,hA,AA);break;case qn.Z:r=i,n=a;break}Fv(dA,dA,hA),Uv(zm,zm,AA)}return o===0&&(dA[0]=dA[1]=zm[0]=zm[1]=0),new St(dA[0],dA[1],zm[0]-dA[0],zm[1]-dA[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var A=e[d++],p=d===1;p&&(a=e[d],o=e[d+1],s=a,l=o);var g=-1;switch(A){case qn.M:a=s=e[d++],o=l=e[d++];break;case qn.L:{var m=e[d++],y=e[d++],b=m-a,x=y-o;(hv(b)>n||hv(x)>i||d===r-1)&&(g=Math.sqrt(b*b+x*x),a=m,o=y);break}case qn.C:{var T=e[d++],B=e[d++],m=e[d++],y=e[d++],R=e[d++],I=e[d++];g=Kot(a,o,T,B,m,y,R,I,10),a=R,o=I;break}case qn.Q:{var T=e[d++],B=e[d++],m=e[d++],y=e[d++];g=Yot(a,o,T,B,m,y,10),a=m,o=y;break}case qn.A:var N=e[d++],F=e[d++],Q=e[d++],j=e[d++],W=e[d++],V=e[d++],Y=V+W;d+=1,p&&(s=Zw(W)*Q+N,l=Xw(W)*j+F),g=$6(Q,j)*Y6(ey,Math.abs(V)),a=Zw(Y)*Q+N,o=Xw(Y)*j+F;break;case qn.R:{s=a=e[d++],l=o=e[d++];var G=e[d++],K=e[d++];g=G*2+K*2;break}case qn.Z:{var b=s-a,x=l-o;g=Math.sqrt(b*b+x*x),a=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,A=r<1,p,g,m=0,y=0,b,x=0,T,B;if(!(A&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=r*g,!b)))e:for(var R=0;R<o;){var I=n[R++],N=R===1;switch(N&&(u=n[R],c=n[R+1],s=u,l=c),I!==qn.L&&x>0&&(e.lineTo(T,B),x=0),I){case qn.M:s=u=n[R++],l=c=n[R++],e.moveTo(u,c);break;case qn.L:{f=n[R++],d=n[R++];var F=hv(f-u),Q=hv(d-c);if(F>i||Q>a){if(A){var j=p[y++];if(m+j>b){var W=(b-m)/j;e.lineTo(u*(1-W)+f*W,c*(1-W)+d*W);break e}m+=j}e.lineTo(f,d),u=f,c=d,x=0}else{var V=F*F+Q*Q;V>x&&(T=f,B=d,x=V)}break}case qn.C:{var Y=n[R++],G=n[R++],K=n[R++],X=n[R++],q=n[R++],ne=n[R++];if(A){var j=p[y++];if(m+j>b){var W=(b-m)/j;r0(u,Y,K,q,W,Yw),r0(c,G,X,ne,W,$w),e.bezierCurveTo(Yw[1],$w[1],Yw[2],$w[2],Yw[3],$w[3]);break e}m+=j}e.bezierCurveTo(Y,G,K,X,q,ne),u=q,c=ne;break}case qn.Q:{var Y=n[R++],G=n[R++],K=n[R++],X=n[R++];if(A){var j=p[y++];if(m+j>b){var W=(b-m)/j;rR(u,Y,K,W,Yw),rR(c,G,X,W,$w),e.quadraticCurveTo(Yw[1],$w[1],Yw[2],$w[2]);break e}m+=j}e.quadraticCurveTo(Y,G,K,X),u=K,c=X;break}case qn.A:var te=n[R++],ce=n[R++],he=n[R++],ve=n[R++],ae=n[R++],fe=n[R++],we=n[R++],Me=!n[R++],ge=he>ve?he:ve,be=hv(he-ve)>.001,Ve=ae+fe,Re=!1;if(A){var j=p[y++];m+j>b&&(Ve=ae+fe*(b-m)/j,Re=!0),m+=j}if(be&&e.ellipse?e.ellipse(te,ce,he,ve,we,ae,Ve,Me):e.arc(te,ce,ge,ae,Ve,Me),Re)break e;N&&(s=Zw(ae)*he+te,l=Xw(ae)*ve+ce),u=Zw(Ve)*he+te,c=Xw(Ve)*ve+ce;break;case qn.R:s=u=n[R],l=c=n[R+1],f=n[R++],d=n[R++];var Se=n[R++],nt=n[R++];if(A){var j=p[y++];if(m+j>b){var qe=b-m;e.moveTo(f,d),e.lineTo(f+Y6(qe,Se),d),qe-=Se,qe>0&&e.lineTo(f+Se,d+Y6(qe,nt)),qe-=nt,qe>0&&e.lineTo(f+$6(Se-qe,0),d+nt),qe-=Se,qe>0&&e.lineTo(f,d+$6(nt-qe,0));break e}m+=j}e.rect(f,d,Se,nt);break;case qn.Z:if(A){var j=p[y++];if(m+j>b){var W=(b-m)/j;e.lineTo(u*(1-W)+s*W,c*(1-W)+l*W);break e}m+=j}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=qn,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function oy(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Klt(t,e,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>n+f&&c>a+f&&c>s+f||c<e-f&&c<n-f&&c<a-f&&c<s-f||u>t+f&&u>r+f&&u>i+f&&u>o+f||u<t-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=dCe(t,e,r,n,i,a,o,s,u,c,null);return d<=f/2}function JCe(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var c=ACe(t,e,r,n,i,a,s,l,null);return c<=u/2}var Yle=Math.PI*2;function Ic(t){return t%=Yle,t<0&&(t+=Yle),t}var SD=Math.PI*2;function Wlt(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%SD<1e-4)return!0;
114if(a){var f=n;n=Ic(i),i=Ic(f)}else n=Ic(n),i=Ic(i);n>i&&(i+=SD);var d=Math.atan2(l,s);return d<0&&(d+=SD),d>=n&&d<=i||d+SD>=n&&d+SD<=i}function Mv(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var Vm=op.CMD,qw=Math.PI*2,Ylt=1e-4;function $lt(t,e){return Math.abs(t-e)<Ylt}var Yl=[-1,-1,-1],Pf=[-1,-1];function Zlt(){var t=Pf[0];Pf[0]=Pf[1],Pf[1]=t}function Xlt(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var c=m3(e,n,a,s,u,Yl);if(c===0)return 0;for(var f=0,d=-1,A=void 0,p=void 0,g=0;g<c;g++){var m=Yl[g],y=m===0||m===1?.5:1,b=_o(t,r,i,o,m);b<l||(d<0&&(d=fCe(e,n,a,s,Pf),Pf[1]<Pf[0]&&d>1&&Zlt(),A=_o(e,n,a,s,Pf[0]),d>1&&(p=_o(e,n,a,s,Pf[1]))),d===2?m<Pf[0]?f+=A<e?y:-y:m<Pf[1]?f+=p<A?y:-y:f+=s<p?y:-y:m<Pf[0]?f+=A<e?y:-y:f+=s<A?y:-y)}return f}function qlt(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=Wot(e,n,a,s,Yl);if(l===0)return 0;var u=hCe(e,n,a);if(u>=0&&u<=1){for(var c=0,f=Yo(e,n,a,u),d=0;d<l;d++){var A=Yl[d]===0||Yl[d]===1?.5:1,p=Yo(t,r,i,Yl[d]);p<o||(Yl[d]<u?c+=f<e?A:-A:c+=a<f?A:-A)}return c}else{var A=Yl[0]===0||Yl[0]===1?.5:1,p=Yo(t,r,i,Yl[0]);return p<o?0:a<e?A:-A}}function Jlt(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Yl[0]=-l,Yl[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=qw-1e-4){n=0,i=qw;var c=a?1:-1;return o>=Yl[0]+t&&o<=Yl[1]+t?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=qw,i+=qw);for(var d=0,A=0;A<2;A++){var p=Yl[A];if(p+t>o){var g=Math.atan2(s,p),c=a?1:-1;g<0&&(g=qw+g),(g>=n&&g<=i||g+qw>=n&&g+qw<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),d+=c)}}return d}function eTe(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,c=0,f=0,d,A,p=0;p<o;){var g=a[p++],m=p===1;switch(g===Vm.M&&p>1&&(r||(s+=Mv(l,u,c,f,n,i))),m&&(l=a[p],u=a[p+1],c=l,f=u),g){case Vm.M:c=a[p++],f=a[p++],l=c,u=f;break;case Vm.L:if(r){if(oy(l,u,a[p],a[p+1],e,n,i))return!0}else s+=Mv(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Vm.C:if(r){if(Klt(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=Xlt(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Vm.Q:if(r){if(JCe(l,u,a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=qlt(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Vm.A:var y=a[p++],b=a[p++],x=a[p++],T=a[p++],B=a[p++],R=a[p++];p+=1;var I=!!(1-a[p++]);d=Math.cos(B)*x+y,A=Math.sin(B)*T+b,m?(c=d,f=A):s+=Mv(l,u,d,A,n,i);var N=(n-y)*T/x+y;if(r){if(Wlt(y,b,T,B,B+R,I,e,N,i))return!0}else s+=Jlt(y,b,T,B,B+R,I,N,i);l=Math.cos(B+R)*x+y,u=Math.sin(B+R)*T+b;break;case Vm.R:c=l=a[p++],f=u=a[p++];var F=a[p++],Q=a[p++];if(d=c+F,A=f+Q,r){if(oy(c,f,d,f,e,n,i)||oy(d,f,d,A,e,n,i)||oy(d,A,c,A,e,n,i)||oy(c,A,c,f,e,n,i))return!0}else s+=Mv(d,f,d,A,n,i),s+=Mv(c,A,c,f,n,i);break;case Vm.Z:if(r){if(oy(l,u,c,f,e,n,i))return!0}else s+=Mv(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!$lt(u,f)&&(s+=Mv(l,u,c,f,n,i)||0),s!==0}function eut(t,e,r){return eTe(t,0,!1,e,r)}function tut(t,e,r,n){return eTe(t,e,!0,r,n)}var E3=Ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pb),rut={style:Ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},uQ.style)},q6=dg.concat(["invisible","culling","z","z2","zlevel","parent"]),_r=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<q6.length;++s)i[q6[s]]=this[q6[s]];i.__dirty|=Yu}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Cr(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?Fe(this.style,s):this.useStyle(s):o==="shape"?Fe(this.shape,s):t.prototype.attrKV.call(this,o,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 r=this.style.fill;if(r!=="none"){if(et(r)){var n=aR(r,0);return n>.5?iW:n>.2?Cst:aW}else if(r)return aW}return iW},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(et(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=aR(r,0)<nW;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~vC},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new op(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&vC)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r
114=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.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 r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),tut(s,l/u,r,n)))return!0}if(this.hasFill())return eut(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=vC,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:Fe(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&vC)},e.prototype.createStyle=function(r){return DI(E3,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Fe({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==rQ){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=Fe({},i.shape),Fe(u,n.shape)):(u=Fe({},a?this.shape:i.shape),Fe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Fe({},this.shape);for(var c={},f=Cr(u),d=0;d<f.length;d++){var A=f[d];typeof u[A]=="object"?this.shape[A]=u[A]:c[A]=u[A]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return rut},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){vi(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return vt(r.style)},o.prototype.getDefaultShape=function(){return vt(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Yu|EM|vC})(),e})(id),nut=Ct({strokeFirst:!0,font:cg,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},E3),_T=(function(t){vi(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return qCe(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return DI(nut,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Hlt(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(id);_T.prototype.type="tspan";var iut=Ct({x:0,y:0},pb),aut={style:Ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},uQ.style)};function out(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Mo=(function(t){vi(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return DI(iut,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=out(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return aut},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new St(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(id);Mo.prototype.type="image";function sut(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l
114=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>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+c,n+a),c!==0&&t.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var RC=Math.round;function dQ(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(RC(n*2)===RC(i*2)&&(t.x1=t.x2=Oc(n,s,!0)),RC(a*2)===RC(o*2)&&(t.y1=t.y2=Oc(a,s,!0))),t}}function tTe(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Oc(n,s,!0),t.y=Oc(i,s,!0),t.width=Math.max(Oc(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Oc(i+o,s,!1)-t.y,o===0?0:1)),t}}function Oc(t,e,r){if(!e)return t;var n=RC(t*2);return(n+RC(e))%2===0?n/2:(n+(r?1:-1))/2}var lut=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),uut={},fr=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new lut},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=tTe(uut,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?sut(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(_r);fr.prototype.type="rect";var $le={fill:"#000"},Zle=2,pA={},cut={style:Ct({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},uQ.style)},Nr=(function(t){vi(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=$le,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},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,hut(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new St(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||$le},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return Fe(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Cr(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},Fe(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return cut},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||cg,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Qle(pA,a.overflowRect,o,s,l,u),o=pA.baseX,s=pA.baseY;var c=nue(r),f=Ilt(c,r,pA.outerWidth,pA.outerHeight),d=J6(r),A=!!r.backgroundColor,p=f.outerHeight,g=f.outerWidth,m=f.lines,y=f.lineHeight;this.isTruncated=!!f.isTruncated;var b=o,x=Ab(s,f.contentHeight,u);if(d||i){var T=wT(o,g,l),B=Ab(s,p,u);
114d&&this._renderBackground(r,r,T,B,g,p)}x+=y/2,i&&(b=rue(o,l,i),u==="top"?x+=i[0]:u==="bottom"&&(x-=i[2]));for(var R=0,I=!1,N=!1,F=tue("fill"in r?r.fill:(N=!0,a.fill)),Q=eue("stroke"in r?r.stroke:!A&&(!a.autoStroke||N)?(R=Zle,I=!0,a.stroke):null),j=r.textShadowBlur>0,W=0;W<m.length;W++){var V=this._getOrCreateChild(_T),Y=V.createStyle();V.useStyle(Y),Y.text=m[W],Y.x=b,Y.y=x,Y.textAlign=l,Y.textBaseline="middle",Y.opacity=r.opacity,Y.strokeFirst=!0,j&&(Y.shadowBlur=r.textShadowBlur||0,Y.shadowColor=r.textShadowColor||"transparent",Y.shadowOffsetX=r.textShadowOffsetX||0,Y.shadowOffsetY=r.textShadowOffsetY||0),Y.stroke=Q,Y.fill=F,Q&&(Y.lineWidth=r.lineWidth||R,Y.lineDash=r.lineDash,Y.lineDashOffset=r.lineDashOffset||0),Y.font=n,qle(Y,r),x+=y,V.setBoundingRect(dW(Y,f.contentWidth,f.calculatedLineHeight,I?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Qle(pA,n.overflowRect,o,s,i,a),o=pA.baseX,s=pA.baseY;var l=nue(r),u=klt(l,r,pA.outerWidth,pA.outerHeight,i),c=u.width,f=u.outerWidth,d=u.outerHeight,A=r.padding;this.isTruncated=!!u.isTruncated;var p=wT(o,f,i),g=Ab(s,d,a),m=p,y=g;A&&(m+=A[3],y+=A[0]);var b=m+c;J6(r)&&this._renderBackground(r,r,p,g,f,d);for(var x=!!r.backgroundColor,T=0;T<u.lines.length;T++){for(var B=u.lines[T],R=B.tokens,I=R.length,N=B.lineHeight,F=B.width,Q=0,j=m,W=b,V=I-1,Y=void 0;Q<I&&(Y=R[Q],!Y.align||Y.align==="left");)this._placeToken(Y,r,N,y,j,"left",x),F-=Y.width,j+=Y.width,Q++;for(;V>=0&&(Y=R[V],Y.align==="right");)this._placeToken(Y,r,N,y,W,"right",x),F-=Y.width,W-=Y.width,V--;for(j+=(c-(j-m)-(b-W)-F)/2;Q<=V;)Y=R[Q],this._placeToken(Y,r,N,y,j+Y.width/2,"center",x),j+=Y.width,Q++;y+=N}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&J6(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var A=!!u.backgroundColor,p=r.textPadding;p&&(o=rue(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var g=this._getOrCreateChild(_T),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,x=0,T=!1,B=tue("fill"in u?u.fill:"fill"in n?n.fill:(b=!0,y.fill)),R=eue("stroke"in u?u.stroke:"stroke"in n?n.stroke:!A&&!l&&(!y.autoStroke||b)?(x=Zle,T=!0,y.stroke):null),I=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,I&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||cg,m.opacity=Ju(u.opacity,n.opacity,1),qle(m,u),R&&(m.lineWidth=Ju(u.lineWidth,n.lineWidth,x),m.lineDash=ft(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=R),B&&(m.fill=B),g.setBoundingRect(dW(m,r.contentWidth,r.contentHeight,T?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,A=r.borderRadius,p=this,g,m;if(d||r.lineHeight||u&&c){g=this._getOrCreateChild(fr),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=A,g.dirtyShape()}if(d){var b=g.style;b.fill=l||null,b.fillOpacity=ft(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Mo),m.onload=function(){p.dirtyStyle()};var x=m.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=ft(r.strokeOpacity,1),b.lineDash=r.borderDash,b.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var T=(g||m).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=Ju(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nTe(r)&&(n=[r.fontStyle,r.fontWeight,rTe(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Rc(n)||r.textFont||r.font},e})(id),fut={left:!0,right:1,center:1},dut={top:1,bottom:1,middle:1},Xle=["fontStyle","fontWeight","fontSize","fontFamily"];function rTe(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?$X+"px":t+"px"}function qle(t,e){for(var r=0;r<Xle.length;r++){var n=Xle[r],i=e[n];i!=null&&(t[n]=i)}}function nTe(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function hut(t){return Jle(t),ee(t.rich,Jle),t}function Jle(t){if(t){t.font=Nr.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||fut[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||dut[r]?r:"top";var n=t.padding;n&&(t.padding=BI(t.padding))}}function eue(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function tue(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function rue(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function nue(t){var e=t.text;return e!=null&&(e+=""),e}function J6(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var It=qt(),pW=function(t,e,r,n){if(n){var i=It(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=It(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},cE="undefined",sp="series",iTe=st(["tooltip","label","itemName","
114itemId","itemGroupId","itemChildGroupId","seriesName"]),Gc="original",Jo="arrayRows",Kc="objectRows",Sh="keyedColumns",ky="typedArray",aTe="unknown",fh="column",Cx="row",oTe="Roam",Aut=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],sTe=(function(){function t(e){ee(Aut,function(r){this[r]=ot(e[r],e)},this)}return t})();function lTe(t,e){return e.mainType===sp?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var iue=1,aue={},uTe=qt(),mq=qt(),yq=0,RI=1,hQ=2,uu=["emphasis","blur","select"],cR=["normal","emphasis","blur","select"],fE=10,put=9,vb="highlight",UU="downplay",B3="select",vW="unselect",D3="toggleSelect",wq="selectchanged";function kS(t){return t!=null&&t!=="none"}function AQ(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function cTe(t){AQ(t,"emphasis",hQ)}function fTe(t){t.hoverState===hQ&&AQ(t,"normal",yq)}function _q(t){AQ(t,"blur",RI)}function dTe(t){t.hoverState===RI&&AQ(t,"normal",yq)}function vut(t){t.selected=!0}function gut(t){t.selected=!1}function oue(t,e,r){e(t,r)}function Eg(t,e,r){oue(t,e,r),t.isGroup&&t.traverse(function(n){oue(n,e,r)})}function M3(t,e){switch(e){case"emphasis":t.hoverState=hQ;break;case"normal":t.hoverState=yq;break;case"blur":t.hoverState=RI;break;case"select":t.selected=!0}}function mut(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function yut(t,e,r,n){var i=r&&zt(r,"select")>=0,a=!1;if(t instanceof _r){var o=uTe(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(kS(s)||kS(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Fe({},n),u=Fe({},u),u.fill=s):!kS(u.fill)&&kS(s)?(a=!0,n=Fe({},n),u=Fe({},u),u.fill=w3(s)):!kS(u.stroke)&&kS(l)&&(a||(n=Fe({},n),u=Fe({},u)),u.stroke=w3(l)),n.style=u}}if(n&&n.z2==null){a||(n=Fe({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(c??fE)}return n}function wut(t,e,r){if(r&&r.z2==null){r=Fe({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??put)}return r}function _ut(t,e,r){var n=zt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:mut(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Fe({},r),o=Fe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function e8(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return yut(this,t,e,r);if(t==="blur")return _ut(this,t,r);if(t==="select")return wut(this,t,r)}return r}function zb(t){t.stateProxy=e8;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=e8),r&&(r.stateProxy=e8)}function sue(t,e){!vTe(t,e)&&!t.__highByOuter&&Eg(t,cTe)}function lue(t,e){!vTe(t,e)&&!t.__highByOuter&&Eg(t,fTe)}function Ag(t,e){t.__highByOuter|=1<<(e||0),Eg(t,cTe)}function pg(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Eg(t,fTe)}function hTe(t){Eg(t,_q)}function bq(t){Eg(t,dTe)}function ATe(t){Eg(t,vut)}function pTe(t){Eg(t,gut)}function vTe(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gTe(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=mq(a),s=lTe(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){dTe(u)}),l&&r.push(a)),o.isBlured=!1}),ee(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function gW(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&bq(d)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||e==="series"&&c)){var A=n.getViewOfSeriesModel(u);if(A.group.traverse(function(m){m.__highByOuter&&c&&e==="self"||_q(m)}),Os(e))a(u.getData(),e);else if(Tt(e))for(var p=Cr(e),g=0;g<p.length;g++)a(u.getData(p[g]),e[p[g]]);l.push(u),mq(u).isBlured=!0}}
114),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function mW(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){mq(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){_q(a)})}}}function but(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Hb(i,e);a=(je(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=It(o);gW(n,u.focus,u.blurScope,r)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&gW(n,c,f,r)}}}function xq(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(It(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xut(t,e,r){var n=It(t),i=xq(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&mW(n.componentMainType,n.componentIndex,r),ee(a,function(s){return sue(s,e)})):(gW(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&mW(n.componentMainType,n.componentIndex,r),sue(t,e))}function Sut(t,e,r){gTe(r);var n=It(t),i=xq(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?ee(i,function(a){return lue(a,e)}):lue(t,e)}function Cut(t,e,r){if(wW(e)){var n=e.dataType,i=t.getData(n),a=Hb(i,e);je(a)||(a=[a]),t[e.type===D3?"toggleSelect":e.type===B3?"select":"unselect"](a,n)}}function uue(t){var e=t.getAllData();ee(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?ATe(a):pTe(a)})})}function Tut(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();ee(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Ny(t,e,r){X_(t,!0),Eg(t,zb),yW(t,e,r)}function Eut(t){X_(t,!1)}function Ti(t,e,r,n){n?Eut(t):Ny(t,e,r)}function yW(t,e,r){var n=It(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var cue=["emphasis","blur","select"],But={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oo(t,e,r,n){r=r||"itemStyle";for(var i=0;i<cue.length;i++){var a=cue[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=n?n(o):o[But[r]]()}}function X_(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function fR(t){return!!(t&&t.__highDownDispatcher)}function Dut(t,e,r){var n=It(t);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=r}function Mut(t){var e=aue[t];return e==null&&iue<=32&&(e=aue[t]=iue++),e}function wW(t){var e=t.type;return e===B3||e===vW||e===D3}function fue(t){var e=t.type;return e===vb||e===UU}function Lut(t){var e=uTe(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var NS=op.CMD,Rut=[[],[],[]],due=Math.sqrt,Iut=Math.atan2;function mTe(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,c=NS.M,f=NS.C,d=NS.L,A=NS.R,p=NS.A,g=NS.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case g:a=2;break;case p:var m=e[4],y=e[5],b=due(e[0]*e[0]+e[1]*e[1]),x=due(e[2]*e[2]+e[3]*e[3]),T=Iut(-e[1]/x,e[0]/b);r[o]*=b,r[o++]+=m,r[o]*=x,r[o++]+=y,r[o++]*=b,r[o++]*=x,r[o++]+=T,r[o++]+=T,o+=2,s=o;break;case A:u[0]=r[o++],u[1]=r[o++],Wi(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Wi(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var B=Rut[l];B[0]=r[o++],B[1]=r[o++],Wi(B,B,e),r[s++]=B[0],r[s++]=B[1]}}t.increaseVersion()}}var t8=Math.sqrt,CN=Math.sin,TN=Math.cos,CD=Math.PI;function hue(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function _W(t,e){return(t[0]*e[0]+t[1]*e[1])/(hue(t)*hue(e))}function Aue(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(_W(t,e))}function pue(t,e,r,n,i,a,o,s,l,u,c){var f=l*(CD/180),d=TN(f)*(t-r)/2+CN(f)*(e-n)/2,A=-1*CN(f)*(t-r)/2+TN(f)*(e-n)/2,p=d*d/(o*o)+A*A/(s*s);p>1&&(o*=t8(p),s*=t8(p));var g=(i===a?-1:1)*t8((o*o*(s*s)-o*o*(A*A)-s*s*(d*d))/(o*o*(A*A)+s*s*(d*d)))||0,m=g*o*A/s,y=g*-s*d/o,b=(t+r)/2+TN(f)*m-CN(f)*y,x=(e+n)/2+CN(f)*m+TN(f)*y,T=Aue([1,0],[(d-m)/o,(A-y)/s]),B=[(d-m)/o,(A-y)/s],R=[(-1*d-m)/o,(-1*A-y)/s],I=Aue(B,R);if(_W(B,R)<=-1&&(I=CD),_W(B,R)>=1&&(I=0),I<0){var N=Math.round(I/CD*1e6)/1e6;I=CD*2+N%2*CD}c.addData(u,b,x,o,s,T,I,f,a)}var Out=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Put=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kut(t){var e=new op;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=op.CMD,l=t.match(Out);
vendor: 1,668 bytes, line 114
114if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,A=c.match(Put)||[],p=A.length,g=0;g<p;g++)A[g]=parseFloat(A[g]);for(var m=0;m<p;){var y=void 0,b=void 0,x=void 0,T=void 0,B=void 0,R=void 0,I=void 0,N=r,F=n,Q=void 0,j=void 0;switch(f){case"l":r+=A[m++],n+=A[m++],d=s.L,e.addData(d,r,n);break;case"L":r=A[m++],n=A[m++],d=s.L,e.addData(d,r,n);break;case"m":r+=A[m++],n+=A[m++],d=s.M,e.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=A[m++],n=A[m++],d=s.M,e.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=A[m++],d=s.L,e.addData(d,r,n);break;case"H":r=A[m++],d=s.L,e.addData(d,r,n);break;case"v":n+=A[m++],d=s.L,e.addData(d,r,n);break;case"V":n=A[m++],d=s.L,e.addData(d,r,n);break;case"C":d=s.C,e.addData(d,A[m++],A[m++],A[m++],A[m++],A[m++],A[m++]),r=A[m-2],n=A[m-1];break;case"c":d=s.C,e.addData(d,A[m++]+r,A[m++]+n,A[m++]+r,A[m++]+n,A[m++]+r,A[m++]+n),r+=A[m-2],n+=A[m-1];break;case"S":y=r,b=n,Q=e.len(),j=e.data,o===s.C&&(y+=r-j[Q-4],b+=n-j[Q-3]),d=s.C,N=A[m++],F=A[m++],r=A[m++],n=A[m++],e.addData(d,y,b,N,F,r,n);break;case"s":y=r,b=n,Q=e.len(),j=e.data,o===s.C&&(y+=r-j[Q-4],b+=n-j[Q-3]),d=s.C,N=r+A[m++],F=n+A[m++],r+=A[m++],n+=A[m++],e.addData(d,y,b,N,F,r,n);break;case"Q":N=A[m++],F=A[m++],r=A[m++],n=A[m++],d=s.Q,e.addData(d,N,F,r,n);break;case"q":N=A[m++]+r,F=A[m++]+n,r+=A[m++],n+=A[m++],d=s.Q,e.addData(d,N,F,r,n);break;case"T":y=r,b=n,Q=e.len(),j=e.data,o===s.Q&&(y+=r-j[Q-4],b+=n-j[Q-3]),r=A[m++],n=A[m++],d=s.Q,e.addData(d,y,b,r,n);break;case"t":y=r,b=n,Q=e.len(),j=e.data,o===s.Q&&(y+=r-j[Q-4],b+=n-j[Q-3]),r+=A[m++],n+=A[m++],d=s.Q,e.addData(d,y,b,r,n);break;case"A":x=A[m++],T=A[m++],B=A[m++],R=A[m++],I=A[m++],N=r,F=n,r=A[m++
114],n=A[m++],d=s.A,pue(N,F,r,n,R,I,x,T,B,d,e);break;case"a":x=A[m++],T=A[m++],B=A[m++],R=A[m++],I=A[m++],N=r,F=n,r+=A[m++],n+=A[m++],d=s.A,pue(N,F,r,n,R,I,x,T,B,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),r=i,n=a),o=d}return e.toStatic(),e}var yTe=(function(t){vi(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(_r);function wTe(t){return t.setData!=null}function _Te(t,e){var r=kut(t),n=Fe({},e);return n.buildPath=function(i){var a=wTe(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){mTe(r,i),this.dirtyShape()},n}function bTe(t,e){return new yTe(_Te(t,e))}function Nut(t,e){var r=_Te(t,e),n=(function(i){vi(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(yTe);return n}function Fut(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new _r(e);return o.createPathProxy(),o.buildPath=function(s){if(wTe(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Sq(t,e){e=e||{};var r=new _r;return t.shape&&r.setShape(t.shape),r.setStyle(t.style),e.bakeTransform?mTe(r.path,t.getComputedTransform()):e.toLocal?r.setLocalTransform(t.getComputedTransform()):r.copyTransform(t),r.buildPath=t.buildPath,r.applyTransform=r.applyTransform,r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel,r}var Uut=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),mp=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Uut},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(_r);mp.prototype.type="circle";var Hut=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),II=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Hut},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},e})(_r);II.prototype.type="ellipse";var xTe=Math.PI,r8=xTe*2,Jw=Math.sin,FS=Math.cos,Qut=Math.acos,ol=Math.atan2,vue=Math.abs,yL=Math.sqrt,DM=Math.max,vA=Math.min,Gd=1e-4;function jut(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<Gd))return d=(c*(e-a)-f*(t-i))/d,[t+d*l,e+d*u]}function EN(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/yL(s*s+l*l),c=u*l,f=-u*s,d=t+c,A=e+f,p=r+c,g=n+f,m=(d+p)/2,y=(A+g)/2,b=p-d,x=g-A,T=b*b+x*x,B=i-a,R=d*g-p*A,I=(x<0?-1:1)*yL(DM(0,B*B*T-R*R)),N=(R*x-b*I)/T,F=(-R*b-x*I)/T,Q=(R*x+b*I)/T,j=(-R*b+x*I)/T,W=N-m,V=F-y,Y=Q-m,G=j-y;return W*W+V*V>Y*Y+G*G&&(N=Q,F=j),{cx:N,cy:F,x0:-c,y0:-f,x1:N*(i/B-1),y1:F*(i/B-1)}}function zut(t){var e;if(je(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Vut(t,e){var r,n=DM(e.r,0),i=DM(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=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,A=vue(u-l),p=A>r8&&A%r8;if(p>Gd&&(A=p),!(n>Gd))t.moveTo(c,f);else if(A>r8-Gd)t.moveTo(c+n*FS(l),f+n*Jw(l)),t.arc(c,f,n,l,u,!d),i>Gd&&(t.moveTo(c+i*FS(u),f+i*Jw(u)),t.arc(c,f,i,u,l,d));else{var g=void 0,m=void 0,y=void 0,b=void 0,x=void 0,T=void 0,B=void 0,R=void 0,I=void 0,N=void 0,F=void 0,Q=void 0,j=void 0,W=void 0,V=void 0,Y=void 0,G=n*FS(l),K=n*Jw(l),X=i*FS(u),q=i*Jw(u),ne=A>Gd;if(ne){var te=e.cornerRadius;te&&(r=zut(te),g=r[0],m=r[1],y=r[2],b=r[3]);var ce=vue(n-i)/2;if(x=vA(ce,y),T=vA(ce,b),B=vA(ce,g),R=vA(ce,m),F=I=DM(x,T),Q=N=DM(B,R),(I>Gd||N>Gd)&&(j=n*FS(u),W=n*Jw(u),V=i*FS(l),Y=i*Jw(l),A<xTe)){var he=jut(G,K,V,Y,j,W,X,q);if(he){var ve=G-he[0],ae=K-he[1],fe=j-he[0],we=W-he[1],Me=1/Jw(Qut((ve*fe+ae*we)/(yL(ve*ve+ae*ae)*yL(fe*fe+we*we)))/2),ge=yL(he[0]*he[0]+he[1]*he[1]);F=vA(I,(n-ge)/(Me+1)),Q=vA(N,(i-ge)/(Me-1))}}}if(!ne)t.moveTo(c+G,f+K);else if(F>Gd){var be=vA(y,F),Ve=vA(b,F),Re=EN(V,Y,G,K,n,be,d),Se=EN(j,W,X,q,n,Ve,d);t.moveTo(c+Re.cx+Re.x0,f+Re.cy+Re.y0),F<I&&be===Ve?t.arc(c+Re.cx,f+Re.cy,F,ol(Re.y0,Re.x0),ol(Se.y0,Se.x0),!d):(be>0&&t.arc(c+Re.cx,f+Re.cy,be,ol(Re.y0,Re.x0),ol(Re.y1,Re.x1),!d),t.arc(c,f,n,ol(Re.cy+Re.y1,Re.cx+Re.x1),ol(Se.cy+Se.y1,Se.cx+Se.x1),!d),Ve>0&&t.arc(c+Se.cx,f+Se.cy,Ve,ol(Se.y1,Se.x1),ol(Se.y0,Se.x0),!d))}else t.moveTo(c+G,f+K),t.arc(c,f,n,l,u,!d);if(!(i>Gd)||!ne)t.lineTo(c+X,f+q);else if(Q>Gd){var be=vA(g,Q),Ve=vA(m,Q),Re=EN(X,q,j,W,i,-Ve,d),Se=EN(G,K,V,Y,i,-be,d);t.lineTo(c+Re.cx+Re.x0,f+Re.cy+Re.y0),Q<N&&be===Ve?t.arc(c+Re.cx,f+Re.cy,Q,ol(Re.y0,Re.x0),ol(Se.y0,Se.x0),!d):(Ve>0&&t.arc(c+Re.cx,f+Re.cy,Ve,ol(Re.y0,Re.x0),ol(Re.y1,Re.x1),!d),t.arc(c,f,i,ol(Re.cy+Re.y1,Re.cx+Re.x1),ol(Se.cy+Se.y1,Se.cx+Se.x1),d),be>0&&t.arc(c+Se.cx,f+Se.cy,be,ol(Se.y1,Se.x1),ol(Se.y0,Se.x0),!d))}else t.lineTo(c+X,f+q),t.arc(c,f,i,u,l,d)}t.closePath()}}}var Gut=(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})(),ks=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Gut},e.prototype.buildPath=function(r,n){Vut(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(_r);ks.prototype.type="sector";var Kut=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),dE=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Kut},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(_r);dE.prototype.type="ring";function Wut(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,A=t.length;d<A;d++)Fv(c,c,t[d]),Uv(f,f,t[d]);
114Fv(c,c,n[0]),Uv(f,f,n[1])}for(var d=0,A=t.length;d<A;d++){var p=t[d];if(r)l=t[d?d-1:A-1],u=t[(d+1)%A];else if(d===0||d===A-1){i.push(VA(t[d]));continue}else l=t[d-1],u=t[d+1];wy(a,u,l),dL(a,a,e);var g=A3(p,l),m=A3(p,u),y=g+m;y!==0&&(g/=y,m/=y),dL(o,a,-g),dL(s,a,m);var b=Q7([],p,o),x=Q7([],p,s);n&&(Uv(b,b,c),Fv(b,b,f),Uv(x,x,c),Fv(x,x,f)),i.push(b),i.push(x)}return r&&i.push(i.shift()),i}function STe(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=Wut(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];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])}r&&t.closePath()}}var Yut=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Ns=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Yut},e.prototype.buildPath=function(r,n){STe(r,n,!0)},e})(_r);Ns.prototype.type="polygon";var $ut=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),es=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $ut},e.prototype.buildPath=function(r,n){STe(r,n,!1)},e})(_r);es.prototype.type="polyline";var Zut={},Xut=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Ca=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xut},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=dQ(Zut,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(_r);Ca.prototype.type="line";var Fu=[],qut=(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 gue(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?mle:_o)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?mle:_o)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Y7:Yo)(t.x1,t.cpx1,t.x2,e),(r?Y7:Yo)(t.y1,t.cpy1,t.y2,e)]}var hE=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qut},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(rR(i,l,o,d,Fu),l=Fu[1],o=Fu[2],rR(a,u,s,d,Fu),u=Fu[1],s=Fu[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(r0(i,l,c,o,d,Fu),l=Fu[1],c=Fu[2],o=Fu[3],r0(a,u,f,s,d,Fu),u=Fu[1],f=Fu[2],s=Fu[3]),r.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(r){return gue(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=gue(this.shape,r,!0);return _x(n,n)},e})(_r);hE.prototype.type="bezier-curve";var Jut=(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})(),OI=(function(t){vi(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Jut},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},e})(_r);OI.prototype.type="arc";var PI=(function(t){vi(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),_r.prototype.getBoundingRect.call(this)},e})(_r),CTe=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Tx=(function(t){vi(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(CTe),Cq=(function(t){vi(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(CTe),n8=Math.min,ect=Math.max,BN=Math.abs,e_=[0,0],t_=[0,0],Vo=iCe(),DN=Vo.minTv,MN=Vo.maxTv,TTe=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Lt;for(var n=0;n<2;n++)this._axes[n]=new Lt;
114e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Lt.sub(i[0],n[1],n[0]),Lt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&Lt.set(r,0,0),Vo.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Vo.negativeSize&&Lt.copy(r,i?Vo.useDir?Vo.dirMinTv:DN:MN),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,e_),e._getProjMinMaxOnAxis(o,r._corners,t_),Vo.negativeSize||e_[1]<t_[0]||e_[0]>t_[1]){if(a=!1,Vo.negativeSize||n)return a;var l=BN(t_[0]-e_[1]),u=BN(e_[0]-t_[1]);n8(l,u)>MN.len()&&(l<u?Lt.scale(MN,s,-l*i):Lt.scale(MN,s,u*i))}else if(!n){var l=BN(t_[0]-e_[1]),u=BN(e_[0]-t_[1]);(Vo.useDir||n8(l,u)<DN.len())&&((l<u||!Vo.bidirectional)&&(Lt.scale(DN,s,l*i),Vo.useDir&&Vo.calcDirMTV()),(l>=u||!Vo.bidirectional)&&(Lt.scale(DN,s,-u*i),Vo.useDir&&Vo.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[e];s=n8(c,s),l=ect(c,l)}n[0]=s+Vo.touchThreshold,n[1]=l-Vo.touchThreshold,Vo.negativeSize=n[1]<n[0]},t})(),ETe=0,tct=1,rct=2,nct=1,HU=0,ict=[],BTe=(function(t){vi(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=tct,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new St(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(ict)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(id),DTe=qt();function AE(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=ft(n.duration,200),c=ft(n.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),mt(f)&&(f=f(r,i)),mt(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Tq(t,e,r,n,i,a,o){var s=!1,l;mt(i)?(o=a,a=i,i=null):Tt(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=AE(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,A=c.easing,p={duration:f,delay:d||0,easing:A,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,p):e.animateTo(r,p)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Wr(t,e,r,n,i,a){Tq("update",t,e,r,n,i,a)}function ui(t,e,r,n,i,a){Tq("enter",t,e,r,n,i,a)}function ZC(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function i0(t,e,r,n,i,a){ZC(t)||Tq("leave",t,e,r,n,i,a)}function mue(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),i0(t,{style:{opacity:0}
114},e,r,n)}function Zv(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||mue(i,e,r,n)}):mue(t,e,r,n)}function ad(t){DTe(t).oldStyle=t.style}function act(t){return DTe(t).oldStyle}var bW={},jt=["x","y"],ha=["width","height"],MTe=0,LTe=1,pE=2;function RTe(t){return _r.extend(t)}var oct=Nut;function ITe(t,e){return oct(t,e)}function cd(t,e){bW[t]=e}function dR(t){if(bW.hasOwnProperty(t))return bW[t]}function bT(t,e,r,n){var i=bTe(t,e);return r&&(n==="center"&&(r=OTe(r,i.getBoundingRect())),Bq(i,r)),i}function Eq(t,e,r){var n=new Mo({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(OTe(e,a))}}});return n}function OTe(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Mc=Fut;function Bq(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function xT(t,e){return dQ(t,t,{lineWidth:e}),t}function sct(t,e){return tTe(t,t,e),t}var QU=Oc;function gb(t,e){for(var r=bx([]);t&&t!==e;)Fc(r,t.getLocalTransform(),r),t=t.parent;return r}function dh(t,e,r){return e&&!Os(e)&&(e=vp.getLocalTransform(e)),r&&(e=jc([],e)),Wi([],t,e)}function pQ(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Vi(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Vi(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=dh(a,e,r),Vi(a[0])>Vi(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function yue(t){return!t.isGroup}function lct(t){return t.shape!=null}function kI(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){yue(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return lct(o)&&(s.shape=vt(o.shape)),s}var a=n(t);e.traverse(function(o){if(yue(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Wr(o,l,r,It(o).dataIndex)}}})}function Dq(t,e){return ze(t,function(r){var n=r[0];n=cr(n,e.x),n=bn(n,e.x+e.width);var i=r[1];return i=cr(i,e.y),i=bn(i,e.y+e.height),[n,i]})}function PTe(t,e){var r=cr(t.x,e.x),n=bn(t.x+t.width,e.x+e.width),i=cr(t.y,e.y),a=bn(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function vE(t,e,r){var n=Fe({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Ct(i,r),new Mo(n)):bT(t.replace("path://",""),n,r,"center")}function MM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(kTe(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function kTe(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,d=i8(c,f,l,u);if(uct(d))return!1;var A=t-i,p=e-a,g=i8(A,p,l,u)/d;if(g<0||g>1)return!1;var m=i8(A,p,c,f)/d;return!(m<0||m>1)}function i8(t,e,r,n){return t*n-r*e}function uct(t){return t<=1e-6&&t>=-1e-6}function Vb(t,e,r,n,i){return e==null||(Hr(e)?Li[0]=Li[1]=Li[2]=Li[3]=e:(Li[0]=e[0],Li[1]=e[1],Li[2]=e[2],Li[3]=e[3]),n&&(Li[0]=cr(0,Li[0]),Li[1]=cr(0,Li[1]),Li[2]=cr(0,Li[2]),Li[3]=cr(0,Li[3])),r&&(Li[0]=-Li[0],Li[1]=-Li[1],Li[2]=-Li[2],Li[3]=-Li[3]),wue(t,Li,"x","width",3,1,i&&i[0]||0),wue(t,Li,"y","height",0,2,i&&i[1]||0)),t}var Li=[0,0,0,0];function wue(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=cr(0,bn(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Vi(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function Bg(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=et(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&ee(Cr(l),function(c){ut(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=It(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ct({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function xW(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function w0(t,e){if(t)if(je(t))for(var r=0;r<t.length;r++)xW(t[r],e);else xW(t,e)}function Mq(t){return!t||Vi(t[1])<LN&&Vi(t[2])<LN||Vi(t[0])<LN&&Vi(t[3])<LN}var LN=1e-5;function hR(t,e){return t?St.copy(t,e):e.clone()}function Lq(t,e){return e?t0(t||Si(),e):void 0}
114function Gb(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function NTe(t){var e=-1/0,r=1/0;xW(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function vQ(t,e,r){FTe(t,e,r,-1/0)}function FTe(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=cr(FTe(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=cr(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function Rq(t){return t.animation={duration:0},t}function gQ(t,e){return e?t0(LM.transform,e):bx(LM.transform),LM.decomposeTransform(),rp(t,LM),t}var LM=new vp;LM.transform=Si();function SW(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}cd("circle",mp);cd("ellipse",II);cd("sector",ks);cd("ring",dE);cd("polygon",Ns);cd("polyline",es);cd("rect",fr);cd("line",Ca);cd("bezierCurve",hE);cd("arc",OI);const Ex=Object.freeze(Object.defineProperty({__proto__:null,Arc:OI,BezierCurve:hE,BoundingRect:St,Circle:mp,CompoundPath:PI,Ellipse:II,Group:xt,HOVER_LAYER_FOR_INCREMENTAL:pE,HOVER_LAYER_FROM_THRESHOLD:LTe,HOVER_LAYER_NO:MTe,Image:Mo,IncrementalDisplayable:BTe,Line:Ca,LinearGradient:Tx,OrientedBoundingRect:TTe,Path:_r,Point:Lt,Polygon:Ns,Polyline:es,RadialGradient:Cq,Rect:fr,Ring:dE,Sector:ks,Text:Nr,WH:ha,XY:jt,applyTransform:dh,calcZ2Range:NTe,clipPointsByRect:Dq,clipRectByRect:PTe,createIcon:vE,decomposeTransform:gQ,ensureCopyRect:hR,ensureCopyTransform:Lq,expandOrShrinkRect:Vb,extendPath:ITe,extendShape:RTe,getCurrentCanvasPainter:SW,getShapeClass:dR,getTransform:gb,groupTransition:kI,initProps:ui,isBoundingRectAxisAligned:Mq,isElementRemoved:ZC,lineLineIntersect:kTe,linePolygonIntersect:MM,makeImage:Eq,makePath:bT,mergePath:Mc,payloadDisableAnimation:Rq,registerShape:cd,removeElement:i0,removeElementWithFadeOut:Zv,resizePath:Bq,retrieveZInfo:Gb,setTooltipConfig:Bg,subPixelOptimize:QU,subPixelOptimizeLine:xT,subPixelOptimizeRect:sct,transformDirection:pQ,traverseElements:w0,traverseUpdateZ:vQ,updateProps:Wr},Symbol.toStringTag,{value:"Module"}));var mQ={};function UTe(t,e){for(var r=0;r<uu.length;r++){var n=uu[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function CW(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=mt(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<uu.length;u++){var c=uu[u],f=e[c];l[c]=ft(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function Do(t,e,r,n){r=r||mQ;for(var i=t instanceof Nr,a=!1,o=0;o<cR.length;o++){var s=e[cR[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Nr,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=CW(r,e),c=e.normal,f=!!c.getShallow("show"),d=Gn(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||t.setTextConfig(L3(c,r,!1));for(var o=0;o<uu.length;o++){var A=uu[o],s=e[A];if(s){var p=l.ensureState(A),g=!!ft(s.getShallow("show"),f);if(g!==f&&(p.ignore=!g),p.style=Gn(s,n&&n[A],r,!0,!i),p.style.text=u[A],!i){var m=t.ensureState(A);m.textConfig=L3(s,r,!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(),r.enableTextSetter&&(gE(l).setLabelText=function(y){var b=CW(r,e,y);UTe(l,b)})}else l&&(l.ignore=!0);t.dirty()}function so(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<uu.length;n++){var i=uu[n];r[i]=t.getModel([i,e])}return r}function Gn(t,e,r,n,i){var a={};return cct(a,t,r,n,i),e&&Fe(a,e),a}function L3(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=ft(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function cct(t,e,r,n,i){r=r||mQ;var a=e.ecModel,o=a&&a.option.textStyle,s=fct(e),l;if(s){l={};var u="richInheritPlainLabel",c=ft(e.get(u),a?a.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var d=e.getModel(["rich",f]);Sue(l[f]={},d,o,e,c,r,n,i,!1,!0)}}l&&(t.rich=l);var A=e.get("overflow");A&&(t.overflow=A);var p=e.get("lineOverflow");p&&(t.lineOverflow=p);var g=t,m=e.get("minMargin");if(m!=null)m=Hr(m)?m/2:0,g.margin=[m,m,m,m],g.__marginType=IC.minMargin;else{var y=e.get("textMargin");y!=null&&(g.margin=BI(y),g.__marginType=IC.textMargin)}Sue(t,e,o,null,null,r,n,i,!0,!1)}function fct(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||mQ).rich;if(r){e=e||{};for(var n=Cr(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var _ue=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bue=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],xue=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Sue(t,e,r,n,i,a,o,s,l,u){r=!o&&r||mQ;var c=a&&a.inheritColor,f=e.getShallow("color"),d=e.getShallow("textBorderColor"),A=ft(e.getShallow("opacity"),r.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(d==="inherit"||d==="auto")&&(c?d=c:d=null),s||(f=f||r.color,d=d||r.textBorderColor),f!=null&&(t.fill=f),d!=null&&(t.stroke=d);var p=ft(e.getShallow("textBorderWidth"),r.textBorderWidth);p!=null&&(t.lineWidth=p);var g=ft(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var m=ft(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&A==null&&!u&&(A=a&&a.defaultOpacity),A!=null&&(t.opacity=A),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var y=0;y<_ue.length;y++){var b=_ue[y],x=i!==!1&&n?Ju(e.getShallow(b),n.getShallow(b),r[b]):ft(e.getShallow(b),r[b]);x!=null&&(t[b]=x)}for(var y=0;y<bue.length;y++){var b=bue[y],x=e.getShallow(b);x!=null&&(t[b]=x)}if(t.verticalAlign==null){var T=e.getShallow("baseline");T!=null&&(t.verticalAlign=T)}if(!l||!a.disableBox){for(var y=0;y<xue.length;y++){var b=xue[y],x=e.getShallow(b);x!=null&&(t[b]=x)}var B=e.getShallow("borderType");B!=null&&(t.borderDash=B),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&c&&(t.backgroundColor=c),(t.borderColor==="auto"||t.borderColor==="inherit")&&c&&(t.borderColor=c)}}function Iq(t,e){var r=e&&e.getModel("textStyle");return Rc([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var gE=qt();function HTe(t,e,r,n){if(t){var i=gE(t);i.prevValue=i.value,i.value=r;
114var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function QTe(t,e,r,n,i){var a=gE(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=ft(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=jCe(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=CW({labelDataIndex:e,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);UTe(t,d)}t.percent=0,(a.prevValue==null?ui:Wr)(t,{percent:1},n,e,null,u)}var IC={minMargin:1,textMargin:2},dct=["textStyle","color"],a8=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],o8=new Nr,hct=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(dct):null)},t.prototype.getFont=function(){return Iq({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 r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<a8.length;n++)r[a8[n]]=this.getShallow(a8[n]);return o8.useStyle(r),o8.update(),o8.getBoundingRect()},t})(),jTe=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Act=jb(jTe),pct=(function(){function t(){}return t.prototype.getLineStyle=function(e){return Act(this,e)},t})(),zTe=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],vct=jb(zTe),gct=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return vct(this,e,r)},t})(),wr=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){Xt(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,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(vt(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(!Dr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();pq(wr);Slt(wr);Da(wr,pct);Da(wr,gct);Da(wr,Dlt);Da(wr,hct);var mct=Math.round(Math.random()*10);function Bx(t){return[t||"",mct++].join("_")}function yct(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=kA(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=kA(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function wct(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(ee(a,function(b){d[b]=!0});f.length;){var A=f.pop(),p=c[A],g=!!d[A];g&&(s.call(l,A,p.originalDeps.slice()),delete d[A]),ee(p.successor,g?y:m)}ee(d,function(){var b="";throw 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 r(a){var o={},s=[];return ee(a,function(l){var u=n(o,l),c=u.originalDeps=e(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),ee(f,function(d){zt(u.predecessor,d)<0&&u.predecessor.push(d);var A=n(o,d);zt(A.successor,d)<0&&A.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return ee(a,function(l){zt(o,l)>=0&&s.push(l)}),s}}function _0(t,e){return Xt(Xt({},t,!0),e,!0)}const _ct={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","Frid
114ay","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:". "}}}},bct={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}
114,",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var R3="ZH",Oq="EN",XC=Oq,jU={},Pq={},VTe=Dr.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||XC).toUpperCase();return t.indexOf(R3)>-1?R3:XC})():XC;function kq(t,e){t=t.toUpperCase(),Pq[t]=new wr(e),jU[t]=e}function xct(t){if(et(t)){var e=jU[t.toUpperCase()]||{};return t===R3||t===Oq?vt(e):Xt(vt(e),vt(jU[XC]),!1)}else return Xt(vt(t),vt(jU[XC]),!1)}function TW(t){return Pq[t]}function Sct(){return Pq[XC]}kq(Oq,_ct);kq(R3,bct);var EW=null;function Cct(t){EW||(EW=t)}function Ta(){return EW}function GTe(t,e){var r=Ta(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function I3(t){var e=t.brk;return e?e.breaks:[]}function O3(t){var e=t.brk;return e?e.hasBreaks():!1}var Nq=1e3,Fq=Nq*60,wL=Fq*60,Qf=wL*24,Cue=Qf*365,Tct={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},zU={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Ect="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",RN="{yyyy}-{MM}-{dd}",Tue={year:"{yyyy}",month:"{yyyy}-{MM}",day:RN,hour:RN+" "+zU.hour,minute:RN+" "+zU.minute,second:RN+" "+zU.second,millisecond:Ect},Cc=["year","month","day","hour","minute","second","millisecond"],Bct=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dct(t){return!et(t)&&!mt(t)?Mct(t):t}function Mct(t){t=t||{};var e={},r=!0;return ee(Cc,function(n){r&&(r=t[n]==null)}),ee(Cc,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=Cc[s],u=Tt(a)&&!je(a)?a[l]:a,c=void 0;je(u)?(c=u.slice(),o=c[0]||""):et(u)?(o=u,c=[o]):(o==null?o=zU[n]:Tct[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),e[n][l]=c}}),e}function $l(t,e){return t+="","0000".substr(0,e-t.length)+t}function _L(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 Lct(t){return t===_L(t)}function Rct(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function NI(t,e,r,n){var i=gp(t),a=i[KTe(r)](),o=i[Uq(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Hq(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Qq(r)](),f=(c-1)%12+1,d=i[jq(r)](),A=i[zq(r)](),p=i[Vq(r)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=n instanceof wr?n:TW(n||VTe)||Sct(),b=y.getModel("time"),x=b.get("month"),T=b.get("monthAbbr"),B=b.get("dayOfWeek"),R=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,$l(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,T[o-1]).replace(/{MM}/g,$l(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$l(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,B[u]).replace(/{ee}/g,R[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$l(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,$l(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,$l(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,$l(A,2)).replace(/{s}/g,A+"").replace(/{SSS}/g,$l(p,3)).replace(/{S}/g,p+"")}function Ict(t,e,r,n,i){var a=null;if(et(r))a=r;else if(mt(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ta();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=qC(t.value,i);a=r[c][c][0]}}return NI(new Date(t.value),a,i,n)}function qC(t,e){var r=gp(t),n=r[Uq(e)]()+1,i=r[Hq(e)](),a=r[Qq(e)](),o=r[jq(e)](),s=r[zq(e)](),l=r[Vq(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,A=d&&i===1,p=A&&n===1;return p?"year":A?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function P3(t,e,r){switch(e){case"year":t[WTe(r)](0);case"month":t[YTe(r)](1);case"day":t[$Te(r)](0);case"hour":t[ZTe(r)](0);case"minute":t[XTe(r)](0);case"second":t[qTe(r)](0)}return t}function KTe(t){return t?"getUTCFullYear":"getFullYear"}function Uq(t){return t?"getUTCMonth":"getMonth"}function Hq(t){return t?"getUTCDate":"getDate"}function Qq(t){return t?"getUTCHours":"getHours"}function jq(t){return t?"getUTCMinutes":"getMinutes"}function zq(t){return t?"getUTCSeconds":"getSeconds"}function Vq(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Oct(t){return t?"setUTCFullYear":"setFullYear"}function WTe(t){return t?"setUTCMonth":"setMonth"}function YTe(t){return t?"setUTCDate":"setDate"}function $Te(t){return t?"setUTCHours":"setHours"}function ZTe(t){return t?"setUTCMinutes":"setMinutes"}function XTe(t){return t?"setUTCSeconds":"setSeconds"}function qTe(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Pct(t,e,r,n,i,a,o,s){var l=new Nr({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});
114return l.getBoundingRect()}function Gq(t){if(!cq(t))return et(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kq(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var mE=BI;function BW(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Rc(c)?c:"-"}function a(c){return nd(c)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?gp(t):t;if(isNaN(+l)){if(s)return"-"}else return NI(l,n,r)}if(e==="ordinal")return d3(t)?i(t):Hr(t)&&a(t)?t+"":"-";var u=ap(t);return a(u)?Gq(u):d3(t)?i(t):typeof t=="boolean"?t+"":"-"}var Eue=["a","b","c","d","e","f","g"],s8=function(t,e){return"{"+t+(e??"")+"}"};function Wq(t,e,r){je(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Eue[a];t=t.replace(s8(o),s8(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(s8(Eue[l],s),r?pl(u):u)}return t}function JTe(t,e,r){return ee(e,function(n,i){t=t.replace("{"+i+"}",n)}),t}function eEe(t,e){var r=et(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="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:'+pl(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+pl(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function kct(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
115yyyy`);var n=gp(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),f=n[i+"Milliseconds"]();return t=t.replace("MM",$l(o,2)).replace("M",o).replace("yyyy",a).replace("yy",$l(a%100+"",2)).replace("dd",$l(s,2)).replace("d",s).replace("hh",$l(l,2)).replace("h",l).replace("mm",$l(u,2)).replace("m",u).replace("ss",$l(c,2)).replace("s",c).replace("SSS",$l(f,3)),t}function Nct(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Kb(t,e){return e=e||"transparent",et(t)?t:Tt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function k3(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var VU={},l8={},yE=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(VU),this._normalMasterList=n(l8);function n(i,a){var o=[];return ee(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){ee(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){VU[e]=r;return}l8[e]=r},t.get=function(e){return l8[e]||VU[e]},t})();function Fct(t){return!!VU[t]}var Uct=1,tEe=2;function Hct(t){rEe.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var rEe=st();function nEe(t){var e=t.getShallow("coord",!0),r=Uct;if(e==null){var n=rEe.get(t.type);n&&n.getCoord2&&(r=tEe,e=n.getCoord2(t))}return{coord:e,from:r}}var JC=0,GU=1,iEe=2;function aEe(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=JC;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=GU,a||(i=JC)):n==="box"&&(i=iEe,!a&&!Fct(r)&&(i=JC))}return{coordSysType:r,kind:i}}function FI(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys;t.allowNotFound;var a=aEe(e),o=a.kind,s=a.coordSysType;if(i&&o!==GU&&(o=GU,s=r),o===JC||s!==r)return JC;var l=n(r,e);return l?(o===GU?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):JC}var oEe=function(t,e){var r=e.getReferringComponents(t,ta).models[0];return r&&r.coordinateSystem},KU=ee,sEe=["left","right","top","bottom","width","height"],q_=[["width","left","right"],["height","top","bottom"]];function Yq(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;
115e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),A,p;if(t==="horizontal"){var g=c.width+(d?-d.x+c.x:0);A=a+g,A>n||l.newline?(a=0,A=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(d?-d.y+c.y:0);p=o+m,p>i||l.newline?(a+=s+r,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=A+r:o=p+r)})}var mb=Yq;lr(Yq,"vertical");lr(Yq,"horizontal");function lEe(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function Qct(t,e){var r=uo(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===RM.point)a=r.refPoint,i=gi(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=je(o)?o:[o,o];i=gi(n,r.refContainer),a=r.boxCoordFrom===tEe?r.refPoint:[it(s[0],i.width)+i.x,it(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function uEe(t,e){var r=Qct(t,e),n=r.viewRect,i=r.center,a=t.get("radius");je(a)||(a=[0,a]);var o=it(n.width,e.getWidth()),s=it(n.height,e.getHeight()),l=Math.min(o,s),u=it(a[0],l/2),c=it(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:n}}function gi(t,e,r){r=mE(r||0);var n=e.width,i=e.height,a=it(t.left,n),o=it(t.top,i),s=it(t.right,n),l=it(t.bottom,i),u=it(t.width,n),c=it(t.height,i),f=r[2]+r[0],d=r[1]+r[3],A=t.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),A!=null&&(isNaN(u)&&isNaN(c)&&(A>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=A*c),isNaN(c)&&(c=u/A)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new St((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,c);return p.margin=r,p}function cEe(t,e,r){var n=t.getShallow("preserveAspect",!0);if(!n)return e;var i=e.width/e.height;if(Math.abs(Math.atan(r)-Math.atan(i))<1e-9)return e;var a=t.getShallow("preserveAspectAlign",!0),o=t.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=n==="cover";return i>r&&!l||i<r&&l?(s.width=e.height*r,a==="left"?s.left=0:a==="right"?s.right=0:s.left="center"):(s.height=e.width/r,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),gi(s,e)}var RM={rect:1,point:2};function uo(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=nEe(t),u=l.coord,c=l.from;if(o.dataToLayout){a=RM.rect,s=c;var f=o.dataToLayout(u);n=f.contentRect||f.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=RM.point,s=c,i=o.dataToPoint(u))}return a==null&&(a=RM.rect),a===RM.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function yQ(t,e,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||t,a.x=t.x,a.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new St(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=gi(Ct({width:u.width,height:u.height},e),r,n),d=o?f.x-u.x:0,A=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=A):(a.x+=d,a.y+=A),a===t&&t.markRedraw(),!0}function jct(t,e){return t[q_[e][0]]!=null||t[q_[e][1]]!=null&&t[q_[e][2]]!=null}function AR(t){var e=t.layoutMode||t.constructor.layoutMode;return Tt(e)?e:e?{type:e}:null}function lp(t,e,r){var n=r&&r.ignoreSize;!je(n)&&(n=[n,n]);var i=o(q_[0],0),a=o(q_[1],1);l(q_[0],t,i),l(q_[1],t,a);function o(u,c){var f={},d=0,A={},p=0,g=2;if(KU(u,function(b){A[b]=t[b]}),KU(u,function(b){ut(e,b)&&(f[b]=A[b]=e[b]),s(f,b)&&d++,s(A,b)&&p++}),n[c])return s(e,u[1])?A[u[2]]=null:s(e,u[2])&&(A[u[1]]=null),A;if(p===g||!d)return A;if(d>=g)return f;for(var m=0;m<u.length;m++){var y=u[m];if(!ut(f,y)&&ut(t,y)){f[y]=t[y];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){KU(u,function(d){c[d]=f[d]})}}function Dx(t){return fEe({},t)}function fEe(t,e){return e&&t&&KU(sEe,function(r){ut(e,r)&&(t[r]=e[r])}),t}var zct=qt(),gr=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=Bx("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=AR(this),a=i?Dx(r):{},o=n.getTheme();Xt(r,o.get(this.mainType)),Xt(r,this.getDefaultOption()),i&&lp(r,a,i)},e.prototype.mergeOption=function(r,n){Xt(this.option,r,!0);var i=AR(this);i&&lp(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!_lt(r))return r.defaultOption;var n=zct(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Xt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lE(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return lEe(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(wr);WCe(gr,wr);sQ(gr);yct(gr);wct(gr,Vct);function Vct(t){var e=[];return ee(gr.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.depen
115dencies||[])}),e=ze(e,function(r){return kA(r).main}),t!=="dataset"&&zt(e,"dataset")<=0&&e.unshift("dataset"),e}var xe={color:{},darkColor:{},size:{}},ba=xe.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};Fe(ba,{primary:ba.neutral80,secondary:ba.neutral70,tertiary:ba.neutral60,quaternary:ba.neutral50,disabled:ba.neutral20,border:ba.neutral30,borderTint:ba.neutral20,borderShade:ba.neutral40,background:ba.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ba.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ba.neutral70,axisLineTint:ba.neutral40,axisTick:ba.neutral70,axisTickMinor:ba.neutral60,axisLabel:ba.neutral70,axisSplitLine:ba.neutral15,axisMinorSplitLine:ba.neutral05});for(var r_ in ba)if(ba.hasOwnProperty(r_)){var Bue=ba[r_];r_==="theme"?xe.darkColor.theme=ba.theme.slice():r_==="highlight"?xe.darkColor.highlight="rgba(255,231,130,0.4)":r_.indexOf("accent")===0?xe.darkColor[r_]=$v(Bue,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):xe.darkColor[r_]=$v(Bue,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}xe.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var dEe="";typeof navigator<"u"&&(dEe=navigator.platform||"");var US="rgba(0, 0, 0, 0.2)",hEe=xe.color.theme[0],Gct=$v(hEe,null,null,.9);const AEe={darkMode:"auto",colorBy:"series",color:xe.color.theme,gradientColor:[Gct,hEe],aria:{decal:{decals:[{color:US,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:US,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:US,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:US,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:US,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:US,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:dEe.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 _s={Must:1,Might:2,Not:3},pEe=qt();function Kct(t){pEe(t).datasetMap=st()}function vEe(t,e,r){var n={},i=Zq(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=pEe(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;t=t.slice(),ee(t,function(g,m){var y=Tt(g)?g:t[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=p(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});ee(t,function(g,m){var y=g.name,b=p(g);if(c==null){var x=d.valueWayDim;A(n[y],x,b),A(o,x,b),d.valueWayDim+=b}else if(c===m)A(n[y],0,b),A(a,0,b);else{var x=d.categoryWayDim;A(n[y],x,b),A(o,x,b),d.categoryWayDim+=b}});function A(g,m,y){for(var b=0;b<y;b++)g.push(m+b)}function p(g){var m=g.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function $q(t,e,r){var n={},i=Zq(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Kc||a===Sh)&&ee(o,function(c,f){(Tt(c)?c.name:c)==="name"&&(s=f)});var l=(function(){for(var c={},f={},d=[],A=0,p=Math.min(5,r);A<p;A++){var g=mEe(e.data,a,e.seriesLayoutBy,o,e.startIndex,A);d.push(g);var m=g===_s.Not;if(m&&c.v==null&&A!==s&&(c.v=A),(c.n==null||c.n===c.v||!m&&d[c.n]===_s.Not)&&(c.n=A),y(c)&&d[c.n]!==_s.Not)return c;m||(g===_s.Might&&f.v==null&&A!==s&&(f.v=A),(f.n==null||f.n===f.v)&&(f.n=A))}function y(b){return b.v!=null&&b.n!=null}return y(c)?c:y(f)?f:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Zq(t){var e=t.get("data",!0);if(!e)return lE(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ta).models[0]}function Wct(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:lE(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ta).models}function gEe(t,e){return mEe(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function mEe(t,e,r,n,i,a){var o,s=5;if(lu(t))return _s.Not;var l,u;if(n){var c=n[a];Tt(c)?(l=c.name,u=c.type):et(c)&&(l=c)}if(u!=null)return u==="ordinal"?_s.Must:_s.Not;if(e===Jo){var f=t;if(r===Cx){for(var d=f[a],A=0;A<(d||[]).length&&A<s;A++)if((o=T(d[i+A]))!=null)return o}else for(var A=0;A<f.length&&A<s;A++){var p=f[i+A];if(p&&(o=T(p[a]))!=null)return o}}else if(e===Kc){var g=t;if(!l)return _s.Not;for(var A=0;A<g.length&&A<s;A++){var m=g[A];if(m&&(o=T(m[l]))!=null)return o}}else if(e===Sh){var y=t;if(!l)return _s.Not;var d=y[l];if(!d||lu(d))return _s.Not;for(var A=0;A<d.length&&A<s;A++)if((o=T(d[A]))!=null)return o}else if(e===Gc)for(var b=t,A=0;A<b.length&&A<s;A++){var m=b[A],x=sE(m);if(!je(x))return _s.Not;if((o=T(x[a]))!=null)return o}function T(B){var R=et(B);if(B!=null&&isFinite(Number(B))&&B!=="")return R?_s.Might:_s.Not;if(R&&B!=="-")return _s.Must}return _s.Not}var DW=st();function Yct(t,e){Ps(DW.get(t)==null&&e),DW.set(t,e)}function $ct(t,e,r){var n=DW.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var Due=qt(),Zct=qt(),Xq=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Kn(this.get("color",!0)),a=this.get("colorLayer",!0);return yEe(this,Due,i,a,e,r,n)},t.prototype.clearColorPalette=function(){qct(this,Due)},t})();function MW(t,e,r,n){var i=Kn(t.get(["aria","decal","decals"]));return yEe(t,Zct,i,null,e,r,n)}function Xct(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function yEe(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Xct(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function qct(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var IN,TD,Mue,Lue="\0_ec_inner",Jct=1,qq=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new wr(a),this._locale=new wr(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Oue(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Oue(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Mue(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}
115if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&ee(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=st(),u=n&&n.replaceMergeMainTypeMap;Kct(this),ee(r,function(f,d){f!=null&&(gr.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?vt(f):Xt(i[d],f,!0))}),u&&u.each(function(f,d){gr.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),gr.topologicalTravel(s,gr.getAllClassMainTypes(),c,this);function c(f){var d=$ct(this,f,Kn(r[f])),A=a.get(f),p=A?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=UCe(A,d,p);slt(g,f,gr),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],b=0,x;ee(g,function(T,B){var R=T.existing,I=T.newOption;if(!I)R&&(R.mergeOption({},this),R.optionUpdated({},!1));else{var N=f==="series",F=gr.getClass(f,T.keyInfo.subType,!N);if(!F)return;if(f==="tooltip"){if(x)return;x=!0}if(R&&R.constructor===F)R.name=T.keyInfo.name,R.mergeOption(I,this),R.optionUpdated(I,!1);else{var Q=Fe({componentIndex:B},T.keyInfo);R=new F(I,this,this,Q),Fe(R,Q),T.brandNew&&(R.__requireNewView=!0),R.init(I,this,this),R.optionUpdated(null,!0)}}R?(m.push(R.option),y.push(R),b++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,b),f==="series"&&IN(this)}this._seriesIndices||IN(this)},e.prototype.getOption=function(){var r=vt(this.option);return ee(r,function(n,i){if(gr.hasClass(i)){for(var a=Kn(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!uR(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Lue],r},e.prototype.setTheme=function(r){this._theme=new wr(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],ee(Kn(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Rue("id",a,s):o!=null?l=Rue("name",o,s):l=ln(s,function(u){return!!u}),Iue(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):ln(this._componentsMap.get(i),function(u){return!!u});return l(Iue(o,r));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 r.filter?ln(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(mt(r)){var o=n,s=r;a.each(function(f,d){for(var A=0;f&&A<f.length;A++){var p=f[A];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=et(r)?a.get(r):Tt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=io(r,null);return ln(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return ln(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return ln(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){TD(this),ee(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){ee(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){TD(this),ee(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return ee(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return TD(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){TD(this);var i=[];ee(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=st(i)},e.prototype.restoreData=function(r){IN(this);var n=this._componentsMap,i=[];n.each(function(a,o){gr.hasClass(o)&&i.push(o)}),gr.topologicalTravel(i,gr.getAllClassMainTypes(),function(a){ee(n.get(a),function(o){o&&(a!=="series"||!eft(o,r))&&o.restoreData()})})},e.internalField=(function(){IN=function(r){var n=r._seriesIndices=[];ee(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=st(n)},TD=function(r){},Mue=function(r,n){r.option={},r.option[Lue]=Jct,r._componentsMap=st({series:[]}),r._componentsCount=st();var i=n.aria;Tt(i)&&i.enabled==null&&(i.enabled=!0),tft(n,r._theme.option),Xt(n,AEe,!1),r._mergeOption(n,null)}})(),e})(wr);function eft(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function tft(t,e){var r=t.color&&!t.colorLayer;ee(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||gr.hasClass(i)||(typeof n=="object"?t[i]=t[i]?Xt(t[i],n,!1):vt(n):t[i]==null&&(t[i]=n))})}function Rue(t,e,r){if(je(e)){var n=st();
115return ee(e,function(a){if(a!=null){var o=io(a,null);o!=null&&n.set(a,!0)}}),ln(r,function(a){return a&&n.get(a[t])})}else{var i=io(e,null);return ln(r,function(a){return a&&i!=null&&a[t]===i})}}function Iue(t,e){return e.hasOwnProperty("subType")?ln(t,function(r){return r&&r.subType===e.subType}):t}function Oue(t){var e=st();return t&&ee(Kn(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Da(qq,Xq);var rft=/^(min|max)?(.+)$/,nft=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(ee(Kn(e.series),function(o){o&&o.data&&lu(o.data)&&eR(o.data)}),ee(Kn(e.dataset),function(o){o&&o.source&&lu(o.source)&&eR(o.source)})),e=vt(e);var i=this._optionBackup,a=ift(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],vt(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=vt(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)aft(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!sft(o,this._currentMediaIndices)&&(s=ze(o,function(c){return vt(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},t})();function ift(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(t.options=t.media=null),a=t),c&&je(u)&&ee(u,function(A){A&&A.option&&(A.query?n.push(A):i||(i=A))}),d(a),ee(l,function(A){return d(A)}),ee(n,function(A){return d(A.option)});function d(A){ee(e,function(p){p(A,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function aft(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return ee(t,function(a,o){var s=o.match(rft);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();oft(n[u],a,l)||(i=!1)}}),i}function oft(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function sft(t,e){return t.join(",")===e.join(",")}var zd=ee,pR=Tt,Pue=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function u8(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Pue.length;r<n;r++){var i=Pue[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?Xt(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?Xt(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function fl(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Ct(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function IM(t){fl(t,"itemStyle"),fl(t,"lineStyle"),fl(t,"areaStyle"),fl(t,"label"),fl(t,"labelLine"),fl(t,"upperLabel"),fl(t,"edgeLabel")}function Ua(t,e){var r=pR(t)&&t[e],n=pR(r)&&r.textStyle;if(n)for(var i=0,a=Fle.length;i<a;i++){var o=Fle[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Of(t){t&&(IM(t),Ua(t,"label"),t.emphasis&&Ua(t.emphasis,"label"))}function lft(t){if(pR(t)){u8(t),IM(t),Ua(t,"label"),Ua(t,"upperLabel"),Ua(t,"edgeLabel"),t.emphasis&&(Ua(t.emphasis,"label"),Ua(t.emphasis,"upperLabel"),Ua(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(u8(e),Of(e));var r=t.markLine;r&&(u8(r),Of(r));var n=t.markArea;n&&Of(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!lu(a))for(var o=0;o<a.length;o++)Of(a[o]);ee(t.categories,function(u){IM(u)})}if(i&&!lu(i))for(var o=0;o<i.length;o++)Of(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;
115o++)Of(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)je(l[o])?(Of(l[o][0]),Of(l[o][1])):Of(l[o]);t.type==="gauge"?(Ua(t,"axisLabel"),Ua(t,"title"),Ua(t,"detail")):t.type==="treemap"?(fl(t.breadcrumb,"itemStyle"),ee(t.levels,function(u){IM(u)})):t.type==="tree"&&IM(t.leaves)}}function Av(t){return je(t)?t:t?[t]:[]}function kue(t){return(je(t)?t[0]:t)||{}}function uft(t,e){zd(Av(t.series),function(n){pR(n)&&lft(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),zd(r,function(n){zd(Av(t[n]),function(i){i&&(Ua(i,"axisLabel"),Ua(i.axisPointer,"label"))})}),zd(Av(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ua(i,"axisLabel"),Ua(i&&i.axisPointer,"label")}),zd(Av(t.calendar),function(n){fl(n,"itemStyle"),Ua(n,"dayLabel"),Ua(n,"monthLabel"),Ua(n,"yearLabel")}),zd(Av(t.radar),function(n){Ua(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),zd(Av(t.geo),function(n){pR(n)&&(Of(n),zd(Av(n.regions),function(i){Of(i)}))}),zd(Av(t.timeline),function(n){Of(n),fl(n,"label"),fl(n,"itemStyle"),fl(n,"controlStyle",!0);var i=n.data;je(i)&&ee(i,function(a){Tt(a)&&(fl(a,"label"),fl(a,"itemStyle"))})}),zd(Av(t.toolbox),function(n){fl(n,"iconStyle"),zd(n.feature,function(i){fl(i,"iconStyle")})}),Ua(kue(t.axisPointer),"label"),Ua(kue(t.tooltip).axisPointer,"label")}function cft(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function fft(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function Nue(t){t&&ee(dft,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var dft=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hft=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c8=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ED(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<c8.length;r++){var n=c8[r][1],i=c8[r][0];e[n]!=null&&(e[i]=e[n])}}function Fue(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Uue(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Aft(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function wEe(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&wEe(t[r].children,e)}function _Ee(t,e){uft(t,e),t.series=Kn(t.series),ee(t.series,function(r){if(Tt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Fue(r.label);var i=r.data;if(i&&!lu(i))for(var a=0;a<i.length;a++)Fue(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=cft(r,"pointer.color");o!=null&&fft(r,"itemStyle.color",o)}else if(n==="bar"){ED(r),ED(r.backgroundStyle),ED(r.emphasis);var i=r.data;if(i&&!lu(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ED(i[a]),ED(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Uue(r),wEe(r.data,Uue)}else n==="graph"||n==="sankey"?Aft(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ct(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Nue(r)}}),t.dataRange&&(t.visualMap=t.dataRange),ee(hft,function(r){var n=t[r];n&&(je(n)||(n=[n]),ee(n,function(i){Nue(i)}))})}var pft=LI(vft);function vft(t){var e=st();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};
115if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),ee(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),gft(r)}})}function gft(t){ee(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(e.stackedDimension,f);if(isNaN(d))return i;var A,p;s?p=o.getRawIndex(f):A=o.get(e.stackedByDimension,f);for(var g=NaN,m=r-1;m>=0;m--){var y=t[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,A)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=b_(d,b),g=b;break}}}return n[0]=d,n[1]=g,n})})}var wQ=(function(){function t(e){this.data=e.data||(e.sourceFormat===Sh?{}:[]),this.sourceFormat=e.sourceFormat||aTe,this.seriesLayoutBy=e.seriesLayoutBy||fh,this.startIndex=e.startIndex||
1150,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&gEe(this,n)===_s.Must&&(i.type="ordinal")}}return t})();function Jq(t){return t instanceof wQ}function LW(t,e,r){r=r||bEe(t);var n=e.seriesLayoutBy,i=yft(t,r,n,e.sourceHeader,e.dimensions),a=new wQ({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:vt(e)});return a}function eJ(t){return new wQ({data:t,sourceFormat:lu(t)?ky:Gc})}function mft(t){return new wQ({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:vt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function bEe(t){var e=aTe;if(lu(t))e=ky;else if(je(t)){t.length===0&&(e=Jo);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(je(i)||lu(i)){e=Jo;break}else if(Tt(i)){e=Kc;break}}}}else if(Tt(t)){for(var a in t)if(ut(t,a)&&Os(t[a])){e=Sh;break}}return e}function yft(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Hue(i),startIndex:o,dimensionsDetectedCount:a};if(e===Jo){var s=t;n==="auto"||n==null?Que(function(u){u!=null&&u!=="-"&&(et(u)?o==null&&(o=1):o=0)},r,s,10):o=Hr(n)?n:n?1:0,!i&&o===1&&(i=[],Que(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Cx?s.length:s[0]?s[0].length:null}else if(e===Kc)i||(i=wft(t));else if(e===Sh)i||(i=[],ee(t,function(u,c){i.push(c)}));else if(e===Gc){var l=sE(t[0]);a=je(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Hue(i),dimensionsDetectedCount:a}}function wft(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Cr(r)}function Hue(t){if(t){var e=st();return ze(t,function(r,n){r=Tt(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Que(t,e,r,n){if(e===Cx)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function xEe(t){var e=t.sourceFormat;return e===Kc||e===Sh}var n_,i_,a_,o_,jue,zue,SEe=(function(){function t(e,r){var n=Jq(e)?e:eJ(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===ky&&(this._offset=0,this._dimSize=r,this._data=i),zue(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},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;zue=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,A=jue[tJ(u,c)];if(Fe(o,A),u===ky)o.getItem=r,o.count=i,o.fillStorage=n;else{var p=CEe(u,c);o.getItem=ot(p,null,s,f,d);var g=TEe(u,c);o.count=ot(g,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var A=u[d],p=A[0]==null?1/0:A[0],g=A[1]==null?-1/0:A[1],m=s-o,y=l[d],b=0;b<m;b++){var x=c[b*f+d];y[o+b]=x,x<p&&(p=x),x>g&&(g=x)}A[0]=p,A[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};jue=(e={},e[Jo+"_"+fh]={pure:!0,appendData:a},e[Jo+"_"+Cx]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Kc]={pure:!0,appendData:a},e[Sh]={pure:!0,appendData:function(o){var s=this._data;ee(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Gc]={appendData:a},e[ky]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),ON=function(t){je(t)||kCe("series.data or dataset.source must be an array.")};n_={},n_[Jo+"_"+fh]=ON,n_[Jo+"_"+Cx]=ON,n_[Kc]=ON,n_[Sh]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&kCe("dimension name must not be null/undefined.")}},n_[Gc]=ON;var Vue=function(t,e,r,n){return t[n]},_ft=(i_={},i_[Jo+"_"+fh]=function(t,e,r,n){return t[n+e]},i_[Jo+"_"+Cx]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},i_[Kc]=Vue,i_[Sh]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a}
115,i_[Gc]=Vue,i_);function CEe(t,e){var r=_ft[tJ(t,e)];return r}var Gue=function(t,e,r){return t.length},bft=(a_={},a_[Jo+"_"+fh]=function(t,e,r){return Math.max(0,t.length-e)},a_[Jo+"_"+Cx]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},a_[Kc]=Gue,a_[Sh]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},a_[Gc]=Gue,a_);function TEe(t,e){var r=bft[tJ(t,e)];return r}var f8=function(t,e,r){return t[e]},xft=(o_={},o_[Jo]=f8,o_[Kc]=function(t,e,r){return t[r]},o_[Sh]=f8,o_[Gc]=function(t,e,r){var n=sE(t);return n instanceof Array?n[e]:n},o_[ky]=f8,o_);function EEe(t){var e=xft[t];return e}function tJ(t,e){return t===Jo?t+"_"+e:t}function ST(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return EEe(a)(n,o,s)}else{var l=n;return a===Gc&&(l=sE(n)),l}}}}var Sft=/\{@(.+?)\}/g,_Q=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",A=n.userOutput&&n.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:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:A?A.fullDimensions:null,encode:A?A.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&je(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(mt(a))return l.status=r,l.dimensionIndex=i,a(l);if(et(a)){var c=Wq(a,l);return c.replace(Sft,function(f,d){var A=d.length,p=d;p.charAt(0)==="["&&p.charAt(A-1)==="]"&&(p=+p.slice(1,A-1));var g=ST(s,e,p);if(o&&je(o.interpolatedValue)){var m=s.getDimensionIndex(p);m>=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return ST(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Kue(t){var e,r;return Tt(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function bL(t){return new Cft(t)}var Cft=(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 r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var A=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||A<p)){var g=this._progress;if(je(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],A,p,l,u);else this._doProgress(g,A,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;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,r,n,i,a){Wue.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Wue.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),je(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(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})(),Wue=(function(){var t,e,r,n,i,a={reset:function(l,u,c,f){e=l,t=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}
115function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})();function Fy(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Hr(t)&&t!=null&&t!=="-"&&(t=+gp(t)),t==null||t===""?NaN:Number(t))}var Tft=st({number:function(t){return parseFloat(t)},time:function(t){return+gp(t)},trim:function(t){return et(t)?Rc(t):t}});function BEe(t){return Tft.get(t)}var DEe={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}},Eft=(function(){function t(e,r){if(!Hr(r)){var n="";sn(n)}this._opFn=DEe[e],this._rvalFloat=ap(r)}return t.prototype.evaluate=function(e){return Hr(e)?this._opFn(e,this._rvalFloat):this._opFn(ap(e),this._rvalFloat)},t})(),MEe=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Hr(e)?e:ap(e),i=Hr(r)?r:ap(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=et(e),l=et(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),Bft=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=ap(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=ap(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function Dft(t,e){return t==="eq"||t==="ne"?new Bft(t==="eq",e):ut(DEe,t)?new Eft(t,e):null}function LEe(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function REe(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var Mft=(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,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Fy(e,r)},t})();function Lft(t,e){var r=new Mft,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==fh&&sn(o);var s=[],l={},u=t.dimensionsDefine;if(u)ee(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var x="";ut(l,y)&&sn(x),l[y]=b}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=CEe(i,fh);e.__isBuiltIn&&(r.getRawDataItem=function(g){return f(n,a,s,g)},r.getRawData=ot(Rft,null,t)),r.cloneRawData=ot(Ift,null,t);var d=TEe(i,fh);r.count=ot(d,null,n,a,s);var A=EEe(i);r.retrieveValue=function(g,m){var y=f(n,a,s,g);return p(y,m)};var p=r.retrieveValueFromItem=function(g,m){if(g!=null){var y=s[m];if(y)return A(g,m,y.name)}};return r.getDimensionInfo=ot(Oft,null,s,l),r.cloneAllDimensionInfo=ot(Pft,null,s),r}function Rft(t){var e=t.sourceFormat;if(!rJ(e)){var r="";sn(r)}return t.data}function Ift(t){var e=t.sourceFormat,r=t.data;if(!rJ(e)){var n="";sn(n)}if(e===Jo){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Kc){for(var i=[],a=0,o=r.length;a<o;a++)i.push(Fe({},r[a]));return i}}function Oft(t,e,r){if(r!=null){if(Hr(r)||!isNaN(r)&&!ut(e,r))return t[r];if(ut(e,r))return e[r]}}function Pft(t){return vt(t)}var IEe=st();function kft(t){t=vt(t);var e=t.type,r="";e||sn(r);var n=e.split(":");n.length!==2&&sn(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,IEe.set(e,t)}function Nft(t,e,r){var n=Kn(t),i=n.length,a="";i||sn(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=Fft(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Fft(t,e,r,n){var i="";e.length||sn(i),Tt(t)||sn(i);var a=t.type,o=IEe.get(a);o||sn(i);var s=ze(e,function(u){return Lft(u,o)}),l=Kn(o.transform({upstream:s[0],upstreamList:s,config:vt(t.config)}));return ze(l,function(u,c){var f="";Tt(u)||sn(f),u.data||sn(f);var d=bEe(u.data);rJ(d)||sn(f);var A,p=e[0];if(p&&c===0&&!u.dimensions){var g=p.startIndex;g&&(u.data=p.data.slice(0,g).concat(u.data)),A={seriesLayoutBy:fh,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else A={seriesLayoutBy:fh,sourceHeader:0,dimensions:u.dimensions};return LW(u.data,A,null)})}function rJ(t){return t===Jo||t===Kc}var Uft=typeof Uint32Array===cE?Array:Uint32Array,Hft=typeof Uint16Array===cE?Array:Uint16Array,O
115Ee=typeof Int32Array===cE?Array:Int32Array,Yue=typeof Float64Array===cE?Array:Float64Array,PEe={float:Yue,int:OEe,ordinal:Array,number:Array,time:Yue},d8;function HS(t){return t>65535?Uft:Hft}function Qft(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function $ue(t,e,r,n,i){var a=PEe[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var RW=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=st()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=d8[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],xEe(i),this._dimensions=ze(r,function(o){return{type:o.type,property:o.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,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new PEe[r||"float"](this._rawCount),this._rawExtent[a]=Cs(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Cs());for(var l=a[e],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var c=i[u];$ue(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var A=d-s,p=0;p<a;p++){var c=i[p],g=d8.arrayRows.call(this,e[A]||f,c.property,A,p);n[p][d]=g;var m=o[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ze(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Cs()),$ue(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var d=[],A=e;A<r;A++){d=i.getItem(A,d);for(var p=0;p<s;p++){var g=a[p],m=this._dimValueGetter(d,u[p],A,p);g[A]=m;var y=l[p];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),qo(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;
115if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=HS(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=HS(n._rawCount),o=new a(i),s=[],l=e.length,u=0,c=e[0],f=n._chunks,d=0;d<i;d++){var A=void 0,p=n.getRawIndex(d);if(l===0)A=r(d);else if(l===1){var g=f[c][p];A=r(g,d)}else{for(var m=0;m<l;m++)s[m]=f[e[m]][p];s[m]=d,A=r.apply(null,s)}A&&(o[u++]=p)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Cr(e),a=i.length;if(!a)return this;var o=r.count(),s=HS(r._rawCount),l=new s(o),u=0,c=i[0],f=e[c][0],d=e[c][1],A=r._chunks,p=!1;if(!r._indices){var g=0;if(a===1){for(var m=A[i[0]],y=0;y<n;y++){var b=m[y];(b>=f&&b<=d||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(a===2){for(var m=A[i[0]],x=A[i[1]],T=e[i[1]][0],B=e[i[1]][1],y=0;y<n;y++){var b=m[y],R=x[y];(b>=f&&b<=d||isNaN(b))&&(R>=T&&R<=B||isNaN(R))&&(l[u++]=g),g++}p=!0}}if(!p)if(a===1)for(var y=0;y<o;y++){var I=r.getRawIndex(y),b=A[i[0]][I];(b>=f&&b<=d||isNaN(b))&&(l[u++]=I)}else for(var y=0;y<o;y++){for(var N=!0,I=r.getRawIndex(y),F=0;F<a;F++){var Q=i[F],b=A[Q][I];(b<e[Q][0]||b>e[Q][1])&&(N=!1)}N&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<r.length;c++)u[r[c]]=Cs();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),A=0;A<o;A++)l[A]=i[r[A]][d];l[o]=f;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var c=0;c<p.length;c++){var g=r[c],m=p[c],y=u[g],b=i[g];b&&(b[d]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,A=new(HS(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));A[s++]=u;for(var p=1;p<o-1;p+=l){for(var g=Math.min(p+l,o-1),m=Math.min(p+l*2,o),y=(m+g)/2,b=0,x=g;x<m;x++){var T=this.getRawIndex(x),B=a[T];isNaN(B)||(b+=B)}b/=m-g;var R=p,I=Math.min(p+l,o),N=p-1,F=a[u];c=-1,d=R;for(var Q=-1,j=0,x=R;x<I;x++){var T=this.getRawIndex(x),B=a[T];if(isNaN(B)){j++,Q<0&&(Q=T);continue}f=Math.abs((N-y)*(B-F)-(N-x)*(b-F)),f>c&&(c=f,d=T)}j>0&&j<I-R&&(A[s++]=Math.min(Q,d),d=Math.max(Q,d)),A[s++]=d,u=d}return A[s++]=this.getRawIndex(o-1),n._count=s,n._indices=A,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(HS(this._rawCount))(Math.ceil(s/a)*2),u=0,c=0;c<s;c+=a){var f=c,d=o[this.getRawIndex(f)],A=c,p=o[this.getRawIndex(A)],g=a;c+a>s&&(g=s-c);for(var m=0;m<g;m++){var y=this.getRawIndex(c+m),b=o[y];b<d&&(d=b,f=c+m),b>p&&(p=b,A=c+m)}var x=this.getRawIndex(f),T=this.getRawIndex(A);f<A?(l[u++]=x,l[u++]=T):(l[u++]=T,l[u++]=x)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],c=this.count(),f=a._rawExtent[e]=Cs(),d=new(HS(this._rawCount))(Math.ceil(c/l)),A=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var g=0;g<l;g++){var m=this.getRawIndex(p+g);s[g]=u[m]}var y=n(s),b=this.getRawIndex(Math.min(p+i(s,y)||0,c-1));u[b]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[A++]=b}return a._count=A,a._indices=d,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=Cs();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=LEe(r),c=u.key,f=l[c];if(f)return f.slice();for(var d=i[0],A=i[1],p=0;p<a;p++){var g=this.getRawIndex(p),m=n[g];(!r||REe(u,m))&&(m<d&&(d=m),m>A&&(A=m))}return l[c]=[d,A]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&td(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Qft(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=vt(this._extent),e._rawExtent=vt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}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(r,n,i,a){return Fy(r[a],this._dimensions[a])}d8={arrayRows:e,objectRows:function(r,n,i,a){return Fy(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Fy(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),kEe=(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,r){this._sourceList=e,this._upstreamSignList=r,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,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(PN(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=lu(s)?ky:Gc,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},A=ft(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=ft(f.sourceHeader,d.sourceHeader),g=ft(f.dimensions,d.dimensions),m=A!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||g;i=m?[LW(s,{seriesLayoutBy:A,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(n){var b=this._applyTransform(r);i=b.sourceList,a=b.upstreamSignList}else{var x=y.get("source",!0);i=[LW(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Xue(a)}var o,s=[],l=[];return ee(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&Xue(f),s.push(c),l.push(u._getVersionSign())}),n?o=Nft(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[mft(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];PN(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new RW,s.initData(new SEe(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(PN(e)){var r=Zq(e);return r?[r.getSourceManager()]:[]}else return ze(Wct(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(PN(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function Zue(t){var e=t.option.transform;e&&eR(t.option.transform)}function PN(t){return t.mainType==="series"}function Xue(t){throw new Error(t)}var jft="line-height:1";function NEe(t){var e=t.lineHeight;return e==null?jft:"line-height:"+pl(e+"")+"px"}
115function FEe(t,e){var r=t.color||xe.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||xe.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+pl(n+"")+"px;color:"+pl(r)+";font-weight:"+pl(i+""),valueStyle:"font-size:"+pl(o+"")+"px;color:"+pl(a)+";font-weight:"+pl(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var zft=[0,10,20,30],Vft=["",`
116`,`
117
118`,`
119
120
121`];function Va(t,e){return e.type=t,e}function IW(t){return t.type==="section"}function UEe(t){return IW(t)?Gft:Kft}function HEe(t){if(IW(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return ee(t.blocks,function(i){var a=HEe(i);a>=e&&(e=a+ +(n&&(!a||IW(i)&&!i.noHeader)))}),e}return 0}function Gft(t,e,r,n){var i=e.noHeader,a=Wft(HEe(e)),o=[],s=e.blocks||[];Ps(!s||je(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ut(u,l)){var c=new MEe(u[l],null);s.sort(function(g,m){return c.evaluate(g.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}ee(s,function(g,m){var y=e.valueFormatter,b=UEe(g)(y?Fe(Fe({},t),{valueFormatter:y}):t,g,m>0?a.html:0,n);b!=null&&o.push(b)});var f=t.renderMode==="richText"?o.join(a.richText):OW(n,o.join(""),i?r:a.html);if(i)return f;var d=BW(e.header,"ordinal",t.useUTC),A=FEe(n,t.renderMode).nameStyle,p=NEe(n);return t.renderMode==="richText"?QEe(t,d,A)+a.richText+f:OW(n,'<div style="'+A+";"+p+';">'+pl(d)+"</div>"+f,r)}function Kft(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(T){return T=je(T)?T:[T],ze(T,function(B,R){return BW(B,je(A)?A[R]:A,u)})};if(!(a&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||xe.color.secondary,i),d=a?"":BW(l,"ordinal",u),A=e.valueType,p=o?[]:c(e.value,e.rawDataIndex),g=!s||!a,m=!s&&a,y=FEe(n,i),b=y.nameStyle,x=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":QEe(t,d,b))+(o?"":Zft(t,p,g,m,x)):OW(n,(s?"":f)+(a?"":Yft(d,!s,b))+(o?"":$ft(p,g,m,x)),r)}}function que(t,e,r,n,i,a){if(t){var o=UEe(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function Wft(t){return{html:zft[t],richText:Vft[t]}}function OW(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=NEe(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function Yft(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+pl(t)+"</span>"}function $ft(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=je(t)?t:[t],'<span style="'+a+";"+n+'">'+ze(t,function(o){return pl(o)}).join("&nbsp;&nbsp;")+"</span>"}function QEe(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function Zft(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(je(e)?e.join("  "):e,a)}function jEe(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Kb(n)}function zEe(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var h8=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=fq()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=eEe({color:r,type:e,renderMode:n,markerId:i});return et(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};je(r)?ee(r,function(a){return Fe(n,a)}):Fe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function VEe(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=je(s),u=jEe(e,r),c,f,d,A;if(o>1||l&&!o){var p=Xft(s,e,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,A=p.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);A=c=ST(i,r,a[0]),f=g.type}else A=c=l?s[0]:s;var m=dq(e),y=m&&e.name||"",b=i.getName(r),x=n?y:b;
121return Va("section",{header:y,noHeader:n||!m,sortParam:A,blocks:[Va("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Rc(x),value:c,valueType:f,rawDataIndex:i.getRawIndex(r)})].concat(d||[])})}function Xft(t,e,r,n,i){var a=e.getData(),o=td(t,function(f,d,A){var p=a.getDimensionInfo(A);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?ee(n,function(f){c(ST(a,r,f),f)}):ee(t,c);function c(f,d){var A=a.getDimensionInfo(d);!A||A.otherDims.tooltip===!1||(o?u.push(Va("nameValue",{markerType:"subItem",markerColor:i,name:A.displayName,value:f,valueType:A.type})):(s.push(f),l.push(A.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Gm=qt();function kN(t,e){return t.getName(e)||t.getId(e)}var WU="__universalTransitionEnabled",On=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=bL({count:Jft,reset:edt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Gm(this).sourceManager=new kEe(this);a.prepareSource();var o=this.getInitialData(r,i);ece(o,this),this.dataTask.context.data=o,Gm(this).dataBeforeProcessed=o,Jue(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=AR(this),a=i?Dx(r):{},o=this.subType;gr.hasClass(o)&&(o+="Series"),Xt(r,n.getTheme().get(this.subType)),Xt(r,this.getDefaultOption()),Ub(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&lp(r,a,i)},e.prototype.mergeOption=function(r,n){r=Xt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=AR(this);i&&lp(this.option,r,i);var a=Gm(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);ece(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Gm(this).dataBeforeProcessed=o,Jue(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!lu(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Ub(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=PW(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Gm(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=PW(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Gm(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return st(r)},e.prototype.getSourceManager=function(){return Gm(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Gm(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var c=[],f=1/0,d=-1,A=0,p=o.getDimensionIndex(n),g=o.getStore(),m=0,y=g.count();m<y;m++){var b=g.get(p,m),x=l.dataToCoord(b),T=u-x,B=Math.abs(T);B<=a&&((B<f||B===f&&T>=0&&d<0)&&(f=B,d=T,A=0),T===d&&(c[A++]=m))}return c.length=A,c},e.prototype.formatTooltip=function(r,n,i){return VEe({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Dr.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Xq.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=kN(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Cr(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[kN(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[WU])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=kN(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var A=n[l-1],d=kN(r,A);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(A),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return gr.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(gr);Da(On,_Q);Da(On,Xq);WCe(On,gr);function Jue(t){var e=t.name;dq(t)||(t.name=qft(t)||e)}function qft(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return ee(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Jft(t){return t.model.getRawData().count()}function edt(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),tdt}function tdt(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ece(t,e){ee(gT(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,lr(rdt,e))})}function rdt(t,e){var r=PW(t);return r&&r.setOutputEnd((e||this).count()),e}function PW(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var Yn=(function(){function t(){this.group=new xt,this.uid=Bx("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();pq(Yn);sQ(Yn);function Mx(){var t=qt();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRen
121der,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var GEe=qt(),ndt=Mx(),xn=(function(){function t(){this.group=new xt,this.uid=Bx("viewChart"),this.renderTask=bL({plan:idt,reset:adt}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&rce(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&rce(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){w0(this.group,e)},t.markUpdateMethod=function(e,r){GEe(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function tce(t,e,r){t&&fR(t)&&(e==="emphasis"?Ag:pg)(t,r)}function rce(t,e,r){var n=Hb(t,e),i=e&&e.highlightKey!=null?Mut(e.highlightKey):null;n!=null?ee(Kn(n),function(a){tce(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){tce(a,r,i)})}pq(xn);sQ(xn);function idt(t){return ndt(t.model)}function adt(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&GEe(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),odt[l]}var odt={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)}}},N3="\0__throttleOriginMethod",nce="\0__throttleRate",ice="\0__throttleType";function bQ(t,e,r){var n,i=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var d=function(){for(var A=[],p=0;p<arguments.length;p++)A[p]=arguments[p];n=new Date().getTime(),l=this,u=A;var g=c||e,m=c||r;c=null,s=n-(m?i:a)-g,clearTimeout(o),m?o=setTimeout(f,g):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(A){c=A},d}function wE(t,e,r,n){var i=t[e];if(i){var a=i[N3]||i,o=i[ice],s=i[nce];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=bQ(a,r,n==="debounce"),i[N3]=a,i[ice]=n,i[nce]=r}return i}}function vR(t,e){var r=t[e];r&&r[N3]&&(r.clear&&r.clear(),t[e]=r[N3])}var ace=qt(),oce={itemStyle:jb(zTe,!0),lineStyle:jb(jTe,!0)},sdt={lineStyle:"stroke",itemStyle:"fill"};function KEe(t,e){var r=t.visualStyleMapper||oce[e];return r||(console.warn("Unknown style type '"+e+"'."),oce.itemStyle)}function WEe(t,e){var r=t.visualDrawType||sdt[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var ldt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=KEe(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=WEe(t,n),u=o[l],c=mt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||mt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||mt(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(A,p){var g=t.getDataParams(p),m=Fe({},o);m[l]=c(g),A.setItemVisual(p,"style",m)}}}},BD=new wr,udt={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=KEe(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){BD.option=l[n];var u=i(BD),c=o.ensureUniqueItemVisual(s,"style");Fe(c,u),BD.option.decal&&(o.setItemVisual(s,"decal",BD.option.decal),BD.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cdt={performRawSeries:!0,overallReset:function(t){var e=st();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();ace(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=ace(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=WEe(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");
121if(f){var d=a.ensureUniqueItemVisual(c,"style"),A=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(A,o,p)}})}})}},NN=Math.PI;function fdt(t,e){e=e||{},Ct(e,{text:"loading",textColor:xe.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:xe.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new xt,n=new fr({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Nr({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new fr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new OI({shape:{startAngle:-NN/2,endAngle:-NN/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:NN*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:NN*3/2}).delay(300).start("circularInOut"),r.add(o)),r.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&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var YEe=(function(){function t(e,r,n,i){this._stageTaskMap=st(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):GCe(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=st();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;ee(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ps(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;ee(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var A,p=d.agentStubMap;p.each(function(m){s(i,m)&&(m.dirty(),A=!0)}),A&&d.dirty(),o.updatePayload(d,n);var g=o.getPerformArgs(d,i.block);p.each(function(m){m.perform(g)}),d.perform(g)&&(a=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var b=o.getPerformArgs(m,i.block);b.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(b)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=st(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,A=s.set(d,o&&o.get(d)||bL({plan:vdt,reset:gdt,count:ydt}));A.context={model:f,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,A)}
121},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||bL({reset:ddt});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=st(),u=e.seriesType,c=e.getTargetSeries,f=e.dirtyOnOverallProgress,d=!1,A="";Ps(!e.createOnAllSeries,A),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):ee(n.getSeries(),p);function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(d=!0,bL({reset:hdt,onDirty:pdt})));y.context={model:g,dirtyOnOverallProgress:f},y.agent=o,y.__block=f,a._pipe(g,y)}d&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return mt(e)&&(e={overallReset:e,seriesType:wdt(e)}),e.uid=Bx("stageHandler"),r&&(e.visualType=r),e},t})();function ddt(t){t.overallReset(t.ecModel,t.api,t.payload)}function hdt(t){return t.dirtyOnOverallProgress&&Adt}function Adt(){this.agent.dirty(),this.getDownstream().dirty()}function pdt(){this.agent&&this.agent.dirty()}function vdt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function gdt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Kn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ze(e,function(r,n){return $Ee(n)}):mdt}var mdt=$Ee(0);function $Ee(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function ydt(t){return t.data.count()}function wdt(t){F3=null;try{t(gR,ZEe)}catch{}return F3}var gR={},ZEe={},F3;XEe(gR,qq);XEe(ZEe,sTe);gR.eachSeriesByType=gR.eachRawSeriesByType=function(t){F3=t};gR.eachComponent=function(t){t.mainType==="series"&&t.subType&&(F3=t.subType)};function XEe(t,e){for(var r in e.prototype)t[r]=Ki}var wt=xe.darkColor,sce=wt.background,DD=function(){return{axisLine
121:{lineStyle:{color:wt.axisLine}},splitLine:{lineStyle:{color:wt.axisSplitLine}},splitArea:{areaStyle:{color:[wt.backgroundTint,wt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:wt.axisMinorSplitLine}},axisLabel:{color:wt.axisLabel},axisName:{}}},lce={label:{color:wt.secondary},itemStyle:{borderColor:wt.borderTint},dividerLineStyle:{color:wt.border}},qEe={darkMode:!0,color:wt.theme,backgroundColor:sce,axisPointer:{lineStyle:{color:wt.border},crossStyle:{color:wt.borderShade},label:{color:wt.tertiary}},legend:{textStyle:{color:wt.secondary},pageTextStyle:{color:wt.tertiary}},textStyle:{color:wt.secondary},title:{textStyle:{color:wt.primary},subtextStyle:{color:wt.quaternary}},toolbox:{iconStyle:{borderColor:wt.accent50},feature:{dataView:{backgroundColor:sce,textColor:wt.primary,textareaColor:wt.background,textareaBorderColor:wt.border,buttonColor:wt.accent50,buttonTextColor:wt.neutral00}}},tooltip:{backgroundColor:wt.neutral20,defaultBorderColor:wt.border,textStyle:{color:wt.tertiary}},dataZoom:{borderColor:wt.accent10,textStyle:{color:wt.tertiary},brushStyle:{color:wt.backgroundTint},handleStyle:{color:wt.neutral00,borderColor:wt.accent20},moveHandleStyle:{color:wt.accent40},emphasis:{handleStyle:{borderColor:wt.accent50}},dataBackground:{lineStyle:{color:wt.accent30},areaStyle:{color:wt.accent20}},selectedDataBackground:{lineStyle:{color:wt.accent50},areaStyle:{color:wt.accent30}}},visualMap:{textStyle:{color:wt.secondary},handleStyle:{borderColor:wt.neutral30}},timeline:{lineStyle:{color:wt.accent10},label:{color:wt.tertiary},controlStyle:{color:wt.accent30,borderColor:wt.accent30}},calendar:{itemStyle:{color:wt.neutral00,borderColor:wt.neutral20},dayLabel:{color:wt.tertiary},monthLabel:{color:wt.secondary},yearLabel:{color:wt.secondary}},matrix:{x:lce,y:lce,backgroundColor:{borderColor:wt.axisLine},body:{itemStyle:{borderColor:wt.borderTint}}},timeAxis:DD(),logAxis:DD(),valueAxis:DD(),categoryAxis:DD(),line:{symbol:"circle"},graph:{color:wt.theme},gauge:{title:{color:wt.secondary},axisLine:{lineStyle:{color:[[1,wt.neutral05]]}},axisLabel:{color:wt.axisLabel},detail:{color:wt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:wt.background}},radar:(function(){var t=DD();return t.axisName={color:wt.axisLabel},t.axisLine.lineStyle.color=wt.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:wt.neutral20,textStyle:{color:wt.secondary}},emphasis:{itemStyle:{color:wt.neutral30}}}},sunburst:{itemStyle:{borderColor:wt.background}},map:{itemStyle:{borderColor:wt.border,areaColor:wt.neutral10},label:{color:wt.tertiary},emphasis:{label:{color:wt.primary},itemStyle:{areaColor:wt.highlight}},select:{label:{color:wt.primary},itemStyle:{areaColor:wt.highlight}}},geo:{itemStyle:{borderColor:wt.border,areaColor:wt.neutral10},emphasis:{label:{color:wt.primary},itemStyle:{areaColor:wt.highlight}},select:{label:{color:wt.primary},itemStyle:{color:wt.highlight}}}};qEe.categoryAxis.splitLine.show=!1;var _dt=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(et(e)){var a=kA(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};ee(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],A=u.lastIndexOf(d);if(A>0&&A===u.length-d.length){var p=u.slice(0,A);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function c(f,d,A,p){return f[A]==null||d[p||A]===f[A]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),kW=["symbol","symbolSize","symbolRotate","symbolOffset"],uce=kW.concat(["symbolKeepAspect"]),bdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<kW.length;o++){var s=kW[o],l=t.get(s);mt(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(Fe({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Cr(i);function c(f,d){for(var A=t.getRawValue(d),p=t.getDataParams(d),g=0;g<u.length;g++){var m=u[g];f.setItemVisual(d,m,i[m](A,p))}}return{dataEach:a?c:null}}},xdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<uce.length;s++){var l=uce[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function nJ(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function UI(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function JEe(t,e,r,n){switch(r){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=n,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,n);break}}function eBe(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}ee([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=Fe({},i),o.dispatchAction(Fe(i,{type:n[1],seriesIndex:r(a,i)}))})})}function QS(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=Hb(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:je(d)?f.getName(d[0]):f.getName(d),selected:et(l)?l:Fe({},l)})}})}function Sdt(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(QS("map","selectchanged",e,i,n),QS("pie","selectchanged",e,i,n)):n.fromAction==="select"?(QS("map","selected",e,i,n),QS("pie","selected",e,i,n)):n.fromAction==="unselect"&&(QS("map","unselected",e,i,n),QS("pie","unselected",e,i,n))})}function J_(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Mf=new ud,tBe={};function Cdt(t,e){tBe[t]=e}function rBe(t){return tBe[t]}var nBe={};function iBe(t,e){nBe[t]=e}function Tdt(t){return nBe[t]}var xQ=qt();function Edt(t){xQ(t).prepare={}}function Bdt(t){xQ(t).fullUpdate={}}function aBe(t){return xQ(t).prepare}function _E(t){return xQ(t).fullUpdate}var Ddt=Math.round(Math.random()*9),Mdt=typeof Object.defineProperty=="function",Ldt=(function(){function t(){this._id="__ec_inner_"+Ddt++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return Mdt?Object.defineProperty(n,this._id,{value:r,enumerable:!1,
121configurable:!0}):n[this._id]=r,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})(),Rdt=_r.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),Idt=_r.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),Odt=_r.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),A=o*.6,p=o*.7;t.moveTo(r-c,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+c-f*A,l+s+d*A,r,n-p,r,n),t.bezierCurveTo(r,n-p,r-c+f*A,l+s+d*A,r-c,l+s),t.closePath()}}),Pdt=_r.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),kdt={line:Ca,rect:fr,roundRect:fr,square:fr,circle:mp,diamond:Idt,pin:Odt,arrow:Pdt,triangle:Rdt},Ndt={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},U3={};ee(kdt,function(t,e){U3[e]=new t});var Fdt=_r.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=x3(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=U3[n];i||(n="rect",i=U3[n]),Ndt[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function Udt(t,e){if(this.type!=="image"){var r=this.style;
121this.__isEmptyBrush?(r.stroke=t,r.fill=e||xe.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ba(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Eq(t.slice(8),new St(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=bT(t.slice(7),{},new St(e,r,n,i),o?"center":"cover"):l=new Fdt({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=Udt,a&&l.setColor(a),l}function bE(t){return je(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Lx(t,e){if(t!=null)return je(t)||(t=[t,t]),[it(t[0],e[0])||0,it(ft(t[1],t[0]),e[1])||0]}function eb(t){return isFinite(t)}function Hdt(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=eb(n)?n:0,i=eb(i)?i:1,a=eb(a)?a:0,o=eb(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function Qdt(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=eb(o)?o:.5,s=eb(s)?s:.5,l=l>=0&&eb(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function NW(t,e,r){for(var n=e.type==="radial"?Qdt(t,e,r):Hdt(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function jdt(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function FN(t){return parseInt(t,10)}function OC(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||FN(s[n])||FN(t.style[n]))-(FN(s[a])||0)-(FN(s[o])||0)||0}function zdt(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Hr(t)?[t]:je(t)?t:null}function iJ(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&zdt(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=ze(r,function(a){return a/i}),n/=i)}return[r,n]}var Vdt=new op(!0);function H3(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function cce(t){return typeof t=="string"&&t!=="none"}function Q3(t){var e=t.fill;return e!=null&&e!=="none"}function fce(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function dce(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function FW(t,e,r){var n=vq(e.image,e.__image,r);if(lQ(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*fL),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function Gdt(t,e,r,n,i){var a,o=H3(r),s=Q3(r),l=r.strokePercent,u=l<1,c=!e.path;(!e.silent||u)&&c&&e.createPathProxy();var f=e.path||Vdt,d=e.__dirty;if(!n){var A=r.fill,p=r.stroke,g=s&&!!A.colorStops,m=o&&!!p.colorStops,y=s&&!!A.image,b=o&&!!p.image,x=void 0,T=void 0,B=void 0,R=void 0,I=void 0;(g||m)&&(I=e.getBoundingRect()),g&&(x=d?NW(t,A,I):e.__canvasFillGradient,e.__canvasFillGradient=x),m&&(T=d?NW(t,p,I):e.__canvasStrokeGradient,e.__canvasStrokeGradient=T),y&&(B=d||!e.__canvasFillPattern?FW(t,A,e):e.__canvasFillPattern,e.__canvasFillPattern=B),b&&(R=d||!e.__canvasStrokePattern?FW(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=R),g?t.fillStyle=x:y&&(B?t.fillStyle=B:s=!1),m?t.strokeStyle=T:b&&(R?t.strokeStyle=R:o=!1)}var N=e.getGlobalScale();f.setScale(N[0],N[1],e.segmentIgnoreThreshold);var F,Q;t.setLineDash&&r.lineDash&&(a=iJ(e),F=a[0],Q=a[1]);var j=!0;(c||d&vC)&&(f.setDPR(t.dpr),u?f.setContext(null):(f.setContext(t),j=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),j&&f.rebuildPath(t,u?l:1),F&&(t.setLineDash(F),t.lineDashOffset=Q),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&dce(t,r),s&&fce(t,r)):(s&&fce(t,r),o&&dce(t,r)),F&&t.setLineDash([])}function Kdt(t,e,r){var n=e.__image=vq(r.image,e.__image,e,e.onload);if(!(!n||!lQ(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;t.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;t.drawImage(n,u,c,f,d,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function Wdt(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||cg,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=iJ(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(H3(r)&&t.strokeText(i,r.x,r.y),Q3(r)&&t.fillText(i,r.x,r.y)):(Q3(r)&&t.fillText(i,r.x,r.y),H3(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var hce=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ace=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function oBe(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){eu(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?pb.opacity:o}(n||e.blend!==r.blend)&&(a||(eu(t,i),a=!0),t.globalCompositeOperation=e.blend||pb.blend);for(var s=0;s<hce.length;s++){var l=hce[s];(n||e[l]!==r[l])&&(a||(eu(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(eu(t,i),a=!0),t.shadowColor=e.shadowColor||pb.shadowColor),a}function pce(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=oBe(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(eu(t,i),s=!0),cce(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(eu(t,i),s=!0),cce(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.op
121acity!==o.opacity)&&(s||(eu(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(eu(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<Ace.length;c++){var f=Ace[c],d=f[0];(n||a[d]!==o[d])&&(s||(eu(t,i),s=!0),t[d]=a[d]||f[1])}return s}function Ydt(t,e,r,n,i){return oBe(t,e.style,r&&r.style,n,i)}function sBe(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function $dt(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),sBe(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function Zdt(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 vce=1,gce=2,mce=3,yce=4;function Xdt(t){var e=Q3(t),r=H3(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function eu(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function aJ(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};tb(t,e,r),eT(t,r)}function tb(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Yu,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||jdt(i,a))&&(a&&(eu(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(eu(t,r),t.save(),$dt(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~Yu,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=e instanceof _r&&e.autoBatch&&Xdt(o);s||Zdt(n,u.transform)?(eu(t,r),sBe(t,e)):c||eu(t,r),e instanceof _r?(r.lastDrawType!==vce&&(l=!0,r.lastDrawType=vce),pce(t,e,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&t.beginPath(),Gdt(t,e,o,c,r)):e instanceof _T?(r.lastDrawType!==mce&&(l=!0,r.lastDrawType=mce),pce(t,e,u,l,r),Wdt(t,e,o)):e instanceof Mo?(r.lastDrawType!==gce&&(l=!0,r.lastDrawType=gce),Ydt(t,e,u,l,r),Kdt(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==yce&&(l=!0,r.lastDrawType=yce),qdt(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(c&&eu(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function eT(t,e){eu(t,e),e.prevElClipPaths&&t.restore()}function qdt(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),tb(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}eT(t,a);for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),tb(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}eT(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var A8=new Ldt,wce=new yT(100),_ce=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function CT(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&A8.delete(t);var a=A8.get(t);if(a)return a;var o=Ct(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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,A8.set(t,s),t.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<_ce.length;++d){var A=o[_ce[d]];if(A!=null&&!je(A)&&!et(A)&&!Hr(A)&&typeof A!="boolean"){f=!1;break}c.push(A)}var p;if(f){p=c.join(",")+(i?"-svg":"");var g=wce.get(p);g&&(i?u.svgElement=g:u.image=g)}var m=uBe(o.dashArrayX),y=Jdt(o.dashArrayY),b=lBe(o.symbol),x=eht(m),T=cBe(y),B=!i&&Eo.createCanvas(),R=i&&{tag:"g",attrs:{},key:"dcl",children:[]},I=F(),N;B&&(B.width=I.width*r,B.height=I.height*r,N=B.getContext("2d")),Q(),f&&wce.put(p,B||R),u.image=B,u.svgElement=R,u.svgWidth=I.width,u.svgHeight=I.height;function F(){for(var j=1,W=0,V=x.length;W<V;++W)j=kle(j,x[W]);for(var Y=1,W=0,V=b.length;W<V;++W)Y=kle(Y,b[W].length);j*=Y;var G=T*x.length*b.length;return{width:Math.max(1,Math.min(j,o.maxTileWidth)),height:Math.max(1,Math.min(G,o.maxTileHeight))}}function Q(){N&&(N.clearRect(0,0,B.width,B.height),o.backgroundColor&&(N.fillStyle=o.backgroundColor,N.fillRect(0,0,B.width,B.height)));for(var j=0,W=0;W<y.length;++W)j+=y[W];if(j<=0)return;for(var V=-T,Y=0,G=0,K=0;V<I.height;){if(Y%2===0){for(var X=G/2%b.length,q=0,ne=0,te=0;q<I.width*2;){for(var ce=0,W=0;W<m[K].length;++W)ce+=m[K][W];if(ce<=0)break;if(ne%2===0){var he=(1-o.symbolSize)*.5,ve=q+m[K][ne]*he,ae=V+y[Y]*he,fe=m[K][ne]*o.symbolSize,we=y[Y]*o.symbolSize,Me=te/2%b[X].length;ge(ve,ae,fe,we,b[X][Me])}q+=m[K][ne],++te,++ne,ne===m[K].length&&(ne=0)}++K,K===m.length&&(K=0)}V+=y[Y],++G,++Y,Y===y.length&&(Y=0)}function ge(be,Ve,Re,Se,nt){var qe=i?1:r,tt=Ba(nt,be*qe,Ve*qe,Re*qe,Se*qe,o.color,o.symbolKeepAspect);if(i){var lt=n.painter.renderOneToVNode(tt);lt&&R.children.push(lt)}else aJ(N,tt)}}}}function lBe(t){if(!t||t.length===0)return[["rect"]];if(et(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!et(t[r])){e=!1;break}if(e)return lBe([t]);for(var n=[],r=0;r<t.length;++r)et(t[r])?n.push([t[r]]):n.push(t[r]);return n}function uBe(t){if(!t||t.length===0)return[[0,0]];if(Hr(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Hr(t[n])){r=!1;break}if(r)return uBe([t]);for(var i=[],n=0;n<t.length;++n)if(Hr(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=ze(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function Jdt(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Hr(t)){var e=Math.ceil(t);return[e,e]}var r=ze(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function eht(t){return ze(t,function(e){return cBe(e)})}function cBe(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var tht=LI(rht);function rht(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=CT(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=CT(i,e)}}})}var nht="6.1.0",iht={zrender:"6.1.0"},aht=1,oht=800,sht=900,lht=920,uht=1e3,cht=2e3,bce=5e3,fBe=1e3,fht=1100,oJ=2e3,dBe=3e3,dht=4e3,SQ=4500,hht=4600,Aht=5e3,pht=6e3,hBe=7e3,ABe={PROCESSOR:{SERIES_FILTER:oht,AXIS_STATISTICS:lht,FILTER:uht,STATISTIC:bce,STATISTICS:bce},VISUAL:{LAYOUT:fBe,PROGRESSIVE_LAYOUT:fht,GLOBAL:oJ,CHART:dBe,POST_CHART_LAYOUT:hht,COMPONENT:dht,BRUSH:Aht,CHART_ITEM:SQ,ARIA:pht,DECAL:hBe}},eo="__flagInMainProcess",UN="__mainProcessVersion",Qo="__pendingUpdate",p8="__needsUpdateStatus",xce=/^[a-zA-Z0-9_]+$/,v8="__connectUpdateStatus",Sce=0,vht=1,ght=2;function pBe(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return gBe(this,t,e)}}function vBe(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return gBe(this,t,e)}}function gBe(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),ud.prototype[e].apply(t,r)}var mBe=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ud),yBe=mBe.prototype;yBe.on=vBe("on");yBe.off=vBe("off");
121var s_,g8,HN,pv,QN,m8,y8,jS,zS,Cce,Tce,w8,Ece,jN,Bce,wBe,Sf,Dce,VS,j3=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this,new _dt)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;a[UN]=1,i.ssr&&MCe(function(d){var A=It(d),p=A.dataIndex;if(p!=null){var g=st();return g.set("series_index",A.seriesIndex),g.set("data_index",p),A.ssrType&&g.set("ssr_type",A.ssrType),g}});var u=a._zr=oW(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ft(i.useDirtyRect,l),useCoarsePointer:ft(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=bQ(ot(u.flush,u),17),a._updateTheme(n),a._locale=xct(i.locale||VTe),a._coordSysMgr=new yE;var c=a._api=Bce(a);function f(d,A){return d.__prio-A.__prio}return MU(V3,f),MU(QW,f),a._scheduler=new YEe(a,c,QW,V3),a._messageCenter=new mBe,a._initEvents(),a.resize=ot(a.resize,a),u.animation.on("frame",a._onframe,a),Cce(u,a),Tce(u,a),eR(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Dce(this),this[Qo]){var a=this[Qo].silent;this[eo]=!0,VS(this);try{s_(this),pv.update.call(this,null,this[Qo].updateParams)}catch(l){throw this[eo]=!1,this[Qo]=null,l}this._zr.flush(),this[eo]=!1,this[Qo]=null,jS.call(this,a),zS.call(this,a)}else if(r.unfinished){var o=aht;do{r.unfinished=!1;var s=Eo.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),m8(this,n),r.performVisualTasks(n),jN(this,this._model,i,"remain",{}),o-=Eo.getTime()-s}while(o>0&&r.unfinished);r.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(r,n,i){if(!this[eo]){if(this._disposed){this.id;return}var a,o,s;if(Tt(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[eo]=!0,VS(this),!this._model||n){var l=new nft(this._api),u=this._theme,c=this._model=new qq;
121c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},jW);var f={seriesTransition:s,optionChanged:!0};if(i)this[Qo]={silent:a,updateParams:f},this[eo]=!1,this.getZr().wakeUp();else{try{s_(this),pv.update.call(this,null,f)}catch(d){throw this[Qo]=null,this[eo]=!1,d}this._ssr||this._zr.flush(),this[Qo]=null,this[eo]=!1,jS.call(this,a),zS.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[eo]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Qo]&&(a==null&&(a=this[Qo].silent),o=this[Qo].updateParams,this[Qo]=null),this[eo]=!0,VS(this);try{this._updateTheme(r),i.setTheme(this._theme),s_(this),pv.update.call(this,{type:"setTheme"},o)}catch(s){throw this[eo]=!1,s}this[eo]=!1,jS.call(this,a),zS.call(this,a)}}},e.prototype._updateTheme=function(r){et(r)&&(r=_Be[r]),r&&(r=vt(r),r&&_Ee(r,!0),this._theme=r)},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||Dr.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return ee(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;ee(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return ee(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(G3[i]){var l=s,u=s,c=-s,f=-s,d=[],A=r&&r.pixelRatio||this.getDevicePixelRatio();ee(yb,function(x,T){if(x.group===i){var B=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(vt(r)),R=x.getDom().getBoundingClientRect();l=a(R.left,l),u=a(R.top,u),c=o(R.right,c),f=o(R.bottom,f),d.push({dom:B,left:R.left,top:R.top})}}),l*=A,u*=A,c*=A,f*=A;var p=c-l,g=f-u,m=Eo.createCanvas(),y=oW(m,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:g}),n){var b="";return ee(d,function(x){var T=x.left-l,B=x.top-u;b+='<g transform="translate('+T+","+B+')">'+x.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=b,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new fr({shape:{x:0,y:0,width:p,height:g},style:{fill:r.connectedBackgroundColor}})),ee(d,function(x){var T=new Mo({style:{x:x.left*A-l,y:x.top*A-u,image:x.dom}});y.add(T)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return QN(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return QN(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return QN(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=$C(i,r);return ee(o,function(s,l){l.indexOf("Models")>=0&&ee(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=$C(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?nJ(s,l,n):UI(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;ee(mht,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,c=i==="globalout";if(c?u={}:l&&J_(l,function(g){var m=It(g);if(m&&m.dataIndex!=null){var y=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=y&&y.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=Fe({},m.eventData),!0},!0),u){var f=u.componentType,d=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",d=u.seriesIndex);var A=f&&d!=null&&s.getComponent(f,d),p=A&&r[A.mainType==="series"?"_chartsMap":"_componentsMap"][A.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:A,view:p},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;ee(HW,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),Sdt(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&QCe(this.getDom(),lJ,"");var n=this,i=n._api,a=n._model;ee(n._componentsViews,function(o){o.dispose(a,i)}),ee(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler
121=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete yb[n.id]},e.prototype.resize=function(r){if(!this[eo]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Qo]&&(a==null&&(a=this[Qo].silent),i=!0,this[Qo]=null),this[eo]=!0,VS(this);try{i&&s_(this),pv.update.call(this,{type:"resize",animation:Fe({duration:0},r&&r.animation)})}catch(o){throw this[eo]=!1,o}this[eo]=!1,jS.call(this,a),zS.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Tt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!zW[r]){var i=zW[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=Fe({},r);return n.type=UW[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Tt(n)||(n={silent:!!n}
121),!!z3[r.type]&&this._model){if(this[eo]){this._pendingActions.push(r);return}var i=n.silent;y8.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Dr.browser.weChat&&this._throttledZrFlush(),jS.call(this,i),zS.call(this,i)}},e.prototype.updateLabelLayout=function(){Mf.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){s_=function(f){Edt(f._model);var d=f._scheduler;d.restorePipelines(f._zr,f._model),d.prepareStageTasks(),g8(f,!0),g8(f,!1),d.plan()},g8=function(f,d){for(var A=f._model,p=f._scheduler,g=d?f._componentsViews:f._chartsViews,m=d?f._componentsMap:f._chartsMap,y=f._zr,b=f._api,x=0;x<g.length;x++)g[x].__alive=!1;d?A.eachComponent(function(R,I){R!=="series"&&T(I)}):A.eachSeries(T);function T(R){var I=R.__requireNewView;R.__requireNewView=!1;var N="_ec_"+R.id+"_"+R.type,F=!I&&m[N];if(!F){var Q=kA(R.type),j=d?Yn.getClass(Q.main,Q.sub):xn.getClass(Q.sub);F=new j,F.init(A,b),m[N]=F,g.push(F),y.add(F.group)}R.__viewId=F.__id=N,F.__alive=!0,F.__model=R,F.group.__ecComponentInfo={mainType:R.mainType,index:R.componentIndex},!d&&p.prepareView(F,R,A,b)}for(var x=0;x<g.length;){var B=g[x];B.__alive?x++:(!d&&B.renderTask.dispose(),y.remove(B.group),B.dispose(A,b),g.splice(x,1),m[B.__id]===B&&delete m[B.__id],B.__id=B.group.__ecComponentInfo=null)}},HN=function(f,d,A,p,g){var m=f._model;if(m.setUpdatePayload(A),!p){ee([].concat(f._componentsViews).concat(f._chartsViews),T);return}var y=Aq(A,p,g),b=A.excludeSeriesId,x;b!=null&&(x=st(),ee(Kn(b),function(B){var R=io(B,null);R!=null&&x.set(R,!0)})),m&&m.eachComponent(y,function(B){var R=x&&x.get(B.id)!=null;if(!R)if(fue(A))if(B instanceof On)A.type===vb&&!A.notBlur&&!B.get(["emphasis","disabled"])&&but(B,A,f._api);else{var I=xq(B.mainType,B.componentIndex,A.name,f._api),N=I.focusSelf,F=I.dispatchers;A.type===vb&&N&&!A.notBlur&&mW(B.mainType,B.componentIndex,f._api),F&&ee(F,function(Q){A.type===vb?Ag(Q):pg(Q)})}else wW(A)&&B instanceof On&&(Cut(B,A,f._api),uue(B),Sf(f))},f),m&&m.eachComponent(y,function(B){var R=x&&x.get(B.id)!=null;R||T(f[p==="series"?"_chartsMap":"_componentsMap"][B.__viewId])},f);function T(B){B&&B.__alive&&B[d]&&B[d](B.__model,m,f._api,A)}},pv={prepareAndUpdate:function(f){s_(this),pv.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,d){var A=this._model,p=this._api,g=this._zr,m=this._coordSysMgr,y=this._scheduler;if(A){Bdt(A),A.setUpdatePayload(f),y.restoreData(A,f),y.performSeriesTasks(A),m.create(A,p),Mf.trigger("coordsys:aftercreate",A,p),y.performDataProcessorTasks(A,f),m8(this,A),m.update(A,p),n(A),y.performVisualTasks(A,f);var b=A.get("backgroundColor")||"transparent";g.setBackgroundColor(b);var x=A.get("darkMode");x!=null&&x!=="auto"&&g.setDarkMode(x),w8(this,A,p,f,d),Mf.trigger("afterupdate",A,p)}},updateTransform:function(f){var d=this,A=d._model,p=d._api;if(A){A.setUpdatePayload(f);var g=[];A.eachComponent(function(y,b){if(y!==sp){var x=d.getViewOfComponentModel(b);if(x&&x.__alive)if(x.updateTransform){var T=x.updateTransform(b,A,p,f);T&&T.update&&g.push(x)}else g.push(x)}});var m=st();A.eachSeries(function(y){var b=d._chartsMap[y.__viewId],x=y.pipelineContext;if(b.updateTransform&&!x.progressiveRender){var T=b.updateTransform(y,A,p,f);T&&T.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),d._scheduler.performVisualTasks(A,f,{setDirty:!0,dirtyMap:m}),jN(d,A,p,f,{},m),Mf.trigger("afterupdate",A,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),xn.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),w8(this,d,this._api,f,{}),Mf.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,A=this._model;A&&(A.setUpdatePayload(f),A.eachSeries(function(p){p.getData().clearAllVisual()}),xn.markUpdateMethod(f,"updateVisual"),n(A),this._scheduler.performVisualTasks(A,f,{visualType:"visual",setDirty:!0}),A.eachComponent(function(p,g){if(p!=="series"){var m=d.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,A,d._api,f)}}),A.eachSeries(function(p){var g=d._chartsMap[p.__viewId];g.updateVisual(p,A,d._api,f)}),Mf.trigger("afterupdate",A,this._api))},updateLayout:function(f){pv.update.call(this,f)}};function r(f,d,A,p,g){if(f._disposed){f.id;return}for(var m=f._model,y=f._coordSysMgr.getCoordinateSystems(),b,x=$C(m,A),T=0;T<y.length;T++){var B=y[T];if(B[d]&&(b=B[d](m,x,p,g))!=null)return b}}QN=r,m8=function(f,d){var A=f._chartsMap,p=f._scheduler;d.eachSeries(function(g){p.updateStreamModes(g,A[g.__viewId])})},y8=function(f,d){var A=this,p=this.getModel(),g=f.type,m=f.escapeConnect,y=z3[g],b=(y.update||"update").split(":"),x=b.pop(),T=b[0]!=null&&kA(b[0]);this[eo]=!0,VS(this);var B=[f],R=!1;f.batch&&(R=!0,B=ze(f.batch,function(K){return K=Ct(Fe({},K),f),K.batch=null,K}));var I=[],N,F=[],Q=y.nonRefinedEventType,j=wW(f),W=fue(f);if(W&&gTe(this._api),ee(B,function(K){var X=y.action(K,p,A._api);if(y.refineEvent?F.push(X):N=X,N=N||Fe({},K),N.type=Q,I.push(N),W){var q=hq(f),ne=q.queryOptionMap,te=q.mainTypeSpecified,ce=te?ne.keys()[0]:"series";HN(A,x,K,ce),Sf(A)}else j?(HN(A,x,K,"series"),Sf(A)):T&&HN(A,x,K,T.main,T.sub)}),x!=="none"&&!W&&!j&&!T)try{this[Qo]?(s_(this),pv.update.call(this,f),this[Qo]=null):pv[x].call(this,f)}catch(K){throw this[eo]=!1,K}if(R?N={type:Q,escapeConnect:m,batch:I}:N=I[0],this[eo]=!1,!d){var V=void 0;if(y.refineEvent){var Y=y.refineEvent(F,f,p,this._api).eventContent;Ps(Tt(Y)),V=Ct({type:y.refinedEventType},Y),V.fromAction=f.type,V.fromActionPayload=f,V.escapeConnect=!0}var G=this._messageCenter;G.trigger(N.type,N),V&&G.trigger(V.type,V)}}
121,jS=function(f){for(var d=this._pendingActions;d.length;){var A=d.shift();y8.call(this,A,f)}},zS=function(f){!f&&this.trigger("updated")},Cce=function(f,d){f.on("rendered",function(A){d.trigger("rendered",A),f.animation.isFinished()&&!d[Qo]&&!d._scheduler.unfinished&&!d._pendingActions.length?d.trigger("finished"):f.refresh()})},Tce=function(f,d){f.on("mouseover",function(A){var p=A.target,g=J_(p,fR);g&&(xut(g,A,d._api),Sf(d))}).on("mouseout",function(A){var p=A.target,g=J_(p,fR);g&&(Sut(g,A,d._api),Sf(d))}).on("click",function(A){var p=A.target,g=J_(p,function(b){return It(b).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",y=It(g);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 i(f){var d=[],A=[],p=!1;if(f.eachComponent(function(b,x){var T=x.get("zlevel")||0,B=x.get("z")||0,R=x.getZLevelKey();p=p||!!R,(b==="series"?A:d).push({zlevel:T,z:B,idx:x.componentIndex,type:b,key:R})}),p){var g=d.concat(A),m,y;MU(g,function(b,x){return b.zlevel===x.zlevel?b.z-x.z:b.zlevel-x.zlevel}),ee(g,function(b){var x=f.getComponent(b.type,b.idx),T=b.zlevel,B=b.key;m!=null&&(T=Math.max(m,T)),B?(T===m&&B!==y&&T++,y=B):y&&(T===m&&T++,y=""),m=T,x.setZLevel(T)})}}w8=function(f,d,A,p,g){i(d),Ece(f,d,A,p,g),ee(f._chartsViews,function(m){m.__alive=!1}),jN(f,d,A,p,g),ee(f._chartsViews,function(m){m.__alive||m.remove(d,A)})},Ece=function(f,d,A,p,g,m){ee(m||f._componentsViews,function(y){var b=y.__model;u(b,y),y.render(b,d,A,p),l(b,y),c(b,y)})},jN=function(f,d,A,p,g,m){var y=f._scheduler;g=Fe(g||{},{updatedSeries:d.getSeries()}),Mf.trigger("series:beforeupdate",d,A,g);var b=!1;d.eachSeries(function(x){var T=f._chartsMap[x.__viewId];T.__alive=!0;var B=T.renderTask;y.updatePayload(B,p),u(x,T),m&&m.get(x.uid)&&B.dirty(),B.perform(y.getPerformArgs(B))&&(b=!0),T.group.silent=!!x.get("silent"),s(x,T),uue(x)}),y.unfinished=b||y.unfinished,Mf.trigger("series:layoutlabels",d,A,g),Mf.trigger("series:transition",d,A,g),d.eachSeries(function(x){var T=f._chartsMap[x.__viewId];l(x,T),c(x,T)}),o(f,d),Mf.trigger("series:afterupdate",d,A,g)},Sf=function(f){f[p8]=!0,f.getZr().wakeUp()},VS=function(f){f[UN]=(f[UN]+1)%1e6},Dce=function(f){f[p8]&&(f.getZr().storage.traverse(function(d){ZC(d)||a(d)}),f[p8]=!1)};function a(f){for(var d=[],A=f.currentStates,p=0;p<A.length;p++){var g=A[p];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}f.selected&&f.states.select&&d.push("select"),f.hoverState===hQ&&f.states.emphasis?d.push("emphasis"):f.hoverState===RI&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var A=f._zr;if(A.painter.type==="canvas"){var p=A.storage,g=0;p.traverse(function(y){y.isGroup||g++});var m=g>ft(d.get("hoverLayerThreshold"),AEe.hoverLayerThreshold)&&!Dr.node&&!Dr.worker;(f._usingTHL||m)&&(d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var b=f._chartsMap[y.__viewId];b.__alive&&b.eachRendered(function(x){var T=x.states.emphasis;T&&T.hoverLayer!==pE&&(T.hoverLayer=m?LTe:MTe)})}}),f._usingTHL=m)}}function s(f,d){var A=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=A)})}function l(f,d){if(!f.preventAutoZ){var A=Gb(f);d.eachRendered(function(p){return vQ(p,A.z,A.zlevel),!0})}}function u(f,d){d.eachRendered(function(A){if(!ZC(A)){var p=A.getTextContent(),g=A.getTextGuideLine();A.stateTransition&&(A.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),A.hasState()?(A.prevStates=A.currentStates,A.clearStates()):A.prevStates&&(A.prevStates=null)}})}function c(f,d){var A=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),g=A.get("duration"),m=g>0?{duration:g,delay:A.get("delay"),easing:A.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ZC(y))return;if(y instanceof _r&&Lut(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var x=y.getTextContent(),T=y.getTextGuideLine();x&&(x.stateTransition=m),T&&(T.stateTransition=m)}y.__dirty&&a(y)}})}Bce=function(f){return new((function(d){Ee(A,d);function A(){return d!==null&&d.apply(this,arguments)||this}return A.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},A.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);p=p.parent}},A.prototype.enterEmphasis=function(p,g){Ag(p,g),Sf(f)},A.prototype.leaveEmphasis=function(p,g){pg(p,g),Sf(f)},A.prototype.enterBlur=function(p){hTe(p),Sf(f)},A.prototype.leaveBlur=function(p){bq(p),Sf(f)},A.prototype.enterSelect=function(p){ATe(p),Sf(f)},A.prototype.leaveSelect=function(p){pTe(p),Sf(f)},A.prototype.getModel=function(){return f.getModel()},A.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},A.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},A.prototype.getECUpdateCycleVersion=function(){return f[UN]},A.prototype.usingTHL=function(){return f._usingTHL},A})(sTe))(f)},wBe=function(f){function d(A,p){for(var g=0;g<A.length;g++){var m=A[g];m[v8]=p}}ee(UW,function(A,p){f._messageCenter.on(p,function(g){if(G3[f.group]&&f[v8]!==Sce){if(g&&g.escapeConnect)return;var m=f.makeActionFromEvent(g),y=[];ee(yb,function(b){b!==f&&b.group===f.group&&y.push(b)}),d(y,Sce),ee(y,function(b){b[v8]!==vht&&b.dispatchAction(m)}),d(y,ght)}})})}})(),e})(ud),sJ=j3.prototype;sJ.on=pBe("on");sJ.off=pBe("off");sJ.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var mht=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],z3={},UW={},HW={},QW=[],jW=[],V3=[],_Be={},zW={},yb={},G3={},yht=+new Date-0,wht=+new Date-0,lJ="_echarts_instance_";function bBe(t,e,r){var n=!(r&&r.ssr);if(n){var i=uJ(t);if(i)return i}var a=new j3(t,e,r);return a.id="ec_"+yht++,yb[a.id]=a,n&&QCe(t,lJ,a.id),wBe(a),Mf.trigger("afterinit",a),a}function _ht(t){if(je(t)){var e=t;t=null,ee(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+wht++,ee(e,function(r){r.group=t})}return G3[t]=!0,t}function xBe(t){G3[t]=!1}
121var bht=xBe;function xht(t){et(t)?t=yb[t]:t instanceof j3||(t=uJ(t)),t instanceof j3&&!t.isDisposed()&&t.dispose()}function uJ(t){return yb[dlt(t,lJ)]}function Sht(t){return yb[t]}function cJ(t,e){_Be[t]=e}function fJ(t){zt(jW,t)<0&&jW.push(t)}function dJ(t,e){hJ(QW,t,e,cht)}function SBe(t){CQ("afterinit",t)}function CBe(t){CQ("afterupdate",t)}function CQ(t,e){Mf.on(t,e)}function Ch(t,e,r){var n,i,a,o,s;mt(e)&&(r=e,e=""),Tt(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(c){return c.toLowerCase()}i=l(i||n);var u=a?l(n):i;z3[n]||(Ps(xce.test(n)&&xce.test(i)),a&&Ps(i!==n),z3[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},HW[i]=1,a&&s&&(HW[u]=1),UW[u]=n)}function TBe(t,e){yE.register(t,e)}function Cht(t){var e=yE.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Tht(t,e){iBe(t,e)}function EBe(t,e){hJ(V3,t,e,fBe,"layout")}function b0(t,e){hJ(V3,t,e,dBe,"visual")}var Mce=[];function hJ(t,e,r,n,i,a){if((mt(e)||Tt(e))&&(r=e,e=n),!(zt(Mce,r)>=0)){Mce.push(r);var o=YEe.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function AJ(t,e){zW[t]=e}function Eht(t){VSe({createCanvas:t})}function BBe(t,e,r){var n=rBe("registerMap");n&&n(t,e,r)}function Bht(t){var e=rBe("getMap");return e&&e(t)}var DBe=kft;b0(oJ,ldt);b0(SQ,udt);b0(SQ,cdt);b0(oJ,bdt);b0(SQ,xdt);b0(hBe,tht);fJ(_Ee);dJ(sht,pft);AJ("default",fdt);Ch({type:vb,event:vb,update:vb},Ki);Ch({type:UU,event:UU,update:UU},Ki);Ch({type:B3,event:wq,update:B3,action:Ki,refineEvent:pJ,publishNonRefinedEvent:!0});Ch({type:vW,event:wq,update:vW,action:Ki,refineEvent:pJ,publishNonRefinedEvent:!0});Ch({type:D3,event:wq,update:D3,action:Ki,refineEvent:pJ,publishNonRefinedEvent:!0});function pJ(t,e,r,n){return{eventContent:{selected:Tut(r),isFromClick:e.isFromClick||!1}}}cJ("default",{});cJ("dark",qEe);var Dht={},Lce=[],Mht={registerPreprocessor:fJ,registerProcessor:dJ,registerPostInit:SBe,registerPostUpdate:CBe,registerUpdateLifecycle:CQ,registerAction:Ch,registerCoordinateSystem:TBe,registerLayout:EBe,registerVisual:b0,registerTransform:DBe,registerLoading:AJ,registerMap:BBe,registerImpl:Cdt,PRIORITY:ABe,ComponentModel:gr,ComponentView:Yn,SeriesModel:On,ChartView:xn,registerComponentModel:function(t){gr.registerClass(t)},registerComponentView:function(t){Yn.registerClass(t)},registerSeriesModel:function(t){On.registerClass(t)},registerChartView:function(t){xn.registerClass(t)},registerCustomSeries:function(t,e){iBe(t,e)},registerSubTypeDefaulter:function(t,e){gr.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){BCe(t,e)}};function ir(t){if(je(t)){ee(t,function(e){ir(e)});return}zt(Lce,t)>=0||(Lce.push(t),mt(t)&&(t={install:t}),t.install(Mht))}function MD(t){return t==null?0:t.length||1}function Rce(t){return t}var vg=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Rce,this._newKeyGetter=i||Rce,this.context=a,this._diffModeMultiple=o==="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,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=MD(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=MD(u),d=MD(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 A=0;A<f;A++)this._remove&&this._remove(u[A]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=MD(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);
121if(a||(n[o]=s),!!r){var l=r[s],u=MD(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),Lht=(function(){function t(e,r){this._encode=e,this._schema=r}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 Rht(t,e){var r={},n=r.encode={},i=st(),a=[],o=[],s={};ee(t.dimensions,function(d){var A=t.getDimensionInfo(d),p=A.coordDim;if(p){var g=A.coordDimIndex;_8(n,p)[g]=d,A.isExtraCoord||(i.set(p,1),Iht(A.type)&&(a[0]=d),_8(s,p)[g]=t.getDimensionIndex(A.name)),A.defaultTooltip&&o.push(d)}iTe.each(function(m,y){var b=_8(n,y),x=A.otherDims[y];x!=null&&x!==!1&&(b[x]=A.name)})});var l=[],u={};i.each(function(d,A){var p=n[A];u[A]=p[0],l=l.concat(p)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ze(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new Lht(s,e),r}function _8(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function K3(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Iht(t){return!(t==="ordinal"||t==="time")}var YU=(function(){function t(e){this.otherDims={},e!=null&&Fe(this,e)}return t})(),Oht=qt(),Pht={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},MBe=(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=RBe(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return ft(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=xEe(this.source),n=!IBe(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Pht[u]||"f",c&&(i+=c.uid),i+="$"}var A=this.source,p=[A.seriesLayoutBy,A.startIndex,i].join("$$");return{dimensions:a,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.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 LBe(t){return t instanceof MBe}function vJ(t){for(var e=st(),r=0;r<(t||[]).length;r++){var n=t[r],i=Tt(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function RBe(t){var e=Oht(t);return e.dimNameMap||(e.dimNameMap=vJ(t.dimensionsDefine))}function IBe(t){return t>30}var LD=Tt,Km=ze,kht=typeof Int32Array>"u"?Array:Int32Array,Nht="e\0\0",Ice=-1,Fht=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Uht=["_approximateExtent"],Oce,zN,RD,ID,b8,OD,x8,bl=(function(){function t(e,r){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;LBe(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=et(f)?new YU({name:f}):f instanceof YU?f:new YU(f),A=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=A,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(A),a[A]=d,u[A]!=null&&(l=!0),d.createInvertedIndices&&(s[A]=[]),i&&(d.storeDimIndex=c),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=st();ee(o,function(m){g.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Hr(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof RW&&(a=e),!a){var o=this.dimensions,s=Jq(e)||Os(e)?new SEe(e,o.length):e;a=new RW;
121var l=Km(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Rht(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&x8(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ky&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Gc;if(l&&!i.pure)for(var u=[],c=e;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Jst(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=io(d,null));var A=f.id;o[c]==null&&A!=null&&(o[c]=io(A,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<r;c++)x8(this,c);Oce(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){LD(e)?Fe(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=RD(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return zN(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},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,r){var n=this,i=this._store;return je(e)?i.getValues(Km(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;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,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?Ice:i},t.prototype.each=function(e,r,n){mt(e)&&(n=r,r=e,e=[]);var i=n||this,a=Km(ID(e),this._getStoreDimIndex,this);this._store.each(a,i?ot(r,i):r)},t.prototype.filterSelf=function(e,r,n){mt(e)&&(n=r,r=e,e=[]);var i=n||this,a=Km(ID(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ot(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Cr(e);return ee(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){mt(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Km(ID(e),this._getStoreDimIndex,this),s=OD(this);return s._store=this._store.map(o,a?ot(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Km(ID(e),this._getStoreDimIndex,this);this._store.modify(o,a?ot(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=OD(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=OD(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=OD(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new wr(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;
121return new vg(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return zN(e,n)},function(n){return zN(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},LD(e)?Fe(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),je(a)?a=a.slice():LD(a)&&(a=Fe({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,LD(r)?Fe(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){LD(e)?Fe(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?Fe(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;pW(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){ee(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Km(this.dimensions,this._getDimInfo,this),this.hostModel)),b8(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];mt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(X5(arguments)))})},t.internalField=(function(){Oce=function(e){var r=e._invertedIndicesMap;ee(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new kht(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Ice;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},RD=function(e,r,n){return io(e._getCategory(r,n),null)},zN=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=RD(e,e._idDimIdx,r)),n==null&&(n=Nht+r),n},ID=function(e){return je(e)||(e=e!=null?[e]:[]),e},OD=function(e){var r=new t(e._schema?e._schema:Km(e.dimensions,e._getDimInfo,e),e.hostModel);return b8(r,e),r},b8=function(e,r){ee(Fht.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,ee(Uht,function(n){e[n]=vt(r[n])}),e._calculationInfo=Fe({},r._calculationInfo)},x8=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=RD(e,a,r)),l==null&&o!=null&&(i[r]=l=RD(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}})(),t})();function Hht(t,e){return xE(t,e).dimensions}function xE(t,e){Jq(t)||(t=eJ(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=st(),a=[],o=Qht(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&IBe(o),l=n===t.dimensionsDefine,u=l?RBe(t):vJ(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=st(c),d=new OEe(o),A=0;A<d.length;A++)d[A]=-1;function p(F){var Q=d[F];if(Q<0){var j=n[F],W=Tt(j)?j:{name:j},V=new YU,Y=W.name;Y!=null&&u.get(Y)!=null&&(V.name=V.displayName=Y),W.type!=null&&(V.type=W.type),W.displayName!=null&&(V.displayName=W.displayName);var G=a.length;return d[F]=G,V.storeDimIndex=F,a.push(V),V}return a[Q]}if(!s)for(var A=0;A<o;A++)p(A);f.each(function(F,Q){var j=Kn(F).slice();if(j.length===1&&!et(j[0])&&j[0]<0){f.set(Q,!1);return}var W=f.set(Q,[]);ee(j,function(V,Y){var G=et(V)?u.get(V):V;G!=null&&G<o&&(W[Y]=G,m(p(G),Q,Y))})});var g=0;ee(r,function(F){var Q,j,W,V;if(et(F))Q=F,V={};else{V=F,Q=V.name;var Y=V.ordinalMeta;V.ordinalMeta=null,V=Fe({},V),V.ordinalMeta=Y,j=V.dimsDef,W=V.otherDims,V.name=V.coordDim=V.coordDimIndex=V.dimsDef=V.otherDims=null}var G=f.get(Q);if(G!==!1){if(G=Kn(G),!G.length)for(var K=0;K<(j&&j.length||1);K++){for(;g<o&&p(g).coordDim!=null;)g++;
121g<o&&G.push(g++)}ee(G,function(X,q){var ne=p(X);if(l&&V.type!=null&&(ne.type=V.type),m(Ct(ne,V),Q,q),ne.name==null&&j){var te=j[q];!Tt(te)&&(te={name:te}),ne.name=ne.displayName=te.name,ne.defaultTooltip=te.defaultTooltip}W&&Ct(ne.otherDims,W)})}});function m(F,Q,j){iTe.get(Q)!=null?F.otherDims[Q]=j:(F.coordDim=Q,F.coordDimIndex=j,i.set(Q,!0))}var y=e.generateCoord,b=e.generateCoordCount,x=b!=null;b=y?b||1:0;var T=y||"value";function B(F){F.name==null&&(F.name=F.coordDim)}if(s)ee(a,function(F){B(F)}),a.sort(function(F,Q){return F.storeDimIndex-Q.storeDimIndex});else for(var R=0;R<o;R++){var I=p(R),N=I.coordDim;N==null&&(I.coordDim=jht(T,i,x),I.coordDimIndex=0,(!y||b<=0)&&(I.isExtraCoord=!0),b--),B(I),I.type==null&&(gEe(t,R)===_s.Must||I.isExtraCoord&&(I.otherDims.itemName!=null||I.otherDims.seriesName!=null))&&(I.type="ordinal")}return oQ(a,function(F){return F.name},function(F,Q){Q>0&&(F.name=F.name+(Q-1))}),new MBe({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Qht(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return ee(e,function(a){var o;Tt(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function jht(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var zht=(function(){function t(e){this.coordSysDims=[],this.axisMap=st(),this.categoryAxisMap=st(),this.coordSysName=e}return t})();function Vht(t){var e=t.get("coordinateSystem"),r=new zht(e),n=Ght[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var Ght={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",ta).models[0],a=t.getReferringComponents("yAxis",ta).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),GS(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),GS(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",ta).models[0];e.coordSysDims=["single"],r.set("single",i),GS(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",ta).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),GS(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),GS(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();ee(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),GS(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",ta).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function GS(t){return t.get("type")==="category"}function OBe(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Kht(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d,A=!0;function p(T){return T.type!=="ordinal"&&T.type!=="time"}if(ee(a,function(T,B){et(T)&&(a[B]=T={name:T}),p(T)||(A=!1)}),ee(a,function(T,B){l&&!T.isExtraCoord&&(!n&&!u&&T.ordinalMeta&&(u=T),!c&&p(T)&&(!A||T.coordDim!=="x"&&T.coordDim!=="angle")&&(!i||i===T.coordDim)&&(c=T))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var g=c.coordDim,m=c.type,y=0;ee(a,function(T){T.coordDim===g&&y++});var b={name:f,coordDim:g,coordDimIndex:y,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:d,coordDim:d,coordDimIndex:y+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(b.storeDimIndex=s.ensureCalculationDimension(d,m),x.storeDimIndex=s.ensureCalculationDimension(f,m)),o.appendCalculationDimension(b),o.appendCalculationDimension(x)):(a.push(b),a.push(x))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function Kht(t){return!LBe(t.schema)}function gg(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gJ(t,e){return gg(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Wht(t,e){var r=t.get("coordinateSystem"),n=yE.get(r),i;return e&&e.coordSysDims&&(i=ze(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=K3(l)}return o}
121)),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Yht(t,e,r){var n,i;return r&&ee(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function yp(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=eJ(t)):(i=n.getSource(),a=i.sourceFormat===Gc);var o=Vht(e),s=Wht(e,o),l=r.useEncodeDefaulter,u=mt(l)?l:l?lr(vEe,s,e):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=xE(i,c),d=Yht(f.dimensions,r.createInvertedIndices,o),A=a?null:n.getSharedDataStore(f),p=OBe(e,{schema:f,store:A}),g=new bl(f,e);g.setCalculationInfo(p);var m=d!=null&&$ht(i)?function(y,b,x,T){return T===d?x:this.defaultDimValueGetter(y,b,x,T)}:null;return g.hasItemOption=!1,g.initData(a?i:A,null,m),g}function $ht(t){if(t.sourceFormat===Gc){var e=Zht(t.data||[]);return!je(sE(e))}}function Zht(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Th=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();sQ(Th);var Xht=0,mR=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Xht,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&ze(n,qht);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!et(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=st(this.categories))},t})();function qht(t){return Tt(t)&&t.value!=null?t.value:t+""}var $u=0,yR=1,Jht={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},PBe=Cr(Jht),Xv=2,kBe=3;function mJ(t,e,r){var n;t=t||{};var i=Ta();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(ee(PBe,function(o){a[o]&&(t[o]=ot(a[o],a))}),n=a)}return n==null&&VW(t,r),{brk:n,mapper:t}}function yJ(t,e){ee(PBe,function(r){t[r]=e[r]})}function wJ(t,e){t.freeze=Ki}function wR(t){return t.getExtentUnsafe($u,Xv)}function W3(t,e){return t.getExtentUnsafe(yR,e)||t.getExtentUnsafe($u,e)}function eAt(t){var e=W3(t,kBe);return e[1]-e[0]}function TQ(t){var e=t.getExtentUnsafe($u,kBe);return e[1]-e[0]}function VW(t,e){var r=t||{},n=[];return r._extents=n,n[$u]=e?e.slice():Cs(),Fe(r,tAt),r}var tAt={needTransform:function(){return!1},normalize:function(t){var e=this._extents[yR]||this._extents[$u];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[yR]||this._extents[$u];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=W3(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[$u].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){Pce(this._extents,$u,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[$u].slice()),Pce(n,t,e,r)},freeze:function(){}};function Pce(t,e,r,n){Qb(r,n)&&(t[e][0]=r,t[e][1]=n)}function NBe(t){return Y3(t)||TT(t)}function Y3(t){return t.type==="interval"}function HI(t){return t.type==="time"}function TT(t){return t.type==="log"}function xl(t){return t.type==="ordinal"}function rAt(t){var e=iQ(t),r=Sx(10,e),n=ip(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,Kr(n*r,-e)}function Wb(t){return PA(t)+2}function VN(t,e){return Nb(t)/Nb(e)}function S8(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return Sx(e,t)}function FBe(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Vi(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!hg(n[0])||!hg(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function nAt(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function EQ(t,e){return t=t||e,ip(cr(t,1))}function UBe(t,e,r){var n=wR(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,c,f){r({value:u,offInterval:c},f)}}var _R=(function(t){Ee(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,yJ(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new mR({})),je(i)&&(i=new mR({categories:ze(i,function(o){return Tt(o)?o.value:o})})),n._ordinalMeta=i;var a=mJ(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,wJ(n),n}return e.parse=function(r){return r==null?r=NaN:et(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=ip(r),r},e.prototype.getTicks=function(){var r=[];return UBe(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=bn(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i[o]=c,a[c]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=wR(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(ip(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(Th);Th.registerClass(_R);function _J(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var c=0,f=[],d=l.value-u.value,A=d/e,p=Wb(A);c<e-1;){var g=Kr(u.value+(c+1)*A,p);g>o[0]&&g<o[1]&&f.push(g),c++}var m=Ta();m&&m.pruneTicksByBreak("auto",f,r,function(y){return y},n,o),a.push(f)}}return a}var Uy=(function(t){Ee(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=GTe(n,r),a=mJ(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return vt(this._cfg)},e.prototype.setConfig=function(r){var n=wR(this);this._cfg=r=vt(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Wb(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=wR(this),o=n.niceExtent,s=n.intervalPrecision,l=Ta(),u=this.brk,c=l&&u,f=[];if(!i)return f;if(r.breakTicks==="only_break"&&c)return l.addBreaksToTicks(f,u.breaks,a),f;var d=3e3;a[0]<o[0]&&f.push({value:r.expandToNicedExtent?Kr(o[0]-i,s):a[0]});for(var A=function(x,T){return ip((T-x)/i)},p=n.intervalCount,g=o[0],m=0;;m++){if(p==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(m>p)break;g=bn(g,o[1]),m===p&&(g=o[1])}if(f.push({value:g}),g=Kr(g+i,s),u){var y=u.calcNiceTickMultiple(g,A);y>=0&&(g=Kr(g+y*i,s))}if(f.length>0&&g===f[f.length-1].value)break;
121if(f.length>d)return[]}var b=f.length?f[f.length-1].value:o[1];return a[1]>b&&f.push({value:r.expandToNicedExtent?Kr(b+i,s):a[1]}),c&&l.pruneTicksByBreak(r.pruneByBreak,f,u.breaks,function(x){return x.value},n.interval,a),c&&r.breakTicks!=="none"&&l.addBreaksToTicks(f,u.breaks,a),f},e.prototype.getMinorTicks=function(r){return _J(this,r,I3(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=PA(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=Kr(r.value,i,!0);return Gq(a)},e.type="interval",e})(Th);Th.registerClass(Uy);var iAt=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},HBe=(function(t){Ee(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=GTe(n,r),a=mJ(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return NI(r.value,Tue[Rct(_L(this._minLevelUnit))]||Tue.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return Ict(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=wR(this),a=Ta(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return Ta().addBreaksToTicks(l,o.breaks,i),l;l=fAt(this._minLevelUnit,this._approxInterval,u,i,TQ(this),o);var c=Cc.length-1,f=0;return ee(l,function(d){d.time&&(c=Math.min(c,zt(Cc,d.time.upperTimeUnit)),f=Math.max(f,d.time.level))}),s&&Ta().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(d){return d.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&Ta().addBreaksToTicks(l,o.breaks,i,function(d){for(var A=Math.max(zt(Cc,qC(d.vmin,u)),zt(Cc,qC(d.vmax,u))),p=0,g=0;g<Cc.length;g++)if(!QBe(Cc[g],d.vmin,d.vmax,u)){p=g;break}var m=Math.min(p,c),y=Math.max(m,A);return{level:f,lowerTimeUnit:Cc[y],upperTimeUnit:Cc[m]}}),l},e.prototype.getMinorTicks=function(r){return _J(this,r,I3(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return Hr(r)?Math.round(r):+gp(r)},e.type="time",e})(Th),GN=[["second",Nq],["minute",Fq],["hour",wL],["quarter-day",wL*6],["half-day",wL*12],["day",Qf*1.2],["half-week",Qf*3.5],["week",Qf*7],["month",Qf*31],["quarter",Qf*95],["half-year",Cue/2],["year",Cue]];function QBe(t,e,r,n){return P3(new Date(e),t,n).getTime()===P3(new Date(r),t,n).getTime()}function aAt(t,e){return t/=Qf,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function oAt(t){var e=30*Qf;return t/=e,t>6?6:t>3?3:t>2?2:1}function sAt(t){return t/=wL,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function kce(t,e){return t/=e?Fq:Nq,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function lAt(t){return cr(aQ(t,!0),1)}function uAt(t,e,r){var n=Math.max(0,zt(Cc,e)-1);return P3(new Date(t),Cc[n],r).getTime()}function cAt(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function fAt(t,e,r,n,i,a){var o=3e3,s=Bct,l=0;function u(K,X,q,ne,te,ce,he){for(var ve=cAt(te,K),ae=X,fe=new Date(ae);ae<q&&ae<=n[1]&&(he.push({value:ae}),!(l++>o));)if(fe[te](fe[ne]()+K),ae=fe.getTime(),a){var we=a.calcNiceTickMultiple(ae,ve);we>0&&(fe[te](fe[ne]()+we*K),ae=fe.getTime())}he.push({value:ae,notAdd:ae>n[1]})}function c(K,X,q){var ne=[],te=!X.length;if(!QBe(_L(K),n[0],n[1],r)){te&&(X=[{value:uAt(n[0],K,r)},{value:n[1]}]);for(var ce=0;ce<X.length-1;ce++){var he=X[ce].value,ve=X[ce+1].value;if(he!==ve){var ae=void 0,fe=void 0,we=void 0,Me=!1;switch(K){case"year":ae=Math.max(1,Math.round(e/Qf/365)),fe=KTe(r),we=Oct(r);break;case"half-year":case"quarter":case"month":ae=oAt(e),fe=Uq(r),we=WTe(r);break;case"week":case"half-week":case"day":ae=aAt(e),fe=Hq(r),we=YTe(r),Me=!0;break;case"half-day":case"quarter-day":case"hour":ae=sAt(e),fe=Qq(r),we=$Te(r);break;case"minute":ae=kce(e,!0),fe=jq(r),we=ZTe(r);break;case"second":ae=kce(e,!1),fe=zq(r),we=XTe(r);break;case"millisecond":ae=lAt(e),fe=Vq(r),we=qTe(r);break}ve>=n[0]&&he<=n[1]&&u(ae,he,ve,fe,we,Me,ne),K==="year"&&q.length>1&&ce===0&&q.unshift({value:q[0].value-ae})}}for(var ce=0;ce<ne.length;ce++)q.push(ne[ce])}}for(var f=[],d=[],A=0,p=0,g=0;g<s.length;++g){var m=_L(s[g]);if(Lct(s[g])){c(s[g],f[f.length-1]||[],d);var y=s[g+1]?_L(s[g+1]):null;if(m!==y){if(d.length){p=A,d.sort(function(K,X){return K.value-X.value});for(var b=[],x=0;x<d.length;++x){var T=d[x].value;(x===0||d[x-1].value!==T)&&(b.push(d[x]),T>=n[0]&&T<=n[1]&&A++)}var B=i/e;if(A>B*1.5&&p>B/1.5||(f.push(b),A>B||t===s[g]))break}d=[]}}}for(var R=ln(ze(f,function(K){return ln(K,function(X){return X.value>=n[0]&&X.value<=n[1]&&!X.notAdd})}),function(K){return K.length>0}),I=R.length-1,N=[],g=0;g<R.length;++g)for(var F=R[g],Q=0;Q<F.length;++Q){var j=qC(F[Q].value,r);N.push({value:F[Q].value,time:{level:I-g,upperTimeUnit:j,lowerTimeUnit:j}})}oQ(N,glt,null),N.sort(function(K,X){return K.value-X.value});var W=N[0],V=N[N.length-1],Y=qC(n[0],r),G=qC(n[1],r);return(!W||W.value>n[0])&&N.unshift({value:n[0],time:{level:0,upperTimeUnit:Y,lowerTimeUnit:Y},notNice:!0}),(!V||V.value<n[1])&&N.push({value:n[1],time:{level:0,upperTimeUnit:G,lowerTimeUnit:G},notNice:!0}),N}var dAt=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Qf,r[1]+=Qf),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Qf}t.setExtent(r[0],r[1]);var i=EQ(e.splitNumber,10),a=TQ(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=GN.length,u=Math.min(iAt(GN,a,0,l),l-1),c=GN[u][1],f=GN[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:c,minLevelUnit:f})};Th.registerClass(HBe);var KN=0,WN=1,hAt=2,jBe=(function(t){Ee(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=Uy.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[KN]=i[WN]=a[KN]=a[WN]=NaN,yJ(n,e.mapperMethods);var s=Ta(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},hAt,u),n.powStub=new Uy({breakParsed:u.original}),n.intervalStub=new Uy({breakParsed:u.transformed}),wJ(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=Ta(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return ze(o.getTicks(r||{}),function(c){var f=c.value,d=S8(f,n,u),A;if(a){var p=a.getTicksBreakOutwardTransform(this,c,I3(i),this._lookup);p&&(A=p.vBreak,d=p.tickVal)}return{value:d,break:A}},this)},e.prototype.getMinorTicks=function(r){return _J(this,r,I3(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(VN(r,this.base))},scale:function(r){return S8(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=VN(r,this.base),n&&n.depth===Xv?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return Nce.depth=i,Fce.lookup=this._lookup,S8(i===Xv?r:this.intervalStub.transformOut(r,Nce),this.base,Fce)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2($u,r,n)},setExtent2:function(r,n,i){if(!(!Qb(n,i)||n<=0||i<=0)){var a=Uce,o=Uce;if(r===$u){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[KN]=n,a[WN]=i);var l=this.base;this.intervalStub.setExtent2(r,o[KN]=VN(n,l),o[WN]=VN(i,l))}}
121,getFilter:function(){return{g:0}},sanitize:function(r,n){return Qb(n[0],n[1])&&nd(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(Th);Th.registerClass(jBe);var Nce={},Fce={},Uce=[],zBe={value:1,category:1,time:1,log:1},VBe=qt();function QI(t){var e=t.get("type");return(e==null||!ut(zBe,e)&&!Th.getClass(e))&&(e="value"),e}function SE(t,e,r){var n=Ta(),i;switch(n&&(i=GBe(t,e,r)),e){case"category":return new _R({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Cs()});case"time":return new HBe({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new jBe({logBase:t.get("logBase"),breakOption:i});case"value":return new Uy({breakOption:i});default:return new(Th.getClass(e)||Uy)({})}}function AAt(t,e,r){var n=t.getExtentUnsafe($u,null),i=n[0],a=n[1];return Qb(i,a)?i===e||a===e?vAt:i<e&&a>e?pAt:GW:GW}var pAt=1,vAt=2,GW=3;function gAt(t){VBe(t).noOnMyZero=!0}function mAt(t){return VBe(t).noOnMyZero}function jI(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=Dct(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(et(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(mt(e)){if(t.type==="category")return function(i,a){return e($3(t,i),i.value-t.scale.getExtent()[0],null)};var n=Ta();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e($3(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function $3(t,e){var r=t.scale;return xl(r)?r.getLabel(e):e.value}function bJ(t){var e=t.get("interval");return e??"auto"}function yAt(t){return t.type==="category"&&bJ(t.getLabelModel())===0}function wAt(t,e){var r={};return ee(t.mapDimensionsAll(e),function(n){r[gJ(t,n)]=!0}),Cr(r)}function ET(t){return t==="middle"||t==="center"}function bR(t){return t.getShallow("show")}function GBe(t,e,r){var n=t.get("breaks",!0);if(n!=null)return!Ta()||!r||!_At(e)?void 0:n}function _At(t){return t!=="category"}function KBe(t,e,r,n,i,a){var o=TT(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:Xv},c=t.transformOut(n[0],u),f=t.transformOut(n[1],u),d=nAt(r,n);e[0]&&!d[0]&&(c=i[0]),e[1]&&!d[1]&&(f=i[1]),l.setExtent(c,f)}s.setConfig(a)}function CE(t,e){return xl(t)?t.getRawOrdinalNumber(e.value):e.value}function zI(t,e){return xl(t)&&!!e.get("boundaryGap")}var TE=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),bAt=uE(),Z3="|&",EE=qt(),WBe=-2,xAt=-1,SAt=qt();function xJ(t,e){var r=t.model,n=EE(_E(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function CAt(t,e){return $Be(xJ(t,e))}function TAt(t,e){var r=[];return YBe(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push($Be(n))}),r}function YBe(t,e){var r=EE(_E(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function $Be(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function EAt(t,e){var r=t.model.ecModel,n=EE(_E(r)).axSer;n&&BQ(r,n.get(t.model.uid),e)}function Yb(t,e,r){var n=xJ(t,e);n&&BQ(t.model.ecModel,n.sers,r)}function BQ(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function BAt(t,e){var r=xJ(t,e);if(!r||!r.sers.length)return 0;var n=0;return BQ(t.model.ecModel,r.sers,function(){n++}),n}function SJ(t,e,r){var n=EE(_E(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function ZBe(t,e){var r=t.model,n=EE(_E(r.ecModel)).keys;n&&ee(n.get(r.uid),function(i){e(i)})}function DAt(t){var e=SAt(aBe(t)),r=e.keyed||(e.keyed=st());YBe(t,function(n,i,a){var o=r.get(i)||r.set(i,st()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&XBe.liPosMinGap(t,n,s)})}function MAt(t,e){XBe[t]=e}var XBe={};function $b(t,e,r){if(t){var n=e.ecModel,i=EE(_E(n)),a=t.model.uid,o=i.axSer||(i.axSer=st()),s=o.get(a)||o.set(a,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,c=WW.get(KW(l,u,r))||WW.get(KW(l,u,null));if(c){var f=i.keyed||(i.keyed=st()),d=i.keys||(i.keys=st()),A=c.key,p=f.get(A)||f.set(A,st()),g=p.get(a);g||(g=p.set(a,{axis:t,sers:[],serByIdx:[]}),g.metrics=c.getMetrics(t),(d.get(a)||d.set(a,[])).push(A)),g.sers.push(e),g.serByIdx[e.seriesIndex]=e}}}function KW(t,e,r){return t+Z3+ft(e,!0)+Z3+(r||"")}function CJ(t,e){var r=KW(e.seriesType,e.baseAxis,e.coordSysType);WW.set(r,e),bAt(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:DAt})})}var WW=st(),LAt=qt(),BT=1,RAt=2,IAt=3,qBe=(function(){function t(e,r,n,i,a){var o=xl(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var c=n.slice();(Y3(e)||TT(e)||HI(e))&&(zCe(c,PD(e,r.get("dataMin",!0))),VCe(c,PD(e,r.get("dataMax",!0)))),plt(c)||(c[0]=c[1]=NaN);var f=[],d=[!1,!1],A=r.get("min",!0);A==="dataMin"?(f[0]=c[0],d[0]=!0):(f[0]=PD(e,mt(A)?A({min:c[0],max:c[1]}):A),d[0]=f[0]!=null);var p=r.get("max",!0);p==="dataMax"?(f[1]=c[1],d[1]=!0):(f[1]=PD(e,mt(p)?p({min:c[0],max:c[1]}):p),d[1]=f[1]!=null);var g=OAt(e,r),m=o?null:c[1]-c[0]||Math.abs(c[0]);f[0]==null&&(f[0]=o?l?c[0]:s?0:NaN:c[0]-g[0]*m),f[1]==null&&(f[1]=o?l?c[1]:s?s-1:NaN:c[1]+g[1]*m),!hg(f[0])&&(f[0]=NaN),!hg(f[1])&&(f[1]=NaN);var y=l||Ds(f[0])||Ds(f[1])||o&&!s,b=Y3(e),x=b&&r.needIncludeZero&&r.needIncludeZero();x&&(f[0]>0&&f[1]>0&&!d[0]&&(f[0]=0),f[0]<0&&f[1]<0&&!d[1]&&(f[1]=0));var T=!1;f[0]>f[1]&&(f.reverse(),T=!0);var B=PD(e,r.get("startValue",!0)),R=B!=null;!nd(B)&&i&&(B=e.getDefaultStartValue?e.getDefaultStartValue():0),nd(B)&&(R||!b||x)&&(B<f[0]&&!d[0]?(f[0]=B,d[0]=!0):B>f[1]&&!d[1]&&(f[1]=B,d[1]=!0));var I=this._i={scale:e,dataMM:c,noZoomEffMM:f,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:B,isBlank:y,incl0:x,tggAxInv:T,ctnShp:a};Hce(I,f)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Hce(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();
121function Hce(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),FU(e))}function PD(t,e){return e==null?null:Ds(e)?NaN:t.parse(e)}function OAt(t,e){var r;if(xl(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=je(n)?n:[n,n]}return[Qce(r[0]),Qce(r[1])]}function Qce(t){return np(typeof t=="boolean"?0:t,1)||0}function JBe(t){var e=LAt(t.scale);return e.extent||(e.extent=Cs()),e}function PAt(t,e){JBe(t).dimIdxInCoord=e.get(t.dim)}function Zb(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||kAt(r,t,i,n,e)}function kAt(t,e,r,n,i){var a=JBe(e),o=a.extent,s=!1;EAt(e,function(c){if(c.boxCoordinateSystem){var f=nEe(c).coord,d=a.dimIdxInCoord;if(d>=0){if(je(f)){var A=f[d];A!=null&&!je(A)&&cW(o,t.parse(A))}}}else if(c.coordinateSystem){var p=c.getData();if(p){var g=t.getFilter?t.getFilter():null;ee(wAt(p,r),function(m){Alt(o,p.getApproximateExtent(m,g))})}c.__requireStartValue&&c.__requireStartValue(e)&&(s=!0)}});var l=FAt(t,e,n),u=new qBe(t,n,o,s,l);e2e(t,u,i),a.extent=null}function NAt(t,e){var r=t.scale;e2e(r,new qBe(r,t.model,e,!1,!1),IAt)}function e2e(t,e,r){t.rawExtentInfo=e,e.from=r}function DQ(t,e){TJ.set(t,e)}var TJ=st();function t2e(t,e,r,n,i){t.rawExtentInfo||NAt({scale:t,model:e},i||Cs());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function FAt(t,e,r){var n=zI(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return ZBe(e,function(o){a=!!TJ.get(o)||a}),a}function UAt(t,e,r,n){if(r.ctnShp){var i;if(ZBe(t,function(s){var l=TJ.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],zCe(i,u[0]),VCe(i,u[1]),gAt(t))}}),!!i){var a=e.getExtent();if(xl(e))t.onBand||e.setExtent2(yR,bn(a[0],a[0]+i[0]),cr(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=bn(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=cr(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(yR,o[0],o[1])}}}}function jce(t,e){var r=TT(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=FBe(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?QAt(n,e):HAt(n,e),u=l.intervalPrecision,c=l.interval,f=e.userInterval;f!=null&&(l.interval=f,l.intervalPrecision=Wb(f)),i[0]||(s[0]=Kr(rd(s[0]/c)*c,u)),i[1]||(s[1]=Kr(xx(s[1]/c)*c,u)),f!=null&&(l.niceExtent=s.slice()),KBe(t,i,o,s,a,l)}function HAt(t,e){var r=EQ(e.splitNumber,5),n=TQ(t),i=e.minInterval,a=e.maxInterval,o=aQ(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Wb(o),l=t.getExtent(),u=[Kr(xx(l[0]/o)*o,s),Kr(rd(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function QAt(t,e){var r=EQ(e.splitNumber,10),n=t.getExtent(),i=TQ(t),a=cr(uq(i),1),o=r/i*a;o<=.5&&(a*=10);var s=Wb(a),l=[Kr(xx(n[0]/a)*a,s),Kr(rd(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function DT(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;r2e(e,r,n,i,null)}function r2e(t,e,r,n,i){var a=t2e(t,e,n,r,i),o=Y3(t)||HI(t);n2e(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&UAt(r,t,a,n)}function n2e(t,e){jAt[t.type](t,e)}var jAt={interval:jce,log:jce,time:dAt,ordinal:Ki};function zAt(t){return yp(null,t)}var VAt={isDimensionStacked:gg,enableDataStack:OBe,getStackedDimension:gJ};function GAt(t,e){var r=e;e instanceof wr||(r=new wr(e));var n=QI(r),i=SE(r,n,!1);return t[1]<t[0]&&(t=t.slice().reverse()),r2e(i,r,null,null,t),i}function KAt(t){Da(t,TE)}function WAt(t,e){return e=e||{},Gn(t,null,null,e.state!=="normal")}const YAt=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Hht,createList:zAt,createScale:GAt,createSymbol:Ba,createTextStyle:WAt,dataStack:VAt,enableHoverEmphasis:Ny,getECData:It,getLayoutRect:gi,mixinAxisModelCommonMethods:KAt},Symbol.toStringTag,{value:"Module"}));var $At=1e-8;function zce(t,e){return Math.abs(t-e)<$At}function P_(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Mv(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!zce(i[0],s[0])||!zce(i[1],s[1]))&&(n+=Mv(i[0],i[1],s[0],s[1],e,r)),n!==0}var ZAt=[];function C8(t,e){for(var r=0;r<t.length;r++)Wi(t[r],t[r],e)}function Vce(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Fv(e,e,a),Uv(r,r,a))}}function XAt(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=a*u-l*o;e+=c,r+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var i2e=(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})(),Gce=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})(),Kce=(function(){function t(e){this.type="linestring",this.points=e}return t})(),a2e=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return XAt(n.exterior);
121var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return ee(o,function(s){s.type==="polygon"?Vce(s.exterior,i,a,r):ee(s.points,function(l){Vce(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new St(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(P_(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(P_(u[c],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new St(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(C8(d.exterior,u),ee(d.interiors,function(A){C8(A,u)})):ee(d.points,function(A){C8(A,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(i2e),qAt=(function(t){Ee(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=bx(ZAt),o=r;o&&!o.isGeoSVGGraphicRoot;)Fc(a,o.getLocalTransform(),a),o=o.parent;return jc(a,a),Wi(i,i,a),i},e})(i2e);function JAt(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return ee(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=o2e(s,o,r);break;case"Polygon":T8(s,o,r);break;case"MultiLineString":T8(s,o,r);break;case"MultiPolygon":ee(s,function(l,u){return T8(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function T8(t,e,r){for(var n=0;n<t.length;n++)t[n]=o2e(t[n],e[n],r)}function o2e(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function YW(t,e){return t=JAt(t),ze(ln(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Gce(o[0],o.slice(1)));break;case"MultiPolygon":ee(i.coordinates,function(l){l[0]&&a.push(new Gce(l[0],l.slice(1)))});break;case"LineString":a.push(new Kce([i.coordinates]));break;case"MultiLineString":a.push(new Kce(i.coordinates))}var s=new a2e(n[e||"name"],a,n.cp);return s.properties=n,s})}const ept=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:lR,asc:qo,getPercentWithPrecision:Yst,getPixelPrecision:Wst,getPrecision:PA,getPrecisionSafe:RCe,isNumeric:cq,isRadianAroundZero:Fb,linearMap:Jr,nice:aQ,numericToNumber:ap,parseDate:gp,parsePercent:it,quantile:NU,quantity:uq,quantityExponent:iQ,reformIntervals:lW,remRadian:lq,round:Kst},Symbol.toStringTag,{value:"Module"})),tpt=Object.freeze(Object.defineProperty({__proto__:null,format:NI,parse:gp,roundTime:P3},Symbol.toStringTag,{value:"Module"})),rpt=Object.freeze(Object.defineProperty({__proto__:null,Arc:OI,BezierCurve:hE,BoundingRect:St,Circle:mp,CompoundPath:PI,Ellipse:II,Group:xt,Image:Mo,IncrementalDisplayable:BTe,Line:Ca,LinearGradient:Tx,Polygon:Ns,Polyline:es,RadialGradient:Cq,Rect:fr,Ring:dE,Sector:ks,Text:Nr,clipPointsByRect:Dq,clipRectByRect:PTe,createIcon:vE,extendPath:ITe,extendShape:RTe,getShapeClass:dR,getTransform:gb,initProps:ui,makeImage:Eq,makePath:bT,mergePath:Mc,registerShape:cd,resizePath:Bq,updateProps:Wr},Symbol.toStringTag,{value:"Module"})),npt=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Gq,capitalFirst:Nct,encodeHTML:pl,formatTime:kct,formatTpl:Wq,getTextRect:Pct,getTooltipMarker:eEe,normalizeCssArray:mE,toCamelCase:Kq,truncateText:Llt},Symbol.toStringTag,{value:"Module"})),ipt=Object.freeze(Object.defineProperty({__proto__:null,bind:ot,clone:vt,curry:lr,defaults:Ct,each:ee,extend:Fe,filter:ln,indexOf:zt,inherits:JX,isArray:je,isFunction:mt,isObject:Tt,isString:et,map:ze,merge:Xt,reduce:td},Symbol.toStringTag,{value:"Module"}));var apt=qt(),xL=qt(),mh={estimate:1,determine:2};function X3(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function opt(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:ze(s2e(r,n),function(i,a){return{formattedLabel:jI(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?lpt(t,e):cpt(t)}function spt(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:s2e(i,n)}:t.type==="category"?upt(t,e):{ticks:n.getTicks(r)}}function s2e(t,e){var r=e.getExtent(),n=[];return ee(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),oQ(n,mlt,null),qo(n),ze(n,function(i){return{value:i}})}function lpt(t,e){var r=t.getLabelModel(),n=l2e(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function l2e(t,e,r){var n=dpt(t),i=bJ(e),a=r.kind===mh.estimate;if(!a){var o=c2e(n,i);if(o)return o}var s,l;mt(i)?s=q3(t,i,!1):(l=i==="auto"?hpt(t,r):i,s=q3(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return $W(n,i,u),!0}):$W(n,i,u),u}function upt(t,e){var r=fpt(t),n=bJ(e),i=c2e(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),mt(n))a=q3(t,n,!0);else if(n==="auto"){var s=l2e(t,t.getLabelModel(),X3(mh.determine));o=s.labelCategoryInterval,a=ze(s.labels,function(l){return l.tick})}else o=n,a=q3(t,o,!0);return $W(r,n,{ticks:a,tickCategoryInterval:o})}function cpt(t){var e=t.scale.getTicks(),r=jI(t);return{labels:ze(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var fpt=u2e("axisTick"),dpt=u2e("axisLabel");function u2e(t){return function(r){return xL(r)[t]||(xL(r)[t]={list:[]})}}function c2e(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function $W(t,e,r){return t.list.push({key:e,value:r}),r}function hpt(t,e){if(e.kind===mh.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return xL(t).autoInterval=r,!0}),r}var n=xL(t).autoInterval;return n??(xL(t).autoInterval=t.calculateCategoryInterval(e))}function Apt(t,e){var r=e.kind,n=vpt(t),i=jI(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],d=t.dataToCoord(f+1)-t.dataToCoord(f),A=Math.abs(d*Math.cos(a)),p=Math.abs(d*Math.sin(a)),g=0,m=0;f<=s[1];f+=u){var y=0,b=0,x=tQ(i({value:f}),n.font,"center","top");y=x.width*1.3,b=x.height*1.3,g=Math.max(g,y,7),m=Math.max(m,b,7)}var T=g/A,B=m/p;isNaN(T)&&(T=1/0),isNaN(B)&&(B=1/0);var R=Math.max(0,Math.floor(Math.min(T,B)));
121if(r===mh.estimate)return e.out.noPxChangeTryDetermine.push(ot(ppt,null,t,R,l)),R;var I=f2e(t,R,l);return I??R}function ppt(t,e,r){return f2e(t,e,r)==null}function f2e(t,e,r){var n=apt(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function vpt(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 q3(t,e,r){var n=jI(t),i=t.scale,a=[],o=mt(e);return UBe(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var c=!!e(s.value,u);if(s.offInterval=!c,!c&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var gpt=.8;function Fs(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=eAt(n);nd(o)||(o=NaN);var s=t.getExtent(),l=Vi(s[1]-s[0]);return xl(n)?mpt(r,t,o,l):i&&ypt(r,t,o,l,i),a!=null&&(r.w=nd(r.w)?cr(a,r.w):a),r}function mpt(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function ypt(t,e,r,n,i){var a=!1,o=-1/0;ee(i.key?[CAt(e,i.key)]:TAt(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===WBe&&(a=!0))}),nd(r)&&r>0&&nd(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*gpt,t.w2=t.w*r/n)}var Wce=[0,1],fd=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),Jr(e,Wce,Yce(this),r)},t.prototype.coordToData=function(e,r){var n=Jr(e,Yce(this),Wce,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=spt(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=ze(n.ticks,function(s){return{coord:this.dataToCoord(CE(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=wpt(this,i,a);return ze(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(xl(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ze(n,function(a){return ze(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||X3(mh.determine),opt(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Fs(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||X3(mh.determine),Apt(this,e)},t})();function Yce(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function wpt(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=Fs(t).w;if(!i)return!1;ee(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function _pt(t){var e=gr.extend(t);return gr.registerClass(e),e}function bpt(t){var e=Yn.extend(t);return Yn.registerClass(e),e}function xpt(t){var e=On.extend(t);return On.registerClass(e),e}function Spt(t){var e=xn.extend(t);return xn.registerClass(e),e}var kD=Math.PI*2,l_=op.CMD,Cpt=["top","right","bottom","left"];function Tpt(t,e,r,n,i){var a=r.width,o=r.height;switch(t){case"top":n.set(r.x+a/2,r.y-e),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+e),i.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+e,r.y+o/2),i.set(1,0);break}}function Ept(t,e,r,n,i,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;
121var c=o*r+t,f=s*r+e;if(Math.abs(n-i)%kD<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=Ic(i),i=Ic(d)}else n=Ic(n),i=Ic(i);n>i&&(i+=kD);var A=Math.atan2(s,o);if(A<0&&(A+=kD),A>=n&&A<=i||A+kD>=n&&A+kD<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+t,g=r*Math.sin(n)+e,m=r*Math.cos(i)+t,y=r*Math.sin(i)+e,b=(p-o)*(p-o)+(g-s)*(g-s),x=(m-o)*(m-o)+(y-s)*(y-s);return b<x?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(x))}function J3(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,c=r-t,f=n-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var A=l*c+u*f,p=A/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var g=o[0]=t+p*c,m=o[1]=e+p*f;return Math.sqrt((g-i)*(g-i)+(m-a)*(m-a))}function d2e(t,e,r,n,i,a,o){r<0&&(t=t+r,r=-r),n<0&&(e=e+n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(i,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var $d=[];function Bpt(t,e,r){var n=d2e(e.x,e.y,e.width,e.height,t.x,t.y,$d);return r.set($d[0],$d[1]),n}function Dpt(t,e,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=e.data,f=t.x,d=t.y,A=0;A<c.length;){var p=c[A++];A===1&&(n=c[A],i=c[A+1],a=n,o=i);var g=u;switch(p){case l_.M:a=c[A++],o=c[A++],n=a,i=o;break;case l_.L:g=J3(n,i,c[A],c[A+1],f,d,$d,!0),n=c[A++],i=c[A++];break;case l_.C:g=dCe(n,i,c[A++],c[A++],c[A++],c[A++],c[A],c[A+1],f,d,$d),n=c[A++],i=c[A++];break;case l_.Q:g=ACe(n,i,c[A++],c[A++],c[A],c[A+1],f,d,$d),n=c[A++],i=c[A++];break;case l_.A:var m=c[A++],y=c[A++],b=c[A++],x=c[A++],T=c[A++],B=c[A++];A+=1;var R=!!(1-c[A++]);s=Math.cos(T)*b+m,l=Math.sin(T)*x+y,A<=1&&(a=s,o=l);var I=(f-m)*x/b+m;g=Ept(m,y,x,T,T+B,R,I,d,$d),n=Math.cos(T+B)*b+m,i=Math.sin(T+B)*x+y;break;case l_.R:a=n=c[A++],o=i=c[A++];var N=c[A++],F=c[A++];g=d2e(a,o,N,F,f,d,$d);break;case l_.Z:g=J3(n,i,a,o,f,d,$d,!0),n=a,i=o;break}g<u&&(u=g,r.set($d[0],$d[1]))}return u}var rh=new Lt,li=new Lt,Sa=new Lt,NA=new Lt,LA=new Lt;function $ce(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var i=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||Cpt,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),f=c&&jc([],c),d=e.get("length2")||0;u&&Sa.copy(u);for(var A=0;A<o.length;A++){var p=o[A];Tpt(p,0,s,rh,NA),Lt.scaleAndAdd(li,rh,NA,d),li.transform(f);var g=t.getBoundingRect(),m=u?u.distance(li):t instanceof _r?Dpt(li,t.path,Sa):Bpt(li,g,Sa);m<l&&(l=m,li.transform(c),Sa.transform(c),Sa.toArray(a[0]),li.toArray(a[1]),rh.toArray(a[2]))}h2e(a,e.get("minTurnAngle")),r.setShape({points:a})}}}var eH=[],Zl=new Lt;function h2e(t,e){if(e<=180&&e>0){e=e/180*Math.PI,rh.fromArray(t[0]),li.fromArray(t[1]),Sa.fromArray(t[2]),Lt.sub(NA,rh,li),Lt.sub(LA,Sa,li);var r=NA.len(),n=LA.len();if(!(r<.001||n<.001)){NA.scale(1/r),LA.scale(1/n);var i=NA.dot(LA),a=Math.cos(e);if(a<i){var o=J3(li.x,li.y,Sa.x,Sa.y,rh.x,rh.y,eH,!1);Zl.fromArray(eH),Zl.scaleAndAdd(LA,o/Math.tan(Math.PI-e));var s=Sa.x!==li.x?(Zl.x-li.x)/(Sa.x-li.x):(Zl.y-li.y)/(Sa.y-li.y);if(isNaN(s))return;s<0?Lt.copy(Zl,li):s>1&&Lt.copy(Zl,Sa),Zl.toArray(t[1])}}}}function Mpt(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,rh.fromArray(t[0]),li.fromArray(t[1]),Sa.fromArray(t[2]),Lt.sub(NA,li,rh),Lt.sub(LA,Sa,li);var n=NA.len(),i=LA.len();if(!(n<.001||i<.001)){NA.scale(1/n),LA.scale(1/i);var a=NA.dot(e),o=Math.cos(r);if(a<o){var s=J3(li.x,li.y,Sa.x,Sa.y,rh.x,rh.y,eH,!1);Zl.fromArray(eH);var l=Math.PI/2,u=Math.acos(LA.dot(e)),c=l+u-r;if(c>=l)Lt.copy(Zl,Sa);else{Zl.scaleAndAdd(LA,s/Math.tan(Math.PI/2-c));var f=Sa.x!==li.x?(Zl.x-li.x)/(Sa.x-li.x):(Zl.y-li.y)/(Sa.y-li.y);if(isNaN(f))return;f<0?Lt.copy(Zl,li):f>1&&Lt.copy(Zl,Sa)}Zl.toArray(t[1])}}}}function E8(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function Lpt(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Nv(n[0],n[1]),a=Nv(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=hL([],n[1],n[0],o/i),l=hL([],n[1],n[2],o/a),u=hL([],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],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function EJ(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}
121for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<cR.length;l++){var u=cR[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),A=f?s:ft(i.states[u]&&i.states[u].ignore,s);if(A||!ft(d,o)){var p=f?n:n&&n.states[u];p&&(p.ignore=!0),n&&E8(n,!0,u,c);continue}n||(n=new es,t.setTextGuideLine(n),!f&&(s||!o)&&E8(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),E8(n,!1,u,c)}}if(n){Ct(n.style,r),n.style.fill=null;var g=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=g||!1,n.buildPath=Lpt}}function BJ(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<uu.length;n++){var i=uu[n];r[i]=t.getModel([i,e])}return r}var Zce=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Rpt=1,tH=2,A2e=Rpt|tH;function rH(t,e,r){r=r||A2e,e?t.dirty|=r:t.dirty&=~r}function p2e(t,e){return e=e||A2e,t.dirty==null||!!(t.dirty&e)}function up(t){if(t)return p2e(t)&&v2e(t,t.label,t),t}function v2e(t,e,r){var n=e.getComputedTransform();t.transform=Lq(t.transform,n);var i=t.localRect=hR(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,c=a.__marginType;c==null&&u&&(o=u,c=IC.textMargin);for(var f=0;f<4;f++)B8[f]=c===IC.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===IC.textMargin&&Vb(i,B8,!1,!1);var d=t.rect=hR(t.rect,i);return n&&d.applyTransform(n),c===IC.minMargin&&Vb(d,B8,!1,!1),t.axisAligned=Mq(n),(t.label=t.label||{}).ignore=e.ignore,rH(t,!1),rH(t,!0,tH),t}var B8=[0,0,0,0];function Ipt(t,e,r){return t.transform=Lq(t.transform,r),t.localRect=hR(t.localRect,e),t.rect=hR(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Mq(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function ZW(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function XW(t,e){for(var r=0;r<Zce.length;r++){var n=Zce[r];t[n]==null&&(t[n]=e[n])}return up(t)}function Xce(t){var e=t.obb;return(!e||p2e(t,tH))&&(t.obb=e=e||new TTe,e.fromBoundingRect(t.localRect,t.transform),rH(t,!1,tH)),e}function qW(t,e,r,n,i){var a=t.length,o=jt[e],s=ha[e];if(a<2)return!1;t.sort(function(I,N){return I.rect[o]-N.rect[o]});for(var l=0,u,c=!1,f=0;f<a;f++){var d=t[f],A=d.rect;u=A[o]-l,u<0&&(A[o]-=u,d.label[o]-=u,c=!0),l=A[o]+A[s]}var p=t[0],g=t[a-1],m,y;b(),m<0&&B(-m,.8),y<0&&B(y,.8),b(),x(m,y,1),x(y,m,-1),b(),m<0&&R(-m),y<0&&R(y);function b(){m=p.rect[o]-r,y=n-g.rect[o]-g.rect[s]}function x(I,N,F){if(I<0){var Q=Math.min(N,-I);if(Q>0){T(Q*F,0,a);var j=Q+I;j<0&&B(-j*F,1)}else B(-I*F,1)}}function T(I,N,F){I!==0&&(c=!0);for(var Q=N;Q<F;Q++){var j=t[Q],W=j.rect;W[o]+=I,j.label[o]+=I}}function B(I,N){for(var F=[],Q=0,j=1;j<a;j++){var W=t[j-1].rect,V=Math.max(t[j].rect[o]-W[o]-W[s],0);F.push(V),Q+=V}if(Q){var Y=Math.min(Math.abs(I)/Q,N);if(I>0)for(var j=0;j<a-1;j++){var G=F[j]*Y;T(G,0,j+1)}else for(var j=a-1;j>0;j--){var G=F[j-1]*Y;T(-G,j,a)}}}function R(I){var N=I<0?-1:1;I=Math.abs(I);for(var F=Math.ceil(I/(a-1)),Q=0;Q<a-1;Q++)if(N>0?T(F,0,Q+1):T(-F,a-Q-1,a),I-=F,I<=0)return}return c}function Opt(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,i=r.labelLine;r.label.attr("ignore",n.ignore),i&&i.attr("ignore",n.labelGuideIgnore)}}function g2e(t){var e=[];t.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function r(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=up(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(MQ(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function MQ(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:Xce(t).intersect(Xce(e),r,n)}function Ppt(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function kpt(t,e){var r=t.label,n=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:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:Ppt(n&&n.shape.points)}}var qce=["align","verticalAlign","width","height","fontSize"],Vl=new vp,D8=qt(),Npt=qt();function YN(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];e[i]!=null&&(t[i]=e[i])}}var $N=["x","y","rotation"],Fpt=(function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{}
121,u=i.getComputedTransform(),c=i.getBoundingRect().plain();St.applyTransform(c,c,u),u?Vl.setLocalTransform(u):(Vl.x=Vl.y=Vl.rotation=Vl.originX=Vl.originY=0,Vl.scaleX=Vl.scaleY=1),Vl.rotation=Ic(Vl.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var A=f.getComputedTransform();St.applyTransform(d,d,A)}var p=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:a,layoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Vl.x,y:Vl.y,scaleX:Vl.scaleX,scaleY:Vl.scaleY,rotation:Vl.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(mt(i)||Cr(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=It(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function i(x,T){return function(){$ce(x,T)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;mt(o.layoutOptionOrCb)?c=o.layoutOptionOrCb(kpt(o,l)):c=o.layoutOptionOrCb,c=c||{},o.layoutOption=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=it(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=it(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var A=l.getTextGuideLine();A&&(A.setShape({points:c.labelLinePoints}),d=!1)}var p=D8(s);p.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<qce.length;g++){var m=qce[g];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var b=o.seriesModel.getData(o.dataType);y=b.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),i=[];ee(this._labelList,function(l){l.defaultAttr.ignore||i.push(XW({},l))});var a=ln(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ln(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});qW(a,0,0,r),qW(o,1,0,n);var s=ln(i,function(l){return l.layoutOption.hideOverlap});Opt(s),g2e(s)},t.prototype.processLabelsOverall=function(){var e=this;ee(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=D8(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),a&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),i=It(e),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");EJ(e,BJ(s),l),$ce(e,f)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!ZC(e))){var a=D8(n),o=a.oldLayout,s=It(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=e.prevStates;d&&(zt(d,"select")>=0&&n.attr(a.oldLayoutSelect),zt(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Wr(n,u,r,l)}else if(n.attr(u),!gE(n).valueAnimation){var f=ft(n.style.opacity,1);n.style.opacity=0,ui(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var A=a.oldLayoutSelect={};YN(A,u,$N),YN(A,n.states.select,$N)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};YN(p,u,$N),YN(p,n.states.emphasis,$N)}QTe(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Npt(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Wr(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,ui(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},t})(),M8=qt();function Upt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var i=M8(r).labelManager;i||(i=M8(r).labelManager=new Fpt),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var i=M8(r).labelManager;ee(n.updatedSeries,function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var L8=Math.sin,R8=Math.cos,m2e=Math.PI,u_=Math.PI*2,Hpt=180/m2e,y2e=(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,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=xy(f-u_)||(c?u>=u_:-u>=u_),A=u>0?u%u_:u%u_+u_,p=!1;d?p=!0:xy(f)?p=!1:p=A>=m2e==!!c;var g=e+n*R8(o),m=r+i*L8(o);this._start&&this._add("M",g,m);var y=Math.round(a*Hpt);if(d){var b=1/this._p,x=(c?1:-1)*(u_-b);this._add("A",n,i,y,1,+c,e+n*R8(o+x),r+i*L8(o+x)),b>.01&&this._add("A",n,i,y,0,+c,g,m)}else{var T=e+n*R8(s),B=r+i*L8(s);this._add("A",n,i,y,+p,+c,T,B)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var A=arguments[d];if(isNaN(A)){this._invalid=!0;return}c.push(Math.round(A*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})(),DJ="none",Qpt=Math.round;function jpt(t){var e=t.fill;return e!=null&&e!==DJ}function zpt(t){var e=t.stroke;return e!=null&&e!==DJ}var JW=["lineCap","miterLimit","lineJoin"],Vpt=ze(JW,function(t){return"stroke-"+t.toLowerCase()});function Gpt(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof Mo){t("opacity",i);return}if(jpt(e)){var a=oR(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&t("fill-opacity",o)}else t("fill",DJ);if(zpt(e)){var s=oR(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.op
121acity*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=iJ(r),A=d[0],p=d[1];A&&(p=Qpt(p||0),t("stroke-dasharray",A.join(",")),(p||n)&&t("stroke-dashoffset",p))}for(var g=0;g<JW.length;g++){var m=JW[g];if(e[m]!==E3[m]){var y=e[m]||E3[m];y&&t(Vpt[g],y)}}}}var w2e="http://www.w3.org/2000/svg",_2e="http://www.w3.org/1999/xlink",Kpt="http://www.w3.org/2000/xmlns/",Wpt="http://www.w3.org/XML/1998/namespace",Jce="ecmeta_";function b2e(t){return document.createElementNS(w2e,t)}function Co(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function Ypt(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function $pt(t){return"</"+t+">"}function MJ(t,e){e=e||{};var r=e.newline?`
122`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return Ypt(o,s)+(o!=="style"?pl(l):l||"")+(a?""+r+ze(a,function(u){return n(u)}).join(r)+r:"")+$pt(o)}return n(t)}function Zpt(t,e,r){r=r||{};var n=r.newline?`
123`:"",i=" {"+n,a=n+"}",o=ze(Cr(t),function(l){return l+i+ze(Cr(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=ze(Cr(e),function(l){return"@keyframes "+l+i+ze(Cr(e[l]),function(u){return u+i+ze(Cr(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function eY(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function efe(t,e,r,n){return Co("svg","root",{width:t,height:e,xmlns:w2e,"xmlns:xlink":_2e,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var Xpt=0;function x2e(){return Xpt++}var tfe={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"},x_="transform-origin";function qpt(t,e,r){var n=Fe({},t.shape);Fe(n,e),t.buildPath(r,n);var i=new y2e;return i.reset(_Ce(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Jpt(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[x_]=r+"px "+n+"px")}var evt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function S2e(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function tvt(t,e,r){var n=t.shape.paths,i={},a,o;if(ee(n,function(l){var u=eY(r.zrId);u.animation=!0,LQ(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Cr(c),A=d.length;if(A){o=d[A-1];var p=c[o];for(var g in p){var m=p[g];i[g]=i[g]||{d:""},i[g].d+=m.d||""}for(var y in f){var b=f[y].animation;b.indexOf(o)>=0&&(a=b)}}}),!!a){e.d=!1;var s=S2e(i,r);return a.replace(o,s)}}function rfe(t){return et(t)?tfe[t]?"cubic-bezier("+tfe[t]+")":nq(t)?t:"":""}function LQ(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof PI){var s=tvt(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=rfe(c.getClip().easing),A=c.getDelay();d?f.push(d):f.push("linear"),A&&f.push(A/1e3+"s"),c.getLoop()&&f.push("infinite");var p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function g(b){var x=b[1],T=x.length,B={},R={},I={},N="animation-timing-function";function F(ge,be,Ve){for(var Re=ge.getTracks(),Se=ge.getMaxTime(),nt=0;nt<Re.length;nt++){var qe=Re[nt];if(qe.needsAnimate()){var tt=qe.keyframes,lt=qe.propName;if(Ve&&(lt=Ve(lt)),lt)for(var ct=0;ct<tt.length;ct++){var Ze=tt[ct],Jt=Math.round(Ze.time/Se*100)+"%",Sn=rfe(Ze.easing),jr=Ze.rawValue;(et(jr)||Hr(jr))&&(be[Jt]=be[Jt]||{},be[Jt][lt]=Ze.rawValue,Sn&&(be[Jt][N]=Sn))}}}}for(var Q=0;Q<T;Q++){var j=x[Q],W=j.targetName;W?W==="shape"&&F(j,R):!n&&F(j,B)}for(var V in B){var Y={};rp(Y,t),Fe(Y,B[V]);var G=bCe(Y),K=B[V][N];I[V]=G?{transform:G}:{},Jpt(I[V],Y),K&&(I[V][N]=K)}var X,q=!0;for(var V in R){I[V]=I[V]||{};var ne=!X,K=R[V][N];ne&&(X=new op);var te=X.len();X.reset(),I[V].d=qpt(t,R[V],X);var ce=X.len();if(!ne&&te!==ce){q=!1;break}K&&(I[V][N]=K)}if(!q)for(var V in I)delete I[V].d;if(!n)for(var Q=0;Q<T;Q++){var j=x[Q],W=j.targetName;W==="style"&&F(j,I,function(Re){return evt[Re]})}for(var he=Cr(I),ve=!0,ae,Q=1;Q<he.length;Q++){var fe=he[Q-1],we=he[Q];if(I[fe][x_]!==I[we][x_]){ve=!1;break}ae=I[fe][x_]}if(ve&&ae){for(var V in I)I[V][x_]&&delete I[V][x_];e[x_]=ae}if(ln(he,function(ge){return Cr(I[ge]).length>0}).length){var Me=S2e(I,r);return Me+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+x2e();r.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function rvt(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};nfe(n,e,r)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=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||o;l&&(a=w3(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),nfe(n,e,r)}}function nfe(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+x2e(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var xR=Math.round;function C2e(t){return t&&et(t.src)}function T2e(t){return t&&mt(t.toDataURL)}function LJ(t,e,r,n){Gpt(function(i,a){var o=i==="fill"||i==="stroke";o&&wCe(a)?B2e(e,t,i,n):o&&aq(a)?D2e(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),uvt(r,t,n)}function RJ(t,e){var r=DCe(e);r&&(r.each(function(n,i){n!=null&&(t[(Jce+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[Jce+"silent"]="true"))}function ife(t){return xy(t[0]-1)&&xy(t[1])&&xy(t[2])&&xy(t[3]-1)}function nvt(t){return xy(t[4])&&xy(t[5])}function IJ(t,e,r){if(e&&!(nvt(e)&&ife(e))){var n=1e4;t.transform=ife(e)?"translate("+xR(e[4]*n)/n+" "+xR(e[5]*n)/n+")":ast(e)}}function afe(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(xR(n[a][0]*r)/r),i.push(xR(n[a][1]*r)/r);e.points=i.join(" ")}function ofe(t){return!t.smooth}function ivt(t){var e=ze(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=xR(s*i)/i)}}}var avt={circle:[ivt(["cx","cy","r"])],polyline:[afe,ofe],polygon:[afe,ofe]};function ovt(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function E2e(t,e){var r=t.style,n=t.shape,i=avt[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&_Ce(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&ovt(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);i[0](n,a,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 A=d.getVersion(),p=t,g=p.__svgPathBuilder;(p.__svgPathVersion!==A||!g||l!==p.__svgPathStrokePercent)&&(g||(g=p.__svgPathBuilder=new y2e),g.reset(u),d.rebuildPath(g,l),g.generateStr(),p.__svgPathVersion=A,p.__svgPathStrokePercent=l),a.d=g.getStr()}return IJ(a,t.transform),LJ(a,r,t,e),RJ(a,t),e.animation&&LQ(t,a,e),e.emphasis&&rvt(t,a,e),Co(s,t.id+"",a)}function svt(t,e){var r=t.style,n=r.image;if(n&&!et(n)&&(C2e(n)?n=n.src:T2e(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),IJ(l,t.transform),LJ(l,r,t,e),RJ(l,t),e.animation&&LQ(t,l,e),Co("image",t.id+"",l)}}function lvt(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||cg,a=r.x||0,o=sst(r.y||0,MI(i),r.textBaseline),s=ost[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nTe(r)){var u="",c=r.fontStyle,f=rTe(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||zSe,A=r.fontWeight;u+="font-size:"+f+";
123font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),A&&A!=="normal"&&(u+="font-weight:"+A+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),IJ(l,t.transform),LJ(l,r,t,e),RJ(l,t),e.animation&&LQ(t,l,e),Co("text",t.id+"",l,void 0,n)}}function sfe(t,e){if(t instanceof _r)return E2e(t,e);if(t instanceof Mo)return svt(t,e);if(t instanceof _T)return lvt(t,e)}function uvt(t,e,r){var n=t.style;if(lst(n)){var i=ust(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,A=oR(n.shadowColor),p=A.opacity,g=A.color,m=d/2/l,y=d/2/u,b=m+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Co("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Co("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":g,"flood-opacity":p})]),a[i]=o}e.filter=eQ(o)}}function B2e(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(mCe(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(yCe(i))a="radialGradient",o.cx=ft(i.x,.5),o.cy=ft(i.y,.5),o.r=ft(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=X7(s[u].offset)*100+"%",d=s[u].color,A=oR(d),p=A.color,g=A.opacity,m={offset:f};m["stop-color"]=p,g<1&&(m["stop-opacity"]=g),l.push(Co("stop",u+"",m))}var y=Co(a,"",o,l),b=MJ(y),x=n.gradientCache,T=x[b];T||(T=n.zrId+"-g"+n.gradientIdx++,x[b]=T,o.id=T,n.defs[T]=Co(a,T,o,l)),e[r]=eQ(T)}function D2e(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(gCe(i)){var d=i.imageWidth,A=i.imageHeight,p=void 0,g=i.image;if(et(g)?p=g:C2e(g)?p=g.src:T2e(g)&&(p=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Ps(d,m),Ps(A,m)}else if(d==null||A==null){var y=function(Q,j){if(Q){var W=Q.elm,V=d||j.width,Y=A||j.height;Q.tag==="pattern"&&(u?(Y=1,V/=a.width):c&&(V=1,Y/=a.height)),Q.attrs.width=V,Q.attrs.height=Y,W&&(W.setAttribute("width",V),W.setAttribute("height",Y))}},b=vq(p,null,t,function(Q){l||y(R,Q),y(f,Q)});b&&b.width&&b.height&&(d=d||b.width,A=A||b.height)}f=Co("image","img",{href:p,width:d,height:A}),o.width=d,o.height=A}else i.svgElement&&(f=vt(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,T;l?x=T=1:u?(T=1,x=o.width/a.width):c?(x=1,T=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),T!=null&&!isNaN(T)&&(o.height=T);var B=bCe(i);B&&(o.patternTransform=B);var R=Co("pattern","",o,[f]),I=MJ(R),N=n.patternCache,F=N[I];F||(F=n.zrId+"-p"+n.patternIdx++,N[I]=F,o.id=F,R=n.defs[F]=Co("pattern",F,o,[f])),e[r]=eQ(F)}}function cvt(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Co("clipPath",a,o,[E2e(t,r)])}e["clip-path"]=eQ(a)}function lfe(t){return document.createTextNode(t)}function k_(t,e,r){t.insertBefore(e,r)}function ufe(t,e){t.removeChild(e)}function cfe(t,e){t.appendChild(e)}function M2e(t){return t.parentNode}function L2e(t){return t.nextSibling}function I8(t,e){t.textContent=e}var ffe=58,fvt=120,dvt=Co("","");function tY(t){return t===void 0}function SA(t){return t!==void 0}function hvt(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function OM(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function SR(t){var e,r=t.children,n=t.tag;if(SA(n)){var i=t.elm=b2e(n);if(OJ(dvt,t),je(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&cfe(i,SR(a))}else SA(t.text)&&!Tt(t.text)&&cfe(i,lfe(t.text))}else t.elm=lfe(t.text);return t.elm}function R2e(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&k_(t,SR(a),e)}}function nH(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(SA(i.tag)){var a=M2e(i.elm);ufe(a,i.elm)}else ufe(t,i.elm)}}function OJ(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==fvt?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(Kpt,r,o):r.charCodeAt(3)===ffe?n.setAttributeNS(Wpt,r,o):r.charCodeAt(5)===ffe?n.setAttributeNS(_2e,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function Avt(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],c=r[l],f,d,A,p;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:c==null?c=r[--l]:OM(o,u)?(gC(o,u),o=e[++n],u=r[++i]):OM(s,c)?(gC(s,c),s=e[--a],c=r[--l]):OM(o,c)?(gC(o,c),k_(t,o.elm,L2e(s.elm)),o=e[++n],c=r[--l]):OM(s,u)?(gC(s,u),k_(t,s.elm,o.elm),s=e[--a],u=r[++i]):(tY(f)&&(f=hvt(e,n,a)),d=f[u.key],tY(d)?k_(t,SR(u),o.elm):(A=e[d],A.tag!==u.tag?k_(t,SR(u),o.elm):(gC(A,u),e[d]=void 0,k_(t,A.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(p=r[l+1]==null?null:r[l+1].elm,R2e(t,p,r,i,l)):nH(t,e,n,a))}function gC(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(OJ(t,e),tY(e.text)?SA(n)&&SA(i)?n!==i&&Avt(r,n,i):SA(i)?(SA(t.text)&&I8(r,""),R2e(r,null,i,0,i.length-1)):SA(n)?nH(r,n,0,n.length-1):SA(t.text)&&I8(r,""):t.text!==e.text&&(SA(n)&&nH(r,n,0,n.length-1),I8(r,e.text)))}function pvt(t,e){if(OM(t,e))gC(t,e);else{var r=t.elm,n=M2e(r);SR(e),n!==null&&(k_(n,e.elm,L2e(r)),nH(n,[t],0,0))}return e}
123var vvt=0,gvt=(function(){function t(e,r,n){if(this.type="svg",this.configLayer=mvt(),this.storage=r,this._opts=n=Fe({},n),this.root=e,this._id="zr"+vvt++,this._oldVNode=efe(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=b2e("svg");OJ(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.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",pvt(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return sfe(e,eY(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=eY(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=yvt(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Co("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=ze(Cr(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(Co("defs","defs",{},u)),e.animation){var c=Zpt(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Co("style","stl",{},[],c);o.push(f)}}return efe(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},MJ(this.renderToVNode({animation:ft(e.cssAnimation,!0),emphasis:ft(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ft(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,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,A=d&&d.length||0,p=l&&l.length||0,g=void 0;for(g=Math.max(A-1,p-1);g>=0&&!(d&&l&&d[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=a[o-1];for(var y=g+1;y<A;y++){var b={};cvt(d[y],b,r);var x=Co("g","clip-g-"+u++,b,[]);(s?s.children:n).push(x),a[o++]=x,s=x}l=d;var T=sfe(f,r);T&&(s?s.children:n).push(T)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=OC(i,0,n),r=OC(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(aq(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},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 r=this.renderToString(),n="data:image/svg+xml;";return e?(r=fst(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function mvt(t){return function(){}}function yvt(t,e,r,n){var i;if(r&&r!=="none")if(i=Co("rect","bg",{width:t,height:e,x:"0",y:"0"}),wCe(r))B2e({fill:r},i.attrs,"fill",n);else if(aq(r))D2e({style:{fill:r},dirty:Ki,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=oR(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function wvt(t){t.registerPainter("svg",gvt)}function dfe(t,e,r){var n=Eo.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}function O8(t){return!t.__cursors.get(ETe)}function hfe(t){var e=t.__cursors.get(ETe);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var I2e=(function(t){vi(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=HU,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||b3,typeof r=="string"?o=dfe(r,n,i):Tt(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(eq(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.afterBrush=function(){this.__prevIdx=hfe(this)},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 r=this.dpr;this.domBack=dfe("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new St(0,0,0,0);function c(T){if(!(!T.isFinite()||T.isZero()))if(o.length===0){var B=new St(0,0,0,0);B.copy(T),o.push(B)}else{for(var R=!1,I=1/0,N=0,F=0;F<o.length;++F){var Q=o[F];if(Q.intersect(T)){var j=new St(0,0,0,0);j.copy(Q),j.union(T),o[F]=j,R=!0;break}else if(l){u.copy(T),u.union(Q);var W=T.width*T.height,V=Q.width*Q.height,Y=u.width*u.height,G=Y-W-V;G<I&&(I=G,N=F)}}if(l&&(o[N].union(T),R=!0),!R){var B=new St(0,0,0,0);B.copy(T),o.push(B)}l||(l=o.length>=s)}}for(var f=hfe(this),d=f.startIdx;d<f.endIdx;++d){var A=r[d];
123if(A){var p=A.shouldBePainted(i,a,!0,!0),g=A.__isRendered&&(A.__dirty&Yu||!p)?A.getPrevPaintRect():null;g&&c(g);var m=p&&(A.__dirty&Yu||!A.__isRendered)?A.getPaintRect():null;m&&c(m)}}for(var y=this.__prevIdx,d=y.startIdx;d<y.endIdx;++d){var A=n[d],p=A&&A.shouldBePainted(i,a,!0,!0);if(A&&(!p||!A.__zr)&&A.__isRendered){var g=A.getPrevPaintRect();g&&c(g)}}var b;do{b=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var x=d+1;x<o.length;)o[d].intersect(o[x])?(b=!0,o[d].union(o[x]),o.splice(x,1)):x++;d++}}while(b);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var A=this.domBack;function p(g,m,y,b){if(o.clearRect(g,m,y,b),n&&n!=="transparent"){var x=void 0;if(EI(n)){var T=n.global||n.__width===y&&n.__height===b;x=T&&n.__canvasGradient||NW(o,n,{x:0,y:0,width:y,height:b}),n.__canvasGradient=x,n.__width=y,n.__height=b}else YSe(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,x=FW(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=x||n,o.fillRect(g,m,y,b),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(A,g,m,y,b),o.restore())}!i||u?p(0,0,s,l):i.length&&ee(i,function(g){p(g.x*f,g.y*f,g.width*f,g.height*f)})},e})(ud),Afe=1e5,c_=314159,P8=void 0,_vt=1,k8=2;function bvt(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function xvt(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function pfe(t,e,r,n){var i=new I2e(t,e,e.dpr);return i.zlevel=r,i.zlevel2=n,i.__builtin__=!0,O2e(i),i}function O2e(t){t.__cursorStack=[],t.__cursors=st()}function Svt(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function Cvt(t,e){var r=t.__cursors,n=+e;return r.get(n)||(t.__cursorStack.push(n),r.set(n,Svt({key:n})))}function ZN(t,e){for(var r=t.__cursorStack,n=0;n<r.length;n++)e(t.__cursors.get(r[n]))}function N8(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function sl(t,e,r){for(var n=t.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=t.layers[a][o];(!r||(!(r&SL)||s.__builtin__)&&(!(r&rY)||!s.__builtin__)&&(!(r&P2e)||s!==t.hoverlayer))&&e(s,a,o,i)}}var SL=1,rY=2,P2e=4,XN=SL|P2e,Tvt=(function(){function t(e,r,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=Fe({},n||{}),this.dpr=n.devicePixelRatio||b3,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(eq(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,c=l.height;n.width!=null&&(u=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var f=pfe(l,this,c_,HU);f.initContext(),this._insertLayer(f,c_,HU,!0),this._domRoot=e}else{this._width=OC(e,0,n),this._height=OC(e,1,n);var s=this._domRoot=xvt(this._width,this._height);e.appendChild(s)}}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 r;e&&!Tt(e)?r={paintAll:!!e}:r=e||{};var n=ft(r.refresh,!0),i=ft(r.refreshHover,!1);if(i&&(this._hoverLayerDirty=k8),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return sl(this._i,function(l,u,c,f){l.refresh&&l.refresh(f===0?s:null)},rY),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=P8,n!==P8&&(!r&&n===k8&&(r=this._i.hoverlayer=this._ensureLayer(Afe)),!!r)){r.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,c=void 0;u&&(c=l.style,l.style=u),tb(a,l,i),u&&(l.style=c)}}
123a&&(eT(a,i),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(Afe)},t.prototype.paintOne=function(e,r){aJ(e,r)},t.prototype._paintList=function(e,r,n){if(this._redrawId===n){var i=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),i)sl(this._i,function(o){o.afterBrush&&o.afterBrush()},XN),this._paintHoverList(e);else{var a=this;v3(function(){a._paintList(e,r,n)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(c_).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),sl(this._i,function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)},SL)},t.prototype._doPaintList=function(e,r){var n=this,i=!0;return sl(this._i,function(a){var o=!1;if(ZN(a,function(f){(f.drawIdx<f.endIdx||f.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!O8(a)?a.createRepaintRects(e,r,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var c=a.zlevel===l.zl&&a.zlevel2===l.zl2?n._backgroundColor:null;a.clear(!1,c,s)}ZN(a,function(f){var d=n._paintPerCursor(a,f,e,s,u);i=i&&d})}},XN),Dr.wxa&&sl(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},t.prototype._paintPerCursor=function(e,r,n,i,a){var o=e.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<i.length;++l){var u=i[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,n,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,n,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=O8(e),u=l&&Eo.getTime(),c=r.drawIdx,f=r.notClearIdx,d=f>=0?Math.min(f,c):c;d<r.endIdx;d++){var A=n[d];if(!(d<c&&!A.notClear)){if(A.__inHover&&(this._hoverLayerDirty=k8),i!=null){var p=A.getPaintRect();p&&p.intersect(i)&&(tb(s,A,o),A.setPrevPaintRect(p))}else tb(s,A,o);if(l){var g=Eo.getTime()-u;if(g>15){d++;break}}}}eT(s,o),r.drawIdx=Math.max(d,c)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=c_,r=0);var a=N8(this._i,e)[r];return a||(a=pfe("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&Xt(a,this._layerConfig[e],!0),(n||i&&e!==c_)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][n])&&bvt(e)){for(var c=s.length,f=0;f<c&&(s[f].zl<r||s[f].zl===r&&s[f].zl2<n);)f++;if(f>0&&(u=N8(a,s[f-1].zl)[s[f-1].zl2]),s.splice(f,0,{zl:r,zl2:n}),N8(a,r)[n]=e,!i&&!e.virtual)if(u){var d=u.dom;d.nextSibling?l.insertBefore(e.dom,d.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return sl(this._i,function(n,i){e.call(r,n,i)})},t.prototype.eachBuiltinLayer=function(e,r){return sl(this._i,function(n,i){e.call(r,n,i)},SL)},t.prototype.eachOtherLayer=function(e,r){return sl(this._i,function(n,i){e.call(r,n,i)},rY)},t.prototype.getLayers=function(){var e={};return sl(this._i,function(r,n,i){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var n=this;if(n._singleCanvas)for(var i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}sl(n._i,function(m){m.__dirty=!1,ZN(m,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},XN);for(var o,s=null,l=null,u=!1,c=0,f=e.length;c<f;c++){var a=e[c],d=a.zlevel,A=a.incremental,p=void 0;if(o!==d&&(o=d,u=!1),A?(u=!0,p=nct):p=u?rct:HU,(!s||d!==s.zlevel||p!==s.zlevel2)&&(s=n._ensureLayer(d,p),l=null,!s.__builtin__)){$5("ZLevel "+d+" has been used by unknown layer "+s.id);continue}if((!l||A!==l.key)&&(l=Cvt(s,A),!l.used))if(l.used=!0,!r&&l.first===a.id){var g=c-l.startIdx;l.startIdx=c,l.drawIdx+=g,l.endIdx+=g}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=c,l.endIdx=c+1;l.endIdxNew=c+1,a.__dirty&Yu&&!a.__inHover&&((!A||!a.notClear&&c<l.drawIdx)&&(s.__dirty=!0),A&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=c))}sl(n._i,function(m){for(var y=m.__cursorStack,b=m.__cursors,x=y.length-1;x>=0;x--){var T=b.get(y[x]);
123if(!T.used)m.__dirty=!0,b.removeKey(y[x]),y.splice(x,1);else{var B=T.endIdxNew;(O8(m)?B<T.drawIdx:B!==T.endIdx||!B||e[B-1].id!==T.last)&&(m.__dirty=!0),T.endIdx=T.endIdxNew,T.last=B?e[B-1].id:NaN}}m.__dirty&&(ZN(m,function(R){R.drawIdx=R.startIdx}),n._hoverLayerDirty===P8&&(n._hoverLayerDirty=_vt))},XN)},t.prototype.clear=function(){return sl(this._i,function(e){e.clear(),O2e(e)},SL),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,sl(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Xt(n[e],r,!0):n[e]=r,sl(this._i,function(i,a){Xt(i,n[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,n=this._i.layers,i=r.length-1;i>=0;i--){var a=r[i];if(a.zl===e){var o=n[e][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;e!=null&&(i.width=e),r!=null&&(i.height=r),e=OC(a,0,i),r=OC(a,1,i),n.style.display="",(this._width!==e||r!==this._height)&&(n.style.width=e+"px",n.style.height=r+"px",sl(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(c_).resize(e,r)}return this},t.prototype.clearLayer=function(e){ee(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[c_][0].dom;var r=new I2e("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;sl(this._i,function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];tb(n,c,o)}eT(n,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function Evt(t){t.registerPainter("canvas",Tvt)}var Bvt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return yp(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new xt,i=Ba("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Ba(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=xe.color.neutral00,u.style.lineWidth=2),n},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(On);function MT(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=ST(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(ST(t,e,r[o]));return a.join(" ")}}function k2e(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!je(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var VI=(function(t){Ee(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=Ba(r,-1,-1,2,2,null,s);l.attr({z2:ft(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Dvt,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ag(this.childAt(0))},e.prototype.downplay=function(){pg(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),c=o!==this._symbolType,f=a&&a.disableAnimation;if(c){var d=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,d)}else{var A=this.childAt(0);A.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};f?A.attr(p):Wr(A,p,s,n),ad(A)}if(this._updateCommon(r,n,l,i,a),c){var A=this.childAt(0);if(!f){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:A.style.opacity}};A.scaleX=A.scaleY=0,A.style.opacity=0,ui(A,p,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,A,p,g,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,A=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var b=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=b.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),A=x.get("blurScope"),p=x.get("disabled"),g=so(b),m=x.getShallow("scale"),y=b.getShallow("cursor")}var T=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(T||0)*Math.PI/180||0);var B=Lx(r.getItemVisual(n,"symbolOffset"),i);B&&(s.x=B[0],s.y=B[1]),y&&s.attr("cursor",y);var R=r.getItemVisual(n,"style"),I=R.fill;if(s instanceof Mo){var N=s.style;s.useStyle(Fe({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},R))}else s.__isEmptyBrush?s.useStyle(Fe({},R)):s.useStyle(R),s.style.decal=null,s.setColor(I,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var F=r.getItemVisual(n,"liftZ"),Q=this._z2;F!=null?Q==null&&(this._z2=s.z2,s.z2+=F):Q!=null&&(s.z2=Q,this._z2=null);var j=o&&o.useNameLabel;Do(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:W,inheritColor:I,defaultOpacity:R.opacity});function W(G){return j?r.getName(G):MT(r,G)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var V=s.ensureState("emphasis");V.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var Y=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;V.scaleX=this._sizeX*Y,V.scaleY=this._sizeY*Y,this.setSymbolScale(1),Ti(this,d,A,p)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=It(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&i0(l,{style:{opacity:0}
123},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();i0(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return bE(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(xt);function Dvt(t,e){this.parent.drift(t,e)}function qN(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function vfe(t){return t!=null&&!Tt(t)&&(t={isIgnore:t}),t||{}}function gfe(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:so(e),cursorStyle:e.get("cursor")}}function mfe(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var GI=(function(){function t(e){this.group=new xt,this._SymbolCtor=e||VI}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=vfe(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=gfe(e),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return e.getItemLayout(f)};a||n.removeAll(),e.diff(a).add(function(f){var d=c(f);qN(e,d,f,r)&&mfe(o,e,f,l,u,d,n)}).update(function(f,d){var A=a.getItemGraphicEl(d),p=c(f);if(!qN(e,p,f,r)){n.remove(A);return}var g=e.getItemVisual(f,"symbol")||"circle",m=A&&A.getSymbolType&&A.getSymbolType();if(!A||m&&m!==g)n.remove(A),A=new o(e,f,l,u),A.setPosition(p);else{A.updateData(e,f,l,u);var y={x:p[0],y:p[1]};s?A.attr(y):Wr(A,y,i)}n.add(A),e.setItemGraphicEl(f,A)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),l=n._getSymbolPoint(a);qN(r,l,a,e)?(s=s||mfe(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=gfe(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=vfe(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=pE)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(qN(r,s,o,i)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){w0(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function N2e(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=Mvt(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ze(t.dimensions,function(p){return e.mapDimension(p)}),d=!1,A=e.getCalculationInfo("stackResultDimension");return gg(e,f[0])&&(d=!0,f[0]=A),gg(e,f[1])&&(d=!0,f[1]=A),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mvt(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Hr(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function F2e(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function $f(t,e){return!isFinite(t)||!isFinite(e)}var Lvt=typeof Float32Array!==cE?Float32Array:void 0,Rvt=typeof Float64Array!==cE?Float64Array:void 0;function FA(t){return PJ({ctor:Lvt},t).arr}function PJ(t,e){var r=t.arr,n=t.ctor;if(e>lR&&(e=lR),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch{}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function Ivt(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function Ovt(t,e,r,n,i,a,o,s){for(var l=Ivt(t,e),u=[],c=[],f=[],d=[],A=[],p=[],g=[],m=N2e(i,e,o),y=t.getLayout("points")||[],b=e.getLayout("points")||[],x=0;x<l.length;x++){var T=l[x],B=!0,R=void 0,I=void 0;switch(T.cmd){case"=":R=T.idx*2,I=T.idx1*2;var N=y[R],F=y[R+1],Q=b[I],j=b[I+1];(isNaN(N)||isNaN(F))&&(N=Q,F=j),u.push(N,F),c.push(Q,j),f.push(r[R],r[R+1]),d.push(n[I],n[I+1]),g.push(e.getRawIndex(T.idx1));break;case"+":var W=T.idx,V=m.dataDimsForPoint,Y=i.dataToPoint([e.get(V[0],W),e.get(V[1],W)]);I=W*2,u.push(Y[0],Y[1]),c.push(b[I],b[I+1]);var G=F2e(m,i,e,W);f.push(G[0],G[1]),d.push(n[I],n[I+1]),g.push(e.getRawIndex(W));break;case"-":B=!1}B&&(A.push(T),p.push(p.length))}p.sort(function(fe,we){return g[fe]-g[we]});for(var K=u.length,X=FA(K),q=FA(K),ne=FA(K),te=FA(K),ce=[],x=0;x<p.length;x++){var he=p[x],ve=x*2,ae=he*2;X[ve]=u[ae],X[ve+1]=u[ae+1],q[ve]=c[ae],q[ve+1]=c[ae+1],ne[ve]=f[ae],ne[ve+1]=f[ae+1],te[ve]=d[ae],te[ve+1]=d[ae+1],ce[x]=A[he]}return{current:X,next:q,stackedOnCurrent:ne,stackedOnNext:te,status:ce}}var Wm=Math.min,Ym=Math.max;function nY(t,e,r,n,i,a,o,s,l){for(var u,c,f,d,A,p,g=r,m=0;m<n;m++){var y=e[g*2],b=e[g*2+1];if(g>=i||g<0)break;if($f(y,b)){if(l){g+=a;continue}break}if(g===r)t[a>0?"moveTo":"lineTo"](y,b),f=y,d=b;else{var x=y-u,T=b-c;if(x*x+T*T<.5){g+=a;continue}if(o>0){for(var B=g+a,R=e[B*2],I=e[B*2+1];R===y&&I===b&&m<n;)m++,B+=a,g+=a,R=e[B*2],I=e[B*2+1],y=e[g*2],b=e[g*2+1],x=y-u,T=b-c;var N=m+1;
123if(l)for(;$f(R,I)&&N<n;)N++,B+=a,R=e[B*2],I=e[B*2+1];var F=.5,Q=0,j=0,W=void 0,V=void 0;if(N>=n||$f(R,I))A=y,p=b;else{Q=R-u,j=I-c;var Y=y-u,G=R-y,K=b-c,X=I-b,q=void 0,ne=void 0;if(s==="x"){q=Math.abs(Y),ne=Math.abs(G);var te=Q>0?1:-1;A=y-te*q*o,p=b,W=y+te*ne*o,V=b}else if(s==="y"){q=Math.abs(K),ne=Math.abs(X);var ce=j>0?1:-1;A=y,p=b-ce*q*o,W=y,V=b+ce*ne*o}else q=Math.sqrt(Y*Y+K*K),ne=Math.sqrt(G*G+X*X),F=ne/(ne+q),A=y-Q*o*(1-F),p=b-j*o*(1-F),W=y+Q*o*F,V=b+j*o*F,W=Wm(W,Ym(R,y)),V=Wm(V,Ym(I,b)),W=Ym(W,Wm(R,y)),V=Ym(V,Wm(I,b)),Q=W-y,j=V-b,A=y-Q*q/ne,p=b-j*q/ne,A=Wm(A,Ym(u,y)),p=Wm(p,Ym(c,b)),A=Ym(A,Wm(u,y)),p=Ym(p,Wm(c,b)),Q=y-A,j=b-p,W=y+Q*ne/q,V=b+j*ne/q}t.bezierCurveTo(f,d,A,p,y,b),f=W,d=V}else t.lineTo(y,b)}u=y,c=b,g+=a}return m}var U2e=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),Pvt=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:xe.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new U2e},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&$f(i[o*2-2],i[o*2-1]);o--);for(;a<o&&$f(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=nY(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=op.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var d=a[f++],A=void 0,p=void 0,g=void 0,m=void 0,y=void 0,b=void 0,x=void 0;switch(d){case o.M:s=a[f++],l=a[f++];break;case o.L:if(A=a[f++],p=a[f++],x=u?(r-s)/(A-s):(r-l)/(p-l),x<=1&&x>=0){var T=u?(p-l)*x+l:(A-s)*x+s;return u?[r,T]:[T,r]}s=A,l=p;break;case o.C:A=a[f++],p=a[f++],g=a[f++],m=a[f++],y=a[f++],b=a[f++];var B=u?m3(s,A,g,y,r,c):m3(l,p,m,b,r,c);if(B>0)for(var R=0;R<B;R++){var I=c[R];if(I<=1&&I>=0){var T=u?_o(l,p,m,b,I):_o(s,A,g,y,I);return u?[r,T]:[T,r]}}s=y,l=b;break}}},e})(_r),kvt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(U2e),H2e=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new kvt},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&$f(i[s*2-2],i[s*2-1]);s--);for(;o<s&&$f(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=nY(r,i,o,s,s,1,n.smooth,l,n.connectNulls);nY(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(_r);function Q2e(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new fr({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),A=d.isHorizontal(),p=d.inverse;A?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var g=mt(i)?function(m){i(m,f)}:null;ui(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return f}function j2e(t,e,r){var n=t.getArea(),i=Kr(n.r0,1),a=Kr(n.r,1),o=new ks({shape:{cx:Kr(t.cx,1),cy:Kr(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,ui(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function Xb(t,e,r,n,i){if(t){if(t.type==="polar")return j2e(t,e,r);if(t.type==="cartesian2d")return Q2e(t,e,r,n,i)}else return null;return null}var CR=0,TR=1,ER=2;function PC(t,e,r){t?e.setClipPath(r):e.removeClipPath()}function z2e(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function qb(t,e){return t.type===e}function yfe(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!t.getViewRect}function V2e(t,e,r,n){return t&&(t.legacy||t.legacy!==!1&&!r&&!n&&e!=="tspan"&&(e==="text"||ut(t,"text")))}function G2e(t,e,r){var n=t,i,a,o;if(e==="text")o=n;else{o={},ut(n,"text")&&(o.text=n.text),ut(n,"rich")&&(o.rich=n.rich),ut(n,"textFill")&&(o.fill=n.textFill),ut(n,"textStroke")&&(o.stroke=n.textStroke),ut(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ut(n,"fontSize")&&(o.fontSize=n.fontSize),ut(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ut(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ut(n,"textPosition");
123r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ut(n,"textPosition")&&(i.position=n.textPosition),ut(n,"textOffset")&&(i.offset=n.textOffset),ut(n,"textRotation")&&(i.rotation=n.textRotation),ut(n,"textDistance")&&(i.distance=n.textDistance)}return wfe(o,t),ee(o.rich,function(l){wfe(l,l)}),{textConfig:i,textContent:a}}function wfe(t,e){e&&(e.font=e.textFont||e.font,ut(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ut(e,"textAlign")&&(t.align=e.textAlign),ut(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ut(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ut(e,"textWidth")&&(t.width=e.textWidth),ut(e,"textHeight")&&(t.height=e.textHeight),ut(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ut(e,"textPadding")&&(t.padding=e.textPadding),ut(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ut(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ut(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ut(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ut(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ut(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ut(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function _fe(t,e,r){var n=t;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=t.fill||xe.color.neutral99;bfe(n,e);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||xe.color.neutral00,!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=t.fill||r.outsideFill||xe.color.neutral00),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=e.text,n.rich=e.rich,ee(e.rich,function(s){bfe(s,s)}),n}function bfe(t,e){e&&(ut(e,"fill")&&(t.textFill=e.fill),ut(e,"stroke")&&(t.textStroke=e.fill),ut(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ut(e,"font")&&(t.font=e.font),ut(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ut(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ut(e,"fontSize")&&(t.fontSize=e.fontSize),ut(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ut(e,"align")&&(t.textAlign=e.align),ut(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ut(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ut(e,"width")&&(t.textWidth=e.width),ut(e,"height")&&(t.textHeight=e.height),ut(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ut(e,"padding")&&(t.textPadding=e.padding),ut(e,"borderColor")&&(t.textBorderColor=e.borderColor),ut(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ut(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ut(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ut(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ut(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ut(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ut(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ut(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ut(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ut(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function xfe(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function Sfe(t){for(var e=Cs(),r=Cs(),n=0;n<t.length;){var i=t[n++],a=t[n++];$f(i,a)||(cW(e,i),cW(r,a))}return[e,r]}function Cfe(t,e){var r=Sfe(t),n=r[0],i=r[1],a=Sfe(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function Tfe(t){return Hr(t)?t:t?.5:0}function Nvt(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=FA(n*2),a=0;a<n;a++){var o=F2e(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function $m(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(i){for(l=0;l<t.length;l+=2){var A=e||t;$f(A[l],A[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(f[0]=t[l+2],f[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),n){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var p=(c[o]+f[o])/2,g=[];u[o]=g[o]=p,u[1-o]=c[1-o],g[1-o]=f[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function Fvt(t,e){var r=[],n=t.length,i,a;
123function o(c,f,d){var A=c.coord,p=(d-A)/(f.coord-A),g=iq(p,[c.color,f.color]);return{coord:d,color:g}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function Uvt(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=ze(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Fvt(u,i==="x"?r.getWidth():r.getHeight()),A=d.length;if(!A&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,g=d[0].coord-p,m=d[A-1].coord+p,y=m-g;if(y<.001)return"transparent";ee(d,function(x){x.offset=(x.coord-g)/y}),d.push({offset:A?d[A-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:A?d[0].offset:.5,color:f[0]||"transparent"});var b=new Tx(0,0,0,0,d,!0);return b[i]=g,b[i+"2"]=m,b}}}function Hvt(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Qvt(a,e))){var o=e.mapDimension(a.dim),s={};return ee(a.getViewLabels(),function(l){l.tick.offInterval||(s[CE(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Qvt(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(VI.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function jvt(t){for(var e=t.length/2;e>0&&$f(t[e*2-2],t[e*2-1]);e--);return e-1}function Efe(t,e){return[t[e*2],t[e*2+1]]}function zvt(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!$f(o,t[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function K2e(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<uu.length;e++)if(t.get([uu[e],"endLabel","show"]))return!0;return!1}function F8(t,e,r,n){if(qb(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=K2e(n)?function(A,p){t._endLabelOnDuring(A,p,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Q2e(e,r,n,function(){var A=t._endLabel;A&&r&&s.originalX!=null&&A.attr({x:s.originalX,y:s.originalY})},l);if(!n.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 j2e(e,r,n)}function Vvt(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var Gvt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new xt,n=new GI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=ot(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),c=s.getLayout("points")||[],f=a.type==="polar",d=this._coordSys,A=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),b=!u.isEmpty(),x=u.get("origin"),T=N2e(a,s,x),B=b&&Nvt(a,s,T),R=r.get("showSymbol"),I=r.get("connectNulls"),N=R&&!f&&Hvt(r,s,a),F=this._data;F&&F.eachItemGraphicEl(function(be,Ve){be.__temp&&(o.remove(be),F.setItemGraphicEl(Ve,null))}),R||A.remove(),o.add(m);var Q=f?!1:r.get("step"),j;a&&a.getArea&&r.get("clip",!0)&&(j=a.getArea(),j.width!=null?(j.x-=.1,j.y-=.1,j.width+=.2,j.height+=.2):j.r0&&(j.r0-=.5,j.r+=.5)),this._clipShapeForSymbol=j;var W=Uvt(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&d.type===a.type&&Q===this._step))R&&A.updateData(s,{isIgnore:N,clipShape:j,disableAnimation:!0,getSymbolPoint:function(be){return[c[be*2],c[be*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,j),Q&&(B&&(B=$m(B,c,a,Q,I)),c=$m(c,null,a,Q,I)),p=this._newPolyline(c),b?g=this._newPolygon(c,B):g&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,Kb(W)),m.setClipPath(F8(this,a,!0,r));else{b&&!g?g=this._newPolygon(c,B):g&&!b&&(m.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,Kb(W));var V=m.getClipPath();if(V){var Y=F8(this,a,!1,r);ui(V,{shape:Y.shape},r)}else m.setClipPath(F8(this,a,!0,r));R&&A.updateData(s,{isIgnore:N,clipShape:j,disableAnimation:!0,get
123SymbolPoint:function(be){return[c[be*2],c[be*2+1]]}}),(!xfe(this._stackedOnPoints,B)||!xfe(this._points,c))&&(y?this._doUpdateAnimation(s,B,a,i,Q,x,I):(Q&&(B&&(B=$m(B,c,a,Q,I)),c=$m(c,null,a,Q,I)),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:B})))}var G=r.getModel("emphasis"),K=G.get("focus"),X=G.get("blurScope"),q=G.get("disabled");if(p.useStyle(Ct(l.getLineStyle(),{fill:"none",stroke:W,lineJoin:"bevel"})),oo(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var ne=p.getState("emphasis").style;ne.lineWidth=+p.style.lineWidth+1}It(p).seriesIndex=r.seriesIndex,Ti(p,K,X,q);var te=Tfe(r.get("smooth")),ce=r.get("smoothMonotone");if(p.setShape({smooth:te,smoothMonotone:ce,connectNulls:I}),g){var he=s.getCalculationInfo("stackedOnSeries"),ve=0;g.useStyle(Ct(u.getAreaStyle(),{fill:W,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),he&&(ve=Tfe(he.get("smooth"))),g.setShape({smooth:te,stackedOnSmooth:ve,smoothMonotone:ce,connectNulls:I}),oo(g,r,"areaStyle"),It(g).seriesIndex=r.seriesIndex,Ti(g,K,X,q)}var ae=this._changePolyState;s.eachItemGraphicEl(function(be){be&&(be.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=s,this._coordSys=a,this._stackedOnPoints=B,this._points=c,this._step=Q,this._valueOrigin=x;var fe=r.get("triggerEvent"),we=r.get("triggerLineEvent"),Me=we===!0||fe===!0||fe==="line",ge=we===!0||fe===!0||fe==="area";this.packEventData(r,p,Me),g&&this.packEventData(r,g,ge)},e.prototype.packEventData=function(r,n,i){It(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Hb(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if($f(c,f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,A=r.get("z")||0;u=new VI(o,s),u.x=c,u.y=f,u.setZ(d,A);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=A,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else xn.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Hb(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else xn.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;M3(this._polyline,r),n&&M3(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Pvt({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new H2e({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");mt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=mt(f)?f(null):f;r.eachItemGraphicEl(function(A,p){var g=A;if(g){var m=[A.x,A.y],y=void 0,b=void 0,x=void 0;if(i)if(o){var T=i,B=n.pointToCoord(m);a?(y=T.startAngle,b=T.endAngle,x=-B[1]/180*Math.PI):(y=T.r0,b=T.r,x=B[0])}else{var R=i;a?(y=R.x,b=R.x+R.width,x=A.x):(y=R.y+R.height,b=R.y,x=A.y)}var I=b===y?0:(x-y)/(b-y);l&&(I=1-I);var N=mt(f)?f(p):c*I+d,F=g.getSymbolPath(),Q=F.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:N}),Q&&Q.animateFrom({style:{opacity:0}},{duration:300,delay:N}),F.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(K2e(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Nr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=jvt(l);c>=0&&(Do(s,so(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,A){return A!=null?
123k2e(o,A):MT(o,f)},enableTextSetter:!0},Vvt(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,A=d.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,x=n.shape,T=b?y?x.x:x.y+x.height:y?x.x+x.width:x.y,B=(y?g:0)*(b?-1:1),R=(y?0:-g)*(b?-1:1),I=y?"x":"y",N=zvt(f,T,I),F=N.range,Q=F[1]-F[0],j=void 0;if(Q>=1){if(Q>1&&!A){var W=Efe(f,F[0]);u.attr({x:W[0]+B,y:W[1]+R}),o&&(j=d.getRawValue(F[0]))}else{var W=c.getPointOn(T,I);W&&u.attr({x:W[0]+B,y:W[1]+R});var V=d.getRawValue(F[0]),Y=d.getRawValue(F[1]);o&&(j=jCe(i,p,V,Y,N.t))}a.lastFrameIndex=F[0]}else{var G=r===1||a.lastFrameIndex>0?F[0]:0,W=Efe(f,G);o&&(j=d.getRawValue(G)),u.attr({x:W[0]+B,y:W[1]+R})}if(o){var K=gE(u);typeof K.setLabelText=="function"&&K.setLabelText(j)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=Ovt(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),A=d.current,p=d.stackedOnCurrent,g=d.next,m=d.stackedOnNext;if(o&&(p=$m(d.stackedOnCurrent,d.current,i,o,l),A=$m(d.current,null,i,o,l),m=$m(d.stackedOnNext,d.next,i,o,l),g=$m(d.next,null,i,o,l)),Cfe(A,g)>3e3||c&&Cfe(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=d.current,u.shape.points=A;var y={shape:{points:g}};d.current!==A&&(y.shape.__points=d.next),u.stopAnimation(),Wr(u,y,f),c&&
123(c.setShape({points:A,stackedOnPoints:p}),c.stopAnimation(),Wr(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],x=d.status,T=0;T<x.length;T++){var B=x[T].cmd;if(B==="="){var R=r.getItemGraphicEl(x[T].idx1);R&&b.push({el:R,ptIdx:T})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var I=u.shape.__points,N=0;N<b.length;N++){var F=b[N].el,Q=b[N].ptIdx*2;F.x=I[Q],F.y=I[Q+1],F.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(xn);function KI(t,e){return{seriesType:t,plan:Mx(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=ze(i.dimensions,function(A){return n.mapDimension(A)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");gg(n,s[0])&&(s[0]=u),gg(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(A,p){for(var g=A.end-A.start,m=o&&FA(g*l),y=[],b=[],x=A.start,T=0;x<A.end;x++){var B=void 0;if(l===1){var R=c.get(f,x);B=i.dataToPoint(R,null,b)}else y[0]=c.get(f,x),y[1]=c.get(d,x),B=i.dataToPoint(y,null,b);o?(m[T++]=B[0],m[T++]=B[1]):p.setItemLayout(x,B.slice())}o&&(p.setLayout("points",m),p.setLayout("pointsRange",{start:A.start,end:A.end}))}}}}}}var Kvt={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Wvt=function(t){return Math.round(t.length/2)};function W2e(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),A=Math.round(s/d);if(isFinite(A)&&A>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/A)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/A));var p=void 0;et(a)?p=Kvt[a]:mt(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/A,p,Wvt))}}}}}function Yvt(t){t.registerChartView(Gvt),t.registerSeriesModel(Bvt),t.registerLayout(KI("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W2e("line"))}var Y2e=(function(t){Ee(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(fd),iY=null;function $vt(t){iY||(iY=t)}function WI(){return iY}var RQ="expandAxisBreak",$2e="collapseAxisBreak",Z2e="toggleAxisBreak",kJ="axisbreakchanged",Zvt={type:RQ,event:kJ,update:"update",refineEvent:NJ},Xvt={type:$2e,event:kJ,update:"update",refineEvent:NJ},qvt={type:Z2e,event:kJ,update:"update",refineEvent:NJ};function NJ(t,e,r,n){var i=[];return ee(t,function(a){i=i.concat(a.eventBreaks)}),{eventContent:{breaks:i}}}function Jvt(t){t.registerAction(Zvt,e),t.registerAction(Xvt,e),t.registerAction(qvt,e);function e(r,n){var i=[],a=$C(n,r);
123function o(s,l){ee(a[s],function(u){var c=u.updateAxisBreaks(r);ee(c.breaks,function(f){var d;i.push(Ct((d={},d[l]=u.componentIndex,d),f))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:i}}}var Sy=Math.PI,egt=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],tgt=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Jb=qt(),X2e=qt(),q2e=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function rgt(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=FJ(t.axisName)&&ET(t.nameLocation);ee(n,function(p){var g=up(p);if(!(!g||g.label.ignore)){o.push(g);var m=a.transGroup;l&&(m.transform?jc(ND,m.transform):bx(ND),g.transform&&Fc(ND,ND,g.transform),St.copy(JN,g.localRect),JN.applyTransform(ND),s?s.union(JN):St.copy(s=new St(0,0,0,0),JN))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(o.sort(function(p,g){return Math.abs(p.label[u]-c)-Math.abs(g.label[u]-c)}),l&&s){var f=i.getExtent(),d=Math.min(f[0],f[1]),A=Math.max(f[0],f[1])-d;s.union(new St(d,0,A,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ND=Si(),JN=new St(0,0,0,0),J2e=function(t,e,r,n,i,a){if(ET(t.nameLocation)){var o=a.stOccupiedRect;o&&eDe(Ipt({},o,a.transGroup.transform),n,i)}else tDe(a.labelInfoList,a.dirVec,n,i)};function eDe(t,e,r){var n=new Lt;MQ(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&ZW(e,n)}function tDe(t,e,r,n){for(var i=Lt.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||eDe(s,r,n)}}var au=(function(){function t(e,r,n,i){this.group=new xt,this._axisModel=e,this._api=r,this._local={},this._shared=i||new q2e(J2e),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=ft(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=ft(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:ft(e.nameDirection,1),tickDirection:ft(e.tickDirection,1),labelDirection:ft(e.labelDirection,1),labelOffset:ft(e.labelOffset,0),silent:ft(e.silent,!0),axisName:i,nameLocation:Ju(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:FJ(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new xt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new Lt(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),ee(ngt,function(i){e[i]&&igt[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=lq(r-e),a,o;return Fb(i)?(o=n>0?"top":"bottom",a="center"):Fb(i-Sy)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Sy?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),ngt=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],igt={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,c=[l[0],0],f=[l[1],0],d=c[0]>f[0];u&&(Wi(c,c,u),Wi(f,f,u));var A=Fe({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:A};if(n.get(["axisLine","breakLine"])&&O3(n.axis.scale))WI().buildAxisBreakLine(n,i,a,p);else{var g=new Ca(Fe({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},p));xT(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var m=n.get(["axisLine","symbol"]);if(m!=null){var y=n.get(["axisLine","symbolSize"]);et(m)&&(m=[m,m]),(et(y)||Hr(y))&&(y=[y,y]);var b=Lx(n.get(["axisLine","symbolOffset"])||0,y),x=y[0],T=y[1];ee([{rotate:t.rotation+Math.PI/2,offset:b[0],r:0},{rotate:t.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(B,R){if(m[R]!=="none"&&m[R]!=null){var I=Ba(m[R],-x/2,-T/2,x,T,A.stroke,!0),N=B.r+B.offset,F=d?f:c;I.attr({rotation:B.rotate,x:F[0]+N*Math.cos(t.rotation),y:F[1]-N*Math.sin(t.rotation),silent:!0,z2:11}),i.add(I)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=Dfe(e,i,s);l&&Bfe(t,e,r,n,i,a,o,mh.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=Dfe(e,i,s);l&&Bfe(t,e,r,n,i,a,o,mh.determine);var u=lgt(t,i,a,n);sgt(t,e.labelLayoutList,u),ugt(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(FJ(u)){var c=t.nameLocation,f=t.nameDirection,d=n.getModel("nameTextStyle"),A=n.get("nameGap")||0,p=n.axis.getExtent(),g=n.axis.inverse?-1:1,m=new Lt(0,0),y=new Lt(0,0);c==="start"?(m.x=p[0]-g*A,y.x=-g):c==="end"?(m.x=p[1]+g*A,y.x=g):(m.x=(p[0]+p[1])/2,m.y=t.labelOffset+f*A,y.y=f);var b=Si();y.transform(Tg(b,b,t.rotation));var x=n.get("nameRotate");x!=null&&(x=x*Sy/180);var T,B;ET(c)?T=au.innerTextLayout(t.rotation,x??t.rotation,f):(T=agt(t.rotation,c,x||0,p),B=t.raw.axisNameAvailableWidth,B!=null&&(B=Math.abs(B/Math.sin(T.rotation)),!isFinite(B)&&(B=null)));var R=d.getFont(),I=n.get("nameTruncate",!0)||{},N=I.ellipsis,F=gl(t.raw.nameTruncateMaxWidth,I.maxWidth,B),Q=s.nameMarginLevel||0,j=new Nr({x:m.x,y:m.
123y,rotation:T.rotation,silent:au.isLabelSilent(n),style:Gn(d,{text:u,font:R,overflow:"truncate",width:F,ellipsis:N,fill:d.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:d.get("align")||T.textAlign,verticalAlign:d.get("verticalAlign")||T.textVerticalAlign}),z2:1});if(Bg({el:j,componentModel:n,itemName:u}),j.__fullText=u,j.anid="name",n.get("triggerEvent")){var W=au.makeAxisEventDataBase(n);W.targetType="axisName",W.name=u,It(j).eventData=W}a.add(j),j.updateTransform(),e.nameEl=j;var V=l.nameLayout=up({label:j,priority:j.z2,defaultAttr:{ignore:j.ignore},marginDefault:ET(c)?egt[Q]:tgt[Q]});if(l.nameLocation=c,i.add(j),j.decomposeTransform(),t.shouldNameMoveOverlap&&V){var Y=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,V,y,Y)}}}};function Bfe(t,e,r,n,i,a,o,s){nDe(e)||cgt(t,e,i,s,n,o);var l=e.labelLayoutList;fgt(t,n,l,a),Agt(n,t.rotation,l);var u=t.optionHideOverlap;ogt(n,l,u),u&&g2e(ln(l,function(c){return c&&!c.label.ignore})),rgt(t,r,n,l)}function agt(t,e,r,n){var i=lq(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Fb(i-Sy/2)?(o=l?"bottom":"top",a="center"):Fb(i-Sy*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Sy*1.5&&i>Sy/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function ogt(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(yAt(n))return;function a(u,c,f){var d=up(e[c]),A=up(e[f]),p=n.scale;if(!(!d||!A)){if(u==null){if(!r&&i)return;var g=Jb(d.label).labelInfo.tick;if(HI(p)&&g.notNice||xl(p)&&g.offInterval){mC(d.label);return}}if(u===!1||d.suggestIgnore){mC(d.label);return}if(A.suggestIgnore){mC(A.label);return}var m=.1;if(!r){var y=[0,0,0,0];d=XW({marginForce:y},d),A=XW({marginForce:y},A)}MQ(d,A,null,{touchThreshold:m})&&mC(u?A.label:d.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function sgt(t,e,r){t.showMinorTicks||ee(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=X2e(a),s=Jb(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){mC(a);return}}})}function mC(t){t&&(t.ignore=!0)}function rDe(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;
123o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Wi(o,o,e),Wi(s,s,e));var c=new Ca({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});xT(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,a.push(c);var f=X2e(c);f.onBand=!!t[l].onBand,f.tickValue=t[l].tickValue}return a}function lgt(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),c=rDe(u,r.transform,l,Ct(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}function ugt(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=Ct(l.getLineStyle(),Ct(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var d=rDe(s[f],r.transform,u,c,"minorticks_"+f),A=0;A<d.length;A++)e.add(d[A])}}function Dfe(t,e,r){if(nDe(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),aY(t,null,null,null))}return!0}function cgt(t,e,r,n,i,a){var o=i.axis,s=gl(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new xt;r.add(l);var u=X3(n);if(!s||o.scale.isBlank()){aY(e,[],l,u);return}var c=i.getModel("axisLabel"),f=o.getViewLabels(u),d=(gl(t.raw.labelRotate,c.get("rotate"))||0)*Sy/180,A=au.innerTextLayout(t.rotation,d,t.labelDirection),p=i.getCategories&&i.getCategories(!0),g=[],m=i.get("triggerEvent"),y=1/0,b=-1/0;ee(f,function(T,B){var R,I=T.tick,N=T.formattedLabel,F=T.rawLabel,Q=c,j=CE(o.scale,I);if(p&&p[j]){var W=p[j];Tt(W)&&W.textStyle&&(Q=new wr(W.textStyle,c,i.ecModel))}var V=Q.getTextColor()||i.get(["axisLine","lineStyle","color"]),Y=Q.getShallow("align",!0)||A.textAlign,G=ft(Q.getShallow("alignMinLabel",!0),Y),K=ft(Q.getShallow("alignMaxLabel",!0),Y),X=Q.getShallow("verticalAlign",!0)||Q.getShallow("baseline",!0)||A.textVerticalAlign,q=ft(Q.getShallow("verticalAlignMinLabel",!0),X),ne=ft(Q.getShallow("verticalAlignMaxLabel",!0),X),te=10+(((R=I.time)===null||R===void 0?void 0:R.level)||0);y=Math.min(y,te),b=Math.max(b,te);var ce=new Nr({x:0,y:0,rotation:0,silent:au.isLabelSilent(i),z2:te,style:Gn(Q,{text:N,align:B===0?G:B===f.length-1?K:Y,verticalAlign:B===0?q:B===f.length-1?ne:X,fill:mt(V)?V(o.type==="category"?F:o.type==="value"?j+"":j,B):V})});ce.anid="label_"+j;var he=Jb(ce);if(he.labelInfo=T,he.layoutRotation=A.rotation,Bg({el:ce,componentModel:i,itemName:N,formatterParamsExtra:{isTruncated:function(){return ce.isTruncated},value:F,tickIndex:B}}),m){var ve=au.makeAxisEventDataBase(i);ve.targetType="axisLabel",ve.value=F,ve.tickIndex=B;var ae=T.tick.break;if(ae){var fe=ae.parsedBreak;ve.break={start:fe.vmin,end:fe.vmax}}o.type==="category"&&(ve.dataIndex=j),It(ce).eventData=ve,ae&&hgt(i,a,ce,ae)}g.push(ce),l.add(ce)});var x=ze(g,function(T){return{label:T,priority:Jb(T).labelInfo.tick.break?T.z2+(b-y+1):T.z2,defaultAttr:{ignore:T.ignore}}});aY(e,x,l,u)}function nDe(t){return!!t.labelLayoutList}function aY(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function fgt(t,e,r,n){var i=e.get(["axisLabel","margin"]);ee(r,function(a,o){var s=up(a);if(s){var l=s.label,u=Jb(l);s.suggestIgnore=l.ignore,l.ignore=!1,rp(vv,dgt);var c=e.axis;vv.x=c.dataToCoord(CE(c.scale,u.labelInfo.tick)),vv.y=t.labelOffset+t.labelDirection*i,vv.rotation=u.layoutRotation,n.add(vv),vv.updateTransform(),n.remove(vv),vv.decomposeTransform(),rp(l,vv),l.markRedraw(),rH(s,!0),up(s)}})}var vv=new fr,dgt=new fr;function FJ(t){return!!t}function hgt(t,e,r,n){r.on("click",function(i){var a={type:RQ,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function Agt(t,e,r){var n=Ta();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&Jb(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);
123(a===!0||a==="auto")&&ee(i,function(o){WI().adjustBreakLabelPair(t.axis.inverse,e,[up(r[o[0]]),up(r[o[1]])])})}}function iH(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(a){var A=a.toGlobalCoord(a.dataToCoord(0));d[c.onZero]=Math.max(Math.min(A,d[1]),d[0])}i.position=[l==="y"?d[c[s]]:u[0],l==="x"?d[c[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=a?d[c[o]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),gl(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function pgt(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function vgt(t){var e={xAxisModel:null,yAxisModel:null};return ee(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,ta).models[0];e[n]=a}),e}function ggt(t,e,r,n,i,a){for(var o=iH(t,r),s=!1,l=!1,u=0;u<e.length;u++)NBe(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new au(r,n,o,i)}function mgt(t,e,r){var n=iH(e,r);t.updateCfg(n)}function ygt(t){return t.dim+"_"+t.index}function wgt(){MAt("liPosMinGap",_gt)}function _gt(t,e,r){var n=st(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,f=LEe(c);function d(x){BQ(t,e.sers,function(T){var B=T.getRawData(),R=B.getDimensionIndex(B.mapDimension(s.dim));R>=0&&x(R,T,B.getStore())})}var A=0;if(d(function(x,T,B){n.set(T.uid,1),(!i||!i.hasKey(T.uid))&&(o=!0),A+=B.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}PJ(f_,A);var p=0;d(function(x,T,B){for(var R=0,I=B.count();R<I;++R){var N=B.get(x,R);isFinite(N)&&(!c||REe(f,N))&&(u&&(N=l.transformIn(N,null)),f_.arr[p++]=N)}});var g=f_.typed?f_.arr.subarray(0,p):(f_.arr.length=p,f_.arr);f_.typed?g.sort():qo(g);for(var m=1/0,y=1;y<p;++y){var b=g[y]-g[y-1];b>0&&b<m&&(m=b)}r.liPosMinGap=e.liPosMinGap=nd(m)?m:p>0?WBe:xAt,r.serUids=n}var f_=PJ({ctor:Rvt},50);function IQ(t){return function(e,r){var n=Fs(e,{fromStat:{key:t}});if(nd(n.w2))return[-n.w2/2,n.w2/2]}}function wb(t){return t+Z3}function Rx(t,e){return t+Z3+e}function UJ(t){return wgt(),{liPosMinGap:!xl(t.scale)}}var YA="bar",BR="pictorialBar";function iDe(t,e,r,n){CJ(t,{key:e,seriesType:r,coordSysType:n,getMetrics:UJ})}function aDe(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var oDe={left:0,right:0,top:0,bottom:0},aH=["25%","25%"],hh="cartesian2d",bgt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=Dx(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&lp(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&lp(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:oDe,outerBoundsContain:"all",outerBoundsClampWidth:aH[0],outerBoundsClampHeight:aH[1],backgroundColor:xe.color.transparent,borderWidth:1,borderColor:xe.color.neutral30},e})(gr),xgt=uE(),oY="__ec_stack_";function sDe(t){return t.get("stack")||oY+t.seriesIndex}function Sgt(t){if(xl(t.axis.scale)){for(var e=Fs(t.axis),r=[],n=0;n<t.count;n++)r.push(Ct({stackId:oY+n},t));for(var i=lDe({bandWidthResult:e,seriesInfo:r}),a=[],n=0;n<t.count;n++){var o=i[oY+n];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function Cgt(t,e){var r=Tgt(t,e);return r.columnMap=lDe(r),r}function Tgt(t,e){var r=Rx(e,hh),n=[],i=Fs(t,{fromStat:{key:r},min:1});return Yb(t,r,function(a){n.push({barWidth:it(a.get("barWidth"),i.w),barMaxWidth:it(a.get("barMaxWidth"),i.w),barMinWidth:it(a.get("barMinWidth")||(fDe(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:sDe(a)})}),{bandWidthResult:i,seriesInfo:n}}function lDe(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};ee(t.seriesInfo,function(g,m){m||(a=g.defaultBarGap||0);var y=g.stackId;ut(s,y)||n++;var b=s[y];b||(b=s[y]={width:0,maxWidth:0},o.push(y));var x=g.barWidth;x&&!b.width&&(b.width=x,x=bn(r,x),r-=x);var T=g.barMaxWidth;T&&(b.maxWidth=T);var B=g.barMinWidth;B&&(b.minWidth=B);var R=g.barGap;R!=null&&(a=R);var I=g.barCategoryGap;I!=null&&(i=I)}),i==null&&(i=cr(35-o.length*4,15)+"%");var l=it(i,e),u=it(a,1),c=(r-l)/(n+(n-1)*u);c=cr(c,0),ee(o,function(g){var m=s[g],y=m.maxWidth,b=m.minWidth;
123if(m.width){var x=m.width;y&&(x=bn(x,y)),b&&(x=cr(x,b)),m.width=x,r-=x+u*x,n--}else{var x=c;y&&y<x&&(x=bn(y,r)),b&&b>x&&(x=b),x!==c&&(m.width=x,r-=x+u*x,n--)}}),c=(r-l)/(n+(n-1)*u),c=cr(c,0);var f=0,d;ee(o,function(g){var m=s[g];m.width||(m.width=c),d=m,f+=m.width*(1+u)}),d&&(f-=d.width*u);var A={},p=-f/2;return ee(o,function(g){var m=s[g];A[g]=A[g]||{bandWidth:e,offset:p,width:m.width},p+=m.width*(1+u)}),A}function uDe(t){return{seriesType:t,overallReset:function(e){var r=Rx(t,hh);SJ(e,r,function(n){var i=Cgt(n,t);Yb(n,r,function(a){var o=i.columnMap[sDe(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function cDe(t){return{seriesType:t,plan:Mx(),reset:function(e){if(pgt(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=gg(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),A=a.toGlobalCoord(a.dataToCoord(aDe(a))),p=fDe(e),g=e.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),b=r.getLayout("offset");return{progress:function(x,T){for(var B=x.count,R=p&&FA(B*3),I=p&&l&&FA(B*3),N=p&&FA(B),F=n.master.getRect(),Q=d?F.width:F.height,j,W=T.getStore(),V=0;(j=x.next())!=null;){var Y=W.get(f?m:o,j),G=W.get(s,j),K=A,X=void 0;f&&(X=+Y-W.get(o,j));var q=void 0,ne=void 0,te=void 0,ce=void 0;if(d){var he=n.dataToPoint([Y,G]);f&&(K=n.dataToPoint([X,G])[0]),q=K,ne=he[1]+b,te=he[0]-K,ce=y,Vi(te)<g&&(te=(te<0?-1:1)*g)}else{var he=n.dataToPoint([G,Y]);f&&(K=n.dataToPoint([G,X])[1]),q=he[0]+b,ne=K,te=y,ce=he[1]-K,Vi(ce)<g&&(ce=(ce<=0?-1:1)*g)}p?(R[V]=q,R[V+1]=ne,R[V+2]=d?te:ce,I&&(I[V]=d?F.x:q,I[V+1]=d?ne:F.y,I[V+2]=Q),N[j]=j):T.setItemLayout(j,{x:q,y:ne,width:te,height:ce}),V+=3}p&&T.setLayout({largePoints:R,largeDataIndices:N,largeBackgroundPoints:I,valueAxisHorizontal:d})}}}}}}function fDe(t){return t.pipelineContext&&t.pipelineContext.large}function Egt(t){return IQ(Rx(t,hh))}function dDe(t){xgt(t,function(){function e(r){var n=Rx(r,hh);iDe(t,n,r,hh),DQ(n,Egt(r))}e("bar"),e("pictorialBar")})}var DR=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return yp(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)ee(a.getAxes(),function(d,A){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),m=o[A],y=n[A]==="x1"||n[A]==="y1";if(y&&!g&&(m+=1),p.length<2)return;if(p.length===2){s[A]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var b=void 0,x=void 0,T=1,B=0;B<p.length;B++){var R=p[B].coord,I=B===p.length-1?p[B-1].tickValue+T:p[B].tickValue;if(I===m){x=R;break}else if(I<m)b=R;else if(b!=null&&I>m){x=(R+b)/2;break}B===1&&(T=I-p[0].tickValue)}x==null&&(b?b&&(x=p[p.length-1].coord):x=p[0].coord),s[A]=d.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},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",defaultBarGap:"10%"},e})(On);On.registerClass(DR);var Bgt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return yp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=GCe(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+YA,e.dependencies=["grid","polar"],e.defaultOption=_0(DR.defaultOption,{clip:!0,roundCap:!1,showBackgroun
123d:!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:xe.color.primary,borderWidth:2}},realtimeSort:!1}),e})(DR),Dgt=(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})(),oH=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new Dgt},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,A=Math.PI*2,p=d?f-c<A:c-f<A;p||(c=f-(d?A:-A));var g=Math.cos(c),m=Math.sin(c),y=Math.cos(f),b=Math.sin(f);p?(r.moveTo(g*o+i,m*o+a),r.arc(g*u+i,m*u+a,l,-Math.PI+c,c,!d)):r.moveTo(g*s+i,m*s+a),r.arc(i,a,s,c,f,!d),r.arc(y*u+i,b*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},e})(_r);function Mgt(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return x3(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,A=u.r0,p=(d+A)/2,g=u.startAngle,m=u.endAngle,y=(g+m)/2,b=r?Math.abs(d-A)/2:0,x=Math.cos,T=Math.sin,B=c+d*x(g),R=f+d*T(g),I="left",N="top";switch(s){case"startArc":B=c+(A-l)*x(y),R=f+(A-l)*T(y),I="center",N="top";break;case"insideStartArc":B=c+(A+l)*x(y),R=f+(A+l)*T(y),I="center",N="bottom";break;case"startAngle":B=c+p*x(g)+eF(g,l+b,!1),R=f+p*T(g)+tF(g,l+b,!1),I="right",N="middle";break;case"insideStartAngle":B=c+p*x(g)+eF(g,-l+b,!1),R=f+p*T(g)+tF(g,-l+b,!1),I="left",N="middle";break;case"middle":B=c+p*x(y),R=f+p*T(y),I="center",N="middle";break;case"endArc":B=c+(d+l)*x(y),R=f+(d+l)*T(y),I="center",N="bottom";break;case"insideEndArc":B=c+(d-l)*x(y),R=f+(d-l)*T(y),I="center",N="top";break;case"endAngle":B=c+p*x(m)+eF(m,l+b,!0),R=f+p*T(m)+tF(m,l+b,!0),I="left",N="middle";break;case"insideEndAngle":B=c+p*x(m)+eF(m,-l+b,!0),R=f+p*T(m)+tF(m,-l+b,!0),I="right",N="middle";break;default:return x3(n,i,a)}return n=n||{},n.x=B,n.y=R,n.align=I,n.verticalAlign=N,n}}function Lgt(t,e,r,n){if(Hr(n)){t.setTextConfig({rotation:n});return}else if(je(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;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 eF(t,e,r){return e*Math.sin(t)*(r?-1:1)}function tF(t,e,r){return e*Math.cos(t)*(r?1:-1)}function UA(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;je(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ze(n,function(a){return np(a,i)})}}var U8=Math.max,H8=Math.min,Rgt=(function(t){Ee(e,t);function e(){var r=t.call(this)||this;return r.type=YA,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){w0(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,A=Igt(r,u);A&&this._enableRealtimeSort(A,s,i);var p=r.get("clip",!0)||A,g=u.getArea();o.removeClipPath();
123var m=r.get("roundCap",!0),y=r.get("showBackground",!0),b=r.getModel("backgroundStyle"),x=b.get("borderRadius")||0,T=[],B=this._backgroundEls,R=a&&a.isInitSort,I=a&&a.type==="changeAxisOrder";function N(j){var W=rF[u.type](s,j);if(!W)return null;var V=Hgt(u,f,W);return V.useStyle(b.getItemStyle()),u.type==="cartesian2d"?V.setShape("r",x):V.setShape("cornerRadius",x),T[j]=V,V}s.diff(l).add(function(j){var W=s.getItemModel(j),V=rF[u.type](s,j,W);if(V&&(y&&N(j),!(!s.hasValue(j)||!Ofe[u.type](V)))){var Y=!1;p&&(Y=Mfe[u.type](g,V));var G=Lfe[u.type](r,s,j,V,f,d,c.model,!1,m);A&&(G.forceLabelAnimation=!0),Pfe(G,s,j,W,V,r,f,u.type==="polar"),R?G.attr({shape:V}):A?Rfe(A,d,G,V,j,f,!1,!1):ui(G,{shape:V},r,j),s.setItemGraphicEl(j,G),o.add(G),G.ignore=Y}}).update(function(j,W){var V=s.getItemModel(j),Y=rF[u.type](s,j,V);if(Y){if(y){var G=void 0;B.length===0?G=N(W):(G=B[W],G.useStyle(b.getItemStyle()),u.type==="cartesian2d"?G.setShape("r",x):G.setShape("cornerRadius",x),T[j]=G);var K=rF[u.type](s,j),X=ADe(f,K,u);Wr(G,{shape:X},d,j)}var q=l.getItemGraphicEl(W);if(!s.hasValue(j)||!Ofe[u.type](Y)){o.remove(q);return}var ne=!1;p&&(ne=Mfe[u.type](g,Y),ne&&o.remove(q));var te=q&&(q.type==="sector"&&m||q.type==="sausage"&&!m);if(te&&(q&&Zv(q,r,W),q=null),q?ad(q):q=Lfe[u.type](r,s,j,Y,f,d,c.model,!0,m),A&&(q.forceLabelAnimation=!0),I){var ce=q.getTextContent();if(ce){var he=gE(ce);he.prevValue!=null&&(he.prevValue=he.value)}}else Pfe(q,s,j,V,Y,r,f,u.type==="polar");R?q.attr({shape:Y}):A?Rfe(A,d,q,Y,j,f,!0,I):Wr(q,{shape:Y},r,j,null),s.setItemGraphicEl(j,q),q.ignore=ne,o.add(q)}}).remove(function(j){var W=l.getItemGraphicEl(j);W&&Zv(W,r,j)}).execute();var F=this._backgroundGroup||(this._backgroundGroup=new xt);F.removeAll();for(var Q=0;Q<T.length;++Q)F.add(T[Q]);o.add(F),this._backgroundEls=T,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),Nfe(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Nfe(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Xb(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ze(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackgroun
123d(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Zv(a,r,It(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=YA,e})(xn),Mfe={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=U8(e.x,t.x),s=H8(e.x+e.width,i),l=U8(e.y,t.y),u=H8(e.y+e.height,a),c=s<o,f=u<l;return e.x=c&&o>i?s:o,e.y=f&&l>a?u:l,e.width=c?0:s-o,e.height=f?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=H8(e.r,t.r),a=U8(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Lfe={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new fr({shape:Fe({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?oH:ks,c=new u({shape:n,z2:1});c.name="item";var f=hDe(i);if(c.calculateTextPosition=Mgt(f,{isRoundCap:u===oH}),a){var d=c.shape,A=i?"r":"endAngle",p={};d[A]=i?n.r0:n.startAngle,p[A]=n[A],(s?Wr:ui)(c,{shape:p},a)}return c}};function Igt(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Rfe(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Wr:ui)(r,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(o?Wr:ui)(r,{shape:u},c,i)}function Ife(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var Ogt=["x","y","width","height"],Pgt=["cx","cy","r","startAngle","endAngle"],Ofe={cartesian2d:function(t){return!Ife(t,Ogt)},polar:function(t){return!Ife(t,Pgt)}},rF={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?Ngt(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function kgt(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function hDe(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function Pfe(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=t.shape,f=UA(n.getModel("itemStyle"),c,!0);Fe(c,f),t.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=n.getShallow("cursor");d&&t.attr("cursor",d);var A=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?Qgt(i,a.coordinateSystem):jgt(i,a.coordinateSystem),p=so(n);Do(t,p,{labelFetcher:a,labelDataIndex:r,defaultText:MT(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:A});var g=t.getTextContent();if(s&&g){var m=n.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,Lgt(t,m==="outside"?A:m,hDe(o),n.get(["label","rotate"]))}HTe(g,p,a.getRawValue(r),function(b){return k2e(e,b)});var y=n.getModel(["emphasis"]);Ti(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),oo(t,n),kgt(i)&&(t.style.fill="none",t.style.stroke="none",ee(t.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function Ngt(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var Fgt=(function(){function t(){}return t})(),kfe=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Fgt},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},e})(_r);function Nfe(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroun
123dPoints"),c=n?WA(t):0;if(u){var f=new kfe({shape:{points:u},incremental:c,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),r&&r.push(f)}var d=new kfe({shape:{points:i.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,e.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,It(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",Ffe),d.on("mousemove",Ffe)),r&&r.push(d)}var Ffe=bQ(function(t){var e=this,r=Ugt(e,t.offsetX,t.offsetY);It(e).dataIndex=r>=0?r:null},30,!1);function Ugt(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function ADe(t,e,r){if(qb(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function Hgt(t,e,r){var n=t.type==="polar"?ks:fr;return new n({shape:ADe(e,r,t),silent:!0,z2:0})}function Qgt(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function jgt(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function zgt(t){t.registerChartView(Rgt),t.registerSeriesModel(Bgt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,uDe(YA)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cDe(YA)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W2e(YA)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),dDe(t)}function YI(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function BE(t,e,r){e=je(e)&&{coordDimensions:e}||Fe({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=xE(n,e).dimensions,a=new bl(i,t);return a.initData(n,r),a}var DE=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),Hy="pie",Vgt=qt(),pDe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DE(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return BE(this,{coordDimensions:["value"],encodeDefaulter:lr($q,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=Vgt(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=ICe(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Ub(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series."+Hy,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,
123stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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);Hct({fullType:pDe.type,getCoord2:function(t){return t.getShallow("center")}});var Ggt=Math.PI/180;function Ufe(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function c(g){for(var m=g.rB,y=m*m,b=0;b<g.list.length;b++){var x=g.list[b],T=Math.abs(x.label.y-r),B=n+x.len,R=B*B,I=Math.sqrt(Math.abs((1-T*T/y)*R)),N=e+(I+x.len2)*i,F=N-x.label.x,Q=x.targetTextWidth-F*i;vDe(x,Q,!0),x.label.x=N}}function f(g){for(var m={list:[],maxY:0},y={list:[],maxY:0},b=0;b<g.length;b++)if(g[b].labelAlignTo==="none"){var x=g[b],T=x.label.y>r?y:m,B=Math.abs(x.label.y-r);if(B>=T.maxY){var R=x.label.x-e-x.len2*i,I=n+x.len,N=Math.abs(R)<I?Math.sqrt(B*B/(1-R*R/I/I)):I;T.rB=N,T.maxY=B}T.list.push(x)}c(m),c(y)}for(var d=t.length,A=0;A<d;A++)if(t[A].position==="outer"&&t[A].labelAlignTo==="labelLine"){var p=t[A].label.x-u;t[A].linePoints[1][0]+=p,t[A].label.x=u}qW(t,1,l,l+o)&&f(t)}function Kgt(t,e,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<t.length;d++){var A=t[d].label;Q8(t[d])||(A.x<e?(c=Math.min(c,A.x),l.push(t[d])):(f=Math.max(f,A.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var p=t[d];if(!Q8(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var A=p.label,g=p.linePoints,m=void 0;p.labelAlignTo==="edge"?A.x<e?m=g[2][0]-p.labelDistance-o-p.edgeDistance:m=o+i-p.edgeDistance-g[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?A.x<e?m=c-o-p.bleedMargin:m=o+i-f-p.bleedMargin:A.x<e?m=A.x-o-p.bleedMargin:m=o+i-A.x-p.bleedMargin,p.targetTextWidth=m,vDe(p,m,!1)}}Ufe(u,e,r,n,1,i,a,o,s,f),Ufe(l,e,r,n,-1,i,a,o,s,c);for(var d=0;d<t.length;d++){var p=t[d];if(!Q8(p)&&p.linePoints){var A=p.label,g=p.linePoints,y=p.labelAlignTo==="edge",b=A.style.padding,x=b?b[1]+b[3]:0,T=A.style.backgroundColor?0:x,B=p.rect.width+T,R=g[1][0]-g[2][0];y?A.x<e?g[2][0]=o+p.edgeDistance+B+p.labelDistance:g[2][0]=o+i-p.edgeDistance-B-p.labelDistance:(A.x<e?g[2][0]=A.x+p.labelDistance:g[2][0]=A.x-p.labelDistance,g[1][0]=g[2][0]+R),g[1][1]=g[2][1]=A.y}}}function vDe(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(e<c||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var f=n.getBoundingRect();n.setStyle("width",Math.ceil(f.width)),n.setStyle("backgroundColor",o)}else{var d=e-l,A=e<c?d:r?d>t.unconstrainedWidth?null:d:null;n.setStyle("width",A)}gDe(a,n)}}}function gDe(t,e){Hfe.rect=t,v2e(Hfe,e,Wgt)}var Wgt={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Hfe={};function Q8(t){return t.position==="center"}function Ygt(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*Ggt,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function A(R){R.ignore=!0}function p(R){if(!R.ignore)return!0;for(var I in R.states)if(R.states[I].ignore===!1)return!0;return!1}e.each(function(R){var I=e.getItemGraphicEl(R),N=I.shape,F=I.getTextContent(),Q=I.getTextGuideLine(),j=e.getItemModel(R),W=j.getModel("label"),V=W.get("position")||j.get(["emphasis","label","position"]),Y=W.get("distanceToLabelLine"),G=W.get("alignTo"),K=it(W.get("edgeDistance"),u),X=W.get("bleedMargin");X==null&&(X=Math.min(u,d)>200?10:2);var q=j.getModel("labelLine"),ne=q.get("length");ne=it(ne,u);var te=q.get("length2");if(te=it(te,u),Math.abs(N.endAngle-N.startAngle)<o){ee(F.states,A),F.ignore=!0,Q&&(ee(Q.states,A),Q.ignore=!0);return}if(p(F)){var ce=(N.startAngle+N.endAngle)/2,he=Math.cos(ce),ve=Math.sin(ce),ae,fe,we,Me;n=N.cx,i=N.cy;var ge=V==="inside"||V==="inner";if(V==="center")ae=N.cx,fe=N.cy,Me="center";else{var be=(ge?(N.r+N.r0)/2*he:N.r*he)+n,Ve=(ge?(N.r+N.r0)/2*ve:N.r*ve)+i;if(ae=be+he*3,fe=Ve+ve*3,!ge){var Re=be+he*(ne+l-N.r),Se=Ve+ve*(ne+l-N.r),nt=Re+(he<0?-1:1)*te,qe=Se;
123G==="edge"?ae=he<0?c+K:c+u-K:ae=nt+(he<0?-Y:Y),fe=qe,we=[[be,Ve],[Re,Se],[nt,qe]]}Me=ge?"center":G==="edge"?he>0?"right":"left":he>0?"left":"right"}var tt=Math.PI,lt=0,ct=W.get("rotate");if(Hr(ct))lt=ct*(tt/180);else if(V==="center")lt=0;else if(ct==="radial"||ct===!0){var Ze=he<0?-ce+tt:-ce;lt=Ze}else if(ct==="tangential"||ct==="tangential-noflip"&&V!=="outside"&&V!=="outer"){var Jt=Math.atan2(he,ve);Jt<0&&(Jt=tt*2+Jt);var Sn=ve>0;Sn&&ct!=="tangential-noflip"&&(Jt=tt+Jt),lt=Jt-tt}if(a=!!lt,F.x=ae,F.y=fe,F.rotation=lt,F.setStyle({verticalAlign:"middle"}),ge){F.setStyle({align:Me});var Oe=F.states.select;Oe&&(Oe.x+=F.x,Oe.y+=F.y)}else{var jr=new St(0,0,0,0);gDe(jr,F),r.push({label:F,labelLine:Q,position:V,len:ne,len2:te,minTurnAngle:q.get("minTurnAngle"),maxSurfaceAngle:q.get("maxSurfaceAngle"),surfaceNormal:new Lt(he,ve),linePoints:we,textAlign:Me,labelDistance:Y,labelAlignTo:G,edgeDistance:K,bleedMargin:X,rect:jr,unconstrainedWidth:jr.width,labelStyleWidth:F.style.width})}I.setTextConfig({inside:ge})}}),!a&&t.get("avoidLabelOverlap")&&Kgt(r,n,i,l,u,d,c,f);for(var g=0;g<r.length;g++){var m=r[g],y=m.label,b=m.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),x&&(ee(y.states,A),y.ignore=!0);var T=y.states.select;T&&(T.x+=y.x,T.y+=y.y)}if(b){var B=m.linePoints;x||!B?(ee(b.states,A),b.ignore=!0):(h2e(B,m.minTurnAngle),Mpt(B,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:B}),y.__hostTarget.textGuideLineConfig={anchor:new Lt(B[0][0],B[0][1])})}}}var Qfe=Math.PI*2,nF=Math.PI/180,$gt=lo(Hy,Zgt);function Zgt(t,e){t.eachSeriesByType(Hy,function(r){var n=r.getData(),i=n.mapDimension("value"),a=uEe(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,c=a.viewRect,f=-r.get("startAngle")*nF,d=r.get("endAngle"),A=r.get("padAngle")*nF;d=d==="auto"?f-Qfe:-d*nF;var p=r.get("minAngle")*nF,g=p+A,m=0;n.each(i,function(K){!isNaN(K)&&m++});var y=n.getSum(i),b=Math.PI/(y||m)*2,x=r.get("clockwise"),T=r.get("roseType"),B=r.get("stillShowZeroSum"),R=n.getDataExtent(i);R[0]=0;var I=x?1:-1,N=[f,d],F=I*A/2;fQ(N,!x),f=N[0],d=N[1];var Q=mDe(r);Q.startAngle=f,Q.endAngle=d,Q.clockwise=x,Q.cx=o,Q.cy=s,Q.r=l,Q.r0=u;var j=Math.abs(d-f),W=j,V=0,Y=f;if(n.setLayout({viewRect:c,r:l}),n.each(i,function(K,X){var q;if(isNaN(K)){n.setItemLayout(X,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:o,cy:s,r0:u,r:T?NaN:l});return}T!=="area"?q=y===0&&B?b:K*b:q=j/m,q<g?(q=g,W-=g):V+=K;var ne=Y+I*q,te=0,ce=0;A>q?(te=Y+I*q/2,ce=te):(te=Y+F,ce=ne-F),n.setItemLayout(X,{angle:q,startAngle:te,endAngle:ce,clockwise:x,cx:o,cy:s,r0:u,r:T?Jr(K,R,[u,l]):l}),Y=ne}),W<Qfe&&m)if(W<=.001){var G=j/m;n.each(i,function(K,X){if(!isNaN(K)){var q=n.getItemLayout(X);q.angle=G;var ne=0,te=0;G<A?(ne=f+I*(X+1/2)*G,te=ne):(ne=f+I*X*G+F,te=f+I*(X+1)*G-F),q.startAngle=ne,q.endAngle=te}})}else b=W/V,Y=f,n.each(i,function(K,X){if(!isNaN(K)){var q=n.getItemLayout(X),ne=q.angle===g?g:K*b,te=0,ce=0;ne<A?(te=Y+I*ne/2,ce=te):(te=Y+F,ce=Y+I*ne-F),q.startAngle=te,q.endAngle=ce,Y+=I*ne}})})}var mDe=qt(),Xgt=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Nr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=Fe(UA(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(ui(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,ui(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),ui(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Wr(o,{shape:{endAngle:c.endAngle}},s,n))}else ad(o),Wr(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),oo(o,l);var A=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),g=Math.cos(A)*p,m=Math.sin(A)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=Fe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},UA(u.getModel("itemStyle"),c)),Fe(o.ensureState("select"),{x:g,y:m,shape:UA(l.getModel(["select","itemStyle"]),c)}),Fe(o.ensureState("blur"),{shape:UA(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),x=o.getTextContent();b&&Fe(b.ensureState("select"),{x:g,y:m}),Fe(x.ensureState("select"),{x:g,y:m}),Ti(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Do(a,so(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=o.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var A=this.getTextGuideLine();A||(A=new es,this.setTextGuideLine(A)),EJ(this,BJ(o),{stroke:u,opacity:Ju(s.get(["lineStyle","opacity"]),c,1)})}},e})(ks),qgt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Hy,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=mDe(r),A=new ks({shape:vt(d)});A.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=A,l.add(A)}
123o.diff(s).add(function(p){var g=new Xgt(o,p,u);o.setItemGraphicEl(p,g),l.add(g)}).update(function(p,g){var m=s.getItemGraphicEl(g);m.updateData(o,p,u),m.off("click"),l.add(m),o.setItemGraphicEl(p,m)}).remove(function(p){var g=s.getItemGraphicEl(p);Zv(g,r,p)}).execute(),Ygt(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Hy,e})(xn);function Jgt(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Hr(o)&&!isNaN(o)&&o<0)})}}}function emt(t){t.registerChartView(qgt),t.registerSeriesModel(pDe),eBe(Hy,t.registerAction),t.registerLayout($gt),t.registerProcessor(YI(Hy)),t.registerProcessor(Jgt(Hy))}var tmt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return yp(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],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:xe.color.primary}},universalTransition:{divideShape:"clone"}},e})(On),yDe=4,rmt=(function(){function t(){}return t})(),nmt=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new rmt},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<yDe,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],A=i[f++];isNaN(d)||isNaN(A)||c&&!c.contain(d,A)||(s.x=d-a[0]/2,s.y=A-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.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(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<i.length;){var A=i[d++],p=i[d++];l=Math.min(A,l),c=Math.max(A,c),u=Math.min(p,u),f=Math.max(p,f)}r=this._rect=new St(l-o/2,u-s/2,c-l+o,f-u+s)}return r},e})(_r),imt=(function(){function t(){this.group=new xt}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=n,c.setShape({points:o}),this._setCommon(c,r,i)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new nmt({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Ba(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<yDe;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=It(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>
123=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),amt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,j8(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),WA(n),j8(n)),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=KI("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(j8(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new imt:new GI,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(xn);function j8(t){return{clipShape:z2e(t)}}var sY=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ta).models[0]},e.type="cartesian2dAxis",e})(gr);Da(sY,TE);var wDe={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:"auto",onZeroAxisIndex:null,lineStyle:{color:xe.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:xe.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:xe.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[xe.color.backgroundTint,xe.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:xe.color.neutral00,borderColor:xe.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},omt=Xt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},wDe),HJ=Xt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:xe.color.axisMinorSplitLine,width:1}}},wDe),smt=Xt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},HJ),lmt=Ct({logBase:10},HJ);const _De={category:omt,value:HJ,time:smt,log:lmt};function LT(t,e,r,n){ee(zBe,function(i,a){var o=Xt(Xt({},_De[a],!0),n,!0),s=(function(l){Ee(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=AR(this),A=d?Dx(c):{},p=f.getTheme();Xt(c,p.get(a+"Axis")),Xt(c,this.getDefaultOption()),c.type=jfe(c),d&&lp(c,A,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=mR.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.prototype.updateAxisBreaks=function(c){var f=WI();return f?f.updateModelAxisBreak(this,c):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",jfe)}function jfe(t){return t.type||(t.data?"category":"value")}var umt=(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 ze(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ln(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),$U=["x","y"];function zfe(t){return(t.type==="interval"||t.type==="time")&&!O3(t)}
123var cmt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=hh,r.dimensions=$U,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!zfe(r)||!zfe(n))){var i=W3(r,null),a=W3(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,A=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,A];this._invTransform=jc([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new St(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Wi(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return Wi(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new St(a,o,s,l)},e})(umt);function bDe(t,e){var r=t.scale,n=t.model,i=t2e(r,n,n.ecModel,t,null),a=TT(r),o=TT(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),c=o.getTicks({expandToNicedExtent:!0}),f=u.length-1,d,A,p;if(f===1)d=A=0,p=1;else if(f===2){var g=Vi(u[0].value-u[1].value),m=Vi(u[1].value-u[2].value);d=A=0,g===m?p=2:(p=1,g<m?d=g/m:A=m/g)}else{var y=o.getConfig().interval;d=(1-(u[0].value-c[0].value)/y)%1,A=(1-(c[f].value-u[f].value)/y)%1,p=f-(d?1:0)-(A?1:0)}var b=i.zoomFixMM,x=b[0]||b[1],T=[i.fixMM[0]||x,i.fixMM[1]||x],B=r.getExtent(),R=s.getExtent(),I=FBe(R,T),N,F,Q,j,W,V;function Y(he){for(var ve=50,ae=0;ae<ve&&!he();ae++)Q=a?Q*cr(l,2):rAt(Q),j=Wb(Q)}function G(){N=Kr(V-Q*d,j)}function K(){F=Kr(W+Q*A,j)}function X(){V=d?Kr(N+Q*d,j):N}function q(){W=A?Kr(F-Q*A,j):F}if(T[0]&&T[1]){N=I[0],F=I[1],Q=(F-N)/(p+d+A);var ne=t.getExtent(),te=Vi(ne[1]-ne[0]);j=sq([F,N],te,.5/p),X(),q(),nd(j)&&(Q=Kr(Q,j))}else{var ce=I[1]-I[0];Q=a?cr(uq(ce),1):aQ(ce/p,OCe),j=Wb(Q),T[0]?(N=I[0],Y(function(){if(X(),W=Kr(V+Q*p,j),K(),F>=I[1])return!0})):T[1]?(F=I[1],Y(function(){if(q(),V=Kr(W-Q*p,j),G(),N<=I[0])return!0})):Y(function(){V=Kr(xx(I[0]/Q)*Q,j),W=Kr(rd(I[1]/Q)*Q,j);var he=ip((W-V)/Q);if(he<=p){var ve=p-he,ae=void 0,fe=i.incl0||a;if(fe&&I[0]===0)ae=[0,ve];else if(fe&&I[1]===0)ae=[ve,0];else{var we=rd(ve/2);ae=ve%2===0?[we,we]:N+F<I[0]+I[1]?[we,we+1]:[we+1,we]}if(V=Kr(V-Q*ae[0],j),W=Kr(W+Q*ae[1],j),G(),K(),N<=I[0]&&F>=I[1])return!0}})}KBe(r,T,R,[N,F],B,{interval:Q,intervalCount:p,intervalPrecision:j,niceExtent:[V,W]})}var Vfe=[[3,1],[0,2]],fmt=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$U,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;ee(this._axesList,function(o){Zb(o,BT);var s=o.scale;xl(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=Cr(o),l=[],u=s.length-1;u>=0;u--){var c=o[+s[u]];c.__alignTo?l.push(c):DT(c)}ee(l,function(f){hmt(f,f.__alignTo)?DT(f):bDe(f,f.__alignTo.scale)})}i(n.x),i(n.y);var a={};ee(n.x,function(o){Gfe(n,"y",o,a)}),ee(n.y,function(o){Gfe(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=uo(e,r),a=this._rect=gi(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(lY(o,a),!n){var u=vmt(a,s,o,l,r),c=void 0;if(l)uY?(uY(this._axesList,a),lY(o,a)):c=$fe(a.clone(),"axisLabel",null,a,o,u,i);else{var f=gmt(e,a,i),d=f.outerBoundsRect,A=f.parsedOuterBoundsContain,p=f.outerBoundsClamp;d&&(c=$fe(d,A,p,a,o,u,i))}xDe(a,o,mh.determine,null,c,i),ee(this._coordsList,function(g){g.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}Tt(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;
123i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",ta).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",ta).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,zt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,ee(s.x,function(c,f){ee(s.y,function(d,A){var p="x"+f+"y"+A,g=new cmt(p);g.master=i,g.model=e,i._coordsMap[p]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(d)})}),Wfe(s.x),Wfe(s.y);function u(c){return function(f,d){if(dmt(f,e)){var A=f.get("position");c==="x"?A!=="top"&&A!=="bottom"&&(A=o.bottom?"top":"bottom"):A!=="left"&&A!=="right"&&(A=o.left?"right":"left"),o[A]=!0;var p=QI(f),g=new Y2e(c,SE(f,p,!0),[0,0],p,A);g.onBand=zI(g.scale,f),g.inverse=f.get("inverse"),f.axis=g,g.model=f,g.grid=a,g.index=d,a._axesList.push(g),s[c][d]=g,l[c]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return ee(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);zt(r,a)<0&&r.push(a),zt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),ee(o._axesList,function(s){PAt(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;FI({targetModel:i,coordSysType:hh,coordSysProvider:s});function s(){var l=vgt(i),u=l.xAxisModel,c=l.yAxisModel;a=u.axis,o=c.axis;var f=u.getCoordSysModel(),d=f.coordinateSystem;return d.getCartesian(u.componentIndex,c.componentIndex)}a&&o&&($b(a,i,hh),$b(o,i,hh))},this),n},t.dimensions=$U,t.dimIdxMap=vJ($U),t})();function dmt(t,e){return t.getCoordSysModel()===e}function Gfe(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Kfe(s,i[l])&&(a=i[l]);else for(var u in i)if(ut(i,u)&&Kfe(s,i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function Kfe(t,e){if(!e)return!1;var r=e.scale,n=AAt(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==GW;return i&&t==="auto"&&mAt(e)&&(i=!1),i}function Wfe(t){for(var e=Cr(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];NBe(a.scale)&&GBe(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&ee(n,function(o){o.__alignTo=r})}function hmt(t,e){return O3(t.scale)||O3(e.scale)||e.scale.getTicks().length<2}function Amt(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function lY(t,e){ee(t.x,function(r){return Yfe(r,e.x,e.width)}),ee(t.y,function(r){return Yfe(r,e.y,e.height)})}function Yfe(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Amt(t,e)}var uY;function pmt(t){uY=t}function $fe(t,e,r,n,i,a,o){xDe(n,i,mh.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(n,0,NaN),c(n,1,NaN);var l=Cg(s,function(d){return d>0})==null;return Vb(n,s,!0,!0,r),lY(i,n),l;function u(d){ee(i[jt[d]],function(A){if(bR(A.model)){var p=a.ensureRecord(A.model),g=p.labelInfoList;if(g)for(var m=0;m<g.length;m++){var y=g[m],b=A.scale.normalize(CE(A.scale,Jb(y.label).labelInfo.tick));b=d===1?1-b:b,c(y.rect,d,b),c(y.rect,1-d,NaN)}var x=p.nameLayout;if(x){var b=ET(p.nameLocation)?.5:NaN;c(x.rect,d,b),c(x.rect,1-d,NaN)}}})}function c(d,A,p){var g=t[jt[A]]-d[jt[A]],m=d[ha[A]]+d[jt[A]]-(t[ha[A]]+t[jt[A]]);g=f(g,1-p),m=f(m,p);var y=Vfe[A][0],b=Vfe[A][1];s[y]=cr(s[y],g),s[b]=cr(s[b],m)}function f(d,A){return d>0&&!Ds(A)&&A>1e-4&&(d/=A),d}}function vmt(t,e,r,n,i){var a=new q2e(mmt);return ee(r,function(o){return ee(o,function(s){if(bR(s.model)){var l=!n;s.axisBuilder=ggt(t,e,s.model,i,a,l)}})}),a}function xDe(t,e,r,n,i,a){var o=r===mh.determine;ee(e,function(u){return ee(u,function(c){bR(c.model)&&(mgt(c.axisBuilder,t,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[jt[1-u]]=t[ha[u]]<=a.refContainer[ha[u]]*.5?0:1-u===1?2:1}ee(e,function(u,c){return ee(u,function(f){bR(f.model)&&((n==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}
123),o&&f.axisBuilder.build({axisLine:!0}))})})}function gmt(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=gi(t.get("outerBounds",!0)||oDe,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||zt(["all","axisLabel"],a)<0?o="all":o=a;var s=[T3(ft(t.get("outerBoundsClampWidth",!0),aH[0]),e.width),T3(ft(t.get("outerBoundsClampHeight",!0),aH[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var mmt=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";J2e(t,e,r,n,i,a),ET(t.nameLocation)||ee(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&tDe(s.labelInfoList,s.dirVec,n,i)})};function ymt(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return wmt(r,t,e),r.seriesInvolved&&bmt(r,t),r}function wmt(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];ee(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=MR(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(ee(s.getAxes(),lr(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",A=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||A)&&ee(p.baseAxes,lr(g,A?"cross":!0,d)),A&&ee(p.otherAxes,lr(g,"cross",!1))}function g(m,y,b){var x=b.model.getModel("axisPointer",i),T=x.get("show");if(!(!T||T==="auto"&&!m&&!cY(x))){y==null&&(y=x.get("triggerTooltip")),x=m?_mt(b,f,i,e,m,y):x;var B=x.get("snap"),R=x.get("triggerEmphasis"),I=MR(b.model),N=y||B||b.type==="category",F=t.axesInfo[I]={key:I,axis:b,coordSys:s,axisPointerModel:x,triggerTooltip:y,triggerEmphasis:R,involveSeries:N,snap:B,useHandle:cY(x),seriesModels:[],linkGroup:null};u[I]=F,t.seriesInvolved=t.seriesInvolved||N;var Q=xmt(a,b);if(Q!=null){var j=o[Q]||(o[Q]={axesInfo:{}});j.axesInfo[I]=F,j.mapper=a[Q].mapper,F.linkGroup=j}}}})}function _mt(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};ee(s,function(d){l[d]=vt(o.get(d))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&Ct(u,f.textStyle)}}return t.model.getModel("axisPointer",new wr(l,r,n))}function bmt(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||ee(t.coordSysAxesInfo[MR(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function xmt(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(z8(a[n+"AxisId"],r.id)||z8(a[n+"AxisIndex"],r.componentIndex)||z8(a[n+"AxisName"],r.name))return i}}function z8(t,e){return t==="all"||je(t)&&zt(t,e)>=0||t===e}function Smt(t){var e=QJ(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=cY(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function QJ(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[MR(t)]}function Cmt(t){var e=QJ(t);return e&&e.axisPointerModel}function cY(t){return!!t.get(["handle","show"])}function MR(t){return t.type+"||"+t.id}var Zfe={},Ix=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&Smt(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=Cmt(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){Zfe[r]=n},e.getAxisPointerClass=function(r){return r&&Zfe[r]},e.type="axis",e})(Yn),fY=qt();function SDe(t,e,r,n){var i=r.axis;
123if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=fY(t).splitAreaColors,d=st(),A=0;if(f)for(var p=0;p<u.length;p++){var g=f.get(u[p].tickValue);if(g!=null){A=(g+(c-1)*p)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=je(s)?s:[s];for(var p=1;p<u.length;p++){var b=i.toGlobalCoord(u[p].coord),x=void 0,T=void 0,B=void 0,R=void 0;i.isHorizontal()?(x=m,T=l.y,B=b-x,R=l.height,m=x+B):(x=l.x,T=m,B=l.width,R=b-T,m=T+R);var I=u[p-1].tickValue;I!=null&&d.set(I,A),e.add(new fr({anid:I!=null?"area_"+I:null,shape:{x,y:T,width:B,height:R},style:Ct({fill:s[A]},y),autoBatch:!0,silent:!0})),A=(A+1)%c}fY(t).splitAreaColors=d}}}function CDe(t){fY(t).splitAreaColors=null}var Tmt=["splitArea","splitLine","minorSplitLine","breakArea"],TDe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xt,this.group.add(this._axisGroup),!!bR(r)){this._axisGroup.add(r.axis.axisBuilder.group),ee(Tmt,function(l){r.get([l,"show"])&&Emt[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||kI(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){CDe(this)},e.type="cartesianAxis",e})(Ix),Emt={splitLine:function(t,e,r,n,i){var a=r.axis;
123if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=je(l)?l:[l];for(var f=n.coordinateSystem.getRect(),d=a.isHorizontal(),A=0,p=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],y=s.getLineStyle(),b=0;b<p.length;b++){var x=a.toGlobalCoord(p[b].coord);if(!(b===0&&!u||b===p.length-1&&!c)){var T=p[b].tickValue;d?(g[0]=x,g[1]=f.y,m[0]=x,m[1]=f.y+f.height):(g[0]=f.x,g[1]=x,m[0]=f.x+f.width,m[1]=x);var B=A++%l.length,R=new Ca({anid:T!=null?"line_"+T:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:Ct({stroke:l[B]},y),silent:!0});xT(R.shape,y.lineWidth),e.add(R)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var f=[],d=[],A=s.getLineStyle(),p=0;p<c.length;p++)for(var g=0;g<c[p].length;g++){var m=a.toGlobalCoord(c[p][g].coord);u?(f[0]=m,f[1]=l.y,d[0]=m,d[1]=l.y+l.height):(f[0]=l.x,f[1]=m,d[0]=l.x+l.width,d[1]=m);var y=new Ca({anid:"minor_line_"+c[p][g].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:A,silent:!0});xT(y.shape,A.lineWidth),e.add(y)}},splitArea:function(t,e,r,n,i){SDe(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=WI(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},EDe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(TDe),Bmt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=EDe.type,r}return e.type="yAxis",e})(TDe),Dmt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new fr({shape:r.coordinateSystem.getRect(),style:Ct({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Yn),Xfe={offset:0};function BDe(t){t.registerComponentView(Dmt),t.registerComponentModel(bgt),t.registerCoordinateSystem("cartesian2d",fmt),LT(t,"x",sY,Xfe),LT(t,"y",sY,Xfe),t.registerComponentView(EDe),t.registerComponentView(Bmt),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var OQ="single",Mmt="singleAxis",dY="singleAxis",ZU=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getCoordSysModel=function(){return this},e.type=dY,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}},jitter:0,jitterOverlap:!0,jitterMargin:2},e})(gr);Da(ZU,TE.prototype);function Lmt(t,e){var r=t.coordinateSystem,n=r&&r.type,i=r&&r.getBaseAxis&&r.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=n===hh&&a==="ordinal"||n===OQ,s=e.model.get("jitter")>0;return o&&s}var Rmt=qt();function qfe(t,e,r,n){if(t instanceof Y2e){var i=t.scale.type;if(i!=="ordinal")return r}var a=t.model,o=a.get("jitter");if(!(o>0))return r;var s=a.get("jitterOverlap"),l=a.get("jitterMargin")||0,u=xl(t.scale)?Fs(t).w:null;return s?DDe(r,o,u,n):Imt(t,e,r,n,o,l)}function DDe(t,e,r,n){if(r===null)return t+(Math.random()-.5)*e;var i=r-n*2,a=Math.min(Math.max(0,e),i);return t+(Math.random()-.5)*a}function Imt(t,e,r,n,i,a){var o=Rmt(t);o.items||(o.items=[]);var s=o.items,l=Jfe(s,e,r,n,i,a,1),u=Jfe(s,e,r,n,i,a,-1),c=Math.abs(l-r)<Math.abs(u-r)?l:u,f=xl(t.scale)?Fs(t).w:null,d=Math.abs(c-r);return d>i/2||f&&d>f/2-n?DDe(r,i,f,n):(s.push({fixedCoord:e,floatCoord:c,r:n}),c)}function Jfe(t,e,r,n,i,a,o){for(var s=r,l=0;l<t.length;l++){var u=t[l],c=e-u.fixedCoord,f=s-u.floatCoord,d=c*c+f*f,A=n+u.r+a;if(d<A*A){var p=u.floatCoord+Math.sqrt(A*A-c*c)*o;if(Math.abs(p-r)>i/2)return Number.MAX_VALUE;if(o===1&&p>s||o===-1&&p<s){s=p,l=-1;continue}}}return s}function Omt(){return{seriesType:"scatter",plan:Mx(),reset:function(t){var e=t.coordinateSystem;if(!(!e||e.type!==hh&&e.type!==OQ)){var r=e.getBaseAxis&&e.getBaseAxis(),n=r&&Lmt(t,r);
123if(n){var i=r.dim,a=r.orient,o=a==="horizontal"&&r.type!=="category"||a==="vertical"&&r.type==="category",s=i==="y"||i==="single"&&o,l=i==="x"||i==="single"&&!o;if(!(!s&&!l))return{progress:function(u,c){for(var f=c.getLayout("points"),d=!!f,A=u.start;A<u.end;A++){var p=d?(A-u.start)*2:-1,g=d?[f[p],f[p+1]]:c.getItemLayout(A);if(g){var m=c.getItemVisual(A,"symbolSize"),y=m instanceof Array?(m[1]+m[0])/2:m;if(s){var b=qfe(r,g[0],g[1],y/2);d?f[p+1]=b:g[1]=b}else if(l){var b=qfe(r,g[1],g[0],y/2);d?f[p]=b:g[0]=b}}}}}}}}}}function Pmt(t){ir(BDe),t.registerSeriesModel(tmt),t.registerChartView(amt),t.registerLayout(KI("scatter"))}function kmt(t){t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Omt())}function Nmt(t){var e=t.polar;if(e){je(e)||(e=[e]);var r=[];ee(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],je(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}ee(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var LR="radar",Fmt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DE(ot(this.getData,this),ot(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return BE(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=jEe(this,r);return Va("section",{header:u,sortBlocks:!0,blocks:ze(s,function(f){var d=a.get(a.mapDimension(f.dim),r);return Va("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(ze(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series."+LR,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),Umt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=LR,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(d,A){var p=d.getItemVisual(A,"symbol")||"circle";if(p!=="none"){var g=bE(d.getItemVisual(A,"symbolSize")),m=Ba(p,-1,-1,2,2),y=d.getItemVisual(A,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),m}}function c(d,A,p,g,m,y){p.removeAll();for(var b=0;b<A.length-1;b++){var x=u(g,m);x&&(x.__dimIdx=b,d[b]?(x.setPosition(d[b]),Ex[y?"initProps":"updateProps"](x,{x:A[b][0],y:A[b][1]},r,m)):x.setPosition(A[b]),p.add(x))}}function f(d){return ze(d,function(A){return[a.cx,a.cy]})}s.diff(l).add(function(d){var A=s.getItemLayout(d);if(A){var p=new Ns,g=new es,m={shape:{points:A}};p.shape.points=f(A),g.shape.points=f(A),ui(p,m,r,d),ui(g,m,r,d);var y=new xt,b=new xt;y.add(g),y.add(p),y.add(b),c(g.shape.points,A,b,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,A){var p=l.getItemGraphicEl(A),g=p.childAt(0),m=p.childAt(1),y=p.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(g.shape.points,b.shape.points,y,s,d,!1),ad(m),ad(g),Wr(g,b,r),Wr(m,b,r),s.setItemGraphicEl(d,p))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,A){var p=s.getItemModel(A),g=d.childAt(0),m=d.childAt(1),y=d.childAt(2),b=s.getItemVisual(A,"style"),x=b.fill;o.add(d),g.useStyle(Ct(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),oo(g,p,"lineStyle"),oo(m,p,"areaStyle");var T=p.getModel("areaStyle"),B=T.isEmpty()&&T.parentModel.isEmpty();m.ignore=B,ee(["emphasis","select","blur"],function(I){var N=p.getModel([I,"areaStyle"]),F=N.isEmpty()&&N.parentModel.isEmpty();m.ensureState(I).ignore=F&&B;var Q=p.getModel([I,"lineStyle"]).getLineStyle();g.ensureState(I).style=Q;var j=N.getAreaStyle();m.ensureState(I).style=j;var W=p.getModel([I,"itemStyle"]).getItemStyle();y.eachChild(function(V){V.ensureState(I).style=vt(W)})}),m.useStyle(Ct(p.getModel("areaStyle").getAreaStyle(),{fill:x,opacity:.7,decal:b.decal}));var R=p.getModel("emphasis");y.eachChild(function(I){if(I instanceof Mo){var N=I.style;I.useStyle(Fe({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},b))}else I.useStyle(b),I.setColor(x),I.style.strokeNoScale=!0;var F=s.getStore().get(s.getDimensionIndex(I.__dimIdx),A);(F==null||isNaN(F))&&(F=""),Do(I,so(p),{labelFetcher:s.hostModel,labelDataIndex:A,labelDimIndex:I.__dimIdx,defaultText:F,inheritColor:x,defaultOpacity:b.opacity})}),Ti(d,R.get("focus"),R.get("blurScope"),R.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=LR,e})(xn),FD=_De.value,CL="radar",MDe=CL,Hmt=CL,LDe=5;function iF(t,e){return Ct({show:e},t)}var Qmt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),A=this.get("triggerEvent"),p=ze(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 m=u;g.color!=null&&(m=Ct({color:g.color},u));var y=Xt(vt(g),{boundaryGap:r,splitNumber:n,clockwise:i,scale:a,axisLine
123:o,axisTick:s,axisLabel:l,name:g.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:m,triggerEvent:A},!1);if(et(f)){var b=y.name;y.name=f.replace("{value}",b??"")}else mt(f)&&(y.name=f(y.name,y));var x=new wr(y,null,this.ecModel);return Da(x,TE.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x.uid=Bx("ec_radar"),x},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=MDe,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:xe.color.axisLabel},boundaryGap:[0,0],splitNumber:LDe,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Xt({lineStyle:{color:xe.color.neutral20}},FD.axisLine),axisLabel:iF(FD.axisLabel,!1),axisTick:iF(FD.axisTick,!1),splitLine:iF(FD.splitLine,!0),splitArea:iF(FD.splitArea,!0),indicator:[]},e})(gr),jmt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r,i),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,n){var i=r.coordinateSystem,a=i.getIndicatorAxes(),o=ze(a,function(s){var l=s.model.get("showName")?s.name:"",u=new au(s.model,n,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});ee(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),A=u.get("color"),p=je(d)?d:[d],g=je(A)?A:[A],m=[],y=[];function b(G,K,X){var q=X%K.length;return G[q]=G[q]||[],q}if(a==="circle")for(var x=i[0].getTicksCoords(),T=n.cx,B=n.cy,R=0;R<x.length;R++){if(c){var I=b(m,p,R);m[I].push(new mp({shape:{cx:T,cy:B,r:x[R].coord}}))}if(f&&R<x.length-1){var I=b(y,g,R);y[I].push(new dE({shape:{cx:T,cy:B,r0:x[R].coord,r:x[R+1].coord}}))}}else for(var N,F=ze(i,function(G,K){var X=G.getTicksCoords();return N=N==null?X.length-1:Math.min(X.length-1,N),ze(X,function(q){return n.coordToPoint(q.coord,K)})}),Q=[],R=0;R<=N;R++){for(var j=[],W=0;W<i.length;W++)j.push(F[W][R]);if(j[0]&&j.push(j[0].slice()),c){var I=b(m,p,R);m[I].push(new es({shape:{points:j}}))}if(f&&Q){var I=b(y,g,R-1);y[I].push(new Ns({shape:{points:j.concat(Q)}}))}Q=j.slice().reverse()}var V=l.getLineStyle(),Y=u.getAreaStyle();ee(y,function(G,K){this.group.add(Mc(G,{style:Ct({stroke:"none",fill:g[K%g.length]},Y),silent:!0}))},this),ee(m,function(G,K){this.group.add(Mc(G,{style:Ct({fill:"none",stroke:p[K%p.length]},V),silent:!0}))},this)},e.type="radar",e})(Yn),zmt=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e})(fd),Vmt=(function(){function t(e,r,n){this.type=CL,this.dimensions=[],this._model=e,this._indicatorAxes=ze(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new zmt(o,new Uy);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=uo(e,r).refContainer,i=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=it(i[0],n.width)+n.x,this.cy=it(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(et(s)||Hr(s))&&(s=[0,s]),this.r0=it(s[0],o),this.r=it(s[1],o);
123var l=a?-1:1;ee(this._indicatorAxes,function(u,c){u.setExtent(this.r0,this.r);var f=this.startAngle+l*c*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),u.angle=f},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model,a=EQ(i.get("splitNumber"),LDe),o=new Uy;o.setExtent(0,a),o.setConfig({interval:1}),ee(n,function(s){Zb(s,BT),bDe(s,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent(MDe,function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(Hmt,function(i){if(i.get("coordinateSystem")===CL){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&ee(a.getIndicatorAxes(),function(o){$b(o,i,CL)})}}),n},t.dimensions=[],t})();function Gmt(t){t.registerCoordinateSystem("radar",Vmt),t.registerComponentModel(Qmt),t.registerComponentView(jmt),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var Kmt=lo(LR,Wmt);function Wmt(t){t.eachSeriesByType(LR,function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();ee(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=ede(c)?c:tde(i)})}),r.each(function(o){var s=Cg(n[o],function(l){return ede(l)})||tde(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function ede(t){return!isNaN(t[0])&&!isNaN(t[1])}function tde(t){return[t.cx,t.cy]}function Ymt(t){ir(Gmt),t.registerChartView(Umt),t.registerSeriesModel(Fmt),t.registerLayout(Kmt),t.registerProcessor(YI("radar")),t.registerPreprocessor(Nmt)}var jJ=qt();function $mt(t,e,r){jJ(t)[e]=r}function Zmt(t,e,r){var n=jJ(t),i=n[e];i===r&&(n[e]=null)}function rde(t,e){return!!jJ(t)[e]}Ch({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ki);var Xmt={axisPointer:1,tooltip:1,brush:1};function RDe(t,e,r){var n=e.getComponentByElement(t.topTarget);if(!n||n===r||Xmt.hasOwnProperty(n.mainType))return!1;var i=n.coordinateSystem;if(!i||i.model===r)return!1;var a=Gb(n),o=Gb(r);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var Ox=(function(t){Ee(e,t);function e(r){var n=t.call(this)||this;n._zr=r;var i=ot(n._mousedownHandler,n),a=ot(n._mousemoveHandler,n),o=ot(n._mouseupHandler,n),s=ot(n._mousewheelHandler,n),l=ot(n._pinchHandler,n);return n.enable=function(u,c){var f=c.zInfo,d=Gb(f.component),A=d.z,p=d.zlevel,g={component:f.component,z:A,zlevel:p,z2:ft(f.z2,-1/0)},m=Fe({},c.triggerInfo);this._opt=Ct(Fe({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:g,triggerInfo:m,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(HD(r,"mousedown",i,g),HD(r,"mousemove",a,g),HD(r,"mouseup",o,g)),(u===!0||u==="scale"||u==="zoom")&&(HD(r,"mousewheel",s,g),HD(r,"pinch",l,g)))},n.disable=function(){this._enabled&&(this._enabled=!1,QD(r,"mousedown",i),QD(r,"mousemove",a),QD(r,"mouseup",o),QD(r,"mousewheel",s),QD(r,"pinch",l))},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(r,n,i){var a=this._opt,o=a.zInfoParsed;
123if(RDe(r,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(r,n,i)),u&&s.isInClip&&!s.isInClip(r,n,i)&&(u=!1),u},e.prototype._decideCursorStyle=function(r,n,i,a){var o=r.target;if(!o&&this._checkPointer(r,n,i))return this._opt.cursorGrab;if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!(lle(r)||UD(r))){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this._checkPointer(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){var n=this._zr;if(!(r.gestureEvent==="pinch"||rde(n,"globalPan")||UD(r))){var i=r.offsetX,a=r.offsetY;if(!this._dragging||!XU("moveOnMouseMove",r,this._opt)){var o=this._decideCursorStyle(r,i,a,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=i-s,c=a-l;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&fg(r.event),r.__ecRoamConsumed=!0,nde(this,"pan","moveOnMouseMove",r,{dx:u,dy:c,oldX:s,oldY:l,newX:i,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){if(!UD(r)){var n=this._zr;if(!lle(r)){this._dragging=!1;var i=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);i&&n.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(r){if(!UD(r)){var n=XU("zoomOnMouseWheel",r,this._opt),i=XU("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(r){if(!(rde(this._zr,"globalPan")||UD(r))){var n=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(r,n,i,a,o){r._checkPointer(a,o.originX,o.originY)&&(fg(a.event),a.__ecRoamConsumed=!0,nde(r,n,i,a,o))},e})(ud);function UD(t){return t.__ecRoamConsumed}var qmt=qt();function PQ(t){var e=qmt(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function HD(t,e,r,n){for(var i=PQ(t),a=i.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;
123if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:n}),Jmt(t,e)}function QD(t,e,r){for(var n=PQ(t),i=n.roam[e]||[],a=0;a<i.length;a++)if(i[a].listener===r){i.splice(a,1),i.length||eyt(t,e);return}}function Jmt(t,e){var r=PQ(t);r.uniform[e]||t.on(e,r.uniform[e]=function(n){var i=r.roam[e];if(i)for(var a=0;a<i.length;a++)i[a].listener(n)})}function eyt(t,e){var r=PQ(t),n=r.uniform;n[e]&&(t.off(e,n[e]),n[e]=null)}function nde(t,e,r,n,i){i.isAvailableBehavior=ot(XU,null,r,n),t.trigger(e,i)}function XU(t,e,r){var n=r[t];return!t||n&&(!et(n)||e.event[n+"Key"])}function IDe(t){if(et(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var r=t;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var V8,sH={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"},ide=Cr(sH),lH={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ade=Cr(lH),tyt=(function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,r){r=r||{};var n=IDe(e);this._defsUsePending=[];var i=new xt;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_c(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;iyt(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=kQ(o);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=PDe(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var A=i;i=new xt,i.add(A),A.scaleX=A.scaleY=f.scale,A.x=f.x,A.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new fr({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},t.prototype._parseNode=function(e,r,n,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=V8[s];if(c&&ut(V8,s)){l=c.call(this,e,r);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var A=ode[s];if(A&&ut(ode,s)){var p=A.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,a,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},t.prototype._parseText=function(e,r){var n=new _T({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Cf(r,n),_c(e,n,this._defsUsePending,!1,!1),ryt(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},t.internalField=(function(){V8={g:function(e,r){var n=new xt;return Cf(r,n),_c(e,n,this._defsUsePending,!1,!1),n},rect:function(e,r){var n=new fr;return Cf(r,n),_c(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(e,r){var n=new mp;return Cf(r,n),_c(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,r){var n=new Ca;return Cf(r,n),_c(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(e,r){var n=new II;return Cf(r,n),_c(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n}
123,polygon:function(e,r){var n=e.getAttribute("points"),i;n&&(i=ude(n));var a=new Ns({shape:{points:i||[]},silent:!0});return Cf(r,a),_c(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,r){var n=e.getAttribute("points"),i;n&&(i=ude(n));var a=new es({shape:{points:i||[]},silent:!0});return Cf(r,a),_c(e,a,this._defsUsePending,!1,!1),a},image:function(e,r){var n=new Mo;return Cf(r,n),_c(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(e,r){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new xt;return Cf(r,s),_c(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,r){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new xt;return Cf(r,s),_c(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,r){var n=e.getAttribute("d")||"",i=bTe(n);return Cf(r,i),_c(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}})(),t})(),ode={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),r=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),a=new Tx(e,r,n,i);return sde(t,a),lde(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),r=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),i=new Cq(e,r,n);return sde(t,i),lde(t,i),i}};function sde(t,e){var r=t.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(e.global=!0)}function lde(t,e){for(var r=t.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};ODe(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000",s=a.stopOpacity||r.getAttribute("stop-opacity");if(s){var l=_l(o),u=l&&l[3];u&&(l[3]*=Yv(s),o=Yf(l,"rgba"))}e.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Cf(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ct(e.__inheritedStyle,t.__inheritedStyle))}function ude(t){for(var e=kQ(t),r=[],n=0;n<e.length;n+=2){var i=parseFloat(e[n]),a=parseFloat(e[n+1]);r.push([i,a])}return r}function _c(t,e,r,n,i){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};t.nodeType===1&&(syt(t,e),ODe(t,o,s),n||lyt(t,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=cde(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=cde(a,"stroke",o.stroke,r)),ee(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),ee(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=ze(kQ(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function ryt(t,e){var r=e.__selfStyle;if(r){var n=r.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),t.style.textBaseline=i}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),t.style.textAlign=s)}}var nyt=/^url\(\s*#(.*?)\)/;function cde(t,e,r,n){var i=r&&r.match(nyt);if(i){var a=Rc(i[1]);n.push([t,e,a]);return}return r==="none"&&(r=null),r}function iyt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n[0].style[n[1]]=t[n[2]]}}var ayt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kQ(t){return t.match(ayt)||[]}
123var oyt=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,G8=Math.PI/180;function syt(t,e){var r=t.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(oyt,function(f,d,A){return n.push(d,A),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=kQ(o);switch(i=i||Si(),s){case"translate":gh(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":q5(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Tg(i,i,-parseFloat(l[0])*G8,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*G8);Fc(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*G8);Fc(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 fde=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ODe(t,e,r){var n=t.getAttribute("style");if(n){fde.lastIndex=0;for(var i;(i=fde.exec(n))!=null;){var a=i[1],o=ut(sH,a)?sH[a]:null;o&&(e[o]=i[2]);var s=ut(lH,a)?lH[a]:null;s&&(r[s]=i[2])}}}function lyt(t,e,r){for(var n=0;n<ide.length;n++){var i=ide[n],a=t.getAttribute(i);a!=null&&(e[sH[i]]=a)}for(var n=0;n<ade.length;n++){var i=ade[n],a=t.getAttribute(i);a!=null&&(r[lH[i]]=a)}}function PDe(t,e){var r=e.width/t.width,n=e.height/t.height,i=Math.min(r,n);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 uyt(t,e){var r=new tyt;return r.parse(t,e)}var cyt=st(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),fyt=(function(){function t(e,r){this.type="geoSVG",this._usedGraphicMap=st(),this._freedGraphics=[],this._mapName=e,this._parsedXML=IDe(r)}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 r=hyt(e.named),n=r.regions,i=r.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var r,n;try{r=e&&uyt(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,Ps(n!=null)}catch(m){throw new Error(`Invalid svg format
124`+m.message)}var i=new xt;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var A=n.getBoundingRect();
124u==null&&(u=A.x,f=A.width),c==null&&(c=A.y,d=A.height)}l=this._boundingRect=new St(u,c,f,d)}if(s){var p=PDe(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new fr({shape:l.plain()}));var g=[];return ee(r.named,function(m){cyt.get(m.svgNodeTagLower)!=null&&(g.push(m),dyt(m.el))}),{root:i,boundingRect:l,named:g}},t.prototype.useGraphic=function(e){var r=this._usedGraphicMap,n=r.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(e,n),n)},t.prototype.freeGraphic=function(e){var r=this._usedGraphicMap,n=r.get(e);n&&(r.removeKey(e),this._freedGraphics.push(n))},t})();function dyt(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function hyt(t){var e=[],r=st();return ee(t,function(n){if(n.namedFrom==null){var i=new qAt(n.name,n.el);e.push(i),r.set(n.name,i)}}),{regions:e,regionsMap:r}}var hY=[126,25],dde="南海诸岛",S_=[[[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]]];for(var d_=0;d_<S_.length;d_++)for(var KS=0;KS<S_[d_].length;KS++)S_[d_][KS][0]/=10.5,S_[d_][KS][1]/=-10.5/.75,S_[d_][KS][0]+=hY[0],S_[d_][KS][1]+=hY[1];function Ayt(t,e){if(t==="china"){for(var r=0;r<e.length;r++)if(e[r].name===dde)return;e.push(new a2e(dde,ze(S_,function(n){return{type:"polygon",exterior:n}}),hY))}}var pyt={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function vyt(t,e){if(t==="china"){var r=pyt[e.name];if(r){var n=e.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),e.setCenter(n)}}}var gyt=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function myt(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:gyt[0]})}var yyt="name",wyt=(function(){function t(e,r,n){this.type="geoJSON",this._parsedMap=st(),this._mapName=e,this._specialAreas=n,this._geoJSON=byt(r)}return t.prototype.load=function(e,r){r=r||yyt;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:_yt(i)})}var a=st(),o=[];return ee(n.regions,function(s){var l=s.name;e&&ut(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new St(0,0,0,0),regionsMap:a}},t.prototype._parseToRegions=function(e){var r=this._mapName,n=this._geoJSON,i;try{i=n?YW(n,e):[]}catch(a){throw new Error(`Invalid geoJson format
125`+a.message)}return Ayt(r,i),ee(i,function(a){var o=a.name;vyt(r,a),myt(r,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.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 _yt(t){for(var e,r=0;r<t.length;r++){var n=t[r].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function byt(t){return et(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var jD=st();const mg={registerMap:function(t,e,r){if(e.svg){var n=new fyt(t,e.svg);jD.set(t,n)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?r=e.specialAreas:i=e;var n=new wyt(t,i,r);jD.set(t,n)}},getGeoResource:function(t){return jD.get(t)},getMapForUser:function(t){var e=jD.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,r){var n=jD.get(t);if(n)return n.load(e,r)}};var ex=0,tx=1,cp=2,xyt="view",NQ=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this)||this;a.type=xyt,a.dimensions=["x","y"];var o=a;o.invertY=r,o.lgCt=n,o.lgGeo=i;var s=o.trans=[];return s[ex]=YC(),s[tx]=YC(),s[cp]=YC(),o.mtRaw=Si(),o.mtRawInv=Si(),o.mtOverall=Si(),o.mtOverallInv=Si(),o.zoom=1,a}return e.prototype.getBoundingRect=function(){return kDe(null,this)},e.prototype.getViewRect=function(){return zJ(null,this)},e.prototype.getRoamTransform=function(){return n0(this.trans[tx])},e.prototype.dataToPoint=function(r,n,i){var a=n?this.mtRaw:this.mtOverall;return i=i||[],a?Wi(i,r,a):bs(i,r)},e.prototype.pointToData=function(r,n,i){i=i||[];var a=this.mtOverallInv;return a?Wi(i,r,a):bs(i,r)},e.prototype.convertToPixel=function(r,n,i){var a=gde(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(r,n,i){var a=gde(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(r){var n=this;return mT(aF,n.dataRect),nCe(aF,aF,n.mtOverall),Oot(aF,r[0],r[1])},e.dimensions=["x","y"],e})(vp),aF=J5();function uH(t,e){return t0([],e.mtOverall)}function Syt(t){return t.zoom}function kDe(t,e){return mT(J5(),e.dataRect)}function zJ(t,e){return mT(J5(),e.viewRect)}function RR(t,e,r){return rp(t||YC(),e.trans[r])}function VJ(t){return!!(t.dataRect&&t.viewRect)}function Cyt(t,e,r,n){n===tx?NDe(t,e.trans[ex],r):rp(t,r)}function hde(t,e,r){n0(r,oF),Fc(oF,oF,e.mtRawInv),gQ(t,oF)}var oF=Si();function GJ(t,e){var r=t;r.centerOption=e.getShallow("center");var n=r.zoomLimit=e.getShallow("scaleLimit"),i=e.getShallow("zoom");r.zoom=WJ(i||1,n)||1,VJ(r)&&KJ(r)}function FQ(t,e,r,n,i){var a=t;a.dataRect=new St(e,r,n,i),VJ(a)&&KJ(a)}function cH(t,e,r,n,i){var a=t;
125a.viewRect=new St(e,r,n,i),VJ(a)&&KJ(a)}function KJ(t){Tyt(t),Byt(t),Dyt(t)}function Tyt(t){var e=t.dataRect,r=t.viewRect,n=t.trans[ex],i=t.invertY;i&&(e=mT(Eyt,e),e.y=-e.y-e.height),rCe(Ade,e,r),gQ(n,Ade),i&&(n.scaleY=-n.scaleY);var a=n0(n,t.mtRaw);jc(t.mtRawInv,a)}var Ade=Si(),Eyt=J5();function Byt(t){var e=FDe(t),r=Ryt(K8,t,t.centerOption)?Wi(K8,K8,t.mtRaw):e,n=t.zoom,i=t.trans[tx];i.x=e[0]-n*r[0],i.y=e[1]-n*r[1],i.scaleX=i.scaleY=n}var K8=[];function Dyt(t){var e=t.trans,r=e[tx],n=e[ex],i=e[cp];NDe(i,n,r);var a=n0(i,t.mtOverall),o=jc(t.mtOverallInv,a);pde(t,i,a,o),pde(t.lgGeo,i,a,o)}function pde(t,e,r,n){t&&(rp(t,e),t0(t.transform||(t.transform=[]),r),t0(t.invTransform||(t.invTransform=[]),n))}function NDe(t,e,r){n0(e,vde),n0(r,sF),Fc(sF,sF,vde),gQ(t,sF)}var vde=Si(),sF=Si();function gde(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function FDe(t){var e=t.viewRect;return W8[0]=e.x+e.width/2,W8[1]=e.y+e.height/2,W8}var W8=[];function UDe(t){return t&&t.type==="view"}function a0(t,e,r,n){var i=r;i.syncBackEl=t,i.syncBackType=e,n?Wr(t,RR(null,r,e),n):(RR(t,r,e),t.dirty())}function Myt(t,e,r,n){var i=t,a=i.syncBackEl;a?(a.stopAnimation(),Cyt(Zm,i,a,i.syncBackType)):rp(Zm,i.trans[cp]),hde(Y8,i,Zm),n?Lyt(Zm,Y8,i,n):rp(Zm,Y8),hde(Zm,i,Zm),Oyt(i,e,r,Zm)}var Zm=YC(),Y8=YC();function HDe(t,e,r){var n=fH(e);n&&(Myt(n,e,r,t),GJ(n,e))}function fH(t){return t.__ownRoamView?t.__ownRoamView():null}function QDe(t,e,r,n){r.setUpdatePayload(Rq(t));var i=lTe(n,e);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(t,e,n)}function Lyt(t,e,r,n){n.dx!=null&&n.dy!=null&&(t.x+=n.dx,t.y+=n.dy);var i=n.zoom;if(i!=null){var a=jDe(e),o=WJ(a*i,r.zoomLimit),s=o/a;t.x-=(n.originX-t.x)*(s-1),t.y-=(n.originY-t.y)*(s-1),t.scaleX*=s,t.scaleY*=s}}function jDe(t){return t.scaleX}function Ryt(t,e,r){var n=e.dataRect;if(!r)return!1;var i=e.lgCt;return i?Wv(t,it(r[0],i.w),it(r[1],i.h)):n&&Wv(t,it(r[0],n.width,n.x),it(r[1],n.height,n.y)),!0}function Iyt(t,e){var r=t.centerOption,n=t.dataRect;return!r||t.lgCt?e.slice():[mde(0,e,r,n),mde(1,e,r,n)]}function mde(t,e,r,n){return r&&n&&n[ha[t]]&&Gst(r[t])?(e[t]-n[jt[t]])/n[ha[t]]*100+"%":e[t]}function zDe(t,e){return e&&t&&t.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function Oyt(t,e,r,n){var i=FDe(t),a=jDe(n),o=Vi(a)>1e-6;zD[0]=o?(i[0]-n.x)/a:i[0],zD[1]=o?(i[1]-n.y)/a:i[1],Wi(zD,zD,t.mtRawInv);var s=Iyt(t,zD);yde(e,s,a),ee(r,function(l){l!==e&&yde(l,s.slice(),a)})}var zD=[];function yde(t,e,r){var n=t.option;n.center=e,n.zoom=r}function WJ(t,e){if(e){var r=e.min||0,n=e.max||1/0;t=Math.max(Math.min(n,t),r)}return t}function VDe(t,e){var r=e.getShallow("nodeScaleRatio",!0)||1,n=t;return((n.zoom-1)*r+1)/(n.trans[cp].scaleX||1)}function UQ(t,e,r,n,i,a,o,s){var l=fH(t);if(!l){r.disable();return}r.enable(ft(t.get("roam"),o),{api:e,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:n,isInClip:function(c,f,d){return!i||i.contain(f,d)}}});function u(c){var f=t.mainType,d=Rq(Ct({type:KDe(f,t.subType,oTe)},c));s&&(d.componentType=f),d[f+"Id"]=t.id,e.dispatchAction(d)}r.off("pan").off("zoom").on("pan",function(c){a&&a("pan"),u({dx:c.dx,dy:c.dy})}).on("zoom",function(c){a&&a("zoom"),u({zoom:c.scale,originX:c.originX,originY:c.originY})})}function GDe(t){return function(e,r,n){return $8.copy(t.getBoundingRect()),$8.applyTransform(t.getComputedTransform()),$8.contain(r,n)}}var $8=new St(0,0,0,0);function YJ(t,e,r){var n=KDe(e,r,oTe);t.registerAction({type:n,event:n,update:"none"},function(i,a,o){a.eachComponent(Aq(i,e,r),function(s){HDe(i,s),QDe(i,s,a,o)})})}function KDe(t,e,r){return(t!==sp?t:e==="map"?"geo":e)+r}function WDe(t){return t.zoom!=null}function $J(t,e,r,n,i,a,o){var s=new NQ(null,zDe(t.ecModel,e));return FQ(s,r,n,i,a),o?cH(s,o.x,o.y,o.width,o.height):cH(s,r,n,i,a),GJ(s,t),s}var ZJ=["rect","circle","line","ellipse","polygon","polyline","path"],Pyt=st(ZJ),kyt=st(ZJ.concat(["g"])),Nyt=st(ZJ.concat(["g"])),YDe=qt();function lF(t){var e=t.getItemStyle(),r=t.get("areaColor");return r!=null&&(e.fill=r),e}function wde(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var $De=(function(){function t(e){var r=this.group=new xt,n=this._transformGroup=new xt;r.add(n),this.uid=Bx("ec_map_draw"),this._controller=new Ox(e.getZr()),n.add(this._regionsGroup=new xt),n.add(this._svgGroup=new xt)}return t.prototype.draw=function(e,r,n,i,a){var o=this,s=e.getData&&e.getData();tT(e)&&r.eachComponent({mainType:"series",subType:"map"},function(g){!s&&g.getHostGeoModel()===e&&(s=g.getData())});
125var l=e.coordinateSystem,u=l.view,c=this._regionsGroup,f=this._transformGroup,d=!c.childAt(0)||a,A;l.shouldClip()?(A=zJ(null,u),this.group.setClipPath(new fr({shape:A.clone()}))):this.group.removeClipPath(),a0(f,tx,u,d?null:e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,e,s,p):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,e,s,p),UQ(e,n,this._controller,function(g,m,y){return e.coordinateSystem.containPoint([m,y])},A,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,c,n,i)},t.prototype.__updateOnOwnRoam=function(e){a0(this._transformGroup,tx,e.coordinateSystem.view,null)},t.prototype._buildGeoJSON=function(e,r,n,i,a,o){var s=this._regionsGroupByName=st(),l=st(),u=this._regionsGroup,c=n.projection,f=c&&c.stream,d=n0(RR(null,e,ex));function A(m,y){return y&&(m=y(m)),m&&Wi([],m,d)}function p(m){for(var y=[],b=!f&&c&&c.project,x=0;x<m.length;++x){var T=A(m[x],b);T&&y.push(T)}return y}function g(m){return{shape:{points:p(m)}}}u.removeAll(),ee(n.regions,function(m){var y=m.name,b=s.get(y),x=l.get(y)||{},T=x.dataIdx,B=x.regionModel;if(!b){b=s.set(y,new xt),u.add(b),T=a?a.indexOfName(y):null,B=tT(i)?i.getRegionModel(y):a?a.getItemModel(T):null;var R=B.get("silent",!0);R!=null&&(b.silent=R),l.set(y,{dataIdx:T,regionModel:B})}var I=[],N=[];ee(m.geometries,function(j){if(j.type==="polygon"){var W=[j.exterior].concat(j.interiors||[]);f&&(W=Tde(W,f)),ee(W,function(Y){I.push(new Ns(g(Y)))})}else{var V=j.points;f&&(V=Tde(V,f,!0)),ee(V,function(Y){N.push(new es(g(Y)))})}});var F=A(m.getCenter(),c&&c.project);function Q(j,W){if(j.length){var V=new PI({culling:!0,segmentIgnoreThreshold:1,shape:{paths:j}});b.add(V),_de(r,a,o,V,T,B),bde(i,a,V,y,B,T,F),W&&(wde(V),ee(V.states,wde))}}Q(I),Q(N,!0)}),s.each(function(m,y){var b=l.get(y),x=b.dataIdx,T=b.regionModel;xde(i,a,m,y,T,x),Sde(i,a,m,y,T),Cde(i,m,y,T)},this)},t.prototype._buildSVG=function(e,r,n,i,a,o){var s=n.map;RR(this._svgGroup,e,ex),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=st(),u=!1;ee(this._svgGraphicRecord.named,function(c){var f=c.name,d=c.svgNodeTagLower,A=c.el,p=a?a.indexOfName(f):null,g=i.getRegionModel(f);Pyt.get(d)!=null&&A instanceof id&&_de(r,a,o,A,p,g),A instanceof id&&(A.culling=!0);var m=g.get("silent",!0);if(m!=null&&(A.silent=m),A.z2EmphasisLift=0,!c.namedFrom&&(Nyt.get(d)!=null&&bde(i,a,A,f,g,p,null),xde(i,a,A,f,g,p),Sde(i,a,A,f,g),kyt.get(d)!=null)){var y=Cde(i,A,f,g);y==="self"&&(u=!0);var b=l.get(f)||l.set(f,[]);b.push(A)}},this),this._enableBlurEntireSVG(u,i)},t.prototype._enableBlurEntireSVG=function(e,r){if(e&&tT(r)){var n=r.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){zb(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},t.prototype.findHighDownDispatchers=function(e,r){if(e==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(e);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var r=mg.getGeoResource(e);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var r=mg.getGeoResource(e);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var r=e.getTextContent();r&&(r.ignore=YDe(r).ignore)})},t.prototype._updateMapSelectHandler=function(e,r,n,i){var a=this;r.off("mousedown"),r.off("click"),e.get("selectedMode")&&(r.on("mousedown",function(){a._mouseDownFlag=!0}),r.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},t})();function _de(t,e,r,n,i,a){var o=a.getModel("itemStyle"),s=a.getModel(["emphasis","itemStyle"]),l=a.getModel(["blur","itemStyle"]),u=a.getModel(["select","itemStyle"]),c=lF(o),f=lF(s),d=lF(u),A=lF(l);if(e){var p=e.getItemVisual(i,"style"),g=e.getItemVisual(i,"decal");r&&p.fill&&(c.fill=p.fill),g&&(c.decal=CT(g,t))}n.setStyle(c),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=f,n.ensureState("select").style=d,n.ensureState("blur").style=A,zb(n)}function bde(t,e,r,n,i,a,o){var s=e&&isNaN(e.get(e.mapDimension("value"),a)),l=e&&e.getItemLayout(a);if(tT(t)||s||l&&l.showLabel){var u=tT(t)?n:a,c=void 0;(!e||a>=0)&&(c=t);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Do(r,so(i),{labelFetcher:c,labelDataIndex:u,defaultText:n},f);var d=r.getTextContent();if(d&&(YDe(d).ignore=d.ignore,r.textConfig&&o)){var A=r.getBoundingRect
125().clone();r.textConfig.layoutRect=A,r.textConfig.position=[(o[0]-A.x)/A.width*100+"%",(o[1]-A.y)/A.height*100+"%"]}r.disableLabelAnimation=!0}else r.removeTextContent(),r.removeTextConfig(),r.disableLabelAnimation=null}function xde(t,e,r,n,i,a){e?e.setItemGraphicEl(a,r):It(r).eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:n,region:i&&i.option||{}}}function Sde(t,e,r,n,i){e||Bg({el:r,componentModel:t,itemName:n,itemTooltipOption:i.get("tooltip")})}function Cde(t,e,r,n){e.highDownSilentOnTouch=!!t.get("selectedMode");var i=n.getModel("emphasis"),a=i.get("focus");return Ti(e,a,i.get("blurScope"),i.get("disabled")),tT(t)&&Dut(e,t,r),a}function Tde(t,e,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),ee(t,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}function tT(t){return t.mainType==="geo"}var rx="map",Fyt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},r}return e.prototype.getInitialData=function(r){for(var n=BE(this,{coordDimensions:["value"],encodeDefaulter:lr($q,this)}),i=st(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,o)}var u=mg.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return ee(u.regions,function(c){var f=c.name,d=i.get(f),A=c.properties&&c.properties.echartsStyle,p;d==null?(p={name:f},a.push(p)):p=n.getRawDataItem(d),A&&Xt(p,A)}),n.appendData(a),n},e.prototype.getHostGeoModel=function(){if(aEe(this).kind!==iEe)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},e.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r),l=[];return ee(this.seriesGroup.f,function(u){var c=u.originalData.indexOfName(s),f=a.mapDimension("value");isNaN(u.originalData.get(f,c))||l.push(u.name)}),Va("section",{header:l.join(", "),noHeader:!l.length,blocks:[Va("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",i=Ba(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return i.setStyle(r.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill=xe.color.neutral00,i.style.lineWidth=2),i},e.prototype.__ownRoamView=function(){return dH(this)?this.coordinateSystem.view:null},e.type="series."+rx,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:xe.color.tertiary},itemStyle:{borderWidth:.5,borderColor:xe.color.border,areaColor:xe.color.background},emphasis:{label:{show:!0,color:xe.color.primary},itemStyle:{areaColor:xe.color.highlight}},select:{label:{show:!0,color:xe.color.primary},itemStyle:{color:xe.color.highlight}},nameProperty:"name"},e})(On);function ZDe(t){return t.indexOf("i")===0}function dH(t){return IR(t.seriesGroup)===t&&!t.getHostGeoModel()}function IR(t){return t.f[0]}function XJ(t,e){var r={};return t.eachRawSeriesByType(rx,function(n){var i=n.getHostGeoModel(),a=i?"o"+i.id:"i"+n.getMapType(),o=r[a]=r[a]||{f:[],r:[]};!t.isSeriesFiltered(n)&&!e&&o.f.push(n),o.r.push(n)}),r}var Uyt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=rx,r}return e.prototype.render=function(r,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){var s=this._mapDraw;s&&a&&a.type==="geoRoam"&&s.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===r.id?s&&o.add(s.group):dH(r)?(s=s||(this._mapDraw=new $De(i)),o.add(s.group),s.draw(r,n,i,this,a)):this._clearMapDraw(),r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r)}}},e.prototype.__updateOnOwnRoam=function(r,n,i){var a=this._mapDraw;dH(n)&&a&&a.__updateOnOwnRoam(n)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(r){var n=r.originalData,i=this.group;n.each(n.mapDimension("value"),function(a,o){if(!isNaN(a)){var s=n.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,c=new mp({style:{fill:r.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:fE+1)});if(!u){var f=IR(r.seriesGroup).getData(),d=n.getName(o),A=f.indexOfName(d),p=n.getItemModel(o),g=p.getModel("label"),m=f.getItemGraphicEl(A);Do(c,so(p),{labelFetcher:{getFormattedLabel:function(y,b){return r.getFormattedLabel(A,b)}},defaultText:d}),c.disableLabelAnimation=!0,g.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(y){M3(c,y)}}i.add(c)}}})},e.type=rx,e})(xn),Hyt={geoJSON:{aspectScale:.75,invertLongitute:!0}
125,geoSVG:{aspectScale:1,invertLongitute:!1}},XDe=["lng","lat"],Ede=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this)||this;a.dimensions=XDe,a.type="geo",a._nameCoordMap=st(),a.name=r;var o=i.projection,s=mg.load(n,i.nameMap,i.nameProperty),l=mg.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=Hyt[l.type];a._clip=i.clip;var f=o?!1:c.invertLongitute;a.view=new NQ(f,zDe(i.ecModel,i.api),a),a.map=n,a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var d;if(o)for(var A=0;A<u.length;A++){var p=u[A].getBoundingRect(o);d=d||p.clone(),d.union(p)}else d=s.boundingRect;return FQ(a.view,d.x,d.y,d.width,d.height),a.aspectScale=o?1:ft(i.aspectScale,c.aspectScale),a}return e.prototype.getRegion=function(r){return this._regionsMap.get(r)},e.prototype.getRegionByCoord=function(r){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(r))return n[i]}},e.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},e.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},e.prototype.dataToPoint=function(r,n,i){if(et(r)&&(r=this.getGeoCoord(r)),r){var a=this.projection;return a&&(r=a.project(r)),r&&this.view.dataToPoint(r,n,i)}},e.prototype.pointToData=function(r,n,i){var a=this.projection;return a&&(r=a.unproject(r)),r&&this.view.pointToData(r,i)},e.prototype.convertToPixel=function(r,n,i){var a=Bde(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(r,n,i){var a=Bde(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(r){return this.view.containPoint(r)},e.prototype.getArea=function(r){r=r||0;var n=zJ(null,this.view);return n.x-=r,n.y-=r,n.width+=2*r,n.height+=2*r,n},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(vp);function Bde(t){var e=t.geoModel,r=t.seriesModel;return e?e.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",ta).models[0]||{}).coordinateSystem:null}function Dde(t,e){var r=this.view,n=t.get("boundingCoords");if(n!=null){var i=n[0],a=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var s=i[0],l=i[1],u=a[0],c=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var f=function(R,I,N,F){for(var Q=N-R,j=F-I,W=0;W<=100;W++){var V=W/100,Y=o.project([R+Q*V,I+j*V]);Fv(i,i,Y),Uv(a,a,Y)}};f(s,l,u,l),f(u,l,u,c),f(u,c,s,c),f(s,c,u,l)}FQ(r,i[0],i[1],a[0]-i[0],a[1]-i[1])}}var d=r.getBoundingRect(),A=t.get("layoutCenter"),p=t.get("layoutSize"),g=uo(t,e).refContainer,m=d.width/d.height*this.aspectScale,y=!1,b,x;A&&p&&(b=[it(A[0],g.width)+g.x,it(A[1],g.height)+g.y],x=it(p,Math.min(g.width,g.height)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(x)&&(y=!0));var T;if(y)T={},m>1?(T.width=x,T.height=x/m):(T.height=x,T.width=x*m),T.y=b[1]-T.height/2,T.x=b[0]-T.width/2;else{var B=t.getBoxLayoutParams();B.aspect=m,T=gi(B,g),T=cEe(t,T,m)}cH(r,T.x,T.y,T.width,T.height),GJ(r,t)}function Qyt(t,e){ee(e.get("geoCoord"),function(r,n){t.addGeoCoord(n,r)})}var jyt=(function(){function t(){this.dimensions=XDe}return t.prototype.create=function(e,r){var n=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection"),clip:a.getShallow("clip",!0)}}return e.eachComponent("geo",function(a,o){var s=a.get("map"),l=new Ede(s+o,s,Fe({nameMap:a.get("nameMap"),api:r,ecModel:e},i(a)));n.push(l),a.coordinateSystem=l,l.model=a,l.resize=Dde,l.resize(a,r)}),e.eachSeries(function(a){FI({targetModel:a,coordSysType:"geo",coordSysProvider:function(){var o=a.subType===rx?a.getHostGeoModel():a.getReferringComponents("geo",ta).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),ee(XJ(e,!0),function(a,o){if(ZDe(o)){var s=a.r[0],l=[];ee(a.r,function(d){l.push(d.get("nameMap")),d.seriesGroup=null});var u=o.slice(1),c=new Ede(u,u,Fe({nameMap:Z5(l),api:r,ecModel:e},i(s))),f;ee(a.r,function(d){f=ft(f,d.get("scaleLimit"))}),n.push(c),c.resize=Dde,c.resize(s,r),ee(a.r,function(d){d.coordinateSystem=c,Qyt(c,d)})}}),n},t.prototype.getFilledRegions=function(e,r,n,i){for(var a=(e||[]).slice(),o=st(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=mg.load(r,n,i);return ee(l.regions,function(u){var c=u.name,f=o.get(c),d=u.properties&&u.properties.echartsStyle;f||(f={name:c},a.push(f)),d&&Xt(f,d)}),a},t})(),qDe=new jyt,zyt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i);var a=mg.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color=r.defaultItemStyleColor||xe.color.backgroundTint)}Ub(r,"label",["show"])},e.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=qDe.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=td(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new wr(o,r,r.ecModel)),o.selected&&(i[s]=!0)),a},st()),n.selectedMap||(n.selectedMap=i)},e.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new wr(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(r,n){var i=this.getRegionModel(r),a=n==="normal"?i.get(["label","formatter"]):i.get(["emp
125hasis","label","formatter"]),o={name:r};if(mt(a))return o.status=n,a(o);if(et(a))return a.replace("{a}",r??"")},e.prototype.select=function(r){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[r]=!0}},e.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},e.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},e.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},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:xe.color.tertiary},itemStyle:{borderWidth:.5,borderColor:xe.color.border},emphasis:{label:{show:!0,color:xe.color.primary},itemStyle:{color:xe.color.highlight}},select:{label:{show:!0,color:xe.color.primary},itemStyle:{color:xe.color.highlight}},regions:[]},e})(gr),Vyt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.focusBlurEnabled=!0,r}return e.prototype.init=function(r,n){this._api=n},e.prototype.render=function(r,n,i,a){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new $De(i));var o=this._mapDraw;o.draw(r,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,i)},e.prototype.__updateOnOwnRoam=function(r,n,i){var a=this._mapDraw;a&&a.__updateOnOwnRoam(n)},e.prototype._handleRegionClick=function(r){var n;J_(r.target,function(i){return(n=It(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(r,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=It(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(Yn);function Gyt(t,e,r){mg.registerMap(t,e,r)}function JDe(t){t.registerCoordinateSystem("geo",qDe),t.registerComponentModel(zyt),t.registerComponentView(Vyt),t.registerImpl("registerMap",Gyt),t.registerImpl("getMap",function(r){return mg.getMapForUser(r)});function e(r,n){n.update="geo:updateSelectStatus",t.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[r](i.name);var u=l.coordinateSystem;ee(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];ee(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,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(r,n,i){var a=r.componentType||(r.geoId!=null||r.geoName!=null||r.geoIndex!=null?"geo":sp),o=a===sp;if(!(a!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(Aq(r,a,s),function(l){o&&!dH(l)||(HDe(r,l,o?l.seriesGroup.r:null),QDe(r,l,n,i))})}})}var Kyt=lo(rx,Wyt);function Wyt(t){ee(XJ(t),function(e,r){if(!(!IR(e)||!ZDe(r))){var n={};ee(e.f,function(a){var o=a.coordinateSystem,s=a.originalData;a.get("showLegendSymbol")&&t.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var c=s.getName(u),f=o.getRegion(c);if(!(!f||isNaN(l))){var d=n[c]||0,A=o.dataToPoint(f.getCenter());n[c]=d+1,s.setItemLayout(u,{point:A,offset:d})}})});var i=IR(e).getData();i.each(function(a){var o=i.getName(a),s=i.getItemLayout(a)||{};s.showLabel=!n[o],i.setItemLayout(a,s)})}})}function Yyt(t,e){var r={};return ee(t,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),t[0].map(t[0].mapDimension("value"),function(n,i){for(var a="ec-"+t[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),o+=r[a][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}var $yt=lo(rx,Zyt);function Zyt(t){ee(XJ(t),function(e){var r=IR(e);if(r){var n=Yyt(ze(e.f,function(i){return i.getData()}),r.get("mapValueCalculation"));ee(e.f,function(i){i.seriesGroup=e,i.originalData=i.getData(),i.setData(n.
125cloneShallow())})}})}function Xyt(t){ir(JDe),t.registerChartView(Uyt),t.registerSeriesModel(Fyt),t.registerLayout(Kyt),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$yt),eBe("map",t.registerAction)}function qyt(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[e],n,i;n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function Jyt(t,e){var r=t.isExpand?t.children:[],n=t.parentNode.children,i=t.hierNode.i?n[t.hierNode.i-1]:null;if(r.length){t0t(t);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=r0t(t,i,t.parentNode.hierNode.defaultAncestor||n[0],e)}function e0t(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Mde(t){return arguments.length?t:a0t}function PM(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function t0t(t){for(var e=t.children,r=e.length,n=0,i=0;--r>=0;){var a=e[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function r0t(t,e,r,n){if(e){for(var i=t,a=t,o=a.parentNode.children[0],s=e,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=Z8(s),a=X8(a),s&&a;){i=Z8(i),o=X8(o),i.hierNode.ancestor=t;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(i0t(n0t(s,t,r),t,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!Z8(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!X8(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=t)}return r}function Z8(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function X8(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function n0t(t,e,r){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:r}function i0t(t,e,r){var n=r/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=r,e.hierNode.modifier+=r,e.hierNode.prelim+=r,t.hierNode.change+=n}function a0t(t,e){return t.parentNode===e.parentNode?1:2}var Zf=qt();function eMe(t){var e=t.mainData,r=t.datas;r||(r={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,tMe(e,r,t),ee(r,function(n){ee(e.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,lr(o0t,t))})}),e.wrapMethod("cloneShallow",lr(l0t,t)),ee(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,lr(s0t,t))}),Ps(r[e.dataType]===e)}function o0t(t,e){if(f0t(this)){var r=Fe({},Zf(this).datas);r[this.dataType]=e,tMe(e,r,t)}else qJ(e,this.dataType,Zf(this).mainData,t);return e}function s0t(t,e){return t.struct&&t.struct.update(),e}function l0t(t,e){return ee(Zf(e).datas,function(r,n){r!==e&&qJ(r.cloneShallow(),n,e,t)}),e}function u0t(t){var e=Zf(this).mainData;return t==null||e==null?e:Zf(e).datas[t]}function c0t(){var t=Zf(this).mainData;return t==null?[{data:t}]:ze(Cr(Zf(t).datas),function(e){return{type:e,data:Zf(t).datas[e]}})}function f0t(t){return Zf(t).mainData===t}function tMe(t,e,r){Zf(t).datas={},ee(e,function(n,i){qJ(n,i,t,r)})}function qJ(t,e,r,n){Zf(r).datas[e]=t,Zf(t).mainData=r,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=u0t,t.getLinkedDataAll=c0t}var d0t=(function(){function t(e,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=r}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,r,n){mt(e)&&(n=r,r=e,e=null),e=e||{},et(e)&&(e={order:e});var i=e.order||"preorder",a=this[e.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,r,n);i==="postorder"&&r.call(n,this)},t.prototype.updateDepthAndHeight=function(e){var r=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>r&&(r=i.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(e);if(a)return a}},t.prototype.contains=function(e){if(e===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(e);if(a)return a}},t.prototype.getAncestors=function(e){for(var r=[],n=e?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},t.prototype.getAncestorsIndices=function(){for(var e=[],r=this;r;)e.push(r.dataIndex),r=r.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(r){e.push(r.dataIndex)}),e},t.prototype.getValue=function(e){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},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,r=0;r<e.length;++r)if(e[r]===this)return r;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var r=e.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t})(),JJ=(function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,r,n){this.root.eachNode(e,r,n)},t.prototype.getNodeByDataIndex=function(e){var r=this.data.getRawIndex(e);return this._nodes[r]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=e.count();n<i;n++)r[e.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,r,n){var i=new t(r),a=[],o=1;s(e);function s(c,f){var d=c.value;o=Math.max(o,je(d)?d.length:1),a.push(c);var A=new d0t(io(c.name,""),i);f?h0t(A,f):i.root=A,i._nodes.push(A);var p=c.children;if(p)for(var g=0;g<p.length;g++)s(p[g],A)}i.root.updateDepthAndHeight(0);var l=xE(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new bl(l,r);return u.initData(a),n&&n(u),eMe({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t})();function h0t(t,e){var r=e.children;t.parentNode!==e&&(r.push(t),t.parentNode=e)}function OR(t,e,r){if(t&&zt(e,t.type)>=0){var n=r.getData().tree.root,i=t.targetNode;if(et(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function rMe(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function eee(t,e){var r=rMe(t);return zt(r,e)>=0}function HQ(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var nx="tree",A0t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new wr(i,this,this.ecModel),o=JJ.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,A){var p=o.getNodeByDataIndex(A);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},e.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Va("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=HQ(i,this),n.collapsed=!i.isExpand,n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+nx,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:xe.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(On),p0t=(function(){function t(){this.parentPoint=[],this.childPoints=[]}return t})(),v0t=(function(t){Ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:xe.color.
125neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new p0t},e.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=it(n.forkPosition,1),A=[];A[c]=o[c],A[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(A[0],A[1]),r.moveTo(s[0],s[1]),A[c]=s[c],r.lineTo(A[0],A[1]),A[c]=l[c],r.lineTo(A[0],A[1]),r.lineTo(l[0],l[1]);for(var p=1;p<a-1;p++){var g=i[p];r.moveTo(g[0],g[1]),A[c]=g[c],r.lineTo(A[0],A[1])}},e})(_r),g0t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=nx,r._mainGroup=new xt,r}return e.prototype.init=function(r,n){this._controller=new Ox(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(r,n,i){var a=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,i),UQ(r,i,this._controller,GDe(this.group),null);var u=this._data;a.diff(u).add(function(c){Lde(a,c)&&Rde(a,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!Lde(a,c)){d&&Ode(u,f,d,s,r);return}Rde(a,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&Ode(u,c,f,s,r)}).execute(),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=a,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(r,n,i){a0(this.group,cp,n.coordinateSystem,null),WDe(r)&&this._updateNodeAndLinkScale(n)},e.prototype._updateViewCoordSys=function(r,n){var i=r.getData(),a=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&a.push([+d.x,+d.y])});var o=[],s=[];cQ(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=$J(r,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);a0(this.group,cp,c,this._firstRender?null:r),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),i=VDe(r.coordinateSystem,r);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=nx,e})(xn);function Lde(t,e){var r=t.getItemLayout(e);return r&&!isNaN(r.x)&&!isNaN(r.y)}function Rde(t,e,r,n,i){var a=!r,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:xe.color.neutral00,c=t.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(f.dataIndex),A=f.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:A,g=o.getLayout();a?(r=new VI(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=p.x,r.y=p.y):r.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=g.rawX,r.__radialRawY=g.rawY,n.add(r),t.setItemGraphicEl(e,r),r.__oldX=r.x,r.__oldY=r.y,Wr(r,{x:g.x,y:g.y},i);var m=r.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],b=y.getLayout(),x=y.children.length,T=void 0,B=void 0;if(g.x===b.x&&o.isExpand===!0&&y.children.length){var R={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};T=Math.atan2(R.y-b.y,R.x-b.x),T<0&&(T=Math.PI*2+T),B=R.x<b.x,B&&(T=T-Math.PI)}else T=Math.atan2(g.y-b.y,g.x-b.x),T<0&&(T=Math.PI*2+T),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(B=g.x<b.x,B&&(T=T-Math.PI)):(B=g.x>b.x,B||(T=T-Math.PI));var I=B?"left":"right",N=s.getModel("label"),F=N.get("rotate"),Q=F*(Math.PI/180),j=m.getTextContent();j&&(m.setTextConfig({position:N.get("position")||I,rotation:F==null?-T:Q,origin:"center"}),j.setStyle("verticalAlign","middle"))}var W=s.get(["emphasis","focus"]),V=W==="relative"?gT(o.getAncestorsIndices(),o.getDescendantIndices()):W==="ancestor"?o.getAncestorsIndices():W==="descendant"?o.getDescendantIndices():null;V&&(It(r).focus=V),m0t(i,o,c,r,p,A,g,n),r.__edge&&(r.onHoverStateChange=function(Y){if(Y!=="blur"){var G=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);G&&G.hoverState===RI||M3(r.__edge,Y)}})}function m0t(t,e,r,n,i,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),A=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==r&&(g||(g=n.__edge=new hE({shape:AY(c,f,d,i,i)})),Wr(g,{shape:AY(c,f,d,a,o)},t));else if(u==="polyline"&&c==="orthogonal"&&e!==r&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;b<m.length;b++){var x=m[b].getLayout();y.push([x.x,x.y])}g||(g=n.__edge=new v0t({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:A}})),Wr(g,{shape:{parentPoint:[o.x,o.y],childPoints:y}},t)}g&&!(u==="polyline"&&!e.isExpand)&&(g.useStyle(Ct({strokeNoScale:!0,fill:null},p)),oo(g,l,"lineStyle"),zb(g),s.add(g))}function Ide(t,e,r,n,i){var a=e.tree.root,o=nMe(a,t),s=o.source,l=o.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),A=n.get("edgeShape"),p=n.get("layout"),g=n.get("orient"),m=n.get(["lineStyle","curveness"]);d&&(A==="curve"?i0(d,{shape:AY(p,g,m,l,l),style:{opacity:0}
125},n,{cb:function(){r.remove(d)},removeOpt:i}):A==="polyline"&&n.get("layout")==="orthogonal"&&i0(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}))}}function nMe(t,e){for(var r=e.parentNode===t?e:e.parentNode||e,n;n=r.getLayout(),n==null;)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function Ode(t,e,r,n,i){var a=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=nMe(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};i0(r,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(r),t.setItemGraphicEl(e,null)},removeOpt:l}),r.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),ee(a.children,function(u){Ide(u,t,n,i,l)}),Ide(a,t,n,i,l)}function AY(t,e,r,n,i){var a,o,s,l,u,c,f,d;if(t==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,d=i.rawY;var A=PM(u,f),p=PM(u,f+(d-f)*r),g=PM(c,d+(f-d)*r),m=PM(c,d);return{x1:A.x||0,y1:A.y||0,x2:m.x||0,y2:m.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=n.x,f=n.y,c=i.x,d=i.y,(e==="LR"||e==="RL")&&(a=u+(c-u)*r,o=f,s=c+(u-c)*r,l=d),(e==="TB"||e==="BT")&&(a=u,o=f+(d-f)*r,s=c,l=d+(f-d)*r);return{x1:u,y1:f,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}function y0t(t,e,r){for(var n=[t],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)e(a,r)}function VD(t,e){for(var r=[t],n;n=r.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function w0t(t,e){t.eachSeriesByType("tree",function(r){_0t(r,e)})}function _0t(t,e){var r=uo(t,e).refContainer,n=gi(t.getBoxLayoutParams(),r);t.layoutInfo=n;var i=t.get("layout"),a=0,o=0,s=null;i==="radial"?(a=2*Math.PI,o=Math.min(n.height,n.width)/2,s=Mde(function(T,B){return(T.parentNode===B.parentNode?1:2)/T.depth})):(a=n.width,o=n.height,s=Mde());var l=t.getData().tree.root,u=l.children[0];if(u){qyt(l),y0t(u,Jyt,s),l.hierNode.modifier=-u.hierNode.prelim,VD(u,e0t);var c=u,f=u,d=u;VD(u,function(T){var B=T.getLayout().x;B<c.getLayout().x&&(c=T),B>f.getLayout().x&&(f=T),T.depth>d.depth&&(d=T)});var A=c===f?1:s(c,f)/2,p=A-c.getLayout().x,g=0,m=0,y=0,b=0;if(i==="radial")g=a/(f.getLayout().x+A+p),m=o/(d.depth-1||1),VD(u,function(T){y=(T.getLayout().x+p)*g,b=(T.depth-1)*m;var B=PM(y,b);T.setLayout({x:B.x,y:B.y,rawX:y,rawY:b},!0)});else{var x=t.getOrient();x==="RL"||x==="LR"?(m=o/(f.getLayout().x+A+p),g=a/(d.depth-1||1),VD(u,function(T){b=(T.getLayout().x+p)*m,y=x==="LR"?(T.depth-1)*g:a-(T.depth-1)*g,T.setLayout({x:y,y:b},!0)})):(x==="TB"||x==="BT")&&(g=a/(f.getLayout().x+A+p),m=o/(d.depth-1||1),VD(u,function(T){y=(T.getLayout().x+p)*g,b=x==="TB"?(T.depth-1)*m:o-(T.depth-1)*m,T.setLayout({x:y,y:b},!0)}))}}}function b0t(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,r){r.eachComponent({mainType:sp,subType:nx,query:e},function(n){var i=e.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),YJ(t,sp,nx)}var x0t=lo(nx,S0t);function S0t(t){t.eachSeriesByType(nx,function(e){var r=e.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");Fe(s,o)})})}function C0t(t){t.registerChartView(g0t),t.registerSeriesModel(A0t),t.registerLayout(w0t),t.registerVisual(x0t),b0t(t)}var Pde=["treemapZoomToNode","treemapRender","treemapMove"];function T0t(t){for(var e=0;e<Pde.length;e++)t.registerAction({type:Pde[e],update:"updateView"},Ki);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=OR(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=eee(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function iMe(t){var e=t.getData(),r=e.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=MW(t.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var E0t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};aMe(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wr({itemStyle:o},this,n);a=r.levels=B0t(a,n);var l=ze(a||[],function(f){return new wr(f,s,n)},this),u=JJ.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,A){var p=u.getNodeByDataIndex(A),g=p?l[p.depth]:null;return d.parentModel=g||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Va("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=HQ(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Fe(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=st(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){iMe(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:xe.size.l,top:xe.size.xxxl,right:xe.size.l,bottom:xe.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:xe.size.m,emptyItemWidth:25,itemStyle:{color:xe.color.backgroundShade,textStyle:{color:xe.color.secondary}},emphasis:{itemStyle:{color:xe.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:xe.color.
125neutral00,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:xe.color.neutral00,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 aMe(t){var e=0;ee(t.children,function(n){aMe(n);var i=n.value;je(i)&&(i=i[0]),e+=i});var r=t.value;je(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),je(t.value)?t.value[0]=r:t.value=r}function B0t(t,e){var r=Kn(e.get("color")),n=Kn(e.get(["aria","decal","decals"]));if(r){t=t||[];var i,a;ee(t,function(s){var l=new wr(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")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),t}}var D0t=8,kde=8,q8=5,M0t=(function(){function t(e){this.group=new xt,e.add(this.group)}return t.prototype.render=function(e,r,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f=uo(e,r).refContainer,d={left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},A={emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=gi(d,f);this._prepare(n,A,u),this._renderContent(e,A,p,s,l,u,c,i),yQ(o,d,f)}},t.prototype._prepare=function(e,r,n){for(var i=e;i;i=i.parentNode){var a=io(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+D0t*2,r.emptyItemWidth);r.totalWidth+=s+kde,r.renderList.push({node:i,text:a,width:s})}},t.prototype._renderContent=function(e,r,n,i,a,o,s,l){for(var u=0,c=r.emptyItemWidth,f=e.get(["breadcrumb","height"]),d=r.totalWidth,A=r.renderList,p=a.getModel("itemStyle").getItemStyle(),g=A.length-1;g>=0;g--){var m=A[g],y=m.node,b=m.width,x=m.text;d>n.width&&(d-=b-c,b=c,x=null);var T=new Ns({shape:{points:L0t(u,0,b,f,g===A.length-1,g===0)},style:Ct(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new Nr({style:Gn(o,{text:x})}),textConfig:{position:"inside"},z2:fE*1e4,onclick:lr(l,y)});T.disableLabelAnimation=!0,T.getTextContent().ensureState("emphasis").style=Gn(s,{text:x}),T.ensureState("emphasis").style=p,Ti(T,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(T),R0t(T,e,y),u+=b+kde}},t.prototype.remove=function(){this.group.removeAll()},t})();function L0t(t,e,r,n,i,a){var o=[[i?t:t-q8,e],[t+r,e],[t+r,e+n],[i?t:t-q8,e+n]];return!a&&o.splice(2,0,[t+r+q8,e+n/2]),!i&&o.push([t,e+n/2]),o}function R0t(t,e,r){It(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&HQ(r,e)}}var I0t=(function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:i,easing:a}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t})();function O0t(){return new I0t}var PR=Math.max,hH=Math.min,tee=ee,oMe=["itemStyle","borderWidth"],P0t=["itemStyle","gapWidth"],k0t=["upperLabel","show"],N0t=["upperLabel","height"];const F0t={seriesType:"treemap",reset:function(t,e,r,n){var i=t.option,a=uo(t,r).refContainer,o=gi(t.getBoxLayoutParams(),a),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=OR(n,l,t),c=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,f=t.getViewRoot(),d=rMe(f);if(s!=="treemapMove"){var A=!1,p=s==="treemapZoomToNode"?(A=!0,V0t(t,u,f,o)):c?(A=!0,Fe({},c)):Fe({},o);if(A){var g=cMe(o,p);g=fMe(g,t),p.width=o.width*g,p.height=o.height*g}var m=i.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var y={squareRatio:i.squareRatio,sort:m,leafDepth:i.leafDepth};f.hostTree.clearLayouts();var b={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};f.setLayout(b),sMe(f,y,!1,0),b=f.getLayout(),tee(d,function(T,B){var R=(d[B+1]||f).getValue();T.setLayout(Fe({dataExtent:[R,R],borderWidth:0,upperHeight:0},b))})}var x=t.getData().tree.root;x.setLayout(G0t(o,c,u),!0),t.setLayoutInfo(o),lMe(x,new St(-o.x,-o.y,r.getWidth(),r.getHeight()),d,f,0)}};function sMe(t,e,r,n){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(oMe),u=s.get(P0t)/2,c=uMe(s),f=Math.max(l,c),d=l-u,A=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=PR(i-2*d,0),a=PR(a-d-A,0);var p=i*a,g=U0t(t,s,p,e,r,n);if(g.length){var m={x:d,y:A,width:i,height:a},y=hH(i,a),b=1/0,x=[];x.area=0;for(var T=0,B=g.length;T<B;){var R=g[T];x.push(R),x.area+=R.getLayout().area;var I=z0t(x,y,e.squareRatio);I<=b?(T++,b=I):(x.area-=x.pop().getLayout().area,Nde(x,y,m,u,!1),y=hH(m.width,m.height),x.length=x.area=0,b=1/0)}if(x.length&&Nde(x,y,m,u,!0),!r){var N=s.get("childrenVisibleMin");N!=null&&p<N&&(r=!0)}for(var T=0,B=g.length;T<B;T++)sMe(g[T],e,r,n+1)}}}function U0t(t,e,r,n,i,a){var o=t.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return t.viewChildren=[];o=ln(o,function(A){return!A.isRemoved()}),Q0t(o,s);var u=j0t(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=H0t(e,r,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*r;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function H0t(t,e,r,n,i){if(!n)return r;for(var a=t.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*e<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function Q0t(t,e){return e&&t.sort(function(r,n){var i=e==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?e==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),t}function j0t(t,e,r){for(var n=0,i=0,a=e.length;i<a;i++)n+=e[i].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&r?(s=[e[e.length-1].getValue(),e[0].getValue()],r==="asc"&&s.reverse()):(s=Cs(),tee(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function z0t(t,e,r){for(var n=0,i=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=t.area*t.area,u=e*e*r;return l?PR(u*n/l,l/(u*i)):1/0}function Nde(t,e,r,n,i){var a=e===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=e?t.area/e:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=t.length;f<d;f++){var A=t[f],p={},g=c?A.getLayout().area/c:0,m=p[l[o]]=PR(c-2*n,0),y=r[s[a]]+r[l[a]]-u,b=f===d-1||y<g?y:g,x=p[l[a]]=PR(b-2*n,0);
125p[s[o]]=r[s[o]]+hH(n,m/2),p[s[a]]=u+hH(n,x/2),u+=b,A.setLayout(p,!0)}r[s[o]]+=c,r[l[o]]-=c}function V0t(t,e,r,n){var i=(e||{}).node,a=n.width,o=n.height,s=Fe({},n);if(!i||i===r)return s;for(var l,u=a*o,c=u*t.option.zoomToNodeRatio;l=i.parentNode;){for(var f=0,d=l.children,A=0,p=d.length;A<p;A++)f+=d[A].getValue();var g=i.getValue();if(g===0)return s;c*=f/g;var m=l.getModel(),y=m.get(oMe),b=Math.max(y,uMe(m));c+=4*y*y+(3*y+b)*Math.pow(c,.5),c>lR&&(c=lR),i=l}c<u&&(c=u);var x=Math.pow(c/u,.5);return{width:a*x,height:o*x}}function G0t(t,e,r){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function lMe(t,e,r,n,i){var a=t.getLayout(),o=r[i],s=o&&o===t;if(!(o&&!s||i===r.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new St(e.x-a.x,e.y-a.y,e.width,e.height);tee(t.viewChildren||[],function(u){lMe(u,l,r,n,i+1)})}}function uMe(t){return t.get(k0t)?t.get(N0t):0}function cMe(t,e){return e.width/t.width||e.height/t.height||1}function fMe(t,e){return WJ(t,e.get("scaleLimit",!0))}var pY=xt,Fde=fr,Ude=3,Hde="label",Qde="upperLabel",K0t=fE*10,W0t=fE*2,Y0t=fE*3,C_=jb([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),jde=function(t){var e=C_(t);return e.stroke=e.fill=e.lineWidth=null,e},AH=qt(),$0t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._state="ready",r._storage=GD(),r}return e.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(zt(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=OR(a,s,r),u=a&&a.type,c=r.layoutInfo,f=!this._oldTree,d=this._storage,A=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,p=this._giveContainerGroup(c),g=r.get("animation"),m=this._doRender(p,r,A);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,m,r,A):m.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},e.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new pY,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},e.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=GD(),l=GD(),u=this._storage,c=[];function f(m,y,b,x){return Z0t(n,l,u,i,s,c,m,y,b,x)}A(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var d=p(u);return this._oldTree=a,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:g};function A(m,y,b,x,T){x?(y=m,ee(m,function(I,N){!I.isRemoved()&&R(N,N)})):new vg(y,m,B,B).add(R).update(R).remove(lr(R,null)).execute();function B(I){return I.getId()}function R(I,N){var F=I!=null?m[I]:null,Q=N!=null?y[N]:null,j=f(F,Q,b,T);j&&A(F&&F.viewChildren||[],Q&&Q.viewChildren||[],j,x,T+1)}}function p(m){var y=GD();return m&&ee(m,function(b,x){var T=y[x];ee(b,function(B){B&&(T.push(B),AH(B).willDelete=!0)})}),y}function g(){ee(d,function(m){ee(m,function(y){y.parent&&y.parent.remove(y)})}),ee(c,function(m){m.invisible=!0,m.dirty()})}},e.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(mt(o)?0:o)||0,u=(mt(s)?null:s)||"cubicOut",c=O0t();ee(n.willDeleteEls,function(f,d){ee(f,function(A,p){if(!A.invisible){var g=A.parent,m,y=AH(g);if(a&&a.direction==="drillDown")m=g===a.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,x=0;y.willDelete||(b=y.nodeWidth/2,x=y.nodeHeight/2),m=d==="nodeGroup"?{x:b,y:x,style:{opacity:0}}:{shape:{x:b,y:x,width:0,height:0},style:{opacity:0}}}m&&c.add(A,m,l,0,u)}})}),ee(this._storage,function(f,d){ee(f,function(A,p){var g=n.lastsForAnimation[d][p],m={};g&&(A instanceof xt?g.oldX!=null&&(m.x=A.x,m.y=A.y,A.x=g.oldX,A.y=g.oldY):(g.oldShape&&(m.shape=Fe({},A.shape),A.setShape(g.oldShape)),g.fadein?(A.setStyle("opacity",0),m.style={opacity:1}):A.style.opacity!==1&&(m.style={opacity:1})),c.add(A,m,l,0,u))})},this),this._state="animating",c.finished(ot(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(r){var n=this,i=this.seriesModel,a=this._controller;a||(a=this._controller=new Ox(r.getZr()),a.on("pan",ot(this._onPan,this)),a.on("zoom",ot(this._onZoom,this))),a.enable(i.get("roam"),{api:r,zInfo:{component:i},triggerInfo:{roamTrigger:i.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._containerGroup;
125return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},e.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},e.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>Ude||Math.abs(r.dy)>Ude)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new St(l.x,l.y,l.width,l.height),c=o.layoutInfo,f=cMe(c,l),d=f*a;d=fMe(d,o);var A=d/f;n-=c.x,i-=c.y;var p=Si();gh(p,p,[-n,-i]),q5(p,p,[A,A]),gh(p,p,[n,i]),u.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&k3(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new M0t(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(eee(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=GD(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),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:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e})(xn);function GD(){return{nodeGroup:[],background:[],content:[]}}function Z0t(t,e,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var A=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),x=o.viewChildren,T=c.upperHeight,B=x&&x.length,R=d.getModel("itemStyle"),I=d.getModel(["emphasis","itemStyle"]),N=d.getModel(["blur","itemStyle"]),F=d.getModel(["select","itemStyle"]),Q=R.get("borderRadius")||0,j=fe("nodeGroup",pY);if(!j)return;if(l.add(j),j.x=c.x||0,j.y=c.y||0,j.markRedraw(),AH(j).nodeWidth=A,AH(j).nodeHeight=p,c.isAboveViewRoot)return j;var W=fe("background",Fde,u,W0t);W&&te(j,W,B&&c.upperLabelHeight);var V=d.getModel("emphasis"),Y=V.get("focus"),G=V.get("blurScope"),K=V.get("disabled"),X=Y==="ancestor"?o.getAncestorsIndices():Y==="descendant"?o.getDescendantIndices():Y;if(B)fR(j)&&X_(j,!1),W&&(X_(W,!K),f.setItemGraphicEl(o.dataIndex,W),yW(W,X,G));else{var q=fe("content",Fde,u,Y0t);q&&ce(j,q),W.disableMorphing=!0,W&&fR(W)&&X_(W,!1),X_(j,!K),f.setItemGraphicEl(o.dataIndex,j);var ne=d.getShallow("cursor");ne&&q.attr("cursor",ne),yW(j,X,G)}return j;function te(ge,be,Ve){var Re=It(be);if(Re.dataIndex=o.dataIndex,Re.seriesIndex=t.seriesIndex,be.setShape({x:0,y:0,width:A,height:p,r:Q}),m)he(be);else{be.invisible=!1;var Se=o.getVisual("style"),nt=Se.stroke,qe=jde(R);qe.fill=nt;var tt=C_(I);
125tt.fill=I.get("borderColor");var lt=C_(N);lt.fill=N.get("borderColor");var ct=C_(F);if(ct.fill=F.get("borderColor"),Ve){var Ze=A-2*g;ve(be,nt,Se.opacity,{x:g,y:0,width:Ze,height:T})}else be.removeTextContent();be.setStyle(qe),be.ensureState("emphasis").style=tt,be.ensureState("blur").style=lt,be.ensureState("select").style=ct,zb(be)}ge.add(be)}function ce(ge,be){var Ve=It(be);Ve.dataIndex=o.dataIndex,Ve.seriesIndex=t.seriesIndex;var Re=Math.max(A-2*g,0),Se=Math.max(p-2*g,0);if(be.culling=!0,be.setShape({x:g,y:g,width:Re,height:Se,r:Q}),m)he(be);else{be.invisible=!1;var nt=o.getVisual("style"),qe=nt.fill,tt=jde(R);tt.fill=qe,tt.decal=nt.decal;var lt=C_(I),ct=C_(N),Ze=C_(F);ve(be,qe,nt.opacity,null),be.setStyle(tt),be.ensureState("emphasis").style=lt,be.ensureState("blur").style=ct,be.ensureState("select").style=Ze,zb(be)}ge.add(be)}function he(ge){!ge.invisible&&a.push(ge)}function ve(ge,be,Ve,Re){var Se=d.getModel(Re?Qde:Hde),nt=io(d.get("name"),null),qe=Se.getShallow("show");Do(ge,so(d,Re?Qde:Hde),{defaultText:qe?nt:null,inheritColor:be,defaultOpacity:Ve,labelFetcher:t,labelDataIndex:o.dataIndex});var tt=ge.getTextContent();if(tt){var lt=tt.style,ct=BI(lt.padding||0);Re&&(ge.setTextConfig({layoutRect:Re}),tt.disableLabelLayout=!0),tt.beforeUpdate=function(){var Jt=Math.max((Re?Re.width:ge.shape.width)-ct[1]-ct[3],0),Sn=Math.max((Re?Re.height:ge.shape.height)-ct[0]-ct[2],0);(lt.width!==Jt||lt.height!==Sn)&&tt.setStyle({width:Jt,height:Sn})},lt.truncateMinChar=2,lt.lineOverflow="truncate",ae(lt,Re,c);var Ze=tt.getState("emphasis");ae(Ze?Ze.style:null,Re,c)}}function ae(ge,be,Ve){var Re=ge?ge.text:null;if(!be&&Ve.isLeafRoot&&Re!=null){var Se=t.get("drillDownIcon",!0);ge.text=Se?Se+" "+Re:Re}}function fe(ge,be,Ve,Re){var Se=b!=null&&r[ge][b],nt=i[ge];return Se?(r[ge][b]=null,we(nt,Se)):m||(Se=new be,Se instanceof id&&(Se.z2=X0t(Ve,Re)),Me(nt,Se)),e[ge][y]=Se}function we(ge,be){var Ve=ge[y]={};be instanceof pY?(Ve.oldX=be.x,Ve.oldY=be.y):Ve.oldShape=Fe({},be.shape)}function Me(ge,be){var Ve=ge[y]={},Re=o.parentNode,Se=be instanceof xt;if(Re&&(!n||n.direction==="drillDown")){var nt=0,qe=0,tt=i.background[Re.getRawIndex()];!n&&tt&&tt.oldShape&&(nt=tt.oldShape.width,qe=tt.oldShape.height),Se?(Ve.oldX=0,Ve.oldY=qe):Ve.oldShape={x:nt,y:qe,width:0,height:0}}Ve.fadein=!Se}}function X0t(t,e){return t*K0t+e}var kR=ee,q0t=Tt,pH=-1,Bo=(function(){function t(e){var r=e.mappingMethod,n=e.type,i=this.option=vt(e);this.type=n,this.mappingMethod=r,this._normalizeData=twt[r];var a=t.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(J8(i),J0t(i)):r==="category"?i.categories?ewt(i):J8(i,!0):(Ps(r!=="linear"||i.dataExtent),J8(i))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return ot(this._normalizeData,this)},t.listVisualTypes=function(){return Cr(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){Tt(e)?ee(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var i,a=je(e)?[]:Tt(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var r={},n;return e&&kR(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(r[a]=e[a],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(je(e))e=e.slice();else if(q0t(e)){var r=[];kR(e,function(n,i){r.push(i)}),e=r}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===e||et(l)&&l===e+"")return o;n&&d(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(cF(f[1],e,c[1]))return o}else if(c[1]===1/0){if(cF(f[0],c[0],e))return o}else if(cF(f[0],c[0],e)&&cF(f[1],e,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return e===1/0?r.length-1:e===-1/0?0:i;function d(A,p){var g=Math.abs(A-e);g<a&&(a=g,i=p)}},t.visualHandlers={color:{applyVisual:KD("color"),getColorMapper:function(){var e=this.option;return ot(e.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),kM.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=vL(r,e.parsedVisual,i),a?i:Yf(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Yf(vL(e,this.option.parsedVisual),"rgba")},category:kM,piecewise:function(e,r){var n=gY.call(this,r);return n==null&&(n=Yf(vL(e,this.option.parsedVisual),"rgba")),n},fixed:T_}},colorHue:uF(function(e,r){return $v(e,r)}),colorSaturation:uF(function(e,r){return $v(e,null,r)}),colorLightness:uF(function(e,r){return $v(e,null,null,r)}),colorAlpha:uF(function(e,r){return iR(e,r)}),decal:{applyVisual:KD("decal"),_normalizedToVisual:{linear:null,category:kM,piecewise:null,fixed:null}},opacity:{applyVisual:KD("opacity"),_normalizedToVisual:vY([0,1])},liftZ:{applyVisual:KD("liftZ"),_normalizedToVisual:{linear:T_,category:T_,piecewise:T_,fixed:T_}},symbol:{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:zde,category:kM,piecewise:function(e,r){var n=gY.call(this,r);return n==null&&(n=zde.call(this,e)),n},fixed:T_}},symbolSize:{applyVisual:KD("symbolSize"),_normalizedToVisual:vY([0,1])}},t})();function J0t(t){var e=t.pieceList;t.hasSpecialVisual=!1,ee(e,function(r,n){r.originIndex=n,r.visual!=null&&(t.hasSpecialVisual=!0)})}
125function ewt(t){var e=t.categories,r=t.categoryMap={},n=t.visual;if(kR(e,function(o,s){r[o]=s}),!je(n)){var i=[];Tt(n)?kR(n,function(o,s){var l=r[s];i[l??pH]=o}):i[pH]=n,n=dMe(t,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete r[e[a]],e.pop())}function J8(t,e){var r=t.visual,n=[];Tt(r)?kR(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(t.type)&&(n[1]=n[0]),dMe(t,n)}function uF(t){return{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("color",t(r("color"),i))},_normalizedToVisual:vY([0,1])}}function zde(t){var e=this.option.visual;return e[Math.round(Jr(t,[0,1],[0,e.length-1],!0))]||{}}function KD(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function kM(t){var e=this.option.visual;return e[this.option.loop&&t!==pH?t%e.length:t]}function T_(){return this.option.visual[0]}function vY(t){return{linear:function(e){return Jr(e,t,this.option.visual,!0)},category:kM,piecewise:function(e,r){var n=gY.call(this,r);return n==null&&(n=Jr(e,t,this.option.visual,!0)),n},fixed:T_}}function gY(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=Bo.findPieceIndex(t,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function dMe(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=ze(e,function(r){var n=_l(r);return n||[0,0,0,1]})),e}var twt={linear:function(t){return Jr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=Bo.findPieceIndex(t,e,!0);if(r!=null)return Jr(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??pH},fixed:Ki};function cF(t,e,r){return t?e<=r:e<r}var rwt="itemStyle",hMe=qt();const nwt={seriesType:"treemap",reset:function(t){var e=t.getData().tree,r=e.root;r.isRemoved()||AMe(r,{},t.getViewRoot().getAncestors(),t)}};function AMe(t,e,r,n){var i=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(rwt),l=iwt(s,e,n),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=Vde(l),c=awt(f,d)),u.stroke=c;var A=t.viewChildren;if(!A||!A.length)d=Vde(l),u.fill=d;else{var p=owt(t,i,a,s,l,A);ee(A,function(g,m){if(g.depth>=r.length||g===r[g.depth]){var y=swt(i,l,g,m,p,n);AMe(g,y,r,n)}})}}}function iwt(t,e,r){var n=Fe({},e),i=r.designatedVisualItemStyle;return ee(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function Vde(t){var e=eG(t,"color");if(e){var r=eG(t,"colorAlpha"),n=eG(t,"colorSaturation");return n&&(e=$v(e,null,null,n)),r&&(e=iR(e,r)),e}}function awt(t,e){return e!=null?$v(e,null,null,t):null}function eG(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function owt(t,e,r,n,i,a){if(!(!a||!a.length)){var o=tG(e,"color")||i.color!=null&&i.color!=="none"&&(tG(e,"colorAlpha")||tG(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.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:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Bo(f);return hMe(d).drColorMappingBy=c,d}}}function tG(t,e){var r=t.get(e);return je(r)&&r.length?{name:e,range:r}:null}function swt(t,e,r,n,i,a){var o=Fe({},e);if(i){var s=i.type,l=s==="color"&&hMe(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}function lwt(t){t.registerSeriesModel(E0t),t.registerChartView($0t),t.registerVisual(nwt),t.registerLayout(F0t),T0t(t)}function WS(t){return"_EC_"+t}var uwt=(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,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(!n[WS(e)]){var i=new E_(e,r);return i.hostGraph=this,this.nodes.push(i),n[WS(e)]=i,i}},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[WS(e)]},t.prototype.addEdge=function(e,r,n){var i=this._nodesMap,a=this._edgesMap;if(Hr(e)&&(e=this.nodes[e]),Hr(r)&&(r=this.nodes[r]),e instanceof E_||(e=i[WS(e)]),r instanceof E_||(r=i[WS(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new pMe(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof E_&&(e=e.id),r instanceof E_&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(r,n[a],a)},t.prototype.eachEdge=function(e,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(r,n[a],a)},t.prototype.breadthFirstTraverse=function(e,r,n,i){if(r instanceof E_||(r=this._nodesMap[WS(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],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,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},t.prototype.clone=function(){for(var e=new t(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;
125i++)e.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t})(),E_=(function(){function t(e,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=r??-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 r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=st(),r=st(),n=0,i=this.edges.length;n<i;n++){var a=this.edges[n];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var o=[a.node1],s=[a.node2],l=0;l<o.length;){var u=o[l];l++,r.set(u.dataIndex,!0);for(var c=u.inEdges,f=0,d=c.length,A=void 0,p=void 0;f<d;f++)A=c[f],p=A.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),o.push(A.node1))}for(l=0;l<s.length;){var g=s[l];l++,r.set(g.dataIndex,!0);for(var m=g.outEdges,f=0,y=m.length,b=void 0,x=void 0;f<y;f++)b=m[f],x=b.dataIndex,x>=0&&!e.hasKey(x)&&(e.set(x,!0),s.push(b.node2))}}}return{edge:e.keys(),node:r.keys()}},t})(),pMe=(function(){function t(e,r,n){this.dataIndex=-1,this.node1=e,this.node2=r,this.dataIndex=n??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=st(),r=st();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,c=void 0,f=void 0;l<u;l++)c=o.inEdges[l],f=c.dataIndex,f>=0&&!e.hasKey(f)&&(e.set(f,!0),n.push(c.node1))}for(a=0;a<i.length;){var d=i[a];a++,r.set(d.dataIndex,!0);for(var A=d.outEdges,l=0,u=A.length,p=void 0,g=void 0;l<u;l++)p=d.outEdges[l],g=p.dataIndex,g>=0&&!e.hasKey(g)&&(e.set(g,!0),i.push(p.node2))}return{edge:e.keys(),node:r.keys()}},t})();function vMe(t,e){return{getValue:function(r){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},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)}}}Da(E_,vMe("hostGraph","data"));Da(pMe,vMe("hostGraph","edgeData"));function ree(t,e,r,n,i){for(var a=new uwt(n),o=0;o<t.length;o++)a.addNode(gl(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,d=c.target;a.addEdge(f,d,u)&&(l.push(c),s.push(gl(io(c.id,null),f+" > "+d)),u++)}var A=r.get("coordinateSystem"),p;if(A==="cartesian2d"||A==="polar"||A==="matrix")p=yp(t,r);else{var g=yE.get(A),m=g?g.dimensions||[]:[];zt(m,"value")<0&&m.concat(["value"]);var y=xE(t,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;p=new bl(y,r),p.initData(t)}var b=new bl(["value"],r);return b.initData(l,s),i&&i(p,b),eMe({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var mY="-->",QQ=function(t){return t.get("autoCurveness")||null},gMe=function(t,e){var r=QQ(t),n=20,i=[];if(Hr(r))n=r;else if(je(r)){t.__curvenessList=r;return}e>n&&(n=e);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=i},NR=function(t,e,r){var n=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[r.uid,n,i].join(mY)},mMe=function(t){var e=t.split(mY);return[e[0],e[2],e[1]].join(mY)},cwt=function(t,e){var r=NR(t.node1,t.node2,e);return e.__edgeMap[r]},fwt=function(t,e){var r=yY(NR(t.node1,t.node2,e),e),n=yY(NR(t.node2,t.n
125ode1,e),e);return r+n},yY=function(t,e){var r=e.__edgeMap;return r[t]?r[t].length:0};function dwt(t){QQ(t)&&(t.__curvenessList=[],t.__edgeMap={},gMe(t))}function hwt(t,e,r,n){if(QQ(r)){var i=NR(t,e,r),a=r.__edgeMap,o=a[mMe(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function nee(t,e,r,n){var i=QQ(e),a=je(i);if(!i)return null;var o=cwt(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=fwt(t,e);gMe(e,u),t.lineStyle=t.lineStyle||{};var c=NR(t.node1,t.node2,e),f=e.__curvenessList,d=a||u%2?0:1;if(o.isForward)return f[d+s];var A=mMe(c),p=yY(A,e),g=f[s+p+d];return n?a?i&&i[0]===0?(p+d)%2?g:-g:((p%2?0:1)+d)%2?g:-g:(p+d)%2?g:-g:f[s+p+d]}var cu="graph",Awt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new DE(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Ub(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){dwt(this);var s=ree(a,i,this,!0,l);return ee(s.edges,function(u){hwt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=wr.prototype.getModel;function d(p,g){var m=f.call(this,p,g);return m.resolveParentPath=A,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=A,p.getModel=d,p});function A(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},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(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Va("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=VEe({series:this,dataIndex:r,multipleSeries:n});return f},e.prototype._updateCategoriesData=function(){var r=ze(this.option.categories||[],function(i){return i.value!=null?i:Fe({value:0},i)}),n=new bl(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var r=this.coordinateSystem;return UDe(r)&&r},e.type="series."+cu,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:xe.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:xe.color.primary}}},e})(On);function fF(t){return t instanceof Array||(t=[t,t]),t}var pwt=lo(cu,vwt);function vwt(t){t.eachSeriesByType(cu,function(e){var r=e.getGraph(),n=e.getEdgeData(),i=fF(e.get("edgeSymbol")),a=fF(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=fF(s.getShallow("symbol",!0)),c=fF(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(Fe(d,f),d.stroke){case"source":{var A=l.node1.getVisual("style");d.stroke=A&&A.fill;break}case"target":{var A=l.node2.getVisual("style");d.stroke=A&&A.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])})})}function yMe(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var r=t.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),iee(r,t)}}function iee(t,e){t.eachEdge(function(r,n){var i=Ju(r.getModel().get(["lineStyle","curveness"]),-nee(r,e,n,!0),0),a=VA(r.node1.getLayout()),o=VA(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}var gwt=lo(cu,mwt);function mwt(t,e){t.eachSeriesByType(cu,function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];ee(i.dimensions,function(d){o=o.concat(a.mapDimensionsAll(d))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;
125c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}iee(a.graph,r)}else(!n||n==="none")&&yMe(r)})}function NM(t){var e=t.coordinateSystem;return UDe(e)?VDe(e,t):1}function FM(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Gde=Math.PI,rG=[];function aee(t,e,r,n){var i=t.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var d=i.pointToData(n),A=d[0],p=d[1],g=[A-l,p-u];_x(g,g),dL(g,g,c),r.setLayout([l+g[0],u+g[1]],!0);var m=t.get(["circular","rotateLabel"]);wMe(r,m,l,u)}ywt[e](t,s,o,c,l,u,f),s.eachEdge(function(y,b){var x=Ju(y.getModel().get(["lineStyle","curveness"]),nee(y,t,b),0),T=VA(y.node1.getLayout()),B=VA(y.node2.getLayout()),R,I=(T[0]+B[0])/2,N=(T[1]+B[1])/2;+x&&(x*=3,R=[l*x+I*(1-x),u*x+N*(1-x)]),y.setLayout([T,B,R])})}}}var ywt={value:function(t,e,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=d})},symbolSize:function(t,e,r,n,i,a,o){var s=0;rG.length=o;var l=NM(t);e.eachNode(function(f){var d=FM(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var A=Math.asin(d/2/n);isNaN(A)&&(A=Gde/2),rG[f.dataIndex]=A,s+=A*2});var u=(2*Gde-s)/o/2,c=0;e.eachNode(function(f){var d=u+rG[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=d})}};function wMe(t,e,r,n){var i=t.getGraphicEl();if(i){var a=t.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");Fe(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var wwt=lo(cu,_wt);function _wt(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&aee(e,"symbolSize")})}var YS=h3;function bwt(t,e,r){for(var n=t,i=e,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=y0(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=VA(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,A=d,p,g;return{warmUp:function(){A=d*.8},setFixed:function(m){n[m].fixed=!0},setUnfixed:function(m){n[m].fixed=!1},beforeStep:function(m){p=m},afterStep:function(m){g=m},step:function(m){p&&p(n,i);for(var y=[],b=n.length,x=0;x<i.length;x++){var T=i[x];if(!T.ignoreForceLayout){var B=T.n1,R=T.n2;wy(y,R.p,B.p);var I=tR(y)-T.d,N=R.w/(B.w+R.w);isNaN(N)&&(N=0),_x(y,y),!B.fixed&&YS(B.p,B.p,y,N*I*A),!R.fixed&&YS(R.p,R.p,y,-(1-N)*I*A)}}for(var x=0;x<b;x++){var F=n[x];F.fixed||(wy(y,l,F.p),YS(F.p,F.p,y,u*A))}for(var x=0;x<b;x++)for(var B=n[x],Q=x+1;Q<b;Q++){var R=n[Q];wy(y,R.p,B.p);var I=tR(y);I===0&&(Wv(y,Math.random()-.5,Math.random()-.5),I=1);var j=(B.rep+R.rep)/I/I;!B.fixed&&YS(B.pp,B.pp,y,j),!R.fixed&&YS(R.pp,R.pp,y,-j)}for(var W=[],x=0;x<b;x++){var F=n[x];F.fixed||(wy(W,F.p,F.pp),YS(F.p,F.p,W,A),bs(F.pp,F.p))}A=A*.992;var V=A<.01;g&&g(n,i,V),m&&m(V)}}}var xwt=lo(cu,Swt);function Swt(t){t.eachSeriesByType(cu,function(e){var r=e.coordinateSystem;if(!(r&&r.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?a.each(function(x){var T=a.getId(x);a.setItemLayout(x,n[T]||[NaN,NaN])}):!l||l==="none"?yMe(e):l==="circular"&&aee(e,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),A=je(f)?f:[f,f],p=je(d)?d:[d,d];p=[p[1],p[0]];var g=a.mapArray("value",function(x,T){var B=a.getItemLayout(T),R=Jr(x,u,A);return isNaN(R)&&(R=(A[0]+A[1])/2),{w:R,rep:R,fixed:a.getItemModel(T).get("fixed"),p:!B||isNaN(B[0])||isNaN(B[1])?null:B}}),m=o.mapArray("value",function(x,T){var B=i.getEdgeByIndex(T),R=Jr(x,c,p);isNaN(R)&&(R=(p[0]+p[1])/2);var I=B.getModel(),N=Ju(B.getModel().get(["lineStyle","curveness"]),-nee(B,e,T,!0),0);return{n1:g[B.node1.dataIndex],n2:g[B.node2.dataIndex],d:R,curveness:N,ignoreForceLayout:I.get("ignoreForceLayout")}}
125),y=r.getBoundingRect(),b=bwt(g,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(x,T){for(var B=0,R=x.length;B<R;B++)x[B].fixed&&bs(x[B].p,i.getNodeByIndex(B).getLayout())}),b.afterStep(function(x,T,B){for(var R=0,I=x.length;R<I;R++)x[R].fixed||i.getNodeByIndex(R).setLayout(x[R].p),n[a.getId(R)]=x[R].p;for(var R=0,I=T.length;R<I;R++){var N=T[R],F=i.getEdgeByIndex(R),Q=N.n1.p,j=N.n2.p,W=F.getLayout();W=W?W.slice():[],W[0]=W[0]||[],W[1]=W[1]||[],bs(W[0],Q),bs(W[1],j),+N.curveness&&(W[2]=[(Q[0]+j[0])/2-(Q[1]-j[1])*N.curveness,(Q[1]+j[1])/2-(j[0]-Q[0])*N.curveness]),F.setLayout(W)}}),e.forceLayout=b,e.preservedPoints=n,b.step()}else e.forceLayout=null})}function Cwt(t,e,r){var n=uo(t,e),i=Fe(t.getBoxLayoutParams(),{aspect:r}),a=gi(i,n.refContainer);return cEe(t,a,r)}function Twt(t,e){var r=[];return t.eachSeriesByType("graph",function(n){FI({targetModel:n,coordSysType:"view",coordSysProvider:i,isDefaultDataCoordSys:!0});function i(){var a=n.getData(),o=a.mapArray(function(p){var g=a.getItemModel(p);return[+g.get("x"),+g.get("y")]}),s=[],l=[];cQ(o,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=Cwt(n,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],A=$J(n,e,s[0],s[1],f,d,c);return r.push(A),A}}),r}var Kde=Ca.prototype,nG=hE.prototype,_Me=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(_Me);function iG(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var bMe=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:xe.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new _Me},e.prototype.buildPath=function(r,n){iG(n)?Kde.buildPath.call(this,r,n):nG.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return iG(this.shape)?Kde.pointAt.call(this,r):nG.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,i=iG(n)?[n.x2-n.x1,n.y2-n.y1]:nG.tangentAt.call(this,r);return _x(i,i)},e})(_r),aG=["fromSymbol","toSymbol"];function Wde(t){return"_"+t+"Type"}function Yde(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=bE(i),u=Lx(o||0,l);return n+l+u+(a||"")+(s||"")}function $de(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=bE(i),u=Lx(o||0,l),c=Ba(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=t,c}}function Ewt(t){var e=new bMe({name:"line",subPixelOptimize:!0});return wY(e.shape,t),e}function wY(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 r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var oee=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this)||this;return a._createLine(r,n,i),a}return e.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=r.getItemVisual(n,"z2"),l=Ewt(o);l.shape.percent=0,ui(l,{z2:ft(s,0),shape:{percent:1}},a,n),this.add(l),ee(aG,function(u){var c=$de(u,r,n);this.add(c),this[Wde(u)]=Yde(u,r,n)},this),this._updateCommonStl(r,n,i)},e.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};wY(l.shape,s),Wr(o,l,a,n),ee(aG,function(u){var c=Yde(u,r,n),f=Wde(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=$de(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=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,A=i&&i.blurScope;if(!i||r.hasItemOption){var p=r.getItemModel(n),g=p.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),d=g.get("focus"),A=g.get("blurScope"),c=so(p)}var m=r.getItemVisual(n,"style"),y=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,ee(aG,function(R){var I=this.childOfName(R);if(I){I.setColor(y),I.style.opacity=m.opacity;for(var N=0;N<uu.length;N++){var F=uu[N],Q=o.getState(F);if(Q){var j=Q.style||{}
125,W=I.ensureState(F),V=W.style||(W.style={});j.stroke!=null&&(V[I.__isEmptyBrush?"stroke":"fill"]=j.stroke),j.opacity!=null&&(V.opacity=j.opacity)}}I.markRedraw()}},this);var b=a.getRawValue(n);Do(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(R,I){return a.getFormattedLabel(R,I,r.dataType)}},inheritColor:y||xe.color.neutral99,defaultOpacity:m.opacity,defaultText:(b==null?r.getName(n):isFinite(b)?Kr(b,10):b)+""});var x=this.getTextContent();if(x){var T=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=T.get("position")||"middle";var B=T.get("distance");je(B)||(B=[B,B]),x.__labelDistance=B}this.setTextConfig({position:null,local:!0,inside:!1}),Ti(this,d,A,f)},e.prototype.highlight=function(){Ag(this)},e.prototype.downplay=function(){pg(this)},e.prototype.updateLayout=function(r,n){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(n))},e.prototype.setLinePoints=function(r){var n=this.childOfName("line");wY(n.shape,r),n.dirty()},e.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=wy([],f,c);_x(d,d);function A(Q,j){var W=Q.__specifiedRotation;if(W==null){var V=l.tangentAt(j);Q.attr("rotation",(j===1?-1:1)*Math.PI/2-Math.atan2(V[1],V[0]))}else Q.attr("rotation",W)}if(n&&(n.setPosition(c),A(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),A(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var p=void 0,g=void 0,m=a.__labelDistance,y=m[0]*o,b=m[1]*o,x=u/2,T=l.tangentAt(x),B=[T[1],-T[0]],R=l.pointAt(x);B[1]>0&&(B[0]=-B[0],B[1]=-B[1]);var I=T[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var N=-Math.atan2(T[1],T[0]);f[0]<c[0]&&(N=Math.PI+N),a.rotation=N}var F=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":F=-b,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":F=b,g="top";break;default:F=0,g="middle"}switch(a.__position){case"end":a.x=d[0]*y+f[0],a.y=d[1]*b+f[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*y+c[0],a.y=-d[1]*b+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*I+c[0],a.y=c[1]+F,p=T[0]<0?"right":"left",a.originX=-y*I,a.originY=-F;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=R[0],a.y=R[1]+F,p="center",a.originY=-F;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*I+f[0],a.y=f[1]+F,p=T[0]>=0?"right":"left",a.originX=y*I,a.originY=-F;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||p})}},e})(xt),see=(function(){function t(e){this.group=new xt,this._LineCtor=e||oee}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=Zde(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Zde(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[];function i(l){!l.isGroup&&!Bwt(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=pE)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(oG(o)){var s=new this._LineCtor(r,a,this._seriesScope);s.traverse(i),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){w0(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,n){var i=e.getItemLayout(r);if(oG(i)){var a=new this._LineCtor(e,r,n);e.setItemGraphicEl(r,a),this.group.add(a)}},t.prototype._doUpdate=function(e,r,n,i,a){var o=e.getItemGraphicEl(n);if(!oG(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},t})();function Bwt(t){return t.animators&&t.animators.length>0}function Zde(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:so(e)}}function Xde(t){return isNaN(t[0])||isNaN(t[1])}function oG(t){return t&&!Xde(t[0])&&!Xde(t[1])}var sG=[],lG=[],uG=[],$S=Yo,cG=Iy,qde=Math.abs;function Jde(t,e,r){for(var n=t[0],i=t[1],a=t[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){sG[0]=$S(n[0],i[0],a[0],c),sG[1]=$S(n[1],i[1],a[1],c);var f=qde(cG(sG,e)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var A=s+u;lG[0]=$S(n[0],i[0],a[0],s),lG[1]=$S(n[1],i[1],a[1],s),uG[0]=$S(n[0],i[0],a[0],A),uG[1]=$S(n[1],i[1],a[1],A);var f=cG(lG,e)-l;if(qde(f)<.01)break;var p=cG(uG,e)-l;u/=2,f<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function fG(t,e){var r=[],n=rR,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[VA(u[0]),VA(u[1])],u[2]&&u.__original.push(VA(u[2])));var d=u.__original;if(u[2]!=null){if(bs(i[0],d[0]),bs(i[1],d[2]),bs(i[2],d[1]),c&&c!=="none"){var A=FM(s.node1),p=Jde(i,d[0],A*e);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var A=FM(s.node2),p=Jde(i,d[1],A*e);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}bs(u[0],i[0]),bs(u[1],i[2]),bs(u[2],i[1])}else{if(bs(a[0],d[0]),bs(a[1],d[1]),wy(o,a[1],a[0]),_x(o,o),c&&c!=="none"){var A=FM(s.node1);h3(a[0],a[0],o,A*e)}if(f&&f!=="none"){var A=FM(s.node2);h3(a[1],a[1],o,-A*e)}bs(u[0],a[0]),bs(u[1],a[1])}})}var xMe=qt();function Dwt(t){if(t)return xMe(t).bridge}function ehe(t,e){t&&(xMe(t).bridge=e)}var Mwt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=cu,r}return e.prototype.init=function(r,n){var i=new GI,a=new see,o=this.group,s=new xt;this._controller=new Ox(n.getZr()),s.add(i.group),s.add(a.group),o.add(s),this._symbolDraw=i,this._lineDraw=a,this._mainGroup=s,this._firstRen
125der=!0},e.prototype.render=function(r,n,i){var a=this,o=fH(r),s=!1;this._model=r,this._api=i,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(i);var c=this._symbolDraw,f=this._lineDraw;o&&a0(l,cp,o,this._firstRender?null:r),fG(r.getGraph(),NM(r));var d=r.getData();c.updateData(d);var A=r.getEdgeData();f.updateData(A),this._updateNodeAndLinkScale(),o&&UQ(r,i,this._controller,function(T,B,R){return r.coordinateSystem.containPoint([B,R])},null),clearTimeout(this._layoutTimeout);var p=r.forceLayout,g=r.get(["force","layoutAnimation"]);p&&(s=!0,this._startForceLayoutIteration(p,i,g));var m=r.get("layout");d.graph.eachNode(function(T){var B=T.dataIndex,R=T.getGraphicEl(),I=T.getModel();if(R){R.off("drag").off("dragend");var N=I.get("draggable");N&&R.on("drag",function(Q){switch(m){case"force":p.warmUp(),!a._layouting&&a._startForceLayoutIteration(p,i,g),p.setFixed(B),d.setItemLayout(B,[R.x,R.y]);break;case"circular":d.setItemLayout(B,[R.x,R.y]),T.setLayout({fixed:!0},!0),aee(r,"symbolSize",T,[Q.offsetX,Q.offsetY]),a.updateLayout(r);break;default:d.setItemLayout(B,[R.x,R.y]),iee(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){p&&p.setUnfixed(B)}),R.setDraggable(N,!!I.get("cursor"));var F=I.get(["emphasis","focus"]);F==="adjacency"&&(It(R).focus=T.getAdjacentDataIndices())}}),d.graph.eachEdge(function(T){var B=T.getGraphicEl(),R=T.getModel().get(["emphasis","focus"]);B&&R==="adjacency"&&(It(B).focus={edge:[T.dataIndex],node:[T.node1.dataIndex,T.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),b=d.getLayout("cx"),x=d.getLayout("cy");d.graph.eachNode(function(T){wMe(T,y,b,x)}),this._firstRender=!1,s||this._renderThumbnail(r,i,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(r,n,i){var a=this,o=!1;
125(function s(){r.step(function(l){a.updateLayout(a._model),(l||!o)&&(o=!0,a._renderThumbnail(a._model,n,a._symbolDraw,a._lineDraw)),(a._layouting=!l)&&(i?a._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype.__updateOnOwnRoam=function(r,n,i){var a=fH(n);!this._active||!a||(a0(this._mainGroup,cp,a,null),WDe(r)&&(this._updateNodeAndLinkScale(),fG(n.getGraph(),NM(n)),this._lineDraw.updateLayout(),i.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=NM(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(r){this._active&&(fG(r.getGraph(),NM(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var r=this._model,n=r.coordinateSystem;if(n.type==="view"){var i=Dwt(r);if(i)return{bridge:i,coordSys:n}}},e.prototype._updateThumbnailWindow=function(){var r=this._getThumbnailInfo();r&&r.bridge.updateWindow(uH(null,r.coordSys),this._api)},e.prototype._renderThumbnail=function(r,n,i,a){var o=this._getThumbnailInfo();if(o){var s=new xt,l=i.group.children(),u=a.group.children(),c=new xt,f=new xt;s.add(f),s.add(c);for(var d=0;d<l.length;d++){var A=l[d],p=A.children()[0],g=A.x,m=A.y,y=vt(p.shape),b=Fe(y,{width:p.scaleX,height:p.scaleY,x:g-p.scaleX/2,y:m-p.scaleY/2}),x=vt(p.style),T=new p.constructor({shape:b,style:x,z2:151});f.add(T)}for(var d=0;d<u.length;d++){var A=u[d],B=A.children()[0],x=vt(B.style),b=vt(B.shape),R=new bMe({style:x,shape:b,z2:151});c.add(R)}o.bridge.renderContent({api:n,roamType:r.get("roam"),viewportRect:null,group:s,targetTrans:uH(null,o.coordSys)})}},e.type=cu,e})(xn),Lwt=lo(cu,Rwt);function Rwt(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType(cu,function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){Hr(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}var Iwt=lo(cu,Owt);function Owt(t){var e={};t.eachSeriesByType(cu,function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){et(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");Fe(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function Pwt(t){t.registerChartView(Mwt),t.registerSeriesModel(Awt),t.registerProcessor(Lwt),t.registerVisual(Iwt),t.registerVisual(pwt),t.registerLayout(gwt),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,wwt),t.registerLayout(xwt),t.registerCoordinateSystem("graphView",{dimensions:NQ.dimensions,create:Twt}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ki),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ki),YJ(t,sp,cu)}var FR="chord",kwt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this.legendVisualProvider=new DE(ot(this.getData,this),ot(this.getRawData,this))},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links)},e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[];if(a&&i){var o=ree(a,i,this,!0,s);return o.data}function s(l,u){var c=wr.prototype.getModel;function f(A,p){var g=c.call(this,A,p);return g.resolveParentPath=d,g}u.wrapMethod("getItemModel",function(A){return A.resolveParentPath=d,A.getModel=f,A});function d(A){if(A&&(A[0]==="label"||A[1]==="label")){var p=A.slice();return A[0]==="label"?p[0]="edgeLabel":A[1]==="label"&&(p[1]="edgeLabel"),p}return A}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(r,n,i){var a=this.getDataParams(r,i);if(i==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(r),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Va("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}return Va("nameValue",{name:a.name,value:a.value,noValue:a.value==null})},e.prototype.getDataParams=function(r,n){var i=t.prototype.getDataParams.call(this,r,n);if(n==="node"){var a=this.getData(),o=this.getGraph().getNodeByIndex(r);if(i.name==null&&(i.name=a.getName(r)),i.value==null){var s=o.getLayout().value;i.value=s}}return i},e.type="series."+FR,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e})(On),the=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this)||this;
125It(a).dataType="node",a.z2=2;var o=new Nr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.graph.getNodeByIndex(n),l=r.hostModel,u=s.getModel(),c=u.getModel("emphasis"),f=r.getItemLayout(n),d=Fe(UA(u.getModel("itemStyle"),f,!0),f),A=this;if(isNaN(d.startAngle)){A.setShape(d);return}a?A.setShape(d):Wr(A,{shape:d},l,n);var p=Fe(UA(u.getModel("itemStyle"),f,!0),f);o.setShape(p),o.useStyle(r.getItemVisual(n,"style")),oo(o,u),this._updateLabel(l,u,s),r.setItemGraphicEl(n,A),oo(A,u,"itemStyle");var g=c.get("focus");Ti(this,g==="adjacency"?s.getAdjacentDataIndices():g,c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this.getTextContent(),o=i.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),c=n.getModel("label");a.ignore=!c.get("show");var f=so(n),d=i.getVisual("style");Do(a,f,{labelFetcher:{getFormattedLabel:function(b,x,T,B,R,I){return r.getFormattedLabel(b,x,"node",B,Ju(R,f.normal&&f.normal.get("formatter"),n.get("name")),I)}},labelDataIndex:i.dataIndex,defaultText:i.dataIndex+"",inheritColor:d.fill,defaultOpacity:d.opacity,defaultOutsidePosition:"startArc"});var A=c.get("position")||"outside",p=c.get("distance")||0,g;A==="outside"?g=o.r+p:g=(o.r+o.r0)/2,this.textConfig={inside:A!=="outside"};var m=A!=="outside"?c.get("align")||"center":l>0?"left":"right",y=A!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";a.attr({x:l*g+o.cx,y:u*g+o.cy,rotation:0,style:{align:m,verticalAlign:y}})},e})(ks),Nwt=(function(t){Ee(e,t);function e(r,n,i,a){var o=t.call(this)||this;return It(o).dataType="edge",o.updateData(r,n,i,a,!0),o}return e.prototype.buildPath=function(r,n){r.moveTo(n.s1[0],n.s1[1]);var i=.7,a=n.clockwise;r.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!a),r.bezierCurveTo((n.cx-n.s2[0])*i+n.s2[0],(n.cy-n.s2[1])*i+n.s2[1],(n.cx-n.t1[0])*i+n.t1[0],(n.cy-n.t1[1])*i+n.t1[1],n.t1[0],n.t1[1]),r.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!a),r.bezierCurveTo((n.cx-n.t2[0])*i+n.t2[0],(n.cy-n.t2[1])*i+n.t2[1],(n.cx-n.s1[0])*i+n.s1[0],(n.cy-n.s1[1])*i+n.s1[1],n.s1[0],n.s1[1]),r.closePath()},e.prototype.updateData=function(r,n,i,a,o){var s=r.hostModel,l=n.graph.getEdgeByIndex(i),u=l.getLayout(),c=l.node1.getModel(),f=n.getItemModel(l.dataIndex),d=f.getModel("lineStyle"),A=f.getModel("emphasis"),p=A.get("focus"),g=Fe(UA(c.getModel("itemStyle"),u,!0),u),m=this;if(isNaN(g.sStartAngle)||isNaN(g.tStartAngle)){m.setShape(g);return}o?(m.setShape(g),rhe(m,l,r,d)):(ad(m),rhe(m,l,r,d),Wr(m,{shape:g},s,i)),Ti(this,p==="adjacency"?l.getAdjacentDataIndices():p,A.get("blurScope"),A.get("disabled")),oo(m,f,"lineStyle"),n.setItemGraphicEl(l.dataIndex,m)},e})(_r);function rhe(t,e,r,n){var i=e.node1,a=e.node2,o=t.style;t.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=r.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"target":o.fill=r.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"gradient":var l=r.getItemVisual(i.dataIndex,"style").fill,u=r.getItemVisual(a.dataIndex,"style").fill;if(et(l)&&et(u)){var c=t.shape,f=(c.s1[0]+c.s2[0])/2,d=(c.s1[1]+c.s2[1])/2,A=(c.t1[0]+c.t2[0])/2,p=(c.t1[1]+c.t2[1])/2;o.fill=new Tx(f,d,A,p,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var Fwt=Math.PI/180,Uwt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=FR,r}return e.prototype.init=function(r,n){},e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group,l=-r.get("startAngle")*Fwt;if(a.diff(o).add(function(c){var f=a.getItemLayout(c);if(f){var d=new the(a,c,l);It(d).dataIndex=c,s.add(d)}}).update(function(c,f){var d=o.getItemGraphicEl(f),A=a.getItemLayout(c);if(!A){d&&Zv(d,r,f);return}d?d.updateData(a,c,l):d=new the(a,c,l),s.add(d)}).remove(function(c){var f=o.getItemGraphicEl(c);f&&Zv(f,r,c)}).execute(),!o){var u=r.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=it(u[0],i.getWidth()),this.group.originY=it(u[1],i.getHeight()),ui(this.group,{scaleX:1,scaleY:1},r)}this._data=a,this.renderEdges(r,l)},e.prototype.renderEdges=function(r,n){var i=r.getData(),a=r.getEdgeData(),o=this._edgeData,s=this.group;a.diff(o).add(function(l){var u=new Nwt(i,a,l,n);It(u).dataIndex=l,s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,a,l,n),s.add(c)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Zv(u,r,l)}).execute(),this._edgeData=a},e.prototype.dispose=function(){},e.type=FR,e})(xn),dG=Math.PI/180,Hwt=lo(FR,Qwt);function Qwt(t,e){t.eachSeriesByType(FR,function(r){jwt(r,e)})}function jwt(t,e){var r=t.getData(),n=r.graph,i=t.getEdgeData(),a=i.count();if(a){var o=uEe(t,e),s=o.cx,l=o.cy,u=o.r,c=o.r0,f=Math.max((t.get("padAngle")||0)*dG,0),d=Math.max((t.get("minA
125ngle")||0)*dG,0),A=-t.get("startAngle")*dG,p=A+Math.PI*2,g=t.get("clockwise"),m=g?1:-1,y=[A,p];fQ(y,!g);var b=y[0],x=y[1],T=x-b,B=r.getSum("value")===0&&i.getSum("value")===0,R=[],I=0;n.eachEdge(function(q){var ne=B?1:q.getValue("value");B&&(ne>0||d)&&(I+=2);var te=q.node1.dataIndex,ce=q.node2.dataIndex;R[te]=(R[te]||0)+ne,R[ce]=(R[ce]||0)+ne});var N=0;if(n.eachNode(function(q){var ne=q.getValue("value");isNaN(ne)||(R[q.dataIndex]=Math.max(ne,R[q.dataIndex]||0)),!B&&(R[q.dataIndex]>0||d)&&I++,N+=R[q.dataIndex]||0}),!(I===0||N===0)){f*I>=Math.abs(T)&&(f=Math.max(0,(Math.abs(T)-d*I)/I)),(f+d)*I>=Math.abs(T)&&(d=(Math.abs(T)-f*I)/I);var F=(T-f*I*m)/N,Q=0,j=0,W=0;n.eachNode(function(q){var ne=R[q.dataIndex]||0,te=F*(N?ne:1)*m;Math.abs(te)<d?Q+=d-Math.abs(te):(j+=Math.abs(te)-d,W+=Math.abs(te)),q.setLayout({angle:te,value:ne})});var V=!1;if(Q>j){var Y=Q/j;n.eachNode(function(q){var ne=q.getLayout().angle;Math.abs(ne)>=d?q.setLayout({angle:ne*Y,ratio:Y},!0):q.setLayout({angle:d,ratio:d===0?1:ne/d},!0)})}else n.eachNode(function(q){if(!V){var ne=q.getLayout().angle,te=Math.min(ne/W,1),ce=te*Q;ne-ce<d&&(V=!0)}});var G=Q;n.eachNode(function(q){if(!(G<=0)){var ne=q.getLayout().angle;if(ne>d&&d>0){var te=V?1:Math.min(ne/W,1),ce=ne-d,he=Math.min(ce,Math.min(G,Q*te));G-=he,q.setLayout({angle:ne-he,ratio:(ne-he)/ne},!0)}else d>0&&q.setLayout({angle:d,ratio:ne===0?1:d/ne},!0)}});var K=b,X=[];n.eachNode(function(q){var ne=Math.max(q.getLayout().angle,d);q.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:K,endAngle:K+ne*m,clockwise:g},!0),X[q.dataIndex]=K,K+=(ne+f)*m}),n.eachEdge(function(q){var ne=B?1:q.getValue("value"),te=F*(N?ne:1)*m,ce=q.node1.dataIndex,he=X[ce]||0,ve=Math.abs((q.node1.getLayout().ratio||1)*te),ae=he+ve*m,fe=[s+c*Math.cos(he),l+c*Math.sin(he)],we=[s+c*Math.cos(ae),l+c*Math.sin(ae)],Me=q.node2.dataIndex,ge=X[Me]||0,be=Math.abs((q.node2.getLayout().ratio||1)*te),Ve=ge+be*m,Re=[s+c*Math.cos(ge),l+c*Math.sin(ge)],Se=[s+c*Math.cos(Ve),l+c*Math.sin(Ve)];q.setLayout({s1:fe,s2:we,sStartAngle:he,sEndAngle:ae,t1:Re,t2:Se,tStartAngle:ge,tEndAngle:Ve,cx:s,cy:l,r:c,value:ne,clockwise:g}),X[ce]=ae,X[Me]=Ve})}}}function zwt(t){t.registerChartView(Uwt),t.registerSeriesModel(kwt),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Hwt),t.registerProcessor(YI("chord"))}var Vwt=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),Gwt=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new Vwt},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},e})(_r);function Kwt(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=it(r[0],e.getWidth()),s=it(r[1],e.getHeight()),l=it(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function dF(t,e){var r=t==null?"":t+"";return e&&(et(e)?r=e.replace("{value}",r):mt(e)&&(r=e(t))),r}var Wwt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=Kwt(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),A=d?oH:ks,p=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];fQ(y,!l),u=y[0],c=y[1];for(var b=c-u,x=u,T=[],B=0;p&&B<a.length;B++){var R=Math.min(Math.max(a[B][0],0),1);c=u+b*R;var I=new A({shape:{startAngle:x,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});I.setStyle({fill:a[B][1]}),I.setStyle(g.getLineStyle(["color","width"])),T.push(I),x=c}T.reverse(),ee(T,function(F){return s.add(F)});var N=function(F){if(F<=0)return a[0][1];var Q;for(Q=0;Q<a.length;Q++)if(a[Q][0]>=F&&(Q===0?0:a[Q-1][0])<F)return a[Q][1];return a[Q-1][1]};this._renderTicks(r,n,i,N,o,u,c,l,m),this._renderTitleAndDetail(r,n,i,N,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,N,o,u,c,l,m)},e.prototype._renderTicks=function(r,n,i,a,o,s,l,u,c){for(var f=this.group,d=o.cx,A=o.cy,p=o.r,g=+r.get("min"),m=+r.get("max"),y=r.getModel("splitLine"),b=r.getModel("axisTick"),x=r.getModel("axisLabel"),T=r.get("splitNumber"),B=b.get("splitNumber"),R=it(y.get("length"),p),I=it(b.get("length"),p),N=s,F=(l-s)/T,Q=F/B,j=y.getModel("lineStyle").getLineStyle(),W=b.getModel("lineStyle").getLineStyle(),V=y.get("distance"),Y,G,K=0;K<=T;K++){if(Y=Math.cos(N),G=Math.sin(N),y.get("show")){var X=V?V+c:c,q=new Ca({shape:{x1:Y*(p-X)+d,y1:G*(p-X)+A,x2:Y*(p-R-X)+d,y2:G*(p-R-X)+A},style:j,silent:!0});j.stroke==="auto"&&q.setStyle({stroke:a(K/T)}),f.add(q)}if(x.get("show")){var X=x.get("distance")+V,ne=dF(Kr(K*(m-g)/T+g,Qst),x.get("formatter")),te=a(K/T),ce=Y*(p-R-X)+d,he=G*(p-R-X)+A,ve=x.get("rotate"),ae=0;ve==="radial"?(ae=-N+2*Math.PI,ae>Math.PI/2&&(ae+=Math.PI)):ve==="tangential"?ae=-N-Math.PI/2:Hr(ve)&&(ae=ve*Math.PI/180),ae===0?f.add(new Nr({style:Gn(x,{text:ne,x:ce,y:he,verticalAlign:G<-.8?"top":G>
125.8?"bottom":"middle",align:Y<-.4?"left":Y>.4?"right":"center"},{inheritColor:te}),silent:!0})):f.add(new Nr({style:Gn(x,{text:ne,x:ce,y:he,verticalAlign:"middle",align:"center"},{inheritColor:te}),silent:!0,originX:ce,originY:he,rotation:ae}))}if(b.get("show")&&K!==T){var X=b.get("distance");X=X?X+c:c;for(var fe=0;fe<=B;fe++){Y=Math.cos(N),G=Math.sin(N);var we=new Ca({shape:{x1:Y*(p-X)+d,y1:G*(p-X)+A,x2:Y*(p-I-X)+d,y2:G*(p-I-X)+A},silent:!0,style:W});W.stroke==="auto"&&we.setStyle({stroke:a((K+fe/B)/T)}),f.add(we),N+=Q}N-=Q}else N+=F}},e.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,A=this._progressEls,p=[],g=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),b=r.getData(),x=b.mapDimension("value"),T=+r.get("min"),B=+r.get("max"),R=[T,B],I=[s,l];function N(Q,j){var W=b.getItemModel(Q),V=W.getModel("pointer"),Y=it(V.get("width"),o.r),G=it(V.get("length"),o.r),K=r.get(["pointer","icon"]),X=V.get("offsetCenter"),q=it(X[0],o.r),ne=it(X[1],o.r),te=V.get("keepAspect"),ce;return K?ce=Ba(K,q-Y/2,ne-G,Y,G,null,te):ce=new Gwt({shape:{angle:-Math.PI/2,width:Y,r:G,x:q,y:ne}}),ce.rotation=-(j+Math.PI/2),ce.x=o.cx,ce.y=o.cy,ce}function F(Q,j){var W=m.get("roundCap"),V=W?oH:ks,Y=m.get("overlap"),G=Y?m.get("width"):c/b.count(),K=Y?o.r-G:o.r-(Q+1)*G,X=Y?o.r:o.r-Q*G,q=new V({shape:{startAngle:s,endAngle:j,cx:o.cx,cy:o.cy,clockwise:u,r0:K,r:X}});return Y&&(q.z2=Jr(b.get(x,Q),[T,B],[100,0],!0)),q}(y||g)&&(b.diff(d).add(function(Q){var j=b.get(x,Q);if(g){var W=N(Q,s);ui(W,{rotation:-((isNaN(+j)?I[0]:Jr(j,R,I,!0))+Math.PI/2)},r),f.add(W),b.setItemGraphicEl(Q,W)}if(y){var V=F(Q,s),Y=m.get("clip");ui(V,{shape:{endAngle:Jr(j,R,I,Y)}},r),f.add(V),pW(r.seriesIndex,b.dataType,Q,V),p[Q]=V}}).update(function(Q,j){var W=b.get(x,Q);if(g){var V=d.getItemGraphicEl(j),Y=V?V.rotation:s,G=N(Q,Y);G.rotation=Y,Wr(G,{rotation:-((isNaN(+W)?I[0]:Jr(W,R,I,!0))+Math.PI/2)},r),f.add(G),b.setItemGraphicEl(Q,G)}if(y){var K=A[j],X=K?K.shape.endAngle:s,q=F(Q,X),ne=m.get("clip");Wr(q,{shape:{endAngle:Jr(W,R,I,ne)}},r),f.add(q),pW(r.seriesIndex,b.dataType,Q,q),p[Q]=q}}).execute(),b.each(function(Q){var j=b.getItemModel(Q),W=j.getModel("emphasis"),V=W.get("focus"),Y=W.get("blurScope"),G=W.get("disabled"),K=a(Jr(b.get(x,Q),R,[0,1],!0));if(g){var X=b.getItemGraphicEl(Q),q=b.getItemVisual(Q,"style"),ne=q.fill;if(X instanceof Mo){var te=X.style;X.useStyle(Fe({image:te.image,x:te.x,y:te.y,width:te.width,height:te.height},q))}else X.useStyle(q),X.type!=="pointer"&&X.setColor(ne);X.setStyle(j.getModel(["pointer","itemStyle"]).getItemStyle()),X.style.fill==="auto"&&X.setStyle("fill",K),X.z2EmphasisLift=0,oo(X,j),Ti(X,V,Y,G)}if(y){var ce=p[Q];ce.useStyle(b.getItemVisual(Q,"style")),ce.setStyle(j.getModel(["progress","itemStyle"]).getItemStyle()),ce.style.fill==="auto"&&ce.setStyle("fill",K),ce.z2EmphasisLift=0,oo(ce,j),Ti(ce,V,Y,G)}}),this._progressEls=p)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Ba(s,n.cx-o/2+it(l[0],n.r),n.cy-o/2+it(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new xt,A=[],p=[],g=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){A[y]=new Nr({silent:!0}),p[y]=new Nr({silent:!0})}).update(function(y,b){A[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),x=l.get(u,y),T=new xt,B=a(Jr(x,[c,f],[0,1],!0)),R=b.getModel("title");if(R.get("show")){var I=R.get("offsetCenter"),N=o.cx+it(I[0],o.r),F=o.cy+it(I[1],o.r),Q=A[y];Q.attr({z2:m?0:2,style:Gn(R,{x:N,y:F,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:B})}),T.add(Q)}var j=b.getModel("detail");if(j.get("show")){var W=j.get("offsetCenter"),V=o.cx+it(W[0],o.r),Y=o.cy+it(W[1],o.r),G=it(j.get("width"),o.r),K=it(j.get("height"),o.r),X=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:B,Q=p[y],q=j.get("formatter");Q.attr({z2:m?0:2,style:Gn(j,{x:V,y:Y,text:dF(x,q),width:isNaN(G)?null:G,height:isNaN(K)?null:K,align:"center",verticalAlign:"middle"},{inheritColor:X})}),HTe(Q,{normal:j},x,function(te){return dF(te,q)}),g&&QTe(Q,y,l,r,{getFormattedLabel:function(te,ce,he,ve,ae,fe){return dF(fe?fe.interpolatedValue:x,q)}}),T.add(Q)}d.add(T)}),this.group.add(d),this._titleEls=A,this._detailEls=p},e.type="gauge",e})(xn),Ywt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return BE(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
125:{show:!0,roundCap:!1,lineStyle:{color:[[1,xe.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:xe.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:xe.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:xe.color.axisLabel,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:xe.color.neutral00,borderWidth:0,borderColor:xe.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:xe.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:xe.color.transparent,borderWidth:0,borderColor:xe.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:xe.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(On);function $wt(t){t.registerChartView(Wwt),t.registerSeriesModel(Ywt)}var RT="funnel",Zwt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DE(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return BE(this,{coordDimensions:["value"],encodeDefaulter:lr($q,this)})},e.prototype._defaultLabelLine=function(r){Ub(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series."+RT,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:xe.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:xe.color.primary}}},e})(On),Xwt=["itemStyle","opacity"],qwt=(function(t){Ee(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new es,s=new Nr;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(Xwt);c=c??1,i||ad(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,ui(a,{style:{opacity:c}},o,n)):Wr(a,{style:{opacity:c},shape:{points:l.points}},o,n),oo(a,s),this._updateLabel(r,n),Ti(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;Do(o,so(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var A=l.getModel("label"),p=A.get("color"),g=p==="inherit"?d:null;i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:g,outsideFill:g});var m=c.linePoints;a.setShape({points:m}),i.textGuideLineConfig={anchor:m?new Lt(m[0][0],m[0][1]):null},Wr(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),EJ(i,BJ(l),{stroke:d})},e})(Ns),Jwt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=RT,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new qwt(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Zv(u,r,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=RT,e})(xn);function e_t(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),i=[],a=e==="ascending",o=0,s=t.count();o<s;o++)i[o]=o;return mt(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function t_t(t){var e=t.hostModel,r=SMe(e);t.each(function(n){var i=t.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=t.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,A,p;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,A=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,A=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,A=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f
125="center"),p=[[d,A],[d,A]];else{var g=void 0,m=void 0,y=void 0,b=void 0,x=s.get("length");et(o)&&(!r&&zt(["top","bottom"],o)>-1&&(o="left"),r&&zt(["left","right"],o)>-1&&(o="bottom")),o==="left"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=g-x,d=y-5,f="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=g+x,d=y+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,b=m-x,A=b-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,b=m+x,A=b+5,f="center"):o==="rightTop"?(g=r?u[3][0]:u[1][0],m=r?u[3][1]:u[1][1],r?(b=m-x,A=b-5,f="center"):(y=g+x,d=y+5,f="top")):o==="rightBottom"?(g=u[2][0],m=u[2][1],r?(b=m+x,A=b+5,f="center"):(y=g+x,d=y+5,f="bottom")):o==="leftTop"?(g=u[0][0],m=r?u[0][1]:u[1][1],r?(b=m-x,A=b-5,f="center"):(y=g-x,d=y-5,f="right")):o==="leftBottom"?(g=r?u[1][0]:u[3][0],m=r?u[1][1]:u[2][1],r?(b=m+x,A=b+5,f="center"):(y=g-x,d=y-5,f="right")):(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r?(b=m+x,A=b+5,f="center"):(y=g+x,d=y+5,f="left")),r?(y=g,d=y):(b=m,A=b),p=[[g,m],[y,b]]}l.label={linePoints:p,x:d,y:A,verticalAlign:"middle",textAlign:f,inside:c}})}var r_t=lo(RT,n_t);function n_t(t,e){t.eachSeriesByType(RT,function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=uo(r,e),s=gi(r.getBoxLayoutParams(),o.refContainer),l=SMe(r),u=s.width,c=s.height,f=e_t(n,a),d=s.x,A=s.y,p=l?[it(r.get("minSize"),c),it(r.get("maxSize"),c)]:[it(r.get("minSize"),u),it(r.get("maxSize"),u)],g=n.getDataExtent(i),m=r.get("min"),y=r.get("max");m==null&&(m=Math.min(g[0],0)),y==null&&(y=g[1]);var b=r.get("funnelAlign"),x=r.get("gap"),T=l?u:c,B=(T-x*(n.count()-1))/n.count(),R=function(G,K){if(l){var X=n.get(i,G)||0,q=Jr(X,[m,y],p,!0),ne=void 0;switch(b){case"top":ne=A;break;case"center":ne=A+(c-q)/2;break;case"bottom":ne=A+(c-q);break}return[[K,ne],[K,ne+q]]}var te=n.get(i,G)||0,ce=Jr(te,[m,y],p,!0),he;switch(b){case"left":he=d;break;case"center":he=d+(u-ce)/2;break;case"right":he=d+u-ce;break}return[[he,K],[he+ce,K]]};a==="ascending"&&(B=-B,x=-x,l?d+=u:A+=c,f=f.reverse());for(var I=0;I<f.length;I++){var N=f[I],F=f[I+1],Q=n.getItemModel(N);if(l){var j=Q.get(["itemStyle","width"]);j==null?j=B:(j=it(j,u),a==="ascending"&&(j=-j));var W=R(N,d),V=R(F,d+j);d+=j+x,n.setItemLayout(N,{points:W.concat(V.slice().reverse())})}else{var Y=Q.get(["itemStyle","height"]);Y==null?Y=B:(Y=it(Y,c),a==="ascending"&&(Y=-Y));var W=R(N,A),V=R(F,A+Y);A+=Y+x,n.setItemLayout(N,{points:W.concat(V.slice().reverse())})}}t_t(n)})}function SMe(t){return t.get("orient")==="horizontal"}function i_t(t){t.registerChartView(Jwt),t.registerSeriesModel(Zwt),t.registerLayout(r_t),t.registerProcessor(YI(RT))}var a_t=.3,o_t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._dataGroup=new xt,r._initialized=!1,r}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(r,n,i,a){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=ihe(r);s.diff(l).add(d).update(A).remove(p).execute();function d(m){var y=nhe(s,o,m,c,u);hG(y,s,m,f)}function A(m,y){var b=l.getItemGraphicEl(y);o.add(b);var x=CMe(s,m,c,u);s.setItemGraphicEl(m,b),Wr(b,{shape:{points:x}},r,m),ad(b),hG(b,s,m,f)}function p(m){var y=l.getItemGraphicEl(m);o.remove(y)}if(!this._initialized){this._initialized=!0;var g=s_t(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},e.prototype.incrementalPrepareRender=function(r,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(r,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=r.start;l<r.end;l++){var u=nhe(a,this._dataGroup,l,o.dimensions,o);u.incremental=WA(n),hG(u,a,l,ihe(n)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(xn);function s_t(t,e,r){var n=t.model,i=t.getRect(),a=new fr({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),ui(a,{shape:{width:i.width,height:i.height}},e,r),a}function CMe(t,e,r,n){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=t.get(t.mapDimension(o),e);l_t(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function nhe(t,e,r,n,i){var a=CMe(t,r,n,i),o=new es({shape:{points:a},z2:10});return e.add(o),t.setItemGraphicEl(r,o),o}function ihe(t){var e=t.get("smooth",!0);return e===!0&&(e=a_t),e=ap(e),Ds(e)&&(e=0),{smooth:e}}function hG(t,e,r,n){t.useStyle(e.getItemVisual(r,"style")),t.style.fill=null,t.setShape("smooth",n.smooth);var i=e.getItemModel(r),a=i.getModel("emphasis");oo(t,i,"lineStyle"),Ti(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function l_t(t,e){return e==="category"?t==null:t==null||isNaN(t)}var u_t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.getInitialData=function(r,n){return yp(null,this,{useEncodeDefaulter:ot(c_t,null,this)})},e.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){r===o&&a.push(i.getRawIndex(s))}),a},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:300,smooth:!1,animationEasing:"linear"},e})(On);function c_t(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var r={};return ee(e.dimensions,function(n){var i=f_t(n);r[n]=i}),r}}function f_t(t){return+t.replace("dim","")}
125var d_t=["lineStyle","opacity"],h_t={seriesType:"parallel",reset:function(t,e){var r=t.coordinateSystem,n={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(i,a){r.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(d_t,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function A_t(t){p_t(t),v_t(t)}function p_t(t){if(!t.parallel){var e=!1;ee(t.series,function(r){r&&r.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function v_t(t){var e=Kn(t.parallelAxis);ee(e,function(r){if(Tt(r)){var n=r.parallelIndex||0,i=Kn(t.parallel)[n];i&&i.parallelAxisDefault&&Xt(r,i.parallelAxisDefault,!1)}})}var g_t=5,m_t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this._model=r,this._api=i,this._handlers||(this._handlers={},ee(y_t,function(a,o){i.getZr().on(o,this._handlers[o]=ot(a,this))},this)),wE(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(r,n){vR(this,"_throttledDispatchExpand"),ee(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},e.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(Fe({type:"parallelAxisExpand"},r))},e.type="parallel",e})(Yn),y_t={mousedown:function(t){AG(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(AG(this,"click")&&e){var r=[t.offsetX,t.offsetY],n=Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2);if(n>g_t)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||!AG(this,"mousemove"))){var e=this._model,r=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function AG(t,e){var r=t._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===e}var vH="parallel",_Y=vH,w_t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(r){var n=this.option;r&&Xt(n,r,!0),this._initDimensions()},e.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(r){ee(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},e.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ln(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);ee(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},e.type=_Y,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})(gr),__t=(function(t){Ee(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(fd);function o0(t,e,r,n,i,a){t=t||0;var o=b_(r[1],-r[0]);if(i!=null&&(i=ZS(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(b_(e[1],-e[0]));s=ZS(s,[0,o]),i=a=ZS(s,[i,a]),n=0}e[0]=ZS(e[0],r),e[1]=ZS(e[1],r);var l=pG(e,n);e[n]+=t;var u=i||0,c=r.slice();l.sign<0?c[0]=b_(c[0],u):c[1]=b_(c[1],-u),e[n]=ZS(e[n],c);var f;return f=pG(e,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(e[1-n]=b_(e[n],l.sign*i)),f=pG(e,n),a!=null&&f.span>a&&(e[1-n]=b_(e[n],f.sign*a)),e}function pG(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function ZS(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var b_t=(function(){function t(e,r,n){this.type=vH,this._axesMap=st(
125),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var i=e.dimensions,a=e.parallelAxisIndex;ee(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=QI(u),f=this._axesMap.set(o,new __t(o,SE(u,c,!1),[0,0],c,l));f.onBand=zI(f.scale,u),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,r){ee(this.dimensions,function(n){var i=this._axesMap.get(n);Zb(i,BT),DT(i)},this)},t.prototype.containPoint=function(e){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=e[1-a],s=e[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype.resize=function(e,r){var n=uo(e,r).refContainer;this._rect=gi(e.getBoxLayoutParams(),n),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=hF(e.get("axisExpandWidth"),l),f=hF(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,A=e.get("axisExpandWindow"),p;if(A)p=hF(A[1]-A[0],l),A[1]=A[0]+p;else{p=hF(c*(f-1),l);var g=e.get("axisExpandCenter")||rd(u/2);A=[c*g-p/2],A[1]=A[0]+p}var m=(s-p)/(u-f);m<3&&(m=0);var y=[rd(Kr(A[0]/c,1))+1,xx(Kr(A[1]/c,1))-1],b=m/c*A[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:A,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},t.prototype._layoutAxes=function(){var e=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ee(n,function(o,s){var l=(i.axisExpandable?S_t:x_t)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:C3/2,vertical:0},f=[u[a].x+e.x,u[a].y+e.y],d=c[a],A=Si();Tg(A,A,d),gh(A,A,f),this._axesLayout[o]={position:f,rotation:d,transform:A,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,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(e),r)},t.prototype.eachActiveState=function(e,r,n,i){n==null&&(n=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];ee(o,function(m){s.push(e.mapDimension(m)),l.push(a.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=e.getValues(s,c),A=0,p=o.length;A<p;A++){var g=l[A].getActiveState(d[A]);if(g==="inactive"){f="inactive";break}}}r(f,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,r=this._axesMap,n=!1,i=0,a=e.length;i<a;i++)r.get(e[i]).model.getActiveState()!=="normal"&&(n=!0);return n},t.prototype.axisCoordToPoint=function(e,r){var n=this._axesLayout[r];return dh([e,0],n.transform)},t.prototype.getAxisLayout=function(e){return vt(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<a*f[0]?(u="jump",l=s-a*f[2]):d&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?o0(l,i,o,"all"):u="none";else{var A=i[1]-i[0],p=o[1]*s/A;i=[cr(0,p-A/2)],i[1]=bn(o[1],i[0]+A),i[0]=i[1]-A}return{axisExpandWindow:i,behavior:u}},t})();function hF(t,e){return bn(cr(t,e[0]),e[1])}function x_t(t,e){var r=e.layoutLength/(e.axisCount-1);return{position:r*t,axisNameAvailableWidth:r,axisLabelShow:!0}}function S_t(t,e){var r=e.layoutLength,n=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return t<o[0]?(s=t*a,c=a):t<=o[1]?(s=e.axisExpandWindow0Pos+t*n-e.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-t)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function C_t(t,e){var r=[];return t.eachComponent(_Y,function(n,i){var a=new b_t(n,t,e);a.name="parallel_"+i,a.resize(n,e),n.coordinateSystem=a,a.model=n,r.push(a)}),t.eachSeries(function(n){if(n.get("coordinateSystem")===vH){var i=n.getReferringComponents(_Y,ta).models[0],a=n.coordinateSystem=i.coordinateSystem;a&&ee(a.dimensions,function(o){$b(a.getAxis(o),n,vH)})}}),r}var T_t={create:C_t},bY=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.activeIntervals=[],r}return e.prototype.getAreaSelectStyle=function(){return jb([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["
125width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=vt(r);if(n)for(var i=n.length-1;i>=0;i--)qo(n[i])},e.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},e})(gr);Da(bY,TE);var ix=!0,UR=Math.min,IT=Math.max,E_t=Math.pow,B_t=1e4,D_t=6,M_t=6,ahe="globalPan",L_t={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},R_t={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ohe={brushStyle:{lineWidth:2,stroke:xe.color.backgroundTint,fill:xe.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},I_t=0,lee=(function(t){Ee(e,t);function e(r){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new xt,n._uid="brushController_"+I_t++,ee(H_t,function(i,a){this._handlers[a]=ot(i,this)},n),n}return e.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},e.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||$mt(n,ahe,this._uid),ee(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=Xt(vt(ohe),r,!0)},e.prototype._doDisableBrush=function(){var r=this._zr;Zmt(r,ahe,this._uid),ee(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};ee(r,function(i){n[i.panelId]=vt(i)})}else this._panels=null;return this},e.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(r){r=ze(r,function(d){return Xt(vt(ohe),d,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new vg(i,r,u,l).add(c).update(c).remove(f).execute(),this;function l(d,A){return(d.id!=null?d.id:n+A)+"-"+d.brushType}function u(d,A){return l(d.__brushOption,A)}function c(d,A){var p=r[d];if(A!=null&&i[A]===s)a[d]=i[A];else{var g=a[d]=A!=null?(i[A].__brushOption=p,i[A]):EMe(o,TMe(o,p));uee(o,g)}}function f(d){i[d]!==s&&o.group.remove(i[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),xY(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(ud);function TMe(t,e){var r=jQ[e.brushType].createCover(t,e);return r.__brushOption=e,DMe(r,e),t.group.add(r),r}function EMe(t,e){var r=cee(e);return r.endCreating&&(r.endCreating(t,e),DMe(e,e.__brushOption)),e}function BMe(t,e){var r=e.__brushOption;cee(e).updateCoverShape(t,e,r.range,r)}function DMe(t,e){var r=e.z;r==null&&(r=B_t),t.traverse(function(n){n.z=r,n.z2=r})}function uee(t,e){cee(e).updateCommon(t,e),BMe(t,e)}function cee(t){return jQ[t.__brushOption.brushType]}function fee(t,e,r){var n=t._panels;if(!n)return ix;var i,a=t._transform;return ee(n,function(o){o.isTargetByCursor(e,r,a)&&(i=o)}),i}function MMe(t,e){var r=t._panels;if(!r)return ix;var n=e.__brushOption.panelId;return n!=null?r[n]:ix}function xY(t){var e=t._covers,r=e.length;return ee(e,function(n){t.group.remove(n)},t),e.length=0,!!r}function ax(t,e){var r=ze(t._covers,function(n){var i=n.__brushOption,a=vt(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});t.trigger("brush",{areas:r,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function O_t(t){var e=t._track;if(!e.length)return!1;var r=e[e.length-1],n=e[0],i=r[0]-n[0],a=r[1]-n[1],o=E_t(i*i+a*a,.5);return o>D_t}function LMe(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function RMe(t,e,r,n){var i=new xt;return i.add(new fr({name:"main",style:dee(r),silent:!0,draggable:!0,cursor:"move",drift:lr(she,t,e,i,["n","s","w","e"]),ondragend:lr(ax,e,{isEnd:!0})})),ee(n,function(a){i.add(new fr({name:a.join(""),style:{opacity:0}
125,draggable:!0,silent:!0,invisible:!0,drift:lr(she,t,e,i,a),ondragend:lr(ax,e,{isEnd:!0})}))}),i}function IMe(t,e,r,n){var i=n.brushStyle.lineWidth||0,a=IT(i,M_t),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,A=f-a+i/2,p=c-o,g=f-s,m=p+i,y=g+i;gv(t,e,"main",o,s,p,g),n.transformable&&(gv(t,e,"w",l,u,a,y),gv(t,e,"e",d,u,a,y),gv(t,e,"n",l,u,m,a),gv(t,e,"s",l,A,m,a),gv(t,e,"nw",l,u,a,a),gv(t,e,"ne",d,u,a,a),gv(t,e,"sw",l,A,a,a),gv(t,e,"se",d,A,a,a))}function SY(t,e){var r=e.__brushOption,n=r.transformable,i=e.childAt(0);i.useStyle(dee(r)),i.attr({silent:!n,cursor:n?"move":"default"}),ee([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?CY(t,a[0]):k_t(t,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?R_t[s]+"-resize":null})})}function gv(t,e,r,n,i,a,o){var s=e.childOfName(r);s&&s.setShape(F_t(hee(t,e,[[n,i],[n+a,i+o]])))}function dee(t){return Ct({strokeNoScale:!0},t.brushStyle)}function OMe(t,e,r,n){var i=[UR(t,r),UR(e,n)],a=[IT(t,r),IT(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function P_t(t){return gb(t.group)}function CY(t,e){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=pQ(r[e],P_t(t));return n[i]}function k_t(t,e){var r=[CY(t,e[0]),CY(t,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function she(t,e,r,n,i,a){var o=r.__brushOption,s=t.toRectRange(o.range),l=PMe(e,i,a);ee(n,function(u){var c=L_t[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(OMe(s[0][0],s[1][0],s[0][1],s[1][1])),uee(e,r),ax(e,{isEnd:!1})}function N_t(t,e,r,n){var i=e.__brushOption.range,a=PMe(t,r,n);ee(i,function(o){o[0]+=a[0],o[1]+=a[1]}),uee(t,e),ax(t,{isEnd:!1})}function PMe(t,e,r){var n=t.group,i=n.transformCoordToLocal(e,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function hee(t,e,r){var n=MMe(t,e);return n&&n!==ix?n.clipPath(r,t._transform):vt(r)}function F_t(t){var e=UR(t[0][0],t[1][0]),r=UR(t[0][1],t[1][1]),n=IT(t[0][0],t[1][0]),i=IT(t[0][1],t[1][1]);return{x:e,y:r,width:n-e,height:i-r}}function U_t(t,e,r){if(!(!t._brushType||Q_t(t,e.offsetX,e.offsetY))){var n=t._zr,i=t._covers,a=fee(t,e,r);if(!t._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===ix||s.panelId===a.panelId)&&jQ[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function TY(t){var e=t.event;e.preventDefault&&e.preventDefault()}function EY(t,e,r){return t.childOfName("main").contain(e,r)}function kMe(t,e,r,n){var i=t._creatingCover,a=t._creatingPanel,o=t._brushOption,s;if(t._track.push(r.slice()),O_t(t)||i){if(a&&!i){o.brushMode==="single"&&xY(t);var l=vt(o);l.brushType=lhe(l.brushType,a),l.panelId=a===ix?null:a.panelId,i=t._creatingCover=TMe(t,l),t._covers.push(i)}if(i){var u=jQ[lhe(t._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(hee(t,i,t._track)),n&&(EMe(t,i),u.updateCommon(t,i)),BMe(t,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&fee(t,e,r)&&xY(t)&&(s={isEnd:n,removeOnClick:!0});return s}function lhe(t,e){return t==="auto"?e.defaultBrushType:t}var H_t={mousedown:function(t){if(this._dragging)uhe(this,t);else if(!t.target||!t.target.draggable){TY(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var r=this._creatingPanel=fee(this,t,e);r&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,r=t.offsetY,n=this.group.transformCoordToLocal(e,r);if(U_t(this,t,n),this._dragging){TY(t);var i=kMe(this,t,n,!1);i&&ax(this,i)}},mouseup:function(t){uhe(this,t)}};function uhe(t,e){if(t._dragging){TY(e);var r=e.offsetX,n=e.offsetY,i=t.group.transformCoordToLocal(r,n),a=kMe(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&ax(t,a)}}function Q_t(t,e,r){var n=t._zr;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var jQ={lineX:che(0),lineY:che(1),rect:{createCover:function(t,e){function r(n){return n}return RMe({toRectRange:r,fromRectRange:r},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=LMe(t);return OMe(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,r,n){IMe(t,e,r,n)},updateCommon:SY,contain:EY},polygon:{createCover:function(t,e){var r=new xt;return r.add(new es({name:"main",style:dee(e),silent:!0})),r},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ns({name:"main",draggable:!0,drift:lr(N_t,t,e),ondragend:lr(ax,t,{isEnd:!0})}))},updateCoverShape:function(t,e,r,n){e.childAt(0).setShape({points:hee(t,e,r)})},updateCommon:SY,contain:EY}};function che(t){return{createCover:function(e,r){return RMe({toRectRange:function(n){var i=[n,[0,100]];return t&&i.reverse(),i},fromRectRange:function(n){return n[t]}},e,r,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var r=LMe(e),n=UR(r[0][t],r[1][t]),i=IT(r[0][t],r[1][t]);return[n,i]},updateCoverShape:function(e,r,n,i){var a,o=MMe(e,r);if(o!==ix&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,a];t&&l.reverse(),IMe(e,r,l,i)},updateCommon:SY,contain:EY}}function NMe(t){return t=Aee(t),function(e){return Dq(e,t)}}function FMe(t,e){return t=Aee(t),function(r){var n=e??r,i=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(i||0)]}}function UMe(t,e,r){var n=Aee(t);return function(i,a){return n.contain(a[0],a[1])&&!RDe(i,e,r)}}function Aee(t){return St.create(t)}var j_t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}
125return e.prototype.init=function(r,n){t.prototype.init.apply(this,arguments),(this._brushController=new lee(n.getZr())).on("brush",ot(this._onBrush,this))},e.prototype.render=function(r,n,i,a){if(!z_t(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xt,this.group.add(this._axisGroup),!!r.get("show")){var s=G_t(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),A=Fe({strokeContainThreshold:c},d),p=new au(r,i,A);p.build(),this._axisGroup.add(p.group),this._refreshBrushController(A,u,r,s,c,i),kI(o,this._axisGroup,r)}}},e.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=St.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:NMe(f),isTargetByCursor:UMe(f,s,a),getLinearBrushOtherExtent:FMe(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(V_t(i))},e.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=ze(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Yn);function z_t(t,e,r){return r&&r.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:r})[0]===t}function V_t(t){var e=t.axis;return ze(t.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(r[0],!0),e.dataToCoord(r[1],!0)]}})}function G_t(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var K_t={type:"axisAreaSelect",event:"axisAreaSelected"};function W_t(t){t.registerAction(K_t,function(e,r){r.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,r){r.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var Y_t={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function HMe(t){t.registerComponentView(m_t),t.registerComponentModel(w_t),t.registerCoordinateSystem("parallel",T_t),t.registerPreprocessor(A_t),t.registerComponentModel(bY),t.registerComponentView(j_t),LT(t,"parallel",bY,Y_t),W_t(t)}function $_t(t){ir(HMe),t.registerChartView(o_t),t.registerSeriesModel(u_t),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,h_t)}var yg="sankey",Z_t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=r.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new wr(o[l],this,n));var u=ree(a,i,this,!0,c);return u.data;function c(f,d){f.wrapMethod("getItemModel",function(A,p){var g=A.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(A.parentModel=b)}return A}),d.wrapMethod("getItemModel",function(A,p){var g=A.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,x=g.levelModels[b];x&&(A.parentModel=x)}return A})}},e.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(r,n,i){function a(A){return isNaN(A)||A==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Va("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return Va("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(r,n){var i=t.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+yg,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12}
125,levels:[],nodeAlign:"justify",lineStyle:{color:xe.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:xe.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(On),X_t=(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})(),q_t=(function(t){Ee(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new X_t},e.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},e.prototype.highlight=function(){Ag(this)},e.prototype.downplay=function(){pg(this)},e})(_r),J_t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=yg,r._mainGroup=new xt,r}return e.prototype.init=function(r,n){this._controller=new Ox(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(r,n,i){var a=r.getGraph(),o=this._mainGroup,s=r.layoutInfo,l=s.width,u=s.height,c=r.getData(),f=r.getData("edge"),d=r.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(r,i),UQ(r,i,this._controller,GDe(o),null),a.eachEdge(function(A){var p=new q_t,g=It(p);g.dataIndex=A.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=A.getModel(),y=m.getModel("lineStyle"),b=y.get("curveness"),x=A.node1.getLayout(),T=A.node1.getModel(),B=T.get("localX"),R=T.get("localY"),I=A.node2.getLayout(),N=A.node2.getModel(),F=N.get("localX"),Q=N.get("localY"),j=A.getLayout(),W,V,Y,G,K,X,q,ne;p.shape.extent=Math.max(1,j.dy),p.shape.orient=d,d==="vertical"?(W=(B!=null?B*l:x.x)+j.sy,V=(R!=null?R*u:x.y)+x.dy,Y=(F!=null?F*l:I.x)+j.ty,G=Q!=null?Q*u:I.y,K=W,X=V*(1-b)+G*b,q=Y,ne=V*b+G*(1-b)):(W=(B!=null?B*l:x.x)+x.dx,V=(R!=null?R*u:x.y)+j.sy,Y=F!=null?F*l:I.x,G=(Q!=null?Q*u:I.y)+j.ty,K=W*(1-b)+Y*b,X=V,q=W*b+Y*(1-b),ne=G),p.setShape({x1:W,y1:V,x2:Y,y2:G,cpx1:K,cpy1:X,cpx2:q,cpy2:ne}),p.useStyle(y.getItemStyle()),fhe(p.style,d,A);var te=""+m.get("value"),ce=so(m,"edgeLabel");Do(p,ce,{labelFetcher:{getFormattedLabel:function(ae,fe,we,Me,ge,be){return r.getFormattedLabel(ae,fe,"edge",Me,Ju(ge,ce.normal&&ce.normal.get("formatter"),te),be)}},labelDataIndex:A.dataIndex,defaultText:te}),p.setTextConfig({position:"inside"});var he=m.getModel("emphasis");oo(p,m,"lineStyle",function(ae){var fe=ae.getItemStyle();return fhe(fe,d,A),fe}),o.add(p),f.setItemGraphicEl(A.dataIndex,p);var ve=he.get("focus");Ti(p,ve==="adjacency"?A.getAdjacentDataIndices():ve==="trajectory"?A.getTrajectoryDataIndices():ve,he.get("blurScope"),he.get("disabled"))}),a.eachNode(function(A){var p=A.getLayout(),g=A.getModel(),m=g.get("localX"),y=g.get("localY"),b=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,T=new fr({shape:{x:m!=null?m*l:p.x,y:y!=null?y*u:p.y,width:p.dx,height:p.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});Do(T,so(g),{labelFetcher:{getFormattedLabel:function(R,I){return r.getFormattedLabel(R,I,"node")}},labelDataIndex:A.dataIndex,defaultText:A.id}),T.disableLabelAnimation=!0,T.setStyle("fill",A.getVisual("color")),T.setStyle("decal",A.getVisual("style").decal),oo(T,g),o.add(T),c.setItemGraphicEl(A.dataIndex,T),It(T).dataType="node";var B=b.get("focus");Ti(T,B==="adjacency"?A.getAdjacentDataIndices():B==="trajectory"?A.getTrajectoryDataIndices():B,b.get("blurScope"),b.get("disabled"))}),c.eachItemGraphicEl(function(A,p){var g=c.getItemModel(p);g.get("draggable")&&(A.drift=function(m,y){this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/l,localY:this.shape.y/u})},A.draggable=!0,A.cursor="move")}),!this._data&&r.isAnimationEnabled()&&o.setClipPath(ebt(o.getBoundingRect(),r,function(){o.removeClipPath()}
125)),this._data=r.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(r,n,i){a0(this.group,cp,n.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(r,n){var i=r.layoutInfo,a=r.coordinateSystem=$J(r,n,i.x,i.y,i.width,i.height);a0(this.group,cp,a,this._firstRender?null:r)},e.type=yg,e})(xn);function fhe(t,e,r){switch(t.fill){case"source":t.fill=r.node1.getVisual("color"),t.decal=r.node1.getVisual("style").decal;break;case"target":t.fill=r.node2.getVisual("color"),t.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");et(n)&&et(i)&&(t.fill=new Tx(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function ebt(t,e,r){var n=new fr({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ui(n,{shape:{width:t.width+20}},e,r),n}var tbt=lo(yg,rbt);function rbt(t,e){t.eachSeriesByType(yg,function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=uo(r,e).refContainer,o=gi(r.getBoxLayoutParams(),a);r.layoutInfo=o;var s=o.width,l=o.height,u=r.getGraph(),c=u.nodes,f=u.edges;ibt(c);var d=ln(c,function(m){return m.getLayout().value===0}),A=d.length!==0?0:r.get("layoutIterations"),p=r.get("orient"),g=r.get("nodeAlign");nbt(c,f,n,i,s,l,A,p,g)})}function nbt(t,e,r,n,i,a,o,s,l){abt(t,e,r,i,a,s,l),ubt(t,e,a,i,n,o,s),mbt(t,s)}function ibt(t){ee(t,function(e){var r=Qy(e.outEdges,gH),n=Qy(e.inEdges,gH),i=e.getValue()||0,a=Math.max(r,n,i);e.setLayout({value:a},!0)})}function abt(t,e,r,n,i,a,o){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 A=-1;u.length;){for(var p=0;p<u.length;p++){var g=u[p],m=g.hostGraph.data.getRawDataItem(g.dataIndex),y=m.depth!=null&&m.depth>=0;y&&m.depth>A&&(A=m.depth),g.setLayout({depth:y?m.depth:f},!0),a==="vertical"?g.setLayout({dy:r},!0):g.setLayout({dx:r},!0);for(var b=0;b<g.outEdges.length;b++){var x=g.outEdges[b],T=zt(e,x);s[T]=0;var B=x.node2,R=zt(t,B);--l[R]===0&&zt(c,B)<0&&c.push(B)}}++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 I=A>f-1?A:f-1;o&&o!=="left"&&obt(t,o,a,I);var N=a==="vertical"?(i-r)/I:(n-r)/I;lbt(t,N,a)}function QMe(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function obt(t,e,r,n){if(e==="right"){for(var i=[],a=t,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];zt(i,c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}ee(t,function(f){QMe(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&sbt(t,n)}function sbt(t,e){ee(t,function(r){!QMe(r)&&!r.outEdges.length&&r.setLayout({depth:e},!0)})}function lbt(t,e,r){ee(t,function(n){var i=n.getLayout().depth*e;r==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function ubt(t,e,r,n,i,a,o){var s=cbt(t,o);fbt(s,e,r,n,i,o),vG(s,i,r,n,o);for(var l=1;a>0;a--)l*=.99,dbt(s,l,o),vG(s,i,r,n,o),gbt(s,l,o),vG(s,i,r,n,o)}function cbt(t,e){var r=[],n=e==="vertical"?"y":"x",i=uW(t,function(a){return a.getLayout()[n]});return qo(i.keys),ee(i.keys,function(a){r.push(i.buckets.get(a))}),r}function fbt(t,e,r,n,i,a){var o=1/0;ee(t,function(s){var l=s.length,u=0;ee(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c<o&&(o=c)}),ee(t,function(s){ee(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),ee(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function vG(t,e,r,n,i){var a=i==="vertical"?"x":"y";ee(t,function(o){o.sort(function(g,m){return g.getLayout()[a]-m.getLayout()[a]});for(var s,l,u,c=0,f=o.length,d=i==="vertical"?"dx":"dy",A=0;A<f;A++)l=o[A],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+e;var p=i==="vertical"?n:r;if(u=c-e-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var A=f-2;A>=0;--A)l=o[A],u=l.getLayout()[a]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function dbt(t,e,r){ee(t.slice().reverse(),function(n){ee(n,function(i){if(i.outEdges.length){var a=Qy(i.outEdges,hbt,r)/Qy(i.outEdges,gH);if(isNaN(a)){var o=i.outEdges.length;a=o?Qy(i.outEdges,Abt,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-s0(i,r))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-s0(i,r))*e;i.setLayout({y:l},!0)}}})})}function hbt(t,e){return s0(t.node2,e)*t.getValue()}function Abt(t,e){return s0(t.node2,e)}function pbt(t,e){return s0(t.node1,e)*t.getValue()}function vbt(t,e){return s0(t.node1,e)}function s0(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function gH(t){return t.getValue()}function Qy(t,e,r){for(var n=0,i=t.length,a=-1;++a<i;){var o=+e(t[a],r);isNaN(o)||(n+=o)}return n}function gbt(t,e,r){ee(t,function(n){ee(n,function(i){if(i.inEdges.length){var a=Qy(i.inEdges,pbt,r)/Qy(i.inEdges,gH);if(isNaN(a)){var o=i.inEdges.length;a=o?Qy(i.inEdges,vbt,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-s0(i,r))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-s0(i,r))*e;i.setLayout({y:l},!0)}}})})}function mbt(t,e){var r=e==="vertical"?"x":"y";ee(t,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[r]-a.node2.getLayout()[r]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[r]-a.node1.getLayout()[r]})}),ee(t,function(n){var i=0,a=0;ee(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),ee(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}var ybt=lo(yg,wbt);function wbt(t){t.eachSeriesByType(yg,function(e){var r=e.getGraph(),n=r.nodes,i=r.edges;if(n.length){var a=1/0,o=-1/0;ee(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),ee(n,function(s){var l=new Bo({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}
125),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&&ee(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function _bt(t){t.registerChartView(J_t),t.registerSeriesModel(Z_t),t.registerLayout(tbt),t.registerVisual(ybt),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,r){r.eachComponent({mainType:sp,subType:yg,query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),YJ(t,sp,yg)}var jMe=(function(){function t(){}return t.prototype._hasEncodeRule=function(e){var r=this.getEncode();return r&&r.get(e)!=null},t.prototype.getInitialData=function(e,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l,u=e.layout;o==="category"?(u="horizontal",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var c=["x","y"],f=u==="horizontal"?0:1,d=this._baseAxisDim=c[f],A=c[1-f],p=[i,a],g=p[f].get("type"),m=p[1-f].get("type"),y=e.data;if(y&&l){var b=[];ee(y,function(B,R){var I;je(B)?(I=B.slice(),B.unshift(R)):je(B.value)?(I=Fe({},B),I.value=I.value.slice(),B.value.unshift(R)):I=B,b.push(I)}),e.data=b}var x=this.defaultValueDimensions,T=[{name:d,type:K3(g),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:A,type:K3(m),dimsDef:x.slice()}];return BE(this,{coordDimensions:T,dimensionsCount:x.length+1,encodeDefaulter:lr(vEe,T,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t.prototype.getWhiskerBoxesLayout=function(){return this._layout},t})();function mH(t,e){for(var r=e.ends.length,n=0,i=0;i<r;i++)t.contain(e.ends[i][0],e.ends[i][1])&&n++;return n?n<r?TR:CR:ER}var $A="boxplot",zMe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return e.type="series."+$A,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:xe.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:xe.color.shadow}},animationDuration:800},e})(On);Da(zMe,jMe,!0);var bbt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=$A,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.getWhiskerBoxesLayout()==="horizontal"?1:0,u=r.get("clip",!0),c=r.coordinateSystem,f=c.getArea&&c.getArea(),d=u&&Xb(c,!1,r);a.diff(s).add(function(A){if(a.hasValue(A)){var p=a.getItemLayout(A),g=u?mH(f,p):CR;if(g===ER)return;var m=dhe(p,a,A,l,!0);PC(g===TR,m,d),a.setItemGraphicEl(A,m),o.add(m)}}).update(function(A,p){var g=s.getItemGraphicEl(p);if(!a.hasValue(A)){o.remove(g);return}var m=a.getItemLayout(A),y=u?mH(f,m):CR;if(y===ER){o.remove(g);return}g?(ad(g),VMe(m,g,a,A)):g=dhe(m,a,A,l),PC(y===TR,g,d),o.add(g),a.setItemGraphicEl(A,g)}).remove(function(A){var p=s.getItemGraphicEl(A);p&&o.remove(p)}).execute(),this._data=a},e.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},e.type=$A,e})(xn),xbt=(function(){function t(){}return t})(),Sbt=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new xbt},e.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();a<i.length;a++)r.moveTo(i[a][0],i[a][1]),a++,r.lineTo(i[a][0],i[a][1])},e})(_r);function dhe(t,e,r,n,i){var a=t.ends,o=new Sbt({shape:{points:i?Cbt(a,n,t):a}});return VMe(t,o,e,r,i),o}
125function VMe(t,e,r,n,i){var a=r.hostModel,o=Ex[i?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},a,n),e.useStyle(r.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");oo(e,s),Ti(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Cbt(t,e,r){return ze(t,function(n){return n=n.slice(),n[e]=r.initBaseline,n})}var Tbt=uE(),Ebt=lo($A,Bbt);function Bbt(t){var e=wb($A);SJ(t,e,function(r){var n=BAt(r,e);if(n){var i=Dbt(r,n);Yb(r,e,function(a){var o=a.seriesIndex;Mbt(a,i.boxOffsetList[o],i.boxWidthList[o])})}})}function Dbt(t,e){var r=[],n=[],i=[],a=Fs(t,{fromStat:{key:wb($A)},min:1}).w;Yb(t,wb($A),function(c){var f=c.get("boxWidth");je(f)||(f=[f,f]),i[c.seriesIndex]=[it(f[0],a)||0,it(f[1],a)||0]});var o=a*.8-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return Yb(t,wb($A),function(c){var f=c.seriesIndex;n[f]=u,u+=s+l,r[f]=bn(cr(l,i[f][0]),i[f][1])}),{boxOffsetList:n,boxWidthList:r}}function Mbt(t,e,r){var n=t.coordinateSystem,i=t.getData(),a=r/2,o=t.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),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),A=x(d,c[2],f),p=x(d,c[0],f),g=x(d,c[1],f),m=x(d,c[3],f),y=x(d,c[4],f),b=[];T(b,g,!1),T(b,m,!0),b.push(p,g,y,m),B(b,p),B(b,y),B(b,A),i.setItemLayout(f,{initBaseline:A[s],ends:b})}function x(R,I,N){var F=i.get(I,N),Q=[];Q[o]=R,Q[s]=F;var j;return isNaN(R)||isNaN(F)?j=[NaN,NaN]:(j=n.dataToPoint(Q),j[o]+=e),j}function T(R,I,N){var F=I.slice(),Q=I.slice();F[o]+=a,Q[o]-=a,N?R.push(F,Q):R.push(Q,F)}function B(R,I){var N=I.slice(),F=I.slice();N[o]-=a,F[o]+=a,R.push(N,F)}}function Lbt(t){Tbt(t,function(){var e=wb($A);CJ(t,{key:e,seriesType:$A,getMetrics:UJ}),DQ(e,IQ(e))})}function Rbt(t,e){e=e||{};for(var r=[],n=[],i=e.boundIQR,a=i==="none"||i===0,o=0;o<t.length;o++){var s=qo(t[o].slice()),l=NU(s,.25),u=NU(s,.5),c=NU(s,.75),f=s[0],d=s[s.length-1],A=(i??1.5)*(c-l),p=a?f:Math.max(f,l-A),g=a?d:Math.min(d,c+A),m=e.itemNameFormatter,y=mt(m)?m({value:o}):et(m)?m.replace("{value}",o+""):o+"";r.push([y,p,l,u,c,g]);for(var b=0;b<s.length;b++){var x=s[b];if(x<p||x>g){var T=[y,x];n.push(T)}}}return{boxData:r,outliers:n}}var Ibt={type:"echarts:boxplot",transform:function(e){var r=e.upstream;if(r.sourceFormat!==Jo){var n="";sn(n)}var i=Rbt(r.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Obt(t){t.registerSeriesModel(zMe),t.registerChartView(bbt),t.registerLayout(Ebt),t.registerTransform(Ibt),Lbt(t)}var l0="candlestick",GMe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},e.type="series."+l0,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:{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);Da(GMe,jMe,!0);var Pbt=["itemStyle","borderColor"],kbt=["itemStyle","borderColor0"],Nbt=["itemStyle","borderColorDoji"],Fbt=["itemStyle","color"],Ubt=["itemStyle","color0"];function pee(t,e){return e.get(t>0?Fbt:Ubt)}function vee(t,e){return e.get(t===0?Nbt:t>0?Pbt:kbt)}var Hbt={seriesType:l0,plan:Mx(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(n,i){for(var a;(a=n.next())!=null;){var o=i.getItemModel(a),s=i.getItemLayout(a).sign,l=o.getItemStyle();l.fill=pee(s,o),l.stroke=vee(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");Fe(u,l)}}}}}},Qbt=["color","borderColor"],jbt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},e.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},e.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},e.prototype.eachRendered=function(r){w0(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea(),c=s&&Xb(l,!1,r);this._data||a.removeAll();var f=hhe(r);n.diff(i).add(function(d){if(n.hasValue(d)){var A=n.getItemLayout(d),p=s?mH(u,A):CR;if(p===ER)return;var g=gG(A,d,f,!0);ui(g,{shape:{points:A.ends}},r,d),PC(p===TR,g,c),mG(g,n,d,o),a.add(g),n.setItemGraphicEl(d,g)}}).update(function(d,A){var p=i.getItemGraphicEl(A);
125if(!n.hasValue(d)){a.remove(p);return}var g=n.getItemLayout(d),m=s?mH(u,g):CR;if(m===ER){a.remove(p);return}p?(Wr(p,{shape:{points:g.ends}},r,d),ad(p)):p=gG(g,d,f),mG(p,n,d,o),PC(m===TR,p,c),a.add(p),n.setItemGraphicEl(d,p)}).remove(function(d){var A=i.getItemGraphicEl(d);A&&a.remove(A)}).execute(),this._data=n},e.prototype._renderLarge=function(r){this._clear(),Ahe(r,this.group);var n=r.get("clip",!0)?Xb(r.coordinateSystem,!1,r):null;PC(!!n,this.group,n)},e.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o=hhe(n),s;(s=r.next())!=null;){var l=i.getItemLayout(s),u=gG(l,s,o);mG(u,i,s,a),u.incremental=WA(n),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(r,n){Ahe(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(r){this._clear()},e.prototype._clear=function(){this.group.removeAll(),PC(!1,this.group,null),this._data=null},e.type=l0,e})(xn),zbt=(function(){function t(){}return t})(),Vbt=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new zbt},e.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},e})(_r);function gG(t,e,r,n){var i=t.ends;return new Vbt({shape:{points:n?Gbt(i,r,t):i},z2:100})}function mG(t,e,r,n){var i=e.getItemModel(r);t.useStyle(e.getItemVisual(r,"style")),t.style.strokeNoScale=!0;var a=i.getShallow("cursor");a&&t.attr("cursor",a),t.__simpleBox=n,oo(t,i);var o=e.getItemLayout(r).sign;ee(t.states,function(l,u){var c=i.getModel(u),f=pee(o,c),d=vee(o,c)||f,A=l.style||(l.style={});f&&(A.fill=f),d&&(A.stroke=d)});var s=i.getModel("emphasis");Ti(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Gbt(t,e,r){return ze(t,function(n){return n=n.slice(),n[e]=r.initBaseline,n})}function hhe(t){return t.getWhiskerBoxesLayout()==="horizontal"?1:0}var Kbt=(function(){function t(){}return t})(),yG=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new Kbt},e.prototype.buildPath=function(r,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];r.moveTo(o,i[a++]),r.lineTo(o,i[a++])}else a+=3},e})(_r);function Ahe(t,e,r,n){var i=t.getData(),a=i.getLayout("largePoints"),o=new yG({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new yG({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new yG({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),wG(1,o,t),wG(-1,s,t),wG(0,l,t),n&&(o.incremental=WA(t),s.incremental=WA(t),l.incremental=WA(t)),r&&r.push(o,s,l)}function wG(t,e,r,n){var i=vee(t,r)||pee(t,r),a=r.getModel("itemStyle").getItemStyle(Qbt);e.useStyle(a),e.style.fill=null,e.style.stroke=i;var o=r.get("cursor");o&&e.attr("cursor",o)}function Wbt(t){!t||!je(t.series)||ee(t.series,function(e){Tt(e)&&e.type==="k"&&(e.type=l0)})}var Ybt=uE(),$bt={seriesType:l0,plan:Mx(),reset:function(t){var e=t.coordinateSystem,r=t.getData(),n=Zbt(t),i=t.getWhiskerBoxesLayout()==="horizontal"?0:1,a=1-i,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=ze(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?p:A};function A(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var x=b.get(s,y),T=b.get(u,y),B=b.get(c,y),R=b.get(f,y),I=b.get(d,y),N=bn(T,B),F=cr(T,B),Q=X(N,x),j=X(F,x),W=X(R,x),V=X(I,x),Y=[];q(Y,j,0),q(Y,Q,1),Y.push(te(V),te(j),te(W),te(Q));var G=m.getItemModel(y),K=!!G.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:phe(b,y,T,B,c,K),initBaseline:T>B?j[a]:Q[a],ends:Y,brushRect:ne(R,I,x)})}function X(ce,he){var ve=[];return ve[i]=he,ve[a]=ce,isNaN(he)||isNaN(ce)?[NaN,NaN]:e.dataToPoint(ve)}function q(ce,he,ve){var ae=he.slice(),fe=he.slice();ae[i]=QU(ae[i]+n/2,1,!1),fe[i]=QU(fe[i]-n/2,1,!0),ve?ce.push(ae,fe):ce.push(fe,ae)}function ne(ce,he,ve){var ae=X(ce,ve),fe=X(he,ve);return ae[i]-=n/2,fe[i]-=n/2,{x:ae[0],y:ae[1],width:a?n:fe[0]-ae[0],height:a?fe[1]-ae[1]:n}}function te(ce){return ce[i]=QU(ce[i],1),ce}}function p(g,m){for(var y=FA(g.count*4),b=0,x,T=[],B=[],R,I=m.getStore(),N=!!t.get(["itemStyle","borderColorDoji"]);(R=g.next())!=null;){var F=I.get(s,R),Q=I.get(u,R),j=I.get(c,R),W=I.get(f,R),V=I.get(d,R);if(isNaN(F)||isNaN(W)||isNaN(V)){y[b++]=NaN,b+=3;continue}y[b++]=phe(I,R,Q,j,c,N),T[i]=F,T[a]=W,x=e.dataToPoint(T,null,B),y[b++]=x?x[0]:NaN,y[b++]=x?x[1]:NaN,T[a]=V,x=e.dataToPoint(T,null,B),y[b++]=x?x[1]:NaN}m.setLayout("largePoints",y)}}};function phe(t,e,r,n,i,a){var o;return r>n?o=-1:r<n?o=1:o=a?0:e>0?t.get(i,e-1)<=n?1:-1:1,o}function Zbt(t,e){var r=t.getBaseAxis(),n=Fs(r,{fromStat:{key:wb(l0)},min:1}).w,i=it(ft(t.get("barMaxWidth"),n),n),a=it(ft(t.get("barMinWidth"),
1251),n),o=t.get("barWidth");return o!=null?it(o,n):cr(bn(n/2,i),a)}function Xbt(t){Ybt(t,function(){var e=wb(l0);CJ(t,{key:e,seriesType:l0,getMetrics:UJ}),DQ(e,IQ(e))})}function qbt(t){t.registerChartView(jbt),t.registerSeriesModel(GMe),t.registerPreprocessor(Wbt),t.registerVisual(Hbt),t.registerLayout($bt),Xbt(t)}function vhe(t,e){var r=e.rippleEffectColor||e.color;t.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?r:null,fill:e.brushType==="fill"?r:null}})})}var Jbt=(function(t){Ee(e,t);function e(r,n){var i=t.call(this)||this,a=new VI(r,n),o=new xt;return i.add(a),i.add(o),i.updateData(r,n),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=Ba(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}vhe(o,r)},e.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}vhe(i,r)},e.prototype.highlight=function(){Ag(this)},e.prototype.downplay=function(){pg(this)},e.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},e.prototype.updateData=function(r,n){var i=this,a=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=bE(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",f)});var A=Lx(r.getItemVisual(n,"symbolOffset"),u);A&&(o.x=A[0],o.y=A[1]);var p=r.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var g={};g.showEffectOn=a.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=n/r.count(),g.z=a.getShallow("z")||0,g.zlevel=a.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?g.showEffectOn!=="render"&&i.startEffectAnimation(g):m==="normal"&&g.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=g,Ti(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(r){r&&r()},e})(xt),ext=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._symbolDraw=new GI(Jbt)},e.prototype.render=function(r,n,i){var a=r.getData(),o=this._symbolDraw;o.updateData(a,ghe(r)),this.group.add(o.group)},e.prototype.updateTransform=function(r,n,i){var a=r.getData();this.group.dirty();var o=KI("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(ghe(r))},e.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=tCe(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(xn);function ghe(t){return{clipShape:z2e(t)}}var txt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return yp(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},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 rxt(t){t.registerChartView(ext),t.registerSeriesModel(txt),t.registerLayout(KI("effectScatter"))}var KMe=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this)||this;return a.add(a.createLine(r,n,i)),a._updateEffectSymbol(r,n),a}return e.prototype.createLine=function(r,n,i){return new oee(r,n,i)},e.prototype._updateEffectSymbol=function(r,n){var i=r.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");je(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Ba(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,a,n))},e.prototype._updateEffectAnimation=function(r,n,i){var a=this.childAt(1);if(a){var o=r.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=gl(n.get("delay"),function(A){return A/r.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;mt(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},e.prototype._getLineLength=function(r){return Nv(r.__p1,r.__cp1)+Nv(r.__cp1,r.__p2)},e.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},e.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<=1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Yo,c=Y7;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<=1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<=1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Nv(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*Nv(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},e.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var i=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,i,n)},e})(xt),WMe=(function(t){Ee(e,t);function e(r,n,i){var a=t.call(this)||this;return a._createPolyline(r,n,i),a}return e.prototype._createPolyline=function(r,n,i){var a=r.getItemLayout(n),o=new es({shape:{points:a}});this.add(o),this._updateCommonStl(r,n,i)},e.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Wr(o,s,a,n),this._updateCommonStl(r,n,i)},e.prototype._updateCommonStl=function(r,n,i){var a=this.childAt(0),o=r.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||r.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(r.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var d=a.ensureState("emphasis");d.style=s,Ti(this,l,u,c)},e.prototype.updateLayout=function(r,n){var i=this.childAt(0);i.stopAnimation(),i.setShape("points",r.getItemLayout(n))},e})(xt),nxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return e.prototype.createLine=function(r,n,i){return new WMe(r,n,i)},e.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=Nv(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(r){var n=r.__t<=1?r.__t:2-r.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>
125n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var A=r.__t<=1?d[0]-f[0]:f[0]-d[0],p=r.__t<=1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,A)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},e})(KMe),ixt=(function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t})(),axt=(function(t){Ee(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:xe.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ixt},e.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){r.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)r.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],d=i[o++];if(r.moveTo(u,c),a>0){var A=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(A,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],d=a[u++],A=1;A<c;A++){var p=a[u++],g=a[u++];if(oy(f,d,p,g,s,r,n))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],d=a[u++],p=a[u++],g=a[u++];if(o>0){var m=(f+p)/2-(d-g)*o,y=(d+g)/2-(p-f)*o;if(JCe(f,d,m,y,p,g,s,r,n))return l}else if(oy(f,d,p,g,s,r,n))return l;l++}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}r=this._rect=new St(a,o,s,l)}return r},e})(_r),oxt=(function(){function t(){this.group=new xt}return t.prototype.updateData=function(e){this._clear();var r=this._create();r.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(r,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,r,n){var i=this._newAdded[0],a=r.getLayout("linesPoints"),o=i&&i.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=n,u.setShape({segs:a}),this._setCommon(u,r),u.__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 axt({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=r.getVisual("style");a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null);var o=It(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),YMe={seriesType:"lines",plan:Mx(),reset:function(t){var e=t.coordinateSystem;if(e){var r=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){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 A=t.getLineCoords(c,o);r&&(s[f++]=A);for(var p=0;p<A;p++)d=e.dataToPoint(o[p],!1,d),s[f++]=d[0],s[f++]=d[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var g=a.getItemModel(c),A=t.getLineCoords(c,o),m=[];
125if(r)for(var y=0;y<A;y++)m.push(e.dataToPoint(o[y]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.dataToPoint(o[1]);var b=g.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])}a.setItemLayout(c,m)}}}}}},sxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=i.getZr(),c=!!SW(i);c&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&c&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(a);var f=r.get("clip",!0)&&Xb(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData(),WA(n)),this._finished=r.end===n.getData().count()},e.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},e.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=YMe.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),o.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new oxt:new see(o?a?nxt:WMe:a?KMe:oee),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(r){return!!r.get(["effect","show"])},e.prototype._clearLayer=function(r){var n=SW(r);n&&this._lastZlevel!=null&&n.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(r,n){this.remove(r,n)},e.type="lines",e})(xn),lxt=typeof Uint32Array>"u"?Array:Uint32Array,uxt=typeof Float64Array>"u"?Array:Float64Array;function mhe(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=ze(e,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),Z5([i,r[0],r[1]])}))}var cxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.init=function(r){r.data=r.data||[],mhe(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(r){if(mhe(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=gT(this._flatCoords,n.flatCoords),this._flatCoordsOffset=gT(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},e.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},e.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Hr(r[0])){for(var i=r.length,a=new lxt(i),o=new uxt(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=r[c++];a[l++]=s+n,a[l++]=f;for(var d=0;d<f;d++){var A=r[c++],p=r[c++];o[s++]=A,o[s++]=p}}
125return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},e.prototype.getInitialData=function(r,n){var i=new bl(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getItemModel(r),l=s.get("name");if(!l){var u=s.get("fromName"),c=s.get("toName"),f=[];u!=null&&f.push(u),c!=null&&f.push(c),l=f.join(" > ")}return Va("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},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 AF(t){return t instanceof Array||(t=[t,t]),t}var fxt={seriesType:"lines",reset:function(t){var e=AF(t.get("symbol")),r=AF(t.get("symbolSize")),n=t.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=AF(s.getShallow("symbol",!0)),u=AF(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function dxt(t){t.registerChartView(sxt),t.registerSeriesModel(cxt),t.registerLayout(YMe),t.registerVisual(fxt)}var hxt=256,Axt=(function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Eo.createCanvas();this.canvas=e}return t.prototype.update=function(e,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),A=e.length;f.width=r,f.height=n;for(var p=0;p<A;++p){var g=e[p],m=g[0],y=g[1],b=g[2],x=i(b);d.globalAlpha=x,d.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var T=d.getImageData(0,0,f.width,f.height),B=T.data,R=0,I=B.length,N=this.minOpacity,F=this.maxOpacity,Q=F-N;R<I;){var x=B[R+3]/256,j=Math.floor(x*(hxt-1))*4;if(x>0){var W=o(x)?l:u;x>0&&(x=x*Q+N),B[R++]=W[j],B[R++]=W[j+1],B[R++]=W[j+2],B[R++]=W[j+3]*x*256}else R+=4}return d.putImageData(T,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Eo.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=xe.color.neutral99,i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},t})();function pxt(t,e,r){var n=t[1]-t[0];e=ze(e,function(o){return{interval:[(o.interval[0]-t[0])/n,(o.interval[1]-t[0])/n]}});var i=e.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&r[s]}}function vxt(t,e){var r=t[1]-t[0];return e=[(e[0]-t[0])/r,(e[1]-t[0])/r],function(n){return n>=e[0]&&n<=e[1]}}var gxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(r,i,0,r.getData().count()):yfe(o)&&this._renderOnGeo(o,r,a,i)},e.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},e.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(yfe(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnGridLike(n,a,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){w0(this._progressiveEls||this.group,r)},e.prototype._renderOnGridLike=function(r,n,i,a,o){var s=r.coordinateSystem,l=qb(s,"cartesian2d"),u=qb(s,"matrix"),c,f,d,A;if(l){var p=s.getAxis("x"),g=s.getAxis("y");c=Fs(p).w+.5,f=Fs(g).w+.5,d=p.scale.getExtent(),A=g.scale.getExtent()}for(var m=this.group,y=r.getData(),b=r.getModel(["emphasis","itemStyle"]).getItemStyle(),x=r.getModel(["blur","itemStyle"]).getItemStyle(),T=r.getModel(["select","itemStyle"]).getItemStyle(),B=r.get(["itemStyle","borderRadius"]),R=so(r),I=r.getModel("emphasis"),N=I.get("focus"),F=I.get("blurScope"),Q=I.get("disabled"),j=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],W=i;W<a;W++){var V=void 0,Y=y.getItemVisual(W,"style");if(l){var G=y.get(j[0],W),K=y.get(j[1],W);if(isNaN(y.get(j[2],W))||isNaN(G)||isNaN(K)||G<d[0]||G>d[1]||K<A[0]||K>A[1])continue;var X=s.dataToPoint([G,K]);V=new fr({shape:{x:X[0]-c/2,y:X[1]-f/2,width:c,height:f},style:Y})}else if(u){var q=s.dataToLayout([y.get(j[0],W),y.get(j[1],W)]).rect;if(Ds(q.x))continue;V=new fr({z2:1,shape:q,style:Y})}else{if(isNaN(y.get(j[1],W)))continue;var ne=s.dataToLayout([y.get(j[0],W)]),q=ne.contentRect||ne.rect;if(Ds(q.x)||Ds(q.y))continue;V=new fr({z2:1,shape:q,style:Y})}if(y.hasItemOption){var te=y.getItemModel(W),ce=te.getModel("emphasis");b=ce.getModel("itemStyle").getItemStyle(),x=te.getModel(["blur","itemStyle"]).getItemStyle(),T=te.getModel(["select","itemStyle"]).getItemStyle(),B=te.get(["itemStyle","borderRadius"]),N=ce.get("focus"),F=ce.get("blurScope"),Q=ce.get("disabled"),R=so(te)}V.shape.r=B;var he=r.getRawValue(W),ve="-";he&&he[2]!=null&&(ve=he[2]+""),Do(V,R,{labelFetcher:r,labelDataIndex:W,defaultOpacity:Y.opacity,defaultText:ve}),V.ensureState("emphasis").style=b,V.ensureState("blur").style=x,V.ensureState("select").style=T,Ti(V,N,F,Q),V.incremental=WA(r,o),o&&(V.states.emphasis.hoverLayer=pE),m.add(V),y.setItemGraphicEl(W,V),this._progressiveEls&&this._progressiveEls.push(V)}},e.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Axt;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);
125var d=Math.max(c.x,0),A=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),m=p-d,y=g-A,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(b,function(I,N,F){var Q=r.dataToPoint([I,N]);return Q[0]-=d,Q[1]-=A,Q.push(F),Q}),T=i.getExtent(),B=i.type==="visualMap.continuous"?vxt(T,i.option.range):pxt(T,i.getPieceList(),i.option.selected);u.update(x,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},B);var R=new Mo({style:{width:m,height:y,x:d,y:A,image:u.canvas},silent:!0});this.group.add(R)},e.type="heatmap",e})(xn),mxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return yp(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=yE.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:xe.color.primary}}},e})(On);function yxt(t){t.registerChartView(gxt),t.registerSeriesModel(mxt)}var wxt=["itemStyle","borderWidth"],yhe=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],_G=new mp,_xt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=BR,r}return e.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:yhe[+c],categoryDim:yhe[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var g=_he(o,p),m=whe(o,p,g,d),y=bhe(o,d,m);o.setItemGraphicEl(p,y),a.add(y),She(y,d,m)}}).update(function(p,g){var m=s.getItemGraphicEl(g);if(!o.hasValue(p)){a.remove(m);return}var y=_he(o,p),b=whe(o,p,y,d),x=eLe(o,b);m&&x!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(p,null),m=null),m?Bxt(m,d,b):m=bhe(o,d,b,!0),o.setItemGraphicEl(p,m),m.__pictorialSymbolMeta=b,a.add(m),She(m,d,b)}).remove(function(p){var g=s.getItemGraphicEl(p);g&&xhe(s,p,g.__pictorialSymbolMeta.animationModel,g)}).execute();var A=r.get("clip",!0)?Xb(r.coordinateSystem,!1,r):null;return A?a.setClipPath(A):a.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){xhe(a,It(o).dataIndex,r,o)}):i.removeAll()},e.type=BR,e})(xn);function whe(t,e,r,n){var i=t.getItemLayout(e),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:e,layout:i,itemModel:r,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};bxt(r,a,i,n,d),xxt(t,e,i,a,o,d.boundingLength,d.pxSign,c,n,d),Sxt(r,d.symbolScale,u,n,d);var A=d.symbolSize,p=Lx(r.get("symbolOffset"),A);return Cxt(r,A,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function bxt(t,e,r,n,i){var a=n.valueDim,o=t.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(je(o)){var f=[bG(s,o[0])-l,bG(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=bG(s,o)-l:e?c=n.coordSysExtent[a.index][u]-l:c=r[a.wh];i.boundingLength=c,e&&(i.repeatCutLength=r[a.wh]);var d=a.xy==="x",A=s.inverse;i.pxSign=d&&!A||!d&&A?c>=0?1:-1:c>0?1:-1}function bG(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function xxt(t,e,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),A=t.getItemVisual(e,"symbolSize"),p;je(A)?p=A.slice():A==null?p=["100%","100%"]:p=[A,A],p[f.index]=it(p[f.index],d),p[c.index]=it(p[c.index],n?d:Math.abs(a)
125),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Sxt(t,e,r,n,i){var a=t.get(wxt)||0;a&&(_G.attr({scaleX:e[0],scaleY:e[1],rotation:r}),_G.updateTransform(),a/=_G.getLineScale(),a*=e[n.valueDim.index]),i.valueLineWidth=a||0}function Cxt(t,e,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,A=c.valueDim,p=f.pxSign,g=Math.max(e[A.index]+s,0),m=g;if(n){var y=Math.abs(l),b=gl(t.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var T=it(b,e[A.index]),B=Math.max(g+T*2,0),R=x?0:T*2,I=cq(n),N=I?n:Che((y+R)/B),F=y-N*g;T=F/2/(x?N:Math.max(N-1,1)),B=g+T*2,R=x?0:T*2,!I&&n!=="fixed"&&(N=u?Che((Math.abs(u)+R)/B):0),m=N*B-R,f.repeatTimes=N,f.symbolMargin=T}var Q=p*(m/2),j=f.pathPosition=[];j[d.index]=r[d.wh]/2,j[A.index]=o==="start"?Q:o==="end"?l-Q:l/2,a&&(j[0]+=a[0],j[1]+=a[1]);var W=f.bundlePosition=[];W[d.index]=r[d.xy],W[A.index]=r[A.xy];var V=f.barRectShape=Fe({},r);V[A.wh]=p*Math.max(Math.abs(r[A.wh]),Math.abs(j[A.index]+Q)),V[d.wh]=r[d.wh];var Y=f.clipShape={};Y[d.xy]=-r[d.xy],Y[d.wh]=c.ecSize[d.wh],Y[A.xy]=0,Y[A.wh]=r[A.wh]}function $Me(t){var e=t.symbolPatternSize,r=Ba(t.symbolType,-e/2,-e/2,e,e);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function ZMe(t,e,r,n){var i=t.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=e.valueDim,u=r.repeatTimes||0,c=0,f=a[e.valueDim.index]+o+r.symbolMargin*2;for(gee(t,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?rT(g,null,p(c),r,n):rT(g,null,{scaleX:0,scaleY:0},r,n,function(){i.remove(g)}),c++});c<u;c++){var d=$Me(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var A=p(c);rT(d,{x:A.x,y:A.y,scaleX:0,scaleY:0},{scaleX:A.scaleX,scaleY:A.scaleY,rotation:A.rotation},r,n)}function p(g){var m=s.slice(),y=r.pxSign,b=g;return(r.symbolRepeatDirection==="start"?y>
1250:y<0)&&(b=u-1-g),m[l.index]=f*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function XMe(t,e,r,n){var i=t.__pictorialBundle,a=t.__pictorialMainPath;a?rT(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=t.__pictorialMainPath=$Me(r),i.add(a),rT(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function qMe(t,e,r){var n=Fe({},e.barRectShape),i=t.__pictorialBarRect;i?rT(i,null,{shape:n},e,r):(i=t.__pictorialBarRect=new fr({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function JMe(t,e,r,n){if(r.symbolClip){var i=t.__pictorialClipPath,a=Fe({},r.clipShape),o=e.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Wr(i,{shape:a},s,l);else{a[o.wh]=0,i=new fr({shape:a}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Ex[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function _he(t,e){var r=t.getItemModel(e);return r.getAnimationDelayParams=Txt,r.isAnimationEnabled=Ext,r}function Txt(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Ext(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function bhe(t,e,r,n){var i=new xt,a=new xt;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?ZMe(i,e,r):XMe(i,e,r),qMe(i,r,n),JMe(i,e,r,n),i.__pictorialShapeStr=eLe(t,r),i.__pictorialSymbolMeta=r,i}function Bxt(t,e,r){var n=r.animationModel,i=r.dataIndex,a=t.__pictorialBundle;Wr(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?ZMe(t,e,r,!0):XMe(t,e,r,!0),qMe(t,r,!0),JMe(t,e,r,!0)}function xhe(t,e,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];gee(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),ee(a,function(o){i0(o,{scaleX:0,scaleY:0},r,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function eLe(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function gee(t,e,r){ee(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(r,n)})}function rT(t,e,r,n,i,a){e&&t.attr(e),n.symbolClip&&!i?r&&t.attr(r):r&&Ex[i?"updateProps":"initProps"](t,r,n.animationModel,n.dataIndex,a)}function She(t,e,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");gee(t,function(g){if(g instanceof Mo){var m=g.style;g.useStyle(Fe({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else g.useStyle(r.style);var y=g.ensureState("emphasis");y.style=o,d&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=r.z2});var A=e.valueDim.posDesc[+(r.boundingLength>0)],p=t.__pictorialBarRect;p.ignoreClip=!0,Do(p,so(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:MT(e.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:A}),Ti(t,c,f,a.get("disabled"))}function Che(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Dxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return e.prototype.getInitialData=function(r){return r.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series."+BR,e.dependencies=["grid"],e.defaultOption=_0(DR.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:xe.color.primary}}}),e})(DR);function Mxt(t){t.registerChartView(_xt),t.registerSeriesModel(Dxt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,uDe(BR)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cDe(BR)),dDe(t)}var xG=2,OT="themeRiver",Lxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}
125return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DE(ot(this.getData,this),ot(this.getRawData,this))},e.prototype.fixData=function(r){var n=r.length,i={},a=uW(r,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),o=[];a.buckets.each(function(d,A){o.push({name:A,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,r[n]=[f,0,u],n++)}return r},e.prototype.getInitialData=function(r,n){for(var i=this.getReferringComponents("singleAxis",ta).models[0],a=i.get("type"),o=ln(r.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=st(),c=0,f=0;f<s.length;++f)l.push(s[f][xG]),u.get(s[f][xG])||(u.set(s[f][xG],c),c++);var d=xE(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:K3(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,A=new bl(d,this);return A.initData(s),A},e.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),i=[],a=0;a<n;++a)i[a]=a;var o=r.mapDimension("single"),s=uW(i,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return r.get(o,f)-r.get(o,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(r,n,i){je(r)||(r=r?[r]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,A=o[c].indices.length,p=0;p<A;++p){var g=a.get(r[0],o[c].indices[p]),m=Math.abs(g-n);m<=f&&(u=g,f=m,d=o[c].indices[p])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getName(r),s=a.get(a.mapDimension("value"),r);return Va("nameValue",{name:o,value:s})},e.type="series."+OT,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),Rxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=OT,r._layers=[],r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(m){return m.name}var A=new vg(this._layersSeries||[],l,d,d),p=[];A.add(ot(g,this,"add")).update(ot(g,this,"update")).remove(ot(g,this,"remove")).execute();function g(m,y,b){var x=o._layers;if(m==="remove"){s.remove(x[y]);return}for(var T=[],B=[],R,I=l[y].indices,N=0;N<I.length;N++){var F=a.getItemLayout(I[N]),Q=F.x,j=F.y0,W=F.y;T.push(Q,j),B.push(Q,j+W),R=a.getItemVisual(I[N],"style")}var V,Y=a.getItemLayout(I[0]),G=r.getModel("label"),K=G.get("margin"),X=r.getModel("emphasis");if(m==="add"){var q=p[y]=new xt;V=new H2e({shape:{points:T,stackedOnPoints:B,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),q.add(V),s.add(q),r.isAnimationEnabled()&&V.setClipPath(Ixt(V.getBoundingRect(),r,function(){V.removeClipPath()}))}else{var q=x[b];V=q.childAt(0),s.add(q),p[y]=q,Wr(V,{shape:{points:T,stackedOnPoints:B}},r),ad(V)}Do(V,so(r),{labelDataIndex:I[N-1],defaultText:a.getName(I[N-1]),inheritColor:R.fill},{normal:{verticalAlign:"middle"}}),V.setTextConfig({position:null,local:!0});var ne=V.getTextContent();ne&&(ne.x=Y.x-K,ne.y=Y.y0+Y.y/2),V.useStyle(R),a.setItemGraphicEl(y,V),oo(V,r),Ti(V,X.get("focus"),X.get("blurScope"),X.get("disabled"))}this._layersSeries=l,this._layers=p},e.type=OT,e})(xn);function Ixt(t,e,r){var n=new fr({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ui(n,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,r),n}var Oxt=lo(OT,Pxt);function Pxt(t,e){t.eachSeriesByType(OT,function(r){var n=r.getData(),i=r.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=r.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=it(s[0],o.height),s[1]=it(s[1],o.height);var u=o.height-s[0]-s[1];The(n,r,u)}else{s[0]=it(s[0],o.width),s[1]=it(s[1],o.width);var c=o.width-s[0]-s[1];The(n,r,c)}n.setLayout("layoutInfo",a)})}function The(t,e,r){if(t.count())for(var n=e.coordinateSystem,i=e.getLayerSeries(),a=t.mapDimension("single"),o=t.mapDimension("value"),s=ze(i,function(m){return ze(m.indices,function(y){var b=n.dataToPoint(t.get(a,y));return b[1]=t.get(o,y),b})}),l=kxt(s),u=l.y0,c=r/l.max,f=i.length,d=i[0].indices.length,A,p=0;p<d;++p){A=u[p]*c,t.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:A,y:s[0][p][1]*c});for(var g=1;g<f;++g)A+=s[g-1][p][1]*c,t.setItemLayout(i[g].indices[p],{layerIndex:g,x:s[g][p][0],y0:A,y:s[g][p][1]*c})}}function kxt(t){for(var e=t.length,r=t[0].length,n=[],i=[],a=0,o=0;o<r;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<r;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<r;++c){var f=n[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function Nxt(t){t.registerChartView(Rxt),t.registerSeriesModel(Lxt),t.registerLayout(Oxt),t.registerProcessor(YI(OT))}var Fxt=2,Uxt=4,Ehe=(function(t){Ee(e,t);function e(r,n,i,a){var o=t.call(this)||this;o.z2=Fxt,o.textConfig={inside:!0},It(o).seriesIndex=n.seriesIndex;var s=new Nr({z2:Uxt,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return e.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;It(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Fe({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var A=n.getVisual("decal");A&&(d.decal=CT(A,o));var p=UA(l.getModel("itemStyle"),f,!0);Fe(f,p),ee(uu,function(b){var x=s.ensureState(b),T=l.getModel([b,"itemStyle"]);x.style=T.getItemStyle();var B=UA(T,f);B&&(x.shape=B)}),r?(s.setShape(f),s.shape.r=c.r0,ui(s,{shape:{r:c.r}},i,n.dataIndex)):(Wr(s,{shape:f},i),ad(s)),s.useStyle(d),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var m=u.get("focus"),y=m==="relative"?gT(n.getAncestorsIndices(),n.getDescendantIndices()):m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;Ti(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),A=this.node.dataIndex,p=a.get("minA
125ngle")/180*Math.PI,g=a.get("show")&&!(p!=null&&Math.abs(s)<p);d.ignore=!g,ee(cR,function(y){var b=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),x=y==="normal",T=x?d:d.ensureState(y),B=r.getFormattedLabel(A,y);x&&(B=B||n.node.name),T.style=Gn(b,{},null,y!=="normal",!0),B&&(T.style.text=B);var R=b.get("show");R!=null&&!x&&(T.ignore=!R);var I=m(b,"position"),N=x?f:f.states[y],F=N.style.fill;N.textConfig={outsideFill:b.get("color")==="inherit"?F:null,inside:I!=="outside"};var Q,j=m(b,"distance")||0,W=m(b,"align"),V=m(b,"rotate"),Y=Math.PI*.5,G=Math.PI*1.5,K=Ic(V==="tangential"?Math.PI/2-l:l),X=K>Y&&!Fb(K-Y)&&K<G;I==="outside"?(Q=o.r+j,W=X?"right":"left"):!W||W==="center"?(o.r0===0&&Fb(s-2*Math.PI)?Q=0:Q=(o.r+o.r0)/2,W="center"):W==="left"?(Q=o.r0+j,W=X?"right":"left"):W==="right"&&(Q=o.r-j,W=X?"left":"right"),T.style.align=W,T.style.verticalAlign=m(b,"verticalAlign")||"middle",T.x=Q*u+o.cx,T.y=Q*c+o.cy;var q=0;V==="radial"?q=Ic(-l)+(X?Math.PI:0):V==="tangential"?q=Ic(Math.PI/2-l)+(X?Math.PI:0):Hr(V)&&(q=V*Math.PI/180),T.rotation=Ic(q)});function m(y,b){var x=y.get(b);return x??a.get(b)}d.dirtyStyle()},e})(ks),ox="sunburst",Hxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};tLe(i);var a=this._levelModels=ze(r.levels||[],function(l){return new wr(l,this,n)},this),o=JJ.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=HQ(i,this),n},e.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){iMe(this)},e.type="series."+ox,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 tLe(t){var e=0;ee(t.children,function(n){tLe(n);var i=n.value;je(i)&&(i=i[0]),e+=i});var r=t.value;je(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),je(t.value)?t.value[0]=r:t.value=r}var BY="sunburstRootToNode",Bhe="sunburstHighlight",Qxt="sunburstUnhighlight";function jxt(t){t.registerAction({type:BY,update:"updateView"},function(e,r){r.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i,a){var o=OR(e,[BY],i);if(o){var s=i.getViewRoot();s&&(e.direction=eee(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),t.registerAction({type:Bhe,update:"none"},function(e,r,n){e=Fe({},e),r.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a){var o=OR(e,[Bhe],a);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(Fe(e,{type:"highlight"}))}),t.registerAction({type:Qxt,update:"updateView"},function(e,r,n){e=Fe({},e),n.dispatchAction(Fe(e,{type:"downplay"}))})}var zxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ox,r}return e.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(b){d.push(b)});var A=this._oldChildren||[];p(d,A),y(l,u),this._initEvents(),this._oldChildren=d;function p(b,x){if(b.length===0&&x.length===0)return;new vg(x,b,T,T).add(B).update(B).remove(lr(B,null)).execute();function T(R){return R.getId()}function B(R,I){var N=R==null?null:b[R],F=I==null?null:x[I];g(N,F)}}function g(b,x){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&x!==l){if(x&&x.piece)b?(x.piece.updateData(!1,b,r,n,i),s.setItemGraphicEl(b.dataIndex,x.piece)):m(x);else if(b){var T=new Ehe(b,r,n,i);c.add(T),s.setItemGraphicEl(b.dataIndex,T)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,r,n,i):(o.virtualPiece=new Ehe(b,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(T){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var r=this;
125this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";k3(u,c)}}i=!0}})})},e.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:BY,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=ox,e})(xn),Vxt=lo(ox,Gxt);function Gxt(t){var e={};function r(n,i,a){if(n.depth===0)return xe.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&et(s)&&(s=y3(s,(n.depth-1)/(a-1)*.5)),s}t.eachSeriesByType(ox,function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");Fe(u,l)})})}var Dhe=Math.PI/180,Kxt=lo(ox,Wxt);function Wxt(t,e){t.eachSeriesByType(ox,function(r){var n=r.get("center"),i=r.get("radius");je(i)||(i=[0,i]),je(n)||(n=[n,n]);var a=e.getWidth(),o=e.getHeight(),s=Math.min(a,o),l=it(n[0],a),u=it(n[1],o),c=it(i[0],s/2),f=it(i[1],s/2),d=-r.get("startAngle")*Dhe,A=r.get("minA
125ngle")*Dhe,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,y=r.get("sort");y!=null&&rLe(g,y);var b=0;ee(g.children,function(G){!isNaN(G.getValue())&&b++});var x=g.getValue(),T=Math.PI/(x||b)*2,B=g.depth>0,R=g.height-(B?-1:1),I=(f-c)/(R||1),N=r.get("clockwise"),F=r.get("stillShowZeroSum"),Q=N?1:-1,j=function(G,K){if(G){var X=K;if(G!==p){var q=G.getValue(),ne=x===0&&F?T:q*T;ne<A&&(ne=A),X=K+Q*ne;var te=G.depth-m-(B?-1:1),ce=c+I*te,he=c+I*(te+1),ve=r.getLevelModel(G);if(ve){var ae=ve.get("r0",!0),fe=ve.get("r",!0),we=ve.get("radius",!0);we!=null&&(ae=we[0],fe=we[1]),ae!=null&&(ce=it(ae,s/2)),fe!=null&&(he=it(fe,s/2))}G.setLayout({angle:ne,startAngle:K,endAngle:X,clockwise:N,cx:l,cy:u,r0:ce,r:he})}if(G.children&&G.children.length){var Me=0;ee(G.children,function(ge){Me+=j(ge,K+Me)})}return X-K}};if(B){var W=c,V=c+I,Y=Math.PI*2;p.setLayout({angle:Y,startAngle:d,endAngle:d+Y,clockwise:N,cx:l,cy:u,r0:W,r:V})}j(g,d)})}function rLe(t,e){var r=t.children||[];t.children=Yxt(r,e),r.length&&ee(t.children,function(n){rLe(n,e)})}function Yxt(t,e){if(mt(e)){var r=ze(t,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return r.sort(function(i,a){return e(i.params,a.params)}),ze(r,function(i){return t[i.index]})}else{var n=e==="asc";return t.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function $xt(t){t.registerChartView(zxt),t.registerSeriesModel(Hxt),t.registerLayout(Kxt),t.registerVisual(Vxt),jxt(t)}var Mhe={color:"fill",borderColor:"stroke"},Zxt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},qv=qt(),Xxt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(r,n){return yp(null,this)},e.prototype.getDataParams=function(r,n,i){var a=t.prototype.getDataParams.call(this,r,n);return i&&(a.info=qv(i).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(On);function qxt(t,e){return e=e||[0,0],ze(["x","y"],function(r,n){var i=this.getAxis(r),a=e[n],o=t[n]/2;return i.type==="category"?Fs(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function Jxt(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(r){return t.dataToPoint(r)},size:ot(qxt,t)}}}function e1t(t,e){return e=e||[0,0],ze([0,1],function(r){var n=e[r],i=t[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=e[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function t1t(t){var e=t.view,r=e.getBoundingRect();return{coordSys:{type:"geo",x:r.x,y:r.y,width:r.width,height:r.height,zoom:Syt(e)},api:{coord:function(n){return t.dataToPoint(n)},size:ot(e1t,t)}}}function r1t(t,e){var r=this.getAxis(),n=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return r.type==="category"?Fs(r).w:Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function n1t(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r){return t.dataToPoint(r)},size:ot(r1t,t)}}}function i1t(t,e){return e=e||[0,0],ze(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=e[n],s=t[n]/2,l=a.type==="category"?Fs(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function a1t(t){var e=t.getRadiusAxis(),r=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=e.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=t.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ot(i1t,t)}}}function o1t(t){var e=t.getRect(),r=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:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return t.dataToPoint(n,i)},layout:function(n,i){return t.dataToLayout(n,i)}}}}function s1t(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(r,n){return t.dataToPoint(r,n)},layout:function(r,n){return t.dataToLayout(r,n)}}}}var nLe={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Lhe=Cr(nLe);td(dg,function(t,e){return t[e]=1,t},{});dg.join(", ");var yH=["","style","shape","extra"],PT=qt();function mee(t,e,r,n,i){var a=t+"Animation",o=AE(t,n,i)||{},s=PT(e).userDuring;return o.duration>0&&(o.during=s?ot(d1t,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Fe(o,r[a]),o}function qU(t,e,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=PT(t),u=e.style;l.userDuring=e.during;var c={},f={};if(A1t(t,e,f),t.type==="compound")for(var d=t.shape.paths,A=e.shape.paths,p=0;p<A.length;p++){var g=A[p];SG("shape",g,d[p])}else SG("shape",e,f),SG("extra",e,f);if(!a&&s&&(h1t(t,e,c),Rhe("shape",t,e,c),Rhe("extra",t,e,c),p1t(t,e,u,c)),f.style=u,l1t(t,f,o),c1t(t,e),s)if(a){var m={};ee(yH,function(b){var x=b?e[b]:e;x&&x.enterFrom&&(b&&(m[b]=m[b]||{}),Fe(b?m[b]:m,x.enterFrom))});var y=mee("enter",t,e,r,i);y.duration>0&&t.animateFrom(m,y)}else u1t(t,e,i||0,r,c);iLe(t,e),u?t.dirty():t.markRedraw()}function iLe(t,e){for(var r=PT(t).leaveToProps,n=0;n<yH.length;n++){var i=yH[n],a=i?e[i]:e;a&&a.leaveTo&&(r||(r=PT(t).leaveToProps={}),i&&(r[i]=r[i]||{}),Fe(i?r[i]:r,a.leaveTo))}}function zQ(t,e,r,n){if(t){var i=t.parent,a=PT(t).leaveToProps;if(a){var o=mee("update",t,e,r,0);o.done=function(){i&&i.remove(t)},t.animateTo(a,o)}else i&&i.remove(t)}}function _b(t){return t==="all"}function l1t(t,e,r){var n=e.style;
125if(!t.isGroup&&n){if(r){t.useStyle({});for(var i=t.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}function u1t(t,e,r,n,i){if(i){var a=mee("update",t,e,n,r);a.duration>0&&t.animateFrom(i,a)}}function c1t(t,e){ut(e,"silent")&&(t.silent=e.silent),ut(e,"ignore")&&(t.ignore=e.ignore),t instanceof id&&ut(e,"invisible")&&(t.invisible=e.invisible),t instanceof _r&&ut(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var yA={},f1t={setTransform:function(t,e){return yA.el[t]=e,this},getTransform:function(t){return yA.el[t]},setShape:function(t,e){var r=yA.el,n=r.shape||(r.shape={});return n[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=yA.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=yA.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=yA.el.style;if(e)return e[t]},setExtra:function(t,e){var r=yA.el.extra||(yA.el.extra={});return r[t]=e,this},getExtra:function(t){var e=yA.el.extra;if(e)return e[t]}};function d1t(){var t=this,e=t.el;if(e){var r=PT(e).userDuring,n=t.userDuring;if(r!==n){t.el=t.userDuring=null;return}yA.el=e,n(f1t)}}function Rhe(t,e,r,n){var i=r[t];if(i){var a=e[t],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[t]={}),_b(l))Fe(o,a);else for(var u=Kn(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(_b(s)||zt(s,t)>=0){!o&&(o=n[t]={});for(var A=Cr(a),c=0;c<A.length;c++){var f=A[c],d=a[f];v1t(i[f],d)&&(o[f]=d)}}}}}function SG(t,e,r){var n=e[t];if(n)for(var i=r[t]={},a=Cr(n),o=0;o<a.length;o++){var s=a[o];i[s]=gL(n[s])}}function h1t(t,e,r){for(var n=e.transition,i=_b(n)?dg:Kn(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];r[o]=s}}}function A1t(t,e,r){for(var n=0;n<Lhe.length;n++){var i=Lhe[n],a=nLe[i],o=e[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<dg.length;n++){var s=dg[n];e[s]!=null&&(r[s]=e[s])}}function p1t(t,e,r,n){if(r){var i=t.style,a;if(i){var o=r.transition,s=e.transition;if(o&&!_b(o)){var l=Kn(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(t.getAnimationStyleProps&&(_b(s)||_b(o)||zt(s,"style")>=0)){var d=t.getAnimationStyleProps(),A=d?d.style:null;if(A){!a&&(a=n.style={});for(var p=Cr(r),u=0;u<p.length;u++){var c=p[u];if(A[c]){var f=i[c];a[c]=f}}}}}}}function v1t(t,e){return Os(t)?t!==e:t!=null&&isFinite(t)}var aLe=qt(),g1t=["percent","easing","shape","style","extra"];function oLe(t){t.stopAnimation("keyframe"),t.attr(aLe(t))}function wH(t,e,r){if(!(!r.isAnimationEnabled()||!e)){if(je(e)){ee(e,function(s){wH(t,s,r)});return}var n=e.keyframes,i=e.duration;if(r&&i==null){var a=AE("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=aLe(t);ee(yH,function(s){if(!(s&&!t[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),ee(n,function(u){var c=t.animators,f=s?u[s]:u;if(f){var d=Cr(f);if(s||(d=ln(d,function(g){return zt(g1t,g)<0})),!!d.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var A=0;A<c.length;A++)c[A]!==l&&c[A].targetName===l.targetName&&c[A].stopTracks(d);s&&(o[s]=o[s]||{});var p=s?o[s]:o;ee(d,function(g){p[g]=((s?t[s]:t)||{})[g]}),l.whenWithKeys(i*u.percent,f,d,u.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing)}})}}}var Jv="emphasis",Cy="normal",yee="blur",wee="select",u0=[Cy,Jv,yee,wee],CG={normal:["itemStyle"],emphasis:[Jv,"itemStyle"],blur:[yee,"itemStyle"],select:[wee,"itemStyle"]},TG={normal:["label"],emphasis:[Jv,"label"],blur:[yee,"label"],select:[wee,"label"]},m1t=["x","y"],y1t="e\0\0",Tf={normal:{},emphasis:{},blur:{},select:{}},w1t={cartesian2d:Jxt,geo:t1t,single:n1t,polar:a1t,calendar:o1t,matrix:s1t};function DY(t){return t instanceof _r}function MY(t){return t instanceof id}function _1t(t,e){e.copyTransform(t),MY(e)&&MY(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,DY(e)&&DY(t)&&e.setShape(t.shape))}var b1t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=Ihe(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){EG(i,null,f,u(f,a),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&zQ(d,qv(d).option,r)}).update(function(f,d){var A=o.getItemGraphicEl(d);EG(i,A,f,u(f,a),r,l,s)}).execute();var c=r.get("clip",!0)?Xb(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(r,n,i,a,o){var s=n.getData(),l=Ihe(n,s,i,a),u=this._progressiveEls=[];function c(A){A.isGroup||(A.incremental=WA(n),A.ensureState("emphasis").hoverLayer=pE)}for(var f=r.start;f<r.end;f++){var d=EG(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(r){w0(this._progressiveEls||this.group,r)},e.prototype.filterForExposedEvent=function(r,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},e.type="custom",e})(xn);function _ee(t){var e=t.type,r;if(e==="path"){var n=t.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=uLe(n);r=bT(a,null,i,n.layout||"center"),qv(r).customPathData=a}else if(e==="image")r=new Mo({}),qv(r).customImagePath=t.style.image;else if(e==="text")r=new Nr({});else if(e==="group")r=new xt;else if(e==="compoundPath"){var n=t.shape;if(!n||!n.paths){var o="";sn(o)}var s=ze(n.paths,function(c){if(c.type==="path")return bT(c.shape.pathData,c,null);var f=dR(c.type);if(!f){var d="";sn(d)}return new f});r=new PI({shape:{paths:s}})}else{var l=dR(e);if(!l){var o="";sn(o)}r=new l}return qv(r).customGraphicType=e,r.name=t.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function bee(t,e,r,n,i,a,o){oLe(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=m1t);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;ut(u,"textFill")&&(u.fill=u.textFill),ut(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=DY(e)?l.decal:null;t&&f&&(f.dirty=!0,c=CT(f,t)),l.__decalPattern=c}if(MY(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}qU(e,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),wH(e,n.keyframeAnimation,a)}function sLe(t,e,r,n,i){var a=e.isGroup?null:e,o=i&&i[t].cfg;if(a){var s=a.ensureState(t);if(n===!1){var l=a.getState(t);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),zb(a)}}function x1t(t,e,r){if(!t.isGroup){var n=t,i=r.currentZ,a=r.currentZLevel;n.z=i,n.zlevel=a;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<u0.length;s++)S1t(n,e,u0[s])}}function S1t(t,e,r){var n=r===Cy,i=n?e:_H(e,r),a=i?i.z2:null,o;a!=null&&(o=n?t:t.ensureState(r),o.z2=a||0)}function Ihe(t,e,r,n){var i=t.get("renderItem");if(typeof i=="string"){var a=Tdt(i);a&&(i=a)}var o=t.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):w1t[o.type](o));
125for(var l=Ct({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:B,style:I,ordinalRawValue:R,styleEmphasis:N,visual:j,barLayout:W,currentSeriesIndices:V,font:Y},s.api||{}),u={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:C1t(t.getData()),itemPayload:t.get("itemPayload")||{}},c,f,d={},A={},p={},g={},m=0;m<u0.length;m++){var y=u0[m];p[y]=t.getModel(CG[y]),g[y]=t.getModel(TG[y])}function b(G){return G===c?f||(f=e.getItemModel(G)):e.getItemModel(G)}function x(G,K){return e.hasItemOption?G===c?d[K]||(d[K]=b(G).getModel(CG[K])):b(G).getModel(CG[K]):p[K]}function T(G,K){return e.hasItemOption?G===c?A[K]||(A[K]=b(G).getModel(TG[K])):b(G).getModel(TG[K]):g[K]}return function(G,K){return c=G,f=null,d={},A={},i&&i(Ct({dataIndexInside:G,dataIndex:e.getRawIndex(G),actionType:K?K.type:null},u),l)};function B(G,K){return K==null&&(K=c),e.getStore().get(e.getDimensionIndex(G||0),K)}function R(G,K){K==null&&(K=c),G=G||0;var X=e.getDimensionInfo(G);if(!X){var q=e.getDimensionIndex(G);return q>=0?e.getStore().get(q,K):void 0}var ne=e.get(X.name,K),te=X&&X.ordinalMeta;return te?te.categories[ne]:ne}function I(G,K){K==null&&(K=c);var X=e.getItemVisual(K,"style"),q=X&&X.fill,ne=X&&X.opacity,te=x(K,Cy).getItemStyle();q!=null&&(te.fill=q),ne!=null&&(te.opacity=ne);var ce={inheritColor:et(q)?q:xe.color.neutral99},he=T(K,Cy),ve=Gn(he,null,ce,!1,!0);ve.text=he.getShallow("show")?ft(t.getFormattedLabel(K,Cy),MT(e,K)):null;var ae=L3(he,ce,!1);return Q(G,te),te=_fe(te,ve,ae),G&&F(te,G),te.legacy=!0,te}function N(G,K){K==null&&(K=c);var X=x(K,Jv).getItemStyle(),q=T(K,Jv),ne=Gn(q,null,null,!0,!0);ne.text=q.getShallow("show")?Ju(t.getFormattedLabel(K,Jv),t.getFormattedLabel(K,Cy),MT(e,K)):null;var te=L3(q,null,!0);return Q(G,X),X=_fe(X,ne,te),G&&F(X,G),X.legacy=!0,X}function F(G,K){for(var X in K)ut(K,X)&&(G[X]=K[X])}function Q(G,K){G&&(G.textFill&&(K.textFill=G.textFill),G.textPosition&&(K.textPosition=G.textPosition))}function j(G,K){if(K==null&&(K=c),ut(Mhe,G)){var X=e.getItemVisual(K,"style");return X?X[Mhe[G]]:null}if(ut(Zxt,G))return e.getItemVisual(K,G)}function W(G){if(o.type==="cartesian2d"){var K=o.getBaseAxis();return Sgt(Ct({axis:K},G))}}function V(){return r.getCurrentSeriesIndices()}function Y(G){return Iq(G,r)}}function C1t(t){var e={};return ee(t.dimensions,function(r){var n=t.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=e[i]=e[i]||[];a[n.coordDimIndex]=t.getDimensionIndex(r)}}),e}function EG(t,e,r,n,i,a,o){if(!n){a.remove(e);return}var s=xee(t,e,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ti(s,n.focus,n.blurScope,n.emphasisDisabled),s}function xee(t,e,r,n,i,a){var o=-1,s=e;e&&lLe(e,n,i)&&(o=zt(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=_ee(n),s&&_1t(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),Tf.normal.cfg=Tf.normal.conOpt=Tf.emphasis.cfg=Tf.emphasis.conOpt=Tf.blur.cfg=Tf.blur.conOpt=Tf.select.cfg=Tf.select.conOpt=null,Tf.isLegacy=!1,E1t(u,r,n,i,l,Tf),T1t(u,r,n,i,l),bee(t,u,r,n,Tf,i,l),ut(n,"info")&&(qv(u).info=n.info);for(var c=0;c<u0.length;c++){var f=u0[c];if(f!==Cy){var d=_H(n,f),A=See(n,d,f);sLe(f,u,d,A,Tf)}}return x1t(u,n,i),n.type==="group"&&B1t(t,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function lLe(t,e,r){var n=qv(t),i=e.type,a=e.shape,o=e.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&R1t(a)&&uLe(a)!==n.customPathData||i==="image"&&ut(o,"image")&&o.image!==n.customImagePath}function T1t(t,e,r,n,i){var a=r.clipPath;if(a===!1)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&lLe(o,a,n)&&(o=null),o||(o=_ee(a),t.setClipPath(o)),bee(null,o,e,a,null,n,i)}}function E1t(t,e,r,n,i,a){if(!(t.isGroup||t.type==="compoundPath")){Ohe(r,null,a),Ohe(r,Jv,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=_ee(o),t.setTextContent(c)),bee(null,c,e,o,null,n,i);for(var f=o&&o.style,d=0;d<u0.length;d++){var A=u0[d];if(A!==Cy){var p=a[A].conOpt;sLe(A,c,p,See(o,p,A),null)}}f?c.dirty():c.markRedraw()}}}}function Ohe(t,e,r){var n=e?_H(t,e):t,i=e?See(t,n,Jv):t.style,a=t.type,o=n?n.textConfig:null,s=t.textContent,l=s?e?_H(s,e):s:null;if(i&&(r.isLegacy||V2e(i,a,!!o,!!l))){r.isLegacy=!0;var u=G2e(i,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var f=e?r[e]:r.normal;f.cfg=o,f.conOpt=l}function _H(t,e){return e?t?t[e]:null:t}function See(t,e,r){var n=e&&e.style;return n==null&&r===Jv&&t&&(n=t.styleEmphasis),n}function B1t(t,e,r,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){M1t({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:r,seriesModel:i,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=a[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),xee(t,d,r,f,i,e)):d.ignore=!0}for(var A=e.childCount()-1;A>=c;A--){var p=e.childAt(A);D1t(e,p,i)}}}function D1t(t,e,r){e&&zQ(e,qv(t).option,r)}function M1t(t){new vg(t.oldChildren,t.newChildren,Phe,Phe,t).add(khe).update(khe).remove(L1t).execute()}function Phe(t,e){var r=t&&t.name;return r??y1t+e}function khe(t,e){var r=this.context,n=t!=null?r.newChildren[t]:null,i=e!=null?r.oldChildren[e]:null;
125xee(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function L1t(t){var e=this.context,r=e.oldChildren[t];r&&zQ(r,qv(r).option,e.seriesModel)}function uLe(t){return t&&(t.pathData||t.d)}function R1t(t){return t&&(ut(t,"pathData")||ut(t,"d"))}function I1t(t){t.registerChartView(b1t),t.registerSeriesModel(Xxt)}var N_=qt(),Nhe=vt,BG=ot,Cee=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new xt,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var d=lr(Fhe,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Hhe(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&Fs(i).w>s)return!0;if(o){var l=QJ(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=N_(e).pointerEl=new Ex[a.type](Nhe(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=N_(e).labelEl=new Nr(Nhe(r.label));e.add(a),Uhe(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=N_(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=N_(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Uhe(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=vE(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){fg(u.event)},onmousedown:BG(this._onHandleDragMove,this,0,0),drift:BG(this._onHandleDragMove,this),ondragend:BG(this._onHandleDragEnd,this)}),n.add(i)),Hhe(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");je(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,wE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Fhe(this._axisPointerModel,!r&&this._moveAnimation,this._handle,DG(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(DG(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(DG(i)),N_(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),vR(this,"_doDispat
125chAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function Fhe(t,e,r,n){cLe(N_(r).lastProp,n)||(N_(r).lastProp=n,e?Wr(r,n,t):(r.stopAnimation(),r.attr(n)))}function cLe(t,e){if(Tt(t)&&Tt(e)){var r=!0;return ee(e,function(n,i){r=r&&cLe(t[i],n)}),!!r}else return t===e}function Uhe(t,e){t[e.get(["label","show"])?"show":"hide"]()}function DG(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Hhe(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function Tee(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function fLe(t,e,r,n,i){var a=r.get("value"),o=dLe(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=mE(s.get("padding")||0),u=s.getFont(),c=tQ(o,u),f=i.position,d=c.width+l[1]+l[3],A=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=A),g==="middle"&&(f[1]-=A/2),O1t(f,d,A,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:Gn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function O1t(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function dLe(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:$3(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};ee(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),et(o)?a=o.replace("{value}",a):mt(o)&&(a=o(s))}return a}function Eee(t,e,r){var n=Si();return Tg(n,n,r.rotation),gh(n,n,r.position),dh([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function hLe(t,e,r,n,i,a){var o=au.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),fLe(e,n,i,a,{position:Eee(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Bee(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function ALe(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function Qhe(t,e,r,n,i,a){return{cx:t,cy:e,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}function Dee(t,e,r){return Fs(t,{fromStat:{sers:ze(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function Mee(t,e,r){return[cr(bn(e[0],e[1]),t-r/2),bn(t+r/2,cr(e[0],e[1]))]}var P1t=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=s.getGlobalExtent(),f=jhe(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var A=Tee(a),p=k1t[u](s,d,c,f,a.get("seriesDataIndices"),a.ecModel);p.style=A,r.graphicKey=p.type,r.pointer=p}var g=iH(l.getRect(),i);hLe(n,r,g,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=iH(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Eee(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=jhe(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=bn(l[1],f[c]),f[c]=cr(l[0],f[c]);var d=(u[1]+u[0])/2,A=[d,d];A[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:A,tooltipOption:p[c]}},e})(Cee);function jhe(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var k1t={line:function(t,e,r,n){var i=Bee([e,n[0]],[e,n[1]],zhe(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=Dee(t,i,a),s=n[1]-n[0],l=Mee(e,r,o),u=l[0],c=l[1];return{type:"Rect",shape:ALe([u,n[0]],[c-u,s],zhe(t))}}};function zhe(t){return t.dim==="x"?0:1}var N1t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}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:xe.color.border,width:1,type:"dashed"},shadowStyle:{color:xe.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:xe.color.
125neutral00,padding:[5,7,5,7],backgroundColor:xe.color.accent60,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:xe.color.accent40,throttle:40}},e})(gr),Hv=qt(),F1t=ee;function pLe(t,e,r){if(!Dr.node){var n=e.getZr();Hv(n).records||(Hv(n).records={}),U1t(n,e);var i=Hv(n).records[t]||(Hv(n).records[t]={});i.handler=r}}function U1t(t,e){if(Hv(t).initialized)return;Hv(t).initialized=!0,r("click",lr(MG,"click")),r("mousemove",lr(MG,"mousemove")),r("mousewheel",lr(MG,"mousewheel")),r("globalout",Q1t);function r(n,i){t.on(n,function(a){var o=j1t(e);F1t(Hv(t).records,function(s){s&&i(s,a,o.dispatchAction)}),H1t(o.pendings,e)})}}function H1t(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Q1t(t,e,r){t.handler("leave",null,r)}function MG(t,e,r,n){e.handler(t,r,n)}function j1t(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function LY(t,e){if(!Dr.node){var r=e.getZr(),n=(Hv(r).records||{})[t];n&&(Hv(r).records[t]=null)}}var z1t=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";pLe("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){LY("axisPointer",n)},e.prototype.dispose=function(r,n){LY("axisPointer",n)},e.type="axisPointer",e})(Yn);function vLe(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Hb(a,t);if(o==null||o<0||je(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,A=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),g=[];g[A]=a.get(p,o),g[1-A]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(ze(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var Vhe=qt();function V1t(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||ot(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){JU(i)&&(i=vLe({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=JU(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||JU(i),d={},A={},p={list:[],map:{}},g={showPointer:lr(K1t,A),showTooltip:lr(W1t,p)};ee(s.coordSysMap,function(y,b){var x=l||y.containPoint(i);ee(s.coordSysAxesInfo[b],function(T,B){var R=T.axis,I=X1t(u,T);if(!f&&x&&(!u||I)){var N=I&&I.value;N==null&&!l&&(N=R.pointToData(i)),N!=null&&Ghe(T,N,g,!1,d)}})});var m={};return ee(c,function(y,b){var x=y.linkGroup;x&&!A[b]&&ee(x.axesInfo,function(T,B){var R=A[B];if(T!==y&&R){var I=R.value;x.mapper&&(I=y.axis.scale.parse(x.mapper(I,Khe(T),Khe(y)))),m[y.key]=I}})}),ee(m,function(y,b){Ghe(c[b],y,g,!0,d)}),Y1t(A,c,d),$1t(p,i,t,o),Z1t(c,o,r),d}}function Ghe(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=G1t(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Fe(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function G1t(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return ee(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var A=l.getAxisTooltipData(c,t,r);d=A.dataIndices,f=A.nestestValue}else{if(d=l.indicesOfNearest(n,c[0],t,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(nd(f)){var p=t-f,g=Math.abs(p);g<=o&&((g<o||p>=0&&s<0)&&(o=g,s=p,i=f,a.length=0),ee(d,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function K1t(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function W1t(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;
125if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=MR(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Y1t(t,e,r){var n=r.axesInfo=[];ee(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function $1t(t,e,r,n){if(JU(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Z1t(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Vhe(n)[i]||{},o=Vhe(n)[i]={};ee(t,function(c,f){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&ee(d.seriesDataIndices,function(A){o[A.seriesIndex+"|"+A.dataIndex]=A})});var s=[],l=[];function u(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}ee(a,function(c,f){!o[f]&&l.push(u(c))}),ee(o,function(c,f){!a[f]&&s.push(u(c))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function X1t(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Khe(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function JU(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function $I(t){Ix.registerAxisPointerClass("CartesianAxisPointer",P1t),t.registerComponentModel(N1t),t.registerComponentView(z1t),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!je(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=ymt(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},V1t)}function q1t(t){ir(BDe),ir($I)}var J1t=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),c=l.getOtherAxis(s).getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var A=Tee(a),p=tSt[d](s,l,f,u,c,a.get("seriesDataIndices"),a.ecModel);p.style=A,r.graphicKey=p.type,r.pointer=p}var g=a.get(["label","margin"]),m=eSt(n,i,a,l,g);fLe(r,i,a,o,m)},e})(Cee);function eSt(t,e,r,n,i){var a=e.axis,o=a.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=Si();Tg(d,d,s),gh(d,d,[n.cx,n.cy]),u=dh([o,-i],d);var A=e.getModel("axisLabel").get("rotate")||0,p=au.innerTextLayout(s,A*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var m=n.cx,y=n.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var tSt={line:function(t,e,r,n,i){return t.dim==="angle"?{type:"Line",shape:Bee(e.coordToPoint([i[0],r]),e.coordToPoint([i[1],r]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r}}},shadow:function(t,e,r,n,i,a,o){var s=Math.PI/180,l=Dee(t,a,o),u;if(t.dim==="angle")u=Qhe(e.cx,e.cy,i[0],i[1],(-r-l/2)*s,(-r+l/2)*s);else{var c=Mee(r,n,l),f=c[0],d=c[1];u=Qhe(e.cx,e.cy,f,d,0,Math.PI*2)}return{type:"Sector",shape:u}}},ZA="polar",Whe=ZA,rSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},e.type=ZA,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(gr),Lee=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ta).models[0]},e.type="polarAxis",e})(gr);Da(Lee,TE);var nSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="angleAxis",e})(Lee),iSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="radiusAxis",e})(Lee),Ree=(function(t){Ee(e,t);
125function e(r,n){return t.call(this,"radius",r,n)||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e})(fd);Ree.prototype.dataToRadius=fd.prototype.dataToCoord;Ree.prototype.radiusToData=fd.prototype.coordToData;var aSt=qt(),Iee=(function(t){Ee(e,t);function e(r,n){return t.call(this,"angle",r,n||[0,360])||this}return e.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=tQ(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var A=Math.max(0,Math.floor(d)),p=aSt(r.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-A)<=1&&Math.abs(m-o)<=1&&g>A?A=g:(p.lastTickCount=o,p.lastAutoInterval=A),A},e})(fd);Iee.prototype.dataToAngle=fd.prototype.dataToCoord;Iee.prototype.angleToData=fd.prototype.coordToData;var gLe=["radius","angle"],oSt=(function(){function t(e){this.dimensions=gLe,this.type=ZA,this.cx=0,this.cy=0,this._radiusAxis=new Ree,this._angleAxis=new Iee,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var r=this.pointToCoord(e);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var r="_"+e+"Axis";return this[r]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&r.push(n),i.scale.type===e&&r.push(i),r},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var r=this._angleAxis;return e===r?this._radiusAxis:r},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var r=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},t.prototype.dataToPoint=function(e,r,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],r),this._angleAxis.dataToAngle(e[1],r)],n)},t.prototype.pointToData=function(e,r,n){n=n||[];var i=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(i[0],r),n[1]=this._angleAxis.angleToData(i[1],r),n},t.prototype.pointToCoord=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e,r){r=r||[];var n=e[0],i=e[1]/180*Math.PI;return r[0]=Math.cos(i)*n+this.cx,r[1]=-Math.sin(i)*n+this.cy,r},t.prototype.getArea=function(){var e=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,d=this.r,A=this.r0;return d!==A&&f-o<=d*d&&f+o>=A*A},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},t.prototype.convertToPixel=function(e,r,n){var i=Yhe(r);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var i=Yhe(r);return i===this?this.pointToData(n):null},t})();function Yhe(t){var e=t.seriesModel,r=t.polarModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}function sSt(t,e,r){var n=e.get("center"),i=uo(e,r).refContainer;t.cx=it(n[0],i.width)+i.x,t.cy=it(n[1],i.height)+i.y;var a=t.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:je(s)||(s=[0,s]);var l=[it(s[0],o),it(s[1],o)];a.inverse?a.setExtent(l[1],l[0]):a.setExtent(l[0],l[1])}function lSt(t,e){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(Zb(n,BT),Zb(i,BT),DT(n),DT(i),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function uSt(t){return t.mainType==="angleAxis"}function $he(t,e){var r;if(t.type=QI(e),t.scale=SE(e,t.type,!1),t.onBand=zI(t.scale,e),t.inverse=e.get("inverse"),uSt(e)){t.inverse=t.inverse!==e.get("
125clockwise");var n=e.get("startAngle"),i=(r=e.get("endAngle"))!==null&&r!==void 0?r:n+(t.inverse?-360:360);t.setExtent(n,i)}e.axis=t,t.model=e}var cSt={dimensions:gLe,create:function(t,e){var r=[];return t.eachComponent(Whe,function(n,i){var a=new oSt(i+"");a.update=lSt;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");$he(o,l),$he(s,u),sSt(a,n,e),r.push(a),n.coordinateSystem=a,a.model=n}),t.eachSeries(function(n){if(n.get("coordinateSystem")===ZA){var i=n.getReferringComponents(Whe,ta).models[0],a=n.coordinateSystem=i.coordinateSystem;a&&($b(a.getRadiusAxis(),n,ZA),$b(a.getAngleAxis(),n,ZA))}}),r}},fSt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function pF(t,e,r){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],r]),i=t.coordToPoint([e[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function vF(t){var e=t.getRadiusAxis();return e.inverse?0:1}function Zhe(t){var e=t[0],r=t[t.length-1];e&&r&&Math.abs(Math.abs(e.coord-r.coord)-360)<1e-4&&t.pop()}var dSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords({breakTicks:"none"}),l=i.getMinorTicksCoords(),u=[];ee(i.getViewLabels(),function(c){if(!c.tick.offInterval){c=vt(c);var f=i.scale;c.coord=i.dataToCoord(CE(f,c.tick)),u.push(c)}}),Zhe(u),Zhe(s),ee(fSt,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&hSt[c](this.group,r,a,s,l,o,u)},this)}},e.type="angleAxis",e})(Ix),hSt={axisLine:function(t,e,r,n,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=vF(r),f=c?0:1,d,A=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?d=new Ex[A]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new dE({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,t.add(d)},axisTick:function(t,e,r,n,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[vF(r)],u=ze(n,function(c){return new Ca({shape:pF(r,[l,l+s],c.coord)})});t.add(Mc(u,{style:Ct(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,r,n,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[vF(r)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new Ca({shape:pF(r,[u,u+l],i[f][d].coord)}));t.add(Mc(c,{style:Ct(s.getModel("lineStyle").getLineStyle(),Ct(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,r,n,i,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");ee(o,function(f,d){var A=l,p=f.tick.value,g=a[vF(r)],m=r.coordToPoint([g+u,f.coord]),y=r.cx,b=r.cy,x=Math.abs(m[0]-y)/g<.3?"center":m[0]>y?"left":"right",T=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var B=s[p];Tt(B)&&B.textStyle&&(A=new wr(B.textStyle,l,l.ecModel))}var R=new Nr({silent:au.isLabelSilent(e),style:Gn(A,{x:m[0],y:m[1],fill:A.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:T})});if(t.add(R),Bg({el:R,componentModel:e,itemName:f.formattedLabel,formatterParamsExtra:{isTruncated:function(){return R.isTruncated},value:f.rawLabel,tickIndex:d}}),c){var I=au.makeAxisEventDataBase(e);I.targetType="axisLabel",I.value=f.rawLabel,It(R).eventData=I}},this)},splitLine:function(t,e,r,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Ca({shape:pF(r,a,n[f].coord)}))}for(var f=0;f<c.length;f++)t.add(Mc(c[f],{style:Ct({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,r,n,i,a){if(i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;
125c++)l.push(new Ca({shape:pF(r,a,i[u][c].coord)}));t.add(Mc(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,r,n,i,a){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,A=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),g=e.get("clockwise"),m=1,y=n.length;m<=y;m++){var b=m===y?n[0].coord:n[m].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new ks({shape:{cx:r.cx,cy:r.cy,r0:A,r:p,startAngle:d,endAngle:-b*f,clockwise:g},silent:!0})),d=-b*f}for(var m=0;m<c.length;m++)t.add(Mc(c[m],{style:Ct({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},ASt=["splitLine","splitArea","minorSplitLine"],pSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this._axisGroup,o=this._axisGroup=new xt;this.group.add(o);var s=r.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),f=s.getMinorTicksCoords(),d=u.getExtent()[0],A=s.getExtent(),p=gSt(l,r,d),g=new au(r,i,p);g.build(),o.add(g.group),kI(a,o,r),ee(ASt,function(m){r.get([m,"show"])&&!s.scale.isBlank()&&vSt[m](this.group,r,l,d,A,c,f)},this)}},e.type="radiusAxis",e})(Ix),vSt={splitLine:function(t,e,r,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),A=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],g=0;g<a.length;g++){var m=u++%l.length;p[m]=p[m]||[],p[m].push(new Ex[A]({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[g].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var g=0;g<p.length;g++)t.add(Mc(p[g],{style:Ct({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,r,n,i,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new mp({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));t.add(Mc(u,{style:Ct({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,r,n,i,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,d=1;d<a.length;d++){var A=u++%l.length;c[A]=c[A]||[],c[A].push(new ks({shape:{cx:r.cx,cy:r.cy,r0:f,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[d].coord}for(var d=0;d<c.length;d++)t.add(Mc(c[d],{style:Ct({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function gSt(t,e,r){return{position:[t.cx,t.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var mSt=uE();function mLe(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}var ySt=lo(YA,wSt);function wSt(t){var e=Rx(YA,ZA);SJ(t,e,function(r){var n=bSt(r,YA),i={};Yb(r,e,function(a){_St(r,a,n,i)})})}function _St(t,e,r,n){var i=e.getData(),a=mLe(e),o=r[a],s=o.offset,l=o.width,u=e.coordinateSystem,c=u.getOtherAxis(t),f=u.cx,d=u.cy,A=e.get("barMinHeight")||0,p=e.get("barMinAngle")||0;n[a]=n[a]||[];for(var g=i.mapDimension(c.dim),m=i.mapDimension(t.dim),y=gg(i,g),b=t.dim!=="radius"||!e.get("roundCap",!0),x=c.dataToCoord(aDe(c)),T=0,B=i.count();T<B;T++){var R=i.get(g,T),I=i.get(m,T),N=R>=0?"p":"n",F=x;y&&(n[a][I]||(n[a][I]={p:x,n:x}),F=n[a][I][N]);var Q=void 0,j=void 0,W=void 0,V=void 0;if(c.dim==="radius"){var Y=c.dataToCoord(R)-x,G=t.dataToCoord(I);Vi(Y)<A&&(Y=(Y<0?-1:1)*A),Q=F,j=F+Y,W=G-s,V=W-l,y&&(n[a][I][N]=j)}else{var K=c.dataToCoord(R,b)-x,X=t.dataToCoord(I);Vi(K)<p&&(K=(K<0?-1:1)*p),Q=X+s,j=Q+l,W=F,V=F+K,y&&(n[a][I][N]=V)}i.setItemLayout(T,{cx:f,cy:d,r0:Q,r:j,startAngle:-W*C3/180,endAngle:-V*C3/180,clockwise:W>=V})}}function bSt(t,e){var r=Rx(e,ZA),n=Fs(t,{fromStat:{key:r},min:1}).w,i=n,a=0,o="20%",s="30%",l={};Yb(t,r,function(m){var y=mLe(m);l[y]||a++,l[y]=l[y]||{width:0,maxWidth:0};var b=it(m.get("barWidth"),n),x=it(m.get("barMaxWidth"),n),T=m.get("barGap"),B=m.get("barCategoryGap");b&&!l[y].width&&(b=bn(i,b),l[y].width=b,i-=b),x&&(l[y].maxWidth=x),T!=null&&(s=T),B!=null&&(o=B)});var u={},c=it(o,n),f=it(s,1),d=(i-c)/(a+(a-1)*f);d=cr(d,0),ee(l,function(m,y){var b=m.maxWidth;b&&b<d&&(b=bn(b,i),m.width&&(b=bn(b,m.width)),i-=b,m.width=b,a--)}
125),d=(i-c)/(a+(a-1)*f),d=cr(d,0);var A=0,p;ee(l,function(m,y){m.width||(m.width=d),p=m,A+=m.width*(1+f)}),p&&(A-=p.width*f);var g=-A/2;return ee(l,function(m,y){u[y]=u[y]||{offset:g,width:m.width},g+=m.width*(1+f)}),u}function xSt(t,e){mSt(t,function(){var r=Rx(e,ZA);iDe(t,r,e,ZA),DQ(r,IQ(r))})}var SSt={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},CSt={splitNumber:5},TSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="polar",e})(Yn);function ESt(t){ir($I),Ix.registerAxisPointerClass("PolarAxisPointer",J1t),t.registerCoordinateSystem("polar",cSt),t.registerComponentModel(rSt),t.registerComponentView(TSt),LT(t,"angle",nSt,SSt),LT(t,"radius",iSt,CSt),t.registerComponentView(dSt),t.registerComponentView(pSt),t.registerLayout(ySt),xSt(t,YA)}function RY(t,e){e=e||{};var r=t.coordinateSystem,n=t.axis,i={},a=n.position,o=n.orient,s=r.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=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),gl(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=t.get(["axisLabel","rotate"]);return i.labelRotate=a==="top"?-d:d,i.z2=1,i}var BSt=["splitArea","splitLine","breakArea"],DSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="SingleAxisPointer",r}return e.prototype.render=function(r,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new xt;var l=RY(r),u=new au(r,i,l);u.build(),o.add(this._axisGroup),o.add(u.group),ee(BSt,function(c){r.get([c,"show"])&&MSt[c](this,this.group,this._axisGroup,r,i)},this),kI(s,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)},e.prototype.remove=function(){CDe(this)},e.type="singleAxis",e})(Ix),MSt={splitLine:function(t,e,r,n,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=n.coordinateSystem.getRect(),f=a.isHorizontal(),d=[],A=0,p=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],y=0;y<p.length;++y){var b=a.toGlobalCoord(p[y].coord);f?(g[0]=b,g[1]=c.y,m[0]=b,m[1]=c.y+c.height):(g[0]=c.x,g[1]=b,m[0]=c.x+c.width,m[1]=b);var x=new Ca({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});xT(x.shape,u);var T=A++%l.length;d[T]=d[T]||[],d[T].push(x)}for(var B=s.getLineStyle(["color"]),y=0;y<d.length;++y)e.add(Mc(d[y],{style:Ct({stroke:l[y%l.length]},B),silent:!0}))}},splitArea:function(t,e,r,n,i){SDe(t,r,n,n)},breakArea:function(t,e,r,n,i){var a=WI(),o=n.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,n,n.coordinateSystem.getRect(),i)}},LSt=(function(t){Ee(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},e})(fd),yLe=["single"],RSt=(function(){function t(e,r,n){this.type=OQ,this.dimension="single",this.dimensions=yLe,this.axisPointerEnabled=!0,this.model=e,this._init(e,r,n)}return t.prototype._init=function(e,r,n){var i=this.dimension,a=QI(e),o=new LSt(i,SE(e,a,!0),[0,0],a,e.get("position"));o.onBand=zI(o.scale,e),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,r){var n=this._axis;Zb(n,BT),DT(n)},t.prototype.resize=function(e,r){var n=uo(e,r).refContainer;this._rect=gi(e.getBoxLayoutParams(),n),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,r=this._axis,n=r.isHorizontal(),i=n?[0,e.width]:[0,e.height],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),this._updateAxisTransform(r,n?e.x:e.y)},t.prototype._updateAxisTransform=function(e,r){var n=e.getExtent(),i=n[0]+n[1],a=e.isHorizontal();e.toGlobalCoord=a?function(o){return o+r}:function(o){return i-o+r},e.toLocalCoord=a?function(o){return o-r}:function(o){return i-o+r}},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 r=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=r.y&&e[1]<=r.y+r.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=r.y&&e[0]<=r.y+r.height},t.prototype.pointToData=function(e,r,n){n=n||[];var i=this.getAxis();return n[0]=i.coordToData(i.toLocalCoord(e[i.orient==="horizontal"?0:1])),n},t.prototype.dataToPoint=function(e,r,n){var i=this.getAxis(),a=this.getRect();n=n||[];var o=i.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[o]=i.toGlobalCoord(i.dataToCoord(+e)),n[1-o]=o===0?a.y+a.height/2:a.x+a.width/2,n},t.prototype.convertToPixel=function(e,r,n){var i=Xhe(r);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,r,n){var i=Xhe(r);return i===this?this.pointToData(n):null},t})();function Xhe(t){var e=t.seriesModel,r=t.singleAxisModel;return r&&r.coordinateSystem||e&&e.coordinateSystem}function ISt(t,e){var r=[];return t.eachComponent(dY,function(n,i){var a=new RSt(n,t,e);a.name="single_"+i,a.resize(n,e),n.coordinateSystem=a,r.push(a)}),t.eachSeries(function(n){if(n.get("coordinateSystem")===Mmt){var i=n.getReferringComponents(dY,ta).models[0],a=n.coordinateSystem=i&&i.coordinateSystem;a&&$b(a.getAxis(),n,OQ)}}),r}var OSt={create:ISt,dimensions:yLe},qhe=["x","y"],PSt=["width","height"],kSt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=bH(s),c=gF(l,u),f=gF(l,1-u),d=l.dataToPoint(n)[0],A=a.get("type");if(A&&A!=="none"){var p=Tee(a),g=NSt[A](s,d,c,f,a.get("seriesDataIndices"),a.ecModel);g.style=p,r.graphicKey=g.type,r.pointer=g}var m=RY(i);hLe(n,r,m,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=RY(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Eee(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=bH(o),u=gF(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=gF(s,1-l),d=(f[1]+f[0])/2,A=[d,d];return A[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:A,tooltipOption:{verticalAlign:"middle"}}},e})(Cee),NSt={line:function(t,e,r,n){var i=Bee([e,n[0]],[e,n[1]],bH(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=Dee(t,i,a),s=n[1]-n[0],l=Mee(e,r,o),u=l[0],c=l[1];return{type:"Rect",shape:ALe([u,n[0]],[c-u,s],bH(t))}}};function bH(t){return t.isHorizontal()?0:1}function gF(t,e){var r=t.getRect();return[r[qhe[e]],r[qhe[e]]+r[PSt[e]]]}var FSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="single",e})(Yn);function USt(t){ir($I),Ix.registerAxisPointerClass("SingleAxisPointer",kSt),t.registerComponentView(FSt),t.registerComponentView(DSt),t.registerComponentModel(ZU),LT(t,"single",ZU,ZU.defaultOption),t.registerCoordinateSystem("single",OSt)}var HSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,i){var a=Dx(r);
125t.prototype.init.apply(this,arguments),Jhe(r,a)},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),Jhe(this.option,r)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:xe.color.axisLine,width:1,type:"solid"}},itemStyle:{color:xe.color.neutral00,borderWidth:1,borderColor:xe.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:xe.size.s,color:xe.color.secondary},monthLabel:{show:!0,position:"start",margin:xe.size.s,align:"center",formatter:null,color:xe.color.secondary},yearLabel:{show:!0,position:null,margin:xe.size.xl,formatter:null,color:xe.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(gr);function Jhe(t,e){var r=t.cellSize,n;je(r)?n=r:n=t.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=ze([0,1],function(a){return jct(e,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});lp(t,e,{type:"box",ignoreSize:i})}var QSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},e.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToCalendarLayout([u],!1).tl,f=new fr({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},e.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var A=f.date;A.setMonth(A.getMonth()+1),f=s.getDateInfo(A)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToCalendarLayout([g],!1).tl);var m=o._getLinePointsOfOneWeek(r,g,i);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},e.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},e.prototype._drawSplitline=function(r,n,i){var a=new es({z2:20,shape:{points:r},style:n});i.add(a)},e.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToCalendarLayout([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(r,n){return et(r)&&r?JTe(r,n):mt(r)?r(n):n.nameMap},e.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.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,A={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var g=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new Nr({z2:30,style:Gn(o,{text:y}),silent:o.get("silent")});b.attr(this._yearTextPositionControl(b,A[l],i,l,s)),a.add(b)}}
125,e.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||et(s))&&(s&&(n=TW(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,A=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=o.get("silent"),m=0;m<f[d].length-1;m++){var y=f[d][m].slice(),b=this._firstDayOfMonth[m];if(p){var x=this._firstDayPoints[m];y[A]=(x[A]+f[0][m+1][A])/2}var T=o.get("formatter"),B=s[+b.m-1],R={yyyy:b.y,yy:(b.y+"").slice(2),MM:b.m,M:+b.m,nameMap:B},I=this._formatterLabel(T,R),N=new Nr({z2:30,style:Fe(Gn(o,{text:I}),this._monthTextPositionControl(y,p,i,u,l)),silent:g});a.add(N)}}},e.prototype._weekTextPositionControl=function(r,n,i,a,o){var s="center",l="middle",u=r[0],c=r[1],f=i==="start";return n==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(r,n,i,a,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||et(c)){c&&(n=TW(c)||n);var A=n.get(["time","dayOfWeekShort"]);c=A||ze(n.get(["time","dayOfWeekAbbr"]),function(R){return R[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=it(f,Math.min(g[1],g[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var m=s.get("silent"),y=0;y<7;y++){var b=l.getNextNDay(p,y),x=l.dataToCalendarLayout([b.time],!1).center,T=y;T=Math.abs((y+d)%7);var B=new Nr({z2:30,style:Fe(Gn(s,{text:c[T]}),this._weekTextPositionControl(x,a,u,f,g)),silent:m});o.add(B)}}},e.type="calendar",e})(Yn),LG=864e5,jSt=(function(){function t(e,r,n){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e,this._update(r,n)}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=gp(e);var r=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,a=e.getDate(),o=a<10?"0"+a:""+a,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:r+"-"+i+"-"+o,date:e}},t.prototype.getNextNDay=function(e,r){return r=r||0,r===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+r),this.getDateInfo(e))},t.prototype._update=function(e,r){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 n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];ee([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=gi(o,l);ee([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=a[0],this._sh=a[1]},t.prototype.dataToPoint=function(e,r,n){n=n||[],je(e)&&(e=e[0]),r==null&&(r=!0);var i=this.getDateInfo(e),a=this._rangeInfo,o=i.formatedDate;if(r&&!(i.time>=a.start.time&&i.time<a.end.time+LG))return n[0]=n[1]=NaN,n;var s=i.day,l=this._getRangeInfo([a.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},t.prototype.pointToData=function(e){var r=this.pointToDate(e);return r&&r.time},t.prototype.dataToLayout=function(e,r,n){n=n||{};var i=n.rect=n.rect||{},a=n.contentRect=n.contentRect||{},o=this.dataToPoint(e,r);return i.x=o[0]-this._sw/2,i.y=o[1]-this._sh/2,i.width=this._sw,i.height=this._sh,St.copy(a,i),Vb(a,this._lineWidth/2,!0,!0),n},t.prototype.dataToCalendarLayout=function(e,r){var n=this.dataToPoint(e,r);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(e){var r=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,i):this._getDateByWeeksAndDay(r,n-1,i)},t.prototype.convertToPixel=function(e,r,n){var i=RG(r);return i===this?i.dataToPoint(n):null},t.prototype.convertToLayout=function(e,r,n){var i=RG(r);return i===this?i.dataToLayout(n):null},t.prototype.convertFromPixel=function(e,r,n){var i=RG(r);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),r;if(je(e)&&e.length===1&&(e=e[0]),je(e))r=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);r=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return e;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},t.prototype._getRangeInfo=function(e){var r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/LG)-Math.floor(r[0].time/LG)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},t.prototype._getDateByWeeksAndDay=function(e,r,n){var i=this._getRangeInfo(n);if(e>i.weeks||e===0&&r<i.fweek||e===i.weeks&&r>i.lweek)return null;var a=(e-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},t.create=function(e,r){var n=[];return e.eachComponent("calendar",function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachComponent(function(i,a){FI({targetModel:a,coordSysType:"calendar",coordSysProvider:oEe})}),n},t.dimensions=["time","value"],t})();function RG(t){var e=t.calendarModel,r=t.seriesModel,n=e?e.coordinateSystem:r?r.coordinateSystem:null;return n}function zSt(t){t.registerComponentModel(HSt),t.registerComponentView(QSt),t.registerCoordinateSystem("calendar",jSt)}var Iv={level:1,leaf:2,nonLeaf:3},eg={none:0,all:1,body:2,corner:3};function IY(t,e,r){var n=e[jt[r]].getCell(t);return!n&&Hr(t)&&t<0&&(n=e[jt[1-r]].getUnitLayoutInfo(r,Math.round(t))),n}function wLe(t){var e=t||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function _Le(t,e,r,n,i){eAe(t[0],e,i,r,n,0),eAe(t[1],e,i,r,n,1)}function eAe(t,e,r,n,i,a){t[0]=1/0,t[1]=-1/0;var o=n[a],s=je(o)?o:[o],l=s.length,u=!!r;if(l>=1?(tAe(t,e,s,u,i,a,0),l>1&&tAe(t,e,s,u,i,a,l-1)):t[0]=t[1]=NaN,u){var c=-i[jt[1-a]].getLocatorCount(a),f=i[jt[a]].getLocatorCount(a)-1;r===eg.body?c=cr(0,c):r===eg.corner&&(f=bn(-1,f)),f<c&&(c=f=NaN),Ds(t[0])&&(t[0]=c),Ds(t[1])&&(t[1]=f),t[0]=cr(bn(t[0],f),c),t[1]=cr(bn(t[1],f),c)}}function tAe(t,e,r,n,i,a,o){var s=IY(r[o],i,a);if(!s){t[0]=t[1]=NaN;return}var l=s.id[jt[a]],u=l,c=WSt(s);c&&(u+=c.span[jt[a]]-1),t[0]=bn(t[0],l,u),t[1]=cr(t[1],l,u)}function mF(t,e){return Ds(t[e][0])||Ds(t[e][1])}function rAe(t,e,r,n){e=e||VSt;for(var i=0;i<n;i++)e[i]=!1;for(;;){for(var a=!1,i=0;i<n;i++){var o=r[i];!e[i]&&o.cellMergeOwner&&GSt(t,o.locatorRange)&&(e[i]=!0,a=!0)}if(!a)break}}var VSt=[];function GSt(t,e){return!nAe(t[0],e[0])||!nAe(t[1],e[1])?!1:(t[0][0]=bn(t[0][0],e[0][0]),t[0][1]=cr(t[0][1],e[0][1]),t[1][0]=bn(t[1][0],e[1][0]),t[1][1]=cr(t[1][1],e[1][1]),!0)}function nAe(t,e){return t[1]>=e[0]&&t[0]<=e[1]}function iAe(t,e){t.id.set(e[0][0],e[1][0]),t.span.set(e[0][1]-t.
125id.x+1,e[1][1]-t.id.y+1)}function KSt(t,e){t[0][0]=e[0][0],t[0][1]=e[0][1],t[1][0]=e[1][0],t[1][1]=e[1][1]}function aAe(t,e,r,n){var i=IY(e[n][0],r,n),a=IY(e[n][1],r,n);t[jt[n]]=t[ha[n]]=NaN,i&&a&&(t[jt[n]]=i.xy,t[ha[n]]=a.xy+a.wh-i.xy)}function WD(t,e,r,n){return t[jt[e]]=r,t[jt[1-e]]=n,t}function WSt(t){return t&&(t.type===Iv.leaf||t.type===Iv.nonLeaf)?t:null}function xH(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var oAe=(function(){function t(e,r){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=r,this._uniqueValueGen=YSt(e);var n=r.get("data",!0),i=r.get("length",!0);if(n!=null&&!je(n)&&(n=[]),n)this._initByDimModelData(n);else if(i!=null){n=Array(i);for(var a=0;a<i;a++)n[a]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return t.prototype._initByDimModelData=function(e){var r=this,n=r._cells,i=r._levels,a=[],o=0;r._leavesCount=s(e,0,0),l();return;function s(u,c,f){var d=0;return u&&ee(u,function(A,p){var g;et(A)?g={value:A}:Tt(A)?(g=A,A.value!=null&&!et(A.value)&&(g={value:null})):g={value:null};var m={type:Iv.nonLeaf,ordinal:NaN,level:f,firstLeafLocator:c,id:new Lt,span:WD(new Lt,r.dimIdx,1,1),option:g,xy:NaN,wh:NaN,dim:r,rect:xH()};o++,(a[c]||(a[c]=[])).push(m),i[f]||(i[f]={type:Iv.level,xy:NaN,wh:NaN,option:null,id:new Lt,dim:r});var y=s(g.children,c,f+1),b=Math.max(1,y);m.span[jt[r.dimIdx]]=b,d+=b,c+=b}),d}function l(){for(var u=[];n.length<o;)for(var c=0;c<a.length;c++){var f=a[c].pop();if(f){f.ordinal=u.length;var d=f.option.value;u.push(d),n.push(f),r._uniqueValueGen.calcDupBase(d)}}r._uniqueValueGen.ensureValueUnique(u,n);var A=r._ordinalMeta=new mR({categories:u,needCollect:!1,deduplication:!1});r._scale=new _R({ordinalMeta:A});for(var p=0;p<r._leavesCount;p++){var g=r._cells[p];g.type=Iv.leaf,g.span[jt[1-r.dimIdx]]=r._levels.length-g.level}r._initCellsId(),r._initLevelIdOptions()}},t.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:Iv.level,xy:NaN,wh:NaN,option:null,id:new Lt,dim:e}],e._initLevelIdOptions();var r=e._ordinalMeta=new mR({needCollect:!0,deduplication:!0,onCollect:function(n,i){var a=e._cells[i]={type:Iv.leaf,ordinal:i,level:0,firstLeafLocator:i,id:new Lt,span:WD(new Lt,e.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:e,rect:xH()};e._leavesCount++,e._setCellId(a)}});e._scale=new _R({ordinalMeta:r})},t.prototype._setCellId=function(e){var r=this._levels.length,n=this.dimIdx;WD(e.id,n,e.firstLeafLocator,e.level-r)},t.prototype._initCellsId=function(){var e=this._levels.length,r=this.dimIdx;ee(this._cells,function(n){WD(n.id,r,n.firstLeafLocator,n.level-e)})},t.prototype._initLevelIdOptions=function(){var e=this._levels.length,r=this.dimIdx,n=this._model.get("levels",!0);n=je(n)?n:[],ee(this._levels,function(i,a){WD(i.id,r,0,a-e),i.option=n[a]})},t.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},t.prototype.resetLayoutIterator=function(e,r,n,i){if(e=e||new Py,r===this.dimIdx){var a=this._leavesCount,o=n!=null?Math.max(0,n):0;i=i!=null?Math.min(i,a):a,e.reset(this._cells,o,o+i)}else{var a=this._levels.length,o=n!=null?Math.max(0,n+a):0;i=i!=null?Math.min(i,a):a,e.reset(this._levels,o,o+i)}return e},t.prototype.resetCellIterator=function(e){return(e||new Py).reset(this._cells,0)},t.prototype.resetLevelIterator=function(e){return(e||new Py).reset(this._levels,0)},t.prototype.getLayout=function(e,r,n){var i=this.getUnitLayoutInfo(r,n);e[jt[r]]=i?i.xy:NaN,e[ha[r]]=i?i.wh:NaN},t.prototype.getUnitLayoutInfo=function(e,r){return e===this.dimIdx?r<this._leavesCount?this._cells[r]:void 0:this._levels[r+this._levels.length]},t.prototype.getCell=function(e){var r=this._scale.parse(e);return Ds(r)?void 0:this._cells[r]},t.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t})();function YSt(t){var e=t.toUpperCase(),r=new RegExp("^"+e+"([0-9]+)$"),n=0;function i(s){var l;s!=null&&(l=s.match(r))&&(n=cr(n,+l[1]+1))}function a(){return""+e+n++}function o(s,l){for(var u=st(),c=0;c<s.length;c++){var f=s[c];(f==null||u.get(f)!=null)&&(s[c]=f=a(),l[c].option=Ct({value:f},l[c].option)),u.set(f,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var sAe=(function(){function t(e,r,n){this._model=r,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return t.prototype._ensureCellMap=function(){var e=this,r=e._cellMap;return r||(r=e._cellMap=st(),n()),r;function n(){var a=[],o=e._model.getShallow("data");o&&!je(o)&&(o=null),ee(o,function(p,g){if(!(!Tt(p)||!je(p.coord))){var m=wLe([]),y=null;
125if(_Le(m,y,p.coord,e._dims,p.coordClamp?eg[e._kind]:eg.none),!(mF(m,0)||mF(m,1))){var b=p&&p.mergeCells,x={id:new Lt,span:new Lt,locatorRange:m,option:p,cellMergeOwner:b};iAe(x,m),a.push(x)}}});for(var s=[],l=0;l<a.length;l++){var u=a[l];if(u.cellMergeOwner){var c=u.locatorRange;rAe(c,s,a,l);for(var f=0;f<l;f++)s[f]&&(a[f].cellMergeOwner=!1);if(c[0][0]!==u.id.x||c[1][0]!==u.id.y){u.cellMergeOwner=!1;var d=Fe({},u.option);d.coord=null;var A={id:new Lt,span:new Lt,locatorRange:c,option:d,cellMergeOwner:!0};iAe(A,c),a.push(A)}}}ee(a,function(p){var g=i(p.id.x,p.id.y);if(p.cellMergeOwner&&(g.cellMergeOwner=!0,g.span=p.span,g.locatorRange=p.locatorRange,g.spanRect=xH(),e._cellMergeOwnerList.push(g)),!(!p.cellMergeOwner&&!p.option))for(var m=0;m<p.span.y;m++)for(var y=0;y<p.span.x;y++){var b=i(p.id.x+y,p.id.y+m);b.option=p.option,p.cellMergeOwner&&(b.inSpanOf=g)}})}function i(a,o){var s=lAe(a,o),l=r.get(s);return l||(l=r.set(s,{id:new Lt(a,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},t.prototype.getCell=function(e){return this._ensureCellMap().get(lAe(e[0],e[1]))},t.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},t.prototype.expandRangeByCellMerge=function(e){if(!mF(e,0)&&!mF(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){IG[0]=e[0][0],IG[1]=e[1][0];var r=this.getCell(IG),n=r&&r.inSpanOf;if(n){KSt(e,n.locatorRange);return}}var i=this._cellMergeOwnerList;rAe(e,null,i,i.length)},t})(),IG=[];function lAe(t,e){return t+"|"+e}var Oee={show:!0,color:xe.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function Pee(t){return{color:"none",borderWidth:1,borderColor:t?"none":xe.color.borderTint}}var uAe={show:!0,label:Oee,itemStyle:Pee(!1),silent:void 0,dividerLineStyle:{width:1,color:xe.color.border}},$St={label:Oee,itemStyle:Pee(!1),silent:void 0},ZSt={label:Oee,itemStyle:Pee(!0),silent:void 0},XSt={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:uAe,y:uAe,body:$St,corner:ZSt,backgroundStyle:{color:"none",borderColor:xe.color.axisLine,borderWidth:1},triggerEvent:!1},qSt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this._dimModels={x:new cAe(this.get("x",!0)||{}),y:new cAe(this.get("y",!0)||{})};r.x.option.type=r.y.option.type="category";var n=r.x.dim=new oAe("x",r.x),i=r.y.dim=new oAe("y",r.y),a={x:n,y:i};this._body=new sAe("body",new wr(this.getShallow("body")),a),this._corner=new sAe("corner",new wr(this.getShallow("corner")),a)},e.prototype.getDimensionModel=function(r){return this._dimModels[r]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=XSt,e})(gr),cAe=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(wr),yF=Math.round,JSt=0,eCt=99,tCt={normal:25,special:100},rCt={normal:50,special:125},nCt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n){this.group.removeAll();var i=this.group,a=r.coordinateSystem,o=a.getRect(),s=r.getDimensionModel("x"),l=r.getDimensionModel("y"),u=s.dim,c=l.dim;iCt(i,r,n),aCt(i,r,u,c,n);var f=r.getShallow("borderZ2",!0),d=ft(f,eCt),A=d-1,p=r.getModel("backgroundStyle").getItemStyle(["borderWidth"]);p.lineWidth=0;var g=r.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);g.fill="none";var m=OY(o.clone(),p,JSt),y=OY(o.clone(),g,d);m.silent=!0,y.silent=!0,i.add(m),i.add(y);var b=u.getUnitLayoutInfo(0,0),x=c.getUnitLayoutInfo(1,0);b&&x&&(u.shouldShow()&&i.add(fAe({x1:o.x,y1:x.xy,x2:o.x+o.width,y2:x.xy},s.getModel("dividerLineStyle").getLineStyle(),A)),c.shouldShow()&&i.add(fAe({x1:b.xy,y1:o.y,x2:b.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),A)))},e.type="matrix",e})(Yn);function iCt(t,e,r){n(0),n(1);function n(i){var a=e.getDimensionModel(jt[i]),o=a.dim;if(o.shouldShow())for(var s=a.getModel("itemStyle"),l=a.getModel("label"),u=e.getShallow("tooltip",!0),c=[],f=o.resetCellIterator();f.next();){var d=f.item,A={};St.copy(A,d.rect),Wv(c,d.id.x,d.id.y),bLe(c,e,t,r,d.option,s,l,a,A,d.option.value,rCt,u,i===0?"x":"y")}}}function aCt(t,e,r,n,i){a("body",e.getBody(),r,n),r.shouldShow()&&n.shouldShow()&&a("c
125orner",e.getCorner(),n,r);function a(o,s,l,u){var c=new wr(e.getShallow(o,!0)),f=c.getModel("itemStyle"),d=c.getModel("label"),A=new Py,p=new Py,g=[],m=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(p,1);p.next();)for(l.resetLayoutIterator(A,0);A.next();){var y=A.item,b=p.item;Wv(g,y.id.x,b.id.y);var x=s.getCell(g);if(!(x&&x.inSpanOf&&x.inSpanOf!==x)){var T={};x&&x.span?St.copy(T,x.spanRect):(y.dim.getLayout(T,0,g[0]),b.dim.getLayout(T,1,g[1]));var B=x?x.option:null;bLe(g,e,t,i,B,f,d,c,T,B?B.value:null,tCt,m,o)}}}}function bLe(t,e,r,n,i,a,o,s,l,u,c,f,d){var A;wF.option=i?i.itemStyle:null,wF.parentModel=a,XS.option=i,XS.parentModel=s;var p=ft(XS.getShallow("z2"),i&&i.itemStyle?c.special:c.normal),g=f&&f.show,m=OY(l,wF.getItemStyle(),p);r.add(m);var y=XS.get("cursor");y!=null&&m.attr("cursor",y);var b;if(u!=null){var x=u+"";h_.option=i?i.label:null,h_.parentModel=o,h_.ecModel=n;var T=h_.getShallow("formatter");if(T){var B={componentType:"matrix",componentIndex:e.componentIndex,name:x,value:u,coord:t.slice(),$vars:["name","value","coord"]};if(et(T))x=JTe(T,B);else if(mt(T)){var R=T(B);R!=null&&(x=R+"")}}if(Do(m,{normal:h_},{defaultText:x,autoOverflowArea:!0,layoutRect:vt(m.shape)}),b=m.getTextContent(),b){b.z2=p+1;var I=b.style;if(I&&I.overflow&&I.overflow!=="none"&&I.lineOverflow){var N={};St.copy(N,l),Vb(N,(((A=m.style)===null||A===void 0?void 0:A.lineWidth)||0)/2,!0,!0),m.updateInnerText(),b.getLocalTransform(_F),jc(_F,_F),St.applyTransform(N,N,_F),b.setClipPath(new fr({shape:N}))}}Bg({el:m,componentModel:e,itemName:x,itemTooltipOption:f,formatterParamsExtra:{xyLocator:t.slice()}})}var F=e.get("triggerEvent",!0);if(b){var Q=h_.get("silent");Q==null&&(Q=!(F||g)),b.silent=Q,b.ignoreHostSilent=!0}var j=XS.get("silent");if(j==null&&(j=!m.style||m.style.fill==="none"||!m.style.fill),m.silent=j,F&&m){var W={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:d,name:b&&b.style?b.style.text:void 0,value:u,coord:t.slice()};It(m).eventData=W}Q6(XS),Q6(wF),Q6(h_)}var XS=new wr,wF=new wr,h_=new wr,_F=[];function OY(t,e,r){var n=e.lineWidth;if(n){var i=t.x+t.width,a=t.y+t.height;t.x=Oc(t.x,n,!0),t.y=Oc(t.y,n,!0),t.width=Oc(i,n,!0)-t.x,t.height=Oc(a,n,!0)-t.y}return new fr({shape:t,style:e,z2:r})}function fAe(t,e,r){var n=e.lineWidth;return n&&(yF(t.x1*2)===yF(t.x2*2)&&(t.x1=t.x2=Oc(t.x1,n,!0)),yF(t.y1*2)===yF(t.y2*2)&&(t.y1=t.y2=Oc(t.y1,n,!0))),new Ca({shape:t,style:e,silent:!0,z2:r})}var oCt=(function(){function t(e,r,n){this.dimensions=t.dimensions,this.type="matrix",this._model=e;var i=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:i.x.dim,y:i.y.dim},this._resize(e,n)}return t.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},t.create=function(e,r){var n=[];return e.eachComponent("matrix",function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachComponent(function(i,a){FI({targetModel:a,coordSysType:"matrix",coordSysProvider:oEe})}),n},t.prototype.getRect=function(){return this._rect},t.prototype._resize=function(e,r){var n=this._dims,i=this._dimModels,a=this._rect=gi(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()});dAe(i,n,a,0),dAe(i,n,a,1),hAe(0,n),hAe(1,n),AAe(this._model.getBody(),n),AAe(this._model.getCorner(),n)},t.prototype.dataToPoint=function(e,r,n){return n=n||[],this.dataToLayout(e,r,YD),n[0]=YD.rect.x+YD.rect.width/2,n[1]=YD.rect.y+YD.rect.height/2,n},t.prototype.dataToLayout=function(e,r,n){var i=this._dims;n=n||{};var a=n.rect=n.rect||{};a.x=a.y=a.width=a.height=NaN;var o=n.matrixXYLocatorRange=wLe(n.matrixXYLocatorRange);return je(e)&&(_Le(o,null,e,i,ft(r&&r.clamp,eg.none)),(!r||!r.ignoreMergeCells)&&((!r||r.clamp!==eg.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!r||r.clamp!==eg.body)&&this._model.getCorner().expandRangeByCellMerge(o)),aAe(a,o,i,0),aAe(a,o,i,1)),n},t.prototype.pointToData=function(e,r,n){var i=this._dims;return pAe(gA,0,i,e,r&&r.clamp),pAe(gA,1,i,e,r&&r.clamp),n=n||[],n[0]=n[1]=NaN,gA.y===xs.inCorner&&gA.x===xs.inBody?vAe(gA,n,0,i):gA.x===xs.inCorner&&gA.y===xs.inBody?vAe(gA,n,1,i):(gAe(gA,n,0,i),gAe(gA,n,1,i)
125),n},t.prototype.convertToPixel=function(e,r,n,i){var a=PG(r);return a===this?a.dataToPoint(n,i):void 0},t.prototype.convertToLayout=function(e,r,n,i){var a=PG(r);return a===this?a.dataToLayout(n,i):void 0},t.prototype.convertFromPixel=function(e,r,n,i){var a=PG(r);return a===this?a.pointToData(n,i):void 0},t.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},t.dimensions=["x","y","value"],t})(),YD={rect:xH()},bF=new Py,OG=new Py;function dAe(t,e,r,n){for(var i=1-n,a=e[jt[n]],o=e[jt[i]],s=o.shouldShow(),l=a.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var c=r[ha[n]],f=a.getLocatorCount(n)+o.getLocatorCount(n),d=new wr,A=o.resetLevelIterator();A.next();)d.option=A.item.option,d.parentModel=t[jt[i]],m(A.item,s?d.get("levelSize"):0);for(var p=new wr,g=a.resetCellIterator();g.next();)g.item.type===Iv.leaf&&(p.option=g.item.option,p.parentModel=void 0,m(g.item,p.get("size")));function m(I,N){var F=sCt(N,n,r);Ds(F)||(I.wh=PY(F,c),c=PY(c-I.wh),f--)}var y=f?c/f:0,b=!f&&c>=1,x=r[jt[n]],T=a.getLocatorCount(n)-1,B=new Py;for(o.resetLayoutIterator(B,n);B.next();)R(B.item);for(a.resetLayoutIterator(B,n);B.next();)R(B.item);function R(I){Ds(I.wh)&&(I.wh=y),I.xy=x,I.id[jt[n]]===T&&!b&&(I.wh=r[jt[n]]+r[ha[n]]-I.xy),x+=I.wh}}function hAe(t,e){for(var r=e[jt[t]].resetCellIterator();r.next();){var n=r.item;SH(n.rect,t,n.id,n.span,e),SH(n.rect,1-t,n.id,n.span,e),n.type===Iv.nonLeaf&&(n.xy=n.rect[jt[t]],n.wh=n.rect[ha[t]])}}function AAe(t,e){t.travelExistingCells(function(r){var n=r.span;if(n){var i=r.spanRect,a=r.id;SH(i,0,a,n,e),SH(i,1,a,n,e)}})}function SH(t,e,r,n,i){t[ha[e]]=0;var a=r[jt[e]],o=a<0?i[jt[1-e]]:i[jt[e]],s=o.getUnitLayoutInfo(e,r[jt[e]]);if(t[jt[e]]=s.xy,t[ha[e]]=s.wh,n[jt[e]]>1){var l=o.getUnitLayoutInfo(e,r[jt[e]]+n[jt[e]]-1);t[ha[e]]=l.xy+l.wh-s.xy}}function sCt(t,e,r){var n=T3(t,r[ha[e]]);return PY(n,r[ha[e]])}function PY(t,e){return Math.max(Math.min(t,ft(e,1/0)),0)}function PG(t){var e=t.matrixModel,r=t.seriesModel,n=e?e.coordinateSystem:r?r.coordinateSystem:null;return n}var xs={inBody:1,inCorner:2,outside:3},gA={x:null,y:null,point:[]};function pAe(t,e,r,n,i){var a=r[jt[e]],o=r[jt[1-e]],s=a.getUnitLayoutInfo(e,a.getLocatorCount(e)-1),l=a.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),c=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,f=t.point[e]=n[e];if(!l&&!c){t[jt[e]]=xs.outside;return}if(i===eg.body){l?(t[jt[e]]=xs.inBody,f=bn(s.xy+s.wh,cr(l.xy,f)),t.point[e]=f):t[jt[e]]=xs.outside;return}else if(i===eg.corner){c?(t[jt[e]]=xs.inCorner,f=bn(c.xy+c.wh,cr(u.xy,f)),t.point[e]=f):t[jt[e]]=xs.outside;return}var d=l?l.xy:c?c.xy+c.wh:NaN,A=u?u.xy:d,p=s?s.xy+s.wh:d;if(f<A){if(!i){t[jt[e]]=xs.outside;return}f=A}else if(f>p){if(!i){t[jt[e]]=xs.outside;return}f=p}t.point[e]=f,t[jt[e]]=d<=f&&f<=p?xs.inBody:A<=f&&f<=d?xs.inCorner:xs.outside}function vAe(t,e,r,n){var i=1-r;if(t[jt[r]]!==xs.outside)for(n[jt[r]].resetCellIterator(OG);OG.next();){var a=OG.item;if(mAe(t.point[r],a.rect,r)&&mAe(t.point[i],a.rect,i)){e[r]=a.ordinal,e[i]=a.id[jt[i]];return}}}function gAe(t,e,r,n){if(t[jt[r]]!==xs.outside){var i=t[jt[r]]===xs.inCorner?n[jt[1-r]]:n[jt[r]];for(i.resetLayoutIterator(bF,r);bF.next();)if(lCt(t.point[r],bF.item)){e[r]=bF.item.id[jt[r]];return}}}function lCt(t,e){return e.xy<=t&&t<=e.xy+e.wh}function mAe(t,e,r){return e[jt[r]]<=t&&t<=e[jt[r]]+e[ha[r]]}function uCt(t){t.registerComponentModel(qSt),t.registerComponentView(nCt),t.registerCoordinateSystem("matrix",oCt)}function cCt(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function yAe(t,e){var r;return ee(e,function(n){t[n]!=null&&t[n]!=="auto"&&(r=!0)}),r}function fCt(t,e,r){var n=Fe({},r),i=t[e],a=r.$action||"merge";a==="merge"?i?(Xt(i,n,!0),lp(i,n,{ignoreSize:!0}),fEe(r,i),xF(r,i),xF(r,i,"shape"),xF(r,i,"style"),xF(r,i,"extra"),r.clipPath=i.clipPath):t[e]=n:a==="replace"?t[e]=n:a==="remove"&&i&&(t[e]=null)}var xLe=["transition","enterFrom","leaveTo"],dCt=xLe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function xF(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var n=r?xLe:dCt,i=0;i<n.length;i++){var a=n[i];t[a]==null&&e[a]!=null&&(t[a]=e[a])}}function hCt(t,e){if(t&&(t.hv=e.hv=[yAe(e,["left","right"]),yAe(e,["top","bottom"])],t.type==="group")){var r=t,n=e;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var ACt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return e.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=i},e.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=UCe(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];ee(l,function(c,f){var d=c.newOption;
125d&&(u.push(d),cCt(c,d),fCt(o,f,d),hCt(o[f],d))},this),i.elements=ln(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(r,n,i){ee(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e})(gr),wAe={path:null,compoundPath:null,group:xt,image:Mo,text:Nr},kf=qt(),pCt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._elMap=st()},e.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},e.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");ee(n,function(l){var u=io(l.id,null),c=u!=null?i.get(u):null,f=io(l.parentId,null),d=f!=null?i.get(f):a,A=l.type,p=l.style;A==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var g=l.textContent,m=l.textConfig;if(p&&V2e(p,A,!!m,!!g)){var y=G2e(p,A,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var b=vCt(l),x=l.$action||"merge",T=x==="merge",B=x==="replace";if(T){var R=!c,I=c;R?I=_Ae(u,d,l.type,i):(I&&(kf(I).isNew=!1),oLe(I)),I&&(qU(I,b,r,{isInit:R}),bAe(I,l,o,s))}else if(B){e4(c,l,i,r);var N=_Ae(u,d,l.type,i);N&&(qU(N,b,r,{isInit:!0}),bAe(N,l,o,s))}else x==="remove"&&(iLe(c,l),e4(c,l,i,r));var F=i.get(u);if(F&&g)if(T){var Q=F.getTextContent();Q?Q.attr(g):F.setTextContent(new Nr(g))}else B&&F.setTextContent(new Nr(g));if(F){var j=l.clipPath;if(j){var W=j.type,V=void 0,R=!1;if(T){var Y=F.getClipPath();R=!Y||kf(Y).type!==W,V=R?kY(W):Y}else B&&(R=!0,V=kY(W));F.setClipPath(V),qU(V,j,r,{isInit:R}),wH(V,j.keyframeAnimation,r)}var G=kf(F);F.setTextConfig(m),G.option=l,gCt(F,r,l),Bg({el:F,componentModel:r,itemName:F.name,itemTooltipOption:l.tooltip}),wH(F,l.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=io(f.id,null),A=d!=null?o.get(d):null;if(!(!A||!A.isGroup)){var p=A.parent,g=p===a,m=kf(A),y=kf(p);m.width=it(m.option.width,g?s:y.width)||0,m.height=it(m.option.height,g?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=io(f.id,null),A=d!=null?o.get(d):null;if(A){var p=A.parent,y=kf(p),b=p===a?{width:s,height:l}:{width:y.width,height:y.height},x={},T=yQ(A,f,b,null,{hv:f.hv,boundingMode:f.bounding},x);if(!kf(A).isNew&&T){for(var B=f.transition,R={},I=0;I<u.length;I++){var N=u[I],F=x[N];B&&(_b(B)||zt(B,N)>=0)?R[N]=F:A[N]=F}Wr(A,R,r,0)}else A.attr(x)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){e4(i,kf(i).option,n,r._lastGraphicModel)}),this._elMap=st()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Yn);function kY(t){var e=ut(wAe,t)?wAe[t]:dR(t),r=new e({});return kf(r).type=t,r}function _Ae(t,e,r,n){var i=kY(r);return e.add(i),n.set(t,i),kf(i).id=t,kf(i).isNew=!0,i}function e4(t,e,r,n){var i=t&&t.parent;i&&(t.type==="group"&&t.traverse(function(a){e4(a,e,r,n)}),zQ(t,e,n),r.removeKey(kf(t).id))}function bAe(t,e,r,n){t.isGroup||ee([["cursor",id.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ut(e,a)?t[a]=ft(e[a],i[1]):t[a]==null&&(t[a]=i[1])}),ee(Cr(e),function(i){if(i.indexOf("on")===0){var a=e[i];t[i]=mt(a)?a:null}}),ut(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function vCt(t){return t=Fe({},t),ee(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(sEe),function(e){delete t[e]}),t}function gCt(t,e,r){var n=It(t).eventData;!t.silent&&!t.ignore&&!n&&(n=It(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}function mCt(t){t.registerComponentModel(ACt),t.registerComponentView(
125pCt),t.registerPreprocessor(function(e){var r=e.graphic;je(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}var xAe=["x","y","radius","angle","single"],yCt=qt(),wCt=["cartesian2d","polar","singleAxis"];function _Ct(t){var e=t.get("coordinateSystem");return zt(wCt,e)>=0}function Ty(t){return t+"Axis"}function bCt(t,e){var r=st(),n=[],i=st();t.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var a;do a=!1,t.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,A){var p=r.get(d);p&&p[A]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function SLe(t){var e=t.ecModel,r={infoList:[],infoMap:st()};return t.eachTargetAxis(function(n,i){var a=e.getComponent(Ty(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}function CLe(t){var e=yCt(aBe(t));return e.axisProxyMap||(e.axisProxyMap=st())}function CH(t){if(t)return CLe(t.ecModel).get(t.uid)}function xCt(t,e){CLe(t.ecModel).set(t.uid,e)}function TLe(t,e){var r=e.getAxisModel().axis.__alignTo;return r&&t.getAxisProxy(r.dim,r.model.componentIndex)?CH(r.model):null}var kG=(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})(),HR=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,n,i){var a=SAe(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},e.prototype.mergeOption=function(r){var n=SAe(r);Xt(this.option,r,!0),Xt(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;ee([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=st(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return ee(xAe,function(i){var a=this.getReferringComponents(Ty(i),flt);if(a.specified){n=!0;var o=new kG;ee(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new kG;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var A=f.getReferringComponents("grid",ta).models[0];A&&ee(u,function(p){f.componentIndex!==p.componentIndex&&A===p.getReferringComponents("grid",ta).models[0]&&d.add(p.componentIndex)})}}}a&&ee(xAe,function(u){if(a){var c=i.findComponents({mainType:Ty(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new kG;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");ee([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(Ty(n),i))},this),r},e.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){ee(i.indexList,function(o){r.call(n,a,o)})})},e.prototype.getAxisProxy=function(r,n){return CH(this.getAxisModel(r,n))},e.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(Ty(r),n)},e.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;ee([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var n=this.option;ee(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getWindow().percent},e.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getWindow().value}else return this.getAxisProxy(r,n).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return CH(r);for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return 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})(gr);function SAe(t){var e={};return ee(["start","end","startValue","endValue","throttle"],function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var SCt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e})(HR),kee=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.dataZoomModel=r,this.ecModel=n,this.api=i},e.type="dataZoom",e})(Yn),CCt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.select",e})(kee),TCt=(function(){function t(e,r,n,i){this._dimName=e,this._axisIndex=r,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getWindow=function(){return vt(this._window)},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(r){if(_Ct(r)){var n=Ty(this._dimName),i=r.getReferringComponents(n,ta).models[0];i&&this._axisIndex===i.componentIndex&&e.push(r)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return vt(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var r=this._extent,n=this.getAxisModel().axis,i=n.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],c,f=[!1,!1];
125ee(["start","end"],function(x,T){var B=e[x],R=e[x+"Value"];o[T]==="percent"?(B==null&&(B=s[T]),R=Jr(B,s,r),f[T]=!0):(c=!0,R==null?R=r[T]:(R=i.parse(R),i.sanitize&&(R=i.sanitize(R,r))),B=Jr(R,r,s)),u[T]=R==null||isNaN(R)?r[T]:R,l[T]=B==null||isNaN(B)?s[T]:B}),qo(u),qo(l);var d=this._minMaxSpan;c?A(u,l,r,s,!1):A(l,u,s,r,!0);function A(x,T,B,R,I){var N=I?"Span":"ValueSpan";o0(0,x,B,"all",d["min"+N],d["max"+N]);for(var F=0;F<2;F++)T[F]=Jr(x[F],B,R,!0),I&&(T[F]=T[F],f[F]=!0);FU(T)}var p=xl(i)||HI(i),g=n.getExtent(),m=Vi(g[1]-g[0]),y=p?0:sq(u,m,.5);ee([[0,xx],[1,rd]],function(x){var T=x[0],B=x[1];!f[T]||!isFinite(y)||(u[T]=Kr(u[T],y),u[T]=bn(r[1],cr(r[0],u[T])),l[T]===s[T]&&(u[T]=r[T],p&&(u[T]=B(u[T]))))}),FU(u);var b=[Jr(u[0],r,s,!0),Jr(u[1],r,s,!0)];return FU(b),{value:u,percent:l,percentInverted:b,valuePrecision:y}},t.prototype.reset=function(e,r){if(this.hostedBy(e)){var n=this.getAxisModel().axis;Zb(n,RAt);var i=n.scale.rawExtentInfo;this._extent=i.makeNoZoom(),this._updateMinMaxSpan();var a=e.settledOption;r&&(a=Ct({start:r[0],end:r[1]},a));var o=this._window=this.calculateDataWindow(a),s=o.percent,l=o.value;s[0]!==0&&i.setZoomMM(0,l[0]),s[1]!==100&&i.setZoomMM(1,l[1])}},t.prototype.filterData=function(e,r){if(!this.hostedBy(e))return;var n=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._window.value;if(a==="none")return;ee(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),d=ze(c,function(A){return u.getDimensionIndex(A)},u);u.filterSelf(function(A){for(var p,g,m,y=0;y<c.length;y++){var b=f.get(d[y],A),x=!isNaN(b),T=b<o[0],B=b>o[1];if(x&&!T&&!B)return!0;x&&(m=!0),T&&(p=!0),B&&(g=!0)}return m&&p&&g})}else ee(c,function(A){if(a==="empty")l.setData(u=u.map(A,function(g){return s(g)?g:NaN}));else{var p={};p[A]=o,u.selectRange(p)}});ee(c,function(A){u.setApproximateExtent(o,A)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,n=this._extent;ee(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Jr(n[0]+o,n,[0,100],!0):a!=null&&(o=Jr(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},t})(),ECt={dirtyOnOverallProgress:!0,getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=t.getComponent(Ty(o),s);i(o,s,l,a)})})}var r=[];e(function(i,a,o,s){if(!CH(o)){var l=new TCt(i,a,s,t);r.push(l),xCt(o,l)}});var n=st();return ee(r,function(i){ee(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(r){var n=[];r.eachTargetAxis(function(i,a){var o=r.getAxisProxy(i,a),s=TLe(r,o);s?n.push([o,s]):o.reset(r,null)}),ee(n,function(i){i[0].reset(r,i[1].getWindow().percentInverted)}),r.eachTargetAxis(function(i,a){r.getAxisProxy(i,a).filterData(r,e)})}),t.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getWindow(),a=i.percent,o=i.value;r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};function BCt(t){t.registerAction("dataZoom",function(e,r){var n=bCt(r,e);ee(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var DCt=uE();function Nee(t){DCt(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,ECt),BCt(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function MCt(t){t.registerComponentModel(SCt),t.registerComponentView(CCt),Nee(t)}var XA=(function(){function t(){}return t})(),ELe={};function yC(t,e){ELe[t]=e}function BLe(t){return ELe[t]}var LCt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n,i){var a=i.getTheme().get("toolbox"),o=a?a.feature:null;o&&(this._themeFeatureOption=Fe({},o),a.feature={}),t.prototype.init.call(this,r,n,i),o&&(a.feature=o)},e.prototype.optionUpdated=function(){ee(this.option.feature,function(r,n){var i=this._themeFeatureOption,a=BLe(n);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(this.ecModel)),i&&i[n]&&(Xt(r,i[n]),i[n]=null),Xt(r,a.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0}
125,e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:xe.color.border,borderRadius:0,borderWidth:0,padding:xe.size.m,itemSize:15,itemGap:xe.size.s,showTitle:!0,iconStyle:{borderColor:xe.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:xe.color.accent70}},tooltip:{show:!1,position:"bottom"}},e})(gr);function DLe(t,e){var r=mE(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new fr({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var RCt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features=st()),f=[];ee(u,function(b,x){f.push(x)}),new vg(this._featureNames||[],f).add(d).update(d).remove(lr(d,null)).execute(),this._featureNames=ln(f,function(b){return c.hasKey(b)});function d(b,x){var T=b!=null&&x==null,B=b!=null&&x!=null,R=b==null,I=T||B?f[b]:f[x],N=u[I],F=T||B?new wr(N,r,n):null,Q=F&&F.get("show"),j;if(T){if(!Q)return;if(ICt(I))j={onclick:F.option.onclick,featureName:I};else{var W=BLe(I);if(!W)return;j=new W}c.set(I,j)}else j=c.get(I);if(R||!Q){CAe(j)&&j.dispose&&j.dispose(n,i),c.removeKey(I);return}a&&a.newTitle!=null&&a.featureName===I&&(N.title=a.newTitle),T&&(j.uid=Bx("toolbox-feature")),j.model=F,j.ecModel=n,j.api=i,A(F,j,I),F.setIconStatus=function(V,Y){var G=this.option,K=this.iconPaths;G.iconStatus=G.iconStatus||{},G.iconStatus[V]=Y,K[V]&&(Y==="emphasis"?Ag:pg)(K[V])},CAe(j)&&j.render&&j.render(F,n,i,a)}function A(b,x,T){var B=b.getModel("iconStyle"),R=b.getModel(["emphasis","iconStyle"]),I=x instanceof XA&&x.getIcons?x.getIcons():b.get("icon"),N=b.get("title")||{},F,Q;et(I)?(F={},F[T]=I):F=I,et(N)?(Q={},Q[T]=N):Q=N;var j=b.iconPaths={};ee(F,function(W,V){var Y=vE(W,{},{x:-s/2,y:-s/2,width:s,height:s});Y.setStyle(B.getItemStyle());var G=Y.ensureState("emphasis");G.style=R.getItemStyle();var K=new Nr({style:{text:Q[V],align:R.get("textAlign"),borderRadius:R.get("textBorderRadius"),padding:R.get("textPadding"),fill:null,font:Iq({fontStyle:R.get("textFontStyle"),fontFamily:R.get("textFontFamily"),fontSize:R.get("textFontSize"),fontWeight:R.get("textFontWeight")},n)},ignore:!0});Y.setTextContent(K),Bg({el:Y,componentModel:r,itemName:V,formatterParamsExtra:{title:Q[V]}}),Y.__title=Q[V],Y.on("mouseover",function(){var X=R.getItemStyle(),q=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";
125K.setStyle({fill:R.get("textFill")||X.fill||X.stroke||xe.color.neutral99,backgroundColor:R.get("textBackgroundColor")}),Y.setTextConfig({position:R.get("textPosition")||q}),K.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){b.get(["iconStatus",V])!=="emphasis"&&i.leaveEmphasis(this),K.hide()}),(b.get(["iconStatus",V])==="emphasis"?Ag:pg)(Y),o.add(Y),Y.on("click",ot(x.onclick,x,n,i,V)),j[V]=Y})}var p=uo(r,i).refContainer,g=r.getBoxLayoutParams(),m=r.get("padding"),y=gi(g,p,m);mb(r.get("orient"),o,r.get("itemGap"),y.width,y.height),yQ(o,g,p,m),o.add(DLe(o.getBoundingRect(),r)),l||o.eachChild(function(b){var x=b.__title,T=b.ensureState("emphasis"),B=T.textConfig||(T.textConfig={}),R=b.getTextContent(),I=R&&R.ensureState("emphasis");if(I&&!mt(I)&&x){var N=I.style||(I.style={}),F=tQ(x,Nr.makeFont(N)),Q=b.x+o.x,j=b.y+o.y+s,W=!1;j+F.height>i.getHeight()&&(B.position="top",W=!0);var V=W?-5-F.height:s+10;Q+F.width/2>i.getWidth()?(B.position=["100%",V],N.align="right"):Q-F.width/2<0&&(B.position=[0,V],N.align="left")}})},e.prototype.updateView=function(r,n,i,a){ee(this._features,function(o){o&&o instanceof XA&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.dispose=function(r,n){ee(this._features,function(i){i&&i instanceof XA&&i.dispose&&i.dispose(r,n)})},e.type="toolbox",e})(Yn);function ICt(t){return t.indexOf("my")===0}function CAe(t){return t instanceof XA}var OCt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||xe.color.neutral00,connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Dr.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+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||o){var d=l.split(","),A=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];A&&(p=window.atob(p));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var T=x.contentWindow,B=T.document;B.open("image/svg+xml","replace"),B.write(p),B.close(),T.focus(),B.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var R=i.get("lang"),I='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(R&&R[0]||"")+'" /></body>',N=window.open();N.document.write(I),N.document.title=a}},e.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:xe.color.neutral00,name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e})(XA),TAe="__ec_magicType_stack__",PCt=[["line","bar"],["stack"]],kCt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return ee(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(EAe[i]){var s={series:[]},l=function(f){var d=f.subType,A=f.id,p=EAe[i](d,A,f,a);p&&(Ct(p,f.option),s.series.push(p));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",x=f.getReferringComponents(b,ta).models[0],T=x.componentIndex;s[b]=s[b]||[];for(var B=0;B<=T;B++)s[b][T]=s[b][T]||{};s[b][T].boundaryGap=i==="bar"}}};ee(PCt,function(f){zt(f,i)>=0&&ee(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Xt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}
125)(XA),EAe={line:function(t,e,r,n){if(t==="bar")return Xt({id:e,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,r,n){if(t==="line")return Xt({id:e,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,r,n){var i=r.get("stack")===TAe;if(t==="line"||t==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Xt({id:e,stack:i?"":TAe},n.get(["option","stack"])||{},!0)}};Ch({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var VQ=new Array(60).join("-"),kT="	";function NCt(t){var e={},r=[],n=[];return t.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=ygt(o);e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:e,other:r,meta:n}}function FCt(t){var e=[];return ee(t,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(ze(r.series,function(A){return A.name})),l=[i.model.getCategories()];ee(r.series,function(A){var p=A.getRawData();l.push(A.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(kT)],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(kT))}e.push(u.join(`
126`))}),e.join(`
127
128`+VQ+`
129
130`)}function UCt(t){return ze(t,function(e){var r=e.getRawData(),n=[e.name],i=[];return r.each(r.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=r.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+kT:"")+i.join(kT))}),n.join(`
131`)}).join(`
132
133`+VQ+`
134
135`)}function HCt(t){var e=NCt(t);return{value:ln([FCt(e.seriesGroupByCategoryAxis),UCt(e.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
136
137`+VQ+`
138
139`),meta:e.meta}}function TH(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function QCt(t){var e=t.slice(0,t.indexOf(`
140`));if(e.indexOf(kT)>=0)return!0}var NY=new RegExp("["+kT+"]+","g");function jCt(t){for(var e=t.split(/\n+/g),r=TH(e.shift()).split(NY),n=[],i=ze(r,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=TH(e[a]).split(NY);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function zCt(t){for(var e=t.split(/\n+/g),r=TH(e.shift()),n=[],i=0;i<e.length;i++){var a=TH(e[i]);if(a){var o=a.split(NY),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function VCt(t,e){var r=t.split(new RegExp(`
141*`+VQ+`
142*`,"g")),n={series:[]};return ee(r,function(i,a){if(QCt(i)){var o=jCt(i),s=e[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=zCt(i);n.series.push(o)}}),n}var GCt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}
142return e.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||xe.color.neutral00;var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),d=a.get("contentToOption"),A=HCt(r);if(mt(f)){var p=f(n.getOption());et(p)?u.innerHTML=p:kb(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var g=c.style;g.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",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),c.value=A.value,u.appendChild(c)}var m=A.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",x=document.createElement("div"),T=document.createElement("div");b+=";background-color:"+a.get("buttonColor"),b+=";color:"+a.get("buttonTextColor");var B=this;function R(){i.removeChild(o),B._dom=null}G7(x,"click",R),G7(T,"click",function(){if(d==null&&f!=null||d!=null&&f==null){R();return}var I;try{mt(d)?I=d(u,n.getOption()):I=VCt(c.value,m)}catch(N){throw R(),new Error("Data view format error "+N)}I&&n.dispatchAction({type:"changeDataView",newOption:I}),R()}),x.innerHTML=l[1],T.innerHTML=l[2],T.style.cssText=x.style.cssText=b,!a.get("readOnly")&&y.appendChild(T),y.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.dispose=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},e.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:xe.color.background,textColor:xe.color.primary,textareaColor:xe.color.background,textareaBorderColor:xe.color.border,buttonColor:xe.color.accent50,buttonTextColor:xe.color.neutral00};return n},e})(XA);function KCt(t,e){return ze(t,function(r,n){var i=e&&e[n];if(Tt(i)&&!je(i)){var a=Tt(r)&&!je(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=Ct(r,i),o&&delete r.name,r}else return r})}Ch({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var r=[];ee(t.newOption.series,function(n){var i=e.getSeriesByName(n.name)[0];if(!i)r.push(Fe({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:KCt(n.data,a)})}}),e.mergeOption(Ct({series:r},t.newOption))});var MLe=ee,LLe=qt();function WCt(t,e){var r=Fee(t);MLe(e,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(e)}function YCt(t){var e=Fee(t),r=e[e.length-1];e.length>1&&e.pop();var n={};return MLe(r,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function $Ct(t){LLe(t).snapshots=null}function ZCt(t){return Fee(t).length}function Fee(t){var e=LLe(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var XCt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,n){$Ct(r),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","restore","title"])};return n},e})(XA);Ch({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var qCt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Uee=(function(){function t(e,r,n){var i=this;this._targetInfoList=[];var a=BAe(r,e);ee(JCt,function(o,s){(!n||!n.include||zt(n.include,s)>=0)&&o(a,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,r){return this.matchOutputRanges(e,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=NG[n.brushType](0,a,i);n.__rangeOffset={offset:RAe[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,r,n){ee(e,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&ee(a.coordSyses,function(o){var s=NG[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},t.prototype.setInputRanges=function(e,r){ee(e,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=NG[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?RAe[n.brushType](a.values,o.offset,eTt(a.xyMinMax,o.xyMinMax)):a.values}},this)},t.prototype.makePanelOpts=function(e,r){return ze(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:NMe(i),isTargetByCursor:UMe(i,e,n.coordSysModel),getLinearBrushOtherExtent:FMe(i)}})},t.prototype.controlSeries=function(e,r,n){var i=this.findTargetInfo(e,n);return i===!0||i&&zt(i.coordSyses,r.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,r){for(var n=this._targetInfoList,i=BAe(r,e),a=0;a<n.length;a++){var o=n[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<DAe.length;l++)if(DAe[l](i,o))return o}return!0},t})();function FY(t){return t[0]>t[1]&&t.reverse(),t}function BAe(t,e){return $C(t,e,{includeMainTypes:qCt})}var JCt={grid:function(t,e){var r=t.xAxisModels,n=t.yAxisModels,i=t.gridModels,a=st(),o={},s={};!r&&!n&&!i||(ee(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),ee(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),ee(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}
142),a.each(function(l){var u=l.coordinateSystem,c=[];ee(u.getCartesians(),function(f,d){(zt(r,f.getAxis("x").model)>=0||zt(n,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:MAe.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){ee(t.geoModels,function(r){var n=r.coordinateSystem;e.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:MAe.geo})})}},DAe=[function(t,e){var r=t.xAxisModel,n=t.yAxisModel,i=t.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(t,e){var r=t.geoModel;return r&&r===e.geoModel}],MAe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys.view,e=kDe(null,t);return nCe(e,e,uH(null,t)),e}},NG={lineX:lr(LAe,0),lineY:lr(LAe,1),rect:function(t,e,r,n){var i=t?e.pointToData([r[0][0],r[1][0]],n):e.dataToPoint([r[0][0],r[1][0]],n),a=t?e.pointToData([r[0][1],r[1][1]],n):e.dataToPoint([r[0][1],r[1][1]],n),o=[FY([i[0],a[0]]),FY([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,r,n){var i=[Cs(),Cs()],a=ze(r,function(o){var s=t?e.pointToData(o,n):e.dataToPoint(o,n);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:a,xyMinMax:i}}};function LAe(t,e,r,n){var i=r.getAxis(["x","y"][t]),a=FY(ze([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var RAe={lineX:lr(IAe,0),lineY:lr(IAe,1),rect:function(t,e,r){return[[t[0][0]-r[0]*e[0][0],t[0][1]-r[0]*e[0][1]],[t[1][0]-r[1]*e[1][0],t[1][1]-r[1]*e[1][1]]]},polygon:function(t,e,r){return ze(t,function(n,i){return[n[0]-r[0]*e[i][0],n[1]-r[1]*e[i][1]]})}};function IAe(t,e,r,n){return[e[0]-n[t]*r[0],e[1]-n[t]*r[1]]}function eTt(t,e){var r=OAe(t),n=OAe(e),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function OAe(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var UY=ee,tTt=olt("toolbox-dataZoom_"),rTt={x:"width",y:"height"},nTt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new lee(i.getZr()),this._brushController.on("brush",ot(this._onBrush,this)).mount()),oTt(r,n,this,a,i),aTt(r,n)},e.prototype.onclick=function(r,n,i){iTt[i].call(this)},e.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new Uee(Hee(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=f.master.getRect().clone(),A=u.brushType;A==="rect"?(s("x",f,d,c[0]),s("y",f,d,c[1])):s({lineX:"x",lineY:"y"}[A],f,d,c)}}),WCt(a,i),this._dispatchZoomAction(i);function s(u,c,f,d){var A=c.getAxis(u),p=A.model,g=l(u,p,a),m=g.findRepresentativeAxisProxy(p).getMinMaxSpan(),y=A.scale.getExtent();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(d=o0(0,d.slice(),y,0,m.minValueSpan,m.maxValueSpan));var b=sq(y,f[rTt[u]],.5);g&&(i[g.id]={dataZoomId:g.id,startValue:isFinite(b)?Kr(d[0],b):d[0],endValue:isFinite(b)?Kr(d[1],b):d[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(A){var p=A.getAxisModel(u,c.componentIndex);p&&(d=A)}),d}},e.prototype._dispatchZoomAction=function(r){var n=[];UY(r,function(i,a){n.push(vt(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:xe.color.backgroundTint}};return n},e}
142)(XA),iTt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(YCt(this.ecModel))}};function Hee(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 aTt(t,e){t.setIconStatus("back",ZCt(e)>1?"emphasis":"normal")}function oTt(t,e,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new Uee(Hee(t),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}Yct("dataZoom",function(t){var e=t.getComponent("toolbox",0),r=["feature","dataZoom"];if(!e||e.get(r)==null)return;var n=e.getModel(r),i=[],a=Hee(n),o=$C(t,a);UY(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),UY(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:tTt+u+f};d[c]=f,i.push(d)}return i});function sTt(t){t.registerComponentModel(LCt),t.registerComponentView(RCt),yC("saveAsImage",OCt),yC("magicType",kCt),yC("dataView",GCt),yC("dataZoom",nTt),yC("restore",XCt),ir(MCt)}var lTt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:xe.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:xe.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:xe.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:xe.color.tertiary,fontSize:14}},e})(gr);function RLe(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function ILe(t){if(Dr.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var OLe=ILe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),uTt=ILe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function PLe(t,e){if(!t)return e;e=Kq(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function cTt(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var fTt=PLe(uTt,"transition"),Qee=PLe(OLe,"transform"),dTt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Dr.transform3dSupported?"will-change:transform;":"");function hTt(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function ATt(t,e,r){if(!et(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Kb(e);var a=hTt(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Qee+":",u;zt(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),A=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+A+"px";var p=e+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function pTt(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";
142return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(Dr.transformSupported?""+Qee+i:",left"+i+",top"+i)),fTt+":"+a}function PAe(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Dr.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Dr.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Qee+":"+o+";":[["top",0],["left",0],[OLe,o]]}function vTt(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=ft(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),ee(["decoration","align"],function(u){var c=t.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function gTt(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),f=t.getModel("textStyle"),d=zEe(t,"html"),A=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+A),e&&a>0&&i.push(pTt(a,r,n)),o&&i.push("background-color:"+o),ee(["width","color","radius"],function(p){var g="border-"+p,m=Kq(g),y=t.get(m);y!=null&&i.push(g+":"+y+(p==="color"?"":"px"))}),i.push(vTt(f)),d!=null&&i.push("padding:"+mE(d).join("px ")+"px"),i.join(";")+";"}function kAe(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&wot(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var mTt=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Dr.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(et(a)?document.querySelector(a):kb(a)?a:mt(a)&&a(e.getDom()));kAe(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();If(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=cTt(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=dTt+gTt(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+PAe(a[0],a[1],!0)+("border-color:"+Kb(r)+";")+(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,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(et(a)&&n.get("trigger")==="item"&&!RLe(n)&&(s=ATt(n,i,a)),et(e))o.innerHTML=e+s;else if(e){o.innerHTML="",je(e)||(e=[e]);for(var l=0;l<e.length;l++)kb(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(kAe(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=PAe(n[0],n[1]);ee(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",Dr.transform3dSupported&&(r.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(ot(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._zr;_ot(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),yTt=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),FAe(this._styleCoord,this._zr,e.getW
142idth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;Tt(e)&&sn(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Nr({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:zEe(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),ee(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),ee(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.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,r=this.el.getBoundingRect(),n=NAe(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;FAe(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=ty(a.borderWidth||0),s=NAe(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*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(ot(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function ty(t){return Math.max(0,t)}function NAe(t){var e=ty(t.shadowBlur||0),r=ty(t.shadowOffsetX||0),n=ty(t.shadowOffsetY||0);return{left:ty(e-r),right:ty(e+r),top:ty(e-n),bottom:ty(e+n)}}function FAe(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var wTt=new fr({shape:{x:-1,y:-1,width:2,height:2}}),_Tt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(Dr.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=hlt(i.get("renderMode"));this._tooltipContent=a==="richText"?new yTt(n):new mTt(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(Dr.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?wE(this,"_updatePosition",50,"fixRate"):vR(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");pLe("itemTooltip",this._api,ot(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Dr.node||!i.getDom())){var o=UAe(a,i);this._ticket="";var s=a.dataByCoordSys,l=CTt(a,n,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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=wTt;c.x=a.x,c.y=a.y,c.update(),It(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=vLe(a,n),d=f.point[0],A=f.point[1];d!=null&&A!=null&&this._tryShow({offsetX:d,offsetY:A,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParam
142sList=null,a.from!==this.uid&&this._hide(UAe(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=$D([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=It(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;J_(i,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(It(c).dataIndex!=null?l=c:It(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ot(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=$D([n.tooltipOption],a),l=this._renderMode,u=[],c=Va("section",{blocks:[],noHeader:!0}),f=[],d=new h8;ee(r,function(b){ee(b.dataByAxis,function(x){var T=i.getComponent(x.axisDim+"Axis",x.axisIndex),B=x.value,R=T.axis,I=R.scale.parse(B);if(!(!T||B==null)){var N=dLe(B,R,i,x.seriesDataIndices,x.valueLabelOpt),F=Va("section",{header:N,noHeader:!Rc(N),sortBlocks:!0,blocks:[]});c.blocks.push(F),ee(x.seriesDataIndices,function(Q){var j=i.getSeriesByIndex(Q.seriesIndex),W=Q.dataIndexInside,V=j.getDataParams(W);if(!(V.dataIndex<0)){V.axisDim=x.axisDim,V.axisIndex=x.axisIndex,V.axisType=x.axisType,V.axisId=x.axisId,V.axisValue=$3(T.axis,{value:I}),V.axisValueLabel=N,V.marker=d.makeTooltipMarker("item",Kb(V.color),l);var Y=Kue(j.formatTooltip(W,!0,null)),G=Y.frag;if(G){var K=$D([j],a).get("valueFormatter");F.blocks.push(K?Fe({valueFormatter:K},G):G)}Y.text&&f.push(Y.text),u.push(V)}})}})}),c.blocks.reverse(),f.reverse();var A=n.position,p=s.get("order"),g=que(c,d,l,p,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var m=l==="richText"?`
143
144`:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,A,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],A,null,d)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=It(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),A=this._renderMode,p=r.positionDefault,g=$D([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),b=new h8;y.marker=b.makeTooltipMarker("item",Kb(y.color),A);var x=Kue(u.formatTooltip(c,!1,f)),T=g.get("order"),B=g.get("valueFormatter"),R=x.frag,I=R?que(B?Fe({valueFormatter:B},R):R,b,A,T,a.get("useUTC"),g.get("textStyle")):x.text,N="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,I,y,N,r.offsetX,r.offsetY,r.position,r.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=It(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(et(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=vt(l),l.content=pl(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var A=r.positionDefault,p=$D(f,this._tooltipModel,A?{position:A}:null),g=p.get("content"),m=Math.random()+"",y=new h8;this._showOrMove(p,function(){var b=vt(p.get("formatterParams")||{});this._showTooltipContent(p,g,b,m,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var A=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=p.color;if(d)if(et(d)){var m=r.ecModel.get("useUTC"),y=je(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;A=d,b&&(A=NI(y.axisValue,A,m)),A=Wq(A,i,!0)}else if(mt(d)){var x=ot(function(T,B){T===this._ticket&&(f.setContent(B,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,A=d(i,a,x)}else A=d;f.setContent(A,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||je(n))return{color:a||o};if(!je(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),A=r.get("verticalAlign"),p=l&&l.getBoundingRect
144().clone();if(l&&p.applyTransform(l.transform),mt(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),je(n))i=it(n[0],u),a=it(n[1],c);else if(Tt(n)){var g=n;g.width=f[0],g.height=f[1];var m=gi(g,{width:u,height:c});i=m.x,a=m.y,d=null,A=null}else if(et(n)&&l){var y=STt(n,p,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=bTt(i,a,o,u,c,d?null:20,A?null:20);i=y[0],a=y[1]}if(d&&(i-=HAe(d)?f[0]/2:d==="right"?f[0]:0),A&&(a-=HAe(A)?f[1]/2:A==="bottom"?f[1]:0),RLe(r)){var y=xTt(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&ee(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&ee(u,function(d,A){var p=f[A]||{},g=d.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&g.length===m.length,o&&ee(g,function(y,b){var x=m[b];o=o&&y.seriesIndex===x.seriesIndex&&y.dataIndex===x.dataIndex}),a&&ee(d.seriesDataIndices,function(y){var b=y.seriesIndex,x=n[b],T=a[b];x&&T&&T.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){Dr.node||!n.getDom()||(vR(this,"_updatePosition"),this._tooltipContent.dispose(),LY("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Yn);function $D(t,e,r){var n=e.ecModel,i;r?(i=new wr(r,n,n),i=new wr(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof wr&&(o=o.get("tooltip",!0)),et(o)&&(o={formatter:o}),o&&(i=new wr(o,i,n)))}return i}function UAe(t,e){return t.dispatchAction||ot(e.dispatchAction,e)}function bTt(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function xTt(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function STt(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+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-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function HAe(t){return t==="center"||t==="middle"}function CTt(t,e,r){var n=hq(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=lE(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=It(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function TTt(t){ir($I),t.registerComponentModel(lTt),t.registerComponentView(_Tt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ki),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ki)}var ETt=["rect","polygon","keep","clear"];function BTt(t,e){var r=Kn(t?t.brush:[]);if(r.length){var n=[];ee(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=t&&t.toolbox;je(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),oQ(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,ETt)}}var QAe=ee;function jAe(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function HY(t,e,r){var n={};return QAe(e,function(a){var o=n[a]=i();QAe(t[a],function(s,l){if(Bo.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Bo(u),l==="opacity"&&(u=vt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Bo(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function kLe(t,e,r){var n;ee(r,function(i){e.hasOwnProperty(i)&&jAe(e[i])&&(n=!0)}),n&&ee(r,function(i){e.hasOwnProperty(i)&&jAe(e[i])?t[i]=vt(e[i]):delete t[i]})}function DTt(t,e,r,n,i,a){var o={};ee(t,function(f){var d=Bo.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return nJ(r,s,f)}function u(f,d){JEe(r,s,f,d)}r.each(c);function c(f,d){s=f;var A=r.getRawDataItem(s);if(!(A&&A.visualMap===!1))for(var p=n.call(i,f),g=e[p],m=o[p],y=0,b=m.length;y<b;y++){var x=m[y];g[x]&&g[x].applyVisual(f,l,u)}}}function MTt(t,e,r,n){var i={};return ee(t,function(a){var o=Bo.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(B){return nJ(s,f,B)}function c(B,R){JEe(s,f,B,R)}for(var f,d=s.getStore();(f=o.next())!=null;){var A=s.getRawDataItem(f);if(!(A&&A.visualMap===!1))for(var p=n!=null?d.get(l,f):f,g=r(p),m=e[g],y=i[g],b=0,x=y.length;b<x;b++){var T=y[b];m[T]&&m[T].applyVisual(p,u,c)}}}}}function LTt(t){var e=t.brushType,r={point:function(n){return zAe[e].point(n,r,t)},rect:function(n){return zAe[e].rect(n,r,t)}};return r}var zAe={lineX:VAe(0),lineY:VAe(1),rect:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])},rect:function(t,e,r){return t&&r.boundingRect.intersect(t)}},polygon:{point:function(t,e,r){return t&&r.boundingRect.contain(t[0],t[1])&&P_(r.range,t[0],t[1])},rect:function(t,e,r){var n=r.range;if(!t||n.length<=1)return!1;var i=t.x,a=t.y,o=t.width,s=t.height,l=n[0];if(P_(n,i,a)||P_(n,i+o,a)||P_(n,i,a+s)||P_(n,i+o,a+s)||St.create(t).contain(l[0],l[1])||MM(i,a,i+o,a,n)||MM(i,a,i,a+s,n)||MM(i+o,a,i+o,a+s,n)||MM(i,a+s,i+o,a+s,n))return!0}}};function VAe(t){var e=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[t];return ZD(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[e[t]],n[e[t]]+n[r[t]]];return s[1]<s[0]&&s.reverse(),ZD(s[0],o)||ZD(s[1],o)||ZD(o[0],s)||ZD(o[1],s)}}}}function ZD(t,e){return e[0]<=t&&t<=e[1]}var GAe=["inBrush","outOfBrush"],FG="__ecBrushSelect",QY="__ecInBrushSelectEvent";function NLe(t){t.eachComponent({mainType:"brush"}
144,function(e){var r=e.brushTargetManager=new Uee(e.option,t);r.setInputRanges(e.areas,t)})}var RTt=LI(ITt);function ITt(t,e,r){var n=[],i,a;t.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),NLe(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:vt(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],A=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var g=ze(o.areas,function(B){var R=NTt[B.brushType],I=Ct({boundingRect:R?R(B):void 0},B);return I.selectors=LTt(I),I}),m=HY(o.option,GAe,function(B){B.mappingMethod="fixed"});je(c)&&ee(c,function(B){f[B]=1});function y(B){return c==="all"||!!f[B]}function b(B){return!!B.length}t.eachSeries(function(B,R){var I=A[R]=[];B.subType==="parallel"?x(B,R):T(B,R,I)});function x(B,R){var I=B.coordinateSystem;p=p||I.hasAxisBrushed(),y(R)&&I.eachActiveState(B.getData(),function(N,F){N==="active"&&(d[F]=1)})}function T(B,R,I){if(!(!B.brushSelector||kTt(o,R))&&(ee(g,function(F){o.brushTargetManager.controlSeries(F,B,t)&&I.push(F),p=p||b(I)}),y(R)&&b(I))){var N=B.getData();N.each(function(F){KAe(B,I,N,F)&&(d[F]=1)})}}t.eachSeries(function(B,R){var I={seriesId:B.id,seriesIndex:R,seriesName:B.name,dataIndex:[]};l.selected.push(I);var N=A[R],F=B.getData(),Q=y(R)?function(j){return d[j]?(I.dataIndex.push(F.getRawIndex(j)),"inBrush"):"outOfBrush"}:function(j){return KAe(B,N,F,j)?(I.dataIndex.push(F.getRawIndex(j)),"inBrush"):"outOfBrush"};(y(R)?p:b(N))&&DTt(GAe,m,F,Q)})}),OTt(e,i,a,n,r)}function OTt(t,e,r,n,i){if(i){var a=t.getZr();if(!a[QY]){a[FG]||(a[FG]=PTt);var o=wE(a,FG,r,e);o(t,n)}}}function PTt(t,e){if(!t.isDisposed()){var r=t.getZr();r[QY]=!0,t.dispatchAction({type:"brushSelect",batch:e}),r[QY]=!1}}function KAe(t,e,r,n){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(t.brushSelector(n,r,o.selectors,o))return!0}}function kTt(t,e){var r=t.option.seriesIndex;return r!=null&&r!=="all"&&(je(r)?zt(r,e)<0:e!==r)}var NTt={rect:function(t){return WAe(t.range)},polygon:function(t){for(var e,r=t.range,n=0,i=r.length;n<i;n++){e=e||[Cs(),Cs()];var a=r[n];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&WAe(e)}};function WAe(t){return new St(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var FTt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new lee(n.getZr())).on("brush",ot(this._onBrush,this)).mount()},e.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},e.prototype.updateTransform=function(r,n,i,a){NLe(n),this._updateController(r,n,i,a)},e.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},e.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},e.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:vt(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:vt(i),$from:n})},e.type="brush",e})(Yn),UTt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.areas=[],r.brushOption={},r}return e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&kLe(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:this.option.defaultOutOfBrushColor},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(r){r&&(this.areas=ze(r,function(n){return YAe(this.option,n)},this))},e.prototype.setBrushOption=function(r){this.brushOption=YAe(this.option,r),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:xe.color.backgroundTint,borderColor:xe.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:xe.color.disabled},e})(gr);function YAe(t,e){return Xt({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new wr(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var HTt=["rect","polygon","lineX","lineY","keep","clear"],QTt=(function(t){Ee(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}
144),this._brushType=a,this._brushMode=o,ee(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(r,n,i){this.render(r,n,i)},e.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return ee(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},e.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(r){var n={show:!0,type:HTt.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:r.getLocaleModel().get(["toolbox","brush","title"])};return n},e})(XA);function jTt(t){t.registerComponentView(FTt),t.registerComponentModel(UTt),t.registerPreprocessor(BTt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,RTt),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,r){r.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Ki),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ki),yC("brush",QTt)}var zTt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:xe.size.m,backgroundColor:xe.color.transparent,borderColor:xe.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:xe.color.primary},subtextStyle:{fontSize:12,color:xe.color.quaternary}},e})(gr),VTt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ft(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Nr({style:Gn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),A=new Nr({style:Gn(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),g=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!p&&!m,A.silent=!g&&!m,p&&c.on("click",function(){k3(p,"_"+r.get("target"))}),g&&A.on("click",function(){k3(g,"_"+r.get("subtarget"))}),It(c).eventData=It(A).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(A);
144var y=a.getBoundingRect(),b=r.getBoxLayoutParams();b.width=y.width,b.height=y.height;var x=uo(r,i),T=gi(b,x.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?T.x+=T.width:l==="center"&&(T.x+=T.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?T.y+=T.height:u==="middle"&&(T.y+=T.height/2),u=u||"top"),a.x=T.x,a.y=T.y,a.markRedraw();var B={align:l,verticalAlign:u};c.setStyle(B),A.setStyle(B),y=a.getBoundingRect();var R=T.margin,I=r.getItemStyle(["color","opacity"]);I.fill=r.get("backgroundColor");var N=new fr({shape:{x:y.x-R[3],y:y.y-R[0],width:y.width+R[1]+R[3],height:y.height+R[0]+R[2],r:r.get("borderRadius")},style:I,subPixelOptimize:!0,silent:!0});a.add(N)}},e.type="title",e})(Yn);function GTt(t){t.registerComponentModel(zTt),t.registerComponentView(VTt)}var $Ae=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode="box",r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(r){this.option.autoPlay=!!r},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],ee(n,function(u,c){var f=io(sE(u),""),d;Tt(u)?(d=vt(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new bl([{name:"value",type:s}],this);l.initData(o,a)},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:xe.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:xe.color.secondary},data:[]},e})(gr),FLe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline.slider",e.defaultOption=_0($Ae.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:xe.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:xe.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:xe.color.tertiary},itemStyle:{color:xe.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:xe.color.accent50,borderColor:xe.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:xe.color.accent50,borderColor:xe.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:xe.color.accent60},itemStyle:{color:xe.color.accent60,borderColor:xe.color.accent60},controlStyle:{color:xe.color.accent70,borderColor:xe.color.accent70}},progress:{lineStyle:{color:xe.color.accent30},itemStyle:{color:xe.color.accent40}},data:[]}),e})($Ae);Da(FLe,_Q.prototype);var KTt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="timeline",e})(Yn),WTt=(function(t){Ee(e,t);function e(r,n,i,a){var o=t.call(this,r,n,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(fd),UG=Math.PI,ZAe=qt(),YTt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){this.api=n},e.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Va("nameValue",{noName:!0,value:c})},ee(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=$Tt(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":et(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][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:UG/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),A=d.get("show",!0),p=A?d.get("itemSize"):0,g=A?d.get("itemGap"):0,m=p+g,y=r.get(["label","rotate"])||0;y=y*UG/180;var b,x,T,B=d.get("position",!0),R=A&&d.get("showPlayBtn",!0),I=A&&d.get("showPrevBtn",!0),N=A&&d.get("showNextBtn",!0),F=0,Q=f;B==="left"||B==="bottom"?(R&&(b=[0,0],F+=m),I&&(x=[F,0],F+=m),N&&(T=[Q-p,0],Q-=m)):(R&&(b=[Q-p,0],Q-=m),I&&(x=[0,0],F+=m),N&&(T=[Q-p,0],Q-=m));var j=[F,Q];return r.get("inverse")&&j.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:b,prevBtnPosition:x,nextBtnPosition:T,axisExtent:j,controlSize:p,controlGa
144p:g}},e.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Si(),l=o.x,u=o.y+o.height;gh(s,s,[-l,-u]),Tg(s,s,-UG/2),gh(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),f=b(i.getBoundingRect()),d=b(a.getBoundingRect()),A=[i.x,i.y],p=[a.x,a.y];p[0]=A[0]=c[0][0];var g=r.labelPosOpt;if(g==null||et(g)){var m=g==="+"?0:1;x(A,f,c,1,m),x(p,d,c,1,1-m)}else{var m=g>=0?0:1;x(A,f,c,1,m),p[1]=A[1]+g}i.setPosition(A),a.setPosition(p),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(T){T.originX=c[0][0]-T.x,T.originY=c[1][0]-T.y}function b(T){return[[T.x,T.x+T.width],[T.y,T.y+T.height]]}function x(T,B,R,I,N){T[I]+=R[I][N]-B[I][N]}},e.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType")||n.get("type");a!=="category"&&a!=="time"&&(a="value");var o=SE(n,a,!1);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),n2e(o,{fixMinMax:[!0,!0]});var l=new WTt("value",o,r.axisExtent,a);return l.model=n,l},e.prototype._createGroup=function(r){var n=this[r]=new xt;return this.group.add(n),n},e.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Ca({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Fe({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ca({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ct({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],ee(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),A=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:ot(o._changeTimeline,o,u.value)},m=XAe(f,d,n,g);m.ensureState("emphasis").style=A.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Ny(m);var y=It(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],ee(u,function(c){if(!c.tick.offInterval){var f=c.tick.value,d=l.getItemModel(f),A=d.getModel("label"),p=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),m=i.dataToCoord(f),y=new Nr({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:ot(o._changeTimeline,o,f),silent:!1,style:Gn(A,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=Gn(p),y.ensureState("progress").style=Gn(g),n.add(y),Ny(y),ZAe(y).dataIndex=f,o._tickLabels.push(y)}})}},e.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ot(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ot(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ot(this._handlePlayClick,this,!c),!0);function d(A,p,g,m){if(A){var y=np(ft(a.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],x=ZTt(a,p+"Icon",b,{x:A[0],y:A[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=u,n.add(x),Ny(x)}}},e.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ot(u._handlePointerDrag,u),f.ondragend=ot(u._handlePointerDragend,u),qAe(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){qAe(f,u._progressLine,s,i,a)}};this._currentPointer=XAe(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},e.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},e.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=qo(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[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;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(r){var n=this._mainGroup.getL
144ocalTransform();return dh(r,n,!0)},e.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},e.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",ZAe(i[a]).dataIndex<=r)},e.type="timeline.slider",e})(KTt);function $Tt(t,e){return gi(t.getBoxLayoutParams(),uo(t,e).refContainer,t.get("padding"))}function ZTt(t,e,r,n){var i=n.style,a=vE(t.get(["controlStyle",e]),n||{},new St(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function XAe(t,e,r,n,i,a){var o=e.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=t.get("symbol");i=Ba(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),n=Xt({rectHover:!0,z2:100},n,!0);var u=bE(t.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Lx(t.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=t.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function qAe(t,e,r,n,i,a){if(!t.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function XTt(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,r,n){var i=r.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ct({currentIndex:i.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,r){var n=r.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function qTt(t){var e=t&&t.timeline;je(e)||(e=e?[e]:[]),ee(e,function(r){r&&JTt(r)})}function JTt(t){var e=t.type,r={number:"value",time:"time"};if(r[e]&&(t.axisType=r[e],delete t.type),JAe(t),F_(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});F_(n,"position")||(n.position=t.controlPosition),n.position==="none"&&!F_(n,"show")&&(n.show=!1,delete n.position),delete t.controlPosition}ee(t.data||[],function(i){Tt(i)&&!je(i)&&(!F_(i,"value")&&F_(i,"name")&&(i.value=i.name),JAe(i))})}function JAe(t){var e=t.itemStyle||(t.itemStyle={}),r=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};ee(n,function(o,s){!a[s]&&!F_(i,s)&&(i[s]=o)}),r.label&&!F_(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function F_(t,e){return t.hasOwnProperty(e)}function eEt(t){t.registerComponentModel(FLe),t.registerComponentView(YTt),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),XTt(t),t.registerPreprocessor(qTt)}function jee(t,e){if(!t)return!1;for(var r=je(t)?t:[t],n=0;n<r.length;n++)if(r[n]&&r[n][e])return!0;return!1}function SF(t){Ub(t,"label",["show"])}var CF=qt(),fp=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Dr.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},e.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=CF(s)[o];if(!l||!l.data){CF(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&SF(l),ee(l.data,function(c){c instanceof Array?(SF(c[0]),SF(c[1])):SF(c)}),u=this.createMarkerModelFromSeries(l,this,n),Fe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),CF(s)[o]=u},this)},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Va("section",{header:this.name,blocks:[Va("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,n){var i=_Q.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},e.getMarkerModelFromSeries=function(r,n){return CF(r)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(gr);Da(fp,_Q.prototype);var tEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,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})(fp);function jY(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function rEt(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function TF(t,e,r,n,i,a,o){var s=[],l=gg(e,i),u=l?e.getCalculationInfo("stackResultDimension"):i,c=EH(e,u,t),f=e.hostModel,d=f.indicesOfNearest(r,u,c)[0];s[a]=e.get(n,d),s[o]=e.get(u,d);var A=e.get(i,d),p=PA(e.get(i,d));return p=Math.min(p,20),p>=0&&(s[o]=+s[o].toFixed(p)),[s,A]}var EF={min:lr(TF,"min"),max:lr(TF,"max"),average:lr(TF,"average"),median:lr(TF,"median")};function QR(t,e){if(e){var r=t.getData(),n=t.coordinateSystem,i=n&&n.dimensions;
144if(!rEt(e)&&!je(e.coord)&&je(i)){var a=ULe(e,r,n,t);if(e=vt(e),e.type&&EF[e.type]&&a.baseAxis&&a.valueAxis){var o=zt(i,a.baseAxis.dim),s=zt(i,a.valueAxis.dim),l=EF[e.type](r,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,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||!je(i)){e.coord=[];var u=t.getBaseAxis();if(u&&e.type&&EF[e.type]){var c=n.getOtherAxis(u);c&&(e.value=EH(r,r.mapDimension(c.dim),e.type))}}else for(var f=e.coord,d=0;d<2;d++)EF[f[d]]&&(f[d]=EH(r,r.mapDimension(i[d]),f[d]));return e}}function ULe(t,e,r,n){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=r.getAxis(nEt(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function nEt(t,e){var r=t.getData().getDimensionInfo(e);return r&&r.coordDim}function jR(t,e){return t&&t.containData&&e.coord&&!jY(e)?t.containData(e.coord):!0}function iEt(t,e,r){return t&&t.containZone&&e.coord&&r.coord&&!jY(e)&&!jY(r)?t.containZone(e.coord,r.coord):!0}function HLe(t,e){return t?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Fy(o,e[a])}:function(r,n,i,a){return Fy(r.value,e[a])}}function EH(t,e,r){if(r==="average"){var n=0,i=0;return t.each(e,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?t.getMedian(e):t.getDataExtent(e)[r==="max"?1:0]}var HG=qt(),zee=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=st()},e.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){HG(s).keep=!1}),n.eachSeries(function(s){var l=fp.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!HG(s).keep&&a.group.remove(s.group)}),aEt(n,o,this.type)},e.prototype.markKeep=function(r){HG(r).keep=!0},e.prototype.toggleBlurSeries=function(r,n){var i=this;ee(r,function(a){var o=fp.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?hTe(l):bq(l))})}})},e.type="marker",e})(Yn);function aEt(t,e,r){t.eachSeries(function(n){var i=fp.getMarkerModelFromSeries(n,r),a=e.get(n.id);if(i&&a&&a.group){var o=Gb(i),s=o.z,l=o.zlevel;vQ(a.group,s,l)}})}function epe(t,e,r){var n=e.coordinateSystem,i=r.getWidth(),a=r.getHeight(),o=n&&n.getArea&&n.getArea();t.each(function(s){var l=t.getItemModel(s),u=l.get("relativeTo")==="coordinate",c=u?o?o.width:0:i,f=u?o?o.height:0:a,d=u&&o?o.x:0,A=u&&o?o.y:0,p,g=it(l.get("x"),c)+d,m=it(l.get("y"),f)+A;if(!isNaN(g)&&!isNaN(m))p=[g,m];else if(e.getMarkerPosition)p=e.getMarkerPosition(t.getValues(t.dimensions,s));else if(n){var y=t.get(n.dimensions[0],s),b=t.get(n.dimensions[1],s);p=n.dataToPoint([y,b])}isNaN(g)||(p[0]=g),isNaN(m)||(p[1]=m),t.setItemLayout(s,p)})}var oEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=fp.getMarkerModelFromSeries(a,"markPoint");o&&(epe(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new GI),f=sEt(o,r,n);n.setData(f),epe(n.getData(),r,a),f.each(function(d){var A=f.getItemModel(d),p=A.getShallow("symbol"),g=A.getShallow("symbolSize"),m=A.getShallow("symbolRotate"),y=A.getShallow("symbolOffset"),b=A.getShallow("symbolKeepAspect");if(mt(p)||mt(g)||mt(m)||mt(y)){var x=n.getRawValue(d),T=n.getDataParams(d);mt(p)&&(p=p(x,T)),mt(g)&&(g=g(x,T)),mt(m)&&(m=m(x,T)),mt(y)&&(y=y(x,T))}var B=A.getModel("itemStyle").getItemStyle(),R=A.get("z2"),I=UI(l,"color");B.fill||(B.fill=I),f.setItemVisual(d,{z2:ft(R,0),symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:B})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(A){It(A).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markPoint",e})(zee);function sEt(t,e,r){var n;t?n=ze(t&&t.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return Fe(Fe({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new bl(n,r),a=ze(r.get("data"),lr(QR,e));t&&(a=ln(a,lr(jR,t)));var o=HLe(!!t,n);return i.initData(a,null,o),i}function lEt(t){t.registerComponentModel(tEt),t.registerComponentView(oEt),t.registerPreprocessor(function(e){jee(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var uEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,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})(fp),BF=qt(),cEt=function(t,e,r,n){var i=t.getData(),a;if(je(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=gl(n.yAxis,n.xAxis);else{var u=ULe(n,i,e,t);s=u.valueAxis;var c=gJ(i,u.valueDataDim);l=EH(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,A=vt(n),p={coord:[]};A.type=null,A.coord=[],A.coord[d]=-1/0,p.coord[d]=1/0;var g=r.get("precision");g>=0&&Hr(l)&&(l=+l.toFixed(Math.min(g,20))),A.coord[f]=p.coord[f]=l,a=[A,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[QR(t,a[0]),QR(t,a[1]),Fe({},a[2])];return m[2].type=m[2].type||null,Xt(m[2],m[0]),Xt(m[2],m[1]),m};function BH(t){return!isNaN(t)&&!isFinite(t)}
144function tpe(t,e,r,n){var i=1-t,a=n.dimensions[t];return BH(e[i])&&BH(r[i])&&e[t]===r[t]&&n.getAxis(a).containData(e[t])}function fEt(t,e){if(t.type==="cartesian2d"){var r=e[0].coord,n=e[1].coord;if(r&&n&&(tpe(1,r,n,t)||tpe(0,r,n,t)))return!0}return jR(t,e[0])&&jR(t,e[1])}function QG(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=it(o.get("x"),i.getWidth()),u=it(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,f=t.get(c[0],e),d=t.get(c[1],e);s=a.dataToPoint([f,d])}if(qb(a,"cartesian2d")){var A=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;BH(t.get(c[0],e))?s[0]=A.toGlobalCoord(A.getExtent()[r?0:1]):BH(t.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var dEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=fp.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=BF(o).from,u=BF(o).to;l.each(function(c){QG(l,c,!0,a,i),QG(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new see);this.group.add(c.group);var f=hEt(o,r,n),d=f.from,A=f.to,p=f.line;BF(n).from=d,BF(n).to=A,n.setData(p);var g=n.get("symbol"),m=n.get("symbolSize"),y=n.get("symbolRotate"),b=n.get("symbolOffset");je(g)||(g=[g,g]),je(m)||(m=[m,m]),je(y)||(y=[y,y]),je(b)||(b=[b,b]),f.from.each(function(T){x(d,T,!0),x(A,T,!1)}),p.each(function(T){var B=p.getItemModel(T),R=B.getModel("lineStyle").getLineStyle();p.setItemLayout(T,[d.getItemLayout(T),A.getItemLayout(T)]);var I=B.get("z2");R.stroke==null&&(R.stroke=d.getItemVisual(T,"style").fill),p.setItemVisual(T,{z2:ft(I,0),fromSymbolKeepAspect:d.getItemVisual(T,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(T,"symbolOffset"),fromSymbolRotate:d.getItemVisual(T,"symbolRotate"),fromSymbolSize:d.getItemVisual(T,"symbolSize"),fromSymbol:d.getItemVisual(T,"symbol"),toSymbolKeepAspect:A.getItemVisual(T,"symbolKeepAspect"),toSymbolOffset:A.getItemVisual(T,"symbolOffset"),toSymbolRotate:A.getItemVisual(T,"symbolRotate"),toSymbolSize:A.getItemVisual(T,"symbolSize"),toSymbol:A.getItemVisual(T,"symbol"),style:R})}),c.updateData(p),f.line.eachItemGraphicEl(function(T){It(T).dataModel=n,T.traverse(function(B){It(B).dataModel=n})});function x(T,B,R){var I=T.getItemModel(B);QG(T,B,R,r,a);var N=I.getModel("itemStyle").getItemStyle();N.fill==null&&(N.fill=UI(l,"color")),T.setItemVisual(B,{symbolKeepAspect:I.get("symbolKeepAspect"),symbolOffset:ft(I.get("symbolOffset",!0),b[R?0:1]),symbolRotate:ft(I.get("symbolRotate",!0),y[R?0:1]),symbolSize:ft(I.get("symbolSize"),m[R?0:1]),symbol:ft(I.get("symbol",!0),g[R?0:1]),style:N})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},e.type="markLine",e})(zee);function hEt(t,e,r){var n;t?n=ze(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Fe(Fe({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new bl(n,r),a=new bl(n,r),o=new bl([],r),s=ze(r.get("data"),lr(cEt,e,t,r));t&&(s=ln(s,lr(fEt,t)));var l=HLe(!!t,n);return i.initData(ze(s,function(u){return u[0]}),null,l),a.initData(ze(s,function(u){return u[1]}),null,l),o.initData(ze(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function AEt(t){t.registerComponentModel(uEt),t.registerComponentView(dEt),t.registerPreprocessor(function(e){jee(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var pEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,n,i){return new e(r,n,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})(fp),DF=qt(),vEt=function(t,e,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=QR(t,i),s=QR(t,a),l=o.coord,u=s.coord;l[0]=gl(l[0],-1/0),l[1]=gl(l[1],-1/0),u[0]=gl(u[0],1/0),u[1]=gl(u[1],1/0);var c=Z5([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function DH(t){return!isNaN(t)&&!isFinite(t)}
144function rpe(t,e,r,n){var i=1-t;return DH(e[i])&&DH(r[i])}function gEt(t,e){var r=e.coord[0],n=e.coord[1],i={coord:r,x:e.x0,y:e.y0},a={coord:n,x:e.x1,y:e.y1};return qb(t,"cartesian2d")?r&&n&&(rpe(1,r,n)||rpe(0,r,n))?!0:iEt(t,i,a):jR(t,i)||jR(t,a)}function npe(t,e,r,n,i){var a=n.coordinateSystem,o=t.getItemModel(e),s,l=it(o.get(r[0]),i.getWidth()),u=it(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),d=a.clampData(c),A=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>A[0]?f[0]:c[0]:p[0]=d[0]>A[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>A[1]?f[1]:c[1]:p[1]=d[1]>A[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var g=t.get(r[0],e),m=t.get(r[1],e),y=[g,m];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(qb(a,"cartesian2d")){var b=a.getAxis("x"),x=a.getAxis("y"),g=t.get(r[0],e),m=t.get(r[1],e);DH(g)?s[0]=b.toGlobalCoord(b.getExtent()[r[0]==="x0"?0:1]):DH(m)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var ipe=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=fp.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ze(ipe,function(f){return npe(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new xt});this.group.add(c.group),this.markKeep(c);var f=yEt(o,r,n);n.setData(f),f.each(function(d){var A=ze(ipe,function(Q){return npe(f,d,Q,r,a)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];qo(b),qo(x);var T=!(m[0]>b[1]||m[1]<b[0]||y[0]>x[1]||y[1]<x[0]),B=!T;f.setItemLayout(d,{points:A,allClipped:B});var R=f.getItemModel(d),I=R.getModel("itemStyle").getItemStyle(),N=R.get("z2"),F=UI(l,"color");I.fill||(I.fill=F,et(I.fill)&&(I.fill=iR(I.fill,.4))),I.stroke||(I.stroke=F),f.setItemVisual(d,"style",I),f.setItemVisual(d,"z2",ft(N,0))}),f.diff(DF(c).data).add(function(d){var A=f.getItemLayout(d),p=f.getItemVisual(d,"z2");if(!A.allClipped){var g=new Ns({z2:ft(p,0),shape:{points:A.points}});f.setItemGraphicEl(d,g),c.group.add(g)}}).update(function(d,A){var p=DF(c).data.getItemGraphicEl(A),g=f.getItemLayout(d),m=f.getItemVisual(d,"z2");g.allClipped?p&&c.group.remove(p):(p?Wr(p,{z2:ft(m,0),shape:{points:g.points}},n,d):p=new Ns({shape:{points:g.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var A=DF(c).data.getItemGraphicEl(d);c.group.remove(A)}).execute(),f.eachItemGraphicEl(function(d,A){var p=f.getItemModel(A),g=f.getItemVisual(A,"style");d.useStyle(f.getItemVisual(A,"style")),Do(d,so(p),{labelFetcher:n,labelDataIndex:A,defaultText:f.getName(A)||"",inheritColor:et(g.fill)?iR(g.fill,1):xe.color.neutral99}),oo(d,p),Ti(d,null,null,p.get(["emphasis","disabled"])),It(d).dataModel=n}),DF(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},e.type="markArea",e})(zee);function yEt(t,e,r){var n,i,a=["x0","y0","x1","y1"];if(t){var o=ze(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Fe(Fe({},f),{name:u,ordinalMeta:null})});i=ze(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new bl(i,r)}else i=[{name:"value",type:"float"}],n=new bl(i,r);var s=ze(r.get("data"),lr(vEt,e,t,r));t&&(s=ln(s,lr(gEt,t)));var l=t?function(u,c,f,d){var A=u.coord[Math.floor(d/2)][d%2];return Fy(A,i[d])}:function(u,c,f,d){return Fy(u.value,i[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function wEt(t){t.registerComponentModel(pEt),t.registerComponentView(mEt),t.registerPreprocessor(function(e){jee(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var _Et=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"])}},zY=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),je(n)&&ee(n,function(a,o){et(a)&&(a={type:a}),n[o]=Xt(a,_Et(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();
144r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&dq(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=st(),s=ze(a,function(l){return(et(l)||Hr(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new wr(l,this,this.ecModel))},this);this._data=ln(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;ee(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;ee(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;ee(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&zt(this._availableNames,r)>=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",bottom:xe.size.m,align:"auto",backgroundColor:xe.color.transparent,borderColor:xe.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:xe.color.disabled,inactiveBorderColor:xe.color.disabled,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:xe.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
144Limit:"inherit"},textStyle:{color:xe.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:xe.color.tertiary,borderWidth:1,borderColor:xe.color.border},emphasis:{selectorLabel:{show:!0,color:xe.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(gr),qS=lr,VY=ee,MF=xt,QLe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new MF),this.group.add(this._selectorGroup=new MF),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=uo(r,i).refContainer,f=r.getBoxLayoutParams(),d=r.get("padding"),A=gi(f,c,d),p=this.layoutInner(r,o,A,a,l,u),g=gi(Ct({width:p.width,height:p.height},f),c,d);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=DLe(p,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=st(),f=n.get("selectedMode"),d=n.get("triggerEvent"),A=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&A.push(p.id)}),VY(n.getData(),function(p,g){var m=this,y=p.get("name");if(!this.newlineDisabled&&(y===""||y===`
145`)){var b=new MF;b.newline=!0,u.add(b);return}var x=i.getSeriesByName(y)[0];if(!c.get(y))if(x){var T=x.getData(),B=T.getVisual("legendLineStyle")||{},R=T.getVisual("legendIcon"),I=T.getVisual("style"),N=this._createItem(x,y,g,p,n,r,B,I,R,f,a);N.on("click",qS(ape,y,null,a,A)).on("mouseover",qS(GY,x.name,null,a,A)).on("mouseout",qS(KY,x.name,null,a,A)),i.ssr&&N.eachChild(function(F){var Q=It(F);Q.seriesIndex=x.seriesIndex,Q.dataIndex=g,Q.ssrType="legend"}),d&&N.eachChild(function(F){m.packEventData(F,n,x,g,y)}),c.set(y,!0)}else i.eachRawSeries(function(F){var Q=this;if(!c.get(y)&&F.legendVisualProvider){var j=F.legendVisualProvider;if(!j.containName(y))return;var W=j.indexOfName(y),V=j.getItemVisual(W,"style"),Y=j.getItemVisual(W,"legendIcon"),G=_l(V.fill);G&&G[3]===0&&(G[3]=.2,V=Fe(Fe({},V),{fill:Yf(G,"rgba")}));var K=this._createItem(F,y,g,p,n,r,{},V,Y,f,a);K.on("click",qS(ape,null,y,a,A)).on("mouseover",qS(GY,null,y,a,A)).on("mouseout",qS(KY,null,y,a,A)),i.ssr&&K.eachChild(function(X){var q=It(X);q.seriesIndex=F.seriesIndex,q.dataIndex=g,q.ssrType="legend"}),d&&K.eachChild(function(X){Q.packEventData(X,n,F,g,y)}),c.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};It(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();VY(r,function(u){var c=u.type,f=new Nr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var d=n.getModel("selectorLabel"),A=n.getModel(["emphasis","selectorLabel"]);Do(f,{normal:d,emphasis:A},{defaultText:u.title}),Ny(f)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var A=r.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(n),y=a.get("symbolRotate"),b=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var T=bEt(c,a,l,u,A,m,d),B=new MF,R=a.getModel("textStyle");if(mt(r.getLegendIcon)&&(!x||x==="inherit"))B.add(r.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:b}));else{var I=x==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;B.add(xEt({itemWidth:p,itemHeight:g,icon:c,iconRotate:I,itemStyle:T.itemStyle,symbolKeepAspect:b}))}var N=s==="left"?p+5:-5,F=s,Q=o.get("formatter"),j=n;et(Q)&&Q?j=Q.replace("{name}",n??""):mt(Q)&&(j=Q(n));var W=m?R.getTextColor():a.get("inactiveColor");B.add(new Nr({style:Gn(R,{text:j,x:N,y:g/2,fill:W,align:F,verticalAlign:"middle"},{inheritColor:W})}));
145var V=new fr({shape:B.getBoundingRect(),style:{fill:"transparent"}}),Y=a.getModel("tooltip");return Y.get("show")&&Bg({el:V,componentModel:o,itemName:n,itemTooltipOption:Y.option}),B.add(V),B.eachChild(function(G){G.silent=!0}),V.silent=!f,this.getContentGroup().add(B),Ny(B),B.__legendDataIndex=i,B},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();mb(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){mb("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),A=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),g=r.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?A[g]+=c[m]+p:f[g]+=d[m]+p,A[1-g]+=c[y]/2-d[y]/2,u.x=A[0],u.y=A[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[m]=c[m]+p+d[m],x[y]=Math.max(c[y],d[y]),x[b]=Math.min(0,d[b]+A[1-g]),x}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})(Yn);function bEt(t,e,r,n,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),VY(m,function(b,x){m[x]==="inherit"&&(m[x]=y[x])})}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"?n.decal:CT(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=e.getModel("lineStyle"),A=d.getLineStyle();if(s(A,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),A.stroke==="auto"&&(A.stroke=n.fill),!a){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),A.stroke=d.get("inactiveColor"),A.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:A}}function xEt(t){var e=t.icon||"roundRect",r=Ba(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=xe.color.neutral00,r.style.lineWidth=2),r}function ape(t,e,r,n){KY(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),GY(t,e,r,n)}function GY(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function KY(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function XD(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),ope(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){ee(i,function(l,u){s[l?"select":"unSelect"](u)}),ope(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function ope(t,e){var r=e||{};return ee(t.getData(),function(n){var i=n.get("name");if(!(i===`
146`||i==="")){var a=t.isSelected(i);ut(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function SEt(t){t.registerAction("legendToggleSelect","legendselectchanged",lr(XD,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",lr(XD,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",lr(XD,"inverseSelect")),t.registerAction("legendSelect","legendselected",lr(XD,"select")),t.registerAction("legendUnSelect","legendunselected",lr(XD,"unSelect"))}var CEt=LI(TEt);function TEt(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function jLe(t){t.registerComponentModel(zY),t.registerComponentView(QLe),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,CEt),t.registerSubTypeDefaulter("legend",function(){return"plain"}),SEt(t)}var EEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Dx(r);t.prototype.init.call(this,r,n,i),spe(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),spe(this,this.option,r)},e.type="legend.scroll",e.defaultOption=_0(zY.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:xe.color.accent50,pageIconInactiveColor:xe.color.accent10,pageIconSize:15,pageTextStyle:{color:xe.color.tert
146iary},animationDurationUpdate:800}),e})(zY);function spe(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,lp(e,r,{type:"box",ignoreSize:!!i})}var lpe=xt,jG=["width","height"],zG=["x","y"],BEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new lpe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new lpe)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=je(f)?f:[f,f];p("pagePrev",0);var A=n.getModel("pageTextStyle");c.add(new Nr({name:"pageText",style:{text:"xx/xx",fill:A.getTextColor(),font:A.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,m){var y=g+"DataIndex",b=vE(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:ot(u._pageGo,u,y,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=g,c.add(b)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=jG[u],f=zG[u],d=jG[1-u],A=zG[1-u];o&&mb("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),m=[-g.x,-g.y],y=vt(i);o&&(y[c]=i[c]-g[c]-p);var b=this._layoutContentAndController(r,a,y,u,c,d,A,f);if(o){if(s==="end")m[u]+=b[c]+p;else{var x=g[c]+p;m[u]-=x,b[f]-=x}b[c]+=g[c]+p,m[1-u]+=b[A]+b[d]/2-g[d]/2,b[d]=Math.max(b[d],g[d]),b[A]=Math.min(b[A],g[A]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return b},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;mb(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),mb("horizontal",d,r.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),p=d.getBoundingRect(),g=this._showController=A[o]>i[o],m=[-A.x,-A.y];n||(m[a]=c[u]);var y=[0,0],b=[-p.x,-p.y],x=ft(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var T=r.get("pageButtonPosition",!0);T==="end"?b[a]+=i[o]-p[o]:y[a]+=p[o]+x}b[1-a]+=A[s]/2-p[s]/2,c.setPosition(m),f.setPosition(y),d.setPosition(b);var B={x:0,y:0};if(B[o]=g?i[o]:A[o],B[s]=Math.max(A[s],p[s]),B[l]=Math.min(0,p[l]+b[1-a]),f.__rectSize=i[o],g){var R={x:0,y:0};R[o]=Math.max(i[o]-p[o]-x,0),R[s]=B[s],f.setClipPath(new fr({shape:R})),f.__rectSize=R[o]}else d.eachChild(function(N){N.attr({invisible:!0,silent:!0})});var I=this._getPageInfo(r);return I.pageIndex!=null&&Wr(c,{x:I.contentPosition[0],y:I.contentPosition[1]},g?r:null),this._updatePageInfoView(r,I),B},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;ee(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,A=i.childOfName(c);A&&(A.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),A.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",et(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=jG[o],l=zG[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,A=d?1:0,p={contentPosition:[i.x,i.y],pageCount:A,pageIndex:A-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var g=T(f);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,x=null;m<=d;++m)x=T(c[m]),(!x&&b.e>y.s+a||x&&!B(x,y.s))&&(b.i>y.i?y=b:y=x,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=x;for(var m=u-1,y=g,b=g,x=null;m>=-1;--m)x=T(c[m]),(!x||!B(b,x.s))&&y.i<b.i&&(b=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=x;return p;
146function T(R){if(R){var I=R.getBoundingRect(),N=I[l]+R[l];return{s:N,e:N+I[s],i:R.__legendDataIndex}}}function B(R,I){return R.e>=I&&R.s<=I+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(QLe);function DEt(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function MEt(t){ir(jLe),t.registerComponentModel(EEt),t.registerComponentView(BEt),DEt(t)}function LEt(t){ir(jLe),ir(MEt)}var REt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=_0(HR.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(HR),Vee=qt();function IEt(t,e,r){Vee(t).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)})}function OEt(t,e){for(var r=Vee(t).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||zLe(r,o))}}}function zLe(t,e){if(e){t.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function PEt(t,e){var r={model:e,containsPoint:lr(NEt,e),dispatchAction:lr(kEt,t),dataZoomInfoMap:null,controller:null},n=r.controller=new Ox(t.getZr());return ee(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function kEt(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function NEt(t,e,r,n){return t.coordinateSystem.containPoint([r,n])}function FEt(t,e,r){var n,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return t.each(function(u){var c=u.model,f=c.get("disabled",!0)?!1:c.get("zoomLock",!0)?"move":!0;a[i+f]>a[i+n]&&(n=f),o=o&&c.get("preventDefaultMouseMove",!0),s=ft(c.get("cursorGrab",!0),s),l=ft(c.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:r,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function UEt(t){t.registerUpdateLifecycle("coordsys:aftercreate",function(e,r){var n=Vee(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=st());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=SLe(a);ee(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,PEt(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=st());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){zLe(i,a);return}var c=FEt(l,a,r);o.enable(c.controlType,c.opt),wE(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var HEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,n,i){if(t.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),IEt(i,r,{pan:ot(VG.pan,this),zoom:ot(VG.zoom,this),scrollMove:ot(VG.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){OEt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(kee),VG={zoom:function(t,e,r,n){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=GG[e](null,[n.originX,n.originY],o,r,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
146if(o0(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:upe(function(t,e,r,n,i,a){var o=GG[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,r);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:upe(function(t,e,r,n,i,a){var o=GG[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,r);return o.signal*(t[1]-t[0])*a.scrollDelta})};function upe(t){return function(e,r,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,r,n,i);if(o0(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var GG={grid:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),r.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function VLe(t){Nee(t),t.registerComponentModel(REt),t.registerComponentView(HEt),UEt(t)}var QEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=_0(HR.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:xe.color.accent10,borderRadius:0,backgroundColor:xe.color.transparent,dataBackground:{lineStyle:{color:xe.color.accent30,width:.5},areaStyle:{color:xe.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:xe.color.accent40,width:.5},areaStyle:{color:xe.color.accent20,opacity:.3}},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:xe.color.neutral00,borderColor:xe.color.accent20},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:xe.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:xe.color.tertiary},brushSelect:!0,brushStyle:{color:xe.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:xe.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(HR),qD=fr,jEt=1,KG=30,zEt=7,JD="horizontal",cpe="vertical",VEt=5,GEt=["line","bar","candlestick","scatter"],KEt={easing:"cubicOut",duration:100,delay:0},WEt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,n){this.api=n,this._onBrush=ot(this._onBrush,this),this._onBrushEnd=ot(this._onBrushEnd,this)},e.prototype.render=function(r,n,i,a){if(t.prototype.render.apply(this,arguments),wE(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){vR(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new xt;
146this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?zEt:0,o=uo(r,n).refContainer,s=this._findCoordRect(),l=r.get("defaultLocationEdgeGap",!0)||0,u=this._orient===JD?{right:o.width-s.x-s.width,top:o.height-KG-l-a,width:s.width,height:KG}:{right:l,top:s.y,width:KG,height:s.height},c=Dx(r.option);ee(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=u[d])});var f=gi(c,o);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===cpe&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===JD&&!o?{scaleY:l?1:-1,scaleX:1}:i===JD&&o?{scaleY:l?1:-1,scaleX:-1}:i===cpe&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]),c=isNaN(u.x)?0:u.x,f=isNaN(u.y)?0:u.y;r.x=n.x-c,r.y=n.y-f,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new qD({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new qD({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ot(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(r.thisDim),d=o.getDataExtent(l),A=(d[1]-d[0])*.3;d=[d[0]-A,d[1]+A];var p=[0,n[1]],g=[0,n[0]],m=[[n[0],0],[0,0]],y=[],b=g[1]/Math.max(1,o.count()-1),x=n[0]/(f[1]-f[0]),T=r.thisAxis.type==="time",B=-b,R=Math.round(o.count()/n[0]),I;o.each([r.thisDim,l],function(W,V,Y){if(R>0&&Y%R){T||(B+=b);return}B=T?(+W-f[0])*x:B+b;var G=V==null||isNaN(V)||V==="",K=G?0:Jr(V,d,p,!0);G&&!I&&Y?(m.push([m[m.length-1][0],0]),y.push([y[y.length-1][0],0])):!G&&I&&(m.push([B,0]),y.push([B,0])),G||(m.push([B,K]),y.push([B,K])),I=G}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var N=this.dataZoomModel;function F(W){var V=N.getModel(W?"selectedDataBackground":"dataBackground"),Y=new xt,G=new Ns({shape:{points:u},segmentIgnoreThreshold:1,style:V.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),K=new es({shape:{points:c},segmentIgnoreThreshold:1,style:V.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Y.add(G),Y.add(K),Y}for(var Q=0;Q<3;Q++){var j=F(Q===1);this._displayables.sliderGroup.add(j),this._displayables.dataShadowSegs.push(j)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();ee(l,function(u){if(!i&&!(n!==!0&&zt(GEt,u.get("type"))<0)){var c=a.getComponent(Ty(o),s).axis,f=YEt(o),d,A=u.coordinateSystem;f!=null&&A.getOtherAxis&&(d=A.getOtherAxis(c).inverse),f=u.getData().mapDimension(f);var p=u.getData().mapDimension(o);i={thisAxis:c,series:u,thisDim:p,otherDim:f,otherAxisInverse:d}}},this)},this),i}},e.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new qD({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new qD({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c}
146,style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:jEt,fill:xe.color.transparent}})),ee([0,1],function(x){var T=l.get("handleIcon");!U3[T]&&T.indexOf("path://")<0&&T.indexOf("image://")<0&&(T="path://"+T);var B=Ba(T,-1,0,2,2,null,!0);B.attr({cursor:$Et(this._orient),draggable:!0,drift:ot(this._onDragMove,this,x),ondragend:ot(this._onDragEnd,this),onmouseover:ot(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ot(this._onOverDataInfoTriggerArea,this,!1),z2:5});var R=B.getBoundingRect(),I=l.get("handleSize");this._handleHeight=it(I,this._size[1]),this._handleWidth=R.width/R.height*this._handleHeight,B.setStyle(l.getModel("handleStyle").getItemStyle()),B.style.strokeNoScale=!0,B.rectHover=!0,B.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ny(B);var N=l.get("handleColor");N!=null&&(B.style.fill=N),o.add(i[x]=B);var F=l.getModel("textStyle"),Q=l.get("handleLabel")||{},j=Q.show||!1;r.add(a[x]=new Nr({silent:!0,invisible:!j,style:Gn(F,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:F.getTextColor(),font:F.getFont()}),z2:10}))},this);var A=d;if(f){var p=it(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new fr({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=n.moveHandleIcon=Ba(l.get("moveHandleIcon"),-m/2,-m/2,m,m,xe.color.neutral00,!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));A=n.moveZone=new fr({invisible:!0,shape:{y:s[1]-b,height:p+b}}),A.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(A)}A.attr({draggable:!0,cursor:"grab",drift:ot(this._onActualMoveZoneDrift,this),ondragstart:ot(this._onActualMoveZoneDragStart,this),ondragend:ot(this._onActualMoveZoneDragEnd,this),onmouseover:ot(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ot(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Jr(r[0],[0,100],n,!0),Jr(r[1],[0,100],n,!0)]},e.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];o0(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Jr(s.minSpan,l,o,!0):null,s.maxSpan!=null?Jr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=qo([Jr(a[0],o,l,!0),Jr(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=qo(i.slice()),o=this._size;ee([0,1],function(A){var p=n.handles[A],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:i[A]+(A?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new fr,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},e.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var c=this._range,f;if(r){var d={start:c[0],end:c[1]},A=TLe(n,l);if(A){var p=A.calculateDataWindow(d).percentInverted;d={start:p[0],end:p[1]}}f=l.calculateDataWindow(d)}else f=l.getWindow();s=[fpe(n,0,f,u),fpe(n,1,f,u)]}}var g=qo(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(y){var b=gb(i.handles[y].parent,this.group),x=pQ(y===0?"right":"left",b),T=this._handleWidth/2+VEt,B=dh([g[y]+(y===0?-T:T),this._size[1]/2],b);a[y].setStyle({x:B[0],y:B[1],verticalAlign:o===JD?"middle":x,align:o===JD?x:"center",text:s[y]})}},e.prototype._onOverDataInfoTriggerArea=function(r){this._isOverDataInfoTriggerArea=r,this._showDataInfo(r)},e.prototype._showDataInfo=function(r){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=r||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(r,n,i){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",r,n,i)},e.prototype._onActualMoveZoneDragStart=function(r){r.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(r){r.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,fg(a.event);
146var o=this._displayables.sliderGroup.getLocalTransform(),s=dh([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Lt(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[i.x,i.x+i.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();o0(0,l,o,0,u.minSpan!=null?Jr(u.minSpan,s,o,!0):null,u.maxSpan!=null?Jr(u.maxSpan,s,o,!0):null),this._range=qo([Jr(l[0],o,s,!0),Jr(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(r){this._brushing&&(fg(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},e.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new qD({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?KEt:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var r,n=SLe(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},e.type="dataZoom.slider",e})(kee);function fpe(t,e,r,n){var i=t.get("labelFormatter"),a=t.get("labelPrecision");(a==null||a==="auto")&&(a=r.valuePrecision);var o=r.value[e],s=o==null||isNaN(o)?"":xl(n)||HI(n)?n.getLabel({value:Math.round(o)}):isFinite(a)?Kr(o,a,!0):o+"";return mt(i)?i(o,s):et(i)?i.replace("{value}",s):s}function YEt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function $Et(t){return t==="vertical"?"ns-resize":"ew-resize"}function GLe(t){t.registerComponentModel(QEt),t.registerComponentView(WEt),Nee(t)}function ZEt(t){ir(VLe),ir(GLe)}var KLe={get:function(t,e,r){var n=vt((XEt[t]||{})[e]);return r&&je(n)?n[n.length-1]:n}},XEt={color:{active:["#006edd","#e0ffff"],inactive:[xe.color.transparent]},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]}},dpe=Bo.mapVisual,qEt=Bo.eachVisual,JEt=je,WG=ee,eBt=qo,tBt=Jr,MH=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.optionUpdated=function(r,n){var i=this.option;!n&&kLe(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var n=this.stateList;r=ot(r,this),this.controllerVisuals=HY(this.option.controller,n,r),this.targetVisuals=HY(this.option.target,n,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this,n=this.option.seriesTargets;if(n){var i=[];return WG(n,function(l){if(l.seriesIndex!=null)i.push(l.seriesIndex);else if(l.seriesId!=null){var u;r.ecModel.eachSeries(function(c){c.id===l.seriesId&&(u=c)}),u&&i.push(u.componentIndex)}}),i}var a=this.option.seriesId,o=this.option.seriesIndex;o==null&&a==null&&(o="all");var s=lE(this.ecModel,"series",{index:o,id:a},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return ze(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(r,n){ee(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},e.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},e.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],je(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(et(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(mt(l))return u?l(r[0],r[1]):l(r);
146if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[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(o,20))}},e.prototype.resetExtent=function(){var r=this.option,n=eBt([r.min,r.max]);this._dataExtent=n},e.prototype.getDimension=function(r){var n=this,i=this.option.seriesTargets;if(i){var a=Cg(i,function(o){return o.seriesIndex!=null&&o.seriesIndex===r||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(r).id});if(a)return a.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(r){var n=r.hostModel.seriesIndex,i=this.getDimension(n);if(i!=null)return r.getDimensionIndex(i);for(var a=r.dimensions,o=a.length-1;o>=0;o--){var s=a[o],l=r.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Xt(a,i),Xt(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){JEt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,A){var p=f[d],g=f[A];p&&!g&&(g=f[A]={},WG(p,function(m,y){if(Bo.isValidType(y)){var b=KLe.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,A=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";WG(this.stateList,function(y){var b=this.itemSize,x=f[y];x||(x=f[y]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&vt(d)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=A&&vt(A)||(s?b[0]:[b[0],b[0]])),x.symbol=dpe(x.symbol,function(R){return R==="none"?m:R});var T=x.symbolSize;if(T!=null){var B=-1/0;qEt(T,function(R){R>B&&(B=R)}),x.symbolSize=dpe(T,function(R){return tBt(R,[0,B],[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(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:xe.color.transparent,borderColor:xe.color.borderTint,contentColor:xe.color.theme[0],inactiveColor:xe.color.disabled,borderWidth:0,padding:xe.size.m,textGap:10,precision:0,textStyle:{color:xe.color.secondary}},e})(gr),hpe=[20,140],rBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,n){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 r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=hpe[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=hpe[1])},e.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):je(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),ee(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),n=qo((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},e.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent(),a=ft(this.option.unboundedRange,!0);return(a&&n[0]<=i[0]||n[0]<=r)&&(a&&n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(r){var n=Ape(this,"outOfRange",this.getExtent()),i=Ape(this,"inRange",this.option.range.slice()),a=[];function o(A,p){a.push({value:A,color:r(A,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=_0(MH.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:xe.color.
146neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:xe.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:xe.color.shadow}}),e})(MH);function Ape(t,e,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var WLe=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,n){this.ecModel=r,this.api=n},e.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},e.prototype.renderBackground=function(r){var n=this.visualMapModel,i=mE(n.get("padding")||0),a=r.getBoundingRect();r.add(new fr({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(A){return s[A]}function c(A,p){s[A]=p}var f=o.controllerVisuals[a||o.getValueState(r)],d=Bo.prepareVisualTypes(f);return ee(d,function(A){var p=f[A];i.convertOpacityToAlpha&&A==="opacity"&&(A="colorAlpha",p=f.__alphaForOpacity),Bo.dependsOn(A,n)&&p&&p.applyVisual(r,u,c)}),s[n]},e.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api,a=uo(n,i).refContainer;yQ(r,n.getBoxLayoutParams(),a)},e.prototype.doRender=function(r,n,i,a){},e.type="visualMap",e})(Yn),ppe=[["left","right","width"],["top","bottom","height"]];function YLe(t,e,r){var n=t.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=ppe[o],l=[0,null,10],u={},c=0;c<3;c++)u[ppe[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=gi(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function t4(t,e){return ee(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var wA=Jr,nBt=ee,vpe=Math.min,YG=Math.max,iBt=12,aBt=6,oBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,n){t.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=ot(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ot(this._hideIndicator,this)},e.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.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,A=this.visualMapModel.textStyleModel;this.group.add(new Nr({style:Gn(A,{x:c[0],y:c[1],verticalAlign:A.get("verticalAlign")||(d==="horizontal"?"middle":f),align:A.get("align")||(d==="horizontal"?f:"center"),text:a})}))}},e.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=YLe(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new xt;u.add(c),c.add(i.outOfRange=gpe()),c.add(i.inRange=gpe(null,s?ype(this._orient):null,ot(this._dragHandle,this,"all",!1),ot(this._dragHandle,this,"all",!0))),c.setClipPath(new fr({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));
146var f=n.textStyleModel.getTextRect("国"),d=YG(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},e.prototype._createHandle=function(r,n,i,a,o,s){var l=ot(this._dragHandle,this,i,!1),u=ot(this._dragHandle,this,i,!0),c=np(r.get("handleSize"),a[0]),f=Ba(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=ype(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){fg(y.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),X_(f,!0),n.add(f);var A=this.visualMapModel.textStyleModel,p=new Nr({cursor:d,draggable:!0,drift:l,onmousemove:function(y){fg(y.event)},ondragend:u,style:Gn(A,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var g=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=g,m.handleLabels[i]=p},e.prototype._createIndicator=function(r,n,i,a,o){var s=np(r.get("indicatorSize"),i[0]),l=Ba(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Mo){var c=l.style;l.useStyle(Fe({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new Nr({silent:!0,invisible:!0,style:Gn(f,{x:0,y:0,text:""})});this.group.add(d);var A=[(o==="horizontal"?a/2:aBt)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=A,this._firstShowIndicator=!0},e.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():mpe(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[wA(n[0],i,a,!0),wA(n[1],i,a,!0)]},e.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];o0(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[wA(a[0],o,s,!0),wA(a[1],o,s,!0)]},e.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Tx(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},e.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new xt(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),c=this._applyTransform("left",i.mainGroup);nBt([0,1],function(f){var d=o[f];d.setStyle("fill",n.handlesColor[f]),d.y=r[f];var A=wA(r[f],[0,l[1]],u,!0),p=this.getControllerVisual(A,"symbolSize");d.scaleX=d.scaleY=p/l[0],d.x=l[0]-p/2;var g=dh(i.handleLabelPoints[f],gb(d,this.group));if(this._orient==="horizontal"){var m=c==="left"||c==="top"?(l[0]-p)/2:(l[0]-p)/-2;g[1]+=m}s[f].setStyle({x:g[0],y:g[1],text:a.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},A=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),g=wA(r,s,u,!0),m=l[0]-p/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var b=dh(c.indicatorLabelPoint,gb(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var T=this._applyTransform("left",c.mainGroup),B=this._orient,R=B==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:R?T:"middle",align:R?"center":T});var I={x:m,y:g,style:{fill:A}},N={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var F={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(I,F),x.animateTo(N,F)}else f.attr(I),x.attr(N);this._firstShowIndicator=!1;var Q=this._shapes.handleLabels;if(Q)for(var j=0;j<Q.length;j++)this.api.enterBlur(Q[j])}},e.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,
146!0);a[1]=vpe(YG(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=vpe(YG(o[0],r),o[1]);var l=sBt(i,s,o),u=[r-l,r+l],c=wA(r,o,s,!0),f=[wA(u[0],o,s,!0),wA(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(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,A=[];(n||mpe(i))&&(A=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=ult(d,A);this._dispatchHighDown("downplay",t4(p[0],i)),this._dispatchHighDown("highlight",t4(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(J_(r.target,function(l){var u=It(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",t4(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,n,i,a){var o=gb(n,a?null:this.group);return je(r)?dh(r,o,i):pQ(r,o,i)},e.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(WLe);function gpe(t,e,r,n){return new Ns({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(i){fg(i.event)},ondragend:n})}function sBt(t,e,r){var n=iBt/2,i=t.get("hoverLinkDataSize");return i&&(n=wA(i,e,r,!0)/2),n}function mpe(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function ype(t){return t==="vertical"?"ns-resize":"ew-resize"}var lBt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},uBt=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})},cBt=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(n){var i=t.pipelineContext;!n.isTargetSeries(t)||i&&i.large||r.push(MTt(n.stateList,n.targetVisuals,ot(n.getValueState,n),n.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(t)){var a=i.getVisualMeta(ot(fBt,null,t,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),t.getData().setVisual("visualMeta",n)}}];function fBt(t,e,r,n){for(var i=e.targetVisuals[n],a=Bo.prepareVisualTypes(i),o={color:UI(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(A){return o[A]}function d(A,p){o[A]=p}}var wpe=ee;function dBt(t){var e=t&&t.visualMap;je(e)||(e=e?[e]:[]),wpe(e,function(r){if(r){JS(r,"splitList")&&!JS(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&je(n)&&wpe(n,function(i){Tt(i)&&(JS(i,"start")&&!JS(i,"min")&&(i.min=i.start),JS(i,"end")&&!JS(i,"max")&&(i.max=i.end))})}})}function JS(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var _pe=!1;function $Le(t){_pe||(_pe=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(lBt,uBt),ee(cBt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(dBt))}function ZLe(t){t.registerComponentModel(rBt),t.registerComponentView(oBt),$Le(t)}var hBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],ABt[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=vt(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ze(this._pieceList,function(l){return l=vt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,n={},i=Bo.listVisualTypes(),a=this.isCategory();ee(r.pieces,function(s){ee(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),ee(n,function(s,l){var u=!1;ee(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&ee(this.stateList,function(c){(r[c]||(r[c]={}))[l]=KLe.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,ee(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;ee(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=vt(r)},e.prototype.getValueState=function(r){var n=Bo.findPieceIndex(r,this._pieceList);
146return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Bo.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var A=r(d,f);c[0]===-1/0?i[0]=A:c[1]===1/0?i[1]=A:n.push({value:c[0],color:A},{value:c[1],color:A})}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 ee(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=_0(MH.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})(MH),ABt={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;e.precision=r,a=+a.toFixed(r),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),lW(t),ee(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;ee(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),bpe(e,t)},pieces:function(t){var e=this.option;ee(e.pieces,function(r,n){Tt(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=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],A=0;A<3&&o[f]==null;A++)o[f]=r[d[A]],s[f]=l[A],c[f]=A===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Bo.retrieveVisuals(r),t.push(i)},this),bpe(e,t),lW(t),ee(t,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function bpe(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}var pBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,c=gl(n.get("showLabel",!0),!u),f=!n.get("selectedMode");u&&this._renderEndsText(r,u[0],s,c,o),ee(l.viewPieceList,function(d){var A=d.piece,p=new xt;p.onclick=ot(this._onItemClick,this,A),this._enableHoverLink(p,d.indexInModelPieceList);var g=n.getRepresentValue(A);if(this._createItemSymbol(p,g,[0,0,s[0],s[1]],f),c){var m=this.visualMapModel.getValueState(g),y=a.get("align")||o;p.add(new Nr({style:Gn(a,{x:y==="right"?-i:s[0]+i,y:s[1]/2,text:A.text,verticalAlign:a.get("verticalAlign")||"middle",align:y,opacity:ft(a.get("opacity"),m==="outOfRange"?.5:1)}),silent:f}))}r.add(p)},this),u&&this._renderEndsText(r,u[1],s,c,o),mb(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:t4(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return YLe(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new xt,l=this.visualMapModel.textStyleModel;s.add(new Nr({style:Gn(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})}
146)),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,n=ze(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(r,n,i,a){var o=Ba(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,r.add(o)},e.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=vt(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,ee(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(WLe);function XLe(t){t.registerComponentModel(hBt),t.registerComponentView(pBt),$Le(t)}function vBt(t){ir(ZLe),ir(XLe)}var gBt=(function(){function t(e){this._thumbnailModel=e}return t.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},t.prototype.renderContent=function(e){var r=e.api.getViewOfComponentModel(this._thumbnailModel);r&&(e.group.silent=!0,r.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:NTe(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},t.prototype.updateWindow=function(e,r){var n=r.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},t})(),mBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return e.prototype.optionUpdated=function(r,n){this._updateBridge()},e.prototype._updateBridge=function(){var r=this._birdge=this._birdge||new gBt(this);if(this._target=null,this.ecModel.eachSeries(function(i){ehe(i,null)}),this.shouldShow()){var n=this.getTarget();ehe(n.baseMapProvider,r)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var r=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return r?r.subType!=="graph"&&(r=null):r=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:r},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:xe.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:xe.color.neutral30,borderColor:xe.color.neutral40,opacity:.3},z:10},e})(gr),yBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this._api=i,this._model=r,this._coordSys||(this._coordSys=new NQ),!this._isEnabled()){this._clear();return}this._renderVersion=i.getECUpdateCycleVersion();var a=this.group;a.removeAll();var o=r.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||xe.color.neutral00);var l=uo(r,i).refContainer,u=gi(lEe(r,!0),l),c=s.lineWidth||0,f=this._contentRect=Vb(u.clone(),c/2,!0,!0),d=new xt;a.add(d),d.setClipPath(new fr({shape:f.plain()}));var A=this._targetGroup=new xt;d.add(A);var p=u.plain();p.r=o.getShallow("borderRadius",!0),a.add(this._bgRect=new fr({style:s,shape:p,silent:!1,cursor:"grab"}));var g=r.getModel("windowStyle"),m=g.getShallow("borderRadius",!0);d.add(this._windowRect=new fr({shape:{x:0,y:0,width:0,height:0,r:m},style:g.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),Spe(r,this)},e.prototype.renderContent=function(r){this._bridgeRendered=r,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),Spe(this._model,this))},e.prototype._dealRenderContent=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=this._targetGroup,i=this._coordSys,a=this._contentRect;
146if(n.removeAll(),!!r){var o=r.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=r.z2Range.min-10,FQ(i,s.x,s.y,s.width,s.height);var l=gi({left:"center",top:"center",aspect:s.width/s.height},a);cH(i,l.x,l.y,l.width,l.height),RR(o,i,ex),o.dirty(),this._windowRect.z2=r.z2Range.max+10,this._resetRoamController(r.roamType)}}},e.prototype.updateWindow=function(r){var n=this._bridgeRendered;n&&n.renderVersion===r.renderVersion&&(n.targetTrans=r.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=jc([],r.targetTrans),i=Fc([],uH(null,this._coordSys),n);this._transThisToTarget=jc([],i);var a=r.viewportRect;a?a=a.clone():a=new St(0,0,this._api.getWidth(),this._api.getHeight()),a.applyTransform(i);var o=this._windowRect,s=o.shape.r;o.setShape(Ct({r:s},a))}},e.prototype._resetRoamController=function(r){var n=this,i=this._api,a=this._roamController;if(a||(a=this._roamController=new Ox(i.getZr())),!r||!this._isEnabled()){a.disable();return}a.enable(r,{api:i,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),a.off("pan").off("zoom").on("pan",ot(this._onPan,this)).on("zoom",ot(this._onZoom,this))},e.prototype._onPan=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var i=Wi([],[r.oldX,r.oldY],n),a=Wi([],[r.oldX-r.dx,r.oldY-r.dy],n);this._api.dispatchAction(xpe(this._model.getTarget().baseMapProvider,{dx:a[0]-i[0],dy:a[1]-i[1]}))}},e.prototype._onZoom=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var i=Wi([],[r.originX,r.originY],n);this._api.dispatchAction(xpe(this._model.getTarget().baseMapProvider,{zoom:1/r.scale,originX:i[0],originY:i[1]}))}},e.prototype._isEnabled=function(){var r=this._model;if(!r||!r.shouldShow())return!1;var n=r.getTarget().baseMapProvider;return!!n},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(Yn);function xpe(t,e){var r=t.mainType==="series"?t.subType+"Roam":t.mainType+"Roam",n={type:r};return n[t.mainType+"Id"]=t.id,Fe(n,e),n}function Spe(t,e){var r=Gb(t);vQ(e.group,r.z,r.zlevel)}function wBt(t){t.registerComponentModel(mBt),t.registerComponentView(yBt)}var _Bt={label:{enabled:!0},decal:{show:!1}},Cpe=qt(),Tpe=qt(),bBt=LI(xBt);function xBt(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var n=Tpe(t).scope||(Tpe(t).scope={}),i=vt(_Bt);Xt(i.label,t.getLocaleModel().get("aria"),!1),Xt(r.option,i,!1),a(),o();function a(){var c=r.getModel("decal"),f=c.get("show");if(f){var d=st();t.eachSeries(function(A){A.isColorBySeries()||(Cpe(A).scope=d.get(A.type)||d.set(A.type,{}))}),t.eachSeries(function(A){if(mt(A.enableAriaDecal)){A.enableAriaDecal();return}var p=A.getData();if(A.isColorBySeries()){var x=MW(A.ecModel,A.name,n,t.getSeriesCount()),T=p.getVisual("decal");p.setVisual("decal",B(T,x))}else{var g=A.getRawData(),m={},y=Cpe(A).scope;p.each(function(R){var I=p.getRawIndex(R);m[I]=R});var b=g.count();g.each(function(R){var I=m[R],N=g.getName(R)||R+"",F=MW(A.ecModel,N,y,b),Q=p.getItemVisual(I,"decal");p.setItemVisual(I,"decal",B(Q,F))})}function B(R,I){var N=R?Fe(Fe({},I),R):I;return N.dirty=!0,N}})}}function o(){var c=e.getZr().dom;if(c){var f=t.getLocaleModel().get("aria"),d=r.getModel("label");if(d.option=Ct(d.option,f),!!d.get("enabled")){if(c.setAttribute("role","img"),d.get("description")){c.setAttribute("aria-label",d.get("description"));return}var A=t.getSeriesCount(),p=d.get(["data","maxCount"])||10,g=d.get(["series","maxCount"])||10,m=Math.min(A,g),y;if(!(A<1)){var b=l();if(b){var x=d.get(["general","withTitle"]);y=s(x,{title:b})}else y=d.get(["general","withoutTitle"]);var T=[],B=A>1?d.get(["series","multiple","prefix"]):d.get(["series","single","prefix"]);y+=s(B,{seriesCount:A}),t.eachSeries(function(F,Q){if(Q<m){var j=void 0,W=F.get("name"),V=W?"withName":"withoutName";j=A>1?d.get(["series","multiple",V]):d.get(["series","single",V]),j=s(j,{seriesId:F.seriesIndex,seriesName:F.get("name"),seriesType:u(F.subType)});var Y=F.getData();if(Y.count()>p){var G=d.get(["data","partialData"]);j+=s(G,{displayCnt:p})}else j+=d.get(["data","allData"]);for(var K=d.get(["data","separator","middle"]),X=d.get(["data","separator","end"]),q=d.get(["data","excludeDimensionId"]),ne=[],te=0;te<Y.count();te++)if(te<p){var ce=Y.getName(te),he=q?ln(Y.getValues(te),function(ae,fe){return zt(q,fe)===-1}):Y.getValues(te),ve=d.get(["data",ce?"withName":"withoutName"]);ne.push(s(ve,{name:ce,value:he.join(K)}))}j+=ne.join(K)+X,T.push(j)}});var R=d.getModel(["series","multiple","separator"]),I=R.get("middle"),N=R.get("end");y+=T.join(I)+N,c.setAttribute("aria-label",y)}}}}function s(c,f){if(!et(c))return c;var d=c;return ee(f,function(A,p){d=d.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),A)}),d}function l(){var c=t.get("title");return c&&c.length&&(c=c[0]),c&&c.text}function u(c){var f=t.getLocaleModel().get(["series","typeNames"]);return f[c]||f.chart}}function SBt(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},ee(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function CBt(t){t.registerPreprocessor(SBt),t.registerVisual(t.PRIORITY.VISUAL.ARIA,bBt)}var Epe={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},TBt=(function(){function t(e){var r=this._condVal=et(e)?new RegExp(e):$Se(e)?e:null;if(r==null){var n="";sn(n)}}return t.prototype.evaluate=function(e){var r=typeof e;return et(r)?this._condVal.test(e):Hr(r)?this._condVal.test(e+""):!1},t})(),EBt=(function(){function t(){}return t.prototype.evaluate=function(){return this.value},t})(),BBt=(function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(!e[r].evaluate())return!1;return!0},t})(),DBt=(function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,r=0;r<e.length;r++)if(e[r].evaluate())return!0;return!1},t})(),MBt=(function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t})(),LBt=(function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=e?this.valueParser(n):null,a=0;a<this.subCondList.length;
146a++)if(!this.subCondList[a].evaluate(e?i:n))return!1;return!0},t})();function Gee(t,e){if(t===!0||t===!1){var r=new EBt;return r.value=t,r}var n="";return qLe(t)||sn(n),t.and?Bpe("and",t,e):t.or?Bpe("or",t,e):t.not?RBt(t,e):IBt(t,e)}function Bpe(t,e,r){var n=e[t],i="";je(n)||sn(i),n.length||sn(i);var a=t==="and"?new BBt:new DBt;return a.children=ze(n,function(o){return Gee(o,r)}),a.children.length||sn(i),a}function RBt(t,e){var r=t.not,n="";qLe(r)||sn(n);var i=new MBt;return i.child=Gee(r,e),i.child||sn(n),i}function IBt(t,e){for(var r="",n=e.prepareGetValue(t),i=[],a=Cr(t),o=t.parser,s=o?BEe(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=ut(Epe,u)?Epe[u]:u,f=t[u],d=s?s(f):f,A=Dft(c,d)||c==="reg"&&new TBt(d);A||sn(r),i.push(A)}}i.length||sn(r);var p=new LBt;return p.valueGetterParam=n,p.valueParser=s,p.getValue=e.getValue,p.subCondList=i,p}function qLe(t){return Tt(t)&&!Os(t)}var OBt=(function(){function t(e,r){this._cond=Gee(e,r)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t})();function PBt(t,e){return new OBt(t,e)}var kBt={type:"echarts:filter",transform:function(t){for(var e=t.upstream,r,n=PBt(t.config,{valueGetterAttrMap:st({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ut(s,"dimension")||sn(l);var c=e.getDimensionInfo(u);return c||sn(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=e.count();a<o;a++)r=e.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},NBt={type:"echarts:sort",transform:function(t){var e=t.upstream,r=t.config,n="",i=Kn(r);i.length||sn(n);var a=[];ee(i,function(c){var f=c.dimension,d=c.order,A=c.parser,p=c.incomparable;if(f==null&&sn(n),d!=="asc"&&d!=="desc"&&sn(n),p&&p!=="min"&&p!=="max"){var g="";sn(g)}if(d!=="asc"&&d!=="desc"){var m="";sn(m)}var y=e.getDimensionInfo(f);y||sn(n);var b=A?BEe(A):null;A&&!b&&sn(n),a.push({dimIdx:y.index,parser:b,comparator:new MEe(d,p)})});var o=e.sourceFormat;o!==Jo&&o!==Kc&&sn(n);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<a.length;d++){var A=a[d],p=e.retrieveValueFromItem(c,A.dimIdx),g=e.retrieveValueFromItem(f,A.dimIdx);A.parser&&(p=A.parser(p),g=A.parser(g));var m=A.comparator.evaluate(p,g);if(m!==0)return m}return 0}),{data:s}}};function FBt(t){t.registerTransform(kBt),t.registerTransform(NBt)}var UBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,i){t.prototype.init.call(this,r,n,i),this._sourceManager=new kEe(this),Zue(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Zue(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:fh},e})(gr),HBt=(function(t){Ee(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(Yn);function QBt(t){t.registerComponentModel(UBt),t.registerComponentView(HBt)}var mA=op.CMD;function kC(t,e){return Math.abs(t-e)<1e-5}function WY(t){var e=t.data,r=t.len(),n=[],i,a=0,o=0,s=0,l=0;function u(V,Y){i&&i.length>2&&n.push(i),i=[V,Y]}function c(V,Y,G,K){kC(V,G)&&kC(Y,K)||i.push(V,Y,G,K,G,K)}function f(V,Y,G,K,X,q){var ne=Math.abs(Y-V),te=Math.tan(ne/4)*4/3,ce=Y<V?-1:1,he=Math.cos(V),ve=Math.sin(V),ae=Math.cos(Y),fe=Math.sin(Y),we=he*X+G,Me=ve*q+K,ge=ae*X+G,be=fe*q+K,Ve=X*te*ce,Re=q*te*ce;i.push(we-Ve*ve,Me+Re*he,ge+Ve*fe,be-Re*ae,ge,be)}for(var d,A,p,g,m=0;m<r;){var y=e[m++],b=m===1;switch(b&&(a=e[m],o=e[m+1],s=a,l=o,(y===mA.L||y===mA.C||y===mA.Q)&&(i=[s,l])),y){case mA.M:a=s=e[m++],o=l=e[m++],u(s,l);break;case mA.L:d=e[m++],A=e[m++],c(a,o,d,A),a=d,o=A;break;case mA.C:i.push(e[m++],e[m++],e[m++],e[m++],a=e[m++],o=e[m++]);break;case mA.Q:d=e[m++],A=e[m++],p=e[m++],g=e[m++],i.push(a+2/3*(d-a),o+2/3*(A-o),p+2/3*(d-p),g+2/3*(A-g),p,g),a=p,o=g;break;case mA.A:var x=e[m++],T=e[m++],B=e[m++],R=e[m++],I=e[m++],N=e[m++]+I;m+=1;var F=!e[m++];d=Math.cos(I)*B+x,A=Math.sin(I)*R+T,b?(s=d,l=A,u(s,l)):c(a,o,d,A),a=Math.cos(N)*B+x,o=Math.sin(N)*R+T;for(var Q=(F?-1:1)*Math.PI/2,j=I;F?j>N:j<N;j+=Q){var W=F?Math.max(j+Q,N):Math.min(j+Q,N);f(j,W,x,T,B,R)}break;case mA.R:s=a=e[m++],l=o=e[m++],d=s+e[m++],A=l+e[m++],u(d,l),c(d,l,d,A),c(d,A,s,A),c(s,A,s,l),c(s,l,d,l);break;case mA.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}
146function YY(t,e,r,n,i,a,o,s,l,u){if(kC(t,r)&&kC(e,n)&&kC(i,o)&&kC(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-t,A=s-e,p=Math.sqrt(d*d+A*A);d/=p,A/=p;var g=r-t,m=n-e,y=i-o,b=a-s,x=g*g+m*m,T=y*y+b*b;if(x<f&&T<f){l.push(o,s);return}var B=d*g+A*m,R=-d*y-A*b,I=x-B*B,N=T-R*R;if(I<f&&B>=0&&N<f&&R>=0){l.push(o,s);return}var F=[],Q=[];r0(t,r,i,o,.5,F),r0(e,n,a,s,.5,Q),YY(F[0],Q[0],F[1],Q[1],F[2],Q[2],F[3],Q[3],l,u),YY(F[4],Q[4],F[5],Q[5],F[6],Q[6],F[7],Q[7],l,u)}function jBt(t,e){var r=WY(t),n=[];e=e||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],A=a[u++],p=a[u++],g=a[u++];YY(s,l,c,f,d,A,p,g,o,e),s=p,l=g}n.push(o)}return n}function JLe(t,e,r){var n=t[e],i=t[1-e],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function Dpe(t,e,r){for(var n=t.r0,i=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=JLe([l,u],c?0:1,e),d=(c?s:u)/f.length,A=0;A<f.length;A++)for(var p=(c?u:s)/f[A],g=0;g<f[A];g++){var m={};c?(m.startAngle=a+d*A,m.endAngle=a+d*(A+1),m.r0=n+p*g,m.r=n+p*(g+1)):(m.startAngle=a+p*g,m.endAngle=a+p*(g+1),m.r0=n+d*A,m.r=n+d*(A+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,r.push(m)}}function zBt(t,e,r){for(var n=t.width,i=t.height,a=n>i,o=JLe([n,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=t[s]/o.length,d=0;d<o.length;d++)for(var A=t[l]/o[d],p=0;p<o[d];p++){var g={};g[u]=d*f,g[c]=p*A,g[s]=f,g[l]=A,g.x+=t.x,g.y+=t.y,r.push(g)}}function Mpe(t,e,r,n){return t*n-r*e}function VBt(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,c=o-i,f=s-a,d=Mpe(c,f,l,u);if(Math.abs(d)<1e-6)return null;var A=t-i,p=e-a,g=Mpe(A,p,c,f)/d;return g<0||g>1?null:new Lt(g*l+t,g*u+e)}function GBt(t,e,r){var n=new Lt;Lt.sub(n,r,e),n.normalize();var i=new Lt;Lt.sub(i,t,e);var a=i.dot(n);return a}function eC(t,e){var r=t[t.length-1];r&&r[0]===e[0]&&r[1]===e[1]||t.push(e)}function KBt(t,e,r){for(var n=t.length,i=[],a=0;a<n;a++){var o=t[a],s=t[(a+1)%n],l=VBt(o[0],o[1],s[0],s[1],e.x,e.y,r.x,r.y);l&&i.push({projPt:GBt(l,e,r),pt:l,idx:a})}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],A=[c.pt.x,c.pt.y],p=[d],g=[A],a=u.idx+1;a<=c.idx;a++)eC(p,t[a].slice());eC(p,A),eC(p,d);for(var a=c.idx+1;a<=u.idx+n;a++)eC(g,t[a%n].slice());return eC(g,d),eC(g,A),[{points:p},{points:g}]}function Lpe(t){var e=t.points,r=[],n=[];cQ(e,r,n);var i=new St(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Lt,c=new Lt;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),KBt(e,u,c)}function LH(t,e,r,n){if(r===1)n.push(e);else{var i=Math.floor(r/2),a=t(e);LH(t,a[0],i,n),LH(t,a[1],r-i,n)}return n}function WBt(t,e){for(var r=[],n=0;n<e;n++)r.push(Sq(t));return r}function YBt(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function $Bt(t){for(var e=[],r=0;r<t.length;)e.push([t[r++],t[r++]]);return e}function ZBt(t,e){var r=[],n=t.shape,i;switch(t.type){case"rect":zBt(n,e,r),i=fr;break;case"sector":Dpe(n,e,r),i=ks;break;case"circle":Dpe({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,r),i=ks;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=ze(jBt(t.getUpdatedPathProxy(),o),function(y){return $Bt(y)}),l=s.length;if(l===0)LH(Lpe,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=ze(s,function(y){var b=[],x=[];cQ(y,b,x);var T=(x[1]-b[1])*(x[0]-b[0]);return c+=T,{poly:y,area:T}});f.sort(function(y,b){return b.area-y.area});for(var d=e,u=0;u<l;u++){var A=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(A.area/c*e);p<0||(LH(Lpe,{points:A.poly},p,r),d-=p)}}i=Ns;break}if(!i)return WBt(t,e);for(var g=[],u=0;u<r.length;u++){var m=new i;m.setShape(r[u]),YBt(t,m),g.push(m)}return g}function XBt(t,e){var r=t.length,n=e.length;if(r===n)return[t,e];for(var i=[],a=[],o=r<n?t:e,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,A=2;A<s;){var p=o[A-2],g=o[A-1],m=o[A++],y=o[A++],b=o[A++],x=o[A++],T=o[A++],B=o[A++];if(d<=0){f.push(m,y,b,x,T,B);continue}for(var R=Math.min(d,c-1)+1,I=1;I<=R;I++){var N=I/R;r0(p,m,b,T,N,i),r0(g,y,x,B,N,a),p=i[3],g=a[3],f.push(i[1],a[1],i[2],a[2],p,g),m=i[5],y=a[5],b=i[6],x=a[6]}d-=R-1}return o===t?[f,e]:[t,f]}function Rpe(t,e){for(var r=t.length,n=t[r-2],i=t[r-1],a=[],o=0;o<e.length;)a[o++]=n,a[o++]=i;return a}function qBt(t,e){for(var r,n,i,a=[],o=[],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?(r=XBt(l,u),c=r[0],f=r[1],n=c,i=f):(f=Rpe(i||l,l),c=l):(c=Rpe(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function Ipe(t){for(var e=0,r=0,n=0,i=t.length,a=0,o=i-2;a<i;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+1],f=s*c-u*l;e+=f,r+=(s+u)*f,n+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[r/e/3,n/e/3,e]}function JBt(t,e,r,n){for(var i=(t.length-2)/6,a=1/0,o=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 A=d===0?c:(c+d-2)%l+2,p=t[A]-r[0],g=t[A+1]-r[1],m=e[d]-n[0],y=e[d+1]-n[1],b=m-p,x=y-g;f+=b*b+x*x}f<a&&(a=f,o=u)}return o}function e2t(t){for(var e=[],r=t.length,n=0;n<r;n+=2)e[n]=t[r-n-2],e[n+1]=t[r-n-1];return e}function t2t(t,e,r,n){for(var i=[],a,o=0;o<t.length;o++){var s=t[o],l=e[o],u=Ipe(s),c=Ipe(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],A=0,p=1/0,g=[],m=s.length;a&&(s=e2t(s));for(var y=JBt(s,l,u,c)*6,b=m-2,x=0;x<b;x+=2){var T=(y+x)%b+2;f[x+2]=s[T]-u[0],f[x+3]=s[T+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var B=n/r,R=-n/2;R<=n/2;R+=B){for(var I=Math.sin(R),N=Math.cos(R),F=0,x=0;x<s.length;x+=2){var Q=f[x],j=f[x+1],W=l[x]-c[0],V=l[x+1]-c[1],Y=W*N-V*I,G=W*I+V*N;
146g[x]=Y,g[x+1]=G;var K=Y-Q,X=G-j;F+=K*K+X*X}if(F<p){p=F,A=R;for(var q=0;q<g.length;q++)d[q]=g[q]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-A})}return i}function RH(t){return t.__isCombineMorphing}var eRe="__mOriginal_";function IH(t,e,r){var n=eRe+e,i=t[n]||t[e];t[n]||(t[n]=t[e]);var a=r.replace,o=r.after,s=r.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function TL(t,e){var r=eRe+e;t[r]&&(t[e]=t[r],t[r]=null)}function Ope(t,e){for(var r=0;r<t.length;r++)for(var n=t[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=e[0]*a+e[2]*o+e[4],n[i++]=e[1]*a+e[3]*o+e[5]}}function tRe(t,e){var r=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),i=qBt(WY(r),WY(n)),a=i[0],o=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Ope(a,s),l&&Ope(o,l),IH(e,"updateTransform",{replace:u}),e.transform=null;var c=t2t(a,o,10,Math.PI),f=[];IH(e,"buildPath",{replace:function(d){for(var A=e.__morphT,p=1-A,g=[],m=0;m<c.length;m++){var y=c[m],b=y.from,x=y.to,T=y.rotation*A,B=y.fromCp,R=y.toCp,I=Math.sin(T),N=Math.cos(T);hL(g,B,R,A);for(var F=0;F<b.length;F+=2){var Q=b[F],j=b[F+1],W=x[F],V=x[F+1],Y=Q*p+W*A,G=j*p+V*A;f[F]=Y*N-G*I+g[0],f[F+1]=Y*I+G*N+g[1]}var K=f[0],X=f[1];d.moveTo(K,X);for(var F=2;F<b.length;){var W=f[F++],V=f[F++],q=f[F++],ne=f[F++],te=f[F++],ce=f[F++];K===W&&X===V&&q===te&&ne===ce?d.lineTo(te,ce):d.bezierCurveTo(W,V,q,ne,te,ce),K=te,X=ce}}}})}function Kee(t,e,r){if(!t||!e)return e;var n=r.done,i=r.during;tRe(t,e),e.__morphT=0;function a(){TL(e,"buildPath"),TL(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ct({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),e}function r2t(t,e,r,n,i,a){var o=16;t=i===r?0:Math.round(32767*(t-r)/(i-r)),e=a===n?0:Math.round(32767*(e-n)/(a-n));for(var s=0,l,u=(1<<o)/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 OH(t){var e=1/0,r=1/0,n=-1/0,i=-1/0,a=ze(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),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=ze(a,function(s,l){return{cp:s,z:r2t(s[0],s[1],e,r,n,i),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function rRe(t){return ZBt(t.path,t.count)}function $Y(){return{fromIndividuals:[],toIndividuals:[],count:0}}function n2t(t,e,r){var n=[];function i(B){for(var R=0;R<B.length;R++){var I=B[R];RH(I)?i(I.childrenRef()):I instanceof _r&&n.push(I)}}i(t);var a=n.length;if(!a)return $Y();var o=r.dividePath||rRe,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),$Y();n=OH(n),s=OH(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new vp,d=0;d<a;d++){var A=n[d],p=s[d];p.parent=e,p.copyTransform(f),c||tRe(A,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function g(B){for(var R=0;R<s.length;R++)s[R].addSelfToZr(B)}IH(e,"addSelfToZr",{after:function(B){g(B)}}),IH(e,"removeSelfFromZr",{after:function(B){for(var R=0;R<s.length;R++)s[R].removeSelfFromZr(B)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,TL(e,"addSelfToZr"),TL(e,"removeSelfFromZr")}var y=s.length;if(c)for(var b=y,x=function(){b--,b===0&&(m(),l&&l())},d=0;d<y;d++){var T=c?Ct({delay:(r.delay||0)+c(d,y,n[d],s[d]),done:x},r):r;Kee(n[d],s[d],T)}else e.__morphT=0,e.animateTo({__morphT:1},Ct({during:function(B){for(var R=0;R<y;R++){var I=s[R];I.__morphT=e.__morphT,I.dirtyShape()}u&&u(B)},done:function(){m();for(var B=0;B<t.length;B++)TL(t[B],"updateTransform");l&&l()}},r));return e.__zr&&g(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function i2t(t,e,r){var n=e.length,i=[],a=r.dividePath||rRe;function o(A){for(var p=0;p<A.length;p++){var g=A[p];RH(g)?o(g.childrenRef()):g instanceof _r&&i.push(g)}}if(RH(t)){o(t.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(Sq(i[l++%s]));i.length=n}else{i=a({path:t,count:n});for(var c=t.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),$Y()}i=OH(i),e=OH(e);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?Ct({delay:(r.delay||0)+f(u,n,i[u],e[u])},r):r;Kee(i[u],e[u],d)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function Ppe(t){return je(t[0])}function kpe(t,e){for(var r=[],n=t.length,i=0;i<n;i++)r.push({one:t[i],many:[]});for(var i=0;i<e.length;i++){var a=e[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(e[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;
146if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var a2t={clone:function(t){for(var e=[],r=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var i=Sq(t.path);i.setStyle("opacity",r),e.push(i)}return e},split:null};function $G(t,e,r,n,i,a){if(!t.length||!e.length)return;var o=AE("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Fe({setToFinal:!0},o),u,c;Ppe(t)&&(u=t,c=e),Ppe(e)&&(u=e,c=t);function f(y,b,x,T,B){var R=y.many,I=y.one;if(R.length===1&&!B){var N=b?R[0]:I,F=b?I:R[0];if(RH(N))f({many:[N],one:F},!0,x,T,!0);else{var Q=s?Ct({delay:s(x,T)},l):l;Kee(N,F,Q),a(N,F,N,F,Q)}}else for(var j=Ct({dividePath:a2t[r],individualDelay:s&&function(X,q,ne,te){return s(X+x,T)}},l),W=b?n2t(R,I,j):i2t(I,R,j),V=W.fromIndividuals,Y=W.toIndividuals,G=V.length,K=0;K<G;K++){var Q=s?Ct({delay:s(K,G)},l):l;a(V[K],Y[K],b?R[K]:y.one,b?y.one:R[K],Q)}}for(var d=u?u===t:t.length>e.length,A=u?kpe(c,u):kpe(d?e:t,[d?t:e]),p=0,g=0;g<A.length;g++)p+=A[g].many.length;for(var m=0,g=0;g<A.length;g++)f(A[g],d,m,p),m+=A[g].many.length}function B_(t){if(!t)return[];if(je(t)){for(var e=[],r=0;r<t.length;r++)e.push(B_(t[r]));return e}var n=[];return t.traverse(function(i){i instanceof _r&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var nRe=1e4,o2t=0,Npe=1,Fpe=2,s2t=qt();function l2t(t,e){for(var r=t.dimensions,n=0;n<r.length;n++){var i=t.getDimensionInfo(r[n]);if(i&&i.otherDims[e]===0)return r[n]}}function u2t(t,e,r){var n=t.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=t.get(n.name,e);return i&&i.categories[a]||a+""}}function Upe(t,e,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=l2t(t,i);if(a){var o=u2t(t,e,a);return o}var s=t.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||t.getId(e)}function Hpe(t){var e=[];return ee(t,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>nRe))for(var a=n.getIndices(),o=0;o<a.length;o++)e.push({data:n,groupId:Upe(n,o,i,!1),childGroupId:Upe(n,o,i,!0),divide:r.divide,dataIndex:o})}),e}function ZG(t,e,r){t.traverse(function(n){n instanceof _r&&ui(n,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function XG(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function tC(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function c2t(t,e,r){var n=AE("update",r,e);n&&t.traverse(function(i){if(i instanceof id){var a=act(i);a&&i.animateFrom({style:a},n)}})}function f2t(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++){var i=t[n],a=e[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function iRe(t,e,r){var n=Hpe(t),i=Hpe(e);function a(x,T,B,R,I){(B||x)&&T.animateFrom({style:B&&B!==x?Fe(Fe({},B.style),x.style):x.style},I)}var o=!1,s=o2t,l=st(),u=st();ee(n,function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=Npe;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=Fpe;break}}function A(x,T){return function(B){var R=B.data,I=B.dataIndex;return T?R.getId(I):x?s===Npe?B.childGroupId:B.groupId:s===Fpe?B.childGroupId:B.groupId}}var p=f2t(n,i),g={};if(!p)for(var c=0;c<i.length;c++){var m=i[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(g[y.id]=!0)}function b(x,T){var B=n[T],R=i[x],I=R.data.hostModel,N=B.data.getItemGraphicEl(B.dataIndex),F=R.data.getItemGraphicEl(R.dataIndex);if(N===F){F&&c2t(F,R.dataIndex,I);return}N&&g[N.id]||F&&(tC(F),N?(tC(N),XG(N),o=!0,$G(B_(N),B_(F),R.divide,I,x,a)):ZG(F,I,x))}new vg(n,i,A(!0,p),A(!1,p),null,"multiple").update(b).updateManyToOne(function(x,T){var B=i[x],R=B.data,I=R.hostModel,N=R.getItemGraphicEl(B.dataIndex),F=ln(ze(T,function(Q){return n[Q].data.getItemGraphicEl(n[Q].dataIndex)}),function(Q){return Q&&Q!==N&&!g[Q.id]});N&&(tC(N),F.length?(ee(F,function(Q){tC(Q),XG(Q)}),o=!0,$G(B_(F),B_(N),B.divide,I,x,a)):ZG(N,I,B.dataIndex))}).updateOneToMany(function(x,T){var B=n[T],R=B.data.getItemGraphicEl(B.dataIndex);if(!(R&&g[R.id])){var I=ln(ze(x,function(F){return i[F].data.getItemGraphicEl(i[F].dataIndex)}),function(F){return F&&F!==R}),N=i[x[0]].data.hostModel;I.length&&(ee(I,function(F){return tC(F)}),R?(tC(R),XG(R),o=!0,$G(B_(R),B_(I),B.divide,N,x[0],a)):ee(I,function(F){return ZG(F,N,x[0])}))}}).updateManyToMany(function(x,T){new vg(T,x,function(B){return n[B].data.getId(n[B].dataIndex)},function(B){return i[B].data.getId(i[B].dataIndex)}).update(function(B,R){b(x[B],T[R])}).execute()}).execute(),o&&ee(e,function(x){var T=x.data,B=T.hostModel,R=B&&r.getViewOfSeriesModel(B),I=AE("update",B,0);R&&B.isAnimationEnabled()&&I&&I.duration>0&&R.group.traverse(function(N){N instanceof _r&&!N.animators.length&&N.animateFrom({style:{opacity:0}
146},I)})})}function Qpe(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function jpe(t){return je(t)?t.sort().join(","):t}function sy(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function d2t(t,e){var r=st(),n=st(),i=st();return ee(t.oldSeries,function(a,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=Qpe(a),c=jpe(u);n.set(c,{dataGroupId:s,data:l}),je(u)&&ee(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),ee(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=Qpe(a),u=jpe(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:sy(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:sy(s),data:s}]});else if(je(l)){var f=[];ee(l,function(p){var g=n.get(p);g.data&&f.push({dataGroupId:g.dataGroupId,divide:sy(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:sy(s)}]})}else{var d=i.get(l);if(d){var A=r.get(d.key);A||(A={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:sy(d.data)}],newSeries:[]},r.set(d.key,A)),A.newSeries.push({dataGroupId:o,data:s,divide:sy(s)})}}}}),r}function zpe(t,e){for(var r=0;r<t.length;r++){var n=e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id;if(n)return r}}function h2t(t,e,r,n){var i=[],a=[];ee(Kn(t.from),function(o){var s=zpe(e.oldSeries,o);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:sy(e.oldData[s]),groupIdDim:o.dimension})}),ee(Kn(t.to),function(o){var s=zpe(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:sy(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&iRe(i,a,n)}function A2t(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){ee(Kn(n.seriesTransition),function(i){ee(Kn(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][WU]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,r,n){var i=s2t(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)ee(Kn(a),function(A){h2t(A,i,n,r)});else{var o=d2t(i,n);ee(o.keys(),function(A){var p=o.get(A);iRe(p.oldSeries,p.newSeries,r)})}ee(n.updatedSeries,function(A){A[WU]&&(A[WU]=!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()<nRe&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}var p2t=(function(){function t(e,r){yJ(this,t.decoratedMethods),this._outOfBrk=VW(null,r),this._linear=VW(null,r),wJ(this),this.breaks=e&&e.breaks||[]}return t.prototype.hasBreaks=function(){return!!this.breaks.length},t.prototype.calcNiceTickMultiple=function(e,r){for(var n=0;n<this.breaks.length;n++){var i=this.breaks[n];if(i.vmin<e&&e<i.vmax){var a=r(e,i.vmax);return a}}return 0},t.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,r){return r==null||r===Xv?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,r){this.setExtent2($u,e,r)},setExtent2:function(e,r,n){Qb(r,n)&&(e===$u&&g2t(this,[r,n]),this._outOfBrk.setExtent2(e,r,n),this._linear.setExtent2(e,this.transformIn(r,null),this.transformIn(n,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,r){if(r&&r.depth===Xv)return e;for(var n=Vpe,i=Gpe,a=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?n+=s.vmin-i+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=e-i,i=s.vmax,a=!1;break}n+=s.vmin-i+s.gapReal,i=s.vmax}return a&&(n+=e-i),n},transformOut:function(e,r){if(r&&r.depth===Xv)return e;for(var n=Vpe,i=Gpe,a=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+l.vmin-i,c=u+l.gapReal;if(e<=c){e>u?o=l.vmin+(e-u)/(c-u)*(l.vmax-l.vmin):o=i+e-n,i=l.vmax,a=!1;break}n=c,i=l.vmax}return a&&(o=i+e-n),o}},t})();function v2t(t,e){return new p2t(t,e)}var Vpe=0,Gpe=0;function g2t(t,e){var r=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}}
146,a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};ee(t.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(r+=l.val);var u=Wee(s,e);if(u){var c=u.vmin!==s.vmin,f=u.vmax!==s.vmax,d=u.vmax-u.vmin;if(!(c&&f))if(c||f){var A=c?"S":"E";a[A][l.type].has=!0,a[A][l.type].span=d,a[A][l.type].inExtFrac=d/(s.vmax-s.vmin),a[A][l.type].val=l.val}else n[l.type].span+=d,n[l.type].val+=l.val}});var o=r*(0+(e[1]-e[0])+(n.tpAbs.val-n.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));ee(t.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=r!==0?cr(o,0)*l.val/r:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function m2t(t,e,r,n,i,a){t!=="no"&&ee(r,function(o){var s=Wee(o,a);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],c=n(u),f=i*3/4;c>s.vmin-f&&c<s.vmax+f&&(t!=="preserve_extent_bound"||c!==a[0]&&c!==a[1])&&e.splice(l,1)}})}function y2t(t,e,r,n){ee(e,function(i){var a=Wee(i,r);a&&(t.push({value:a.vmin,break:{type:"vmin",parsedBreak:a},time:n?n(a):void 0}),t.push({value:a.vmax,break:{type:"vmax",parsedBreak:a},time:n?n(a):void 0}))}),e.length&&t.sort(function(i,a){return i.value-a.value})}function Wee(t,e){var r=cr(t.vmin,e[0]),n=bn(t.vmax,e[1]);return r<n||r===n&&r>e[0]&&r<e[1]?{vmin:r,vmax:n,breakOption:t.breakOption,gapParsed:t.gapParsed,gapReal:t.gapReal}:null}function ZY(t,e,r){var n=[];if(!t)return{breaks:n};function i(o,s){return o>=0&&o<1-1e-5}ee(t,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:vt(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(et(o.gap)){var u=Rc(o.gap);if(u.match(/%$/)){var c=parseFloat(u)/100;i(c)||(c=0),s.gapParsed.type="tpPrct",s.gapParsed.val=c,l=!0}}if(!l){var f=e.parse(o.gap);(!isFinite(f)||f<0)&&(f=0),s.gapParsed.type="tpAbs",s.gapParsed.val=f}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),r&&r.noNegative&&ee(["vmin","vmax"],function(A){s[A]<0&&(s[A]=0)}),s.vmin>s.vmax){var d=s.vmax;s.vmax=s.vmin,s.vmin=d}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var a=-1/0;return ee(n,function(o,s){a>o.vmin&&(n[s]=null),a=o.vmax}),{breaks:ln(n,function(o){return!!o})}}function Yee(t,e){return XY(e)===XY(t)}function XY(t){return t.start+"_\0_"+t.end}function w2t(t,e,r){var n=[];ee(t,function(a,o){var s=e(a);s&&s.type==="vmin"&&n.push([o])}),ee(t,function(a,o){var s=e(a);if(s&&s.type==="vmax"){var l=Cg(n,function(u){return Yee(e(t[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var i=[];return ee(n,function(a){a.length===2&&i.push(r?a:[t[a[0]],t[a[1]]])}),i}function _2t(t,e,r,n){if(e.break){var i=e.break.parsedBreak,a=Cg(r,function(c){return Yee(c.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:n,depth:Xv},s=t.transformOut(i.vmin,o),l=t.transformOut(i.vmax,o),u={vmin:s,vmax:l,breakOption:i.breakOption,gapParsed:vt(a.gapParsed),gapReal:i.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function b2t(t,e,r,n,i){i.original=ZY(t,e,r);var a=i.transformed=ZY(t,e,r),o=i.lookup;a.breaks=ze(a.breaks,function(s,l){var u={depth:Xv},c=e.transformIn(s.vmin,u),f=e.transformIn(s.vmax,u),d={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.transformIn(s.vmin+s.gapParsed.val,u)-c:s.gapParsed.val};return o.from[n+l]=c,o.to[n+l]=s.vmin,o.from[n+l+1]=f,o.to[n+l+1]=s.vmax,{vmin:c,vmax:f,gapParsed:d,gapReal:s.gapReal,breakOption:s.breakOption}})}var x2t={vmin:"start",vmax:"end"};function S2t(t,e){return e&&(t=t||{},t.break={type:x2t[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),t}function C2t(){Cct({createBreakScaleMapper:v2t,pruneTicksByBreak:m2t,addBreaksToTicks:y2t,parseAxisBreakOption:ZY,identifyAxisBreak:Yee,serializeAxisBreakIdentifier:XY,retrieveAxisBreakPairs:w2t,getTicksBreakOutwardTransform:_2t,parseAxisBreakOptionInwardTransform:b2t,makeAxisLabelFormatterParamBreak:S2t})}var Kpe=qt();function T2t(t,e){var r=Cg(t,function(n){return Ta().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return r||t.push(r={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),r}function E2t(t){ee(t,function(e){return e.shouldRemove=!0})}function B2t(t){for(var e=t.length-1;e>=0;e--)t[e].shouldRemove&&t.splice(e,1)}function D2t(t,e,r,n,i){var a=r.axis;
146if(a.scale.isBlank()||!Ta())return;var o=Ta().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(F){return F.break},!1);if(!o.length)return;var s=r.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var f=s.get("expandOnClick"),d=s.get("zigzagZ"),A=s.getModel("itemStyle"),p=A.getItemStyle(),g=p.stroke,m=p.lineWidth,y=p.lineDash,b=p.fill,x=new xt({ignoreModelZ:!0}),T=a.isHorizontal(),B=Kpe(e).visualList||(Kpe(e).visualList=[]);E2t(B);for(var R=function(F){var Q=o[F][0].break.parsedBreak,j=[];j[0]=a.toGlobalCoord(a.dataToCoord(Q.vmin,!0)),j[1]=a.toGlobalCoord(a.dataToCoord(Q.vmax,!0)),j[1]<j[0]&&j.reverse();var W=T2t(B,Q);W.shouldRemove=!1;var V=new xt;N(W.zigzagRandomList,V,j[0],j[1],T,Q),f&&V.on("click",function(){var Y={type:RQ,breaks:[{start:Q.breakOption.start,end:Q.breakOption.end}]};Y[a.dim+"AxisIndex"]=r.componentIndex,i.dispatchAction(Y)}),V.silent=!f,x.add(V)},I=0;I<o.length;I++)R(I);t.add(x),B2t(B);function N(F,Q,j,W,V,Y){var G={stroke:g,lineWidth:m,lineDash:y,fill:"none"},K=V?0:1,X=1-K,q=n[jt[X]]+n[ha[X]];function ne(nt){var qe=[],tt=[];qe[K]=tt[K]=nt,qe[X]=n[jt[X]],tt[X]=q;var lt={x1:qe[0],y1:qe[1],x2:tt[0],y2:tt[1]};return dQ(lt,lt,{lineWidth:1}),qe[0]=lt.x1,qe[1]=lt.y1,qe[K]}j=ne(j),W=ne(W);for(var te=[],ce=[],he=!0,ve=n[jt[X]],ae=0;;ae++){var fe=ve===n[jt[X]],we=ve>=q;we&&(ve=q);var Me=[],ge=[];Me[K]=j,ge[K]=W,!fe&&!we&&(Me[K]+=he?-l:l,ge[K]-=he?l:-l),Me[X]=ve,ge[X]=ve,te.push(Me),ce.push(ge);var be=void 0;if(ae<F.length?be=F[ae]:(be=Math.random(),F.push(be)),ve+=be*(c-u)+u,he=!he,we)break}var Ve=Ta().serializeAxisBreakIdentifier(Y.breakOption);if(Q.add(new es({anid:"break_a_"+Ve,shape:{points:te},style:G,z:d})),Y.gapReal!==0){Q.add(new es({anid:"break_b_"+Ve,shape:{points:ce},style:G,z:d}));var Re=ce.slice();Re.reverse();var Se=te.concat(Re);Q.add(new Ns({anid:"break_c_"+Ve,shape:{points:Se},style:{fill:b,opacity:p.opacity},z:d}))}}}function M2t(t,e,r,n){var i=t.axis,a=r.transform;Ps(n.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=Ta().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(m){return m.break},!1),l=ze(s,function(m){var y=m[0].break.parsedBreak,b=[i.dataToCoord(y.vmin,!0),i.dataToCoord(y.vmax,!0)];return b[0]>b[1]&&b.reverse(),{coordPair:b,brkId:Ta().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(m,y){return m.coordPair[0]-y.coordPair[0]});for(var u=o[0],c=null,f=0;f<l.length;f++){var d=l[f],A=Math.max(d.coordPair[0],o[0]),p=Math.min(d.coordPair[1],o[1]);u<=A&&g(u,A,c,d),u=p,c=d}u<=o[1]&&g(u,o[1],c,null);function g(m,y,b,x){function T(j,W){a&&(Wi(j,j,a),Wi(W,W,a))}function B(j,W){var V={x1:j[0],y1:j[1],x2:W[0],y2:W[1]};dQ(V,V,n.style),j[0]=V.x1,j[1]=V.y1,W[0]=V.x2,W[1]=V.y2}var R=[m,0],I=[y,0],N=[m,5],F=[y,5];T(R,N),B(R,N),T(I,F),B(I,F),B(R,I);var Q=new Ca(Fe({shape:{x1:R[0],y1:R[1],x2:I[0],y2:I[1]}},n));e.add(Q),Q.anid="breakLine_"+(b?b.brkId:"\0")+"_\0_"+(x?x.brkId:"\0")}}function L2t(t,e,r){if(Cg(r,function(b){return!b}))return;var n=new Lt;if(!MQ(r[0],r[1],n,{direction:-(t?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var i=Si();Tg(i,i,-e);var a=ze(r,function(b){return b.transform?Fc(Si(),i,b.transform):i});function o(b){var x=r[0].localRect,T=new Lt(x[ha[b]]*a[0][0],x[ha[b]]*a[0][1]);return Math.abs(T.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=ze(r,function(b,x){var T=b.localRect.clone();return T.applyTransform(a[x]),T}),u=new Lt;u.copy(r[0].label).add(r[1].label).scale(.5),u.transform(i);var c=n.clone().transform(i),f=l[0].x+l[1].x+(c.x>=0?l[0].width:l[1].width),d=(f+c.x)/2-u.x,A=Math.min(d,d-c.x),p=Math.max(d,d-c.x),g=p<0?p:A>0?A:0;s=(d-g)/c.x}var m=new Lt,y=new Lt;Lt.scale(m,n,-s),Lt.scale(y,n,1-s),ZW(r[0],m),ZW(r[1],y)}function R2t(t,e){var r={breaks:[]};return ee(e.breaks,function(n){if(n){var i=Cg(t.get("breaks",!0),function(s){return Ta().identifyAxisBreak(s,n)});if(i){var a=e.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===RQ?!0:a===$2e?!1:a===Z2e?!i.isExpanded:i.isExpanded,r.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),r}function I2t(){$vt({adjustBreakLabelPair:L2t,buildAxisBreakLine:M2t,rectCoordBuildBreakAxis:D2t,updateModelAxisBreak:R2t})}function O2t(t){Jvt(t),C2t(),I2t()}function P2t(){pmt(k2t)}function k2t(t,e){ee(t,function(r){if(!r.model.get(["axisLabel","inside"])){var n=N2t(r);if(n){var i=r.isHorizontal()?"height":"width",a=r.model.get(["axisLabel","margin"]);e[i]-=n[i]+a,r.position==="top"?e.y+=n.height+a:r.position==="left"&&(e.x+=n.width+a)}}})}function N2t(t){var e=t.model,r=t.scale;if(!e.get(["axisLabel","show"])||r.isBlank())return;var n,i,a=r.getExtent();r instanceof _R?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=jI(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c}
146,d=s(f,c),A=o.getTextRect(d),p=g(A,o.get("rotate")||0);l?l.union(p):l=p}return l;function g(m,y){var b=y*Math.PI/180,x=m.width,T=m.height,B=x*Math.abs(Math.cos(b))+Math.abs(T*Math.sin(b)),R=x*Math.abs(Math.sin(b))+Math.abs(T*Math.cos(b)),I=new St(m.x,m.y,B,R);return I}}ir([Evt]);ir([wvt]);ir([Yvt,zgt,emt,Pmt,Ymt,Xyt,C0t,lwt,Pwt,zwt,$wt,i_t,$_t,_bt,Obt,qbt,rxt,dxt,yxt,Mxt,Nxt,$xt,I1t]);ir(q1t);ir(ESt);ir(JDe);ir(USt);ir(HMe);ir(zSt);ir(uCt);ir(mCt);ir(sTt);ir(TTt);ir($I);ir(jTt);ir(GTt);ir(eEt);ir(lEt);ir(AEt);ir(wEt);ir(LEt);ir(ZEt);ir(VLe);ir(GLe);ir(vBt);ir(ZLe);ir(XLe);ir(wBt);ir(CBt);ir(FBt);ir(QBt);ir(A2t);ir(Upt);ir(O2t);ir(P2t);ir(kmt);const F2t=Object.freeze(Object.defineProperty({__proto__:null,Axis:fd,ChartView:xn,ComponentModel:gr,ComponentView:Yn,List:bl,Model:wr,PRIORITY:ABe,SeriesModel:On,color:ist,connect:_ht,dataTool:Dht,dependencies:iht,disConnect:bht,disconnect:xBe,dispose:xht,env:Dr,extendChartView:Spt,extendComponentModel:_pt,extendComponentView:bpt,extendSeriesModel:xpt,format:npt,getCoordinateSystemDimensions:Cht,getInstanceByDom:uJ,getInstanceById:Sht,getMap:Bht,graphic:rpt,helper:YAt,init:bBe,innerDrawElementOnCanvas:aJ,matrix:Rot,number:ept,parseGeoJSON:YW,parseGeoJson:YW,registerAction:Ch,registerCoordinateSystem:TBe,registerCustomSeries:Tht,registerLayout:EBe,registerLoading:AJ,registerLocale:kq,registerMap:BBe,registerPostInit:SBe,registerPostUpdate:CBe,registerPreprocessor:fJ,registerProcessor:dJ,registerTheme:cJ,registerTransform:DBe,registerUpdateLifecycle:CQ,registerVisual:b0,setCanvasCreator:Eht,setPlatformAPI:VSe,throttle:bQ,time:tpt,use:ir,util:ipt,vector:got,version:nht,zrUtil:cot,zrender:Hst},Symbol.toStringTag,{value:"Module"}));var mv={},yv={},qG={},Wpe;function U2t(){return Wpe||(Wpe=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1;t.default=function(){return"".concat(e++)}})(qG)),qG}var eM={},tM={},JG={},Ype;function aRe(){return Ype||(Ype=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var a=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(i),i=setTimeout(function(){r.apply(a,s)},n)}}})(JG)),JG}var wv={},$pe;function $ee(){return $pe||($pe=1,Object.defineProperty(wv,"__esModule",{value:!0}),wv.SizeSensorId=wv.SensorTabIndex=wv.SensorClassName=void 0,wv.SizeSensorId="size-sensor-id",wv.SensorClassName="size-sensor-object",wv.SensorTabIndex="-1"),wv}var Zpe;function H2t(){if(Zpe)return tM;Zpe=1,Object.defineProperty(tM,"__esModule",{value:!0}),tM.createSensor=void 0;var t=r(aRe()),e=$ee();function r(n){return n&&n.__esModule?n:{default:n}}return tM.createSensor=function(i,a){var o=void 0,s=[],l=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var p=document.createElement("object");return p.onload=function(){p.contentDocument.defaultView.addEventListener("resize",u),u()},p.style.display="block",p.style.position="absolute",p.style.top="0",p.style.left="0",p.style.height="100%",p.style.width="100%",p.style.overflow="hidden",p.style.pointerEvents="none",p.style.zIndex="-1",p.style.opacity="0",p.setAttribute("class",e.SensorClassName),p.setAttribute("tabindex",e.SensorTabIndex),p.type="text/html",i.appendChild(p),p.data="about:blank",p},u=(0,t.default)(function(){s.forEach(function(A){A(i)})}),c=function(p){o||(o=l()),s.indexOf(p)===-1&&s.push(p)},f=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",u),o.parentNode.removeChild(o),i.removeAttribute(e.SizeSensorId),o=void 0,s=[],a&&a())},d=function(p){var g=s.indexOf(p);g!==-1&&s.splice(g,1),s.length===0&&o&&f()};return{element:i,bind:c,destroy:f,unbind:d}},tM}var rM={},Xpe;function Q2t(){if(Xpe)return rM;Xpe=1,Object.defineProperty(rM,"__esModule",{value:!0}),rM.createSensor=void 0;var t=$ee(),e=r(aRe());function r(n){return n&&n.__esModule?n:{default:n}}return rM.createSensor=function(i,a){var o=void 0,s=[],l=(0,e.default)(function(){s.forEac
146h(function(A){A(i)})}),u=function(){var p=new ResizeObserver(l);return p.observe(i),l(),p},c=function(p){o||(o=u()),s.indexOf(p)===-1&&s.push(p)},f=function(){o&&o.disconnect(),s=[],o=void 0,i.removeAttribute(t.SizeSensorId),a&&a()},d=function(p){var g=s.indexOf(p);g!==-1&&s.splice(g,1),s.length===0&&o&&f()};return{element:i,bind:c,destroy:f,unbind:d}},rM}var qpe;function j2t(){if(qpe)return eM;qpe=1,Object.defineProperty(eM,"__esModule",{value:!0}),eM.createSensor=void 0;var t=H2t(),e=Q2t();return eM.createSensor=typeof ResizeObserver<"u"?e.createSensor:t.createSensor,eM}var Jpe;function z2t(){if(Jpe)return yv;Jpe=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.removeSensor=yv.getSensor=yv.Sensors=void 0;var t=n(U2t()),e=j2t(),r=$ee();function n(o){return o&&o.__esModule?o:{default:o}}var i=yv.Sensors={};function a(o){o&&i[o]&&delete i[o]}return yv.getSensor=function(s){var l=s.getAttribute(r.SizeSensorId);if(l&&i[l])return i[l];var u=(0,t.default)();s.setAttribute(r.SizeSensorId,u);var c=(0,e.createSensor)(s,function(){return a(u)});return i[u]=c,c},yv.removeSensor=function(s){var l=s.element.getAttribute(r.SizeSensorId);s.destroy(),a(l)},yv}var eve;function V2t(){if(eve)return mv;eve=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.ver=mv.clear=mv.bind=void 0;var t=z2t();return mv.bind=function(r,n){var i=(0,t.getSensor)(r);return i.bind(n),function(){i.unbind(n)}},mv.clear=function(r){var n=(0,t.getSensor)(r);(0,t.removeSensor)(n)},mv.ver="1.0.3",mv}var tve=V2t();function rve(t,e){var r={};return e.forEach(function(n){r[n]=t[n]}),r}function eK(t){return typeof t=="function"}function G2t(t){return typeof t=="string"}var tK,nve;function K2t(){return nve||(nve=1,tK=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}),tK}var W2t=K2t();const rC=HT(W2t);var Y2t=(function(t){owe(e,t);function e(r){var n=t.call(this,r)||this;return n.echarts=r.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(r){var n=this.props.shouldSetOption;if(!(eK(n)&&!n(r,this.props))){if(!rC(r.theme,this.props.theme)||!rC(r.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var i=this.getEchartsInstance();rC(r.onEvents,this.props.onEvents)||(this.unbindEvents(i),this.bindEvents(i,this.props.onEvents));var a=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];rC(rve(this.props,a),rve(r,a))||this.updateEChartsOption(),(!rC(r.style,this.props.style)||!rC(r.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.initEchartsInstance=function(){return $ne(this,void 0,void 0,function(){var r=this;return Zne(this,function(n){return[2,new Promise(function(i){r.echarts.init(r.ele,r.props.theme,r.props.opts);var a=r.getEchartsInstance();a.on("finished",function(){var o=r.ele.clientWidth,s=r.ele.clientHeight;r.echarts.dispose(r.ele);var l=Bc({width:o,height:s},r.props.opts);i(r.echarts.init(r.ele,r.props.theme,l))})})]})})},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},e.prototype.dispose=function(){if(this.ele){try{tve.clear(this.ele)}catch(r){console.warn(r)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){return $ne(this,void 0,void 0,function(){var r,n,i,a,o,s,l=this;return Zne(this,function(u){switch(u.label){case 0:return r=this.props,n=r.onEvents,i=r.onChartReady,a=r.autoResize,o=a===void 0?!0:a,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,n||{}),eK(i)&&i(s),this.ele&&o&&tve.bind(this.ele,function(){l.resize()}),[2]}})})},e.prototype.bindEvents=function(r,n){var i=this,a=function(s,l){if(G2t(s)&&eK(l)){var u=function(c){l(c,r)};r.on(s,u),i.eventHandlerRefs[s]=u}};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&a(o,n[o])},e.prototype.unbindEvents=function(r){for(var n=0,i=Object.entries(this.eventHandlerRefs);n<i.length;n++){var a=i[n],o=a[0],s=a[1];r.off(o,s)}this.eventHandlerRefs={}},e.prototype.updateEChartsOption=function(){var r=this.props,n=r.option,i=r.notMerge,a=i===void 0?!1:i,o=r.replaceMerge,s=o===void 0?null:o,l=r.lazyUpdate,u=l===void 0?!1:l,c=r.showLoading,f
146=r.loadingOption,d=f===void 0?null:f,A=this.getEchartsInstance();return A.setOption(n,{notMerge:a,replaceMerge:s,lazyUpdate:u}),c?A.showLoading(d):A.hideLoading(),A},e.prototype.resize=function(){var r=this.getEchartsInstance();if(!this.isInitialResize)try{r.resize({width:"auto",height:"auto"})}catch(n){console.warn(n)}this.isInitialResize=!1},e.prototype.render=function(){var r=this,n=this.props,i=n.style,a=n.className,o=a===void 0?"":a;n.echarts,n.option,n.theme,n.notMerge,n.replaceMerge,n.lazyUpdate,n.showLoading,n.loadingOption,n.opts,n.onChartReady,n.onEvents,n.shouldSetOption,n.autoResize;var s=gZ(n,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),l=Bc({height:300},i);return ue.createElement("div",Bc({ref:function(u){r.ele=u},style:l,className:"echarts-for-react ".concat(o)},s))},e})(H.PureComponent),Sl=(function(t){owe(e,t);function e(r){var n=t.call(this,r)||this;return n.echarts=F2t,n}return e})(Y2t);const oRe=({title:t,value:e,valueColor:r,subtitle:n,xAxisData:i,seriesData:a,unit:o,dropdownLabel:s})=>{const l={...qf({chartName:t,top:"0px",right:"5px"}),grid:{left:40,right:20,top:20,bottom:30},xAxis:{type:"category",data:i,axisTick:{show:!1},axisLine:{lineStyle:{color:"#E5E7EB"}},axisLabel:{color:"#6B7280"}},yAxis:{type:"value",axisLabel:{color:"#6B7280",formatter:`{value} ${o}`},splitLine:{lineStyle:{type:"dashed",color:"#E5E7EB"}}},series:[{type:"bar",data:a,barWidth:14,itemStyle:{borderRadius:[8,8,0,0],color:"#052F2E"}}]};return E.jsx(nr,{className:"h-full w-full bg-primary-white",children:E.jsxs("div",{className:"flex flex-col h-full w-full",children:[E.jsxs("div",{className:"flex justify-between items-start mb-3",children:[E.jsxs("div",{children:[E.jsx("p",{className:"text-xs text-primary-gray-dark",children:t}),E.jsx("p",{className:"text-3xl font-semibold",style:{color:r},children:e}),E.jsx("p",{className:"text-xs text-primary-gray-dark",children:n})]}),s&&E.jsx("span",{className:"rounded-full border px-3 py-1 text-xs text-primary-dark-blue",children:s})]}),E.jsx("div",{className:"flex-1 ",children:E.jsx(Sl,{option:l,style:{width:"100%",height:"100%"},opts:{renderer:"svg"}})})]})})},$2t=()=>
146E.jsx(oRe,{title:"GENERATOR POWER USAGE",value:"-20%",valueColor:"#DC2626",subtitle:"Money spent compare to last year",dropdownLabel:"Greenfield",unit:"Ltr",xAxisData:["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"],seriesData:[460,280,610,370,320,630,470,540]}),Z2t=()=>E.jsx(oRe,{title:"SOLAR POWER USAGE",value:"+120%",valueColor:"#16A34A",subtitle:"Money saved compare to last year",dropdownLabel:"Okota Farm",unit:"Kwh",xAxisData:["Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"],seriesData:[450,280,610,370,320,640,460,530]}),X2t=()=>{const e={series:[{type:"gauge",startAngle:210,endAngle:-30,radius:"90%",pointer:{show:!1},progress:{show:!0,width:14,roundCap:!0,itemStyle:{color:"#052F2E"}},axisLine:{lineStyle:{width:14,color:[[1,"#D1FAF5"]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},data:[{value:70.7}],detail:{valueAnimation:!0,fontSize:28,fontWeight:600,formatter:"{value}%",color:"#052F2E",offsetCenter:[0,"0%"]}}]};return E.jsxs(nr,{className:"h-full w-full bg-primary-gray-light! overflow-visible",children:[E.jsxs("div",{className:"flex justify-between w-full items-center mb-2",children:[E.jsx("p",{className:"text-sm font-medium text-primary-dark-blue",children:"Uptime Ratio"}),E.jsx("span",{className:"text-xs text-primary-gray-dark",children:"Last 24 hours"})]}),E.jsx("div",{className:"flex-1 w-full",children:E.jsx(Sl,{option:e,style:{width:"100%",height:"100%"},opts:{renderer:"svg"}})}),E.jsx("p",{className:"text-center text-xs text-primary-gray-dark",children:"Overall Uptime"})]})},q2t=[{id:"1",title:"Sensor Offline",site:"Site A",timeAgo:"2hrs ago",severity:"critical"},{id:"2",title:"High Temp Alert",site:"Site A",timeAgo:"3hrs ago",severity:"warning"},{id:"3",title:"Sensor Offline",site:"Site B",timeAgo:"2hrs ago",severity:"critical"}],J2t={critical:"bg-red-50 border-red-200",warning:"bg-orange-50 border-orange-200"},eDt=[{header:"Alert",accessorKey:"title",cell:({row:t})=>{const{title:e,severity:r}=t.original;return E.jsxs("div",{className:"flex items-center gap-3",children:[E.jsx(rDt,{severity:r}),E.jsx("span",{className:"font-medium text-gray-900",children:e})]})}},{header:"Site",accessorKey:"site",cell:({getValue:t})=>E.jsx("span",{className:"text-gray-700",children:t()})},{header:"Time",accessorKey:"timeAgo",cell:({getValue:t})=>E.jsx("span",{className:"text-gray-500 text-sm",children:t()})}],tDt=()=>E.jsx(nr,{className:"h-full w-full bg-primary-gray-light!",children:E.jsx(wg,{data:q2t,columns:eDt,emptyStateText:"No alerts available",tableWrapperClassName:"p-0! border-0!",getRowClassName:t=>J2t[t.severity]??"",emptyStateImage:""})});function rDt({severity:t}){const e=t==="critical"?"text-red-500":"text-orange-500";return E.jsx(Kye,{size:18,strokeWidth:2.2,className:e})}function sRe({variant:t="blue",icon:e,className:r}){const n={green:"green-gradient",blue:"blue-gradient"};return E.jsx("div",{className:ah("w-10 h-10 flex items-center justify-center rounded-full text-primary-white",n[t],r),children:e})}function Zee({icon:t,stats:e}){return E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx(sRe,{variant:t.variant,icon:t.icon}),E.jsxs("div",{className:"flex flex-col",children:[E.jsx("span",{className:"p-small font-semibold",children:e.label}),E.jsx("span",{className:"p-large text-primary-blackSecondary",children:e.value})]})]})}function ou(){return E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M16 0C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 3.22133e-08 18.2091 0 16V4C0 1.79086 1.79086 3.22128e-08 4 0H16ZM12.5 6.25C12.0858 6.25001 11.75 6.58579 11.75 7C11.75 7.41421 12.0858 7.74999 12.5 7.75H13.4395L11.1377 11.2617C11.0368 11.4156 10.8091 11.4113 10.7139 11.2539L8.80566 8.10156C8.10601 6.94616 6.41677 6.98516 5.77148 8.17188L3.34082 12.6416C3.14298 13.0055 3.27772 13.4613 3.6416 13.6592C4.0055 13.857 4.46131 13.7223 4.65918 13.3584L7.08984 8.88867C7.18206 8.71918 7.42254 8.71383 7.52246 8.87891L9.43066 12.0312C10.0975 13.1326 11.6857 13.1608 12.3916 12.084L14.8379 8.35254L15.3291 9.33496C15.5143 9.70531 15.9
146646 9.85583 16.335 9.6709C16.7053 9.48572 16.8558 9.03545 16.6709 8.66504L15.9473 7.21777C15.6508 6.6249 15.0447 6.25 14.3818 6.25H12.5Z",fill:"white"})})}function nDt(){const t=[{label:"Total Devices",value:"23",icon:E.jsx(fQe,{})},{label:"Revenue Saved",value:"56.2M",icon:E.jsx(ou,{})},{label:"Monthly  usage",value:"234Ltr",icon:E.jsx(ou,{})}];return E.jsxs(nr,{className:"flex-1",children:[E.jsx("h2",{className:"w-full flex gap-2 heading-2x-large items-center",style:{paddingBottom:C$},children:"Generator Power"}),E.jsxs("div",{className:"flex flex-col 2xl:flex-row gap-6 flex-1 w-full",children:[E.jsx("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-6 lg:gap-1 ",children:t.map(e=>E.jsx(Zee,{icon:{variant:"green",icon:e.icon},stats:e},e.label))}),E.jsxs("div",{className:"flex-1 flex flex-col lg:flex-row gap-4 *:basis-1/2 pr-4",children:[E.jsx("div",{className:"min-h-62.5 min-w-50",children:E.jsx(X2t,{})}),E.jsx("div",{className:"min-h-62.5",children:E.jsx(tDt,{})})]})]})]})}function Xee({label:t,icon:e,onClick:r,isLoading:n}){return E.jsxs(na.div,{onClick:n?void 0:r,initial:{opacity:0,y:6},animate:{opacity:1,y:0},whileHover:n?void 0:{scale:1.05},whileTap:n?void 0:{scale:.96},transition:{type:"spring",stiffness:300,damping:20},className:`
147        max-w-fit flex items-center gap-2 px-4 py-2
148        rounded-full
149        text-primary-white
150        bg-white/10 backdrop-blur-md
151        border border-white/20
152        shadow-lg
153        transition-colors duration-200
154        ${n?"cursor-not-allowed opacity-70":" hover:bg-white/20"}
155      `,children:[E.jsx("span",{className:"text-xl flex items-center justify-center",children:n?E.jsx(na.span,{animate:{rotate:360},transition:{repeat:1/0,duration:.9,ease:"linear"},children:E.jsx(mn,{})}):e}),E.jsx("span",{className:"whitespace-nowrap",children:n?"":t})]})}function iDt(){const t=[{label:"15 Active Sites",icon:E.jsx(UX,{})},{label:"2 sites offline",icon:E.jsx(HX,{})}];return E.jsxs(nr,{className:"relative flex flex-col min-h-62.5! flex-1 overflow-hidden pb-6 xl:max-w-150",children:[E.jsx("img",{src:bQe,alt:"Generator",className:"absolute inset-0 w-full h-full object-cover pointer-events-none z-0"}),E.jsxs("div",{className:"relative z-10 flex flex-col justify-between h-full w-full",children:[E.jsxs("div",{children:[E.jsx("span",{className:"p-small text-primary-white",children:"Fuel Consumption Metrics"}),E.jsx("h1",{className:"heading-3x-large text-primary-white",children:"Generators"})]}),E.jsx("div",{className:"flex-1 flex items-end gap-2",children:t.map(e=>E.jsx(Xee,{label:e.label,icon:e.icon},e.label))})]})]})}function Uc(){return E.jsx("svg",{width:"19",height:"21",viewBox:"0 0 19 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M9 9.25H14L5 20.75V12.25H0L9 0.75V9.25ZM15.5 0C15.8028 1.93998e-05 16.0759 0.182444 16.1924 0.461914L18.6924 6.46191C18.8514 6.84418 18.6703 7.28312 18.2881 7.44238C17.9058 7.60147 17.4669 7.42033 17.3076 7.03809L16.667 5.5H14.333L13.6924 7.03809C13.5331 7.42031 13.0942 7.60141 12.7119 7.44238C12.3297 7.28312 12.1485 6.84419 12.3076 6.46191L14.8076 0.461914C14.9241 0.182429 15.1972 0 15.5 0ZM14.958 4H16.042L15.5 2.7002L14.958 4Z",fill:"white"})})}const aDt={hidden:{opacity:0,y:-10},visible:{opacity:1,y:0,transition:{duration:.3}}};function ZI({title:t,time:e,className:r}){return E.jsxs("div",{className:`w-full flex flex-col sm:flex-row justify-between sm:items-center  border-b border-primary-border pb-4 ${r}`,children:[E.jsx(na.h3,{className:"heading-regular",variants:aDt,initial:"hidden",animate:"visible",children:t}),e&&E.jsx("span",{className:"rounded-full py-1 px-1.5 border border-primary-border text-xs text-primary-dark-blue/60 bg-primary-yellow/20 max-w-fit",children:Ah(e)})]})}const qee=({company_id:t,isDummy:e=!1})=>{const{t:r,FEEDBACK_MESSAGES:n}=Vt(),{data:i,isLoading:a,error:o}=hr(["/operations","fetchSiteMonitored",t],"/operations/sites-monitored",{company_id:t},{...ri},{isDummy:e,data:pbe}),s=i||{total:0,dataset:[],time:""},l=s?.time??"",u=f=>{switch(f){case"active":return r("common.active");case"offline":return r("common.offline");default:return f}}
155,c={...qf({chartName:r("chart.site_monitored"),top:"0px",right:"5px"}),legend:{top:"92%",left:"center",data:s?.dataset.map(f=>`${u(f.key)} (${f.value})`)},series:[{type:"pie",radius:["50%","80%"],center:["50%","50%"],data:s?.dataset.map(f=>({...f,name:`${u(f.key)} (${f.value})`,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:6,color:f.key==="active"?Bt.PRIMARY_DARK_BLUE:"#dcdcdc"}})),label:{show:!1},labelLine:{show:!1}}]};return E.jsxs(nr,{className:"w-full flex flex-col flex-1 h-full",children:[E.jsx(ZI,{title:r("chart.site_monitored"),time:l}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative min-h-50",children:a?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(mn,{})}):o?o.response.data.detail?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(hu,{message:n.NO_DEVICE})}):E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(Ci,{message:n.ERROR})}):s.total?E.jsxs("div",{className:"flex-3 w-full relative  min-h-80",children:[E.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none -top-4",children:[E.jsx("span",{className:"text-xl flex flex-col font-semibold",children:s.total}),E.jsx("span",{className:"text-sm flex flex-col font-semibold",children:r("site_details.location")})]}),E.jsx(Sl,{option:c,style:{height:"100%",width:"100%"}})]}):E.jsx(Us,{message:n.NO_DATA})})]})};function oDt(){return E.jsx("div",{className:"flex items-center justify-center w-10 h-10 ",children:E.jsx("img",{src:SQe,alt:"Power Grid",className:"object-contain"})})}const sDt=[{label:"Total Consumption",value:"36987.56 kWh",icon:E.jsx(Uc,{})},{label:"Total Revenue",value:"56.2M",icon:E.jsx(ou,{})},{label:"CO2 Saved",value:"2.3tons",icon:E.jsx(ou,{})}];function lDt({company_id:t,isDummy:e=!1}){return E.jsxs(nr,{className:"flex-1",children:[E.jsxs("h2",{className:"w-full flex gap-2 heading-2x-large items-center",style:{paddingBottom:C$},children:[E.jsx(oDt,{}),"Grid"]}),E.jsxs("div",{className:"flex flex-col 2xl:flex-row gap-6 flex-1 w-full",children:[E.jsx("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-6 lg:gap-1 ",children:sDt.map(r=>E.jsx(Zee,{icon:{variant:"blue",icon:r.icon},stats:r},r.label))}),E.jsx("div",{className:"flex-1 min-h-62.5",children:E.jsx(qee,{company_id:t,isDummy:e})})]})]})}function lRe({company_id:t,isDummy:e=!1}){const{t:r}=Vt(),{data:n,isLoading:i}=hr(["/operations","fetchSiteMonitored",t],"/operations/sites-monitored",{company_id:t},{...ri},{isDummy:e,data:pbe}),a=n||{dataset:[]},o=l=>{switch(l){case"active":return E.jsx(UX,{});case"offline":return E.jsx(HX,{})}},s=a?.dataset?.map(l=>({label:`${l.value} ${l.key} sites`,icon:o(l.key)}));return E.jsxs(nr,{className:"relative flex flex-col min-h-62.5! flex-1 overflow-hidden pb-6 xl:max-w-150",children:[E.jsx("img",{src:xQe,alt:"Solar",className:"absolute inset-0 w-full h-full object-cover pointer-events-none z-0"}),E.jsx("div",{className:"absolute inset-0 bg-primary-dark-blue/50 z-1"}),E.jsxs("div",{className:"relative z-10 flex flex-col justify-between h-full w-full",children:[E.jsxs("div",{children:[E.jsx("span",{className:"p-small text-primary-white",children:r("feeback.grid_description")}),E.jsx("h1",{className:"heading-2x-large text-primary-white",children:r("feedback.grid_heading")})]}),E.jsx("div",{className:"flex-1 flex items-end gap-2",children:s?.map(l=>E.jsx(Xee,{label:l.label,icon:l.icon,isLoading:i},l.label))})]})]})}function uDt(){return E.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[E.jsx("rect",{width:"40",height:"40",fill:"url(#pattern0_5913_2066)"}),E.jsxs("defs",{children:[E.jsx("pattern",{id:"pattern0_5913_2066",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:E.jsx("use",{xlinkHref:"#image0_5913_2066",transform:"scale(0.01)"})}),E.jsx("image",{id:"image0_5913_2066",width:"100",height:"100",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAgAElEQVR4nO2dCVSbaXamqa7qpJNJ95kkM5kzyUxm0nOSTjrJdKYrXVtXlavKVd53G2MbMLZZDNgYbLzgFeN9wzZgMJuNWc1idsy+74sWJBYhEAgJsQgQILGD0Dvnfv8vwO7qTKa6qpdqvnPu0YIsS9/zv/e99/4SWFisrJW1slbWylpZK2tlrayVtbJW1spaWd/Ugrf3dwDLN4HEN5GY+GZiouWbrz7A4g26L9HS8k0k0uPo8XjDwsKCYmV9HQuweKOkxPstCJy+y2/u8vWGt7f3W4neln+Q7ef2h96rVr31+ubDwuINeHu/Be9Vb9H1X++r/5YtdpQTDHAb2Zzo/Sf9Fbf+cbT+7g6DyPfSpNQ3bEJ0J9VQd7PYUHejeLzmRup4zfUwXYnPZVXWeUtFsvc/1fq5/WDp+b5EVSvr35ua8B3z7SGh39tjogeXZuQBRbNtD4dNHQ+BzvtA1z2g/SYWWq5hockHpiYfQOIDo9Ab0zWXMFZyfkRXcL60J/3
155sZXmS17tmsKQ0b2/vxedfWb9k0YYxf+BT04jw0cfjzf4p811BQ+gJhEn1ENNtNzHe5DOvl1yc0zeenxsVes2PNpw2jtZ7zutqjs8PV3rMDZe6zQ2XHp0fKXXDVKWnabrsDEbyvUbU6aczFElnV5v/r5ISSmO/kAZXFi2CQOmJrutbHv/thDwwdlYZNI++IEx33DVNym/Mjcuuzo+3+ixMtHhjouUiJpvOY0J6FhPi0xgXnoS+4Tj0de4YrToKXZmrabDIaWEgz3Fem+s0N5jrtKAvcIc229OoTjuT0PbixN8vpsUVtXyZMiiNrHprWv74wGx3yCAGwzGl8F2YaL9tnOy4tTDZfh1T7dcwJffBpMwbE60XMNF8DuNSL4w3noJB5Al9gwfG6o5hrPoIRipcoCt1wnCRAwbzD6E/5+BCX+ZBY2/6oYXxAg9os04NdaecdfRexTzqO1SR/ab34bdimTeiPdvtD2e6ggMw/Gx+Vv0I4/I7xqnOe5juvIvpzluYVlzHVMdVTLX7YKrNG5Oyi5hoOY+JZi9MSE9hvNETBqEH9A3HoK89gtEqZ4yUO0JXbI/hwgMYzLXDQPZ+9GXuN6mTbef70x1No7meC5p0r7DaaO8fmNVi8fu8zH2CLO3U96dVYSkYi8J0t//cRKfvwkz3A0wr72K66zamu25huvMGphTXOCDyy5hsu4jJVgJyFhPS0xhvPAmD6DgMAneM1R3BWLUzRiocoSs5hKFCOwzm2UKbY4P+TGv0Z9hCnWyzoEk5MDtR4In+jNMvs4L2/Sm9pt/bKoxVUhYWb2hLvP9kric0FWORmFL6zU0rH5oIxky3L2a672FaeYcD0nUD0wSk4wqm2i9jSn4Jk7ILmGw5i4mm0xiXnIRBzAOpP4qxGheMVjpipNQeumI7DOXbYjDHGtqsfejP2Iu+tH1QJ1ubVEk2c4Z8d/RnnspJ9bb7j/Tafu8qMLNnWFpYvDmlDgmFIRpT3f5zMyo/zKgeYkb1ADOq+zyUu5hWkkpuYrqT0tYVTHWY09Z5DkjzGYxLeSBCd+gblgEpPwRdyQEMFdhiMNca2uy96M+0Ql+aFXpT9qDnhbWpO8Fm3pDnjr70kzHkY6zA+MUm9Nu7zNXUjCrYA6ORmFY9mp9R+5tmevwx0+OHmZ6HmFFTEBhfzKjuYmYRilkl3nzaOseAcD5yAgaRBwwNbtDXuWK0ygmj5Q4YKT2I4UJbDOVbYzB7LwayrNCfvhu9qbuhSbaCOmmvSZ1oMzuW7Y6u526X2GvE70nqMpu4vuXBu/Oa4InZniBMqwMW5jQBmO2h8OfDj4dyHzOqe5jpvoNpJaeSacUVTMmXgEy+DkTAARmrJiD2HJCi/RyQHDMQS/Sl7YImeRc0SbvRnWC1oE6yXehPPTLdHumyavlr/danKpo3zfUEFUL3hKljThOIWc0jPug6f9usGJbCyE9u80Co2uKNXfb/AFJhD10ZB2S4wBpDOXugfbkb/RkEZCc0yTvQk7QTPUmWUMZZGYfSHaBJOlyT4b3pjy2+7QvgUtV0u+9B41DYwlT3o4VFAL1BXPQ9xmxfMHdJtxkYgkJ+QgZ/kzd3H0zKlyvkJMYbj8Mgcoeh4Sj0dS4ckMpD0JUdgK7IFsMF+zCUawXtS0sMZOxEX+p29L7YBk3SNqgTtkMVbwlFrNXCYLoj1PGHXNlr/rZWXeZueCjt1PcX+h5VYTiU1GFchNH3GHN9IZjrD8Vcfxh3SWB6H/NQyOzv8SUwAbm8DMjpZUCOwdBwBPpaZ4xVOWKUTL3UDroiGwzn78VQzm5os3ahP307+lK2QZO8BT2JW6CO3wLV8+1Qxu4wapJs0BVr1yp+sJWvuiy+86018knF3R0YCMSMOsA4ow4wccowwwjD3MATzA085aIvHLN9IRwwSl8q38W0tVwhXJXliXGxBwxCN+jrXTFWcxijVQ4YLTuAkZL9GC60xlD+HgzmWGIgayf607ehL3ULNC82oSdhE9Txm6CK2wxl7DaTImbXgibRFq1P9zrQaxaEvP1di2+fd1i8UbJq1VsLfQ9joA/FtNp/btEzmDpIGQQjAnMDkZgbeMagzBIUppIAVgqzvoSAtPvwpm7uQ05gXOwOg/Ao9PUuGKtxxFjlIYyU2WGk2AbDBXsxlLcbg9k7MZC5Hf1pW9CbsgmapPXoiV8P9fP1UMWtR3fMZiiits4PJO6FIsoyc9Uqi7e46fO36FyKuVoZEXr+D6Pmfr+xPwDTKv8FBqQ3iKWmuQFSRwTmtJGYH4zCnJbiGYPEPEXziJn7dBcBucabOjWGXphoonTFq6PBFfrawxirssdIOanDBrrCfRjKs8Jgzi5os7ajP30L+lI2QvNiA3oS1kIdtxaq2LXojlkLZdR6dDzbuNAVvR3dUTuHRP5rfvKt6+DNb2ay/dpOaP0wpXpgpJ6DjvrZvkAuXQ2Ec0AGozA/GP0qkN7gJYXQKIVVWVT2UmNoNnROHQZeHaOVBzFSagtd8T4MFVhhKGcXBl9ux0DGFvSlbkTvi3XQJKyBOv5zqOJWozt6NZRRn0MZ+QUUEWvR/nTDfG/MNjQHrD9Ir53OOFp82xQyq7p+ByOPMKW8Pz+n8eOA9Aa+ppCoZRGBub4wLmWxSos3dQLCRie8oUs8YRAfg0HgCn0dqcMBI+X7MVK8D7pCKwzlcTC0mZsxkLYBfcnroEnkYKjjPocq5jN0R62GMvIzdEasRufTzyEL/Xx+IGYjOoLXBC5/D9+qNdt1rQCDDzGlvGekqok2ebb3Eechi4b+jA/yEkpXIVy6UtOw8Q6mFTd4/7iAyVZKV6cwITnOe4cz9IvqoFS1h8HQ5myHNmsL+tM3oS9lAzRJa9ETvxrq2I+hinofyoh30BX+M3
155SGvYOO0PfQEfohWoM/Nqoi1kD2+POKtNsffN+CO5H1u+8ji6dNS+y+N93h04Y+X0wp7y7Mqn0xq37AQ+FVwsrdJ3yQmROMIK5jJ3V03uJG8Lw6JlrM1ZU7DAIqdUkdhzBavh+64r0YzrfEUO4uDGZvw0D6BvS/+BS9z99HT8y7UEV9AGXUKnTFbEBn3DYoYnagI3or5BHrIQv5GM3+P1toD3gbTXf/SVng9Zd/zr2XEppzvfk7PXw01/CT4nN/Ndl2adCovo2prlsmNp9iUB5iVuPPN4bBzE+YKpiRB2JmWbnLjd8vY4qpg4aKpI4TGGe9hwvGaqkRPAgdqaNoL4byd2MwayO0qZ+gP2UN+l7aobf0GnoFsdC0lEHT0YQeZQd6VEqoVSqolF1QKuTolEnQLioxtZdHoyX9yoQgN3JTSTP+xPxe6Hy/QCD4Lq+a361FZ+PoUl/v/qNJ2YWJWeV1TClvmGZUt1nnPau6xynF7CmLY5SARWXMkJHzpe4SDM47FtVRt6SOkRJbDOdtx2DG5xikUUntPWjbKzDYPwDtyBQGR2eg1U1icFgP7eAYBrQj6B8YRm//MDT9OvT06aDuG4Wyz4AuzRg6lb3GLtWAUCZX3RYImj8rKVF+j94TKSUxEb9b1ZfZDHVVx/5pUnZ+ZqbrKqY6r5lmlDcw032LQTGrhQaJBIcbKC4blXRe5TpzHgbXmXvypS5VVs4Yq3FgYxLyjuG8jdyYpPEJhnoVGB6bYaEb0WN4aBjDQ0MY4mNwcAha7RAGBobQPzCI3r4BaHr70aPpg0rdA2W3Gl3dGpOmfwTa4XF09wyNtynUxSJRm31eXuN/4N4jXvmUzO+IQpx/NNlyZmKm8zJ12abprquY7roGDsxNHg6p5vayUft1TNFkt90bU1TiMhM/iQnpsiawwYUZuZ4qq9I90BVsh67hDkb6FRjRz2J0bAIjIyMY0ekwMjKKkZEx6Ch0oxgeHsHQ8AgGh3TQDg5jQDuEvv5B9PZroenTQq0ZgErdjy5lj6ldoTLKFaq59k71grp3CN09g8bmVmWjWNq229KSK+vJX37rjX/RQ2od/ttk06nBuU5vGnmYphWXMd3pw45+Fl3XWMNnnuayETvzi4uYovKW+g2+ARwXH8O44AhTBsEYq3bAaMkujJQegk5RiBH9DEbHJjE6MsLFqJ7FyOgYi0UguleBaLXDTCV9/Vr09mnR0zsAVU8fulW9UHZroOhSQ65QLbR1KOdlbZ3GTmUfFMp+SFs702pqhP9A7xMAO8Fl8du7uBeHklXfm2o6KTd1XcSE7NzCdMdFTHdcAgPTcZm7ZNe9MdV+CVPtFzHVdg6TrWcw0XIakwRD4oFxkRvGha4cjFoH6KvtMVqyEyO1pzA6oMDYuBH6sVHox8agHzNArzdgTK/H2BgXo2M8mOVQhnQMyiCvEjOUnr4BLnX19DEgncoedHSq0K5QQSZXokXWaWxqVcx3a4Yg79T0ixrl+3+nPog3JT1eBOV5jDefXphuO4cp+XlMyS/wQdfPMwhTsrOYlHlhsuU0n6KOY7zxGMZFR1k1Zag/jLEae4wxGDsw0nAZo7ph6MdnoR/TQa/XQ28YXwoGxYCxMQpSC6cUSmEEZWhYx0F5DQhTiaYfal4lXcoephKCIu/ohkzehZa2TjQ2yedl7aoFhbLPKJa03XNy4j6H/FvrK4uduuSYL7rPYbzp5PyU7AymZF6YauODAMjOYLL1NCZbTmGy2ZN5xQSpQnwU48IjMDQ4Q1/nCH31Ia6iYjC8MTYyCr1hEoaxERgM478Qer1ZKcuAMC/hFMK8hKmEAzIwMLgIhQxezQye0lYPOhkQNdoV3Whr70JrWyda27ogaZIvSFs65pU9gxBL2+Mr0yq/z73330IoZiBTdS6WaPOEQeJhnGzyxGTzSUy2LItmT0w2nWCKmJC4Y0LshnHREYwLSBVO0NfaQ199AGNVBzFSvAMj1ScwNjIEvWEKev3YEoRxPgw8kNegcJ6ypBDO3DkgrOLSvgqEq7g4H+lSqjmVKLohb+9aVEmzTAFJU5upUSqfIyiNTe2p1dXVf0Tv+7cufZlNbiBr3w+nhC5D003HYBC7LUxI3TEh9cBEkwe46+6YkLhhvPEoxkWuMBCIhsPQ1zlATymqyg6jFTSjsmTnOEa1HTBMzMKgH2UAxscnvjQMPBwzlCWDJ4W8BmSQgPAlMKUtBoTSVi+6VRp08SpRkJd0KBdV0tzagaaWdlIKRJJWppSmlo6IpX6FfWaZlcd0e+mTLb+BAoB9RwMWb4Q4vf3decHh55Adw1iD8zw7+ikdiY/w4YpxoQsMAmcYGpygr3eAvvYQxkgVlfsxWmaNkeK90OVvwWhXIQyTCzCMjbLNHl8OZGJZjPNQmFJ4lSymrVEubfFAhhaBcArp54FolgGhtMVUsgyITE5piwMibSYobRA1ts53KHshlsjP0x4QkC/ZmTdKSkreoq6f//mvDw5KuPH1YOHePXMCRxjqHOf1dU4mg+AwuHBiEAz1DjDU2UNfcxBjVTyIcmuMUo9Rshe63HUYEd5n1ZSBpSnDEoyJCUywmORjYhHKcj/5/wZCPtLTC5V6GZAuqraUfNoiIAo0t7ZD2iJnQMSNsgWxRGZqa1cZKqvF1pmF1X9VU9P0DzWilr8tq639m/T0wv8SERHBOn7zIjhfDu6bAMLnUVXsxj+dqbStnxPaY6TqgJEUYKg7BD1F7UGMEYjq/RirtGUgRsr2YqTECiPFuzGcu5l9vmp0qBcGwxQMev0ryngVxlK8nrZ+EYhuCciih2iXAenjgfSgm4B0q9HZpULHMiAtPJAmBkQGsUQGUWPLQqNUhkapXC+UdqqEUsWguFk50NSqUso7NQ3tnX1pIqn8doNItquiQvDXi3v16+r8BSFO7Ny0NnOHy2yVDUZKrefHKmzZ5nNhg9EKa4yW72OKGCnZDV3RLugKdnCzqfRPoZOlQj/B9Rqv+8aXwZggIBOvpq0vBcJXWdwYhQPS1780RmFAVBp00yhFSUC6F4G0yRUsZTEgzWYgrZS20CBsMlGIpe0QN3VCJO2AtKULMoUGnSotVBodFN0Dc/LO3vZGifypSNTxgdlXaALwjYIxj+ITvX/8B6M52yunK/ZgqNDSOFpqxamAVwKDULgTw/nbMZy7BUM526BN/wSDRa5sI2lTX0lVi+lqGYjJ14GMfzkQVvZy6uCADGKAV0cfm2v18UA06Fbxsy2ligfSBXl7J2RyBVoISIsc0uY2SKQyiBtbIGpshkDcjHqBdKG6VmSsbWhaqBe1LtQLW4wNotZ5YWPbnFgqn2tqURjlCrWpu2cQre2qWUmzIlUg6fjpr0Ut5hJYnfj5Kn3OlunhnK2mwdxtJrb5FHnbMJS3FUM5WzCUvRHazPXQpq9Ff9IHGJbnQD9p5PsNw2vq+OVAJpYBMfxbQHj/4IAMcEA0fejp6YVaTUDUUCpV6FJ2Q9HZjfYOHkhbB1pb5SxdSZspRZE6miESN0MgakKDUIrahkZU14khbJRBIJaxS5GkDWKpnBpLk6SZ62OaWjtMXWotmuWqaUmL0ic6u/YHy+Zk3xAUfr7VH7/67HTuBvSnr5vTZmwwDWZuwCAByFjHIAykrUV/ylr0xr+H/pf7MTo6Cr1+nDdzboMXqyjewH8xZU38Eg+hQSNv6Lw6GJBl6mAl7yKMHihVnDKW1KFAm7wDrbJ2tLTI0dQsg6SpFWJJC4TiJghEUjQIJagXNKK2XozyqgbUCaQ8lFZ2KZa0sVKZqrOmFkpnHWhsajO2tHXNq3p1kLR0VFQJpNy3vb4ppcD8fXLvH/9B97MP4yczVqMv4ZOZ3sRPTf3Jn6E/eTX6ElehN/Zn6Hn2v6EK/SEGBE8xNmliIxJzZURHN3XcNJ+ihs8MaEktE0tAeHVwQMYwyvyDew4OyBBXYS2qox+9lK56NLyZ86mqUwlFpxLtHZ0MhqytHS0yUkcbpE2taJTyqeoVGCLU1AlRXlmHyhohhI0Eg/MYMn8zEGkLB6W5VcFUI5bI5hXdfWhp61ZW1Uk+pr37xs6/mFVS4PX3f94V+k7ByPMP6LTqvDr6PXSH/yO6n/6EfaKwt/A8BkTPoRvsg06nx9AgHcn8iIMPmtQSIGr2aMNp85fDGH+lMTTPsvh0pVtKV+
155QfZjPn+o8+pg4VqYP3DYWii6mjndTR1o5WmRwtrW2cOqQtaJRQqpJCIJSgQdCIugYxauuEqK4ToqyiFqXlNSyNiZjHmIG0QdpsVslS0G2xRDYna+9GU2unrqam6RNzefyNQsnz/OFfdAS8ndcT9CPI/P5uQZXugsHWXIzqhqCfMrEY049zo3PqrkdGMKQbhXZIx1VE/dxGDgwOMTDM+PXLPOZLmsKlORYPhMElGFTq9qFX04seDQeDUwf5Rhc6OjoZDBlLVXK0MGVwMMSSJggbpRAyGGLUNog4GLUCVFbXo7S8GoUlFahraORNn4C0sqqMigGCshyIhCq2ZjlrMlvkSrTKu9V5JSX/Qnv2jfUriYkW7IlD3rb44+bQbS8N7QUwTBrnJ2ZMGJ+Y4fyCxumLm8mNPXTDo6xUZSeWFs/0DbD8T/eb1aJfDPP4/VUzN3uHubpaTFUaKnOpqlKhi5TR2YX2DgXk7R2LymhukaGpqZVXRhOEYgkEokYGo65eiJo6AaprGhiM8spaFJdWIq+wFNW1Ql4hzcxvqCrjVNLGCgNzECC6n1KaQNQ039ahhrRFURcWlvhn7ID+Js67mI3KYDBsn5pHz6wRdFQvjBvGME7l7bIumw0G+fMZdIRTM0dAzKdeqTyloOu00SMjo0wN5nMhzDtYdUWpioAM8935UmVFMDSkDlbmcsog3yBlyJlnyBdhSJtoM5shJlWIGiEQitEgEHEwahtQVVOPyqo6lLNUVY3C4nJk5xYyOGT6VIURFKrKzCqhPoYBYSmMYLSBmktKbfVC6bxc0QNRo+zRN+IndHaNLnU63Z7Z2dkFo3GeprYmsykvNnTjvxzI4GtAaCpLMyeaP2m1Q2zjCQIXXGWl0+mWlbqD0Gq16B8YQF8/deUcDBVf4r4Cg6UoGZqbWyFtakajRAqRWMLBYCAEqK1rQE1tPaqqa1FRWYPyimqUlFWhqKQC+YUlyHqZx5TSIGyEUCSFqLEJjUwl9JxmKJxaKBgMVka3QCBiPY2pqVUxVV4l2PS1+om5rh4eHn7PaFwYmp2bo003Tk1OYYIFAeGgLCpk2cmlXw6EmzVRA9ej6UO/dpBtPqUos4kPDxEMKgYIBvnPa1UVg9H9pTCamloglZphLKmivl7AQFTX1PEwqlFWXoXSskoUlZSjoKgUuXlFyMjMQWFRGeoaRGgQUIqTMChiCSmFA0OlM5eqWtEo4cto1mQ2oU7QOC9tUUAgain29fX9o68ldZmfQCaTfd9oNBYCwLhhYm5qahqTk1OLMTH5b4w8zKdeB5c+LdLDjzfYnKlTiU6lit1H6Yj7lAmXoujfDGp5ZfR/OYyuLoKhgFzezsNoRVNTMySSJjQ2SiDiVVHPq6K6tg5VVbWorKxGeQWBqEBxSTkKi0tRUFiC3PwivMzOQ2paFnLzi1FTK0BdPUERQ0hQxDwUHgwLSQvE1GA2NnN9DTWY9WJTTZ3IKBS3oKiibvfXohKzOgyGSScGY3xybnJyElNTUyAodMmALJ9BvT4U5PsH6h3MQ0BuRE7nK7rR3k4m3InOLiWrlkgFVEmZDZxgcL7Rj74+zjfUrN8gE1dCoaBqigycylpOGQRDLH4NBlNFLaqqOBBl5ZU8jDIUFpUgv6AIuXmFyM7JR0ZWDl6kpCMntwBV1XXMZzgojUtQSC1k9nzQfYtNpkCCunoxKmsa5sXSNtTWS1L8/Pz+8GtRCaljZm5OtGAykUcYp6anfwmQ5R023z/wA0G2uezMHjdz4jaUzlXQeQoF66DbZO0clJ5epgTyCVIFB4KU0QuNRvMKjCVltDFlSKVmVYghEAjR0CBAXV09ampqUVlVjYqKKpSXVaK0tPwVEHl5BcjJyUfWy1xkZGYjJTUTCUkpyM7JZemssqqWhyJkShEIG1kKEy4Luo+A1VMZXc+V0OWVdabK6gaUVdRNZGWV/sOvdFbSXD9PzMxsMBqN0I+Pm2jzORhTy2DQ2PzVcQfnHUvNnLmRM484SB3UTVPel8naubK0uZVVRVS2kr+QElifwUCQgfdArVa/oozlMChNLYdRX9+AWh4Gp4pKlJWVo7SkFMXFJSgsKkZ+QSFy8/KRnZOHrKwcZGS8RFp6Jl68SMXz+CRkvcxBSWkFM/wlpQhR3yBiG9+wLOg+UhEHw1xC16GopNJI87GC4gon2k/zZ8O+crqamJgKoHRl0BuMZs8ww6D0xdSxOO7gStbl/YN5zMHUwXfU1DOQEdOMiYZ9Er4kpR6B0g5tNm08qYELNQeDPIM1fZwyWltlaGlueUUZy1VRXV3DVFFWVoHS0jIGoqioCAUFhbwq8vDyZQ4yMzkQqanpeJFMMBIRExePzKxsFBWXstRGlRgHpR61teRHfDBvErBexlxCV1TXoayiBqVl1SgoLDPW1ImQX1j+5CsrZPlHY8YMhlqWrgyGBQKwZObLBoKLMHjvWNZZM3XwfYPZjCk1tfPqIGWIGynvili+F4ulbKMJCimBjFupVEJJqujsRHtHB9rkcvYYVklJpBA3iiEUitDQ0IDa2jpU19SgsqoKFbwqSkpKUVRUzIPIZ5GdnYOXWdnIyMhCWloGkpPTkJSUjPiEJETHxCEqOo79rKCgiKU38hwGpaqWgaEqzRxV1VwfQ6mtvLKG9TIlJRWsn8nNK14oLqvEy+yCuq+kDB4I903coaG/NBgMmpmZGUpJC5SeJqmiWj5/YpUVB4P7yA7XyDHf4Bs58gDNssqoQ8EN/GicQeoQihoXjZeObrGokW04qUDRoUCHQoGOjg7OvGUEoxXNzVRJSSEWN0IoJL9oQB3BqK5BZWUVyssrUFZahpISXhX5BQxEbi6pIhtZWS+RnpGJ1LQ0JCenIjEhCfHxiYiNfY6IiEhERkazn5OSyGtKKXWVE+RqBqayio/KmsU+xlw+F5eWs3+Tl1+Cl9n5ppy8IqSmv+yN9vP7wVcydnO6Ghwc/Onc3LyOV4GJO9HExdJUVr/YzC2es3htxKHhxxtszsRgtLNBH/UJ1LDVNwjZkUbGS0c2pRtKP7TpslYZ84k2mQytrNlrRpO0CRKWokhVQtTX1aOWUhQz7iVVFC9TRU5OLqeKl6SKTKSnZyAlJRUvXiQjMTEJcXHPERMTi2fPohAaGs4u09LTkZ2di/z8Qpa6SkrLWfoqK6tkimFBRUJZJfMaKp+L+PI5J5ev2DJzTBmZuUhIShuNiIj4n18pbZk786GhoU/n5+cNtOm0+ctjae603DP4EQeDwfUNy8vUTmbEHcwnqIOm0pQ2tLaWJF+NUtrI0jKUl5czKJSGSAVNTU3MtKVSKSQSCRrFjRDxKYpg1NRQKqGjl1cFeUUheQWpIg85OQTiJbIys5CRkS488akAABEESURBVIG01DSkJKcgKekFEhISGYzo6Gg8exaJ8PCnCAoKZtfJU7KyspnxFxYWoai4hKWvkmVBt4uLuYqtoKAYefmFyMldXrFlmJJTMhAblzQeHh7+o68ExNzAaHu1a+fm5ib5OZOJffRz8fO33LkK87zplfHG4qyJylTqxjllUAqiLloipflQIxoaCAanDIJBlQ9tYmFhIauGaJNp00VCIcRiMcQiMQMhEAhQX0/mSsZdjcrKSgaR/g1n2hyIXFIFpScCkZ6BtLQ0ThVJL5CYmIjnz58jNjYWUVFRiHgagfCwcDx+HIxHAY/YffRYUhOpJDevgFVl5CkFhcUoLCxml3Sb62EKGIiX2bnIzMpBWnoWUlLSEZ+YbEpIfIFnkbH6J0+e/PArAuEU0t/fzxTCvibABoBccF8XGOFnTdx5D7MqqG9YOmFEnqGEosMMo5U1bUIhlYkCrj+opCqonJkul99fIjs7G/n5+exIr6qsQm1NDQPQUF/PFEFeUVNdg6rKSlQwryhFSTFtUiHyySfMILJ4RTAQKUh+8QJJSeQV8YiLi0NMdDSiIiPx9GkEwkLDEPw4GP5+/vD392eKIQWlpZFK6DXlsNdnLgrIW3Jz85GTm8f6Fa5ay16q1l4kIz6RFQimmNh4hD95NuDrG/bVpr/0G0eZQrTaf5mamtSRGnQ6nYmDsASC+yLN8nPbyztpGmtwJWpbG9crUPohAybjrq6uZb0BlaNFPIzMTKp40pBOufvlS+Tl5jIfqCgvZ2qp5oMDUc6BKClGUWEhCvLz2ePp32VlZi4qItUMIjERCQnxeE4gYmIQHRWFZxERePrkCYPx+PFjBDx6BN97vgjw90dUVDRLZ6QS8ht6beQ/BJrzohxk8cWBuVJLSU3DixcpSEx8gbjn8axai4iIWoiMjEFwcLj4K3fp5ipLoVD8xaB2UG3QG2jzF+hbTWzWRDOmQe2SIvponK6BukfNVVKscVOgvZ0aN86IqU/g/KJ2sQqivoBMNzc3j6UVyuuUSmgD09PSkJmRgdycHLbhpSUlDAAFXS8uKkJhQQEHIicHOYsg0pGWmoqU5GS8SEriQMQTiFjEvgLiKcLCwhASEoKgwCAG4cH9+7h18xYeBfgj6tkzPI97ztIbva7U1DSkp6UjPT1zsShIz8hgajAXBwkJSXj+PB4xMXGsSnsaEYng4FAjVW1BQUEx/PZ+tU7dTFOr1ZZSiTswMLBg9gjtstkSO2PHTp9SF801blSqyul8BHXQUporUcPWwMyXjJd1y3wpSoabmZmJ1JRUx
155D9/ztIIHcXJL5KQlpLCNpiO+vzcXLb5ixBycxms7F8A8QIvkhKRmBCPhPjnPIhoxERFIfLZM0Q8fYon4WEICw1F8OPHCAoMfAXG9WtXEfgogD0uJjqGwSSoZjCU+ui10vXk5OTFwoADEYvIqOhFPwoODoG/f4AxJCQUfn5+bl9Lp67Vaq9NTkzQCMM4oB1Af18fD0LDqULdA1U3NW9d6FTQmTr5oiqoNBUKKEXRhJW8ooyBIH/IzaW8+5JtZHJyMoNBG/YkPByRzyIQ/zwOSYkJSE5KQmpyMrLS0/AyKxMvs7JYZGVmIDOdjtpU9nMCSI83Q4iLiUFsdDSioyLZ80U8fcKDCGEgHgcGMiX4PXzI0hTBuOx9CdevXmGACFhkZCRLb+Q3Cc+fMzgJ8QlISEhA/HNS3XPExlBRwFVopLpQAvE4GIGPAvHwoZ/J9959051bt2euXLnyz7/SLMuctpRK5fu9Gs2CpqfHRFUTC5orqdQciC4lA9Eub0dbGz/KkEhYZUQmXFNdzfI9mW4BM1zqkDmzpfyelJTINpA2LTSE3kgAwkNCEB31DHGx0YiPi0V8XBxeJCawNJSawkXKixdITkpkEBKfx7PHxMXGICY6ClGRzxAZ8RTPnj7B0/BwhIeFsucOfhyIx4EBeOTvB/+HD/HA9x7u3bmDmzdvwMfbG+e8TuPaVR/4PXiA4MdBDCClN3q+qKhIlu7MQcWAOfWFh4UhNCQEj4OC8CggYDnk+Xt37+HmjZvZTk5O5l+09qtNexMTE/+gv68vn76M2dXZaVSpVKxy6uzshIK6Z7mcNW0t1LBJJBCLRIsgKiuoFC1mKSYnm8pPPq3wJstSVFQUnj6hoyoIfr73ce/ObQQG+CEiPAxREU8RHfkMMVHPEBsVhfgYDlBCXBziY2PwPDYacTG0QZGIehaBZxFPEfEkHE/CQhEeGoywkMcIeRzE1BD4yB8B/g/h9+A+7jMQt3HrxnWmiMuXLuL0yZM47Xkc16/44P69u0w99JrCQkIQHhbC4LAI49JdSHAwgoOCWMojCP5+fnjg68sA37p5E9euXDFdvnRp/qrPFZw5deYQUwf3VyG++jKnrbaWlq0atZoAzLfL20xmCK0tLWhuamKKIBAC6g1qeBCkiPw8ZraZ6ensqE7mUwod+bTREU+eIDT4MQNw/94dXL9yGdd8vOF3/x5Cg4PwJCwET8PDEPEkjAF69iQcz56GI/LpE3ZJ99PPn4byAIIfI/RxIIIDHyHoUQACA/zxyP8h/B/ex0Pfe/C9ewd3b99aBOFz6SIueHnhtOcJuLk649QJD1zxvoQ7t26wxwf4PWTPQc9FygoKfMRuB/j7MRU9uO+7CPf2zRu4cfUqrvhchvfFizh75vT8hbNe8Dp5ssHe3v7PvpYvBJm/rEJ/+6NZIklQKZWQiMWzTZJGSMQiiIUCCKk3qK1BdVUlysvIrAuZAWdnZSIjLZV5QMLzOMTFcBBoI2mj6cgNDKC0cRe3b16Hz6ULOHv6JLzPn8X9O7cR5O+H4KBHbIMJTggFXX8ciLDgIHZJt+kxwbRZAf4I9PfDI78H8H9wHw/v32PPTaDv3bmFOzdv4Nb1q7h+xZv9XxfP0WadgKe7G1ydHOB06ABOehzDpfNn2YFx5+Z1+N65hQf37rLnIUB0naCy57t1Azfp+a764MrlS/C+eB7nz57BmVMn4XncHe5HjxhPuB+bd3FxsuFhfD3n1M3nRbKzU/6XoKG2rVEoQFVF+VxNZQUqy8tQVlqCkqJCFOblIjf7JbKo2kl+gSQyV4JAhvokDOGUPoIeIZClDV/cv3sbt29cw9XLl3Dx3BmcOu6O424uuHj2NO7cvIaH9+4g4IEvHvndZ5vM4uF9BDz0RQBdPvCFP4t7TFEP7t1hz0mbePf2Dbah9Pw3r/kwCFe8L8L7wjlc8DqFM54eOOF+FMeOuOCw/QHY7tkFBzsbHD/qirOnTsD7gheuXr7IwNy86oOb166wuHGVnusye80EleBd8DoNr1OeOHn8GNyPuuCosyOcDtnNHTnsACe7/bH8Nn69Hy01Sy0jJeX9kvwcTWlRPnKyMuayszKQlZGK9NQXSElKQGJ8LOKiIxEV8QRPQ0MQ+vgRggL82CY+9L0D3zs3cfvGVVz3uQSfi+dw3uskTp/wwHE3V7g6HcRRZ3ucP+2Ja5cv4tb1K7h36zp8b994Je7doriOuzevMXB3blzD7RtXcIttmg9uXKW0dwlXvC/A5+J5XDp3hkEgNZACPI66gDbL2eEAHPZbY/e2TbDavhH2tnvh5mQPz2OuOOPpjvNnTrKD4xLFuTP885xm95895ckOoBPHjsDd1RmuTvYEAYf274PNnp1zB/bths3uHYK1H639r8v372tdZqWEPX78TlJcVEta4nPERj6dj3oSaowIDzE9CQlCSCCljfvwp1Rx5ybu3rqGW7RJV7xx1fs8vM97sTfkddIDp9yPwuOIM9ycHeB8aD+3IYft4XXCHZe8TsLnvBeuXDyHa5fO45r3eVy7fIFdXr3ExZWLFOfgc/EsfC6cY89NcfEcv2knT7CN9XQ/guNHXXDMxQkujgfhYGeNAzZWsLHaiW0bPsfmLz7B7m0bcGDvTjgdsMERxwNwd3HE8aPOOHHMlQHydOcu6T53Vye4HXaACwE9YIOD7Lm2Y8/2TcYdm9fNWm5Zi63rP29e/+GHf/cr9R3/nkXf66bLa+fO/ZXfnWvxgfdvGh/53sS9Gz7GO9cuzt64fMF47eI505XzZ+B97iQuenni3Knj8PJ0x2n3I/A86gJ3V0ccdToEV4cDDMThgzY4aG0Fe5s9cDt8CJ5uzjjtcQReJ9xw9qQ7i3N8sNueXHh5HoPXiWM4c8INZ4674ZTHUZx0P4ITbi7wOHKYgT7ieBAuDnZw4v8Pm907sGfHZuzeugFbvvgE6z/9ANvWfgqrLetgs2sL7PbshL2NFZzs9uHwAWs4H7SB8yEb9hqdDljDYf9eHLLejf17d2Lfrq2w3LphYfuGL+Y2ffHJ3IbVH5k2fvYh1nz8Xu6aj/71v3/jMMxr+WdVvU+5bLt08li5zxn36cunj+Gsh4vppJuT8birw7yHi/28u7O90e3wwYWjjnYmV/v9JueDNqbDB21M9IYd7fbBwW4vHGz3wm7fLjja7cURBzu4OR2Cu4s9PFwccJyOVBcHdt3D2YHdf8zZHscO2zN49NijTgdwxOEAXB3s4HLI9pWNo6Pedvd27N2xCbu3rIfllnXYufELbPniY2z87ANs+fwjbF/3KSw3fQGrreuwb8dG2OzczODYWG6B9a4tJutdm03WOzeb9m7fYNq9dd3Czo2fG7et+3R+0+oP59d98v7CulXvmdZ89A5Wf/C2ZtU7Pz1p8fbib0b99X3Fmv2Cfh6MnZ3d91wPWG097mQT5uFkrfBwsoWny0F4uhyCx+EDcHOwhcshazgf2Aen/XvhYGOFg/ssFw5a7zba2+4xHrLZbbTbs9Nob21pdNq/x3jYbq/x8AGKfUbnA/u423w47t9jdLS1MjrYWLHHH9q3k8XBvTuMdlbbjPutthptLDcb9+3YaNyzdb3Raus64+7Na4w7N64x7li/2rh1zSrjps9+btz46fvGTat/bty8+ufGLV98ZNy29mPj9nWfGHes/2xhx/rPTDvWf2rasYFdYjvFuk+wbe3H2PrFR9iy+ufY/Nn7WL/qXYIwt/r9/1Pz8bs/Of/uT37En3yyYF+ntvhNLFLLMlm+aWu56a+drHeucbPfd9b98P5nxxxty90cbDqP2tsMH7G3Mbgc3DftcsjG5OF8EKfdnODl7gxPV3t4HD7I4Lk72cHdaT+OOXLh5mjLgFIcsaewgetBa7ge3AeXA3vhbLcHhylsd8PJdjccbSzhaL0LDtY7Yb9vBw7u2Q47y82w3bkB+7auwZ4tX8Bq8+ew2vQ5dm+iy9XYvXE1LCk2fIqd61dh+1qKj7FtDW3+h9j02fvzGz99f3LjJ+/q1n/yTse6j35WvO6jfw1d/cHbbqve+ef33vvxj1mPQYvfi9/4L7RhfcqX5Ms3nN5++7s0Mjhxwuk/HbWx+ZujTnZ/f8rZ4aPTbg67zh1zcTp91PG05xGHKyeP2N/xdLV/cMLlUICH08FAdxZ2gR7OdgHHHA88cHfaf++Y437fY477H7g5
1557Pc7am/j7+ZgG+DmYM2Cbh85ZO3nemjfA1e7fb6u+61uO9la3nDYt/OandXWy7aWmy/u37X5rJ3VllPWO9af2LttrbvVtjVH92z53Hn3ps8cLDesOrBz3SqbHWs+str26bs7Nq9+f9Pmz979Yu3H73y09qP3frr6w5/93boPP/zP77333h+9zaWk1zedeozful+Qxn6zDoGxtLR481v1C41/cVFKetObu/ydfJ/mv7bAA+OC/vSq5W8oVq2yeIuC/lgNhcWyMD+G33hz/E5u/MpaWStrZa2slbWyVtbKWlkra2WtrJW1slbWylpZK2tlrayVZfH7u/4v0BTEkd6h/ikAAAAASUVORK5CYII="})]})]})}const cDt=[{label:"Energy Generated",value:"36987.56 kWh",icon:E.jsx(Uc,{})},{label:"Revenue Saved",value:"56.2M",icon:E.jsx(ou,{})},{label:"CO2 Saved",value:"2.3tons",icon:E.jsx(ou,{})}];function fDt({isDummy:t=!1}){return E.jsxs(nr,{className:"flex-1",children:[E.jsxs("h2",{className:"w-full flex gap-2 heading-2x-large items-center",style:{paddingBottom:C$},children:[E.jsx(uDt,{}),"Solar Power"]}),E.jsxs("div",{className:"flex flex-col 2xl:flex-row gap-6 flex-1 w-full",children:[E.jsx("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-6 lg:gap-1 ",children:cDt.map(e=>E.jsx(Zee,{icon:{variant:"blue",icon:e.icon},stats:e},e.label))}),E.jsx("div",{className:"flex-1 min-h-62.5",children:E.jsx(qee,{company_id:"",isDummy:t})})]})]})}function dDt(){const t=[{label:"15 Active Sites",icon:E.jsx(UX,{})},{label:"2 sites offline",icon:E.jsx(HX,{})}];return E.jsxs(nr,{className:"relative flex flex-col min-h-62.5! flex-1 overflow-hidden pb-6 xl:max-w-150",children:[E.jsx("img",{src:_Qe,alt:"Solar",className:"absolute inset-0 w-full h-full object-cover pointer-events-none z-0"}),E.jsxs("div",{className:"relative z-10 flex flex-col justify-between h-full w-full",children:[E.jsxs("div",{children:[E.jsx("span",{className:"p-small text-primary-white",children:"Renewable Energy of Solar"}),E.jsx("h1",{className:"heading-3x-large text-primary-white",children:"Solar Panels"})]}),E.jsx("div",{className:"flex-1 flex items-end gap-2",children:t.map(e=>E.jsx(Xee,{label:e.label,icon:e.icon},e.label))})]})]})}function hDt({company_id:t,isDummy:e=!1}){return E.jsxs("div",{className:"flex flex-wrap mt-4",style:{gap:qr},children:[E.jsxs("div",{className:"flex flex-col xl:flex-row w-full",style:{gap:qr},children:[E.jsx(lRe,{company_id:t,isDummy:e}),E.jsx(lDt,{company_id:t,isDummy:e})]}),E.jsxs("div",{className:"flex flex-col xl:flex-row w-full",style:{gap:qr},children:[E.jsx(dDt,{}),E.jsx(fDt,{isDummy:e})]}),E.jsxs("div",{className:"flex flex-col xl:flex-row w-full",style:{gap:qr},children:[E.jsx(iDt,{}),E.jsx(nDt,{})]}),E.jsxs("div",{className:"flex-1 flex flex-col xl:flex-row gap-4 *:basis-1/2",style:{gap:qr},children:[E.jsx("div",{className:"min-h-62.5",children:E.jsx(Z2t,{})}),E.jsx("div",{className:"min-h-62.5",children:E.jsx($2t,{})})]})]})}function uRe(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20"},child:[]}]})(t)}function ADt(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M220 220h32v116"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M208 340h88"},child:[]},{tag:"path",attr:{d:"M248 130a26 26 0 1 0 26 26 26 26 0 0 0-26-26"},child:[]}]})(t)}function pDt(t){return mr({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(t)}const vDt={hidden:{opacity:0,y:8},visible:{opacity:1,y:0,transition:{duration:.25,ease:BZ}}};function su({icon:t,stats:e,isLoading:r,isError:n,cardErrorStyle:i,errorType:a,isSubstation:o=!0}){const{FEEDBACK_MESSAGES:s,formatStatValue:l,t:u}=Vt(),c=Cme(e?.label,u,Number(e?.value)),f=c?`(${c})`:"",d=l({value:e?.value,type:e?.type,currency:e?.currency,label:e?.label}),A=HFe(Number(e?.value),e?.previousValue),p=typeof d.main=="string"||typeof d.main=="number"?UFe(d.main):"",g=!o&&e?.labelKey&&e?.value!==void 0?XH(e.labelKey,Number(e.value),u):null,m=()=>g?g.type==="critical"?E.jsx(cWe,{className:"animate-bounce",style:{color:g.color},size:48}):E.jsx(uRe,{className:"animate-pulse",style:{color:g.color},size:48}):null,y=g?g.color:"var(--text-color)",b=()=>r?E.jsx(mn,{}):n?a===s.NO_DEVICE?E.jsx(hu,{}):E.jsx(Ci,{message:s.ERROR,className:i}):E.jsxs("div",{className:ah("flex flex-col gap-1 w-full text-left items-start"),children:[E.jsxs("div",{className:`font-semibold ${p}`,style:y?{color:y}:void 0,children:[d.main,d.suffix&&E.jsx("span",{className:"ml-1 text-sm text-primary-dark-blue/70",children:d.suffix}),f&&!d.suffix&&E.jsx("span",{style:y?{color:y}:void 0,className:"ml-1 text-sm text-primary-dark-blue/70 font-medium",children:f})]}),A&&E.jsxs("div",{className:"flex text-xs gap-1",children:[A.isIncrease?E.jsx(KHe,{className:"text-green-500"}):E.jsx(WHe,{className:"text-red-500"}),E.jsxs("span",{className:A.isIncrease?"text-green-500":"text-red-500",children:[A.percentage.toFixed(1),"%"]})]}),E.jsx("span",{className:"text-xs text-primary-dark-blue light-yellow-gradient py-1 px-2 rounded-lg",children:e?.description}),e?.note&&E.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-primary-dark-blue/60",children:[E.jsx(ADt,{className:"shrink-0",size:14}),e.note]})]});return E.jsxs(na.div,{variants:vDt,initial:"hidden",animate:"visible",whileHover:{y:-2},className:`flex flex-col gap-2 border border-primary-border ${ame} p-3 relative ${g?.type==="critical"?"animate-flash-critical":g?.type==="warning"?"animate-flash-warning":"bg-primary-white"}`,children:[g&&E.jsx("div",{className:"absolute top-2 right-2",children:m()}),!n&&E.jsxs("div",{className:"border-b border-b-primary-border flex w-full gap-2 items-center pb-2",children:[E.jsx(sRe,{variant:t.variant,icon:t.icon,className:"h-8 w-8 p-2"}),E.jsx("span",{className:"font-semibold",children:e?.label})]}),b()]})}function gDt({company_id:t,isDummy:e=!1}){const{startDate:r,endDate:n,setToday:i}=Au(),a=vx(),{FEEDBACK_MESSAGES:o,INSTATAENOUS_KPIS:s,mapResponseToLabelValue:l,t:u,translatedTitles:c}=Vt();H.useEffect(()=>{i()},[i]);const{data:f,isLoading:d,error:A}=hr(["/fetchOperationCard","cards",t,r,n],"/operations/cards-data",{card_type:"operations_home",company_id:t,start_date:r,end_date:n},{...ri},{isDummy:e,data:R7e}),p=H.useMemo(()=>f?l(f):[],[f,l]),g=[u("readings.unknown")];if(!r||!n)return E.jsx("div",{className:"flex justify-center items-center w-full h-64",children:E.jsx(mn,{})});const m=()=>Array.from({length:4}).map((x,T)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(Uc,{})},isLoading:!0},T)),y=()=>{const x=A?.response?.data?.detail;return Array.from({length:4}).map((T,B)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(Uc,{})},isError:!0,isLoading:!1,errorType:x?o.NO_DEVICE:void 0},B))},b=()=>p.filter(x=>!g.includes(x.label)).map((x,T)=>{const B=s.includes(x.label);return E.jsx(su,{icon:{variant:"blue",icon:x.label.toLowerCase().includes("revenue")?E.jsx(ou,{}):E.jsx(Uc,{})},stats:{type:VT(x.label,c),label:x.label,value:x.value,currency:x.currency,note:ome.includes(x.key)?u("readings.excludes_substation"):void 0,description:E.jsx("p",{className:"text-xs text-primary-yellowMain text-center",children:B?Ah(f.time):ZR(r,n,a)})}},T)});return E.jsx("div",{className:"grid w-full",style:{gap:qr,gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))"},children:d?m():A?y():b()})}const mDt={hidden:{opacity:0,y:-10},visible:{opacity:1,y:0,transition:{duration:.3}}},Dg=({title:t,startDate:e,endDate:r,onRangeSelect:n,showDateButton:i,otherFilter:a,disabled:o=!1})=>{const{validateDates:s}=Vt(),[l,u]=H.useState(!1),[c,f]=H.useState(void 0),d=H.useRef(null),A=H.useRef(null),[p,g]=H.useState({}),m=H.useMemo(()=>
155{if(!e||!r)return;const[b,x,T]=e.split("-").map(Number),[B,R,I]=r.split("-").map(Number);return{from:new Date(b,x-1,T),to:new Date(B,R-1,I)}},[e,r]);H.useEffect(()=>{if(!l||!d.current)return;const b=d.current.getBoundingClientRect(),x=420,T=250;let B=b.bottom+6,R=b.left;B+T>window.innerHeight&&(B=b.top-T-6),R+x>window.innerWidth&&(R=window.innerWidth-x-150),g({position:"absolute",top:B+window.scrollY,left:R+window.scrollX,zIndex:9999})},[l]),H.useEffect(()=>{const b=x=>{const T=x.target;A.current&&!A.current.contains(T)&&d.current&&!d.current.contains(T)&&(u(!1),f(void 0))};return l&&document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}},[l]);const y=()=>{if(c?.from&&c?.to){const b=x=>`${x.getFullYear()}-${String(x.getMonth()+1).padStart(2,"0")}-${String(x.getDate()).padStart(2,"0")}`;if(!s(b(c.from),b(c.to)))return;n(b(c.from),b(c.to)),u(!1)}};return E.jsxs("div",{className:"w-full relative flex flex-col sm:flex-row justify-between sm:items-center border-b border-primary-border pb-5",children:[E.jsx(na.h3,{className:"heading-regular",variants:mDt,initial:"hidden",animate:"visible",children:t}),E.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[a,i&&E.jsxs(na.button,{ref:d,onClick:()=>!o&&u(b=>!b),disabled:o,className:`inline-flex items-center gap-2 rounded-full px-4 py-2 text-xs font-medium border border-primary-border text-primary-dark-yellow/60 bg-primary-dark-blue/30 max-w-fit transition-opacity ${o?"opacity-40 cursor-not-allowed":"cursor-pointer"}`,whileHover:o?{}:{scale:1.03},whileTap:o?{}:{scale:.97},initial:{opacity:0}
155,animate:{opacity:o?.4:1},transition:{duration:.25},children:[E.jsx(v7e,{}),e&&r?`${new Date(e).toLocaleDateString()} - ${new Date(r).toLocaleDateString()}`:"Select date"]})]}),l&&ux.createPortal(E.jsxs("div",{ref:A,style:p,className:"rounded-xl border border-primary-border bg-white p-3 shadow-lg",children:[E.jsx(O1e,{mode:"range",numberOfMonths:2,defaultMonth:m?.from,selected:c,onSelect:b=>f(b),className:"text-sm",classNames:{months:"flex gap-6",nav:"absolute right-6",caption_label:"text-sm font-medium text-primary-dark-blue",weekday:"text-xs font-medium text-primary-gray-dark",day:"h-8 w-8 p-0",day_button:"h-8 w-8 text-xs rounded-md transition",today:"text-primary-dark-blue font-semibold",range_start:"bg-primary-dark-blue text-primary-white rounded-l-md",range_end:"bg-primary-dark-blue text-primary-white rounded-r-md",range_middle:"bg-primary-dark-blue/10",outside:"text-primary-gray-light opacity-40"}}),E.jsxs("div",{className:"flex flex-col sm:flex-row mt-2 gap-2 w-full *:basis-1/2",children:[E.jsx(zi,{text:"Cancel",type:bi.SECONDARY,handleClick:()=>{f(void 0),u(!1)}}),E.jsx(zi,{type:bi.PRIMARY_DARK_BLUE,handleClick:y,disabled:!c?.from||!c?.to,text:"Apply"})]})]}),document.body)]})},yDt=[{key:"7 Days",value:7},{key:"30 Days",value:30}],cRe=({queryKey:t,route:e,params:r={},title:n="",isPredicted:i=!1,className:a,isDummy:o=!1,dummyData:s})=>{const{FEEDBACK_MESSAGES:l,t:u}=Vt(),{startDate:c,endDate:f}=Au(),[d,A]=H.useState(null),p=d?.start??c,g=d?.end??f,m=new Date().toISOString().split("T")[0],y=H.useMemo(()=>{if(i){const G=new Date(m);return G.setDate(G.getDate()+7),G.toISOString().split("T")[0]}return f},[i,f,m]),b=H.useMemo(()=>typeof s=="function"?s(i?m:p,i?y:g):s,[s,i,m,y,p,g]),{data:x,isLoading:T,error:B,isError:R}=hr([...t,p,g],e,{...r,start_date:i?m:p,end_date:i?y:g},{...ri},{isDummy:o,data:b}),{loadProfileData:I,isAggregatedData:N}=H.useMemo(()=>{if(!x)return{loadProfileData:[],isAggregatedData:!1};const G=x.dataset;if(Array.isArray(G)&&G.length>0){const K=G[0];if(typeof K=="object"&&K!==null&&"timestamp"in K)return{loadProfileData:G,isAggregatedData:!0};if(Array.isArray(K))return{loadProfileData:G,isAggregatedData:!1}}return{loadProfileData:[],isAggregatedData:!1}},[x]),F=H.useMemo(()=>{if(I.length===0)return!1;const G=N?I[0].timestamp:I[0][0];return/^\d{4}-\d{2}-\d{2}$/.test(G)},[I,N]),Q=H.useMemo(()=>N?I.map(G=>{const K=new Date(G.timestamp);let X;return F?X=`${K.toLocaleString("default",{month:"short"})} ${K.getDate()}`:X=`${K.toLocaleString("default",{month:"short"})} ${K.getDate()} ${String(K.getHours()).padStart(2,"0")}:${String(K.getMinutes()).padStart(2,"0")}`,[X,G.avg,G.min,G.max]}):I.map(G=>{const K=G[0],X=G[1],q=new Date(K);let ne;return F?ne=`${q.toLocaleString("default",{month:"short"})} ${q.getDate()}`:ne=`${q.toLocaleString("default",{month:"short"})} ${q.getDate()} ${String(q.getHours()).padStart(2,"0")}:${String(q.getMinutes()).padStart(2,"0")}`,[ne,X]}),[I,F,N]),j=H.useMemo(()=>{if(I.length<2)return"unknown";if(F)return"days";const G=N?I[0].timestamp:I[0][0],K=N?I[1].timestamp:I[1][0],X=new Date(G),q=ne
155w Date(K),ne=Math.abs((q.getTime()-X.getTime())/(1e3*60));return ne<60?"minutes":ne<1440?"hours":"days"},[I,F,N]),W=H.useMemo(()=>{const G=Q.length;switch(j){case"minutes":return(K,X)=>{if(!X)return!1;const q=X.split(" ");if(q.length<3)return!1;const ne=q[2].split(":");return ne.length<2?!1:parseInt(ne[1],10)%30===0};case"hours":return(K,X)=>{if(!X)return!1;const q=X.split(" ");if(q.length<3)return!1;const ne=q[2].split(":");return ne.length<2?!1:parseInt(ne[1],10)===0};case"days":return G<=7?0:G<=31?1:G<=90?2:Math.floor(G/30);default:return Math.max(Math.floor(G/30),0)}},[Q.length,j]),V=H.useMemo(()=>N?{...qf({chartName:u("chart.load_profile_label"),top:"2px",right:"2px"}),grid:{left:"60px",right:"50px",bottom:"80px",top:"40px",containLabel:!0},dataset:{source:[["time","average","minimum","maximum"],...Q]},tooltip:{trigger:"axis",formatter:G=>{const K=G[0],X=G[1],q=G[2];return`${K.name}<br/>
156                    ${u("chart.average_load")}: ${K.value[1].toFixed(2)} kW<br/>
157                    ${u("chart.minimum_load")}: ${X.value[2].toFixed(2)} kW<br/>
158                    ${u("chart.maximum_load")}: ${q.value[3].toFixed(2)} kW`}},dataZoom:[{type:"slider",show:!0,start:0,end:100,height:30,bottom:5,borderColor:"#ccc",fillerColor:"rgba(124, 135, 142, 0.2)",handleStyle:{color:"#7C878E",borderColor:"#7C878E"}},{type:"inside",start:0,end:100}],xAxis:{type:"category",name:"Time",nameLocation:"middle",nameGap:60,boundaryGap:!1,axisLabel:{rotate:45,interval:W,margin:5,formatter:G=>G,align:"right",overflow:"truncate",showMaxLabel:!0,color:"#333",fontSize:8},axisTick:{alignWithLabel:!0,interval:0}},yAxis:{axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},type:"value",name:"Load (kW)",nameLocation:"middle",nameGap:50,min:0,splitLine:{lineStyle:{type:"dashed",color:"#E5E5E5"}}},series:[{name:"Average Load",type:"line",encode:{x:"time",y:"average"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(124, 135, 142, 0.5)"},{offset:1,color:"rgba(124, 135, 142, 0)"}]}},lineStyle:{color:Bt.BLACK,width:2},z:3},{name:"Minimum Load",type:"line",encode:{x:"time",y:"minimum"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(255, 205, 0, 0.5)"},{offset:1,color:"rgba(255, 205, 0, 0)"}]}},lineStyle:{color:Bt.YELLOW,width:2},z:2},{name:"Maximum Load",type:"line",encode:{x:"time",y:"maximum"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(0, 122, 255, 0.5)"},{offset:1,color:"rgba(0, 122, 255, 0)"}]}},lineStyle:{color:"#007AFF",width:2},z:1}]}:{...qf({chartName:u("chart.load_profile_label"),top:"2px",right:"2px"}),grid:{left:"60px",right:"50px",bottom:"80px",top:"40px",containLabel:!0},dataset:{source:[["time","profile"],...Q]},tooltip:{trigger:"axis",formatter:G=>{const K=G[0];return`${K.name}<br/>Load: ${K.value[1]} kW`}},dataZoom:[{type:"slider",show:!0,start:0,end:100,height:30,bottom:5,borderColor:"#ccc",fillerColor:"rgba(124, 135, 142, 0.2)",handleStyle:{color:"#7C878E",borderColor:"#7C878E"}},{type:"inside",start:0,end:100}],xAxis:{type:"category",name:u("chart.time_label"),nameLocation:"middle",nameGap:60,boundaryGap:!1,axisLabel:{rotate:45,interval:W,margin:5,formatter:G=>G,width:80,align:"right",overflow:"truncate",showMaxLabel:!0,color:"#333",fontSize:8},axisTick:{alignWithLabel:!0,interval:0}},yAxis:{axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},type:"value",name:u("chart.load_profile_label"),nameLocation:"middle",nameGap:50,min:0,splitLine:{lineStyle:{type:"dashed",color:"#E5E5E5"}}},series:[{name:"Profile",type:"line",encode:{x:"time",y:"profile"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Bt.PRIMARY_DARK_BLUE},{offset:1,color:"#7C878E00"}]}},lineStyle:{color:"#032b44",width:1}}]},[Q,W,N,u]),Y=[{text:u("chart.average_load"),color:Bt.BLACK},{text:u("chart.minimum_load"),color:Bt.YELLOW},{text:u("chart.maximum_load"),color:Bt.PURPLE}];return E.jsxs(nr,{className:`w-full flex flex-col flex-1 min-h-115! ${a}`,children:[E.jsx(Dg,{title:n,startDate:p,endDate:g,onRangeSelect:(G,K)=>A({start:G,end:K}),showDateButton:!R,disabled:T}),!T&&!B&&I?.length>0&&E.jsxs("div",{className:"flex gap-2 justify-between",children:[i&&E.jsx("select",{className:"cursor-pointer flex items-center justify-center py-1 px-2 rounded-full bg-[#E5E5E5] text-primary-dark-blue text-[10px]",children:yDt.map(G=>E.jsx("option",{value:G.value,className:"text-primary-blackLight cursor-pointer",selected:G.value===7,disabled:G.value===30,children:G.key},G.key))}),E.jsx("div",{className:"flex-1 flex gap-2 justify-end",children:N&&!i&&Y.map((G,K)=>E.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-primary-blackLighter2 px-3 py-2",children:[E.jsx("span",{className:"w-4 h-4 rounded-md",style:{backgroundColor:G.color}}),E.jsx("span",{className:"text-[11px]",children:G.text})]},K))})]}),E.jsx("div",{className:"flex flex-col flex-1 w-full p-0! h-full",children:T?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):B?B.response?.data?.detail?E.jsx(hu,{message:l.NO_DEVICE}):E.jsx(Ci,{message:l.ERROR}):I.length?E.jsx("div",{className:"h-full w-full",children:E.jsx(Sl,{option:V,style:{width:"100%",height:"100%"},notMerge:!0,lazyUpdate:!0})}):E.jsx(Us,{message:l.NO_DATA})})]})},Jee=({company_id:t,isDummy:e=!1})=>{const{FEEDBACK_MESSAGES:r,t:n}=Vt(),{startDate:i,endDate:a}=Au(),[o,s]=H.useState(null),l=o?.start??i,u=o?.end??a,{data:c,isLoading:f,error:d,isError:A}=hr(["/operations","fetchPowerConsumption",t,l,u],"/operations/power-consumption-chart",{company_id:t,start_date:l,end_date:u},{...ri},{isDummy:e,data:I7e}),p=c?c.dataset.slice(1).map(([x,T])=>({title:x,consumption:T})):[],g=f,m=p.map(x=>x.consumption),y=p.map(x=>
158x.title),b={...qf({chartName:n("chart.power_consumption_by_site"),top:"50px",right:"2px"}),grid:{left:"5%",right:"15%",top:"3%",bottom:"3%",containLabel:!0},xAxis:{max:"dataMax"},yAxis:{type:"category",data:y.length>0?y:[n("feedback_msg.no_data")],inverse:!0,animationDuration:300,animationDurationUpdate:300,axisLabel:{fontWeight:"bold",fontSize:11,interval:0,width:120,overflow:"truncate",align:"right"}},series:[{realtimeSort:!0,name:n("chart.power_consumption_by_site"),type:"bar",color:"#b2d5f3",data:m,label:{show:!0,position:"right",valueAnimation:!0,formatter:"{c}kWh",color:Bt.PRIMARY_DARK_BLUE}}],style:{overflow:"visible"},animationDuration:0,animationDurationUpdate:3e3,animationEasing:"linear",animationEasingUpdate:"linear"};return E.jsxs(nr,{className:"w-full flex flex-col flex-1 min-w-0 h-115 min-h-0! lg:h-full",children:[E.jsx(Dg,{title:n("chart.power_consumption_by_site"),startDate:l,endDate:u,onRangeSelect:(x,T)=>s({start:x,end:T}),showDateButton:!A,disabled:g}),E.jsx("div",{className:"flex flex-col flex-1 min-h-0 w-full overflow-y-auto",children:g?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):d?d.response.data.detail?E.jsx(hu,{message:r.NO_DEVICE,className:"h-full!"}):E.jsx(Ci,{message:r.ERROR}):p.length===0?E.jsx(Us,{message:r.NO_DATA}):E.jsx("div",{className:"w-full p-0",children:E.jsx(Sl,{option:b,style:{height:`${p.length*20}px`,minHeight:"200px",padding:0}})})})]})},wDt=({company_id:t,isDummy:e=!1})=>{const{t:r}=Vt(),[n,i]=H.useState(1),a=[{header:r("table.device_name"),accessorKey:"device_name",cell:({row:y})=>{const b=y.original?.device_name||"-";return E.jsx("span",{children:b})}},{header:r("site_details.asset_capacity"),accessorKey:"asset_capacity",cell:({row:y})=>{const b=y.original?.device_capacity||"-";return E.jsx("span",{children:b})}},{header:r("readings.current_unbalance_factor"),accessorKey:"current_unbalance",cell:({row:y})=>{const b=y.original?.current_unbalance||0;return(T=>{if(Number(T)<=5)return E.jsx("span",{className:"text-green-700",children:T});if(Number(T)>5&&Number(T)<=15)return E.jsx("span",{className:"text-green-400",children:T});if(Number(T)>15&&Number(T)<=20)return E.jsx("span",{className:"text-orange-400",children:T});if(Number(T)>20)return E.jsx("span",{className:"text-red-700",children:T})})(b)}},{header:r("readings.voltage_unbalance_factor"),accessorKey:"voltage_unbalance",cell:({row:y})=>{const b=y.original?.voltage_unbalance||0;return E.jsx("span",{children:b})}},{header:r("readings.power_factor"),accessorKey:"power_factor",cell:({row:y})=>{const b=y.original?.power_factor||0;return(T=>{if(Number(T)<=.8)return E.jsx("span",{className:"text-red-700",children:T});if(Number(T)>.8&&Number(T)<=.89)return E.jsx("span",{className:"text-orange-400",children:T});if(Number(T)>=.9)return E.jsx("span",{className:"text-green-700",children:T})})(b)}},{header:r("chart.transformer_load_rate"),accessorKey:"transformer_load_rate",cell:({row:y})=>{const b=y.original?.load_ratio||0;return(T=>{if(Number(T)<=49)return E.jsx("span",{className:"text-orange-400",children:T});if(Number(T)>=50&&Number(T)<=100)return E.jsx("span",{className:"text-green-700",children:T});if(Number(T)>100)return E.jsx("span",{className:"text-red-700",children:T})})(b)}}],o=y=>{i(y)},s=H.useMemo(()=>{const y=(n-1)*Qi;return{...O7e,page:n,results:uU.slice(y,y+Qi)}},[n]),{data:l,isLoading:u,error:c}=hr(["/operations","fetchSitePerformance",t,n],"/operations/performance",{page:n,page_size:Qi,company_id:t},{...ri},{isDummy:e,data:s}),f=u,d=l?.results.map(y=>({[r("table.device_name")]:y.device_name,[r("site_details.asset_capacity")]:y.device_capacity,[r("readings.current_unbalance_factor")]:y.current_unbalance,[r("readings.voltage_unbalance_factor")]:y.voltage_unbalance,[r("readings.power_factor")]:y.power_factor,[r("chart.transformer_load_rate")]:y.load_ratio,...y}))??[],A=H.useRef(""),p=l?.time??"";p&&(A.current=p);const g=p||A.current,m=p0({count:l?.total_results,currentPage:n,itemsPerPage:Qi});return E.jsxs(nr,{className:"w-full flex flex-col",children:[E.jsx(ZI,{title:r("table.site_performance"),time:g,className:"mb-4 border-none!"}),E.jsx(wg,{isLoading:f,error:c,tableWrapperClassName:"",data:d,columns:a,pagination:m,currentPage:n,onPageChange:o,emptyStateImage:"",emptyStateText:void 0})]})},_Dt=({company_id:t,isDummy:e=!1})=>{const{t:r}=Vt(),[n,i]=H.useState(1),a=y=>{i(y)},o=[{header:r("table.device_name"),accessorKey:"device_name",cell:({row:y})=>E.jsx("span",{children:y.original?.device_name||"-"})},{header:r("readings.current_unbalance_factor"),accessorKey:"current_unbalance",cell:({row:y})=>{const b=y.original?.current_unbalance||0;return E.jsx("span",{children:b})}},{header:r("readings.voltage_unbalance_factor"),accessorKey:"voltage_unbalance",cell:({row:y})=>E.jsx("span",{children:y.original?.voltage_unbalance||0})},{header:r("chart.transformer_load_rate"),accessorKey:"load_ratio",cell:({row:y})=>{const b=y.original?.load_ratio||0;return E.jsx("span",{children:b})}}],s=H.useMemo(()=>{const y=(n-1)*Qi;return{...P7e,page:n,results:cU.slice(y,y+Qi)}},[n]),{data:l,isLoading:u,error:c}=hr(["/operations","fethcThresholdExceedForSites",t,n],"/operations/percentage-exceeded-table",{page:n,page_size:Qi,company_id:t},{...ri},{isDummy:e,data:s}),f=u,d=l?.results?.map(y=>({...y}))??[],A=p0({count:l?.total_results,currentPage:n,itemsPerPage:Qi}),p=H.useRef(""),g=l?.time??"";g&&(p.current=g);const m=g||p.current;return E.jsxs(nr,{className:"w-full flex flex-col",children:[E.jsx(ZI,{title:r("table.percent_exceed_threshold"),time:m,className:"mb-4 border-none!"}),E.jsx(wg,{wrapperTestId:"",isLoading:f,error:c,data:d,columns:o,pagination:A,currentPage:n,onPageChange:a,emptyStateImage:"",emptyStateText:void 0})]})};function fRe(t,e){const r=H.useRef(e);H.useEffect(function(){e!==r.current&&t.attributionControl!=null&&(r.current!=null&&t.attributionControl.removeAttribution(r.current),e!=null&&t.attributionControl.addAttribution(e)),r.current=e},[t,e])}const bDt=1;function xDt(t){return Object.freeze({__version:bDt,map:t})}function SDt(t,e){return Object.freeze({...t,...e})}const ete=H.createContext(null);function tte(){const t=H.use(ete);if(t==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}function CDt(t){function e(r,n){const{instance:i,context:a}=t(r).current;H.useImperativeHandle(n,()=>i);const{children:o}=r;return o==null?null:ue.createElement(ete,{value:a},o)}return H.forwardRef(e)}function TDt(t){function e(r,n){const[i,a]=H.useState(!1),{instance:o}=t(r,a).current;H.useImperativeHandle(n,()=>o),H.useEffect(function(){i&&o.update()},[o,i,r.children]);const s=o._contentNode;return s?ux.createPortal(r.children,s):null}return H.forwardRef(e)}function EDt(t){function e(r,n){const{instance:i}=t(r).current;return H.useImperativeHandle(n,()=>i),null}return H.forwardRef(e)}function dRe(t,e){const r=H.useRef(void 0);H.useEffect(function(){return e!=null&&t.instance.on(e),r.current=e,function(){r.current!=null&&t.instance.off(r.current),r.current=null}},[t,e])}function rte(t,e){const r=t.pane??e.pane;return r?{...t,pane:r}:t}function BDt(t,e){return function(n,i){const a=tte(),o=t(rte(n,a),a);return fRe(a.map,n.attribution),dRe(o.current,n.eventHandlers),e(o.current,a,n,i),o}}var UM={exports:{}};var DDt=UM.exports,ive;function MDt(){return ive||(ive=1,(function(t,e){(function(r,n){n(e)})(DDt,(function(r){var n="1.9.4";function i(w){var D,k,z,J;for(k=1,z=arguments.length;k<z;k++){J=arguments[k];for(D in J)w[D]=J[D]}return w}var a=Object.create||(function(){function w(){}return function(D){return w.prototype=D,new w}})();function o(w,D){var k=Array.prototype.slice;
158if(w.bind)return w.bind.apply(w,k.call(arguments,1));var z=k.call(arguments,2);return function(){return w.apply(D,z.length?z.concat(k.call(arguments)):arguments)}}var s=0;function l(w){return"_leaflet_id"in w||(w._leaflet_id=++s),w._leaflet_id}function u(w,D,k){var z,J,ie,de;return de=function(){z=!1,J&&(ie.apply(k,J),J=!1)},ie=function(){z?J=arguments:(w.apply(k,arguments),setTimeout(de,D),z=!0)},ie}function c(w,D,k){var z=D[1],J=D[0],ie=z-J;return w===z&&k?w:((w-J)%ie+ie)%ie+J}function f(){return!1}function d(w,D){if(D===!1)return w;var k=Math.pow(10,D===void 0?6:D);return Math.round(w*k)/k}function A(w){return w.trim?w.trim():w.replace(/^\s+|\s+$/g,"")}function p(w){return A(w).split(/\s+/)}function g(w,D){Object.prototype.hasOwnProperty.call(w,"options")||(w.options=w.options?a(w.options):{});for(var k in D)w.options[k]=D[k];return w.options}function m(w,D,k){var z=[];for(var J in w)z.push(encodeURIComponent(k?J.toUpperCase():J)+"="+encodeURIComponent(w[J]));return(!D||D.indexOf("?")===-1?"?":"&")+z.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function b(w,D){return w.replace(y,function(k,z){var J=D[z];if(J===void 0)throw new Error("No value provided for variable "+k);return typeof J=="function"&&(J=J(D)),J})}var x=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"};function T(w,D){for(var k=0;k<w.length;k++)if(w[k]===D)return k;return-1}var B="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(w){return window["webkit"+w]||window["moz"+w]||window["ms"+w]}var I=0;function N(w){var D=+new Date,k=Math.max(0,16-(D-I));return I=D+k,window.setTimeout(w,k)}var F=window.requestAnimationFrame||R("RequestAnimationFrame")||N,Q=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(w){window.clearTimeout(w)};function j(w,D,k){if(k&&F===N)w.call(D);else return F.call(window,o(w,D))}function W(w){w&&Q.call(window,w)}var V={__proto__:null,extend:i,create:a,bind:o,get lastId(){return s},stamp:l,throttle:u,wrapNum:c,falseFn:f,formatNum:d,trim:A,splitWords:p,setOptions:g,getParamString:m,template:b,isArray:x,indexOf:T,emptyImageUrl:B,requestFn:F,cancelFn:Q,requestAnimFrame:j,cancelAnimFrame:W};function Y(){}Y.extend=function(w){var D=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},k=D.__super__=this.prototype,z=a(k);z.constructor=D,D.prototype=z;for(var J in this)Object.prototype.hasOwnProperty.call(this,J)&&J!=="prototype"&&J!=="__super__"&&(D[J]=this[J]);return w.statics&&i(D,w.statics),w.includes&&(G(w.includes),i.apply(null,[z].concat(w.includes))),i(z,w),delete z.statics,delete z.includes,z.options&&(z.options=k.options?a(k.options):{},i(z.options,w.options)),z._initHooks=[],z.callInitHooks=function(){if(!this._initHooksCalled){k.callInitHooks&&k.callInitHooks.call(this),this._initHooksCalled=!0;for(var ie=0,de=z._initHooks.length;ie<de;ie++)z._initHooks[ie].call(this)}},D},Y.include=function(w){var D=this.prototype.options;return i(this.prototype,w),w.options&&(this.prototype.options=D,this.mergeOptions(w.options)),this},Y.mergeOptions=function(w){return i(this.prototype.options,w),this},Y.addInitHook=function(w){var D=Array.prototype.slice.call(arguments,1),k=typeof w=="function"?w:function(){this[w].apply(this,D)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(k),this};function G(w){if(!(typeof L>"u"||!L||!L.Mixin)){w=x(w)?w:[w];for(var D=0;D<w.length;
158D++)w[D]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var K={on:function(w,D,k){if(typeof w=="object")for(var z in w)this._on(z,w[z],D);else{w=p(w);for(var J=0,ie=w.length;J<ie;J++)this._on(w[J],D,k)}return this},off:function(w,D,k){if(!arguments.length)delete this._events;else if(typeof w=="object")for(var z in w)this._off(z,w[z],D);else{w=p(w);for(var J=arguments.length===1,ie=0,de=w.length;ie<de;ie++)J?this._off(w[ie]):this._off(w[ie],D,k)}return this},_on:function(w,D,k,z){if(typeof D!="function"){console.warn("wrong listener type: "+typeof D);return}if(this._listens(w,D,k)===!1){k===this&&(k=void 0);var J={fn:D,ctx:k};z&&(J.once=!0),this._events=this._events||{},this._events[w]=this._events[w]||[],this._events[w].push(J)}},_off:function(w,D,k){var z,J,ie;if(this._events&&(z=this._events[w],!!z)){if(arguments.length===1){if(this._firingCount)for(J=0,ie=z.length;J<ie;J++)z[J].fn=f;delete this._events[w];return}if(typeof D!="function"){console.warn("wrong listener type: "+typeof D);return}var de=this._listens(w,D,k);if(de!==!1){var Pe=z[de];this._firingCount&&(Pe.fn=f,this._events[w]=z=z.slice()),z.splice(de,1)}}},fire:function(w,D,k){if(!this.listens(w,k))return this;var z=i({},D,{type:w,target:this,sourceTarget:D&&D.sourceTarget||this});if(this._events){var J=this._events[w];if(J){this._firingCount=this._firingCount+1||1;for(var ie=0,de=J.length;ie<de;ie++){var Pe=J[ie],Qe=Pe.fn;Pe.once&&this.off(w,Qe,Pe.ctx),Qe.call(Pe.ctx||this,z)}this._firingCount--}}return k&&this._propagateEvent(z),this},listens:function(w,D,k,z){typeof w!="string"&&console.warn('"string" type argument expected');var J=D;typeof D!="function"&&(z=!!D,J=void 0,k=void 0);var ie=this._events&&this._events[w];if(ie&&ie.length&&this._listens(w,J,k)!==!1)return!0;if(z){for(var de in this._eventParents)if(this._eventParents[de].listens(w,D,k,z))return!0}return!1},_listens:function(w,D,k){if(!this._events)return!1;var z=this._events[w]||[];if(!D)return!!z.length;k===this&&(k=void 0);for(var J=0,ie=z.length;J<ie;J++)if(z[J].fn===D&&z[J].ctx===k)return J;return!1},once:function(w,D,k){if(typeof w=="object")for(var z in w)this._on(z,w[z],D,!0);else{w=p(w);for(var J=0,ie=w.length;J<ie;J++)this._on(w[J],D,k,!0)}return this},addEventParent:function(w){return this._eventParents=this._eventParents||{},this._eventParents[l(w)]=w,this},removeEventParent:function(w){return this._eventParents&&delete this._eventParents[l(w)],this},_propagateEvent:function(w){for(var D in this._eventParents)this._eventParents[D].fire(w.type,i({layer:w.target,propagatedFrom:w.target},w),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var X=Y.extend(K);function q(w,D,k){this.x=k?Math.round(w):w,this.y=k?Math.round(D):D}var ne=Math.trunc||function(w){return w>0?Math.floor(w):Math.ceil(w)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(w){return this.clone()._add(te(w))},_add:function(w){return this.x+=w.x,this.y+=w.y,this},subtract:function(w){return this.clone()._subtract(te(w))},_subtract:function(w){return this.x-=w.x,this.y-=w.y,this},divideBy:function(w){return this.clone()._divideBy(w)},_divideBy:function(w){return this.x/=w,this.y/=w,this},multiplyBy:function(w){return this.clone()._multiplyBy(w)},_multiplyBy:function(w){return this.x*=w,this.y*=w,this},scaleBy:function(w){return new q(this.x*w.x,this.y*w.y)},unscaleBy:function(w){return new q(this.x/w.x,this.y/w.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ne(this.x),this.y=ne(this.y),this}
158,distanceTo:function(w){w=te(w);var D=w.x-this.x,k=w.y-this.y;return Math.sqrt(D*D+k*k)},equals:function(w){return w=te(w),w.x===this.x&&w.y===this.y},contains:function(w){return w=te(w),Math.abs(w.x)<=Math.abs(this.x)&&Math.abs(w.y)<=Math.abs(this.y)},toString:function(){return"Point("+d(this.x)+", "+d(this.y)+")"}};function te(w,D,k){return w instanceof q?w:x(w)?new q(w[0],w[1]):w==null?w:typeof w=="object"&&"x"in w&&"y"in w?new q(w.x,w.y):new q(w,D,k)}function ce(w,D){if(w)for(var k=D?[w,D]:w,z=0,J=k.length;z<J;z++)this.extend(k[z])}ce.prototype={extend:function(w){var D,k;if(!w)return this;if(w instanceof q||typeof w[0]=="number"||"x"in w)D=k=te(w);else if(w=he(w),D=w.min,k=w.max,!D||!k)return this;return!this.min&&!this.max?(this.min=D.clone(),this.max=k.clone()):(this.min.x=Math.min(D.x,this.min.x),this.max.x=Math.max(k.x,this.max.x),this.min.y=Math.min(D.y,this.min.y),this.max.y=Math.max(k.y,this.max.y)),this},getCenter:function(w){return te((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,w)},getBottomLeft:function(){return te(this.min.x,this.max.y)},getTopRight:function(){return te(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(w){var D,k;return typeof w[0]=="number"||w instanceof q?w=te(w):w=he(w),w instanceof ce?(D=w.min,k=w.max):D=k=w,D.x>=this.min.x&&k.x<=this.max.x&&D.y>=this.min.y&&k.y<=this.max.y},intersects:function(w){w=he(w);var D=this.min,k=this.max,z=w.min,J=w.max,ie=J.x>=D.x&&z.x<=k.x,de=J.y>=D.y&&z.y<=k.y;return ie&&de},overlaps:function(w){w=he(w);var D=this.min,k=this.max,z=w.min,J=w.max,ie=J.x>D.x&&z.x<k.x,de=J.y>D.y&&z.y<k.y;return ie&&de},isValid:function(){return!!(this.min&&this.max)},pad:function(w){var D=this.min,k=this.max,z=Math.abs(D.x-k.x)*w,J=Math.abs(D.y-k.y)*w;return he(te(D.x-z,D.y-J),te(k.x+z,k.y+J))},equals:function(w){return w?(w=he(w),this.min.equals(w.getTopLeft())&&this.max.equals(w.getBottomRight())):!1}};function he(w,D){return!w||w instanceof ce?w:new ce(w,D)}function ve(w,D){if(w)for(var k=D?[w,D]:w,z=0,J=k.length;z<J;z++)this.extend(k[z])}ve.prototype={extend:function(w){var D=this._southWest,k=this._northEast,z,J;if(w instanceof fe)z=w,J=w;else if(w instanceof ve){if(z=w._southWest,J=w._northEast,!z||!J)return this}else return w?this.extend(we(w)||ae(w)):this;return!D&&!k?(this._southWest=new fe(z.lat,z.lng),this._northEast=new fe(J.lat,J.lng)):(D.lat=Math.min(z.lat,D.lat),D.lng=Math.min(z.lng,D.lng),k.lat=Math.max(J.lat,k.lat),k.lng=Math.max(J.lng,k.lng)),this},pad:function(w){var D=this._southWest,k=this._northEast,z=Math.abs(D.lat-k.lat)*w,J=Math.abs(D.lng-k.lng)*w;return new ve(new fe(D.lat-z,D.lng-J),new fe(k.lat+z,k.lng+J))},getCenter:function(){return new fe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new fe(this.getNorth(),this.getWest())},getSouthEast:function(){return new fe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(w){typeof w[0]=="number"||w instanceof fe||"lat"in w?w=we(w):w=ae(w);var D=this._southWest,k=this._northEast,z,J;
158return w instanceof ve?(z=w.getSouthWest(),J=w.getNorthEast()):z=J=w,z.lat>=D.lat&&J.lat<=k.lat&&z.lng>=D.lng&&J.lng<=k.lng},intersects:function(w){w=ae(w);var D=this._southWest,k=this._northEast,z=w.getSouthWest(),J=w.getNorthEast(),ie=J.lat>=D.lat&&z.lat<=k.lat,de=J.lng>=D.lng&&z.lng<=k.lng;return ie&&de},overlaps:function(w){w=ae(w);var D=this._southWest,k=this._northEast,z=w.getSouthWest(),J=w.getNorthEast(),ie=J.lat>D.lat&&z.lat<k.lat,de=J.lng>D.lng&&z.lng<k.lng;return ie&&de},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(w,D){return w?(w=ae(w),this._southWest.equals(w.getSouthWest(),D)&&this._northEast.equals(w.getNorthEast(),D)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ae(w,D){return w instanceof ve?w:new ve(w,D)}function fe(w,D,k){if(isNaN(w)||isNaN(D))throw new Error("Invalid LatLng object: ("+w+", "+D+")");this.lat=+w,this.lng=+D,k!==void 0&&(this.alt=+k)}fe.prototype={equals:function(w,D){if(!w)return!1;w=we(w);var k=Math.max(Math.abs(this.lat-w.lat),Math.abs(this.lng-w.lng));return k<=(D===void 0?1e-9:D)},toString:function(w){return"LatLng("+d(this.lat,w)+", "+d(this.lng,w)+")"},distanceTo:function(w){return ge.distance(this,we(w))},wrap:function(){return ge.wrapLatLng(this)},toBounds:function(w){var D=180*w/40075017,k=D/Math.cos(Math.PI/180*this.lat);return ae([this.lat-D,this.lng-k],[this.lat+D,this.lng+k])},clone:function(){return new fe(this.lat,this.lng,this.alt)}};function we(w,D,k){return w instanceof fe?w:x(w)&&typeof w[0]!="object"?w.length===3?new fe(w[0],w[1],w[2]):w.length===2?new fe(w[0],w[1]):null:w==null?w:typeof w=="object"&&"lat"in w?new fe(w.lat,"lng"in w?w.lng:w.lon,w.alt):D===void 0?null:new fe(w,D,k)}var Me={latLngToPoint:function(w,D){var k=this.projection.project(w),z=this.scale(D);return this.transformation._transform(k,z)},pointToLatLng:function(w,D){var k=this.scale(D),z=this.transformation.untransform(w,k);return this.projection.unproject(z)},project:function(w){return this.projection.project(w)},unproject:function(w){return this.projection.unproject(w)},scale:function(w){return 256*Math.pow(2,w)},zoom:function(w){return Math.log(w/256)/Math.LN2},getProjectedBounds:function(w){if(this.infinite)return null;var D=this.projection.bounds,k=this.scale(w),z=this.transformation.transform(D.min,k),J=this.transformation.transform(D.max,k);return new ce(z,J)},infinite:!1,wrapLatLng:function(w){var D=this.wrapLng?c(w.lng,this.wrapLng,!0):w.lng,k=this.wrapLat?c(w.lat,this.wrapLat,!0):w.lat,z=w.alt;return new fe(k,D,z)},wrapLatLngBounds:function(w){var D=w.getCenter(),k=this.wrapLatLng(D),z=D.lat-k.lat,J=D.lng-k.lng;if(z===0&&J===0)return w;
158var ie=w.getSouthWest(),de=w.getNorthEast(),Pe=new fe(ie.lat-z,ie.lng-J),Qe=new fe(de.lat-z,de.lng-J);return new ve(Pe,Qe)}},ge=i({},Me,{wrapLng:[-180,180],R:6371e3,distance:function(w,D){var k=Math.PI/180,z=w.lat*k,J=D.lat*k,ie=Math.sin((D.lat-w.lat)*k/2),de=Math.sin((D.lng-w.lng)*k/2),Pe=ie*ie+Math.cos(z)*Math.cos(J)*de*de,Qe=2*Math.atan2(Math.sqrt(Pe),Math.sqrt(1-Pe));return this.R*Qe}}),be=6378137,Ve={R:be,MAX_LATITUDE:85.0511287798,project:function(w){var D=Math.PI/180,k=this.MAX_LATITUDE,z=Math.max(Math.min(k,w.lat),-k),J=Math.sin(z*D);return new q(this.R*w.lng*D,this.R*Math.log((1+J)/(1-J))/2)},unproject:function(w){var D=180/Math.PI;return new fe((2*Math.atan(Math.exp(w.y/this.R))-Math.PI/2)*D,w.x*D/this.R)},bounds:(function(){var w=be*Math.PI;return new ce([-w,-w],[w,w])})()};function Re(w,D,k,z){if(x(w)){this._a=w[0],this._b=w[1],this._c=w[2],this._d=w[3];return}this._a=w,this._b=D,this._c=k,this._d=z}Re.prototype={transform:function(w,D){return this._transform(w.clone(),D)},_transform:function(w,D){return D=D||1,w.x=D*(this._a*w.x+this._b),w.y=D*(this._c*w.y+this._d),w},untransform:function(w,D){return D=D||1,new q((w.x/D-this._b)/this._a,(w.y/D-this._d)/this._c)}};function Se(w,D,k,z){return new Re(w,D,k,z)}var nt=i({},ge,{code:"EPSG:3857",projection:Ve,transformation:(function(){var w=.5/(Math.PI*Ve.R);return Se(w,.5,-w,.5)})()}),qe=i({},nt,{code:"EPSG:900913"});function tt(w){return document.createElementNS("http://www.w3.org/2000/svg",w)}function lt(w,D){var k="",z,J,ie,de,Pe,Qe;for(z=0,ie=w.length;z<ie;z++){for(Pe=w[z],J=0,de=Pe.length;J<de;J++)Qe=Pe[J],k+=(J?"L":"M")+Qe.x+" "+Qe.y;k+=D?Qt.svg?"z":"x":""}return k||"M0 0"}var ct=document.documentElement.style,Ze="ActiveXObject"in window,Jt=Ze&&!document.addEventListener,Sn="msLaunchUri"in navigator&&!("documentMode"in document),jr=zs("webkit"),Oe=zs("android"),ht=zs("android 2")||zs("android 3"),At=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ft=Oe&&zs("Google")&&At<537&&!("AudioNode"in window),Yt=!!window.opera,zr=!Sn&&zs("chrome"),ni=zs("gecko")&&!jr&&!Yt&&!Ze,ii=!zr&&zs("safari"),Qs=zs("phantom"),js="OTransition"in ct,dd=navigator.platform.indexOf("Win")===0,pu=Ze&&"transition"in ct,Cl="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ht,Wc="MozPerspective"in ct,hd=!window.L_DISABLE_3D&&(pu||Cl||Wc)&&!js&&!Qs,vu=typeof orientation<"u"||zs("mobile"),_p=vu&&jr,Kt=vu&&Cl,un=!window.PointerEvent&&window.MSPointerEvent,ar=!!(window.PointerEvent||un),Yr="ontouchstart"in window||!!window.TouchEvent,aa=!window.L_NO_TOUCH&&(Yr||ar),$r=vu&&Yt,Lg=vu&&ni,B0=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,D0=(function(){var w=!1;try{var D=Object.defineProperty({},"passive",{get:function(){w=!0}});window.addEventListener("testPassiveEventSupport",f,D),window.removeEventListener("testPassiveEventSupport",f,D)}catch{}return w})(),gu=(function(){return!!document.createElement("canvas").getContext})(),oa=!!(document.createElementNS&&tt("svg").createSVGRect),Yc=!!oa&&(function(){var w=document.createElement("div");return w.innerHTML="<svg/>",(w.firstChild&&w.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),ts=!oa&&(function(){try{var w=document.createElement("div");w.innerHTML='<v:shape adj="1"/>';var D=w.firstChild;return D.style.behavior="url(#default#VML)",D&&typeof D.adj=="object"}catch{return!1}})(),M0=navigator.platform.indexOf("Mac")===0,LE=navigator.platform.indexOf("Linux")===0;function zs(w){return navigator.userAgent.toLowerCase().indexOf(w)>=0}var Qt={ie:Ze,ielt9:Jt,edge:Sn,webkit:jr,android:Oe,android23:ht,androidStock:Ft,opera:Yt,chrome:zr,gecko:ni,safari:ii,phantom:Qs,opera12:js,win:dd,ie3d:pu,webkit3d:Cl,gecko3d:Wc,any3d:hd,mobile:vu,mobileWebkit:_p,mobileWebkit3d:Kt,msPointer:un,pointer:ar,touch:aa,touchNative:Yr,mobileOpera:$r,mobileGecko:Lg,retina:B0,passiveEvents:D0,canvas:gu,svg:oa,vml:ts,inlineSvg:Yc,mac:M0,linux:LE},bp=Qt.msPointer?"MSPointerDown":"pointerdown",xp=Qt.msPointer?"MSPointerMove":"pointermove",$c=Qt.msPointer?"MSPointerUp":"pointerup",Sp=Qt.msPointer?"MSPointerCancel":"pointercancel",Zc={touchstart:bp,touchmove:xp,touchend:$c,touchcancel:Sp},L0={touchstart:O0,touchmove:ic,touchend:ic,touchcancel:ic},Eh={},Rg=!1;function R0(w,D,k){return D==="touchstart"&&Qx(),L0[D]?(k=L0[D].bind(this,k),w.addEventListener(Zc[D],k,!1),k):(console.warn("wrong event specified:",D),f)}
158function Cp(w,D,k){if(!Zc[D]){console.warn("wrong event specified:",D);return}w.removeEventListener(Zc[D],k,!1)}function RE(w){Eh[w.pointerId]=w}function Hx(w){Eh[w.pointerId]&&(Eh[w.pointerId]=w)}function I0(w){delete Eh[w.pointerId]}function Qx(){Rg||(document.addEventListener(bp,RE,!0),document.addEventListener(xp,Hx,!0),document.addEventListener($c,I0,!0),document.addEventListener(Sp,I0,!0),Rg=!0)}function ic(w,D){if(D.pointerType!==(D.MSPOINTER_TYPE_MOUSE||"mouse")){D.touches=[];for(var k in Eh)D.touches.push(Eh[k]);D.changedTouches=[D],w(D)}}function O0(w,D){D.MSPOINTER_TYPE_TOUCH&&D.pointerType===D.MSPOINTER_TYPE_TOUCH&&pa(D),ic(w,D)}function Tp(w){var D={},k,z;for(z in w)k=w[z],D[z]=k&&k.bind?k.bind(w):k;return w=D,D.type="dblclick",D.detail=2,D.isTrusted=!1,D._simulated=!0,D}var jx=200;function ac(w,D){w.addEventListener("dblclick",D);var k=0,z;function J(ie){if(ie.detail!==1){z=ie.detail;return}if(!(ie.pointerType==="mouse"||ie.sourceCapabilities&&!ie.sourceCapabilities.firesTouchEvents)){var de=Un(ie);if(!(de.some(function(Qe){return Qe instanceof HTMLLabelElement&&Qe.attributes.for})&&!de.some(function(Qe){return Qe instanceof HTMLInputElement||Qe instanceof HTMLSelectElement}))){var Pe=Date.now();Pe-k<=jx?(z++,z===2&&D(Tp(ie))):z=1,k=Pe}}}return w.addEventListener("click",J),{dblclick:D,simDblclick:J}}function Ma(w,D){w.removeEventListener("dblclick",D.dblclick),w.removeEventListener("click",D.simDblclick)}var La=El(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Tl=El(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ig=Tl==="webkitTransition"||Tl==="OTransition"?Tl+"End":"transitionend";function zx(w){return typeof w=="string"?document.getElementById(w):w}function Ep(w,D){var k=w.style[D]||w.currentStyle&&w.currentStyle[D];if((!k||k==="auto")&&document.defaultView){var z=document.defaultView.getComputedStyle(w,null);k=z?z[D]:null}return k==="auto"?null:k}function cn(w,D,k){var z=document.createElement(w);return z.className=D||"",k&&k.appendChild(z),z}function kn(w){var D=w.parentNode;D&&D.removeChild(w)}function Xc(w){for(;w.firstChild;)w.removeChild(w.firstChild)}function mu(w){var D=w.parentNode;D&&D.lastChild!==w&&D.appendChild(w)}function rs(w){var D=w.parentNode;D&&D.firstChild!==w&&D.insertBefore(w,D.firstChild)}function yu(w,D){if(w.classList!==void 0)return w.classList.contains(D);var k=Bh(w);return k.length>0&&new RegExp("(^|\\s)"+D+"(\\s|$)").test(k)}function br(w,D){if(w.classList!==void 0)for(var k=p(D),z=0,J=k.length;z<J;z++)w.classList.add(k[z]);else if(!yu(w,D)){var ie=Bh(w);mi(w,(ie?ie+" ":"")+D)}}function Nn(w,D){w.classList!==void 0?w.classList.remove(D):mi(w,A((" "+Bh(w)+" ").replace(" "+D+" "," ")))}function mi(w,D){w.className.baseVal===void 0?w.className=D:w.className.baseVal=D}function Bh(w){return w.correspondingElement&&(w=w.correspondingElement),w.className.baseVal===void 0?w.className:w.className.baseVal}function ns(w,D){"opacity"in w.style?w.style.opacity=D:"filter"in w.style&&P0(w,D)}function P0(w,D){var k=!1,z="DXImageTransform.Microsoft.Alpha";try{k=w.filters.item(z)}catch{if(D===1)return}D=Math.round(D*100),k?(k.Enabled=D!==100,k.Opacity=D):w.style.filter+=" progid:"+z+"(opacity="+D+")"}function El(w){for(var D=document.documentElement.style,k=0;k<w.length;k++)if(w[k]in D)return w[k];return!1}function Lo(w,D,k){var z=D||new q(0,0);w.style[La]=(Qt.ie3d?"translate("+z.x+"px,"+z.y+"px)":"translate3d("+z.x+"px,"+z.y+"px,0)")+(k?" scale("+k+")":"")}function Yi(w,D){w._leaflet_pos=D,Qt.any3d?Lo(w,D):(w.style.left=D.x+"px",w.style.top=D.y+"px")}function oc(w){return w._leaflet_pos||new q(0,0)}var qc,Ad,Fr;if("onselectstart"in document)qc=function(){Wt(window,"selectstart",pa)},Ad=function(){Fn(window,"selectstart",pa)};else{var pd=El(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);qc=function(){if(pd){var w=document.documentElement.style;Fr=w[pd],w[pd]="none"}},Ad=function(){pd&&(document.documentElement.style[pd]=Fr,Fr=void 0)}}function vd(){Wt(window,"dragstart",pa)}function Dh(){Fn(window,"dragstart",pa)}var is,Ga;function Bp(w){for(;w.tabIndex===-1;)w=w.parentNode;w.style&&(Dp(),is=w,Ga=w.style.outlineStyle,w.style.outlineStyle="none",Wt(window,"keydown",Dp))}function Dp(){is&&(is.style.outlineStyle=Ga,is=void 0,Ga=void 0,Fn(window,"keydown",Dp))}function Og(w){do w=w.parentNode;while((!w.offsetWidth||!w.offsetHeight)&&w!==document.body);return w}function Pg(w){var D=w.getBoundingClientRect();return{x:D.width/w.offsetWidth||1,y:D.height/w.offsetHeight||1,boundingClientRect:D}}var IE={__proto__:null,TRANSFORM:La,TRANSITION:Tl,TRANSITION_END:Ig,get:zx,getStyle:Ep,create:cn,remove:kn,empty:Xc,toFront:mu,toBack:rs,hasClass:yu,addClass:br,removeClass:Nn,setClass:mi,getClass:Bh,setOpacity:ns,testProp:El,setTransform:Lo,setPosition:Yi,getPosition:oc,get disableTextSelection(){return qc},get enableTextSelection(){return Ad},disableImageDrag:vd,enableImageDrag:Dh,preventOutline:Bp,restoreOutline:Dp,getSizedParentNode:Og,getScale:Pg};function Wt(w,D,k,z){if(D&&typeof D=="object")for(var J in D)Mh(w,J,D[J],k);else{D=p(D);for(var ie=0,de=D.length;ie<de;ie++)Mh(w,D[ie],k,z)}return this}var Vs="_leaflet_events";function Fn(w,D,k,z){if(arguments.length===1)kg(w),delete w[Vs];else if(D&&typeof D=="object")for(var J in D)Ng(w,J,D[J],k);else if(D=p(D),arguments.length===2)kg(w,function(Pe){return T(D,Pe)!==-1});else for(var ie=0,de=D.length;ie<de;ie++)Ng(w,D[ie],k,z);return this}function kg(w,D){for(var k in w[Vs]){var z=k.split(/\d/)[0];(!D||D(z))&&Ng(w,z,null,null,k)}}
158var Jc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Mh(w,D,k,z){var J=D+l(k)+(z?"_"+l(z):"");if(w[Vs]&&w[Vs][J])return this;var ie=function(Pe){return k.call(z||w,Pe||window.event)},de=ie;!Qt.touchNative&&Qt.pointer&&D.indexOf("touch")===0?ie=R0(w,D,ie):Qt.touch&&D==="dblclick"?ie=ac(w,ie):"addEventListener"in w?D==="touchstart"||D==="touchmove"||D==="wheel"||D==="mousewheel"?w.addEventListener(Jc[D]||D,ie,Qt.passiveEvents?{passive:!1}:!1):D==="mouseenter"||D==="mouseleave"?(ie=function(Pe){Pe=Pe||window.event,Mp(w,Pe)&&de(Pe)},w.addEventListener(Jc[D],ie,!1)):w.addEventListener(D,de,!1):w.attachEvent("on"+D,ie),w[Vs]=w[Vs]||{},w[Vs][J]=ie}function Ng(w,D,k,z,J){J=J||D+l(k)+(z?"_"+l(z):"");var ie=w[Vs]&&w[Vs][J];if(!ie)return this;!Qt.touchNative&&Qt.pointer&&D.indexOf("touch")===0?Cp(w,D,ie):Qt.touch&&D==="dblclick"?Ma(w,ie):"removeEventListener"in w?w.removeEventListener(Jc[D]||D,ie,!1):w.detachEvent("on"+D,ie),w[Vs][J]=null}function Gs(w){return w.stopPropagation?w.stopPropagation():w.originalEvent?w.originalEvent._stopped=!0:w.cancelBubble=!0,this}function k0(w){return Mh(w,"wheel",Gs),this}function Lh(w){return Wt(w,"mousedown touchstart dblclick contextmenu",Gs),w._leaflet_disable_click=!0,this}function pa(w){return w.preventDefault?w.preventDefault():w.returnValue=!1,this}function fn(w){return pa(w),Gs(w),this}function Un(w){if(w.composedPath)return w.composedPath();for(var D=[],k=w.target;k;)D.push(k),k=k.parentNode;return D}function Vx(w,D){if(!D)return new q(w.clientX,w.clientY);var k=Pg(D),z=k.boundingClientRect;return new q((w.clientX-z.left)/k.x-D.clientLeft,(w.clientY-z.top)/k.y-D.clientTop)}var Fg=Qt.linux&&Qt.chrome?window.devicePixelRatio:Qt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Bl(w){return Qt.edge?w.wheelDeltaY/2:w.deltaY&&w.deltaMode===0?-w.deltaY/Fg:w.deltaY&&w.deltaMode===1?-w.deltaY*20:w.deltaY&&w.deltaMode===2?-w.deltaY*60:w.deltaX||w.deltaZ?0:w.wheelDelta?(w.wheelDeltaY||w.wheelDelta)/2:w.detail&&Math.abs(w.detail)<32765?-w.detail*20:w.detail?w.detail/-32765*60:0}function Mp(w,D){var k=D.relatedTarget;if(!k)return!0;try{for(;k&&k!==w;)k=k.parentNode}catch{return!1}return k!==w}var N0={__proto__:null,on:Wt,off:Fn,stopPropagation:Gs,disableScrollPropagation:k0,disableClickPropagation:Lh,preventDefault:pa,stop:fn,getPropagationPath:Un,getMousePosition:Vx,getWheelDelta:Bl,isExternalTarget:Mp,addListener:Wt,removeListener:Fn},gd=X.extend({run:function(w,D,k,z){this.stop(),this._el=w,this._inProgress=!0,this._duration=k||.25,this._easeOutPower=1/Math.max(z||.5,.2),this._startPos=oc(w),this._offset=D.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=j(this._animate,this),this._step()},_step:function(w){var D=+new Date-this._startTime,k=this._duration*1e3;D<k?this._runFrame(this._easeOut(D/k),w):(this._runFrame(1),this._complete())},_runFrame:function(w,D){var k=this._startPos.add(this._offset.multiplyBy(w));D&&k._round(),Yi(this._el,k),this.fire("step")},_complete:function(){W(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(w){return 1-Math.pow(1-w,this._easeOutPower)}}),Ir=X.extend({options:{crs:nt,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(w,D){D=g(this,D),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(w),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),D.maxBounds&&this.setMaxBounds(D.maxBounds),D.zoom!==void 0&&(this._zoom=this._limitZoom(D.zoom)),D.center&&D.zoom!==void 0&&this.setView(we(D.center),D.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Tl&&Qt.any3d&&!Qt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Wt(this._proxy,Ig,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
158,setView:function(w,D,k){if(D=D===void 0?this._zoom:this._limitZoom(D),w=this._limitCenter(we(w),D,this.options.maxBounds),k=k||{},this._stop(),this._loaded&&!k.reset&&k!==!0){k.animate!==void 0&&(k.zoom=i({animate:k.animate},k.zoom),k.pan=i({animate:k.animate,duration:k.duration},k.pan));var z=this._zoom!==D?this._tryAnimatedZoom&&this._tryAnimatedZoom(w,D,k.zoom):this._tryAnimatedPan(w,k.pan);if(z)return clearTimeout(this._sizeTimer),this}return this._resetView(w,D,k.pan&&k.pan.noMoveStart),this},setZoom:function(w,D){return this._loaded?this.setView(this.getCenter(),w,{zoom:D}):(this._zoom=w,this)},zoomIn:function(w,D){return w=w||(Qt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+w,D)},zoomOut:function(w,D){return w=w||(Qt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-w,D)},setZoomAround:function(w,D,k){var z=this.getZoomScale(D),J=this.getSize().divideBy(2),ie=w instanceof q?w:this.latLngToContainerPoint(w),de=ie.subtract(J).multiplyBy(1-1/z),Pe=this.containerPointToLatLng(J.add(de));return this.setView(Pe,D,{zoom:k})},_getBoundsCenterZoom:function(w,D){D=D||{},w=w.getBounds?w.getBounds():ae(w);var k=te(D.paddingTopLeft||D.padding||[0,0]),z=te(D.paddingBottomRight||D.padding||[0,0]),J=this.getBoundsZoom(w,!1,k.add(z));if(J=typeof D.maxZoom=="number"?Math.min(D.maxZoom,J):J,J===1/0)return{center:w.getCenter(),zoom:J};
158var ie=z.subtract(k).divideBy(2),de=this.project(w.getSouthWest(),J),Pe=this.project(w.getNorthEast(),J),Qe=this.unproject(de.add(Pe).divideBy(2).add(ie),J);return{center:Qe,zoom:J}},fitBounds:function(w,D){if(w=ae(w),!w.isValid())throw new Error("Bounds are not valid.");var k=this._getBoundsCenterZoom(w,D);return this.setView(k.center,k.zoom,D)},fitWorld:function(w){return this.fitBounds([[-90,-180],[90,180]],w)},panTo:function(w,D){return this.setView(w,this._zoom,{pan:D})},panBy:function(w,D){if(w=te(w).round(),D=D||{},!w.x&&!w.y)return this.fire("moveend");if(D.animate!==!0&&!this.getSize().contains(w))return this._resetView(this.unproject(this.project(this.getCenter()).add(w)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new gd,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),D.noMoveStart||this.fire("movestart"),D.animate!==!1){br(this._mapPane,"leaflet-pan-anim");var k=this._getMapPanePos().subtract(w).round();this._panAnim.run(this._mapPane,k,D.duration||.25,D.easeLinearity)}else this._rawPanBy(w),this.fire("move").fire("moveend");return this},flyTo:function(w,D,k){if(k=k||{},k.animate===!1||!Qt.any3d)return this.setView(w,D,k);this._stop();var z=this.project(this.getCenter()),J=this.project(w),ie=this.getSize(),de=this._zoom;w=we(w),D=D===void 0?de:D;var Pe=Math.max(ie.x,ie.y),Qe=Pe*this.getZoomScale(de,D),Xe=J.distanceTo(z)||1,yt=1.42,$t=yt*yt;function ur(ci){var Tu=ci?-1:1,W0=ci?Qe:Pe,se=Qe*Qe-Pe*Pe+Tu*$t*$t*Xe*Xe,Il=2*W0*$t*Xe,Ol=se/Il,Ya=Math.sqrt(Ol*Ol+1)-Ol,Or=Ya<1e-9?-18:Math.log(Ya);return Or}function ga(ci){return(Math.exp(ci)-Math.exp(-ci))/2}function Zn(ci){return(Math.exp(ci)+Math.exp(-ci))/2}function ki(ci){return ga(ci)/Zn(ci)}var ma=ur(0);function Ei(ci){return Pe*(Zn(ma)/Zn(ma+yt*ci))}function nf(ci){return Pe*(Zn(ma)*ki(ma+yt*ci)-ga(ma))/$t}function fc(ci){return 1-Math.pow(1-ci,1.5)}var Xx=Date.now(),Vp=(ur(1)-ma)/yt,Td=k.duration?1e3*k.duration:1e3*Vp*.8;function rm(){var ci=(Date.now()-Xx)/Td,Tu=fc(ci)*Vp;ci<=1?(this._flyToFrame=j(rm,this),this._move(this.unproject(z.add(J.subtract(z).multiplyBy(nf(Tu)/Xe)),de),this.getScaleZoom(Pe/Ei(Tu),de),{flyTo:!0})):this._move(w,D)._moveEnd(!0)}return this._moveStart(!0,k.noMoveStart),rm.call(this),this},flyToBounds:function(w,D){var k=this._getBoundsCenterZoom(w,D);return this.flyTo(k.center,k.zoom,D)},setMaxBounds:function(w){return w=ae(w),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),w.isValid()?(this.options.maxBounds=w,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(w){var D=this.options.minZoom;return this.options.minZoom=w,this._loaded&&D!==w&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(w):this},setMaxZoom:function(w){var D=this.options.maxZoom;return this.options.maxZoom=w,this._loaded&&D!==w&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(w):this},panInsideBounds:function(w,D){this._enforcingBounds=!0;var k=this.getCenter(),z=this._limitCenter(k,this._zoom,ae(w));return k.equals(z)||this.panTo(z,D),this._enforcingBounds=!1,this},panInside:function(w,D){D=D||{};var k=te(D.paddingTopLeft||D.padding||[0,0]),z=te(D.paddingBottomRight||D.padding||[0,0]),J=this.project(this.getCenter()),ie=this.project(w),de=this.getPixelBounds(),Pe=he([de.min.add(k),de.max.subtract(z)]),Qe=Pe.getSize();if(!Pe.contains(ie)){this._enforcingBounds=!0;var Xe=ie.subtract(Pe.getCenter()),yt=Pe.extend(ie).getSize().subtract(Qe);J.x+=Xe.x<0?-yt.x:yt.x,J.y+=Xe.y<0?-yt.y:yt.y,this.panTo(this.unproject(J),D),this._enforcingBounds=!1}return this},invalidateSize:function(w){if(!this._loaded)return this;w=i({animate:!1,pan:!0},w===!0?{animate:!0}:w);var D=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var k=this.getSize(),z=D.divideBy(2).round(),J=k.divideBy(2).round(),ie=z.subtract(J);return!ie.x&&!ie.y?this:(w.animate&&w.pan?this.panBy(ie):(w.pan&&this._rawPanBy(ie),this.fire("move"),w.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:D,newSize:k}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(w){if(w=this._locateOptions=i({timeout:1e4,watch:!1},w),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var D=o(this._handleGeolocationResponse,this),k=o(this._handleGeolocationError,this);return w.watch?this._locationWatchId=navigator.geolocation.watchPosition(D,k,w):navigator.geolocation.getCurrentPosition(D,k,w),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(w){if(this._container._leaflet_id){var D=w.code,k=w.message||(D===1?"permission denied":D===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:D,message:"Geolocation error: "+k+"."})}},_handleGeolocationResponse:function(w){if(this._container._leaflet_id){var D=w.coords.latitude,k=w.coords.longitude,z=new fe(D,k),J=z.toBounds(w.coords.accuracy*2),ie=this._locateOptions;if(ie.setView){var de=this.getBoundsZoom(J);this.setView(z,ie.maxZoom?Math.min(de,ie.maxZoom):de)}var Pe={latlng:z,bounds:J,timestamp:w.timestamp};for(var Qe in w.coords)typeof w.coords[Qe]=="number"&&(Pe[Qe]=w.coords[Qe]);this.fire("locationfound",Pe)}},addHandler:function(w,D){if(!D)return this;var k=this[w]=new D(this);return this._handlers.push(k),this.options[w]&&k.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),kn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var w;for(w in this._layers)this._layers[w].remove();for(w in this._panes)kn(this._panes[w]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(w,D){var k="leaflet-pane"+(w?" leaflet-"+w.replace("Pane","")+"-pane":""),z=cn("div",k,D||this._mapPane);return w&&(this._panes[w]=z),z},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var w=this.getPixelBounds(),D=this.unproject(w.getBottomLeft()),k=this.unproject(w.getTopRight());return new ve(D,k)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
158om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(w,D,k){w=ae(w),k=te(k||[0,0]);var z=this.getZoom()||0,J=this.getMinZoom(),ie=this.getMaxZoom(),de=w.getNorthWest(),Pe=w.getSouthEast(),Qe=this.getSize().subtract(k),Xe=he(this.project(Pe,z),this.project(de,z)).getSize(),yt=Qt.any3d?this.options.zoomSnap:1,$t=Qe.x/Xe.x,ur=Qe.y/Xe.y,ga=D?Math.max($t,ur):Math.min($t,ur);return z=this.getScaleZoom(ga,z),yt&&(z=Math.round(z/(yt/100))*(yt/100),z=D?Math.ceil(z/yt)*yt:Math.floor(z/yt)*yt),Math.max(J,Math.min(ie,z))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(w,D){var k=this._getTopLeftPoint(w,D);return new ce(k,k.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(w){return this.options.crs.getProjectedBounds(w===void 0?this.getZoom():w)},getPane:function(w){return typeof w=="string"?this._panes[w]:w},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(w,D){var k=this.options.crs;return D=D===void 0?this._zoom:D,k.scale(w)/k.scale(D)},getScaleZoom:function(w,D){var k=this.options.crs;D=D===void 0?this._zoom:D;var z=k.zoom(w*k.scale(D));return isNaN(z)?1/0:z},project:function(w,D){return D=D===void 0?this._zoom:D,this.options.crs.latLngToPoint(we(w),D)},unproject:function(w,D){return D=D===void 0?this._zoom:D,this.options.crs.pointToLatLng(te(w),D)},layerPointToLatLng:function(w){var D=te(w).add(this.getPixelOrigin());return this.unproject(D)},latLngToLayerPoint:function(w){var D=this.project(we(w))._round();return D._subtract(this.getPixelOrigin())},wrapLatLng:function(w){return this.options.crs.wrapLatLng(we(w))},wrapLatLngBounds:function(w){return this.options.crs.wrapLatLngBounds(ae(w))},distance:function(w,D){return this.options.crs.distance(we(w),we(D))},containerPointToLayerPoint:function(w){return te(w).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(w){return te(w).add(this._getMapPanePos())},containerPointToLatLng:function(w){var D=this.containerPointToLayerPoint(te(w));return this.layerPointToLatLng(D)},latLngToContainerPoint:function(w){return this.layerPointToContainerPoint(this.latLngToLayerPoint(we(w)))},mouseEventToContainerPoint:function(w){return Vx(w,this._container)},mouseEventToLayerPoint:function(w){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(w))},mouseEventToLatLng:function(w){return this.layerPointToLatLng(this.mouseEventToLayerPoint(w))},_initContainer:function(w){var D=this._container=zx(w);if(D){if(D._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Wt(D,"scroll",this._onScroll,this),this._containerId=l(D)},_initLayout:function(){var w=this._container;this._fadeAnimated=this.options.fadeAnimation&&Qt.any3d,br(w,"leaflet-container"+(Qt.touch?" leaflet-touch":"")+(Qt.retina?" leaflet-retina":"")+(Qt.ielt9?" leaflet-oldie":"")+(Qt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var D=Ep(w,"position");D!=="absolute"&&D!=="relative"&&D!=="fixed"&&D!=="sticky"&&(w.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var w=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Yi(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(br(w.markerPane,"leaflet-zoom-hide"),br(w.shadowPane,"leaflet-zoom-hide"))},_resetView:function(w,D,k){Yi(this._mapPane,new q(0,0));var z=!this._loaded;this._loaded=!0,D=this._limitZoom(D),this.fire("viewprereset");var J=this._zoom!==D;this._moveStart(J,k)._move(w,D)._moveEnd(J),this.fire("viewreset"),z&&this.fire("load")},_moveStart:function(w,D){return w&&this.fire("zoomstart"),D||this.fire("movestart"),this},_move:function(w,D,k,z){D===void 0&&(D=this._zoom);var J=this._zoom!==D;return this._zoom=D,this._lastCenter=w,this._pixelOrigin=this._getNewPixelOrigin(w),z?k&&k.pinch&&this.fire("zoom",k):((J||k&&k.pinch)&&this.fire("zoom",k),this.fire("move",k)
158),this},_moveEnd:function(w){return w&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(w){Yi(this._mapPane,this._getMapPanePos().subtract(w))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(w){this._targets={},this._targets[l(this._container)]=this;var D=w?Fn:Wt;D(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&D(window,"resize",this._onResize,this),Qt.any3d&&this.options.transform3DLimit&&(w?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=j(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var w=this._getMapPanePos();Math.max(Math.abs(w.x),Math.abs(w.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(w,D){for(var k=[],z,J=D==="mouseout"||D==="mouseover",ie=w.target||w.srcElement,de=!1;ie;){if(z=this._targets[l(ie)],z&&(D==="click"||D==="preclick")&&this._draggableMoved(z)){de=!0;break}if(z&&z.listens(D,!0)&&(J&&!Mp(ie,w)||(k.push(z),J))||ie===this._container)break;ie=ie.parentNode}return!k.length&&!de&&!J&&this.listens(D,!0)&&(k=[this]),k},_isClickDisabled:function(w){for(;w&&w!==this._container;){if(w._leaflet_disable_click)return!0;w=w.parentNode}},_handleDOMEvent:function(w){var D=w.target||w.srcElement;if(!(!this._loaded||D._leaflet_disable_events||w.type==="click"&&this._isClickDisabled(D))){var k=w.type;k==="mousedown"&&Bp(D),this._fireDOMEvent(w,k)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(w,D,k){if(w.type==="click"){var z=i({},w);z.type="preclick",this._fireDOMEvent(z,z.type,k)}var J=this._findEventTargets(w,D);if(k){for(var ie=[],de=0;de<k.length;de++)k[de].listens(D,!0)&&ie.push(k[de]);J=ie.concat(J)}if(J.length){D==="contextmenu"&&pa(w);var Pe=J[0],Qe={originalEvent:w};if(w.type!=="keypress"&&w.type!=="keydown"&&w.type!=="keyup"){var Xe=Pe.getLatLng&&(!Pe._radius||Pe._radius<=10);Qe.containerPoint=Xe?this.latLngToContainerPoint(Pe.getLatLng()):this.mouseEventToContainerPoint(w),Qe.layerPoint=this.containerPointToLayerPoint(Qe.containerPoint),Qe.latlng=Xe?Pe.getLatLng():this.layerPointToLatLng(Qe.layerPoint)}for(de=0;de<J.length;de++)if(J[de].fire(D,Qe,!0),Qe.originalEvent._stopped||J[de].options.bubblingMouseEvents===!1&&T(this._mouseEvents,D)!==-1)return}},_draggableMoved:function(w){return w=w.dragging&&w.dragging.enabled()?w:this,w.dragging&&w.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var w=0,D=this._handlers.length;w<D;w++)this._handlers[w].disable()},whenReady:function(w,D){return this._loaded?w.call(D||this,{target:this}):this.on("load",w,D),this},_getMapPanePos:function(){return oc(this._mapPane)||new q(0,0)},_moved:function(){var w=this._getMapPanePos();return w&&!w.equals([0,0])},_getTopLeftPoint:function(w,D){var k=w&&D!==void 0?this._getNewPixelOrigin(w,D):this.getPixelOrigin();return k.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(w,D){var k=this.getSize()._divideBy(2);return this.project(w,D)._subtract(k)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(w,D,k){var z=this._getNewPixelOrigin(k,D);return this.project(w,D)._subtract(z)},_latLngBoundsToNewLayerBounds:function(w,D,k){var z=this._getNewPixelOrigin(k,D);
158return he([this.project(w.getSouthWest(),D)._subtract(z),this.project(w.getNorthWest(),D)._subtract(z),this.project(w.getSouthEast(),D)._subtract(z),this.project(w.getNorthEast(),D)._subtract(z)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(w){return this.latLngToLayerPoint(w).subtract(this._getCenterLayerPoint())},_limitCenter:function(w,D,k){if(!k)return w;var z=this.project(w,D),J=this.getSize().divideBy(2),ie=new ce(z.subtract(J),z.add(J)),de=this._getBoundsOffset(ie,k,D);return Math.abs(de.x)<=1&&Math.abs(de.y)<=1?w:this.unproject(z.add(de),D)},_limitOffset:function(w,D){if(!D)return w;var k=this.getPixelBounds(),z=new ce(k.min.add(w),k.max.add(w));return w.add(this._getBoundsOffset(z,D))},_getBoundsOffset:function(w,D,k){var z=he(this.project(D.getNorthEast(),k),this.project(D.getSouthWest(),k)),J=z.min.subtract(w.min),ie=z.max.subtract(w.max),de=this._rebound(J.x,-ie.x),Pe=this._rebound(J.y,-ie.y);return new q(de,Pe)},_rebound:function(w,D){return w+D>0?Math.round(w-D)/2:Math.max(0,Math.ceil(w))-Math.max(0,Math.floor(D))},_limitZoom:function(w){var D=this.getMinZoom(),k=this.getMaxZoom(),z=Qt.any3d?this.options.zoomSnap:1;return z&&(w=Math.round(w/z)*z),Math.max(D,Math.min(k,w))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Nn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(w,D){var k=this._getCenterOffset(w)._trunc();return(D&&D.animate)!==!0&&!this.getSize().contains(k)?!1:(this.panBy(k,D),!0)},_createAnimProxy:function(){var w=this._proxy=cn("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(w),this.on("zoomanim",function(D){var k=La,z=this._proxy.style[k];Lo(this._proxy,this.project(D.center,D.zoom),this.getZoomScale(D.zoom,1)),z===this._proxy.style[k]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){kn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var w=this.getCenter(),D=this.getZoom();Lo(this._proxy,this.project(w,D),this.getZoomScale(D,1))},_catchTransitionEnd:function(w){this._animatingZoom&&w.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(w,D,k){if(this._animatingZoom)return!0;if(k=k||{},!this._zoomAnimated||k.animate===!1||this._nothingToAnimate()||Math.abs(D-this._zoom)>this.options.zoomAnimationThreshold)return!1;var z=this.getZoomScale(D),J=this._getCenterOffset(w)._divideBy(1-1/z);return k.animate!==!0&&!this.getSize().contains(J)?!1:(j(function(){this._moveStart(!0,k.noMoveStart||!1)._animateZoom(w,D,!0)},this),!0)},_animateZoom:function(w,D,k,z){this._mapPane&&(k&&(this._animatingZoom=!0,this._animateToCenter=w,this._animateToZoom=D,br(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:w,zoom:D,noUpdate:z}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Nn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Gx(w,D){return new Ir(w,D)}var Dn=Y.extend({options:{position:"topright"},initialize:function(w){g(this,w)},getPosition:function(){return this.options.position},setPosition:function(w){var D=this._map;return D&&D.removeControl(this),this.options.position=w,D&&D.addControl(this),this},getContainer:function(){return this._container},addTo:function(w){this.remove(),this._map=w;var D=this._container=this.onAdd(w),k=this.getPosition(),z=w._controlCorners[k];return br(D,"leaflet-control"),k.indexOf("bottom")!==-1?z.insertBefore(D,z.firstChild):z.appendChild(D),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(kn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(w){this._map&&w&&w.screenX>0&&w.screenY>0&&this._map.getContainer().focus()}}),ef=function(w){return new Dn(w)};Ir.include({addControl:function(w){return w.addTo(this),this},removeControl:function(w){return w.remove(),this}
vendor: 4,487 bytes, line 158
158,_initControlPos:function(){var w=this._controlCorners={},D="leaflet-",k=this._controlContainer=cn("div",D+"control-container",this._container);function z(J,ie){var de=D+J+" "+D+ie;w[J+ie]=cn("div",de,k)}z("top","left"),z("top","right"),z("bottom","left"),z("bottom","right")},_clearControlPos:function(){for(var w in this._controlCorners)kn(this._controlCorners[w]);kn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ks=Dn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(w,D,k,z){return k<z?-1:z<k?1:0}},initialize:function(w,D,k){g(this,k),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var z in w)this._addLayer(w[z],z);for(z in D)this._addLayer(D[z],z,!0)},onAdd:function(w){this._initLayout(),this._update(),this._map=w,w.on("zoomend",this._checkDisabledLayers,this);for(var D=0;D<this._layers.length;D++)this._layers[D].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(w){return Dn.prototype.addTo.call(this,w),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var w=0;w<this._layers.length;w++)this._layers[w].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(w,D){return this._addLayer(w,D),this._map?this._update():this},addOverlay:function(w,D){return this._addLayer(w,D,!0),this._map?this._update():this},removeLayer:function(w){w.off("add remove",this._onLayerChange,this);var D=this._getLayer(l(w));return D&&this._layers.splice(this._layers.indexOf(D),1),this._map?this._update():this},expand:function(){br(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var w=this._map.getSize().y-(this._container.offsetTop+50);return w<this._section.clientHeight?(br(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=w+"px"):Nn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Nn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var w="leaflet-control-layers",D=this._container=cn("div",w),k=this.options.collapsed;D.setAttribute("aria-haspopup",!0),Lh(D),k0(D);var z=this._section=cn("section",w+"-list");k&&(this._map.on("click",this.collapse,this),Wt(D,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var J=this._layersLink=cn("a",w+"-toggle",D);J.href="#",J.title="Layers",J.setAttribute("role","button"),Wt(J,{keydown:function(ie){ie.keyCode===13&&this._expandSafely()},click:function(ie){pa(ie),this._expandSafely()}},this),k||this.expand(),this._baseLayersList=cn("div",w+"-base",z),this._separator=cn("div",w+"-separator",z),this._overlaysList=cn("div",w+"-overlays",z),D.appendChild(z)},_getLayer:function(w){for(var D=0;D<this._layers.length;D++)if(this._layers[D]&&l(this._layers[D].layer)===w)return this._layers[D]},_addLayer:function(w,D,k){this._map&&w.on("add remove",this._onLayerChange,this),this._layers.push({layer:w,name:D,overlay:k}),this.options.sortLayers&&this._layers.sort(o(function(z,J){return this.options.sortFunction(z.layer,J.layer,z.name,J.name)},this)),this.options.autoZIndex&&w.setZIndex&&(this._lastZIndex++,w.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Xc(this._baseLayersList),Xc(this._overlaysList),this._layerControlInputs=[];var w,D,k,z,J=0;for(k=0;k<this._layers.length;k++)z=this._layers[k],this._addItem(z),D=D||z.overlay,w=w||!z.overlay,J+=z.overlay?0:1;return this.options.hideSingleBase&&(w=w&&J>1,this._baseLayersList.style.display=w?"":"none"),this._separator.style.display=D&&w?"":"none",this},_onLayerChange:function(w){this._handlingClick||this._update();var D=this._getLayer(l(w.target)),k=D.overlay?w.type==="add"?"overlayadd":"overlayremove":w.type==="add"?"baselayerchange":null;k&&this._map.fire(k,D)},_createRadioElement:function(w,D){var k='<input type="radio" class="leaflet-control-layers-selector" name="'+w+'"'+(D?' checked="checked"':"")+"/>",z=document.createElement("div");return z.innerHTML=k,z.firstChild},_addItem:function(w){var D=document.createElement("label"),k=this._map.hasLayer(w.layer),z;w.overlay?(z=document.createElement("input"),z.type="checkbox",z.className="leaflet-control-layers-selector",z.defaultChecked=k):z=this._createRadioElement("leaflet-base-layers_"+l(this),
158k),this._layerControlInputs.push(z),z.layerId=l(w.layer),Wt(z,"click",this._onInputClick,this);var J=document.createElement("span");J.innerHTML=" "+w.name;var ie=document.createElement("span");D.appendChild(ie),ie.appendChild(z),ie.appendChild(J);var de=w.overlay?this._overlaysList:this._baseLayersList;return de.appendChild(D),this._checkDisabledLayers(),D},_onInputClick:function(){if(!this._preventClick){var w=this._layerControlInputs,D,k,z=[],J=[];this._handlingClick=!0;for(var ie=w.length-1;ie>=0;ie--)D=w[ie],k=this._getLayer(D.layerId).layer,D.checked?z.push(k):D.checked||J.push(k);for(ie=0;ie<J.length;ie++)this._map.hasLayer(J[ie])&&this._map.removeLayer(J[ie]);for(ie=0;ie<z.length;ie++)this._map.hasLayer(z[ie])||this._map.addLayer(z[ie]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var w=this._layerControlInputs,D,k,z=this._map.getZoom(),J=w.length-1;J>=0;J--)D=w[J],k=this._getLayer(D.layerId).layer,D.disabled=k.options.minZoom!==void 0&&z<k.options.minZoom||k.options.maxZoom!==void 0&&z>k.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var w=this._section;this._preventClick=!0,Wt(w,"click",pa),this.expand();var D=this;setTimeout(function(){Fn(w,"click",pa),D._preventClick=!1})}}),wu=function(w,D,k){return new Ks(w,D,k)},md=Dn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(w){var D="leaflet-control-zoom",k=cn("div",D+" leaflet-bar"),z=this.options;return this._zoomInButton=this._createButton(z.zoomInText,z.zoomInTitle,D+"-in",k,this._zoomIn),this._zoomOutButton=this._createButton(z.zoomOutText,z.zoomOutTitle,D+"-out",k,this._zoomOut),this._updateDisabled(),w.on("zoomend zoomlevelschange",this._updateDisabled,this),k},onRemove:function(w){w.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(w){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(w.shiftKey?3:1))},_zoomOut:function(w){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(w.shiftKey?3:1))},_createButton:function(w,D,k,z,J){var ie=cn("a",k,z);return ie.innerHTML=w,ie.href="#",ie.title=D,ie.setAttribute("role","button"),ie.setAttribute("aria-label",D),Lh(ie),Wt(ie,"click",fn),Wt(ie,"click",J,this),Wt(ie,"click",this._refocusOnMap,this),ie},_updateDisabled:function(){var w=this._map,D="leaflet-disabled";Nn(this._zoomInButton,D),Nn(this._zoomOutButton,D),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||w._zoom===w.getMinZoom())&&(br(this._zoomOutButton,D),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||w._zoom===w.getMaxZoom())&&(br(this._zoomInButton,D),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ir.mergeOptions({zoomControl:!0}),Ir.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new md,this.addControl(this.zoomControl))});var Ka=function(w){return new md(w)},_u=Dn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(w){var D="leaflet-control-scale",k=cn("div",D),z=this.options;return this._addScales(z,D+"-line",k),w.on(z.updateWhenIdle?"moveend":"move",this._update,this),w.whenReady(this._update,this),k},onRemove:function(w){w.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(w,D,k){w.metric&&(this._mScale=cn("div",D,k)),w.imperial&&(this._iScale=cn("div",D,k))},_update:function(){var w=this._map,D=w.getSize().y/2,k=w.distance(w.containerPointToLatLng([0,D]),w.containerPointToLatLng([this.options.maxWidth,D]));this._updateScales(k)},_updateScales:function(w){this.options.metric&&w&&this._updateMetric(w),this.options.imperial&&w&&this._updateImperial(w)},_updateMetric:function(w){var D=this._getRoundNum(w),k=D<1e3?D+" m":D/1e3+" km";this._updateScale(this._mScale,k,D/w)},_updateImperial:function(w){var D=w*3.2808399,k,z,J;D>5280?(k=D/5280,z=this._getRoundNum(k),this._updateScale(this._iScale,z+" mi",z/k)):(J=this._getRoundNum(D),this._updateScale(this._iScale,J+" ft",J/D))},_updateScale:function(w,D,k){w.style.width=Math.round(this.options.maxWidth*k)+"px",w.innerHTML=D},_getRoundNum:function(w){var D=Math.pow(10,(Math.floor(w)+"").length-1),k=w/D;return k=k>=10?10:k>=5?5:k>=3?3:k>=2?2:1,D*k}}),Ug=function(w){return new _u(w)},Lp='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Rp=Dn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Qt.inlineSvg?Lp+" ":"")+"Leaflet</a>"},initialize:function(w){g(this,w),this._attributions={}}
158,onAdd:function(w){w.attributionControl=this,this._container=cn("div","leaflet-control-attribution"),Lh(this._container);for(var D in w._layers)w._layers[D].getAttribution&&this.addAttribution(w._layers[D].getAttribution());return this._update(),w.on("layeradd",this._addAttribution,this),this._container},onRemove:function(w){w.off("layeradd",this._addAttribution,this)},_addAttribution:function(w){w.layer.getAttribution&&(this.addAttribution(w.layer.getAttribution()),w.layer.once("remove",function(){this.removeAttribution(w.layer.getAttribution())},this))},setPrefix:function(w){return this.options.prefix=w,this._update(),this},addAttribution:function(w){return w?(this._attributions[w]||(this._attributions[w]=0),this._attributions[w]++,this._update(),this):this},removeAttribution:function(w){return w?(this._attributions[w]&&(this._attributions[w]--,this._update()),this):this},_update:function(){if(this._map){var w=[];for(var D in this._attributions)this._attributions[D]&&w.push(D);var k=[];this.options.prefix&&k.push(this.options.prefix),w.length&&k.push(w.join(", ")),this._container.innerHTML=k.join(' <span aria-hidden="true">|</span> ')}}});Ir.mergeOptions({attributionControl:!0}),Ir.addInitHook(function(){this.options.attributionControl&&new Rp().addTo(this)});var Ip=function(w){return new Rp(w)};Dn.Layers=Ks,Dn.Zoom=md,Dn.Scale=_u,Dn.Attribution=Rp,ef.layers=wu,ef.zoom=Ka,ef.scale=Ug,ef.attribution=Ip;var Ro=Y.extend({initialize:function(w){this._map=w},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ro.addTo=function(w,D){return w.addHandler(D,this),this};var Io={Events:K},Wa=Qt.touch?"touchstart mousedown":"mousedown",Hn=X.extend({options:{clickTolerance:3},initialize:function(w,D,k,z){g(this,z),this._element=w,this._dragStartTarget=D||w,this._preventOutline=k},enable:function(){this._enabled||(Wt(this._dragStartTarget,Wa,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Hn._dragging===this&&this.finishDrag(!0),Fn(this._dragStartTarget,Wa,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(w){if(this._enabled&&(this._moved=!1,!yu(this._element,"leaflet-zoom-anim"))){if(w.touches&&w.touches.length!==1){Hn._dragging===this&&this.finishDrag();return}if(!(Hn._dragging||w.shiftKey||w.which!==1&&w.button!==1&&!w.touches)&&(Hn._dragging=this,this._preventOutline&&Bp(this._element),vd(),qc(),!this._moving)){this.fire("down");var D=w.touches?w.touches[0]:w,k=Og(this._element);this._startPoint=new q(D.clientX,D.clientY),this._startPos=oc(this._element),this._parentScale=Pg(k);var z=w.type==="mousedown";Wt(document,z?"mousemove":"touchmove",this._onMove,this),Wt(document,z?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(w){if(this._enabled){if(w.touches&&w.touches.length>1){this._moved=!0;return}var D=w.touches&&w.touches.length===1?w.touches[0]:w,k=new q(D.clientX,D.clientY)._subtract(this._startPoint);!k.x&&!k.y||Math.abs(k.x)+Math.abs(k.y)<this.options.clickTolerance||(k.x/=this._parentScale.x,k.y/=this._parentScale.y,pa(w),this._moved||(this.fire("dragstart"),this._moved=!0,br(document.body,"leaflet-dragging"),this._lastTarget=w.target||w.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),br(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(k),this._moving=!0,this._lastEvent=w,this._updatePosition())}},_updatePosition:function(){var w={originalEvent:this._lastEvent};this.fire("predrag",w),Yi(this._element,this._newPos),this.fire("drag",w)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(w){Nn(document.body,"leaflet-dragging"),this._lastTarget&&(Nn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Fn(document,"mousemove touchmove",this._onMove,this),Fn(document,"mouseup touchend touchcancel",this._onUp,this),Dh(),Ad();var D=this._moved&&this._moving;this._moving=!1,Hn._dragging=!1,D&&this.fire("dragend",{noInertia:w,distance:this._newPos.distanceTo(this._startPos)})}});function Op(w,D,k){var z,J=[1,4,2,8],ie,de,Pe,Qe,Xe,yt,$t,ur;for(ie=0,yt=w.length;ie<yt;ie++)w[ie]._code=tf(w[ie],D);for(Pe=0;Pe<4;Pe++){for($t=J[Pe],z=[],ie=0,yt=w.length,de=yt-1;ie<yt;
158de=ie++)Qe=w[ie],Xe=w[de],Qe._code&$t?Xe._code&$t||(ur=jg(Xe,Qe,$t,D,k),ur._code=tf(ur,D),z.push(ur)):(Xe._code&$t&&(ur=jg(Xe,Qe,$t,D,k),ur._code=tf(ur,D),z.push(ur)),z.push(Qe));w=z}return w}function yd(w,D){var k,z,J,ie,de,Pe,Qe,Xe,yt;if(!w||w.length===0)throw new Error("latlngs not passed");Ws(w)||(console.warn("latlngs are not flat! Only the first ring will be used"),w=w[0]);var $t=we([0,0]),ur=ae(w),ga=ur.getNorthWest().distanceTo(ur.getSouthWest())*ur.getNorthEast().distanceTo(ur.getNorthWest());ga<1700&&($t=bu(w));var Zn=w.length,ki=[];for(k=0;k<Zn;k++){var ma=we(w[k]);ki.push(D.project(we([ma.lat-$t.lat,ma.lng-$t.lng])))}for(Pe=Qe=Xe=0,k=0,z=Zn-1;k<Zn;z=k++)J=ki[k],ie=ki[z],de=J.y*ie.x-ie.y*J.x,Qe+=(J.x+ie.x)*de,Xe+=(J.y+ie.y)*de,Pe+=de*3;Pe===0?yt=ki[0]:yt=[Qe/Pe,Xe/Pe];var Ei=D.unproject(te(yt));return we([Ei.lat+$t.lat,Ei.lng+$t.lng])}function bu(w){for(var D=0,k=0,z=0,J=0;J<w.length;J++){var ie=we(w[J]);D+=ie.lat,k+=ie.lng,z++}return we([D/z,k/z])}var Rh={__proto__:null,clipPolygon:Op,polygonCenter:yd,centroid:bu};function Ih(w,D){if(!D||!w.length)return w.slice();var k=D*D;return w=U0(w,k),w=Hg(w,k),w}function Mn(w,D,k){return Math.sqrt(xu(w,D,k,!0))}function Dl(w,D,k){return xu(w,D,k)}function Hg(w,D){var k=w.length,z=typeof Uint8Array<"u"?Uint8Array:Array,J=new z(k);J[0]=J[k-1]=1,F0(w,J,D,0,k-1);var ie,de=[];for(ie=0;ie<k;ie++)J[ie]&&de.push(w[ie]);return de}function F0(w,D,k,z,J){var ie=0,de,Pe,Qe;for(Pe=z+1;Pe<=J-1;Pe++)Qe=xu(w[Pe],w[z],w[J],!0),Qe>ie&&(de=Pe,ie=Qe);ie>k&&(D[de]=1,F0(w,D,k,z,de),F0(w,D,k,de,J))}function U0(w,D){for(var k=[w[0]],z=1,J=0,ie=w.length;z<ie;z++)zg(w[z],w[J])>D&&(k.push(w[z]),J=z);return J<ie-1&&k.push(w[ie-1]),k}var Kx;function Qg(w,D,k,z,J){var ie=z?Kx:tf(w,k),de=tf(D,k),Pe,Qe,Xe;for(Kx=de;;){if(!(ie|de))return[w,D];if(ie&de)return!1;Pe=ie||de,Qe=jg(w,D,Pe,k,J),Xe=tf(Qe,k),Pe===ie?(w=Qe,ie=Xe):(D=Qe,de=Xe)}}function jg(w,D,k,z,J){var ie=D.x-w.x,de=D.y-w.y,Pe=z.min,Qe=z.max,Xe,yt;return k&8?(Xe=w.x+ie*(Qe.y-w.y)/de,yt=Qe.y):k&4?(Xe=w.x+ie*(Pe.y-w.y)/de,yt=Pe.y):k&2?(Xe=Qe.x,yt=w.y+de*(Qe.x-w.x)/ie):k&1&&(Xe=Pe.x,yt=w.y+de*(Pe.x-w.x)/ie),new q(Xe,yt,J)}function tf(w,D){var k=0;return w.x<D.min.x?k|=1:w.x>D.max.x&&(k|=2),w.y<D.min.y?k|=4:w.y>D.max.y&&(k|=8),k}function zg(w,D){var k=D.x-w.x,z=D.y-w.y;return k*k+z*z}function xu(w,D,k,z){var J=D.x,ie=D.y,de=k.x-J,Pe=k.y-ie,Qe=de*de+Pe*Pe,Xe;return Qe>0&&(Xe=((w.x-J)*de+(w.y-ie)*Pe)/Qe,Xe>1?(J=k.x,ie=k.y):Xe>0&&(J+=de*Xe,ie+=Pe*Xe)),de=w.x-J,Pe=w.y-ie,z?de*de+Pe*Pe:new q(J,ie)}function Ws(w){return!x(w[0])||typeof w[0][0]!="object"&&typeof w[0][0]<"u"}function Vg(w){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ws(w)}function H0(w,D){var k,z,J,ie,de,Pe,Qe,Xe;if(!w||w.length===0)throw new Error("latlngs not passed");Ws(w)||(console.warn("latlngs are not flat! Only the first ring will be used"),w=w[0]);var yt=we([0,0]),$t=ae(w),ur=$t.getNorthWest().distanceTo($t.getSouthWest
158())*$t.getNorthEast().distanceTo($t.getNorthWest());ur<1700&&(yt=bu(w));var ga=w.length,Zn=[];for(k=0;k<ga;k++){var ki=we(w[k]);Zn.push(D.project(we([ki.lat-yt.lat,ki.lng-yt.lng])))}for(k=0,z=0;k<ga-1;k++)z+=Zn[k].distanceTo(Zn[k+1])/2;if(z===0)Xe=Zn[0];else for(k=0,ie=0;k<ga-1;k++)if(de=Zn[k],Pe=Zn[k+1],J=de.distanceTo(Pe),ie+=J,ie>z){Qe=(ie-z)/J,Xe=[Pe.x-Qe*(Pe.x-de.x),Pe.y-Qe*(Pe.y-de.y)];break}var ma=D.unproject(te(Xe));return we([ma.lat+yt.lat,ma.lng+yt.lng])}var Q0={__proto__:null,simplify:Ih,pointToSegmentDistance:Mn,closestPointOnSegment:Dl,clipSegment:Qg,_getEdgeIntersection:jg,_getBitCode:tf,_sqClosestPointOnSegment:xu,isFlat:Ws,_flat:Vg,polylineCenter:H0},Pp={project:function(w){return new q(w.lng,w.lat)},unproject:function(w){return new fe(w.y,w.x)},bounds:new ce([-180,-90],[180,90])},Gg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ce([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(w){var D=Math.PI/180,k=this.R,z=w.lat*D,J=this.R_MINOR/k,ie=Math.sqrt(1-J*J),de=ie*Math.sin(z),Pe=Math.tan(Math.PI/4-z/2)/Math.pow((1-de)/(1+de),ie/2);return z=-k*Math.log(Math.max(Pe,1e-10)),new q(w.lng*D*k,z)},unproject:function(w){for(var D=180/Math.PI,k=this.R,z=this.R_MINOR/k,J=Math.sqrt(1-z*z),ie=Math.exp(-w.y/k),de=Math.PI/2-2*Math.atan(ie),Pe=0,Qe=.1,Xe;Pe<15&&Math.abs(Qe)>1e-7;Pe++)Xe=J*Math.sin(de),Xe=Math.pow((1-Xe)/(1+Xe),J/2),Qe=Math.PI/2-2*Math.atan(ie*Xe)-de,de+=Qe;return new fe(de*D,w.x*D/k)}},j0={__proto__:null,LonLat:Pp,Mercator:Gg,SphericalMercator:Ve},z0=i({},ge,{code:"EPSG:3395",projection:Gg,transformation:(function(){var w=.5/(Math.PI*Gg.R);return Se(w,.5,-w,.5)})()}),Kg=i({},ge,{code:"EPSG:4326",projection:Pp,transformation:Se(1/180,1,-1/180,.5)}),OE=i({},Me,{projection:Pp,transformation:Se(1,0,-1,0),scale:function(w){return Math.pow(2,w)},zoom:function(w){return Math.log(w)/Math.LN2},distance:function(w,D){var k=D.lng-w.lng,z=D.lat-w.lat;return Math.sqrt(k*k+z*z)},infinite:!0});Me.Earth=ge,Me.EPSG3395=z0,Me.EPSG3857=nt,Me.EPSG900913=qe,Me.EPSG4326=Kg,Me.Simple=OE;var as=X.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(w){return w.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(w){return w&&w.removeLayer(this),this},getPane:function(w){return this._map.getPane(w?this.options[w]||w:this.options.pane)},addInteractiveTarget:function(w){return this._map._targets[l(w)]=this,this},removeInteractiveTarget:function(w){return delete this._map._targets[l(w)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(w){var D=w.target;if(D.hasLayer(this)){if(this._map=D,this._zoomAnimated=D._zoomAnimated,this.getEvents){var k=this.getEvents();D.on(k,this),this.once("remove",function(){D.off(k,this)},this)}this.onAdd(D),this.fire("add"),D.fire("layeradd",{layer:this})}}});Ir.include({addLayer:function(w){if(!w._layerAdd)throw new Error("The provided object is not a Layer.");var D=l(w);return this._layers[D]?this:(this._layers[D]=w,w._mapToAdd=this,w.beforeAdd&&w.beforeAdd(this),this.whenReady(w._layerAdd,w),this)},removeLayer:function(w){var D=l(w);return this._layers[D]?(this._loaded&&w.onRemove(this),delete this._layers[D],this._loaded&&(this.fire("layerremove",{layer:w}),w.fire("remove")),w._map=w._mapToAdd=null,this):this},hasLayer:function(w){return l(w)in this._layers},eachLayer:function(w,D){for(var k in this._layers)w.call(D,this._layers[k]);return this},_addLayers:function(w){w=w?x(w)?w:[w]:[];for(var D=0,k=w.length;D<k;D++)this.addLayer(w[D])},_addZoomLimit:function(w){(!isNaN(w.options.maxZoom)||!isNaN(w.options.minZoom))&&(this._zoomBoundLayers[l(w)]=w,this._updateZoomLevels())},_removeZoomLimit:function(w){var D=l(w);this._zoomBoundLayers[D]&&(delete this._zoomBoundLayers[D],this._updateZoomLevels())},_updateZoomLevels:function(){var w=1/0,D=-1/0,k=this._getZoomSpan();for(var z in this._zoomBoundLayers){var J=this._zoomBoundLayers[z].options;w=J.minZoom===void 0?w:Math.min(w,J.minZoom),D=J.maxZoom===void 0?D:Math.max(D,J.maxZoom)}
158this._layersMaxZoom=D===-1/0?void 0:D,this._layersMinZoom=w===1/0?void 0:w,k!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var va=as.extend({initialize:function(w,D){g(this,D),this._layers={};var k,z;if(w)for(k=0,z=w.length;k<z;k++)this.addLayer(w[k])},addLayer:function(w){var D=this.getLayerId(w);return this._layers[D]=w,this._map&&this._map.addLayer(w),this},removeLayer:function(w){var D=w in this._layers?w:this.getLayerId(w);return this._map&&this._layers[D]&&this._map.removeLayer(this._layers[D]),delete this._layers[D],this},hasLayer:function(w){var D=typeof w=="number"?w:this.getLayerId(w);return D in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(w){var D=Array.prototype.slice.call(arguments,1),k,z;for(k in this._layers)z=this._layers[k],z[w]&&z[w].apply(z,D);return this},onAdd:function(w){this.eachLayer(w.addLayer,w)},onRemove:function(w){this.eachLayer(w.removeLayer,w)},eachLayer:function(w,D){for(var k in this._layers)w.call(D,this._layers[k]);return this},getLayer:function(w){return this._layers[w]},getLayers:function(){var w=[];return this.eachLayer(w.push,w),w},setZIndex:function(w){return this.invoke("setZIndex",w)},getLayerId:function(w){return l(w)}}),V0=function(w,D){return new va(w,D)},os=va.extend({addLayer:function(w){return this.hasLayer(w)?this:(w.addEventParent(this),va.prototype.addLayer.call(this,w),this.fire("layeradd",{layer:w}))},removeLayer:function(w){return this.hasLayer(w)?(w in this._layers&&(w=this._layers[w]),w.removeEventParent(this),va.prototype.removeLayer.call(this,w),this.fire("layerremove",{layer:w})):this},setStyle:function(w){return this.invoke("setStyle",w)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var w=new ve;for(var D in this._layers){var k=this._layers[D];w.extend(k.getBounds?k.getBounds():k.getLatLng())}return w}}),Wx=function(w,D){return new os(w,D)},wd=Y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(w){g(this,w)},createIcon:function(w){return this._createIcon("icon",w)},createShadow:function(w){return this._createIcon("shadow",w)},_createIcon:function(w,D){var k=this._getIconUrl(w);if(!k){if(w==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var z=this._createImg(k,D&&D.tagName==="IMG"?D:null);return this._setIconStyles(z,w),(this.options.crossOrigin||this.options.crossOrigin==="")&&(z.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),z},_setIconStyles:function(w,D){var k=this.options,z=k[D+"Size"];typeof z=="number"&&(z=[z,z]);var J=te(z),ie=te(D==="shadow"&&k.shadowAnchor||k.iconAnchor||J&&J.divideBy(2,!0));w.className="leaflet-marker-"+D+" "+(k.className||""),ie&&(w.style.marginLeft=-ie.x+"px",w.style.marginTop=-ie.y+"px"),J&&(w.style.width=J.x+"px",w.style.height=J.y+"px")},_createImg:function(w,D){return D=D||document.createElement("img"),D.src=w,D},_getIconUrl:function(w){return Qt.retina&&this.options[w+"RetinaUrl"]||this.options[w+"Url"]}});function PE(w){return new wd(w)}var kp=wd.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(w){return typeof kp.imagePath!="string"&&(kp.imagePath=this._detectIconPath()),(this.options.imagePath||kp.imagePath)+wd.prototype._getIconUrl.call(this,w)},_stripUrl:function(w){var D=function(k,z,J){var ie=z.exec(k);return ie&&ie[J]};return w=D(w,/^url\((['"])?(.+)\1\)$/,2),w&&D(w,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var w=cn("div","leaflet-default-icon-path",document.body),D=Ep(w,"background-image")||Ep(w,"backgroundImage");if(document.body.removeChild(w),D=this._stripUrl(D),D)return D;var k=document.querySelector('link[href$="leaflet.css"]');return k?k.href.substring(0,k.href.length-11-1):""}}),Yx=Ro.extend({initialize:function(w){this._marker=w},addHooks:function(){var w=this._marker._icon;this._draggable||(this._draggable=new Hn(w,w,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),br(w,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Nn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(w){var D=this._marker,k=D._map,z=this._marker.options.autoPanSpeed,J=this._marker.options.autoPanPadding,ie=oc(D._icon),de=k.getPixelBounds(),Pe=k.getPixelOrigin(),Qe=he(de.min._subtract(Pe).add(J),de.max._subtract(Pe).subtract(J));if(!Qe.contains(ie)){var Xe=te((Math.max(Qe.max.x,ie.x)-Qe.max.x)/(de.max.x-Qe.max.x)-(Math.min(Qe.min.x,ie.x)-Qe.min.x)/(de.min.x-Qe.min.x),(Math.max(Qe.max.y,ie.y)-Qe.max.y)/(de.max.y-Qe.max.y)-(Math.min(Qe.min.y,ie.y)-Qe.min.y)/(de.min.y-Qe.min.y)).multiplyBy(z);k.panBy(Xe,{animate:!1}),this._draggable._newPos._add(Xe),this._draggable._startPos._add(Xe),Yi(D._icon,this._draggable._newPos),this._onDrag(w),this._panRequest=j(this._adjustPan.bind(this,w))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(w){this._marker.options.autoPan&&(W(this._panRequest),this._panRequest=j(this._adjustPan.bind(this,w)))},_onDrag:function(w){var D=this._marker,k=D._shadow,z=oc(D._icon),J=D._map.layerPointToLatLng(z);k&&Yi(k,z),D._latlng=J,w.latlng=J,w.oldLatLng=this._oldLatLng,D.fire("move",w).fire("drag",w)},_onDragEnd:function(w){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",w)}}),Wg=as.extend({options:{icon:new kp,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(w,D){g(this,D),this._latlng=we(w)},onAdd:function(w){this._zoomAnimated=this._zoomAnimated&&w.options.markerZoomAnimation,this._zoomAnimated&&w.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(w){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&w.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(w){var D=this._latlng;return this._latlng=we(w),this.update(),this.fire("move",{oldLatLng:D,latlng:this._latlng})},setZIndexOffset:function(w){return this.options.zIndexOffset=w,this.update()},getIcon:function(){return this.options.icon},setIcon:function(w){return this.options.icon=w,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var w=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(w)}return this},_initIcon:function(){var w=this.options,D="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),k=w.icon.createIcon(this._icon),z=!1;k!==this._icon&&(this._icon&&this._removeIcon(),z=!0,w.title&&(k.title=w.title),k.tagName==="IMG"&&(k.alt=w.alt||"")),br(k,D),w.keyboard&&(k.tabIndex="0",k.setAttribute("role","button")),this._icon=k,w.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Wt(k,"focus",this._panOnFocus,this);var J=w.icon.createShadow(this._shadow),ie=!1;J!==this._shadow&&(this._removeShadow(),ie=!0),J&&(br(J,D),J.alt=""),this._shadow=J,w.opacity<1&&this._updateOpacity(),z&&this.getPane().appendChild(this._icon),this._initInteraction(),J&&ie&&this.getPane(w.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,681 bytes, line 158
158),this.options.autoPanOnFocus&&Fn(this._icon,"focus",this._panOnFocus,this),kn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&kn(this._shadow),this._shadow=null},_setPos:function(w){this._icon&&Yi(this._icon,w),this._shadow&&Yi(this._shadow,w),this._zIndex=w.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(w){this._icon&&(this._icon.style.zIndex=this._zIndex+w)},_animateZoom:function(w){var D=this._map._latLngToNewLayerPoint(this._latlng,w.zoom,w.center).round();this._setPos(D)},_initInteraction:function(){if(this.options.interactive&&(br(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Yx)){var w=this.options.draggable;this.dragging&&(w=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Yx(this),w&&this.dragging.enable()}},setOpacity:function(w){return this.options.opacity=w,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var w=this.options.opacity;this._icon&&ns(this._icon,w),this._shadow&&ns(this._shadow,w)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var w=this._map;if(w){var D=this.options.icon.options,k=D.iconSize?te(D.iconSize):te(0,0),z=D.iconAnchor?te(D.iconAnchor):te(0,0);w.panInside(this._latlng,{paddingTopLeft:z,paddingBottomRight:k.subtract(z)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function kE(w,D){return new Wg(w,D)}var ss=as.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(w){this._renderer=w.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(w){return g(this,w),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&w&&Object.prototype.hasOwnProperty.call(w,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Oh=ss.extend({options:{fill:!0,radius:10},initialize:function(w,D){g(this,D),this._latlng=we(w),this._radius=this.options.radius},setLatLng:function(w){var D=this._latlng;return this._latlng=we(w),this.redraw(),this.fire("move",{oldLatLng:D,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(w){return this.options.radius=this._radius=w,this.redraw()},getRadius:function(){return this._radius},setStyle:function(w){var D=w&&w.radius||this._radius;return ss.prototype.setStyle.call(this,w),this.setRadius(D),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var w=this._radius,D=this._radiusY||w,k=this._clickTolerance(),z=[w+k,D+k];this._pxBounds=new ce(this._point.subtract(z),this._point.add(z))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(w){return w.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Np(w,D){return new Oh(w,D)}var Fp=Oh.extend({initialize:function(w,D,k){if(typeof D=="number"&&(D=i({},k,{radius:D})),g(this,D),this._latlng=we(w),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(w){return this._mRadius=w,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var w=[this._radius,this._radiusY||this._radius];return new ve(this._map.layerPointToLatLng(this._point.subtract(w)),this._map.layerPointToLatLng(this._point.add(w)))},setStyle:ss.prototype.setStyle,_project:function(){var w=this._latlng.lng,D=this._latlng.lat,k=this._map,z=k.options.crs;if(z.distance===ge.distance){var J=Math.PI/180,ie=this._mRadius/ge.R/J,de=k.project([D+ie,w]),Pe=k.project([D-ie,w]),Qe=de.add(Pe).divideBy(2),Xe=k.unproject(Qe).lat,yt=Math.acos((Math.cos(ie*J)-Math.sin(D*J)*Math.sin(Xe*J))/(Math.cos(D*J)*Math.cos(Xe*J)))/J;(isNaN(yt)||yt===0)&&(yt=ie/Math.cos(Math.PI/180*D)),this._point=Qe.subtract(k.getPixelOrigin()),this._radius=isNaN(yt)?0:Qe.x-k.project([Xe,w-yt]).x,this._radiusY=Qe.y-de.y}else{var $t=z.unproject(z.project(this._latlng).subtract([this._mRadius,0]));this._point=k.latLngToLayerPoint(this._latlng),this._radius=this._point.x-k.latLngToLayerPoint($t).x}this._updateBounds()}});function G0(w,D,k){return new Fp(w,D,k)}var Ra=ss.extend({options:{smoothFactor:1,noClip:!1},initialize:function(w,D){g(this,D),this._setLatLngs(w)},getLatLngs:function(){return this._latlngs},setLatLngs:function(w){return this._setLatLngs(w),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(w){for(var D=1/0,k=null,z=xu,J,ie,de=0,Pe=this._parts.length;de<Pe;de++)for(var Qe=this._parts[de],Xe=1,yt=Qe.length;Xe<yt;Xe++){J=Qe[Xe-1],ie=Qe[Xe];var $t=z(w,J,ie,!0);$t<D&&(D=$t,k=z(w,J,ie))}return k&&(k.distance=Math.sqrt(D)),k}
158,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return H0(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(w,D){return D=D||this._defaultShape(),w=we(w),D.push(w),this._bounds.extend(w),this.redraw()},_setLatLngs:function(w){this._bounds=new ve,this._latlngs=this._convertLatLngs(w)},_defaultShape:function(){return Ws(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(w){for(var D=[],k=Ws(w),z=0,J=w.length;z<J;z++)k?(D[z]=we(w[z]),this._bounds.extend(D[z])):D[z]=this._convertLatLngs(w[z]);return D},_project:function(){var w=new ce;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,w),this._bounds.isValid()&&w.isValid()&&(this._rawPxBounds=w,this._updateBounds())},_updateBounds:function(){var w=this._clickTolerance(),D=new q(w,w);this._rawPxBounds&&(this._pxBounds=new ce([this._rawPxBounds.min.subtract(D),this._rawPxBounds.max.add(D)]))},_projectLatlngs:function(w,D,k){var z=w[0]instanceof fe,J=w.length,ie,de;if(z){for(de=[],ie=0;ie<J;ie++)de[ie]=this._map.latLngToLayerPoint(w[ie]),k.extend(de[ie]);D.push(de)}else for(ie=0;ie<J;ie++)this._projectLatlngs(w[ie],D,k)},_clipPoints:function(){var w=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(w))){if(this.options.noClip){this._parts=this._rings;return}var D=this._parts,k,z,J,ie,de,Pe,Qe;for(k=0,J=0,ie=this._rings.length;k<ie;k++)for(Qe=this._rings[k],z=0,de=Qe.length;z<de-1;z++)Pe=Qg(Qe[z],Qe[z+1],w,z,!0),Pe&&(D[J]=D[J]||[],D[J].push(Pe[0]),(Pe[1]!==Qe[z+1]||z===de-2)&&(D[J].push(Pe[1]),J++))}},_simplifyPoints:function(){for(var w=this._parts,D=this.options.smoothFactor,k=0,z=w.length;k<z;k++)w[k]=Ih(w[k],D)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(w,D){var k,z,J,ie,de,Pe,Qe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(w))return!1;for(k=0,ie=this._parts.length;k<ie;k++)for(Pe=this._parts[k],z=0,de=Pe.length,J=de-1;z<de;J=z++)if(!(!D&&z===0)&&Mn(w,Pe[J],Pe[z])<=Qe)return!0;return!1}});function Up(w,D){return new Ra(w,D)}Ra._flat=Vg;var _d=Ra.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
158,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yd(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(w){var D=Ra.prototype._convertLatLngs.call(this,w),k=D.length;return k>=2&&D[0]instanceof fe&&D[0].equals(D[k-1])&&D.pop(),D},_setLatLngs:function(w){Ra.prototype._setLatLngs.call(this,w),Ws(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ws(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var w=this._renderer._bounds,D=this.options.weight,k=new q(D,D);if(w=new ce(w.min.subtract(k),w.max.add(k)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(w))){if(this.options.noClip){this._parts=this._rings;return}for(var z=0,J=this._rings.length,ie;z<J;z++)ie=Op(this._rings[z],w,!0),ie.length&&this._parts.push(ie)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(w){var D=!1,k,z,J,ie,de,Pe,Qe,Xe;if(!this._pxBounds||!this._pxBounds.contains(w))return!1;for(ie=0,Qe=this._parts.length;ie<Qe;ie++)for(k=this._parts[ie],de=0,Xe=k.length,Pe=Xe-1;de<Xe;Pe=de++)z=k[de],J=k[Pe],z.y>w.y!=J.y>w.y&&w.x<(J.x-z.x)*(w.y-z.y)/(J.y-z.y)+z.x&&(D=!D);return D||Ra.prototype._containsPoint.call(this,w,!0)}});function $x(w,D){return new _d(w,D)}var Oo=os.extend({initialize:function(w,D){g(this,D),this._layers={},w&&this.addData(w)},addData:function(w){var D=x(w)?w:w.features,k,z,J;if(D){for(k=0,z=D.length;k<z;k++)J=D[k],(J.geometries||J.geometry||J.features||J.coordinates)&&this.addData(J);return this}var ie=this.options;if(ie.filter&&!ie.filter(w))return this;var de=sc(w,ie);return de?(de.feature=Zg(w),de.defaultOptions=de.options,this.resetStyle(de),ie.onEachFeature&&ie.onEachFeature(w,de),this.addLayer(de)):this},resetStyle:function(w){return w===void 0?this.eachLayer(this.resetStyle,this):(w.options=i({},w.defaultOptions),this._setLayerStyle(w,this.options.style),this)},setStyle:function(w){return this.eachLayer(function(D){this._setLayerStyle(D,w)},this)},_setLayerStyle:function(w,D){w.setStyle&&(typeof D=="function"&&(D=D(w.feature)),w.setStyle(D))}});function sc(w,D){var k=w.type==="Feature"?w.geometry:w,z=k?k.coordinates:null,J=[],ie=D&&D.pointToLayer,de=D&&D.coordsToLatLng||Yg,Pe,Qe,Xe,yt;if(!z&&!k)return null;switch(k.type){case"Point":return Pe=de(z),Ys(ie,w,Pe,D);case"MultiPoint":for(Xe=0,yt=z.length;Xe<yt;Xe++)Pe=de(z[Xe]),J.push(Ys(ie,w,Pe,D));return new os(J);case"LineString":case"MultiLineString":return Qe=Hp(z,k.type==="LineString"?0:1,de),new Ra(Qe,D);case"Polygon":case"MultiPolygon":return Qe=Hp(z,k.type==="Polygon"?1:2,de),new _d(Qe,D);case"GeometryCollection":for(Xe=0,yt=k.geometries.length;Xe<yt;Xe++){var $t=sc({geometry:k.geometries[Xe],type:"Feature",properties:w.properties},D);$t&&J.push($t)}return new os(J);case"FeatureCollection":for(Xe=0,yt=k.features.length;Xe<yt;Xe++){var ur=sc(k.features[Xe],D);ur&&J.push(ur)}return new os(J);default:throw new Error("Invalid GeoJSON object.")}}function Ys(w,D,k,z){return w?w(D,k):new Wg(k,z&&z.markersInheritOptions&&z)}function Yg(w){return new fe(w[1],w[0],w[2])}function Hp(w,D,k){for(var z=[],J=0,ie=w.length,de;J<ie;J++)de=D?Hp(w[J],D-1,k):(k||Yg)(w[J]),z.push(de);return z}function $g(w,D){return w=we(w),w.alt!==void 0?[d(w.lng,D),d(w.lat,D),d(w.alt,D)]:[d(w.lng,D),d(w.lat,D)]}function rf(w,D,k,z){for(var J=[],ie=0,de=w.length;ie<de;ie++)J.push(D?rf(w[ie],Ws(w[ie])?0:D-1,k,z):$g(w[ie],z));return!D&&k&&J.length>0&&J.push(J[0].slice()),J}function Su(w,D){return w.feature?i({},w.feature,{geometry:D}):Zg(D)}function Zg(w){return w.type==="Feature"||w.type==="FeatureCollection"?w:{type:"Feature",properties:{},geometry:w}}var Ml={toGeoJSON:function(w){return Su(this,{type:"Point",coordinates:$g(this.getLatLng(),w)})}};Wg.include(Ml),Fp.include(Ml),Oh.include(Ml),Ra.include({toGeoJSON:function(w){var D=!Ws(this._latlngs),k=rf(this._latlngs,D?1:0,!1,w);return Su(this,{type:(D?"Multi":"")+"LineString",coordinates:k})}}),_d.include({toGeoJSON:function(w){var D=!Ws(this._latlngs),k=D&&!Ws(this._latlngs[0]),z=rf(this._latlngs,k?2:D?1:0,!0,w);return D||(z=[z]),Su(this,{type:(k?"Multi":"")+"Polygon",coordinates:z})}}),va.include({toMultiPoint:function(w){var D=[];return this.eachLayer(function(k){D.push(k.toGeoJSON(w).geometry.coordinates)}),Su(this,{type:"MultiPoint",coordinates:D})},toGeoJSON:function(w){var D=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(D==="MultiPoint")return this.toMultiPoint(w);var k=D==="GeometryCollection",z=[];return this.eachLayer(function(J){if(J.toGeoJSON){var ie=J.toGeoJSON(w);if(k)z.push(ie.geometry);else{var de=Zg(ie);de.type==="FeatureCollection"?z.push.apply(z,de.features):z.push(de)}}}),k?Su(this,{geometries:z,type:"GeometryCollection"}):{type:"FeatureCollection",features:z}}});function Ce(w,D){return new Oo(w,D)}var Ge=Ce,He=as.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(w,D,k){this._url=w,this._bounds=ae(D),g(this,k)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(br(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){kn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(w){return this.options.opacity=w,this._image&&this._updateOpacity(),this},setStyle:function(w){return w.opacity&&this.setOpacity(w.opacity),this},bringToFront:function(){return this._map&&mu(this._image),this},bringToBack:function(){return this._map&&rs(this._image),this},setUrl:function(w){return this._url=w,this._image&&(this._image.src=w),this},setBounds:function(w){return this._bounds=ae(w),this._map&&this._reset(),this},getEvents:function(){var w={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(w.zoomanim=this._animateZoom),w},setZIndex:function(w){return this.options.zIndex=w,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var w=this._url.tagName==="IMG",D=this._image=w?this._url:cn("img");if(br(D,"leaflet-image-layer"),this._zoomAnimated&&br(D,"leaflet-zoom-animated"),this.options.className&&br(D,this.options.className),D.onselectstart=f,D.onmousemove=f,D.onload=o(this.fire,this,"load"),D.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(D.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),w){this._url=D.src;return}D.src=this._url,D.alt=this.options.alt},_animateZoom:function(w){var D=this._map.getZoomScale(w.zoom),k=this._map._latLngBoundsToNewLayerBounds(this._bounds,w.zoom,w.center).min;Lo(this._image,k,D)},_reset:function(){var w=this._image,D=new ce(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),k=D.getSize();Yi(w,D.min),w.style.width=k.x+"px",w.style.height=k.y+"px"},_updateOpacity:function(){ns(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var w=this.options.errorOverlayUrl;w&&this._url!==w&&(this._url=w,this._image.src=w)},getCenter:function(){return this._bounds.getCenter()}}),Et=function(w,D,k){return new He(w,D,k)},dr=He.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
158ine:!0},_initImage:function(){var w=this._url.tagName==="VIDEO",D=this._image=w?this._url:cn("video");if(br(D,"leaflet-image-layer"),this._zoomAnimated&&br(D,"leaflet-zoom-animated"),this.options.className&&br(D,this.options.className),D.onselectstart=f,D.onmousemove=f,D.onloadeddata=o(this.fire,this,"load"),w){for(var k=D.getElementsByTagName("source"),z=[],J=0;J<k.length;J++)z.push(k[J].src);this._url=k.length>0?z:[D.src];return}x(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(D.style,"objectFit")&&(D.style.objectFit="fill"),D.autoplay=!!this.options.autoplay,D.loop=!!this.options.loop,D.muted=!!this.options.muted,D.playsInline=!!this.options.playsInline;for(var ie=0;ie<this._url.length;ie++){var de=cn("source");de.src=this._url[ie],D.appendChild(de)}}});function dn(w,D,k){return new dr(w,D,k)}var Pi=He.extend({_initImage:function(){var w=this._image=this._url;br(w,"leaflet-image-layer"),this._zoomAnimated&&br(w,"leaflet-zoom-animated"),this.options.className&&br(w,this.options.className),w.onselectstart=f,w.onmousemove=f}});function Qn(w,D,k){return new Pi(w,D,k)}var $s=as.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(w,D){w&&(w instanceof fe||x(w))?(this._latlng=we(w),g(this,D)):(g(this,w),this._source=D),this.options.content&&(this._content=this.options.content)},openOn:function(w){return w=arguments.length?w:this._source._map,w.hasLayer(this)||w.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(w){return this._map?this.close():(arguments.length?this._source=w:w=this._source,this._prepareOpen(),this.openOn(w._map)),this},onAdd:function(w){this._zoomAnimated=w._zoomAnimated,this._container||this._initLayout(),w._fadeAnimated&&ns(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),w._fadeAnimated&&ns(this._container,1),this.bringToFront(),this.options.interactive&&(br(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(w){w._fadeAnimated?(ns(this._container,0),this._removeTimeout=setTimeout(o(kn,void 0,this._container),200)):kn(this._container),this.options.interactive&&(Nn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(w){return this._latlng=we(w),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(w){return this._content=w,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var w={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(w.zoomanim=this._animateZoom),w},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&mu(this._container),this},bringToBack:function(){return this._map&&rs(this._container),this},_prepareOpen:function(w){var D=this._source;if(!D._map)return!1;if(D instanceof os){D=null;var k=this._source._layers;for(var z in k)if(k[z]._map){D=k[z];break}if(!D)return!1;this._source=D}if(!w)if(D.getCenter)w=D.getCenter();else if(D.getLatLng)w=D.getLatLng();else if(D.getBounds)w=D.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(w),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var w=this._contentNode,D=typeof this._content=="function"?this._content(this._source||this):this._content;
vendor: 5,122 bytes, line 158
158if(typeof D=="string")w.innerHTML=D;else{for(;w.hasChildNodes();)w.removeChild(w.firstChild);w.appendChild(D)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var w=this._map.latLngToLayerPoint(this._latlng),D=te(this.options.offset),k=this._getAnchor();this._zoomAnimated?Yi(this._container,w.add(k)):D=D.add(w).add(k);var z=this._containerBottom=-D.y,J=this._containerLeft=-Math.round(this._containerWidth/2)+D.x;this._container.style.bottom=z+"px",this._container.style.left=J+"px"}},_getAnchor:function(){return[0,0]}});Ir.include({_initOverlay:function(w,D,k,z){var J=D;return J instanceof w||(J=new w(z).setContent(D)),k&&J.setLatLng(k),J}}),as.include({_initOverlay:function(w,D,k,z){var J=k;return J instanceof w?(g(J,z),J._source=this):(J=D&&!z?D:new w(z,this),J.setContent(k)),J}});var Xg=$s.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(w){return w=arguments.length?w:this._source._map,!w.hasLayer(this)&&w._popup&&w._popup.options.autoClose&&w.removeLayer(w._popup),w._popup=this,$s.prototype.openOn.call(this,w)},onAdd:function(w){$s.prototype.onAdd.call(this,w),w.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ss||this._source.on("preclick",Gs))},onRemove:function(w){$s.prototype.onRemove.call(this,w),w.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ss||this._source.off("preclick",Gs))},getEvents:function(){var w=$s.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(w.preclick=this.close),this.options.keepInView&&(w.moveend=this._adjustPan),w},_initLayout:function(){var w="leaflet-popup",D=this._container=cn("div",w+" "+(this.options.className||"")+" leaflet-zoom-animated"),k=this._wrapper=cn("div",w+"-content-wrapper",D);if(this._contentNode=cn("div",w+"-content",k),Lh(D),k0(this._contentNode),Wt(D,"contextmenu",Gs),this._tipContainer=cn("div",w+"-tip-container",D),this._tip=cn("div",w+"-tip",this._tipContainer),this.options.closeButton){var z=this._closeButton=cn("a",w+"-close-button",D);z.setAttribute("role","button"),z.setAttribute("aria-label","Close popup"),z.href="#close",z.innerHTML='<span aria-hidden="true">&#215;</span>',Wt(z,"click",function(J){pa(J),this.close()},this)}},_updateLayout:function(){var w=this._contentNode,D=w.style;D.width="",D.whiteSpace="nowrap";var k=w.offsetWidth;k=Math.min(k,this.options.maxWidth),k=Math.max(k,this.options.minWidth),D.width=k+1+"px",D.whiteSpace="",D.height="";var z=w.offsetHeight,J=this.options.maxHeight,ie="leaflet-popup-scrolled";J&&z>J?(D.height=J+"px",br(w,ie)):Nn(w,ie),this._containerWidth=this._container.offsetWidth},_animateZoom:function(w){var D=this._map._latLngToNewLayerPoint(this._latlng,w.zoom,w.center),k=this._getAnchor();Yi(this._container,D.add(k))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var w=this._map,D=parseInt(Ep(this._container,"marginBottom"),10)||0,k=this._container.offsetHeight+D,z=this._containerWidth,J=new q(this._containerLeft,-k-this._containerBottom);J._add(oc(this._container));var ie=w.layerPointToContainerPoint(J),de=te(this.options.autoPanPadding),Pe=te(this.options.autoPanPaddingTopLeft||de),Qe=te(this.options.autoPanPaddingBottomRight||de),Xe=w.getSize(),yt=0,$t=0;ie.x+z+Qe.x>Xe.x&&(yt=ie.x+z-Xe.x+Qe.x),ie.x-yt-Pe.x<0&&(yt=ie.x-Pe.x),ie.y+k+Qe.y>Xe.y&&($t=ie.y+k-Xe.y+Qe.y),ie.y-$t-Pe.y<0&&($t=ie.y-Pe.y),(yt||$t)&&(this.options.keepInView&&(this._autopanning=!0),w.fire("autopanstart").panBy([yt,$t]))}},_getAnchor:function(){return te(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Zs=function(w,D){return new Xg(w,D)};Ir.mergeOptions({closePopupOnClick:!0}),Ir.include({openPopup:function(w,D,k){return this._initOverlay(Xg,w,D,k).openOn(this),this},closePopup:function(w){return w=arguments.length?w:this._popup,w&&w.close(),this}}),as.include({bindPopup:function(w,D){return this._popup=this._initOverlay(Xg,this._popup,w,D),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(w){return this._popup&&(this instanceof os||(this._popup._source=this),this._popup._prepareOpen(w||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1}
158,setPopupContent:function(w){return this._popup&&this._popup.setContent(w),this},getPopup:function(){return this._popup},_openPopup:function(w){if(!(!this._popup||!this._map)){fn(w);var D=w.layer||w.target;if(this._popup._source===D&&!(D instanceof ss)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(w.latlng);return}this._popup._source=D,this.openPopup(w.latlng)}},_movePopup:function(w){this._popup.setLatLng(w.latlng)},_onKeyPress:function(w){w.originalEvent.keyCode===13&&this._openPopup(w)}});var bd=$s.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(w){$s.prototype.onAdd.call(this,w),this.setOpacity(this.options.opacity),w.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(w){$s.prototype.onRemove.call(this,w),w.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var w=$s.prototype.getEvents.call(this);return this.options.permanent||(w.preclick=this.close),w},_initLayout:function(){var w="leaflet-tooltip",D=w+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=cn("div",D),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(w){var D,k,z=this._map,J=this._container,ie=z.latLngToContainerPoint(z.getCenter()),de=z.layerPointToContainerPoint(w),Pe=this.options.direction,Qe=J.offsetWidth,Xe=J.offsetHeight,yt=te(this.options.offset),$t=this._getAnchor();Pe==="top"?(D=Qe/2,k=Xe):Pe==="bottom"?(D=Qe/2,k=0):Pe==="center"?(D=Qe/2,k=Xe/2):Pe==="right"?(D=0,k=Xe/2):Pe==="left"?(D=Qe,k=Xe/2):de.x<ie.x?(Pe="right",D=0,k=Xe/2):(Pe="left",D=Qe+(yt.x+$t.x)*2,k=Xe/2),w=w.subtract(te(D,k,!0)).add(yt).add($t),Nn(J,"leaflet-tooltip-right"),Nn(J,"leaflet-tooltip-left"),Nn(J,"leaflet-tooltip-top"),Nn(J,"leaflet-tooltip-bottom"),br(J,"leaflet-tooltip-"+Pe),Yi(J,w)},_updatePosition:function(){var w=this._map.latLngToLayerPoint(this._latlng);this._setPosition(w)},setOpacity:function(w){this.options.opacity=w,this._container&&ns(this._container,w)},_animateZoom:function(w){var D=this._map._latLngToNewLayerPoint(this._latlng,w.zoom,w.center);this._setPosition(D)},_getAnchor:function(){return te(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),ls=function(w,D){return new bd(w,D)};Ir.include({openTooltip:function(w,D,k){return this._initOverlay(bd,w,D,k).openOn(this),this},closeTooltip:function(w){return w.close(),this}}),as.include({bindTooltip:function(w,D){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(bd,this._tooltip,w,D),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(w){if(!(!w&&this._tooltipHandlersAdded)){var D=w?"off":"on",k={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?k.add=this._openTooltip:(k.mouseover=this._openTooltip,k.mouseout=this.closeTooltip,k.click=this._openTooltip,this._map?this._addFocusListeners():k.add=this._addFocusListeners),this._tooltip.options.sticky&&(k.mousemove=this._moveTooltip),this[D](k),this._tooltipHandlersAdded=!w}},openTooltip:function(w){return this._tooltip&&(this instanceof os||(this._tooltip._source=this),this._tooltip._prepareOpen(w)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(w){return this._tooltip&&this._tooltip.setContent(w),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(w){var D=typeof w.getElement=="function"&&w.getElement();D&&(Wt(D,"focus",function(){this._tooltip._source=w,this.openTooltip()},this),Wt(D,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(w){var D=typeof w.getElement=="function"&&w.getElement();D&&D.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(w){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var D=this;this._map.once("moveend",function(){D._openOnceFlag=!1,D._openTooltip(w)});return}this._tooltip._source=w.layer||w.target,this.openTooltip(this._tooltip.options.sticky?w.latlng:void 0)}},_moveTooltip:function(w){var D=w.latlng,k,z;this._tooltip.options.sticky&&w.originalEvent&&(k=this._map.mouseEventToContainerPoint(w.originalEvent),z=this._map.containerPointToLayerPoint(k),D=this._map.layerPointToLatLng(z)),this._tooltip.setLatLng(D)}});var Ll=wd.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(w){var D=w&&w.tagName==="DIV"?w:document.createElement("div"),k=this.options;if(k.html instanceof Element?(Xc(D),D.appendChild(k.html)):D.innerHTML=k.html!==!1?k.html:"",k.bgPos){var z=te(k.bgPos);D.style.backgroundPosition=-z.x+"px "+-z.y+"px"}return this._setIconStyles(D,"icon"),D},createShadow:function(){return null}});function Ph(w){return new Ll(w)}wd.Default=kp;var lc=as.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Qt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(w){g(this,w)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
158,beforeAdd:function(w){w._addZoomLimit(this)},onRemove:function(w){this._removeAllTiles(),kn(this._container),w._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(mu(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(rs(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(w){return this.options.opacity=w,this._updateOpacity(),this},setZIndex:function(w){return this.options.zIndex=w,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var w=this._clampZoom(this._map.getZoom());w!==this._tileZoom&&(this._tileZoom=w,this._updateLevels()),this._update()}return this},getEvents:function(){var w={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),w.move=this._onMove),this._zoomAnimated&&(w.zoomanim=this._animateZoom),w},createTile:function(){return document.createElement("div")},getTileSize:function(){var w=this.options.tileSize;return w instanceof q?w:new q(w,w)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(w){for(var D=this.getPane().children,k=-w(-1/0,1/0),z=0,J=D.length,ie;z<J;z++)ie=D[z].style.zIndex,D[z]!==this._container&&ie&&(k=w(k,+ie));isFinite(k)&&(this.options.zIndex=k+w(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Qt.ielt9){ns(this._container,this.options.opacity);var w=+new Date,D=!1,k=!1;for(var z in this._tiles){var J=this._tiles[z];if(!(!J.current||!J.loaded)){var ie=Math.min(1,(w-J.loaded)/200);ns(J.el,ie),ie<1?D=!0:(J.active?k=!0:this._onOpaqueTile(J),J.active=!0)}}k&&!this._noPrune&&this._pruneTiles(),D&&(W(this._fadeFrame),this._fadeFrame=j(this._updateOpacity,this))}},_onOpaqueTile:f,_initContainer:function(){this._container||(this._container=cn("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var w=this._tileZoom,D=this.options.maxZoom;if(w!==void 0){for(var k in this._levels)k=Number(k),this._levels[k].el.children.length||k===w?(this._levels[k].el.style.zIndex=D-Math.abs(w-k),this._onUpdateLevel(k)):(kn(this._levels[k].el),this._removeTilesAtZoom(k),this._onRemoveLevel(k),delete this._levels[k]);var z=this._levels[w],J=this._map;return z||(z=this._levels[w]={},z.el=cn("div","leaflet-tile-container leaflet-zoom-animated",this._container),z.el.style.zIndex=D,z.origin=J.project(J.unproject(J.getPixelOrigin()),w).round(),z.zoom=w,this._setZoomTransform(z,J.getCenter(),J.getZoom()),f(z.el.offsetWidth),this._onCreateLevel(z)),this._level=z,z}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var w,D,k=this._map.getZoom();if(k>this.options.maxZoom||k<this.options.minZoom){this._removeAllTiles();return}for(w in this._tiles)D=this._tiles[w],D.retain=D.current;for(w in this._tiles)if(D=this._tiles[w],D.current&&!D.active){var z=D.coords;this._retainParent(z.x,z.y,z.z,z.z-5)||this._retainChildren(z.x,z.y,z.z,z.z+2)}for(w in this._tiles)this._tiles[w].retain||this._removeTile(w)}},_removeTilesAtZoom:function(w){for(var D in this._tiles)this._tiles[D].coords.z===w&&this._removeTile(D)},_removeAllTiles:function(){for(var w in this._tiles)this._removeTile(w)},_invalidateAll:function(){for(var w in this._levels)kn(this._levels[w].el),this._onRemoveLevel(Number(w)),delete this._levels[w];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(w,D,k,z){var J=Math.floor(w/2),ie=Math.floor(D/2),de=k-1,Pe=new q(+J,+ie);Pe.z=+de;var Qe=this._tileCoordsToKey(Pe),Xe=this._tiles[Qe];return Xe&&Xe.active?(Xe.retain=!0,!0):(Xe&&Xe.loaded&&(Xe.retain=!0),de>z?this._retainParent(J,ie,de,z):!1)},_retainChildren:function(w,D,k,z){for(var J=2*w;J<2*w+2;J++)for(var ie=2*D;ie<2*D+2;ie++){var de=new q(J,ie);de.z=k+1;var Pe=this._tileCoordsToKey(de),Qe=this._tiles[Pe];if(Qe&&Qe.active){Qe.retain=!0;continue}else Qe&&Qe.loaded&&(Qe.retain=!0);k+1<z&&this._retainChildren(J,ie,k+1,z)}},_resetView:function(w){var D=w&&(w.pinch||w.flyTo);
158this._setView(this._map.getCenter(),this._map.getZoom(),D,D)},_animateZoom:function(w){this._setView(w.center,w.zoom,!0,w.noUpdate)},_clampZoom:function(w){var D=this.options;return D.minNativeZoom!==void 0&&w<D.minNativeZoom?D.minNativeZoom:D.maxNativeZoom!==void 0&&D.maxNativeZoom<w?D.maxNativeZoom:w},_setView:function(w,D,k,z){var J=Math.round(D);this.options.maxZoom!==void 0&&J>this.options.maxZoom||this.options.minZoom!==void 0&&J<this.options.minZoom?J=void 0:J=this._clampZoom(J);var ie=this.options.updateWhenZooming&&J!==this._tileZoom;(!z||ie)&&(this._tileZoom=J,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),J!==void 0&&this._update(w),k||this._pruneTiles(),this._noPrune=!!k),this._setZoomTransforms(w,D)},_setZoomTransforms:function(w,D){for(var k in this._levels)this._setZoomTransform(this._levels[k],w,D)},_setZoomTransform:function(w,D,k){var z=this._map.getZoomScale(k,w.zoom),J=w.origin.multiplyBy(z).subtract(this._map._getNewPixelOrigin(D,k)).round();Qt.any3d?Lo(w.el,J,z):Yi(w.el,J)}
158,_resetGrid:function(){var w=this._map,D=w.options.crs,k=this._tileSize=this.getTileSize(),z=this._tileZoom,J=this._map.getPixelWorldBounds(this._tileZoom);J&&(this._globalTileRange=this._pxBoundsToTileRange(J)),this._wrapX=D.wrapLng&&!this.options.noWrap&&[Math.floor(w.project([0,D.wrapLng[0]],z).x/k.x),Math.ceil(w.project([0,D.wrapLng[1]],z).x/k.y)],this._wrapY=D.wrapLat&&!this.options.noWrap&&[Math.floor(w.project([D.wrapLat[0],0],z).y/k.x),Math.ceil(w.project([D.wrapLat[1],0],z).y/k.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(w){var D=this._map,k=D._animatingZoom?Math.max(D._animateToZoom,D.getZoom()):D.getZoom(),z=D.getZoomScale(k,this._tileZoom),J=D.project(w,this._tileZoom).floor(),ie=D.getSize().divideBy(z*2);return new ce(J.subtract(ie),J.add(ie))},_update:function(w){var D=this._map;if(D){var k=this._clampZoom(D.getZoom());if(w===void 0&&(w=D.getCenter()),this._tileZoom!==void 0){var z=this._getTiledPixelBounds(w),J=this._pxBoundsToTileRange(z),ie=J.getCenter(),de=[],Pe=this.options.keepBuffer,Qe=new ce(J.getBottomLeft().subtract([Pe,-Pe]),J.getTopRight().add([Pe,-Pe]));if(!(isFinite(J.min.x)&&isFinite(J.min.y)&&isFinite(J.max.x)&&isFinite(J.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Xe in this._tiles){var yt=this._tiles[Xe].coords;(yt.z!==this._tileZoom||!Qe.contains(new q(yt.x,yt.y)))&&(this._tiles[Xe].current=!1)}if(Math.abs(k-this._tileZoom)>1){this._setView(w,k);return}for(var $t=J.min.y;$t<=J.max.y;$t++)for(var ur=J.min.x;ur<=J.max.x;ur++){var ga=new q(ur,$t);if(ga.z=this._tileZoom,!!this._isValidTile(ga)){var Zn=this._tiles[this._tileCoordsToKey(ga)];Zn?Zn.current=!0:de.push(ga)}}if(de.sort(function(ma,Ei){return ma.distanceTo(ie)-Ei.distanceTo(ie)}),de.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ki=document.createDocumentFragment();for(ur=0;ur<de.length;ur++)this._addTile(de[ur],ki);this._level.el.appendChild(ki)}}}},_isValidTile:function(w){var D=this._map.options.crs;if(!D.infinite){var k=this._globalTileRange;if(!D.wrapLng&&(w.x<k.min.x||w.x>k.max.x)||!D.wrapLat&&(w.y<k.min.y||w.y>k.max.y))return!1}if(!this.options.bounds)return!0;var z=this._tileCoordsToBounds(w);return ae(this.options.bounds).overlaps(z)},_keyToBounds:function(w){return this._tileCoordsToBounds(this._keyToTileCoords(w))},_tileCoordsToNwSe:function(w){var D=this._map,k=this.getTileSize(),z=w.scaleBy(k),J=z.add(k),ie=D.unproject(z,w.z),de=D.unproject(J,w.z);return[ie,de]},_tileCoordsToBounds:function(w){var D=this._tileCoordsToNwSe(w),k=new ve(D[0],D[1]);return this.options.noWrap||(k=this._map.wrapLatLngBounds(k)),k},_tileCoordsToKey:function(w){return w.x+":"+w.y+":"+w.z},_keyToTileCoords:function(w){var D=w.split(":"),k=new q(+D[0],+D[1]);return k.z=+D[2],k},_removeTile:function(w){var D=this._tiles[w];D&&(kn(D.el),delete this._tiles[w],this.fire("tileunload",{tile:D.el,coords:this._keyToTileCoords(w)}))},_initTile:function(w){br(w,"leaflet-tile");var D=this.getTileSize();w.style.width=D.x+"px",w.style.height=D.y+"px",w.onselectstart=f,w.onmousemove=f,Qt.ielt9&&this.options.opacity<1&&ns(w,this.options.opacity)},_addTile:function(w,D){var k=this._getTilePos(w),z=this._tileCoordsToKey(w),J=this.createTile(this._wrapCoords(w),o(this._tileReady,this,w));this._initTile(J),this.createTile.length<2&&j(o(this._tileReady,this,w,null,J)),Yi(J,k),this._tiles[z]={el:J,coords:w,current:!0},D.appendChild(J),this.fire("tileloadstart",{tile:J,coords:w})},_tileReady:function(w,D,k){D&&this.fire("tileerror",{error:D,tile:k,coords:w});var z=this._tileCoordsToKey(w);k=this._tiles[z],k&&(k.loaded=+new Date,this._map._fadeAnimated?(ns(k.el,0),W(this._fadeFrame),this._fadeFrame=j(this._updateOpacity,this)):(k.active=!0,this._pruneTiles()),D||(br(k.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:k.el,coords:w})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Qt.ielt9||!this._map._fadeAnimated?j(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(w){return w.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(w){var D=new q(this._wrapX?c(w.x,this._wrapX):w.x,this._wrapY?c(w.y,this._wrapY):w.y);return D.z=w.z,D},_pxBoundsToTileRange:function(w){var D=this.getTileSize();return new ce(w.min.unscaleBy(D).floor(),w.max.unscaleBy(D).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var w in this._tiles)if(!this._tiles[w].loaded)return!1;return!0}});function yn(w){return new lc(w)}var xd=lc.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(w,D){this._url=w,D=g(this,D),D.detectRetina&&Qt.retina&&D.maxZoom>0?(D.tileSize=Math.floor(D.tileSize/2),D.zoomReverse?(D.zoomOffset--,D.minZoom=Math.min(D.maxZoom,D.minZoom+1)):(D.zoomOffset++,D.maxZoom=Math.max(D.minZ
158oom,D.maxZoom-1)),D.minZoom=Math.max(0,D.minZoom)):D.zoomReverse?D.minZoom=Math.min(D.maxZoom,D.minZoom):D.maxZoom=Math.max(D.minZoom,D.maxZoom),typeof D.subdomains=="string"&&(D.subdomains=D.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(w,D){return this._url===w&&D===void 0&&(D=!0),this._url=w,D||this.redraw(),this},createTile:function(w,D){var k=document.createElement("img");return Wt(k,"load",o(this._tileOnLoad,this,D,k)),Wt(k,"error",o(this._tileOnError,this,D,k)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(k.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(k.referrerPolicy=this.options.referrerPolicy),k.alt="",k.src=this.getTileUrl(w),k},getTileUrl:function(w){var D={r:Qt.retina?"@2x":"",s:this._getSubdomain(w),x:w.x,y:w.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var k=this._globalTileRange.max.y-w.y;this.options.tms&&(D.y=k),D["-y"]=k}return b(this._url,i(D,this.options))},_tileOnLoad:function(w,D){Qt.ielt9?setTimeout(o(w,this,null,D),0):w(null,D)},_tileOnError:function(w,D,k){var z=this.options.errorTileUrl;z&&D.getAttribute("src")!==z&&(D.src=z),w(k,D)},_onTileRemove:function(w){w.tile.onload=null},_getZoomForUrl:function(){var w=this._tileZoom,D=this.options.maxZoom,k=this.options.zoomReverse,z=this.options.zoomOffset;return k&&(w=D-w),w+z},_getSubdomain:function(w){var D=Math.abs(w.x+w.y)%this.options.subdomains.length;return this.options.subdomains[D]},_abortLoading:function(){var w,D;for(w in this._tiles)if(this._tiles[w].coords.z!==this._tileZoom&&(D=this._tiles[w].el,D.onload=f,D.onerror=f,!D.complete)){D.src=B;var k=this._tiles[w].coords;kn(D),delete this._tiles[w],this.fire("tileabort",{tile:D,coords:k})}},_removeTile:function(w){var D=this._tiles[w];if(D)return D.el.setAttribute("src",B),lc.prototype._removeTile.call(this,w)},_tileReady:function(w,D,k){if(!(!this._map||k&&k.getAttribute("src")===B))return lc.prototype._tileReady.call(this,w,D,k)}});function qg(w,D){return new xd(w,D)}var Sd=xd.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(w,D){this._url=w;var k=i({},this.defaultWmsParams);for(var z in D)z in this.options||(k[z]=D[z]);D=g(this,D);var J=D.detectRetina&&Qt.retina?2:1,ie=this.getTileSize();k.width=ie.x*J,k.height=ie.y*J,this.wmsParams=k},onAdd:function(w){this._crs=this.options.crs||w.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var D=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[D]=this._crs.code,xd.prototype.onAdd.call(this,w)},getTileUrl:function(w){var D=this._tileCoordsToNwSe(w),k=this._crs,z=he(k.project(D[0]),k.project(D[1])),J=z.min,ie=z.max,de=(this._wmsVersion>=1.3&&this._crs===Kg?[J.y,J.x,ie.y,ie.x]:[J.x,J.y,ie.x,ie.y]).join(","),Pe=xd.prototype.getTileUrl.call(this,w);return Pe+m(this.wmsParams,Pe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+de},setParams:function(w,D){return i(this.wmsParams,w),D||this.redraw(),this}});function NE(w,D){return new Sd(w,D)}xd.WMS=Sd,qg.wms=NE;var Po=as.extend({options:{padding:.1},initialize:function(w){g(this,w),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),br(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var w={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(w.zoomanim=this._onAnimZoom),w},_onAnimZoom:function(w){this._updateTransform(w.center,w.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(w,D){var k=this._map.getZoomScale(D,this._zoom),z=this._map.getSize().multiplyBy(.5+this.options.padding),J=this._map.project(this._center,D),ie=z.multiplyBy(-k).add(J).subtract(this._map._getNewPixelOrigin(w,D));Qt.any3d?Lo(this._container,ie,k):Yi(this._container,ie)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var w in this._layers)this._layers[w]._reset()},_onZoomEnd:function(){for(var w in this._layers)this._layers[w]._project()},_updatePaths:function(){for(var w in this._layers)this._layers[w]._update()},_update:function(){var w=this.options.padding,D=this._map.getSize(),k=this._map.containerPointToLayerPoint(D.multiplyBy(-w)).round();
158this._bounds=new ce(k,k.add(D.multiplyBy(1+w*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Jg=Po.extend({options:{tolerance:0},getEvents:function(){var w=Po.prototype.getEvents.call(this);return w.viewprereset=this._onViewPreReset,w},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Po.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var w=this._container=document.createElement("canvas");Wt(w,"mousemove",this._onMouseMove,this),Wt(w,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Wt(w,"mouseout",this._handleMouseOut,this),w._leaflet_disable_events=!0,this._ctx=w.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,kn(this._container),Fn(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var w;this._redrawBounds=null;for(var D in this._layers)w=this._layers[D],w._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Po.prototype._update.call(this);var w=this._bounds,D=this._container,k=w.getSize(),z=Qt.retina?2:1;Yi(D,w.min),D.width=z*k.x,D.height=z*k.y,D.style.width=k.x+"px",D.style.height=k.y+"px",Qt.retina&&this._ctx.scale(2,2),this._ctx.translate(-w.min.x,-w.min.y),this.fire("update")}},_reset:function(){Po.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(w){this._updateDashArray(w),this._layers[l(w)]=w;var D=w._order={layer:w,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=D),this._drawLast=D,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(w){this._requestRedraw(w)},_removePath:function(w){var D=w._order,k=D.next,z=D.prev;k?k.prev=z:this._drawLast=z,z?z.next=k:this._drawFirst=k,delete w._order,delete this._layers[l(w)],this._requestRedraw(w)},_updatePath:function(w){this._extendRedrawBounds(w),w._project(),w._update(),this._requestRedraw(w)},_updateStyle:function(w){this._updateDashArray(w),this._requestRedraw(w)},_updateDashArray:function(w){if(typeof w.options.dashArray=="string"){var D=w.options.dashArray.split(/[, ]+/),k=[],z,J;for(J=0;J<D.length;J++){if(z=Number(D[J]),isNaN(z))return;k.push(z)}w.options._dashArray=k}else w.options._dashArray=w.options.dashArray},_requestRedraw:function(w){this._map&&(this._extendRedrawBounds(w),this._redrawRequest=this._redrawRequest||j(this._redraw,this))},_extendRedrawBounds:function(w){if(w._pxBounds){var D=(w.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ce,this._redrawBounds.extend(w._pxBounds.min.subtract([D,D])),this._redrawBounds.extend(w._pxBounds.max.add([D,D]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var w=this._redrawBounds;if(w){var D=w.getSize();this._ctx.clearRect(w.min.x,w.min.y,D.x,D.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var w,D=this._redrawBounds;if(this._ctx.save(),D){var k=D.getSize();this._ctx.beginPath(),this._ctx.rect(D.min.x,D.min.y,k.x,k.y),this._ctx.clip()}this._drawing=!0;for(var z=this._drawFirst;z;z=z.next)w=z.layer,(!D||w._pxBounds&&w._pxBounds.intersects(D))&&w._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(w,D){if(this._drawing){var k,z,J,ie,de=w._parts,Pe=de.length,Qe=this._ctx;if(Pe){for(Qe.beginPath(),k=0;k<Pe;k++){for(z=0,J=de[k].length;z<J;z++)ie=de[k][z],Qe[z?"lineTo":"moveTo"](ie.x,ie.y);D&&Qe.closePath()}this._fillStroke(Qe,w)}}},_updateCircle:function(w){if(!(!this._drawing||w._empty())){var D=w._point,k=this._ctx,z=Math.max(Math.round(w._radius),1),J=(Math.max(Math.round(w._radiusY),1)||z)/z;J!==1&&(k.save(),k.scale(1,J)),k.beginPath(),k.arc(D.x,D.y/J,z,0,Math.PI*2,!1),J!==1&&k.restore(),this._fillStroke(k,w)}},_fillStroke:function(w,D){var k=D.options;k.fill&&(w.globalAlpha=k.fillOpacity,w.fillStyle=k.fillColor||k.color,w.fill(k.fillRule||"evenodd")),k.stroke&&k.weight!==0&&(w.setLineDash&&w.setLineDash(D.options&&D.options._dashArray||[]),w.globalAlpha=k.opacity,w.lineWidth=k.weight,w.strokeStyle=k.color,w.lineCap=k.lineCap,w.lineJoin=k.lineJoin,w.stroke())},_onClick:function(w){for(var D=this._map.mouseEventToLayerPoint(w),k,z,J=this._drawFirst;J;
158J=J.next)k=J.layer,k.options.interactive&&k._containsPoint(D)&&(!(w.type==="click"||w.type==="preclick")||!this._map._draggableMoved(k))&&(z=k);this._fireEvent(z?[z]:!1,w)},_onMouseMove:function(w){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var D=this._map.mouseEventToLayerPoint(w);this._handleMouseHover(w,D)}},_handleMouseOut:function(w){var D=this._hoveredLayer;D&&(Nn(this._container,"leaflet-interactive"),this._fireEvent([D],w,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(w,D){if(!this._mouseHoverThrottled){for(var k,z,J=this._drawFirst;J;J=J.next)k=J.layer,k.options.interactive&&k._containsPoint(D)&&(z=k);z!==this._hoveredLayer&&(this._handleMouseOut(w),z&&(br(this._container,"leaflet-interactive"),this._fireEvent([z],w,"mouseover"),this._hoveredLayer=z)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,w),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(w,D,k){this._map._fireDOMEvent(D,k||D.type,w)},_bringToFront:function(w){var D=w._order;if(D){var k=D.next,z=D.prev;if(k)k.prev=z;else return;z?z.next=k:k&&(this._drawFirst=k),D.prev=this._drawLast,this._drawLast.next=D,D.next=null,this._drawLast=D,this._requestRedraw(w)}},_bringToBack:function(w){var D=w._order;if(D){var k=D.next,z=D.prev;if(z)z.next=k;else return;k?k.prev=z:z&&(this._drawLast=z),D.prev=null,D.next=this._drawFirst,this._drawFirst.prev=D,this._drawFirst=D,this._requestRedraw(w)}}});function uc(w){return Qt.canvas?new Jg(w):null}var ko=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(w){return document.createElement("<lvml:"+w+' class="lvml">')}}catch{}return function(w){return document.createElement("<"+w+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Qp={_initContainer:function(){this._container=cn("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Po.prototype._update.call(this),this.fire("update"))},_initPath:function(w){var D=w._container=ko("shape");br(D,"leaflet-vml-shape "+(this.options.className||"")),D.coordsize="1 1",w._path=ko("path"),D.appendChild(w._path),this._updateStyle(w),this._layers[l(w)]=w},_addPath:function(w){var D=w._container;this._container.appendChild(D),w.options.interactive&&w.addInteractiveTarget(D)},_removePath:function(w){var D=w._container;kn(D),w.removeInteractiveTarget(D),delete this._layers[l(w)]},_updateStyle:function(w){var D=w._stroke,k=w._fill,z=w.options,J=w._container;J.stroked=!!z.stroke,J.filled=!!z.fill,z.stroke?(D||(D=w._stroke=ko("stroke")),J.appendChild(D),D.weight=z.weight+"px",D.color=z.color,D.opacity=z.opacity,z.dashArray?D.dashStyle=x(z.dashArray)?z.dashArray.join(" "):z.dashArray.replace(/( *, *)/g," "):D.dashStyle="",D.endcap=z.lineCap.replace("butt","flat"),D.joinstyle=z.lineJoin):D&&(J.removeChild(D),w._stroke=null),z.fill?(k||(k=w._fill=ko("fill")),J.appendChild(k),k.color=z.fillColor||z.color,k.opacity=z.fillOpacity):k&&(J.removeChild(k),w._fill=null)},_updateCircle:function(w){var D=w._point.round(),k=Math.round(w._radius),z=Math.round(w._radiusY||k);this._setPath(w,w._empty()?"M0 0":"AL "+D.x+","+D.y+" "+k+","+z+" 0,"+65535*360)},_setPath:function(w,D){w._path.v=D},_bringToFront:function(w){mu(w._container)},_bringToBack:function(w){rs(w._container)}},Rl=Qt.vml?ko:tt,us=Po.extend({_initContainer:function(){this._container=Rl("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Rl("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){kn(this._container),Fn(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Po.prototype._update.call(this);var w=this._bounds,D=w.getSize(),k=this._container;(!this._svgSize||!this._svgSize.equals(D))&&(this._svgSize=D,k.setAttribute("width",D.x),k.setAttribute("height",D.y)),Yi(k,w.min),k.setAttribute("viewBox",[w.min.x,w.min.y,D.x,D.y].join(" ")),this.fire("update")}},_initPath:function(w){var D=w._path=Rl("path");w.options.className&&br(D,w.options.className),w.options.interactive&&br(D,"leaflet-interactive"),this._updateStyle(w),this._layers[l(w)]=w},_addPath:function(w){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(w._path),w.addInteractiveTarget(w._path)},_removePath:function(w){kn(w._path),w.removeInteractiveTarget(w._path),delete this._layers[l(w)]}
158,_updatePath:function(w){w._project(),w._update()},_updateStyle:function(w){var D=w._path,k=w.options;D&&(k.stroke?(D.setAttribute("stroke",k.color),D.setAttribute("stroke-opacity",k.opacity),D.setAttribute("stroke-width",k.weight),D.setAttribute("stroke-linecap",k.lineCap),D.setAttribute("stroke-linejoin",k.lineJoin),k.dashArray?D.setAttribute("stroke-dasharray",k.dashArray):D.removeAttribute("stroke-dasharray"),k.dashOffset?D.setAttribute("stroke-dashoffset",k.dashOffset):D.removeAttribute("stroke-dashoffset")):D.setAttribute("stroke","none"),k.fill?(D.setAttribute("fill",k.fillColor||k.color),D.setAttribute("fill-opacity",k.fillOpacity),D.setAttribute("fill-rule",k.fillRule||"evenodd")):D.setAttribute("fill","none"))},_updatePoly:function(w,D){this._setPath(w,lt(w._parts,D))},_updateCircle:function(w){var D=w._point,k=Math.max(Math.round(w._radius),1),z=Math.max(Math.round(w._radiusY),1)||k,J="a"+k+","+z+" 0 1,0 ",ie=w._empty()?"M0 0":"M"+(D.x-k)+","+D.y+J+k*2+",0 "+J+-k*2+",0 ";this._setPath(w,ie)},_setPath:function(w,D){w._path.setAttribute("d",D)},_bringToFront:function(w){mu(w._path)},_bringToBack:function(w){rs(w._path)}});Qt.vml&&us.include(Qp);function jp(w){return Qt.svg||Qt.vml?new us(w):null}Ir.include({getRenderer:function(w){var D=w.options.renderer||this._getPaneRenderer(w.options.pane)||this.options.renderer||this._renderer;return D||(D=this._renderer=this._createRenderer()),this.hasLayer(D)||this.addLayer(D),D},_getPaneRenderer:function(w){if(w==="overlayPane"||w===void 0)return!1;var D=this._paneRenderers[w];return D===void 0&&(D=this._createRenderer({pane:w}),this._paneRenderers[w]=D),D},_createRenderer:function(w){return this.options.preferCanvas&&uc(w)||jp(w)}});var em=_d.extend({initialize:function(w,D){_d.prototype.initialize.call(this,this._boundsToLatLngs(w),D)},setBounds:function(w){return this.setLatLngs(this._boundsToLatLngs(w))}
vendor: 6,273 bytes, line 158
158,_boundsToLatLngs:function(w){return w=ae(w),[w.getSouthWest(),w.getNorthWest(),w.getNorthEast(),w.getSouthEast()]}});function Cu(w,D){return new em(w,D)}us.create=Rl,us.pointsToPath=lt,Oo.geometryToLayer=sc,Oo.coordsToLatLng=Yg,Oo.coordsToLatLngs=Hp,Oo.latLngToCoords=$g,Oo.latLngsToCoords=rf,Oo.getFeature=Su,Oo.asFeature=Zg,Ir.mergeOptions({boxZoom:!0});var tm=Ro.extend({initialize:function(w){this._map=w,this._container=w._container,this._pane=w._panes.overlayPane,this._resetStateTimeout=0,w.on("unload",this._destroy,this)},addHooks:function(){Wt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Fn(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){kn(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(w){if(!w.shiftKey||w.which!==1&&w.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),qc(),vd(),this._startPoint=this._map.mouseEventToContainerPoint(w),Wt(document,{contextmenu:fn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(w){this._moved||(this._moved=!0,this._box=cn("div","leaflet-zoom-box",this._container),br(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(w);var D=new ce(this._point,this._startPoint),k=D.getSize();Yi(this._box,D.min),this._box.style.width=k.x+"px",this._box.style.height=k.y+"px"},_finish:function(){this._moved&&(kn(this._box),Nn(this._container,"leaflet-crosshair")),Ad(),Dh(),Fn(document,{contextmenu:fn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(w){if(!(w.which!==1&&w.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var D=new ve(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(D).fire("boxzoomend",{boxZoomBounds:D})}},_onKeyDown:function(w){w.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ir.addInitHook("addHandler","boxZoom",tm),Ir.mergeOptions({doubleClickZoom:!0});var Cd=Ro.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(w){var D=this._map,k=D.getZoom(),z=D.options.zoomDelta,J=w.originalEvent.shiftKey?k-z:k+z;D.options.doubleClickZoom==="center"?D.setZoom(J):D.setZoomAround(w.containerPoint,J)}});Ir.addInitHook("addHandler","doubleClickZoom",Cd),Ir.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var cc=Ro.extend({addHooks:function(){if(!this._draggable){var w=this._map;this._draggable=new Hn(w._mapPane,w._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),w.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),w.on("zoomend",this._onZoomEnd,this),w.whenReady(this._onZoomEnd,this))}br(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Nn(this._map._container,"leaflet-grab"),Nn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var w=this._map;if(w._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var D=ae(this._map.options.maxBounds);this._offsetLimit=he(this._map.latLngToContainerPoint(D.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(D.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;w.fire("movestart").fire("dragstart"),w.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(w){if(this._map.options.inertia){var D=this._lastTime=+new Date,k=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(k),this._times.push(D),this._prunePositions(D)}this._map.fire("move",w).fire("drag",w)},_prunePositions:function(w){for(;this._positions.length>1&&w-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var w=this._map.getSize().divideBy(2),D=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=D.subtract(w).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(w,D){return w-(w-D)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var w=this._draggable._newPos.subtract(this._draggable._startPos),D=this._offsetLimit;w.x<D.min.x&&(w.x=this._viscousLimit(w.x,D.min.x)),w.y<D.min.y&&(w.y=this._viscousLimit(w.y,D.min.y)),w.x>D.max.x&&(w.x=this._viscousLimit(w.x,D.max.x)),w.y>D.max.y&&(w.y=this._viscousLimit(w.y,D.max.y)),this._draggable._newPos=this._draggable._startPos.add(w)}},_onPreDragWrap:function(){var w=this._worldWidth,D=Math.round(w/2),k=this._initialWorldOffset,z=this._draggable._newPos.x,J=(z-D+k)%w+D-k,ie=(z+D+k)%w-D-k,de=Math.abs(J+k)<Math.abs(ie+k)?J:ie;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=de},_onDragEnd:function(w){var D=this._map,k=D.options,z=!k.inertia||w.noInertia||this._times.length<2;if(D.fire("dragend",w),z)D.fire("moveend");else{this._prunePositions(+new Date);var J=this._lastPos.subtract(this._positions[0]),ie=(this._lastTime-this._times[0])/1e3,de=k.easeLinearity,Pe=J.multiplyBy(de/ie),Qe=Pe.distanceTo([0,0]),Xe=Math.min(k.inertiaMaxSpeed,Qe),yt=Pe.multiplyBy(Xe/Qe),$t=Xe/(k.inertiaDeceleration*de),ur=yt.multiplyBy(-$t/2).round();!ur.x&&!ur.y?D.fire("moveend"):(ur=D._limitOffset(ur,D.options.maxBounds),j(function(){D.panBy(ur,{duration:$t,easeLinearity:de,noMoveStart:!0,animate:!0})}
158))}}});Ir.addInitHook("addHandler","dragging",cc),Ir.mergeOptions({keyboard:!0,keyboardPanDelta:80});var zp=Ro.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(w){this._map=w,this._setPanDelta(w.options.keyboardPanDelta),this._setZoomDelta(w.options.zoomDelta)},addHooks:function(){var w=this._map._container;w.tabIndex<=0&&(w.tabIndex="0"),Wt(w,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Fn(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var w=document.body,D=document.documentElement,k=w.scrollTop||D.scrollTop,z=w.scrollLeft||D.scrollLeft;this._map._container.focus(),window.scrollTo(z,k)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(w){var D=this._panKeys={},k=this.keyCodes,z,J;for(z=0,J=k.left.length;z<J;z++)D[k.left[z]]=[-1*w,0];for(z=0,J=k.right.length;z<J;z++)D[k.right[z]]=[w,0];for(z=0,J=k.down.length;z<J;z++)D[k.down[z]]=[0,w];for(z=0,J=k.up.length;z<J;z++)D[k.up[z]]=[0,-1*w]},_setZoomDelta:function(w){var D=this._zoomKeys={},k=this.keyCodes,z,J;for(z=0,J=k.zoomIn.length;z<J;z++)D[k.zoomIn[z]]=w;for(z=0,J=k.zoomOut.length;z<J;z++)D[k.zoomOut[z]]=-w},_addHooks:function(){Wt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Fn(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(w){if(!(w.altKey||w.ctrlKey||w.metaKey)){var D=w.keyCode,k=this._map,z;if(D in this._panKeys){if(!k._panAnim||!k._panAnim._inProgress)if(z=this._panKeys[D],w.shiftKey&&(z=te(z).multiplyBy(3)),k.options.maxBounds&&(z=k._limitOffset(te(z),k.options.maxBounds)),k.options.worldCopyJump){var J=k.wrapLatLng(k.unproject(k.project(k.getCenter()).add(z)));k.panTo(J)}else k.panBy(z)}else if(D in this._zoomKeys)k.setZoom(k.getZoom()+(w.shiftKey?3:1)*this._zoomKeys[D]);else if(D===27&&k._popup&&k._popup.options.closeOnEscapeKey)k.closePopup();else return;fn(w)}}});Ir.addInitHook("addHandler","keyboard",zp),Ir.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Zx=Ro.extend({addHooks:function(){Wt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Fn(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(w){var D=Bl(w),k=this._map.options.wheelDebounceTime;this._delta+=D,this._lastMousePos=this._map.mouseEventToContainerPoint(w),this._startTime||(this._startTime=+new Date);var z=Math.max(k-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),z),fn(w)},_performZoom:function(){var w=this._map,D=w.getZoom(),k=this._map.options.zoomSnap||0;w._stop();var z=this._delta/(this._map.options.wheelPxPerZoomLevel*4),J=4*Math.log(2/(1+Math.exp(-Math.abs(z))))/Math.LN2,ie=k?Math.ceil(J/k)*k:J,de=w._limitZoom(D+(this._delta>0?ie:-ie))-D;this._delta=0,this._startTime=null,de&&(w.options.scrollWheelZoom==="center"?w.setZoom(D+de):w.setZoomAround(this._lastMousePos,D+de))}});Ir.addInitHook("addHandler","scrollWheelZoom",Zx);var FE=600;Ir.mergeOptions({tapHold:Qt.touchNative&&Qt.safari&&Qt.mobile,tapTolerance:15});var K0=Ro.extend({addHooks:function(){Wt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Fn(this._map._container,"touchstart",this._onDown,this)},_onDown:function(w){if(clearTimeout(this._holdTimeout),w.touches.length===1){var D=w.touches[0];this._startPos=this._newPos=new q(D.clientX,D.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Wt(document,"touchend",pa),Wt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",D))},this),FE),Wt(document,"touchend touchcancel contextmenu",this._cancel,this),Wt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function w(){Fn(document,"touchend",pa),Fn(document,"touchend touchcancel",w)},_cancel:function(){clearTimeout(this._holdTimeout),Fn(document,"touchend touchcancel contextmenu",this._cancel,this),Fn(document,"touchmove",this._onMove,this)},_onMove:function(w){var D=w.touches[0];this._newPos=new q(D.clientX,D.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(w,D){var k=new MouseEvent(w,{bubbles:!0,cancelable:!0,view:window,screenX:D.screenX,screenY:D.screenY,clientX:D.clientX,clientY:D.clientY});k._simulated=!0,D.target.dispatchEvent(k)}});Ir.addInitHook("addHandler","tapHold",K0),Ir.mergeOptions({touchZoom:Qt.touch,bounceAtZoomLimits:!0});var kh=Ro.extend({addHooks:function(){br(this._map._container,"leaflet-touch-zoom"),Wt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Nn(this._map._container,"leaflet-touch-zoom"),Fn(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(w){var D=this._map;if(!(!w.touches||w.touches.length!==2||D._animatingZoom||this._zooming)){var k=D.mouseEventToContainerPoint(w.touches[0]),z=D.mouseEventToContainerPoint(w.touches[1]);this._centerPoint=D.getSize()._divideBy(2),this._startLatLng=D.containerPointToLatLng(this._centerPoint),D.options.touchZoom!=="center"&&(this._pinchStartLatLng=D.containerPointToLatLng(k.add(z)._divideBy(2))),this._startDist=k.distanceTo(z),this._startZoom=D.getZoom(),this._moved=!1,this._zooming=!0,D._stop(),Wt(document,"touchmove",this._onTouchMove,this),Wt(document,"touchend touchcancel",this._onTouchEnd,this),pa(w)}},_onTouchMove:function(w){if(!(!w.touches||w.touches.length!==2||!this._zooming)){var D=this._map,k=D.mouseEventToContainerPoint(w.touches[0]),z=D.mouseEventToContainerPoint(w.touches[1]),J=k.distanceTo(z)/this._startDist;if(this._zoom=D.getScaleZoom(J,this._startZoom),!D.options.bounceAtZoomLimits&&(this._zoom<
158D.getMinZoom()&&J<1||this._zoom>D.getMaxZoom()&&J>1)&&(this._zoom=D._limitZoom(this._zoom)),D.options.touchZoom==="center"){if(this._center=this._startLatLng,J===1)return}else{var ie=k._add(z)._divideBy(2)._subtract(this._centerPoint);if(J===1&&ie.x===0&&ie.y===0)return;this._center=D.unproject(D.project(this._pinchStartLatLng,this._zoom).subtract(ie),this._zoom)}this._moved||(D._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var de=o(D._move,D,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=j(de,this,!0),pa(w)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),Fn(document,"touchmove",this._onTouchMove,this),Fn(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ir.addInitHook("addHandler","touchZoom",kh),Ir.BoxZoom=tm,Ir.DoubleClickZoom=Cd,Ir.Drag=cc,Ir.Keyboard=zp,Ir.ScrollWheelZoom=Zx,Ir.TapHold=K0,Ir.TouchZoom=kh,r.Bounds=ce,r.Browser=Qt,r.CRS=Me,r.Canvas=Jg,r.Circle=Fp,r.CircleMarker=Oh,r.Class=Y,r.Control=Dn,r.DivIcon=Ll,r.DivOverlay=$s,r.DomEvent=N0,r.DomUtil=IE,r.Draggable=Hn,r.Evented=X,r.FeatureGroup=os,r.GeoJSON=Oo,r.GridLayer=lc,r.Handler=Ro,r.Icon=wd,r.ImageOverlay=He,r.LatLng=fe,r.LatLngBounds=ve,r.Layer=as,r.LayerGroup=va,r.LineUtil=Q0,r.Map=Ir,r.Marker=Wg,r.Mixin=Io,r.Path=ss,r.Point=q,r.PolyUtil=Rh,r.Polygon=_d,r.Polyline=Ra,r.Popup=Xg,r.PosAnimation=gd,r.Projection=j0,r.Rectangle=em,r.Renderer=Po,r.SVG=us,r.SVGOverlay=Pi,r.TileLayer=xd,r.Tooltip=bd,r.Transformation=Re,r.Util=V,r.VideoOverlay=dr,r.bind=o,r.bounds=he,r.canvas=uc,r.circle=G0,r.circleMarker=Np,r.control=ef,r.divIcon=Ph,r.extend=i,r.featureGroup=Wx,r.geoJSON=Ce,r.geoJson=Ge,r.gridLayer=yn,r.icon=PE,r.imageOverlay=Et,r.latLng=we,r.latLngBounds=ae,r.layerGroup=V0,r.map=Gx,r.marker=kE,r.point=te,r.polygon=$x,r.polyline=Up,r.popup=Zs,r.rectangle=Cu,r.setOptions=g,r.stamp=l,r.svg=jp,r.svgOverlay=Qn,r.tileLayer=qg,r.tooltip=ls,r.transformation=Se,r.version=n,r.videoOverlay=dn;var Nh=window.L;r.noConflict=function(){return window.L=Nh,this},window.L=r}))})(UM,UM.exports)),UM.exports}var sx=MDt();const x0=HT(sx),LDt=Object.freeze(Object.defineProperty({__proto__:null,default:x0},Symbol.toStringTag,{value:"Module"}));function nte(t,e,r){return Object.freeze({instance:t,context:e,container:r})}function ite(t,e){return e==null?function(n,i){const a=H.useRef(void 0);return a.current||(a.current=t(n,i)),a}:function(n,i){const a=H.useRef(void 0);a.current||(a.current=t(n,i));const o=H.useRef(n),{instance:s}=a.current;return H.useEffect(function(){o.current!==n&&(e(s,n,o.current),o.current=n)},[s,n,e]),a}}function RDt(t,e){H.useEffect(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}function hRe(t){return function(r){const n=tte(),i=t(rte(r,n),n);return fRe(n.map,r.attribution),dRe(i.current,r.eventHandlers),RDt(i.current,n),i}}function IDt(t,e){const r=ite(t,e),n=hRe(r);return CDt(n)}function ODt(t,e){const r=ite(t),n=BDt(r,e);return TDt(n)}function PDt(t,e){const r=ite(t,e),n=hRe(r);return EDt(n)}function kDt(t,e,r){const{opacity:n,zIndex:i}=e;n!=null&&n!==r.opacity&&t.setOpacity(n),i!=null&&i!==r.zIndex&&t.setZIndex(i)}function ate(){return tte().map}function NDt(t){const e=ate();return H.useEffect(function(){return e.on(t),function(){e.off(t)}},[e,t]),e}function FDt({bounds:t,boundsOptions:e,center:r,children:n,className:i,id:a,placeholder:o,style:s,whenReady:l,zoom:u,...c},f){const[d]=H.useState({className:i,id:a,style:s}),[A,p]=H.useState(null),g=H.useRef(void 0);H.useImperativeHandle(f,()=>A?.map??null,[A]);const m=H.useCallback(b=>{if(b!==null&&!g.current){const x=new sx.Map(b,c);g.current=x,r!=null&&u!=null?x.setView(r,u):t!=null&&x.fitBounds(t,e),l!=null&&x.whenReady(l),p(xDt(x))}},[]);H.useEffect(()=>()=>{A?.map.remove()},[A]);const y=A?ue.createElement(ete,{value:A},n):o??null;return ue.createElement("div",{...d,ref:m},y)}const ARe=H.forwardRef(FDt),pRe=IDt(function({position:e,...r},n){const i=new sx.Marker(e,r);return nte(i,SDt(n,{overlayContainer:i}))},function(e,r,n){r.position!==n.position&&e.setLatLng(r.position),r.icon!=null&&r.icon!==n.icon&&e.setIcon(r.icon),r.zIndexOffset!=null&&r.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(r.zIndexOffset),r.opacity!=null&&r.opacity!==n.opacity&&e.setOpacity(r.opacity),e.dragging!=null&&r.draggable!==n.draggable&&(r.draggable===!0?e.dragging.enable():e.dragging.disable())}),UDt=ODt(function(e,r){const n=new sx.Popup(e,r.overlayContainer);return nte(n,r)},function(e,r,{position:n},i){H.useEffect(function(){const{instance:o}=e;function s(u){u.popup===o&&(o.update(),i(!0))}function l(u){u.popup===o&&i(!1)}return r.map.on({popupopen:s,popupclose:l}),r.overlayContainer==null?(n!=null&&o.setLatLng(n),o.openOn(r.map)):r.overlayContainer.bindPopup(o),function(){r.map.off({popupopen:s,popupclose:l}),r.overlayContainer?.unbindPopup(),r.map.removeLayer(o)}},[e,r,i,n])}),vRe=PDt(function({url:e,...r}
158,n){const i=new sx.TileLayer(e,rte(r,n));return nte(i,n)},function(e,r,n){kDt(e,r,n);const{url:i}=r;i!=null&&i!==n.url&&e.setUrl(i)}),ave="/assets/green-marker-DEjP3OEb.png",ove="/assets/orange-marker-CJUQhSBe.png",sve="/assets/deep-green-marker-BuJDGvxd.png",lve="/assets/grey-marker-PvLYn3qP.png";x0.Icon.Default.mergeOptions({iconRetinaUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png"});const rK=new x0.Icon({iconUrl:ave,iconRetinaUrl:ave,shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png",iconSize:[35,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),uve=new x0.Icon({iconUrl:sve,iconRetinaUrl:sve,shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png",iconSize:[35,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),HDt=new x0.Icon({iconUrl:ove,iconRetinaUrl:ove,shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png",iconSize:[35,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),cve=new x0.Icon({iconUrl:lve,iconRetinaUrl:lve,shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png",iconSize:[35,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),qY={deepGreen:"#15803d",lightGreen:"#86efac",orange:"#faab00",grey:"#4b5563"},gRe=t=>`
159  <svg xmlns="http://www.w3.org/2000/svg" width="30" height="36" viewBox="0 0 30 36">
160    <line x1="11" y1="7" x2="11" y2="2" stroke="#1f2937" stroke-width="1.6"/>
161    <line x1="19" y1="7" x2="19" y2="2" stroke="#1f2937" stroke-width="1.6"/>
162    <circle cx="11" cy="9" r="3.2" fill="${t}" stroke="#1f2937" stroke-width="1.4"/>
163    <circle cx="19" cy="9" r="3.2" fill="${t}" stroke="#1f2937" stroke-width="1.4"/>
164    <rect x="6" y="13" width="18" height="15" rx="2" fill="${t}" stroke="#1f2937" stroke-width="1.6"/>
165    <rect x="4" y="28" width="22" height="4" rx="1" fill="#1f2937"/>
166  </svg>
167`,QDt=t=>x0.divIcon({className:"substation-marker-icon",html:gRe(qY[t]||qY.grey),iconSize:[30,36],iconAnchor:[15,32],popupAnchor:[0,-30]}),jDt=({site:t,getMarkerIcon:e,getTextClassForCondition:r,condition:n})=>{const i=H.useRef(null),[a,o]=ue.useState(!1),{CONDITIONS:s}=Vt(),l=t?.device_category===an.SUBSTATION_FEEDER,u=()=>{o(!a),!a&&i.current&&i.current.openPopup()};return E.jsx(pRe,{ref:i,position:t?.position,icon:e(t,n),eventHandlers:{click:u,mouseover:c=>{a||c.target.openPopup()},mouseout:c=>{a||c.target.closePopup()}},children:E.jsx(UDt,{autoPan:!0,closeOnClick:!1,autoClose:!a,children:E.jsxs("div",{className:"popup-content",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("h4",{className:"font-semibold my-0",children:t?.asset_name}),l&&E.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-blue-100 text-blue-700 font-medium",children:"Substation"})]}),l&&E.jsxs("p",{className:"mt-1! text-xs text-gray-600",children:[t?.substation_name&&E.jsxs(E.Fragment,{children:["Substation: ",t.substation_name,E.jsx("br",{})]}),t?.feeder_name&&E.jsxs(E.Fragment,{children:["Feeder: ",t.feeder_name,E.jsx("br",{})]}),t?.feeder_voltage_level?`Voltage Level: ${t.feeder_voltage_level} kV`:null]}),E.jsx("p",{className:"mt-1!",children:t?.description}),E.jsx("p",{className:r(n,t?.condition),children:`${s.find(c=>c.value===n)?.key}: ${typeof t?.condition=="boolean"?t?.condition?"Online":"Offline":t?.condition}`}),E.jsxs("span",{children:["Last seen ",E.jsx("span",{className:"font-bold",children:t?.last_seen?Ah(t.last_seen):"No reading yet"})]}),E.jsx(ig,{to:`/dashboard/operations/site/${t?.id}`,className:"text-primary-yellow! text-sm italic block mt-2 mb-1",children:"View"}),E.jsx("button",{onClick:()=>o(!a),className:`text-xs px-2 py-1 mt-1 rounded ${a?"bg-gray-200":"bg-gray-100"}`,children:a?"Unpin popup":"Pin popup"})]})})})},zDt=({condition:t,siteData:e})=>{const{t:r,CONDITION_LABELS:n}=Vt(),i=n[t]||{},a=H.useMemo(()=>{const s=VF[t],l={critical:0};
167return s&&(Object.keys(s).forEach(u=>{l[u]=0}),e?.forEach(u=>{u.is_realtime&&l.critical++;const c=u?.condition;Object.keys(s).forEach(f=>{const d=s[f];typeof c=="boolean"?c===d&&l[f]++:typeof c=="number"&&(c<=0&&f==="grey"||d&&typeof d=="object"&&(c>=d.min&&c<=d.max||d.altMin&&c>=d.altMin&&c<=d.altMax))&&l[f]++})})),l},[t,e]),o=s=>({blue:{border:"border-l-blue-400",bg:"bg-blue-400"},deepGreen:{border:"border-l-green-600",bg:"bg-green-600"},green:{border:"border-l-green-600",bg:"bg-green-600"},lightGreen:{border:"border-l-green-300",bg:"bg-green-300"},yellow:{border:"border-l-yellow-500",bg:"bg-yellow-500"},orange:{border:"border-l-orange-500",bg:"bg-orange-500"},red:{border:"border-l-red-600",bg:"bg-red-600"},grey:{border:"border-l-gray-600",bg:"bg-gray-600"}})[s]||{border:"border-l-gray-400",bg:"bg-gray-400"};return E.jsxs("div",{className:"absolute bottom-0 right-2 bg-white p-3 rounded-md shadow-md z-30 text-sm min-w-55.5",children:[E.jsx("div",{className:"flex flex-wrap gap-4",children:Object.keys(i).map(s=>{const l=o(s);return E.jsxs("div",{className:`flex flex-col gap-1 border-l-4 pl-2 ${l.border}`,children:[E.jsxs("div",{className:"flex items-center gap-1",children:[E.jsx("div",{className:`w-3 h-3 rounded-full ${l.bg}`}),E.jsx("span",{children:i[s]})]}),E.jsxs("span",{className:"h-5 w-full text-center text-xs font-semibold",children:[a[s]||0," ",a[s]===1?r("common.device"):r("common.devices")]})]},s)})}),e?.some(s=>s.device_category===an.SUBSTATION_FEEDER)&&E.jsxs("div",{className:"flex items-center gap-3.5 mt-2 pt-2 border-t border-gray-200 text-xs text-gray-600",children:[E.jsx("span",{className:"inline-block w-4 h-4 shrink-0 -mt-4",dangerouslySetInnerHTML:{__html:gRe(qY.lightGreen)}}),E.jsx("span",{children:" = Substation Feeder"})]})]})},mRe=({company_id:t,isDummy:e=!1})=>{const{t:r,CONDITIONS:n}=Vt(),[i,a]=ue.useState(n[0].value),[o,s]=ue.useState(""),[l,u]=ue.useState(!1),c=H.useMemo(()=>e?(o?fV.filter(R=>R.classification?.id===o):fV).map(R=>({...R,condition:i==="transformer_status"?R.status==="online":R.condition})):fV,[e,o,i]),{data:f,isLoading:d,error:A}=hr(["/map","fetchSiteMap",t,i,o],"fetch-map",{condition:i,company_id:t,classification_id:o},{...ri},{isDummy:e,data:{condition:i,devices:c}}),{data:p,isLoading:g}=hr(["/classifications","fetchAssetClassifications",t],"/classifications/",{company_id:t},{},{isDummy:e,data:vbe}),m=f?.devices?.map(B=>({...B,position:[B.latitude,B.longitude]}))||[],y=(B,R)=>{const I=VF[B];if(!I)return"lightGreen";if(typeof R=="boolean")return R===I.green?"lightGreen":"grey";if(typeof R=="number"){const N=F=>F&&R>=F.min&&R<=F.max;return R<=0?"grey":N(I.blue)||N(I.deepGreen)?"deepGreen":N(I.lightGreen)?"lightGreen":"orange"}return"deepGreen"},b=(B,R)=>{const I=y(R,B?.condition);return B?.device_category===an.SUBSTATION_FEEDER?QDt(I):T(R,B?.condition)},x=(B,R)=>{const I=VF[B];if(!I)return"text-primary-dark-blue";if(typeof R=="boolean")return R===I.green?"text-white p-2 bg-green-600":"p-2 bg-gray-600 text-white";if(typeof R=="number"){const N=F=>F&&R>=F.min&&R<=F.max;return R<=0?"p-2 bg-gray-600 text-white":N(I.blue)||N(I.deepGreen)?"text-white p-2 bg-green-600":N(I.lightGreen)?"text-white p-2 bg-green-300":"text-white p-2 bg-[#faab00] rounded"}return"text-primary-dark-blue"},T=(B,R)=>{const I=VF[B];if(!I)return rK;if(typeof R=="boolean")return R===I.green?rK:cve;if(typeof R=="number"){const N=F=>F&&R>=F.min&&R<=F.max;return R<=0?cve:N(I.blue)||N(I.deepGreen)?uve:N(I.lightGreen)?rK:HDt}return uve};return E.jsxs(nr,{className:"w-full h-full flex-1",children:[E.jsxs("div",{className:"w-full flex flex-col sm:flex-row gap-2",children:[E.jsxs("h3",{className:"heading-regular self-start mb-5",children:[r("chart.site_locations"),e&&E.jsxs("span",{className:"ml-2 text-xs font-normal text-gray-400",children:["(",B7e,")"]})]}),!g&&!!p&&E.jsx(V$,{data:p,selectedId:o,onSelect:B=>{u(!0),s(B)},showAll:!0})]}),E.jsx("div",{className:"relative! h-full w-full flex-1",children:d||l?E.jsx(mn,{}):A?E.jsx(Ci,{message:r("feedback_msg.unable_to_fetch_site_map")}):E.jsxs("div",{className:"flex flex-col gap-4 w-full h-full",children:[E.jsx("select",{value:i,onChange:B=>a(B.target.value),className:"self-start cursor-pointer px-2 py-3 rounded-full bg-gray-100 border-gray-200 border text-primary-dark-blue",children:n.map((B,R)=>E.jsx("option",{value:B.value,children:B.key},R))}),m?.length>0&&E.jsxs(ARe,{center:m[0].position,zoom:13,style:{height:"500px",width:"100%",zIndex:1},children:[E.jsx(vRe,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),m.map(B=>E.jsx(jDt,{site:B,getMarkerIcon:b,getTextClassForCondition:x,condition:i},B?.id))]}),m?.length>0&&E.jsx(zDt,{condition:i,siteData:m})]})})]})},fve=[{name:"PLTCE348",normalized:"PLTCE348",lat:6.362710000000001,lng:2.4648666666666665},{name:"PLTCE086",normalized:"PLTCE086",lat:6.364357665623926,lng:2.473503782333547},{name:"PLTCE 614",normalized:"PLTCE614",lat:6.365443333333334,lng:2.4764416666666667},{name:"PLTCE 137",normalized:"PLTCE137",lat:6.365916651159955,lng:2.471166674436645},{name:"PLTCE 132",normalized:"PLTCE132",lat:6.365961910298839,lng:2.4695980943784104}
167,{name:"PLTCE064",normalized:"PLTCE064",lat:6.366339907040612,lng:2.4665397607797392},{name:"Station MRS",normalized:"STATIONMRS",lat:6.367264087627725,lng:2.4713447955187777},{name:"SLTCE 097",normalized:"SLTCE097",lat:6.367455623413315,lng:2.47208395754926},{name:"PEB",normalized:"PEB",lat:6.367588176543389,lng:2.4745087732549194},{name:"PLTCE 363",normalized:"PLTCE363",lat:6.3632996601746115,lng:2.4878531836863416},{name:"C306",normalized:"C306",lat:6.364606666666666,lng:2.4801800000000003},{name:"PLTCE 615",normalized:"PLTCE615",lat:6.366833333333333,lng:2.485515},{name:"PLTCE 616",normalized:"PLTCE616",lat:6.368341658448001,lng:2.4873762116368288},{name:"Carrefour marché Tokplégbé",normalized:"CARREFOURMARCHÉTOKPLÉGBÉ",lat:6.368023214648425,lng:2.4853871068094957},{name:"C304",normalized:"C304",lat:6.362531257001219,lng:2.4613359959378824},{name:"C188",normalized:"C188",lat:6.358218448333333,lng:2.461688023333333},{name:"PLTCE 189",normalized:"PLTCE189",lat:6.357798911666667,lng:2.4573868016666665},{name:"PLTCE 298",normalized:"PLTCE298",lat:6.365608269999998,lng:2.4647877333333335},{name:"PLTCE 229",normalized:"PLTCE229",lat:6.3659251739783205,lng:2.4688618755730003},{name:"PLTCE070",normalized:"PLTCE070",lat:6.36321001833333,lng:2.463074091666668},{name:"PLTCE 612",normalized:"PLTCE612",lat:6.363338386666667,lng:2.4644891583333335},{name:"PLTCE 098",normalized:"PLTCE098",lat:6.365254111666667,lng:2.4641539783333335},{name:"PLTCE424",normalized:"PLTCE424",lat:6.365498571666666,lng:2.462873086666667},{name:"PLTCE 079",normalized:"PLTCE079",lat:6.366071551666666,lng:2.4707316166666664},{name:"PLTCE264",normalized:"PLTCE264",lat:6.367218050000002,lng:2.4689904916666667},{name:"Ministère de la santé",normalized:"MINISTÈREDELASANTÉ",lat:6.365081666821761,lng:2.462930368690205},{name:"C290",normalized:"C290",lat:6.366389723333332,lng:2.4729152966666668},{name:"PLTCE 233",normalized:"PLTCE233",lat:6.363916381666666,lng:2.4703526333333334},{name:"PLTCE 102",normalized:"PLTCE102",lat:6.363104999999999,lng:2.47164},{name:"PLTCE 359",normalized:"PLTCE359",lat:6.362765353333334,lng:2.4820144166666664},{name:"PLTCE 362",normalized:"PLTCE362",lat:6.363039068406274,lng:2.4850163415688113},{name:"C147",normalized:"C147",lat:6.367161564422299,lng:2.4816113876797035},{name:"PLTCE468",normalized:"PLTCE468",lat:6.363715954999998,lng:2.461278786666667},{name:"PLTCE 198",normalized:"PLTCE198",lat:6.366338333333333,lng:2.474226666666666},{name:"Nom inconnu",normalized:"NOMINCONNU",lat:6.366176666666665,lng:2.472538333333334},{name:"PLTCE114",normalized:"PLTCE114",lat:6.364556666666665,lng:2.4757483333333337},{name:"PLTCE358",normalized:"PLTCE358",lat:6.3624313112633395,lng:2.478693527718469}],xc=t=>t.replace(/\s+/g,"").toUpperCase(),VDt=t=>t==null?"N/A":t>=1e3?`${(t/1e3).toFixed(2)} MWh`:`${t.toFixed(2)} kWh`,GDt=t=>{const e=xc(t.asset_name||""),r=fve.find(n=>n.normalized===e);if(r)return r;if(t.latitude&&t.longitude){const i=fve.find(a=>Math.abs(a.lat-Number(t.latitude))<=.001&&Math.abs(a.lng-Number(t.longitude))<=.001);if(i)return i}return null},dve=t=>{let e="";if(t.getTooltip&&t.getTooltip()){const r=t.getTooltip().getContent();typeof r=="string"&&(e+=" "+r)}if(t.getPopup&&t.getPopup()){const r=t.getPopup().getContent();typeof r=="string"&&(e+=" "+r)}return e};function KDt({company_id:t,searchQuery:e="",isDummy:r=!1}){const{t:n}=Vt(),i=H.useRef(null),[a,o]=H.useState(!0),[s,l]=H.useState(!1),[u]=ue.useState(""),{data:c,isLoading:f,error:d}=hr(["/devices","fetchAllDevices",t,1,e,u],"/devices",{page:1,page_size:9999,company_id:t,search:e,classification_id:u},void 0,{isDummy:r,data:{results:Qa}}),{data:A,isLoading:p,error:g}=hr(["/operations/total-consumption","siteConsumption",t],"/operations/total-consumption",{card_type:"operations_home",company_id:t},{enabled:!!t,queryKey:[]},{isDummy:r,data:I9}),m=!!(d||g),y=ue.useMemo(()=>c?Array.isArray(c)?c:Array.isArray(c.results)?c.results:Array.isArray(c.data)?c.data:[]:[],[c]),b=ue.useMemo(()=>A?.sites_consumption??[],[A]),x=ue.useMemo(()=>{const F=new Map;return b.forEach(Q=>{Q.asset_name&&F.set(xc(Q.asset_name),Q.total_consumption),Q.gateway_serial&&F.set(Q.gateway_serial.trim(),Q.total_consumption)}),F},[b]),T=F=>{const Q=x.get(xc(F.asset_name||""));if(Q!==void 0)return Q;if(F.gateway_serial)return x.get(F.gateway_serial.trim())},B=()=>{const F=i.current;if(F)try{const Q=F.contentWindow;if(!Q||!Q.L)return;const j=Q.L;let W=null;for(const ne in Q)if(ne.startsWith("map_")&&Q[ne]instanceof j.Map){W=Q[ne];break}if(!W){console.warn("Folium Leaflet instance could not be found yet.");return}const V=[],Y=new Map,G=new Set,K=new Set,X=new Set;
167y.forEach(ne=>{const te=GDt(ne);if(te){V.push({device:ne,htmlLat:te.lat,htmlLng:te.lng});const ce=xc(te.name);X.add(te.name),X.add(ce),G.add(te.name),G.add(ce),ne.asset_name&&(X.add(ne.asset_name),X.add(xc(ne.asset_name)),G.add(ne.asset_name),G.add(xc(ne.asset_name)),Y.set(ce,ne.asset_name),Y.set(te.name,ne.asset_name),Y.set(xc(ne.asset_name),ne.asset_name))}else console.warn(`[NetworkMap] No HTML marker found for device: ${ne.asset_name}`)}),console.log(`[NetworkMap] Resolved ${V.length}/${y.length} devices`);const q=1e-4;W.eachLayer(ne=>{if(ne instanceof j.Marker&&ne.getLatLng){const te=ne.getLatLng(),ce=V.find(({htmlLat:he,htmlLng:ve})=>Math.abs(he-te.lat)<=q&&Math.abs(ve-te.lng)<=q);if(ce){const{device:he}=ce,ve=dve(ne),ae=ve.match(/ID:\s*([A-Za-z0-9_-]+)/i),fe=ve.match(/<b>Poste:\s*([^<]+)<\/b>/i)||ve.match(/Poste:\s*([^\n<|]+)/i);if(ae&&K.add(ae[1].trim()),fe){const Me=fe[1].trim();G.add(Me),G.add(xc(Me)),X.add(Me),X.add(xc(Me)),he.asset_name&&(Y.set(xc(Me),he.asset_name),Y.set(Me,he.asset_name))}const we=T(he);ne.getTooltip&&ne.getTooltip()&&ne.unbindTooltip(),ne.bindTooltip(`<div style="padding:6px;font-family:Inter,Arial,sans-serif;min-width:180px;">
168                <b style="color:#1E3A8A;font-size:13px;display:block;margin-bottom:4px;">
169                  ${he.asset_name||"Named Asset"}
170                </b>
171                <span style="font-size:11px;color:#4B5563;display:block;margin-bottom:2px;">
172                  <strong>Type:</strong> ${he.asset_type||"Transformer"}
173                </span>
174                <span style="font-size:11px;color:#4B5563;display:block;margin-bottom:2px;">
175                  <strong>Total Consumption:</strong> ${VDt(we)}
176                </span>
177                <span style="font-size:10px;color:#9CA3AF;display:block;margin-top:4px;border-top:1px solid #E5E7EB;padding-top:4px;">
178                  ID: ${he.id}
179                </span>
180              </div>`,{sticky:!0})}else W.removeLayer(ne)}}),W.eachLayer(ne=>{if(!(ne instanceof j.Marker)&&(ne instanceof j.CircleMarker||ne instanceof j.Polyline)){const te=dve(ne);if(!te){W.removeLayer(ne);return}const ce=xc(te);let he=!1;K.forEach(ve=>{ve&&te.includes(ve)&&(he=!0)}),G.forEach(ve=>{ve&&(te.includes(ve)||ce.includes(ve))&&(he=!0)}),he||W.removeLayer(ne)}}),R(Q,X,Y),o(!1)}catch(Q){console.error("Error modifying map iframe properties:",Q),o(!1)}},R=(F,Q,j)=>{try{const W=F.document;let V=W.getElementById("legend");if(V||(V=Array.from(W.querySelectorAll("div")).find(q=>q.style?.position==="fixed"||q.getAttribute("style")?.includes("position: fixed")||q.getAttribute("style")?.includes("position:fixed"))),!V)return;let Y=0;V.querySelectorAll("div[style*='display:flex'], div[style*='display: flex']").forEach(X=>{const q=X.querySelector("span");if(!q)return;const ne=q.textContent?.trim()??"",te=ne.replace(/\s*\([^)]*\)/g,"").trim();if(ne.includes("Ligne HTA")||ne.includes("Ligne BT")||ne.includes("Branchement")||ne.includes("Transformateur")||ne.includes("Interrupteur")||ne.includes("Parafoudre")||ne.includes("Compteur")||ne.includes("Sous-station")){X.style.display="flex";return}const he=xc(te),ve=xc(ne);if(Q.has(te)||Q.has(he)||Q.has(ne)||Q.has(ve)){Y++;const fe=j.get(he)||j.get(te)||j.get(ve)||j.get(ne);if(fe){const we=ne.match(/\([^)]+\)/),Me=we?we[0]:"";q.innerHTML=`${fe} ${Me?`<span style="color:#999;font-size:8px">${Me}</span>`:""}`}X.style.display="flex"}else X.style.display="none"});const K=Array.from(V.querySelectorAll("div")).find(X=>X.textContent?.includes("Postes"));K&&(K.textContent=`Postes (${Y}) :`)}catch(W){console.warn("[NetworkMap] Legend filtering or text replacement failed:",W)}},I=!f&&!p;H.useEffect(()=>{s&&I&&y.length>0&&!m&&B()},[s,I,y,x,m]);const N=!m&&(f||p||a||!s);return E.jsxs(nr,{className:"w-full h-full flex-1",children:[E.jsx("div",{className:"w-full flex flex-col sm:flex-row gap-2",children:E.jsxs("h3",{className:"heading-regular self-start mb-5 flex items-center gap-2",children:[n("map.customer_maping"),!N&&!m?E.jsx("span",{className:"bg-green-500 text-white px-2 py-0.5 rounded-lg text-xs",children:n("label.active")||"Live Grid"}):E.jsx("span",{className:"bg-primary-yellow px-1 py-0.2 rounded-lg text-sm",children:n("label.in_progress")})]})}),E.jsx("div",{className:"relative w-full rounded-lg overflow-hidden border border-gray-200 shadow-sm flex flex-col justify-center items-center",style:{height:"500px"},children:m?E.jsx(Ci,{message:"Failed to load map network data from server."}):E.jsxs(E.Fragment,{children:[N&&E.jsx("div",{className:"absolute inset-0 z-20 flex justify-center items-center bg-gray-50",children:E.jsxs("div",{className:"flex flex-col items-center gap-3",children:[E.jsx(mn,{}),E.jsx("span",{className:"text-sm text-gray-500 font-medium animate-pulse",children:"Syncing grid infrastru
180cture with your assets..."})]})}),I&&E.jsx("iframe",{ref:i,src:"/map/customer_map.html",title:"Electrical Grid Engine",className:"w-full h-full border-none m-0 p-0",style:{opacity:N?0:1,transition:"opacity 0.25s ease-in-out"},onLoad:()=>l(!0)})]})})]})}function yRe({company_id:t,isDummy:e=!1}){const{t:r}=Vt();return E.jsxs("div",{className:"flex flex-wrap mt-4 min-h-screen overflow-y-hidden",style:{gap:qr},children:[E.jsxs("div",{className:"flex flex-col lg:flex-row  w-full",style:{gap:qr},children:[E.jsx(lRe,{company_id:t,isDummy:e}),E.jsx("div",{className:"flex-1",children:E.jsx(gDt,{company_id:t,isDummy:e})})]}),E.jsx("div",{className:"flex flex-col  justify-center w-full min-h-115",children:E.jsx(mRe,{company_id:t,isDummy:e})}),!e&&E.jsx("div",{className:"flex flex-col  justify-center w-full min-h-115",children:E.jsx(KDt,{company_id:t})}),E.jsx("div",{className:"flex justify-center w-full min-h-115 ",style:{gap:qr},children:E.jsx(cRe,{params:{company_id:t},route:"/operations/profile-chart",queryKey:["/operations","fetchLoadProfile",t],title:r("chart.load_profile"),isDummy:e,dummyData:gbe})}),E.jsxs("div",{className:"flex flex-col lg:flex-row w-full lg:h-105",style:{gap:qr},children:[E.jsx("div",{className:"lg:max-w-md w-full h-full",children:E.jsx(qee,{company_id:t,isDummy:e})}),E.jsx(Jee,{company_id:t,isDummy:e})]}),E.jsxs("div",{className:"flex flex-col xl:flex-row w-full",style:{gap:qr},children:[E.jsx("div",{className:"flex-1 min-w-0",children:E.jsx(wDt,{company_id:t,isDummy:e})}),E.jsx("div",{className:"flex-1 min-w-0",children:E.jsx(_Dt,{company_id:t,isDummy:e})})]})]})}function hve({isDummy:t=!1}){const{t:e}=Vt(),{id:r}=du(),{user:n}=rc(),i=t?HL:r,a=H.useMemo(()=>t?E7e:n?.company?.power_assets??[],[n,t]),o=a.length>1,s=H.useMemo(()=>{const f=a.map(d=>({label:d.charAt(0).toUpperCase()+d.slice(1),value:d}));return o?[{label:"General Overview",value:"general-overview"},...f]:f},[a,o]),[l,u]=H.useState("");H.useEffect(()=>{s.length&&u(o?"general-overview":s[0].value)},[s,o]);const c=f=>
180{switch(f){case"general-overview":return E.jsx(hDt,{company_id:i,isDummy:t});case"grid":return E.jsx(yRe,{company_id:i,isDummy:t});default:return null}};return s.length?E.jsxs("div",{className:"overflow-y-visible",children:[E.jsxs("h1",{className:"heading-2x-large mb-6",children:[e("greetings.welcome"),", ",n?.first_name,"!"]}),E.jsx(Kat,{tabs:s,defaultActiveId:l,onChange:u,className:"max-w-fit overflow-x-auto scroll-smooth hide-scrollbar"}),E.jsx("div",{className:"mt-6 overflow-y-auto min-h-full",children:c(l)})]}):null}function GQ({link:t,showBackText:e=!0}){const r=yh();return E.jsxs("div",{onClick:()=>r(t||-1),className:"flex cursor-pointer text-sm font-semibold items-center justify-center  gap-2 ",children:[E.jsx("span",{className:"rounded-full p-1 border-primary-border border hover:bg-primary-border",children:E.jsx(pDt,{})}),e&&E.jsx("span",{children:"Back"})]})}function WDt({data:t,fields:e,isLoading:r,error:n,emptyStateText:i="No data available",title:a,wrapperClassName:o,wrapperTestId:s}){return r?E.jsx(nr,{className:"shadow-none px-5 py-7.5 min-h-100!",children:E.jsx(Yye,{})}):n?E.jsx(nr,{className:"shadow-none place-items-center flex items-center justify-center min-h-100!",children:E.jsx(Ci,{message:"Error fetching data"})}):t?E.jsxs(nr,{"data-testid":s,className:`shadow-none p-2 ${o??""}`,children:[a&&E.jsx("div",{className:"text-lg font-semibold mb-4 px-4",children:a}),E.jsx(G$,{className:"min-w-0",children:E.jsx(K$,{children:e.map((l,u)=>{const c=t[l.key];return l.hideIfEmpty&&(c==null||c==="")?null:E.jsxs(v4,{className:"border-b border-gray-200 last:border-0",children:[E.jsx(g4,{className:"w-[40%] px-3 py-3 text-sm font-medium text-gray-500 bg-gray-50 wrap-break-word",children:l.label}),E.jsx(g4,{className:"px-3 py-3 text-sm text-black-base wrap-break-word",children:l.render?l.render(c,t):String(c??"-")})]},u)})})})]}):E.jsx(nr,{className:"shadow-none place-items-center flex items-center justify-center min-h-100!",children:E.jsx(Us,{message:i})})}function wRe({isLoading:t,error:e,data:r,site_status:n}){const{t:i}=Vt(),a=r?.[0],o=a?.device_category===an.SUBSTATION_FEEDER,s={label:i("common.status"),key:"status",render:()=>{const f=!!n?.online,d=i(f?"common.online":"common.offline");return E.jsx("span",{style:{fontWeight:"500",backgroundColor:f?Bt.GREEN:Bt.PRIMARY_LIGHT,padding:"4px 8px",borderRadius:6,display:"inline-block",color:f?"#ffffff"
180:Bt.PRIMARY_DARK_BLUE},children:d})}},l={label:i("site_details.asset_type"),key:"asset_type",render:f=>r5(f)||"N/A"},u={label:i("site_details.asset_coordinate"),key:"latitude",render:(f,d)=>`${d?.latitude?.toFixed(4)??"N/A"}, ${d?.longitude?.toFixed(4)??"N/A"}`},c=o?[{label:i("site_details.asset_name"),key:"asset_name"},{label:i("site_details.substation_name"),key:"substation_name"},{label:i("site_details.feeder_name"),key:"feeder_name"},{label:i("site_details.feeder_voltage_level"),key:"feeder_voltage_level",render:f=>f||f===0?`${f} kV`:"N/A"},l,u,s]:[{label:i("site_details.asset_name"),key:"asset_name"},l,u,{label:i("site_details.asset_capacity"),key:"asset_capacity",render:f=>`${f??0} kVA`},{label:i("site_details.year"),key:"transformer_year"},{label:i("site_details.location"),key:"address_of_tfo"},s];return E.jsx(nr,{className:"w-full flex flex-col h-full",children:E.jsxs("div",{className:"w-full flex flex-col gap-3",children:[E.jsx("h3",{className:"heading-regular self-start",children:i("site_details.title")}),E.jsx(WDt,{isLoading:t,error:e,emptyStateText:i("feed_backs.no_device_data"),data:a,fields:c})]})})}const YDt=60*1e3,$Dt=({site_id:t,isDummy:e=!1,className:r=""})=>{const{FEEDBACK_MESSAGES:n,t:i}=Vt(),a=H.useRef(null),o=H.useRef(null),s=vx(),l=e&&tE(t),[u,c]=H.useState(0);H.useEffect(()=>{if(!e)return;const g=setInterval(()=>c(m=>m+1),YDt);return()=>clearInterval(g)},[e]);const f=H.useMemo(()=>U7e(l),[l,u]),{data:d,isLoading:A,error:p}=hr(["/operations","fetchTransformerLoadRate",t],`/operations/site/transformer-load/${t}`,{},{...ri},{isDummy:e,data:f});return H.useEffect(()=>{if(a.current&&!o.current&&(o.current=bBe(a.current)),o.current&&d){const m=d?.load||0,y={...qf({chartName:i("chart.transformer_load_rate_label"),time:d?.time&&Ah(d?.time)||"",top:"5px",right:"5px"}),grid:{top:10,bottom:10,left:10,right:10},series:[{type:"gauge",min:0,max:150,radius:"100%",center:["50%","65%"],startAngle:200,endAngle:-20,axisLine:{lineStyle:{width:40,color:[[.2,"#3b82f6"],[.33,"#16a34a"],[.53,"#86efac"],[.67,"#eab308"],[.8,"#f97316"],[1,"#dc2626"]]}},pointer:{itemStyle:{color:"auto"},width:8,length:"60%"},axisTick:{distance:-45,length:12,lineStyle:{color:"#fff",width:2},splitNumber:5},splitLine:{distance:-45,length:40,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:50,fontSize:16,formatter:"{value}"},detail:{valueAnimation:!0,formatter:"{value}%",color:"#333",fontSize:32,fontWeight:"bold",offsetCenter:[0,"40%"]},title:{fontSize:14,offsetCenter:[0,"80%"]},data:[{value:m,name:""}]}]};o.current.setOption(y)}if(!a.current)return;const g=new ResizeObserver(()=>{o.current&&o.current.resize()});return g.observe(a.current),()=>{g.disconnect()}},[d,i]),A?E.jsxs(nr,{className:`min-h-80! ${r}`,children:[E.jsx("h3",{className:"heading-regular self-start mb-5",children:i("chart.transformer_load_rate_label")}),E.jsx("div",{className:"flex justify-center items-center flex-1",children:E.jsx(mn,{})})]}):p?E.jsxs(nr,{className:`min-h-80! ${r}`,children:[E.jsx("h3",{className:"heading-regular self-start mb-5",children:i("chart.transformer_load_rate_label")}),E.jsx(Ci,{message:n.ERROR})]}):E.jsxs(nr,{className:`w-full flex-1! flex! items-center! justify-center! ${r}`,children:[E.jsx("h3",{className:"heading-regular self-start mb-5",children:i("chart.transformer_load_rate_label")}),E.jsx("div",{ref:a,className:"w-full h-full flex-1 min-h-80! "}),E.jsx("p",{className:"text-xs text-center text-primary-dark-blue light-yellow-gradient py-1 px-2 rounded-lg",children:d?.time&&Ah(d?.time,s)})]})},Ave=[{id:"this_week",period:"week",offset:0},{id:"last_week",period:"week",offset:1},{id:"this_month",period:"month",offset:0},{id:"last_month",period:"month",offset:1}],ZDt=[{key:"load",max:25},{key:"power_cut",max:25},{key:"current_unbalance",max:15},{key:"neutral_current",max:15},{key:"thd",max:10},{key:"power_factor",max:10}],HM=t=>t>=.9?"#16a34a":t>=.75?"#65a30d":t>=.6?Bt.YELLOW:Bt.RED,XDt={A:HM(.9),B:HM(.75),C:HM(.6),D:HM(0)},qDt=t=>{const e=Math.round(t);if(e<60)return`${e} min`;const r=e%60;return r?`${Math.floor(e/60)} h ${r} min`:`${e/60} h`},JDt=t=>String(Math.round(t/1440*10)/10),Kd=176,JY=14,e$=(Kd-JY)/2,pve=2*Math.PI*e$,eMt=({site_id:t,isDummy:e=!1,isSubstation:r=!1,className:n=""})=>{const{FEEDBACK_MESSAGES:i,t:a}=Vt(),{i18n:o}=d$(),[s,l]=H.useState("this_month"),u=Ave.find(B=>B.id===s),{data:c,isLoading:f,error:d}=hr(["/site","fetchSiteGrade",t,u.period,u.offset],`/operations/site/grade/${t}`,{period:u.period,offset:u.offset},{...ri,enabled:!!t&&!r},{isDummy:e,data:V7e(tE(t))}),A=(B,R=!0)=>new Date(`${B.slice(0,10)}T00:00:00`).toLocaleDateString(o.language,{...R?{weekday:"short"}:{},day:"numeric",month:"short"}),p=E.jsxs("div",{className:"w-full flex items-start justify-between gap-2 mb-4",children:[E.jsx("h3",{className:"heading-regular",children:a("site_grade.title")}),!r&&E.jsx(eE,{trigger:E.jsxs("button",{type:"button","aria-label":a("site_grade.range_label"),className:"group flex shrink-0 items-center justify-between gap-2 rounded-lg border border-primary-border bg-primary-white px-2.5 py-1.5 text-[11px] text-primary-dark-blue cursor-pointer transition-colors hover:bg-primary-clean-water",children:[a(`site_grade.${s}`),E.jsx(X$,{className:"w-3.5 h-3.5 shrink-0 transition-transform duration-200 group-data-[state=open]:rotate-180"})]}),items:Ave.map(B=>({label:a(`site_grade.${B.id}`),value:B.id})),selectedValue:s,onChange:B=>l(B)})]}),g=(B,R)=>E.jsxs(nr,{className:`w-full flex flex-col ${n}`,children:[p,E.jsxs("div",{className:"flex flex-col flex-1 items-center justify-center gap-1 text-center py-6",children:[E.jsx("p",{className:"text-sm font-semibold text-primary-dark-blue/80",children:B}),R&&E.jsx("p",{className:"text-xs text-primary-dark-blue/50",children:R})]})]});if(r)return g(a("site_grade.not_applicable"));if(f)return E.jsxs(nr,{className:`min-h-80! ${n}`,children:[p,E.jsx("div",{className:"flex justify-center items-center flex-1",children:E.jsx(mn,{})})]});if(d||!c)return E.jsxs(nr,{className:`min-h-80! ${n}`,children:[p,E.jsx(Ci,{message:i.ERROR})]});const{window:m,site:y}=c;if(y.status==="not_applicable")return g(a("site_grade.not_applicable"));if(!m||y.status==="no_data")return g(a("site_grade.no_data"),a("site_grade.no_data_hint"));const b=y.status==="graded"&&!!y.grade,x=b?XDt[y.grade]:Bt.BLACK_LIGHTER,T=b?(y.total_score??0)/100:0;return E.jsxs(nr,{className:`w-full flex flex-col ${n}`,dataTestId:"site-grade-card",children:[p,E.jsxs("div",{className:"flex flex-col items-center gap-2 w-full",children:[E.jsxs("p",{className:"text-xs text-center text-primary-dark-blue/70",children:[A(m.start)," – ",A(m.end),E.jsxs("span",{className:"text-primary-dark-blue/50",children:[" · ",m.is_final?a("site_grade.final"):a("site_grade.in_progress",{date:A(m.data_through,!1)})]})]}),E.jsxs("div",{className:"relative shrink-0",style:{width:Kd,height:Kd}
180,children:[E.jsxs("svg",{width:Kd,height:Kd,viewBox:`0 0 ${Kd} ${Kd}`,style:{transform:"rotate(-90deg)"},role:"img","aria-label":`${a("site_grade.title")}: ${b?`${y.grade} (${y.total_score})`:"--"}`,children:[E.jsx("circle",{cx:Kd/2,cy:Kd/2,r:e$,fill:"none",stroke:"var(--color-primary-border, #e5e7eb)",strokeWidth:JY}),E.jsx("circle",{cx:Kd/2,cy:Kd/2,r:e$,fill:"none",stroke:x,strokeWidth:JY,strokeLinecap:"round",strokeDasharray:pve,strokeDashoffset:pve*(1-T),style:{transition:"stroke-dashoffset 700ms ease-out"}})]}),E.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[E.jsx("span",{className:"text-5xl font-bold leading-none",style:{color:x},children:b?y.grade:"--"}),b&&E.jsxs("span",{className:"text-sm font-semibold text-primary-dark-blue/70 mt-1",children:[y.total_score,E.jsx("span",{className:"text-xs font-medium",children:"/100"})]})]})]}),!b&&E.jsx("p",{className:"text-xs text-center text-primary-dark-blue light-yellow-gradient py-1 px-2 rounded-lg",children:a("site_grade.not_graded",{online:JDt(y.online_min??0),days:m.complete_days})}),b&&y.components&&E.jsx("ul",{className:"flex flex-col gap-2 w-full mt-2",children:ZDt.map(({key:B,max:R})=>{const I=y.components[B],N=I/R;return E.jsxs("li",{className:"flex flex-col gap-1",children:[E.jsxs("div",{className:"flex justify-between items-baseline gap-2 text-xs",children:[E.jsxs("span",{className:"text-primary-dark-blue/80 truncate",children:[a(`site_grade.component_${B}`),B==="power_cut"&&E.jsxs("span",{className:"text-primary-dark-blue/50",children:[" · ",qDt(y.outage_min??0)]})]}),E.jsxs("span",{className:"font-semibold shrink-0 tabular-nums",children:[I,E.jsxs("span",{className:"font-normal text-primary-dark-blue/50",children:["/",R]})]})]}),E.jsx("div",{className:"h-1.5 w-full rounded-full bg-primary-border overflow-hidden",children:E.jsx("div",{className:"h-full rounded-full",style:{width:`${Math.max(0,Math.min(N,1))*100}%`,backgroundColor:HM(N),transition:"width 700ms ease-out"}})})]},B)})}),E.jsxs("div",{className:"flex flex-wrap justify-between gap-x-3 gap-y-1 w-full text-[11px] leading-snug text-primary-dark-blue/50 mt-1",children:[E.jsxs("span",{children:[a("site_grade.consumption"),":"," ",(y.kwh??0).toLocaleString(o.language)," kWh"]}),b&&E.jsx("span",{children:a("site_grade.underloaded",{pct:y.pct_underloaded??0})})]})]})]})},tMt=({queryKey:t,route:e,params:r,title:n,isDummy:i=!1,dummyData:a})=>{const[o,s]=H.useState("avg"),{FEEDBACK_MESSAGES:l,t:u}=Vt(),{startDate:c,endDate:f}=Au(),[d,A]=H.useState(null),p=d?.start??c,g=d?.end??f,m=[{label:u("chart.maximum"),value:"max"},{label:u("chart.average"),value:"avg"},{label:u("chart.minimum"),value:"min"}],y={max:u("chart.maximum"),avg:u("chart.average"),min:u("chart.minimum")},{data:b,isLoading:x,error:T,isError:B}=hr([...t,p,g,o],e,{...r,start_date:p,end_date:g,type:o},{...ri},{isDummy:i,data:a}),R=H.useMemo(()=>b?b.dataset:{times:[],red_phase:[],yellow_phase:[],blue_phase:[]},[b]),I=H.useMemo(()=>R.times.length===0?!1:/^\d{4}-\d{2}-\d{2}$/.test(R.times[0]),[R]),N=H.useMemo(()=>R.times.map(G=>{const K=new Date(G);return I?`${K.toLocaleString("default",{month:"short"})} ${K.getDate()}`:`${K.toLocaleString("default",{month:"short"})} ${K.getDate()} ${String(K.getHours()).padStart(2,"0")}:${String(K.getMinutes()).padStart(2,"0")}`}),[R,I]),F=H.useMemo(()=>{if(R.times.length<2)return"unknown";if(I)return"days";const G=new Date(R.times[0]),K=new Date(R.times[1]),X=Math.abs((K.getTime()-G.getTime())/(1e3*60));return X<60?"minutes":X<1440?"hours":"days"},[R,I]),Q=H.useMemo(()=>{const G=N.length;switch(F){case"minutes":return(K,X)=>{if(!X)return!1;const q=X.split(" ");return q.length<3?!1:parseInt(q[2].split(":")[1],10)%30===0};case"hours":return(K,X)=>{if(!X)return!1;const q=X.split(" ");return q.length<3?!1:parseInt(q[2].split(":")[1],10)===0};case"days":return G<=7?0:G<=31?1:G<=90?2:Math.floor(G/30);default:return Math.max(Math.floor(G/30),0)}},[N.length,F]),j=H.useMemo(()=>{const G=[...R.red_phase,...R.yellow_phase,...R.blue_phase],K=Math.max(...G.filter(ne=>!isNaN(ne)&&ne!==null)),X=Math.min(...G.filter(ne=>!isNaN(ne)&&ne!==null)),q={min:200,max:void 0,interval:void 0};return K<=500?(q.min=200,q.max=300,q.interval=20):K>500&&(q.min=Math.ceil(X-50),q.max=Math.ceil(K+50),q.interval=Math.ceil((q.max-q.min)/5)),q},[R]),W=H.useMemo(()=>
180({...qf({chartName:u("chart.voltage_profile_label"),top:"-5px",right:"5px"}),tooltip:{trigger:"axis",formatter:G=>{let K=G[0].name+"<br/>";return G.forEach(X=>{K+=X.seriesName+": "+X.value.toFixed(2)+" V<br/>"}),K}},grid:{top:"15%",left:"3%",right:"3%",bottom:"20%",containLabel:!0},dataZoom:[{type:"slider",show:!0,start:0,end:100,height:30,bottom:4,borderColor:"#ccc",fillerColor:"rgba(124, 135, 142, 0.2)",handleStyle:{color:"#7C878E",borderColor:"#7C878E"}},{type:"inside",start:0,end:100}],xAxis:{type:"category",name:u("chart.time_label"),nameLocation:"middle",nameGap:60,boundaryGap:!1,data:N,axisLabel:{rotate:45,interval:Q,margin:15,formatter:G=>G,width:80,align:"right",overflow:"truncate",showMaxLabel:!0,color:"#333",fontSize:8},axisTick:{alignWithLabel:!0,interval:0}},yAxis:{type:"value",name:u("chart.voltage_profile_label"),nameLocation:"middle",nameGap:40,min:j.min,max:j.max,axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed",color:"#eee"}}},series:[{name:u("chart.phase_a"),type:"line",data:R.red_phase,smooth:!0,lineStyle:{color:Bt.PHASE_A},symbol:"none"},{name:u("chart.phase_b"),type:"line",data:R.yellow_phase,smooth:!0,lineStyle:{color:Bt.PHASE_B},symbol:"none"},{name:u("chart.phase_c"),type:"line",data:R.blue_phase,smooth:!0,lineStyle:{color:Bt.PHASE_C},symbol:"none"}]}),[R,N,Q,j,u]),V=x,Y=H.useMemo(()=>{if(!p||!g)return!1;const G=new Date(p);return(new Date(g).getTime()-G.getTime())/(1e3*60*60*24)>2},[p,g]);return E.jsxs(nr,{className:ah("w-full flex flex-col flex-1 min-h-115!"),children:[E.jsx(Dg,{title:n||u("chart.voltage_profile_label"),startDate:p,endDate:g,onRangeSelect:(G,K)=>A({start:G,end:K}),showDateButton:!B,disabled:V}),E.jsxs("div",{className:"relative flex flex-col sm:flex-row justify-center w-full py-2",children:[E.jsx("div",{className:"flex gap-2 sm:justify-center flex-wrap",children:[{text:u("chart.phase_a"),color:Bt.PHASE_A},{text:u("chart.phase_b"),color:Bt.PHASE_B},{text:u("chart.phase_c"),color:Bt.PHASE_C}].map((G,K)=>E.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-primary-blackLighter2 px-3 py-2",children:[E.jsx("span",{className:"w-4 h-4 rounded-md",style:{backgroundColor:G.color}}),E.jsx("span",{className:"text-[11px]",children:G.text})]},K))}),Y&&E.jsx("div",{className:"sm:absolute sm:right-0 sm:top-1/2 sm:-translate-y-1/2 flex sm:justify-center mt-2 sm:mt-0",children:E.jsx(eE,{trigger:E.jsx("span",{className:"flex items-center border border-primary-border p-2 rounded-lg gap-1 justify-center cursor-pointer text-primary-dark-blue text-[11px]",children:y[o]}),items:m,onChange:G=>s(G),dropdownMenuTriggerClassName:"bg-primary-dark-blue/80! text-primary-white!"})})]}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative min-h-50",children:V?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):T?E.jsx(Ci,{message:l.ERROR}):R.times.length===0?E.jsx(Us,{message:l.NO_DATA}):E.jsx("div",{className:"h-full w-full",children:E.jsx(Sl,{option:W,notMerge:!0,lazyUpdate:!0,style:{height:"100%",width:"100%"}})})})]})},rMt=({queryKey:t,route:e,params:r,title:n,isDummy:i=!1,dummyData:a})=>{const[o,s]=H.useState("avg"),{FEEDBACK_MESSAGES:l,t:u}=Vt(),{startDate:c,endDate:f}=Au(),[d,A]=H.useState(null),p=d?.start??c,g=d?.end??f,m=[{label:u("chart.maximum"),value:"max"},{label:u("chart.average"),value:"avg"},{label:u("chart.minimum"),value:"min"}],y={max:u("chart.maximum"),avg:u("chart.average"),min:u("chart.minimum")},{data:b,isLoading:x,error:T,isError:B}=hr([...t,p,g,o],e,{...r,start_date:p,end_date:g,type:o},{...ri},{isDummy:i,data:a}),R=H.useMemo(()=>b?b.dataset:{times:[],red_phase:[],yellow_phase:[],blue_phase:[],neutral_phase:[]},[b]),I=H.useMemo(()=>R.times.length===0?!1:/^\d{4}-\d{2}-\d{2}$/.test(R.times[0]),[R]),N=H.useMemo(()=>R.times.map(Y=>{const G=new Date(Y);return I?`${G.toLocaleString("default",{month:"short"})} ${G.getDate()}`:`${G.toLocaleString("default",{month:"short"})} ${G.getDate()} ${String(G.getHours()).padStart(2,"0")}:${String(G.getMinutes()).padStart(2,"0")}`}),[R,I]),F=H.useMemo(()=>
180{if(R.times.length<2)return"unknown";if(I)return"days";const Y=new Date(R.times[0]),G=new Date(R.times[1]),K=Math.abs((G.getTime()-Y.getTime())/(1e3*60));return K<60?"minutes":K<1440?"hours":"days"},[R,I]),Q=H.useMemo(()=>{const Y=N.length;switch(F){case"minutes":return(G,K)=>{if(!K)return!1;const X=K.split(" ")[2]?.split(":");return X&&parseInt(X[1],10)%30===0};case"hours":return(G,K)=>{const X=K.split(" ")[2]?.split(":");return X&&parseInt(X[1],10)===0};case"days":return Y<=7?0:Math.floor(Y/30);default:return Math.max(Math.floor(Y/30),0)}},[N.length,F]),j=H.useMemo(()=>({...qf({chartName:u("chart.current_profile_label"),right:"-5px",top:"5px"}),tooltip:{trigger:"axis",formatter:Y=>{let G=Y[0].name+"<br/>";return Y.forEach(K=>{G+=K.seriesName+": "+K.value.toFixed(2)+" Amps<br/>"}),G}},grid:{top:"15%",left:"3%",right:"3%",bottom:"20%",containLabel:!0},dataZoom:[{type:"slider",show:!0,start:0,end:100,height:30,bottom:4,borderColor:"#ccc",fillerColor:"rgba(124, 135, 142, 0.2)",handleStyle:{color:"#7C878E",borderColor:"#7C878E"}},{type:"inside",start:0,end:100}],xAxis:{type:"category",name:u("chart.time_label"),nameLocation:"middle",nameGap:60,boundaryGap:!1,data:N,axisLabel:{rotate:45,interval:Q,margin:15,formatter:Y=>Y,width:80,align:"right",overflow:"truncate",showMaxLabel:!0,color:"#333",fontSize:8},axisTick:{alignWithLabel:!0,interval:0}},yAxis:{type:"value",name:u("chart.current_profile_label"),nameLocation:"middle",nameGap:40,axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed",color:"#eee"}}},series:[{name:u("chart.phase_a"),type:"line",data:R.red_phase,smooth:!0,lineStyle:{color:Bt.PHASE_A},symbol:"none"},{name:u("chart.phase_b"),type:"line",data:R.yellow_phase,smooth:!0,lineStyle:{color:Bt.PHASE_B},symbol:"none"},{name:u("chart.phase_c"),type:"line",data:R.blue_phase,smooth:!0,lineStyle:{color:Bt.PHASE_C},symbol:"none"},{name:u("chart.neutral_phase"),type:"line",data:R.neutral_phase,smooth:!0,lineStyle:{color:Bt.NEUTRAL},symbol:"none"}]}),[R,N,Q,u]),W=x,V=H.useMemo(()=>{if(!p||!g)return!1;const Y=new Date(p);return(new Date(g).getTime()-Y.getTime())/(1e3*60*60*24)>2},[p,g]);return E.jsxs(nr,{className:ah("w-full flex flex-col flex-1 min-h-115!"),children:[E.jsx(Dg,{title:n||u("chart.current_profile_label"),startDate:p,endDate:g,onRangeSelect:(Y,G)=>A({start:Y,end:G}),showDateButton:!B,disabled:x}),E.jsxs("div",{className:"relative flex flex-col sm:flex-row justify-center w-full py-2",children:[E.jsx("div",{className:"flex gap-2 sm:justify-center flex-wrap",children:[{text:u("chart.phase_a"),color:Bt.PHASE_A},{text:u("chart.phase_b"),color:Bt.PHASE_B},{text:u("chart.phase_c"),color:Bt.PHASE_C},{text:u("chart.neutral_phase"),color:Bt.NEUTRAL}].map((Y,G)=>E.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-primary-blackLighter2 px-3 py-2",children:[E.jsx("span",{className:"w-4 h-4 rounded-md",style:{backgroundColor:Y.color}}),E.jsx("span",{className:"text-[11px]",children:Y.text})]},G))}),V&&E.jsx("div",{className:"sm:absolute sm:right-0 sm:top-1/2 sm:-translate-y-1/2 flex sm:justify-center mt-2 sm:mt-0",children:E.jsx(eE,{trigger:E.jsx("span",{className:"flex items-center border border-primary-border p-2 rounded-lg gap-1 justify-center cursor-pointer text-primary-dark-blue text-[11px]",children:y[o]}),items:m,onChange:Y=>s(Y),dropdownMenuTriggerClassName:"bg-primary-dark-blue/80! text-primary-white!"})})]}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative min-h-50",children:W?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):T?T.response?.data?.detail?E.jsx(hu,{message:l.NO_DEVICE}):E.jsx(Ci,{message:l.ERROR}):R.times.length===0?E.jsx(Us,{message:l.NO_DATA}):E.jsx("div",{className:"h-full w-full",children:E.jsx(Sl,{option:j,notMerge:!0,lazyUpdate:!0,style:{height:"100%",width:"100%"}})})})]})};function _Re({title:t,time:e,isLoading:r,error:n,categories:i}){const{FEEDBACK_MESSAGES:a,t:o}=Vt(),s=i.reduce((f,d)=>f+d.value,0),l=i.length>0&&s===0,u=H.useMemo(()=>!i?.length||s===0?{}
180:{...qf({chartName:t,top:"0px",right:"5px"}),grid:{top:20,bottom:20,left:10,right:80,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:f=>{const d=f[0];return`${d.name}<br/>${d.value}`}},xAxis:{type:"value",max:"dataMax",splitLine:{show:!1}},yAxis:{type:"category",inverse:!0,data:i.map(f=>f.name),axisLabel:{fontWeight:400,fontSize:12,formatter:(f,d)=>{const A=i[d];return`${QFe(A.name,o)}`}}},series:[{type:"bar",data:i.map(f=>({value:f.value,itemStyle:{color:f.colorCode}})),label:{show:!0,position:"right",distance:10,fontSize:12,valueAnimation:!0,formatter:f=>{const d=i[f.dataIndex];return`${d.value}(${d.unit})`},fontWeight:600},barWidth:22,borderRadius:[0,8,8,0]}],animationDuration:0,animationDurationUpdate:1200,animationEasing:"linear",animationEasingUpdate:"linear"},[i,s,t,o]),c=H.useMemo(()=>{const f=new Set;return i.filter(d=>d.thresholdType&&!f.has(d.thresholdType)&&f.add(d.thresholdType)).map(d=>({type:d.thresholdType,color:d.colorCode,threshold:d.threshold}))},[i]);return E.jsxs("div",{className:"w-full flex flex-col h-full",children:[E.jsx(ZI,{title:t,time:e}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative overflow-hidden ",children:r?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(mn,{})}):n?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(Ci,{message:a.ERROR})}):l?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(hu,{})}):E.jsxs("div",{className:"flex-1 flex flex-col h-full w-full ",children:[c.length>0&&E.jsx("div",{className:"flex items-center gap-3 flex-wrap pt-1",children:c.map(f=>E.jsxs("div",{className:"flex items-center justify-center gap-1.5 w-full",children:[E.jsx("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:f.color}}),E.jsxs("span",{className:"text-xs font-medium capitalize",style:{color:f.color},children:[f.type," threshold of ",f.threshold?.value,f.threshold?.unit??""," exceeded"]})]},f.type))}),E.jsx("div",{className:"flex-3 w-full relative  min-h-80 max-h-80",children:E.jsx(Sl,{option:u,style:{height:"100%",width:"100%"}})})]})})]})}function nMt({site_id:t,isDummy:e=!1,isSubstation:r=!0}){const{mapResponseToLabelValue:n,t:i}=Vt(),a=e&&tE(t),{data:o,isLoading:s,error:l}=hr(["/site","fetchSiteCurrent",t],`/operations/site/current/${t}`,{},{...ri,enabled:!!t},{isDummy:e,data:H7e(a)}),u=H.useMemo(()=>{if(!o)return[];const c=[i("readings.unknown")];return n(o).filter(d=>!c.includes(d.label)).map(d=>{const A=r?null:XH(d.label,d.value,i);return{name:d.label,value:d.value,colorCode:A?A.color:ZH(d.label,i),unit:"Amps",thresholdType:A?.type??null,threshold:A??null}})},[o,n,i,r]);return E.jsx(nr,{className:"w-full flex flex-col h-full min-h-130",children:E.jsx(_Re,{title:i("chart.current_profile_label"),time:o?.time,isLoading:s,error:l,categories:u})})}function iMt({title:t,value:e,total:r,unit:n="",color:i="#3b82f6",thresholdType:a,threshold:o}){const s=Math.min(e/r*100,100),[l,u]=H.useState(!1);H.useEffect(()=>{if(!a)return;const f=setInterval(()=>u(d=>!d),a==="critical"?600:900);return()=>clearInterval(f)},[a]);const c=a?l?i:a==="critical"?"#FEF2F2":"#FFF7ED":i;return E.jsxs("div",{className:"flex flex-col justify-end h-full w-full",children:[E.jsxs("div",{className:"relative flex-1 w-full flex flex-col items-center justify-end",children:[a&&o&&E.jsxs("div",{className:"flex items-center justify-center gap-1 mb-1",children:[a==="critical"?E.jsx(b7e,{size:13,style:{color:i}}):E.jsx(uRe,{size:13,style:{color:i}}),E.jsxs("span",{className:"text-[10px] font-medium capitalize text-center leading-tight",style:{color:i},children:[a," ≥",o.value,o.unit??""]})]}),E.jsx("div",{className:"w-full rounded-t-lg transition-all duration-300 ease-out max-h-[95%]",style:{height:`${s}%`,backgroundColor:c}}),E.jsx("div",{className:"absolute flex items-center justify-center",children:E.jsxs("p",{className:"text-lg font-semibold",style:{color:a?i:void 0},children:[e,n]})})]}),E.jsx("p",{className:"text-sm text-gray-500 text-center mt-2",children:t})]})}function aMt({title:t,time:e,isLoading:r,error:n,categories:i}){const{FEEDBACK_MESSAGES:a}=Vt(),o=i.reduce((l,u)=>l+u.value,0),s=i.length>0&&o===0;return E.jsxs("div",{className:"w-full flex flex-col h-full",children:[E.jsx(ZI,{title:t,time:e}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative overflow-hidden ",children:r?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(mn,{})}):n?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(Ci,{message:a.ERROR})}):s?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(hu,{})}):E.jsx("div",{className:"flex-1 flex flex-col h-full w-full ",children:E.jsx("div",{className:"grid gap-10 min-h-60",style:{gridTemplateColumns:"repeat(auto-fit, minmax(100px, 1fr))"},children:i.map(l=>E.jsx(iMt,{title:l.name,value:l.value,total:o,color:l.color,unit:l.unit,thresholdType:l.thresholdType,threshold:l.threshold},l.name))})})})]})}function oMt({site_id:t,isDummy:e=!1,isSubstation:r=!0}){const{mapResponseToLabelValue:n,t:i}=Vt(),a=e&&tE(t),{data:o,isLoading:s,error:l}=hr(["/site","fetchSiteHarmonicDistortion",t],`/operations/site/harmonic-distortion/${t}`,{},{...ri,enabled:!!t},{isDummy:e,data:j7e(a)}),u=H.useMemo(()=>
180{if(!o)return[];const c=[i("readings.unknown")];return n(o).filter(d=>!c.includes(d.label)).map(d=>{const A=r?null:XH(d.label,d.value,i);return{name:d.label,value:d.value,color:A?A.color:ZH(d.label,i),thresholdType:A?.type??null,threshold:A??null,unit:"%"}})},[o,n,i,r]);return E.jsx(nr,{className:"w-full flex flex-col h-full min-h-130",children:E.jsx(aMt,{title:i("readings.harmonic_distortion_label"),time:o?.time,isLoading:s,error:l,categories:u})})}const sMt=({title:t,value:e,color:r,unit:n})=>{const{translatedTitles:i,formatStatValue:a}=Vt(),o=VT(t,i),s=a({value:e,type:o,currency:o==="currency"?"₦":void 0,label:t});return E.jsx("div",{className:`
181        rounded-2xl p-6 shadow-lg 
182        transition-all duration-300 ease-in-out
183        hover:shadow-xl hover:scale-102
184        relative overflow-hidden
185      `,style:{backgroundColor:r},children:E.jsxs("div",{className:"relative z-10 flex flex-col gap-4",children:[E.jsx("span",{className:"font-medium tracking-wide",children:t}),E.jsxs("div",{className:"",children:[E.jsx("span",{className:"text-xl font-bold",children:s.main}),E.jsx("span",{className:"ml-1 text-sm text-primary-dark-blue/70 font-medium",children:n?`(${n})`:""})]})]})})};function lMt({site_id:t,isDummy:e=!1}){const{mapResponseToLabelValue:r,t:n,FEEDBACK_MESSAGES:i}=Vt(),{startDate:a,endDate:o}=Au(),[s,l]=H.useState(null),u=s?.start??a,c=s?.end??o,f=e&&!!t&&tE(t),{data:d,isLoading:A,error:p}=hr(["/site","fetchSiteOtherKPI",t,u,c],`/operations/site/other-kpi/${t}`,{start_date:u,end_date:c},{...ri,enabled:!!t},{isDummy:e,data:z7e(f)}),g=r(d);return E.jsxs(nr,{className:ra("w-full flex flex-col flex-1"),children:[E.jsx(Dg,{title:n("group.others"),startDate:u,endDate:c,onRangeSelect:(m,y)=>l({start:m,end:y}),showDateButton:!p&&!!t,disabled:A}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative p-0! overflow-y-visible min-h-50",children:A?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):p?p.response?.data?.detail?E.jsx(hu,{message:i.NO_DEVICE}):E.jsx(Ci,{message:i.ERROR}):g?.length?E.jsx("div",{className:"grid xs:grid-cols-2 gap-4",children:g.map((m,y)=>{const b=Cme(m?.label,n,Number(m?.value));return E.jsx("div",{className:"",children:E.jsx(sMt,{unit:b,title:m.label,value:m.value,color:ZH(m.label,n)})},y)})}):E.jsx(Us,{message:i.NO_DATA})})]})}function uMt({site_id:t,isDummy:e=!1,isSubstation:r=!0}){const{mapResponseToLabelValue:n,t:i}=Vt(),a=e&&tE(t),{data:o,isLoading:s,error:l}=hr(["/site","fetchSiteVoltage",t],`/operations/site/voltage/${t}`,{},{...ri,enabled:!!t},{isDummy:e,data:Q7e(a)}),u=H.useMemo(()=>{if(!o)return[];const c=[i("readings.unknown")];return n(o).filter(d=>!c.includes(d.label)).map(d=>{const A=r?null:XH(d.label,d.value,i);return{name:d.label,value:d.value,colorCode:A?A.color:ZH(d.label,i),unit:"V",thresholdType:A?.type??null,threshold:A??null}})},[o,n,i,r]);return E.jsx(nr,{className:"w-full flex flex-col h-full min-h-130",children:E.jsx(_Re,{title:i("chart.voltage_profile_label"),time:o?.time,isLoading:s,error:l,categories:u})})}const cMt=({queryKey:t,route:e,params:r={},title:n="",className:i,isDummy:a=!1,dummyData:o})=>{const{FEEDBACK_MESSAGES:s,t:l}=Vt(),{startDate:u,endDate:c}=Au(),[f,d]=H.useState(null),A=f?.start??u,p=f?.end??c,g=H.useMemo(()=>typeof o=="function"?o(A,p):o,[o,A,p]),{data:m,isLoading:y,error:b,isError:x}=hr([...t,A,p],e,{...r,start_date:A,end_date:p},{...ri},{isDummy:a,data:g}),{ApparentPowerData:T,isAggregatedData:B}=H.useMemo(()=>{if(!m)return{ApparentPowerData:[],isAggregatedData:!1};const W=m.dataset;if(Array.isArray(W)&&W.length>0){const V=W[0];if(typeof V=="object"&&V!==null&&"timestamp"in V)return{ApparentPowerData:W,isAggregatedData:!0};if(Array.isArray(V))return{ApparentPowerData:W,isAggregatedData:!1}}return{ApparentPowerData:[],isAggregatedData:!1}},[m]),R=H.useMemo(()=>{if(T.length===0)return!1;const W=B?T[0].timestamp:T[0][0];return/^\d{4}-\d{2}-\d{2}$/.test(W)},[T,B]),I=H.useMemo(()=>B?T.map(W=>{const V=new Date(W.timestamp);let Y;return R?Y=`${V.toLocaleString("default",{month:"short"})} ${V.getDate()}
185`:Y=`${V.toLocaleString("default",{month:"short"})} ${V.getDate()} ${String(V.getHours()).padStart(2,"0")}:${String(V.getMinutes()).padStart(2,"0")}`,[Y,W.avg,W.min,W.max]}):T.map(W=>{const V=W[0],Y=W[1],G=new Date(V);let K;return R?K=`${G.toLocaleString("default",{month:"short"})} ${G.getDate()}`:K=`${G.toLocaleString("default",{month:"short"})} ${G.getDate()} ${String(G.getHours()).padStart(2,"0")}:${String(G.getMinutes()).padStart(2,"0")}`,[K,Y]}),[T,R,B]),N=H.useMemo(()=>{if(T.length<2)return"unknown";if(R)return"days";const W=B?T[0].timestamp:T[0][0],V=B?T[1].timestamp:T[1][0],Y=new Date(W),G=new Date(V),K=Math.abs((G.getTime()-Y.getTime())/(1e3*60));return K<60?"minutes":K<1440?"hours":"days"},[T,R,B]),F=H.useMemo(()=>{const W=I.length;switch(N){case"minutes":return(V,Y)=>{if(!Y)return!1;const G=Y.split(" ");if(G.length<3)return!1;const K=G[2].split(":");return K.length<2?!1:parseInt(K[1],10)%30===0};case"hours":return(V,Y)=>{if(!Y)return!1;const G=Y.split(" ");if(G.length<3)return!1;const K=G[2].split(":");return K.length<2?!1:parseInt(K[1],10)===0};case"days":return W<=7?0:W<=31?1:W<=90?2:Math.floor(W/30);default:return Math.max(Math.floor(W/30),0)}},[I.length,N]),Q=H.useMemo(()=>B?{...qf({chartName:l("chart.apparent_power_chart_label"),top:"2px",right:"2px"}),grid:{left:"60px",right:"50px",bottom:"80px",top:"40px",containLabel:!0},dataset:{source:[["time","average","minimum","maximum"],...I]},tooltip:{trigger:"axis",formatter:W=>{const V=W[0],Y=W[1],G=W[2];return`${V.name}<br/>
186                    ${l("chart.averaged")}: ${V.value[1].toFixed(2)} kVA<br/>
187                    ${l("chart.minimum")}: ${Y.value[2].toFixed(2)} kVA<br/>
188                    ${l("chart.maximum")}: ${G.value[3].toFixed(2)} kVA`}},dataZoom:[{type:"slider",show:!0,start:0,end:100,height:30,bottom:5,borderColor:"#ccc",fillerColor:"rgba(124, 135, 142, 0.2)",handleStyle:{color:"#7C878E",borderColor:"#7C878E"}},{type:"inside",start:0,end:100}],xAxis:{type:"category",name:"Time",nameLocation:"middle",nameGap:60,boundaryGap:!1,axisLabel:{rotate:45,interval:F,margin:5,formatter:W=>W,align:"right",overflow:"truncate",showMaxLabel:!0,color:"#333",fontSize:8},axisTick:{alignWithLabel:!0,interval:0}},yAxis:{axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},type:"value",name:"Apparent Power (kVA)",nameLocation:"middle",nameGap:50,min:0,splitLine:{lineStyle:{type:"dashed",color:"#E5E5E5"}}},series:[{name:"Average Power",type:"line",encode:{x:"time",y:"average"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(124, 135, 142, 0.5)"},{offset:1,color:"rgba(124, 135, 142, 0)"}]}},lineStyle:{color:Bt.BLACK,width:2},z:3},{name:"Minimum Power",type:"line",encode:{x:"time",y:"minimum"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(255, 205, 0, 0.5)"},{offset:1,color:"rgba(255, 205, 0, 0)"}]}},lineStyle:{color:Bt.YELLOW,width:2},z:2},{name:"Maximum Power",type:"line",encode:{x:"time",y:"maximum"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(0, 122, 255, 0.5)"},{offset:1,color:"rgba(0, 122, 255, 0)"}]}},lineStyle:{color:"#007AFF",width:2},z:1}]}:{...qf({chartName:l("chart.apparent_power_chart_label"),top:"2px",right:"2px"}),grid:{left:"60px",right:"50px",bottom:"80px",top:"40px",containLabel:!0},dataset:{source:[["time","profile"],...I]},tooltip:{trigger:"axis",formatter:W=>{const V=W[0];return`${V.name}<br/>Apparent Power: ${V.value[1]} kVA`}},dataZoom:[{type:"slider",show:!0,start:0,end:100,height:30,bottom:5,borderColor:"#ccc",fillerColor:"rgba(124, 135, 142, 0.2)",handleStyle:{color:"#7C878E",borderColor:"#7C878E"}},{type:"inside",start:0,end:100}],xAxis:{type:"category",name:l("chart.time_label"),nameLocation:"middle",nameGap:60,boundaryGap:!1,axisLabel:{rotate:45,interval:F,margin:5,formatter:W=>W,width:80,align:"right",overflow:"truncate",showMaxLabel:!0,color:"#333",fontSize:8},axisTick:{alignWithLabel:!0,interval:0}}
188,yAxis:{axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},type:"value",name:l("chart.apparent_power_chart_label"),nameLocation:"middle",nameGap:50,min:0,splitLine:{lineStyle:{type:"dashed",color:"#E5E5E5"}}},series:[{name:"Profile",type:"line",encode:{x:"time",y:"profile"},smooth:!0,symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{scale:!0,focus:"series"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Bt.PRIMARY_DARK_BLUE},{offset:1,color:"#7C878E00"}]}},lineStyle:{color:"#032b44",width:1}}]},[I,F,B,l]),j=[{text:l("chart.average"),color:Bt.BLACK},{text:l("chart.minimum"),color:Bt.YELLOW},{text:l("chart.maximum"),color:Bt.PURPLE}];return E.jsxs(nr,{className:`w-full flex flex-col flex-1 min-h-115! ${i}`,children:[E.jsx(Dg,{title:n,startDate:A,endDate:p,onRangeSelect:(W,V)=>d({start:W,end:V}),showDateButton:!x,disabled:y}),!y&&!b&&T?.length>0&&E.jsx("div",{className:"flex gap-2 justify-between",children:E.jsx("div",{className:"flex-1 flex gap-2 justify-end",children:B&&j.map((W,V)=>E.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-primary-blackLighter2 px-3 py-2",children:[E.jsx("span",{className:"w-4 h-4 rounded-md",style:{backgroundColor:W.color}}),E.jsx("span",{className:"text-[11px]",children:W.text})]},V))})}),E.jsx("div",{className:"flex flex-col flex-1 w-full p-0! h-full",children:y?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):b?b.response?.data?.detail?E.jsx(hu,{message:s.NO_DEVICE}):E.jsx(Ci,{message:s.ERROR}):T.length?E.jsx("div",{className:"h-full w-full",children:E.jsx(Sl,{option:Q,style:{width:"100%",height:"100%"},notMerge:!0,lazyUpdate:!0})}):E.jsx(Us,{message:s.NO_DATA})})]})},fMt=({charts:t,defaultChartId:e})=>{const r=e||t[0]?.id,[n,i]=H.useState(r),a=t.find(l=>l.id===n)||t[0],o=t.map(l=>({label:l.label,value:l.id})),s=t.length>1;return E.jsxs(nr,{className:"relative w-full h-full ",children:[s&&E.jsx("div",{className:"absolute top-8 left-8 z-10",children:E.jsx(eE,{trigger:E.jsxs("button",{className:"text-md font-medium cursor-pointer inline-flex items-center gap-2 rounded-full px-4 py-2  border border-primary-border text-primary-dark-blue bg-white hover:bg-gray-50 transition-colors",children:[a.label,E.jsx(X$,{className:"w-4 h-4"})]}),items:o,onChange:l=>i(l)})}),E.jsx("div",{className:"w-full h-full ",children:a.component})]})},dMt=({url:t,isLoading:e,error:r})=>{const{FEEDBACK_MESSAGES:n,t:i}=Vt();return e?E.jsxs(nr,{className:"min-h-80!",children:[E.jsx("h3",{className:"heading-regular self-start mb-5",children:i("chart.thermal_image")}),E.jsx("div",{className:"flex justify-center items-center flex-1",children:E.jsx(mn,{})})]}):r?E.jsxs(nr,{className:"min-h-80!",children:[E.jsx("h3",{className:"heading-regular self-start mb-5",children:i("chart.thermal_image")}),E.jsx(Ci,{message:n.ERROR})]}):E.jsxs(nr,{className:"w-full flex-1! flex! items-center! justify-center!",children:[E.jsx("h3",{className:"heading-regular self-start mb-5",children:i("chart.thermal_image")}),E.jsx("div",{className:"w-full h-full flex-1 min-h-80! rounded-md overflow-hidden ",children:E.jsx("img",{src:t,alt:i("chart.thermal_image"),className:"w-full h-full rounded mt-8"})})]})};function bRe({site_id:t,from_aggregate:e,isDummy:r=!1}){const[n,i]=H.useState(!1),{startDate:a,endDate:o,setToday:s}=Au();H.useEffect(()=>{(async()=>{try{s(),i(!0)}catch(Y){console.error("Error resetting filters:",Y),i(!0)}})()},[s]);const l=vx(),{mapResponseToLabelValue:u,INSTATAENOUS_KPIS:c,t:f,translatedTitles:d}=Vt(),A=Qa.find(V=>V.id===t)??Qa[0],p=A.status==="offline",g=H.useCallback((V,Y)=>gbe(V,Y,p),[p]),m=H.useMemo(()=>G7e(p),[p]),y=H.useMemo(()=>K7e(p),[p]),{data:b,isLoading:x,error:T}=hr(["/site","fetchSite",t],`/operations/site/${t}`,{},{...ri,enabled:n&&!!t},{isDummy:r,data:k7e(p)}),{data:B,isLoading:R,error:I}=hr(["/site","fetchSiteDetail",t],`/device/${t}`,{},{refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:n&&!!t},{isDummy:r,data:A}),N=!!B?.thermal_image_url,F=B?.device_category===an.SUBSTATION_FEEDER,{data:Q}=hr(["/site","fetchSiteStatus",t],`/device-status/${t}`,{},{...ri,enabled:!!t},{isDummy:r,data:A.status==="offline"?F7e:N7e}),j=b?u(b):[],W=H.useCallback((V,Y)=>{if(x)return Array.from({length:Y}).map((K,X)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(Uc,{})},isLoading:!0},`loading-${X}`));if(T)return Array.from({length:4}).map((K,X)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(Uc,{})},isError:!0,isLoading:!1},X));const G=[f("readings.unknown")];return V.map((K,X)=>!G.includes(K.label)&&E.jsx("div",{children:E.jsx(su,{stats:{label:K.label,value:K.value,labelKey:K.label,type:VT(K.label,d),description:c.includes(K.label)?E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:Ah(b.time)}
188):c.includes(K.label)?null:E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:ZR(a,o,l)})},icon:{variant:"blue",icon:K.label.toLowerCase().includes("revenue")?E.jsx(ou,{}):E.jsx(Uc,{})},isError:!1,isLoading:!1,isSubstation:F})},`stat-${X}`))},[x,T,f,d,c,b,a,o,l,F]);return n?E.jsxs("div",{className:"flex flex-col w-full",style:{gap:qr},children:[!e&&E.jsx("div",{children:E.jsxs("div",{className:"flex gap-2 items-center w-full",children:[E.jsx(GQ,{showBackText:!1,link:r?"/dashboard/admin/demo/sites":B?.company_id?`/dashboard/operations/sites/${B?.company_id}`:"#"}),R?E.jsx(qA,{}):I?E.jsx("div",{className:"text-red-500",children:f("feedback_msg.error_fetching")}):E.jsx("span",{className:"text-primary-dark-blue text-xl font-bold ml-2",children:B?.asset_name})]})}),E.jsxs("div",{className:"grid grid-cols-1 2xl:grid-cols-[400px_1fr] w-full items-stretch",style:{gap:qr},children:[E.jsx("div",{className:"max-w-100 h-full",children:E.jsx(wRe,{isLoading:R,data:[B],site_status:Q,error:I})}),E.jsxs("div",{className:"flex flex-col lg:flex-row lg:flex-wrap h-full",style:{gap:qr},children:[E.jsx(eMt,{site_id:t,isDummy:r,isSubstation:F,className:"flex-1 lg:min-w-70"}),E.jsx($Dt,{site_id:t,isDummy:r,className:"flex-1 lg:min-w-70"}),N&&E.jsx(dMt,{isLoading:R,error:I,url:B?.thermal_image_url})]})]}),E.jsx("div",{className:"grid gap-4 w-full grid-cols-[repeat(auto-fit,minmax(220px,1fr))]",style:{gap:qr},children:W(j,6)}),E.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 w-full",style:{gap:qr},children:[E.jsx(nMt,{site_id:t,isDummy:r,isSubstation:F}),E.jsx(uMt,{site_id:t,isDummy:r,isSubstation:F})]}),E.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 w-full",style:{gap:qr},children:[E.jsx(oMt,{site_id:t,isDummy:r,isSubstation:F}),E.jsx(lMt,{site_id:t,isDummy:r})]}),E.jsx("div",{className:"flex justify-center w-full ",style:{gap:qr},children:E.jsx(fMt,{charts:[{id:"load-profile-chart",label:f("chart.load_profile"),component:E.jsx("div",{className:"flex justify-center w-full ",style:{gap:qr},children:E.jsx(cRe,{className:"border-none!",params:{start_date:a,end_date:o},route:`/operations-dashboard/load-profile-chart/${t}`,queryKey:["/operations","fetchSiteLoadProfile",t],title:"",isDummy:r,dummyData:g})})},{id:"apparent-power-chart",label:f("chart.apparent_power_chart_label"),component:E.jsx("div",{className:"flex justify-center w-full ",style:{gap:qr},children:E.jsx(cMt,{className:"border-none!",params:{start_date:a,end_date:o},route:`/operations-dashboard/apparent-power-chart/${t}`,queryKey:["/operations","fetchSiteApparentPowerChart",t],title:"",isDummy:r,dummyData:g})})}]})}),E.jsx("div",{className:"flex justify-center w-full ",style:{gap:qr},children:E.jsx(tMt,{queryKey:["/operations","fetchVoltageProfile",t],route:`/operations-dashboard/voltage-profile-chart/${t}`,title:f("chart.voltage_profile"),isDummy:r,dummyData:m})}),E.jsx("div",{className:"flex justify-center w-full ",style:{gap:qr},children:E.jsx(rMt,{queryKey:["/operations","fetchCurrentProfile",t],route:`/operations-dashboard/current-profile-chart/${t}`,isDummy:r,dummyData:y})})]}):E.jsx("div",{className:"flex justify-center items-center w-full h-64",children:E.jsx("div",{className:"flex justify-center items-center w-full h-64",children:E.jsx(mn,{})})})}function hMt(){const{id:t}=du();return E.jsx(bRe,{site_id:t})}var nK,vve;function AMt(){if(vve)return nK;vve=1;function t(y){this._maxSize=y,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(y){return this._values[y]},t.prototype.set=function(y,b){return this._size>=this._maxSize&&this.clear(),y in this._values||this._size++,this._values[y]=b};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,n=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,o=512,s=new t(o),l=new t(o),u=new t(o);nK={Cache:t,split:f,normalizePath:c,setter:function(y){var b=c(y);return l.get(y)||l.set(y,function(T,B){for(var R=0,I=b.length,N=T;R<I-1;){var F=b[R];if(F==="__proto__"||F==="constructor"||F==="prototype")return T;N=N[b[R++]]}N[b[R]]=B})},getter:function(y,b){var x=c(y);return u.get(y)||u.set(y,function(B){for(var R=0,I=x.length;R<I;)if(B!=null||!b)B=B[x[R++]];else return;return B})},join:function(y){return y.reduce(function(b,x){return b+(A(x)||r.test(x)?"["+x+"]":(b?".":"")+x)},"")}
188,forEach:function(y,b,x){d(Array.isArray(y)?y:f(y),b,x)}};function c(y){return s.get(y)||s.set(y,f(y).map(function(b){return b.replace(a,"$2")}))}function f(y){return y.match(e)||[""]}function d(y,b,x){var T=y.length,B,R,I,N;for(R=0;R<T;R++)B=y[R],B&&(m(B)&&(B='"'+B+'"'),N=A(B),I=!N&&/^\d+$/.test(B),b.call(x,B,N,I,R,y))}function A(y){return typeof y=="string"&&y&&["'",'"'].indexOf(y.charAt(0))!==-1}function p(y){return y.match(n)&&!y.match(r)}function g(y){return i.test(y)}function m(y){return!A(y)&&(p(y)||g(y))}return nK}var bb=AMt(),iK,gve;function pMt(){if(gve)return iK;gve=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=c=>c.match(t)||[],r=c=>c[0].toUpperCase()+c.slice(1),n=(c,f)=>e(c).join(f).toLowerCase(),i=c=>e(c).reduce((f,d)=>`${f}${f?d[0].toUpperCase()+d.slice(1).toLowerCase():d.toLowerCase()}`,"");return iK={words:e,upperFirst:r,camelCase:i,pascalCase:c=>r(i(c)),snakeCase:c=>n(c,"_"),kebabCase:c=>n(c,"-"),sentenceCase:c=>r(n(c," ")),titleCase:c=>e(c).map(r).join(" ")},iK}var aK=pMt(),LF={exports:{}},mve;function vMt(){if(mve)return LF.exports;mve=1,LF.exports=function(i){return t(e(i),i)},LF.exports.array=t;function t(i,a){var o=i.length,s=new Array(o),l={},u=o,c=r(a),f=n(i);for(a.forEach(function(A){if(!f.has(A[0])||!f.has(A[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)l[u]||d(i[u],u,new Set);return s;function d(A,p,g){if(g.has(A)){var m;try{m=", node was:"+JSON.stringify(A)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!f.has(A))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(A));if(!l[p]){l[p]=!0;var y=c.get(A)||new Set;if(y=Array.from(y),p=y.length){g.add(A);do{var b=y[--p];d(b,f.get(b),g)}while(p);g.delete(A)}s[--o]=A}}}function e(i){for(var a=new Set,o=0,s=i.length;o<s;o++){var l=i[o];a.add(l[0]),a.add(l[1])}return Array.from(a)}function r(i){for(var a=new Map,o=0,s=i.length;o<s;o++){var l=i[o];a.has(l[0])||a.set(l[0],new Set),a.has(l[1])||a.set(l[1],new Set),a.get(l[0]).add(l[1])}return a}function n(i){for(var a=new Map,o=0,s=i.length;o<s;o++)a.set(i[o],o);return a}return LF.exports}var gMt=vMt();const mMt=HT(gMt),yMt=Object.prototype.toString,wMt=Error.prototype.toString,_Mt=RegExp.prototype.toString,bMt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",xMt=/^Symbol\((.*)\)(.*)$/;function SMt(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function yve(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const r=typeof t;if(r==="number")return SMt(t);if(r==="string")return e?`"${t}"`:t;if(r==="function")return"[Function "+(t.name||"anonymous")+"]";if(r==="symbol")return bMt.call(t).replace(xMt,"Symbol($1)");const n=yMt.call(t).slice(8,-1);return n==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):n==="Error"||t instanceof Error?"["+wMt.call(t)+"]":n==="RegExp"?_Mt.call(t):null}function tg(t,e){let r=yve(t,e);return r!==null?r:JSON.stringify(t,function(n,i){let a=yve(this[n],e);return a!==null?a:i},2)}function xRe(t){return t==null?[]:[].concat(t)}let SRe,CRe,TRe,CMt=/\$\{\s*(\w+)\s*\}/g;SRe=Symbol.toStringTag;class wve{constructor(e,r,n,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[SRe]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],xRe(e).forEach(a=>{if(ql.isError(a)){this.errors.push(...a.errors);const o=a.inner.length?a.inner:[a];this.inner.push(...o)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}CRe=Symbol.hasInstance;TRe=Symbol.toStringTag;
vendor: 7,342 bytes, line 188
188class ql extends Error{static formatError(e,r){const n=r.label||r.path||"this";return r=Object.assign({},r,{path:n,originalPath:r.path}),typeof e=="string"?e.replace(CMt,(i,a)=>tg(r[a])):typeof e=="function"?e(r):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,r,n,i,a){const o=new wve(e,r,n,i);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[TRe]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ql)}static[CRe](e){return wve[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let CA={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${tg(n,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${tg(r,!0)}\``+i:`${t} must match the configured type. The validated value was: \`${tg(r,!0)}\``+i}},Uu={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ry={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},t$={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},r$={isValue:"${path} field must be ${value}"},r4={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},n4={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},TMt={notType:t=>{const{path:e,value:r,spec:n}=t,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${e} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${tg(r,!0)}\``;if(r.length>i)return`${e} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${tg(r,!0)}\``}return ql.formatError(CA.notType,t)}};Object.assign(Object.create(null),{mixed:CA,string:Uu,number:ry,date:t$,object:r4,array:n4,boolean:r$,tuple:TMt});const KQ=t=>t&&t.__isYupSchema__;class PH{static fromOptions(e,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:a}=r,o=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new PH(e,(s,l)=>{var u;let c=o(...s)?i:a;return(u=c?.(l))!=null?u:l})}constructor(e,r){this.fn=void 0,this.refs=e,this.refs=e,this.fn=r}resolve(e,r){let n=this.refs.map(a=>a.getValue(r?.value,r?.parent,r?.context)),i=this.fn(n,e,r);if(i===void 0||i===e)return e;if(!KQ(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const RF={context:"$",value:"."};function ote(t,e){return new S0(t,e)}class S0{constructor(e,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===RF.context,this.isValue=this.key[0]===RF.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?RF.context:this.isValue?RF.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&bb.getter(this.path,!0),this.map=r.map}getValue(e,r,n){let i=this.isContext?n:this.isValue?e:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(e,r){return this.getValue(e,r?.parent,r?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}S0.prototype.__isYupRef=!0;const nh=t=>t==null;function nC(t){function e({value:r,path:n="",options:i,originalValue:a,schema:o},s,l){const{name:u,test:c,params:f,message:d,skipAbsent:A}=t;let{parent:p,context:g,abortEarly:m=o.spec.abortEarly,disableStackTrace:y=o.spec.disableStackTrace}=i;const b={value:r,parent:p,context:g};function x(j={}){const W=ERe(Object.assign({value:r,originalValue:a,label:o.spec.label,path:j.path||n,spec:o.spec,disableStackTrace:j.disableStackTrace||y},f,j.params),b),V=new ql(ql.formatError(j.message||d,W),r,W.path,j.type||u,W.disableStackTrace);return V.params=W,V}const T=m?s:l;let B={path:n,parent:p,type:u,from:i.from,createError:x,resolve(j){return BRe(j,b)},options:i,originalValue:a,schema:o};const R=j=>{ql.isError(j)?T(j):j?l(null):T(x())},I=j=>{ql.isError(j)?T(j):s(j)};if(A&&nh(r))return R(!0);let F;try{var Q;if(F=c.call(B,r,B),typeof((Q=F)==null?void 0:Q.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${B.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(F).then(R,I)}}catch(j){I(j);return}R(F)}return e.OPTIONS=t,e}function ERe(t,e){if(!t)return t;for(const r of Object.keys(t))t[r]=BRe(t[r],e);return t}function BRe(t,e){return S0.isRef(t)?t.getValue(e.value,e.parent,e.context):t}function EMt(t,e,r,n=r){let i,a,o;return e?(bb.forEach(e,(s,l,u)=>{let c=l?s.slice(1,s.length-1):s;t=t.resolve({context:n,parent:i,value:r});let f=t.type==="tuple",d=u?parseInt(c,10):0;if(t.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&d>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${e}. because there is no value at that index. `);i=r,r=r&&r[d],t=f?t.spec.types[d]:t.innerType}if(!u){if(!t.fields||!t.fields[c])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${o} which is a type: "${t.type}")`);i=r,r=r&&r[c],t=t.fields[c]}a=c,o=l?"["+s+"]":"."+s}),{schema:t,parent:i,parentPath:a}):{parent:i,parentPath:e,schema:t}}class kH extends Set{describe(){const e=[];for(const r of this.values())e.push(S0.isRef(r)?r.describe():r);return e}resolveAll(e){let r=[];for(const n of this.values())r.push(e(n));return r}clone(){return new kH(this.values())}merge(e,r){const n=this.clone();return e.forEach(i=>
188n.add(i)),r.forEach(i=>n.delete(i)),n}}function NC(t,e=new Map){if(KQ(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let r;if(t instanceof Date)r=new Date(t.getTime()),e.set(t,r);else if(t instanceof RegExp)r=new RegExp(t),e.set(t,r);else if(Array.isArray(t)){r=new Array(t.length),e.set(t,r);for(let n=0;n<t.length;n++)r[n]=NC(t[n],e)}else if(t instanceof Map){r=new Map,e.set(t,r);for(const[n,i]of t.entries())r.set(n,NC(i,e))}else if(t instanceof Set){r=new Set,e.set(t,r);for(const n of t)r.add(NC(n,e))}else if(t instanceof Object){r={},e.set(t,r);for(const[n,i]of Object.entries(t))r[n]=NC(i,e)}else throw Error(`Unable to clone ${t}`);return r}function BMt(t){if(!(t!=null&&t.length))return;const e=[];let r="",n=!1,i=!1;for(let a=0;a<t.length;a++){const o=t[a];if(o==="["&&!i){r&&(e.push(...r.split(".").filter(Boolean)),r=""),n=!0;continue}if(o==="]"&&!i){r&&(/^\d+$/.test(r)?e.push(r):e.push(r.replace(/^"|"$/g,"")),r=""),n=!1;continue}if(o==='"'){i=!i;continue}if(o==="."&&!n&&!i){r&&(e.push(r),r="");continue}r+=o}return r&&e.push(...r.split(".").filter(Boolean)),e}function DMt(t,e){const r=e?`${e}.${t.path}`:t.path;return t.errors.map(n=>({message:n,path:BMt(r)}))}function DRe(t,e){var r;if(!((r=t.inner)!=null&&r.length)&&t.errors.length)return DMt(t,e);const n=e?`${e}.${t.path}`:t.path;return t.inner.flatMap(i=>DRe(i,n))}class zc{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new kH,this._blacklist=new kH,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(CA.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e?.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=NC(Object.assign({},this.spec,e)),r}label(e){let r=this.clone();return r.spec.label=e,r}meta(...e){if(e.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},e[0]),r}withMutation(e){let r=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=r,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let r=this,n=e.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=r._blacklist.merge(e._blacklist,e._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(a=>{e.tests.forEach(o=>{a.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,a)=>a.resolve(i,e),r),r=r.resolve(e)}return r}resolveOptions(e){var r,n,i,a;return Object.assign({},e,{from:e.from||[],strict:(r=e.strict)!=null?r:this.spec.strict,abortEarly:(n=e.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=e.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=e.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(e,r={}){let n=this.resolve(Object.assign({},r,{value:e})),i=r.assert==="ignore-optionality",a=n._cast(e,r);if(r.assert!==!1&&!n.isType(a)){if(i&&nh(a))return a;let o=tg(e),s=tg(a);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". 
189
190attempted value: ${o} 
191`+(s!==o?`result of cast: ${s}`:""))}return a}_cast(e,r){let n=e===void 0?e:this.transforms.reduce((i,a)=>a.call(this,i,e,this,r),e);return n===void 0&&(n=this.getDefault(r)),n}_validate(e,r={},n,i){let{path:a,originalValue:o=e,strict:s=this.spec.strict}=r,l=e;s||(l=this._cast(l,Object.assign({assert:!1},r)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:a,value:l,originalValue:o,options:r,tests:u},n,c=>{if(c.length)return i(c,l);this.runTests({path:a,value:l,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(e,r,n){let i=!1,{tests:a,value:o,originalValue:s,path:l,options:u}=e,c=g=>{i||(i=!0,r(g,o))},f=g=>{i||(i=!0,n(g,o))},d=a.length,A=[];
vendor: 4,465 bytes, line 191
191if(!d)return f([]);let p={value:o,originalValue:s,path:l,options:u,schema:this};for(let g=0;g<a.length;g++){const m=a[g];m(p,c,function(b){b&&(Array.isArray(b)?A.push(...b):A.push(b)),--d<=0&&f(A)})}}asNestedTest({key:e,index:r,parent:n,parentPath:i,originalParent:a,options:o}){const s=e??r;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=n[s];const c=Object.assign({},o,{strict:!0,parent:n,value:u,originalValue:a[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+e});return(f,d,A)=>this.resolve(c)._validate(u,c,d,A)}validate(e,r){var n;let i=this.resolve(Object.assign({},r,{value:e})),a=(n=r?.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,s)=>i._validate(e,r,(l,u)=>{ql.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new ql(l,u,void 0,void 0,a)):o(u)}))}validateSync(e,r){var n;let i=this.resolve(Object.assign({},r,{value:e})),a,o=(n=r?.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(e,Object.assign({},r,{sync:!0}),(s,l)=>{throw ql.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new ql(s,e,void 0,void 0,o);a=l}),a}isValid(e,r){return this.validate(e,r).then(()=>!0,n=>{if(ql.isError(n))return!1;throw n})}isValidSync(e,r){try{return this.validateSync(e,r),!0}catch(n){if(ql.isError(n))return!1;throw n}}_getDefault(e){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,e):NC(r)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,r){const n=this.clone({nullable:e});return n.internalTests.nullable=nC({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(e,r){const n=this.clone({optional:e});return n.internalTests.optionality=nC({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(e=CA.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=CA.notNull){return this.nullability(!1,e)}required(e=CA.required){return this.clone().withMutation(r=>r.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let r=this.clone();return r.transforms.push(e),r}test(...e){let r;if(e.length===1?typeof e[0]=="function"?r={test:e[0]}:r=e[0]:e.length===2?r={name:e[0],test:e[1]}:r={name:e[0],message:e[1],test:e[2]},r.message===void 0&&(r.message=CA.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=nC(r),a=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(e,r){!Array.isArray(e)&&typeof e!="string"&&(r=e,e=".");let n=this.clone(),i=xRe(e).map(a=>new S0(a));return i.forEach(a=>{a.isSibling&&n.deps.push(a.key)}),n.conditions.push(typeof r=="function"?new PH(i,r):PH.fromOptions(i,r)),n}typeError(e){let r=this.clone();return r.internalTests.typeError=nC({message:e,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(e,r=CA.oneOf){let n=this.clone();return e.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=nC({message:r,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),n}notOneOf(e,r=CA.notOneOf){let n=this.clone();return e.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=nC({message:r,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),n}strip(e=!0){let r=this.clone();return r.spec.strip=e,r}describe(e){const r=(e?this.resolve(e):this).clone(),{label:n,meta:i,optional:a,nullable:o}=r.spec;return{meta:i,label:n,optional:a,nullable:o,default:r.getDefault(e),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blackl
191ist.describe(),tests:r.tests.filter((l,u,c)=>c.findIndex(f=>f.OPTIONS.name===l.OPTIONS.name)===u).map(l=>{const u=l.OPTIONS.params&&e?ERe(Object.assign({},l.OPTIONS.params),e):l.OPTIONS.params;return{name:l.OPTIONS.name,params:u}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(n){try{return{value:await e.validate(n,{abortEarly:!1})}}catch(i){if(i instanceof ql)return{issues:DRe(i)};throw i}}}}}zc.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])zc.prototype[`${t}At`]=function(e,r,n={}){const{parent:i,parentPath:a,schema:o}=EMt(this,e,r,n.context);return o[t](i&&i[a],Object.assign({},n,{parent:i,path:e}))};for(const t of["equals","is"])zc.prototype[t]=zc.prototype.oneOf;for(const t of["not","nope"])zc.prototype[t]=zc.prototype.notOneOf;function EL(){return new MRe}class MRe extends zc{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,r)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=r$.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return nh(r)||r===!0}})}isFalse(e=r$.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return nh(r)||r===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}EL.prototype=MRe.prototype;const MMt=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function LMt(t){const e=n$(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let r=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(r=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(r=0-r)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+r,e.second,e.millisecond)}function n$(t){var e,r;const n=MMt.exec(t);return n?{year:_v(n[1]),month:_v(n[2],1)-1,day:_v(n[3],1),hour:_v(n[4]),minute:_v(n[5]),second:_v(n[6]),millisecond:n[7]?_v(n[7].substring(0,3)):0,precision:(e=(r=n[7])==null?void 0:r.length)!=null?e:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:_v(n[10]),minuteOffset:_v(n[11])}:null}function _v(t,e=0){return Number(t)||e}let RMt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,IMt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,OMt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,PMt="^\\d{4}-\\d{2}-\\d{2}",kMt="\\d{2}:\\d{2}:\\d{2}",NMt="(([+-]\\d{2}(:?\\d{2})?)|Z)",FMt=new RegExp(`${PMt}T${kMt}(\\.\\d+)?${NMt}$`),UMt=t=>nh(t)||t===t.trim(),HMt={}.toString();function _n(){return new LRe}class LRe extends zc{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,r)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;const n=e!=null&&e.toString?e.toString():e;return n===HMt?e:n})})}required(e){return super.required(e).withMutation(r=>r.test({message:e||CA.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(r=>r.OPTIONS.name!=="required"),e))}length(e,r=Uu.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(n){return n.length===this.resolve(e)}})}min(e,r=Uu.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n.length>=this.resolve(e)}})}max(e,r=Uu.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:e},skipAbsent:!0,test(n){return n.length<=this.resolve(e)}})}matches(e,r){let n=!1,i,a;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:a}=r:i=r),this.test({name:a||"matches",message:i||Uu.matches,params:{regex:e},skipAbsent:!0,test:o=>o===""&&n||o.search(e)!==-1})}email(e=Uu.email){return this.matches(RMt,{name:"email",message:e,excludeEmptyString:!0})}url(e=Uu.url){return this.matches(IMt,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Uu.uuid){return this.matches(OMt,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let r="",n,i;return e&&(typeof e=="object"?{message:r="",allowOffset:n=!1,precision:i=void 0}=e:r=e),this.matches(FMt,{name:"datetime",message:r||Uu.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||Uu.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:a=>{if(!a||n)return!0;const o=n$(a);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||Uu.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const o=n$(a);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Uu.trim){return this.transform(r=>r!=null?r.trim():r).test({message:e,name:"trim",test:UMt})}lowercase(e=Uu.lowercase){return this.transform(r=>nh(r)?r:r.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>nh(r)||r===r.toLowerCase()})}uppercase(e=Uu.uppercase){return this.transform(r=>nh(r)?r:r.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>nh(r)||r===r.toUpperCase()})}}_n.prototype=LRe.prototype;let QMt=t=>t!=+t;function D_(){return new RRe}class RRe extends zc{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!QMt(e)}}),this.withMutation(()=>{this.transform((e,r)=>{if(!this.spec.coerce)return e;let n=e;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return this.isType(n)||n===null?n:parseFloat(n)})})}min(e,r=ry.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(e)}})}max(e,r=ry.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(e)}})}lessThan(e,r=ry.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(n){return n<this.resolve(e)}})}moreThan(e,r=ry.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(n){return n>this.resolve(e)}})}positive(e=ry.positive){return this.moreThan(0,e)}negative(e=ry.negative){return this.lessThan(0,e)}integer(e=ry.integer){return this.test({name:"integer",message:e,ski
191pAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(e=>nh(e)?e:e|0)}round(e){var r;let n=["ceil","floor","round","trunc"];if(e=((r=e)==null?void 0:r.toLowerCase())||"round",e==="trunc")return this.truncate();if(n.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>nh(i)?i:Math[e](i))}}D_.prototype=RRe.prototype;let IRe=new Date(""),jMt=t=>Object.prototype.toString.call(t)==="[object Date]";function NT(){return new XI}class XI extends zc{constructor(){super({type:"date",check(e){return jMt(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,r)=>!this.spec.coerce||this.isType(e)||e===null?e:(e=LMt(e),isNaN(e)?XI.INVALID_DATE:new Date(e)))})}prepareParam(e,r){let n;if(S0.isRef(e))n=e;else{let i=this.cast(e);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(e,r=t$.min){let n=this.prepareParam(e,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(e,r=t$.max){let n=this.prepareParam(e,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}XI.INVALID_DATE=IRe;NT.prototype=XI.prototype;NT.INVALID_DATE=IRe;function zMt(t,e=[]){let r=[],n=new Set,i=new Set(e.map(([o,s])=>`${o}-${s}`));function a(o,s){let l=bb.split(o)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const o of Object.keys(t)){let s=t[o];n.add(o),S0.isRef(s)&&s.isSibling?a(s.path,o):KQ(s)&&"deps"in s&&s.deps.forEach(l=>a(l,o))}return mMt.array(Array.from(n),r).reverse()}function _ve(t,e){let r=1/0;return t.some((n,i)=>{var a;if((a=e.path)!=null&&a.includes(n))return r=i,!0}),r}function ORe(t){return(e,r)=>_ve(t,e)-_ve(t,r)}const PRe=(t,e,r)=>{if(typeof t!="string")return t;let n=t;try{n=JSON.parse(t)}catch{}return r.isType(n)?n:t};function i4(t){if("fields"in t){const e={};for(const[r,n]of Object.entries(t.fields))e[r]=i4(n);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=i4(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(i4)}):"optional"in t?t.optional():t}const VMt=(t,e)=>{const r=[...bb.normalizePath(e)];if(r.length===1)return r[0]in t;let n=r.pop(),i=bb.getter(bb.join(r),!0)(t);return!!(i&&n in i)};let bve=t=>Object.prototype.toString.call(t)==="[object Object]";function xve(t,e){let r=Object.keys(t.fields);return Object.keys(e).filter(n=>r.indexOf(n)===-1)}const GMt=ORe([]);function C0(t){return new kRe(t)}class kRe extends zc{constructor(e){super({type:"object",check(r){return bve(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=GMt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,r={}){var n;let i=super._cast(e,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let a=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(f=>!this._nodes.includes(f))),l={},u=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),c=!1;for(const f of s){let d=a[f],A=f in i,p=i[f];if(d){let g;u.path=(r.path?`${r.path}.`:"")+f,d=d.resolve({value:p,context:r.context,parent:l});let m=d instanceof zc?d.spec:void 0,y=m?.strict;if(m!=null&&m.strip){c=c||f in i;continue}g=!r.__validating||!y?d.cast(p,u):p,g!==void 0&&(l[f]=g)}else A&&!o&&(l[f]=p);(A!==f in l||l[f]!==p)&&(c=!0)}return c?l:i}_validate(e,r={},n,i){let{from:a=[],originalValue:o=e,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:o},...a],r.__validating=!0,r.originalValue=o,super._validate(e,r,n,(l,u)=>{if(!s||!bve(u)){i(l,u);return}o=o||u;let c=[];for(let f of this._nodes){let d=this.fields[f];!d||S0.isRef(d)||c.push(d.asNestedTest({options:r,key:f,parent:u,parentPath:r.path,originalParent:o}))}this.runTests({tests:c,value:u,originalValue:o,options:r},n,f=>{i(f.sort(this._sortErrors).concat(l),u)})})}clone(e){const r=super.clone(e);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(e){let r=super.concat(e),n=r.fields;for(let[i,a]of Object.entries(this.fields)){const o=n[i];n[i]=o===void 0?a:o}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let r={};
191return this._nodes.forEach(n=>{var i;const a=this.fields[n];let o=e;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=a&&"getDefault"in a?a.getDefault(o):void 0}),r}setFields(e,r){let n=this.clone();return n.fields=e,n._nodes=zMt(e,r),n._sortErrors=ORe(Object.keys(e)),r&&(n._excludedEdges=r),n}shape(e,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,e),i)})}partial(){const e={};for(const[r,n]of Object.entries(this.fields))e[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return i4(this)}pick(e){const r={};for(const n of e)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>e.includes(n)&&e.includes(i)))}omit(e){const r=[];for(const n of Object.keys(this.fields))e.includes(n)||r.push(n);return this.pick(r)}from(e,r,n){let i=bb.getter(e,!0);return this.transform(a=>{if(!a)return a;let o=a;return VMt(a,e)&&(o=Object.assign({},a),n||delete o[e],o[r]=i(a)),o})}json(){return this.transform(PRe)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||r4.exact,test(r){if(r==null)return!0;const n=xve(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,r=r4.noUnknown){typeof e!="boolean"&&(r=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const a=xve(this.schema,i);return!e||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,r=r4.noUnknown){return this.noUnknown(!e,r)}transformKeys(e){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[e(i)]=r[i];return n})}camelCase(){return this.transformKeys(aK.camelCase)}snakeCase(){return this.transformKeys(aK.snakeCase)}constantCase(){return this.transformKeys(e=>aK.snakeCase(e).toUpperCase())}describe(e){const r=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[a,o]of Object.entries(r.fields)){var i;let s=e;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[a]})),n.fields[a]=o.describe(s)}return n}}C0.prototype=kRe.prototype;function NRe(t){return new FRe(t)}class FRe extends zc{constructor(e){super({type:"array",spec:{types:e},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=e}_cast(e,r){const n=super._cast(e,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const a=n.map((o,s)=>{const l=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${s}]`,parent:n,originalValue:o,value:o,index:s}));return l!==o&&(i=!0),l});return i?a:n}_validate(e,r={},n,i){var a;let o=this.innerType,s=(a=r.recursive)!=null?a:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(e,r,n,(l,u)=>{var c;if(!s||!o||!this._typeCheck(u)){i(l,u);return}let f=new Array(u.length);for(let A=0;A<u.length;A++){var d;f[A]=o.asNestedTest({options:r,index:A,parent:u,parentPath:r.path,originalParent:(d=r.originalValue)!=null?d:e})}this.runTests({value:u,tests:f,originalValue:(c=r.originalValue)!=null?c:e,options:r},n,A=>i(A.concat(l),u))})}clone(e){const r=super.clone(e);return r.innerType=this.innerType,r}json(){return this.transform(PRe)}concat(e){let r=super.concat(e);return r.innerType=this.innerType,e.innerType&&(r.innerType=r.innerType?r.innerType.concat(e.innerType):e.innerType),r}of(e){let r=this.clone();if(!KQ(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+tg(e));return r.innerType=e,r.spec=Object.assign({},r.spec,{types:e}),r}length(e,r=n4.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(n){return n.length===this.resolve(e)}})}min(e,r){return r=r||n4.min,this.test({message:r,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n.length>=this.resolve(e)}})}max(e,r){return r=r||n4.max,this.test({message:r,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,r)=>this._typeCheck(e)?e:r==null?[]:[].concat(r))}compact(e){let r=e?(n,i,a)=>!e(n,i,a):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(e){const r=(e?this.resolve(e):this).clone(),n=super.describe(e);if(r.innerType){var i;let a=e;
vendor: 8,149 bytes, line 191
191(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),n.innerType=r.innerType.describe(a)}return n}}NRe.prototype=FRe.prototype;var KMt=function(e){return WMt(e)&&!YMt(e)};function WMt(t){return!!t&&typeof t=="object"}function YMt(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||XMt(t)}var $Mt=typeof Symbol=="function"&&Symbol.for,ZMt=$Mt?Symbol.for("react.element"):60103;function XMt(t){return t.$$typeof===ZMt}function qMt(t){return Array.isArray(t)?[]:{}}function NH(t,e){return e.clone!==!1&&e.isMergeableObject(t)?zR(qMt(t),t,e):t}function JMt(t,e,r){return t.concat(e).map(function(n){return NH(n,r)})}function eLt(t,e,r){var n={};return r.isMergeableObject(t)&&Object.keys(t).forEach(function(i){n[i]=NH(t[i],r)}),Object.keys(e).forEach(function(i){!r.isMergeableObject(e[i])||!t[i]?n[i]=NH(e[i],r):n[i]=zR(t[i],e[i],r)}),n}function zR(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||JMt,r.isMergeableObject=r.isMergeableObject||KMt;var n=Array.isArray(e),i=Array.isArray(t),a=n===i;return a?n?r.arrayMerge(t,e,r):eLt(t,e,r):NH(e,r)}zR.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return zR(n,i,r)},{})};var i$=zR,URe=typeof global=="object"&&global&&global.Object===Object&&global,tLt=typeof self=="object"&&self&&self.Object===Object&&self,wp=URe||tLt||Function("return this")(),c0=wp.Symbol,HRe=Object.prototype,rLt=HRe.hasOwnProperty,nLt=HRe.toString,nM=c0?c0.toStringTag:void 0;function iLt(t){var e=rLt.call(t,nM),r=t[nM];try{t[nM]=void 0;var n=!0}catch{}var i=nLt.call(t);return n&&(e?t[nM]=r:delete t[nM]),i}var aLt=Object.prototype,oLt=aLt.toString;function sLt(t){return oLt.call(t)}var lLt="[object Null]",uLt="[object Undefined]",Sve=c0?c0.toStringTag:void 0;function Px(t){return t==null?t===void 0?uLt:lLt:Sve&&Sve in Object(t)?iLt(t):sLt(t)}function QRe(t,e){return function(r){return t(e(r))}}var ste=QRe(Object.getPrototypeOf,Object);function kx(t){return t!=null&&typeof t=="object"}var cLt="[object Object]",fLt=Function.prototype,dLt=Object.prototype,jRe=fLt.toString,hLt=dLt.hasOwnProperty,ALt=jRe.call(Object);function Cve(t){if(!kx(t)||Px(t)!=cLt)return!1;var e=ste(t);if(e===null)return!0;var r=hLt.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&jRe.call(r)==ALt}function pLt(){this.__data__=[],this.size=0}function zRe(t,e){return t===e||t!==t&&e!==e}function WQ(t,e){for(var r=t.length;r--;)if(zRe(t[r][0],e))return r;return-1}var vLt=Array.prototype,gLt=vLt.splice;function mLt(t){var e=this.__data__,r=WQ(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():gLt.call(e,r,1),--this.size,!0}function yLt(t){var e=this.__data__,r=WQ(e,t);return r<0?void 0:e[r][1]}function wLt(t){return WQ(this.__data__,t)>-1}function _Lt(t,e){var r=this.__data__,n=WQ(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Mg(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Mg.prototype.clear=pLt;Mg.prototype.delete=mLt;Mg.prototype.get=yLt;Mg.prototype.has=wLt;Mg.prototype.set=_Lt;function bLt(){this.__data__=new Mg,this.size=0}function xLt(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function SLt(t){return this.__data__.get(t)}function CLt(t){return this.__data__.has(t)}function qI(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var TLt="[object AsyncFunction]",ELt="[object Function]",BLt="[object GeneratorFunction]",DLt="[object Proxy]";function VRe(t){if(!qI(t))return!1;var e=Px(t);return e==ELt||e==BLt||e==TLt||e==DLt}var oK=wp["__core-js_shared__"],Tve=(function(){var t=/[^.]+$/.exec(oK&&oK.keys&&oK.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function MLt(t){return!!Tve&&Tve in t}var LLt=Function.prototype,RLt=LLt.toString;function Nx(t){if(t!=null){try{return RLt.call(t)}catch{}try{return t+""}catch{}}return""}var ILt=/[\\^$.*+?()[\]{}|]/g,OLt=/^\[object .+?Constructor\]$/,PLt=Function.prototype,kLt=Object.prototype,NLt=PLt.toString,FLt=kLt.hasOwnProperty,ULt=RegExp("^"+NLt.call(FLt).replace(ILt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HLt(t){if(!qI(t)||MLt(t))return!1;var e=VRe(t)?ULt:OLt;return e.test(Nx(t))}function QLt(t,e){return t?.[e]}function Fx(t,e){var r=QLt(t,e);return HLt(r)?r:void 0}var VR=Fx(wp,"Map"),GR=Fx(Object,"create");function jLt(){this.__data__=GR?GR(null):{},this.size=0}function zLt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var VLt="__lodash_hash_undefined__",GLt=Object.prototype,KLt=GLt.hasOwnProperty;function WLt(t){var e=this.__data__;if(GR){var r=e[t];return r===VLt?void 0:r}return KLt.call(e,t)?e[t]:void 0}var YLt=Object.prototype,$Lt=YLt.hasOwnProperty;function ZLt(t){var e=this.__data__;return GR?e[t]!==void 0:$Lt.call(e,t)}var XLt="__lodash_hash_undefined__";function qLt(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=GR&&e===void 0?XLt:e,this}function lx(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}lx.prototype.clear=jLt;lx.prototype.delete=zLt;lx.prototype.get=WLt;lx.prototype.has=ZLt;lx.prototype.set=qLt;function JLt(){this.size=0,this.__data__={hash:new lx,map:new(VR||Mg),string:new lx}}function eRt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function YQ(t,e){var r=t.__data__;return eRt(e)?r[typeof e=="string"?"string":"hash"]:r.map}function tRt(t){var e=YQ(this,t).delete(t);return this.size-=e?1:0,e}function rRt(t){return YQ(this,t).get(t)}function nRt(t){return YQ(this,t).has(t)}function iRt(t,e){var r=YQ(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function T0(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}T0.prototype.clear=JLt;T0.prototype.delete=tRt;T0.prototype.get=rRt;T0.prototype.has=nRt;T0.prototype.set=iRt;var aRt=200;function oRt(t,e){var r=this.__data__;if(r instanceof Mg){var n=r.__data__;if(!VR||n.length<aRt-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new T0(n)}return r.set(t,e),this.size=r.size,this}function ME(t){var e=this.__data__=new Mg(t);this.size=e.size}ME.prototype.clear=bLt;ME.prototype.delete=xLt;ME.prototype.get=SLt;ME.prototype.has=CLt;ME.prototype.set=oRt;function sRt(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var Eve=(function(){try{var t=Fx(Object,"defineProperty");return t({},"",{}),t}catch{}})();function GRe(t,e,r){e=="__proto__"&&Eve?Eve(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var lRt=Object.prototype,uRt=lRt.hasOwnProperty;function KRe(t,e,r){var n=t[e];(!(uRt.call(t,e)&&zRe(n,r))||r===void 0&&!(e in t))&&GRe(t,e,r)}function $Q(t,e,r,n){var i=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=void 0;l===void 0&&(l=t[s]),i?GRe(r,s,l):KRe(r,s,l)}return r}function cRt(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var fRt="[object Arguments]";function Bve(t){return kx(t)&&Px(t)==fRt}var WRe=Object.prototype,dRt=WRe.hasOwnProperty,hRt=WRe.propertyIsEnumerable,ARt=Bve((function(){return arguments})())?Bve:function(t){return kx(t)&&dRt.call(t,"callee")&&!hRt.call(t,"callee")},JI=Array.isArray;function pRt(){return!1}var YRe=typeof Pc=="object"&&Pc&&!Pc.nodeType&&Pc,Dve=YRe&&typeof kc=="object"&&kc&&!kc.nodeType&&kc,vRt=Dve&&Dve.exports===YRe,Mve=vRt?wp.Buffer:void 0,gRt=Mve?Mve.isBuffer:void 0,$Re=gRt||pRt,mRt=9007199254740991,yRt=/^(?:0|[1-9]\d*)$/;function wRt(t,e){var r=typeof t;return e=e??mRt,!!e&&(r=="number"||r!="symbol"&&yRt.test(t))&&t>-1&&t%1==0&&t<e}var _Rt=9007199254740991;function ZRe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=_Rt}var bRt="[object Arguments]",xRt="[object Array]",SRt="[object Boolean]",CRt="[object Date]",TRt="[object Error]",ERt="[object Function]",BRt="[object Map]",DRt="[object Number]",MRt="[object Object]",LRt="[object RegExp]",RRt="[object Set]",IRt="[object String]",ORt="[object WeakMap]",PRt="[object ArrayBuffer]",kRt="[object DataView]",NRt="[object Float32Array]",FRt="[object Float64Array
191]",URt="[object Int8Array]",HRt="[object Int16Array]",QRt="[object Int32Array]",jRt="[object Uint8Array]",zRt="[object Uint8ClampedArray]",VRt="[object Uint16Array]",GRt="[object Uint32Array]",Ui={};Ui[NRt]=Ui[FRt]=Ui[URt]=Ui[HRt]=Ui[QRt]=Ui[jRt]=Ui[zRt]=Ui[VRt]=Ui[GRt]=!0;Ui[bRt]=Ui[xRt]=Ui[PRt]=Ui[SRt]=Ui[kRt]=Ui[CRt]=Ui[TRt]=Ui[ERt]=Ui[BRt]=Ui[DRt]=Ui[MRt]=Ui[LRt]=Ui[RRt]=Ui[IRt]=Ui[ORt]=!1;function KRt(t){return kx(t)&&ZRe(t.length)&&!!Ui[Px(t)]}function lte(t){return function(e){return t(e)}}var XRe=typeof Pc=="object"&&Pc&&!Pc.nodeType&&Pc,BL=XRe&&typeof kc=="object"&&kc&&!kc.nodeType&&kc,WRt=BL&&BL.exports===XRe,sK=WRt&&URe.process,FT=(function(){try{var t=BL&&BL.require&&BL.require("util").types;return t||sK&&sK.binding&&sK.binding("util")}catch{}})(),Lve=FT&&FT.isTypedArray,YRt=Lve?lte(Lve):KRt,$Rt=Object.prototype,ZRt=$Rt.hasOwnProperty;function qRe(t,e){var r=JI(t),n=!r&&ARt(t),i=!r&&!n&&$Re(t),a=!r&&!n&&!i&&YRt(t),o=r||n||i||a,s=o?cRt(t.length,String):[],l=s.length;for(var u in t)(e||ZRt.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||wRt(u,l)))&&s.push(u);return s}var XRt=Object.prototype;function ute(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||XRt;return t===r}var qRt=QRe(Object.keys,Object),JRt=Object.prototype,eIt=JRt.hasOwnProperty;function tIt(t){if(!ute(t))return qRt(t);var e=[];for(var r in Object(t))eIt.call(t,r)&&r!="constructor"&&e.push(r);return e}function JRe(t){return t!=null&&ZRe(t.length)&&!VRe(t)}function cte(t){return JRe(t)?qRe(t):tIt(t)}function rIt(t,e){return t&&$Q(e,cte(e),t)}function nIt(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var iIt=Object.prototype,aIt=iIt.hasOwnProperty;function oIt(t){if(!qI(t))return nIt(t);var e=ute(t),r=[];for(var n in t)n=="constructor"&&(e||!aIt.call(t,n))||r.push(n);return r}function fte(t){return JRe(t)?qRe(t,!0):oIt(t)}function sIt(t,e){return t&&$Q(e,fte(e),t)}var eIe=typeof Pc=="object"&&Pc&&!Pc.nodeType&&Pc,Rve=eIe&&typeof kc=="object"&&kc&&!kc.nodeType&&kc,lIt=Rve&&Rve.exports===eIe,Ive=lIt?wp.Buffer:void 0,Ove=Ive?Ive.allocUnsafe:void 0;function uIt(t,e){if(e)return t.slice();var r=t.length,n=Ove?Ove(r):new t.constructor(r);return t.copy(n),n}function tIe(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function cIt(t,e){for(var r=-1,n=t==null?0:t.length,i=0,a=[];++r<n;){var o=t[r];e(o,r,t)&&(a[i++]=o)}return a}function rIe(){return[]}var fIt=Object.prototype,dIt=fIt.propertyIsEnumerable,Pve=Object.getOwnPropertySymbols,dte=Pve?function(t){return t==null?[]:(t=Object(t),cIt(Pve(t),function(e){return dIt.call(t,e)}))}:rIe;function hIt(t,e){return $Q(t,dte(t),e)}function nIe(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var AIt=Object.getOwnPropertySymbols,iIe=AIt?function(t){for(var e=[];t;)nIe(e,dte(t)),t=ste(t);return e}:rIe;function pIt(t,e){return $Q(t,iIe(t),e)}function aIe(t,e,r){var n=e(t);return JI(t)?n:nIe(n,r(t))}function vIt(t){return aIe(t,cte,dte)}function gIt(t){return aIe(t,fte,iIe)}var a$=Fx(wp,"DataView"),o$=Fx(wp,"Promise"),s$=Fx(wp,"Set"),l$=Fx(wp,"WeakMap"),kve="[object Map]",mIt="[object Object]",Nve="[object Promise]",Fve="[object Set]",Uve="[object WeakMap]",Hve="[object DataView]",yIt=Nx(a$),wIt=Nx(VR),_It=Nx(o$),bIt=Nx(s$),xIt=Nx(l$),Lv=Px;(a$&&Lv(new a$(new ArrayBuffer(1)))!=Hve||VR&&Lv(new VR)!=kve||o$&&Lv(o$.resolve())!=Nve||s$&&Lv(new s$)!=Fve||l$&&Lv(new l$)!=Uve)&&(Lv=function(t){var e=Px(t),r=e==mIt?t.constructor:void 0,n=r?Nx(r):"";if(n)switch(n){case yIt:return Hve;case wIt:return kve;case _It:return Nve;case bIt:return Fve;case xIt:return Uve}return e});var SIt=Object.prototype,CIt=SIt.hasOwnProperty;function TIt(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&CIt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Qve=wp.Uint8Array;function hte(t){var e=new t.constructor(t.byteLength);return new Qve(e).set(new Qve(t)),e}function EIt(t,e){var r=e?hte(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var BIt=/\w*$/;function DIt(t){var e=new t.constructor(t.source,BIt.exec(t));return e.lastIndex=t.lastIndex,e}var jve=c0?c0.prototype:void 0,zve=jve?jve.valueOf:void 0;function MIt(t){return zve?Object(zve.call(t)):{}}function LIt(t,e){var r=e?hte(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var RIt="[object Boolean]",IIt="[object Date]",OIt="[object Map]",PIt="[object Number]",kIt="[object RegExp]",NIt="[object Set]",FIt="[object String]",UIt="[object Symbol]",HIt="[object ArrayBuffer]",QIt="[object DataView]",jIt="[object Float32Array]",zIt="[object Float64Array
191]",VIt="[object Int8Array]",GIt="[object Int16Array]",KIt="[object Int32Array]",WIt="[object Uint8Array]",YIt="[object Uint8ClampedArray]",$It="[object Uint16Array]",ZIt="[object Uint32Array]";function XIt(t,e,r){var n=t.constructor;switch(e){case HIt:return hte(t);case RIt:case IIt:return new n(+t);case QIt:return EIt(t,r);case jIt:case zIt:case VIt:case GIt:case KIt:case WIt:case YIt:case $It:case ZIt:return LIt(t,r);case OIt:return new n;case PIt:case FIt:return new n(t);case kIt:return DIt(t);case NIt:return new n;case UIt:return MIt(t)}}var Vve=Object.create,qIt=(function(){function t(){}return function(e){if(!qI(e))return{};if(Vve)return Vve(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();function JIt(t){return typeof t.constructor=="function"&&!ute(t)?qIt(ste(t)):{}}var eOt="[object Map]";function tOt(t){return kx(t)&&Lv(t)==eOt}var Gve=FT&&FT.isMap,rOt=Gve?lte(Gve):tOt,nOt="[object Set]";function iOt(t){return kx(t)&&Lv(t)==nOt}var Kve=FT&&FT.isSet,aOt=Kve?lte(Kve):iOt,oOt=1,sOt=2,lOt=4,oIe="[object Arguments]",uOt="[object Array]",cOt="[object Boolean]",fOt="[object Date]",dOt="[object Error]",sIe="[object Function]",hOt="[object GeneratorFunction]",AOt="[object Map]",pOt="[object Number]",lIe="[object Object]",vOt="[object RegExp]",gOt="[object Set]",mOt="[object String]",yOt="[object Symbol]",wOt="[object WeakMap]",_Ot="[object ArrayBuffer]",bOt="[object DataView]",xOt="[object Float32Array]",SOt="[object Float64Array]",COt="[object Int8Array]",TOt="[object Int16Array]",EOt="[object Int32Array]",BOt="[object Uint8Array]",DOt="[object Uint8ClampedArray]",MOt="[object Uint16Array]",LOt="[object Uint32Array]",Ri={};Ri[oIe]=Ri[uOt]=Ri[_Ot]=Ri[bOt]=Ri[cOt]=Ri[fOt]=Ri[xOt]=Ri[SOt]=Ri[COt]=Ri[TOt]=Ri[EOt]=Ri[AOt]=Ri[pOt]=Ri[lIe]=Ri[vOt]=Ri[gOt]=Ri[mOt]=Ri[yOt]=Ri[BOt]=Ri[DOt]=Ri[MOt]=Ri[LOt]=!0;Ri[dOt]=Ri[sIe]=Ri[wOt]=!1;function DL(t,e,r,n,i,a){var o,s=e&oOt,l=e&sOt,u=e&lOt;if(o!==void 0)return o;if(!qI(t))return t;var c=JI(t);if(c){if(o=TIt(t),!s)return tIe(t,o)}else{var f=Lv(t),d=f==sIe||f==hOt;if($Re(t))return uIt(t,s);if(f==lIe||f==oIe||d&&!i){if(o=l||d?{}:JIt(t),!s)return l?pIt(t,sIt(o,t)):hIt(t,rIt(o,t))}else{if(!Ri[f])return i?t:{};o=XIt(t,f,s)}}a||(a=new ME);var A=a.get(t);if(A)return A;a.set(t,o),aOt(t)?t.forEach(function(m){o.add(DL(m,e,r,m,t,a))}):rOt(t)&&t.forEach(function(m,y){o.set(y,DL(m,e,r,y,t,a))});var p=u?l?gIt:vIt:l?fte:cte,g=c?void 0:p(t);return sRt(g||t,function(m,y){g&&(y=m,m=t[y]),KRe(o,y,DL(m,e,r,y,t,a))}),o}var ROt=1,IOt=4;function IF(t){return DL(t,ROt|IOt)}var lK,Wve;function OOt(){if(Wve)return lK;Wve=1;var t=Array.isArray,e=Object.keys,r=Object.prototype.hasOwnProperty,n=typeof Element<"u";function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){var s=t(a),l=t(o),u,c,f;if(s&&l){if(c=a.length,c!=o.length)return!1;for(u=c;u--!==0;)if(!i(a[u],o[u]))return!1;return!0}if(s!=l)return!1;var d=a instanceof Date,A=o instanceof Date;if(d!=A)return!1;if(d&&A)return a.getTime()==o.getTime();var p=a instanceof RegExp,g=o instanceof RegExp;if(p!=g)return!1;if(p&&g)return a.toString()==o.toString();var m=e(a);if(c=m.length,c!==e(o).length)return!1;for(u=c;u--!==0;)if(!r.call(o,m[u]))return!1;if(n&&a instanceof Element&&o instanceof Element)return a===o;for(u=c;u--!==0;)if(f=m[u],!(f==="_owner"&&a.$$typeof)&&!i(a[f],o[f]))return!1;return!0}return a!==a&&o!==o}return lK=function(o,s){try{return i(o,s)}catch(l){if(l.message&&l.message.match(/stack|recursion/i)||l.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",l.name,l.message),!1;throw l}},lK}var POt=OOt();const M_=HT(POt);var kOt=4;function Yve(t){return DL(t,kOt)}function uIe(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var NOt="[object Symbol]";function Ate(t){return typeof t=="symbol"||kx(t)&&Px(t)==NOt}var FOt="Expected a function";function pte(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(FOt);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);
191var o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(pte.Cache||T0),r}pte.Cache=T0;var UOt=500;function HOt(t){var e=pte(t,function(n){return r.size===UOt&&r.clear(),n}),r=e.cache;return e}var QOt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jOt=/\\(\\)?/g,zOt=HOt(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(QOt,function(r,n,i,a){e.push(i?a.replace(jOt,"$1"):n||r)}),e});function VOt(t){if(typeof t=="string"||Ate(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var $ve=c0?c0.prototype:void 0,Zve=$ve?$ve.toString:void 0;function cIe(t){if(typeof t=="string")return t;if(JI(t))return uIe(t,cIe)+"";if(Ate(t))return Zve?Zve.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function GOt(t){return t==null?"":cIe(t)}function fIe(t){return JI(t)?uIe(t,VOt):Ate(t)?[t]:tIe(zOt(GOt(t)))}var uK={exports:{}},Jn={};var Xve;function KOt(){if(Xve)return Jn;Xve=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,d=t?Symbol.for("react.suspense_list"):60120,A=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,m=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function x(B){if(typeof B=="object"&&B!==null){var R=B.$$typeof;switch(R){case e:switch(B=B.type,B){case l:case u:case n:case a:case i:case f:return B;default:switch(B=B&&B.$$typeof,B){case s:case c:case p:case A:case o:return B;default:return R}}case r:return R}}}function T(B){return x(B)===u}return Jn.AsyncMode=l,Jn.ConcurrentMode=u,Jn.ContextConsumer=s,Jn.ContextProvider=o,Jn.Element=e,Jn.ForwardRef=c,Jn.Fragment=n,Jn.Lazy=p,Jn.Memo=A,Jn.Portal=r,Jn.Profiler=a,Jn.StrictMode=i,Jn.Suspense=f,Jn.isAsyncMode=function(B){return T(B)||x(B)===l},Jn.isConcurrentMode=T,Jn.isContextConsumer=function(B){return x(B)===s},Jn.isContextProvider=function(B){return x(B)===o},Jn.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===e},Jn.isForwardRef=function(B){return x(B)===c},Jn.isFragment=function(B){return x(B)===n},Jn.isLazy=function(B){return x(B)===p},Jn.isMemo=function(B){return x(B)===A},Jn.isPortal=function(B){return x(B)===r},Jn.isProfiler=function(B){return x(B)===a},Jn.isStrictMode=function(B){return x(B)===i},Jn.isSuspense=function(B){return x(B)===f},Jn.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===n||B===u||B===a||B===i||B===f||B===d||typeof B=="object"&&B!==null&&(B.$$typeof===p||B.$$typeof===A||B.$$typeof===o||B.$$typeof===s||B.$$typeof===c||B.$$typeof===m||B.$$typeof===y||B.$$typeof===b||B.$$typeof===g)},Jn.typeOf=x,Jn}var qve;function WOt(){return qve||(qve=1,uK.exports=KOt()),uK.exports}var cK,Jve;function YOt(){if(Jve)return cK;Jve=1;var t=WOt(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=n,a[t.Memo]=i;function o(p){return t.isMemo(p)?i:a[p.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function A(p,g,m){if(typeof g!="string"){if(d){var y=f(g);y&&y!==d&&A(p,y,m)}var b=l(g);u&&(b=b.concat(u(g)));for(var x=o(p),T=o(g),B=0;B<b.length;++B){var R=b[B];if(!r[R]&&!(m&&m[R])&&!(T&&T[R])&&!(x&&x[R])){var I=c(g,R);try{s(p,R,I)}catch{}}}}return p}return cK=A,cK}YOt();function Go(){return Go=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
vendor: 13,376 bytes, line 191
191for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Go.apply(this,arguments)}function dIe(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var ZQ=H.createContext(void 0);ZQ.displayName="FormikContext";ZQ.Provider;ZQ.Consumer;function $Ot(){var t=H.useContext(ZQ);return t}var Df=function(e){return typeof e=="function"},XQ=function(e){return e!==null&&typeof e=="object"},ZOt=function(e){return String(Math.floor(Number(e)))===e},fK=function(e){return Object.prototype.toString.call(e)==="[object String]"},dK=function(e){return XQ(e)&&Df(e.then)};function Hu(t,e,r,n){n===void 0&&(n=0);for(var i=fIe(e);t&&n<i.length;)t=t[i[n++]];return n!==i.length&&!t||t===void 0?r:t}function xb(t,e,r){for(var n=Yve(t),i=n,a=0,o=fIe(e);a<o.length-1;a++){var s=o[a],l=Hu(t,o.slice(0,a+1));if(l&&(XQ(l)||Array.isArray(l)))i=i[s]=Yve(l);else{var u=o[a+1];i=i[s]=ZOt(u)&&Number(u)>=0?[]:{}}}return(a===0?t:i)[o[a]]===r?t:(r===void 0?delete i[o[a]]:i[o[a]]=r,a===0&&r===void 0&&delete n[o[a]],n)}function hIe(t,e,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var i=0,a=Object.keys(t);i<a.length;i++){var o=a[i],s=t[o];XQ(s)?r.get(s)||(r.set(s,!0),n[o]=Array.isArray(s)?[]:{},hIe(s,e,r,n[o])):n[o]=e}return n}function XOt(t,e){switch(e.type){case"SET_VALUES":return Go({},t,{values:e.payload});case"SET_TOUCHED":return Go({},t,{touched:e.payload});case"SET_ERRORS":return M_(t.errors,e.payload)?t:Go({},t,{errors:e.payload});case"SET_STATUS":return Go({},t,{status:e.payload});case"SET_ISSUBMITTING":return Go({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return Go({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return Go({},t,{values:xb(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return Go({},t,{touched:xb(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return Go({},t,{errors:xb(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return Go({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return Go({},t,{touched:hIe(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":return Go({},t,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Go({},t,{isSubmitting:!1});default:return t}}var A_={},OF={};function qOt(t){var e=t.validateOnChange,r=e===void 0?!0:e,n=t.validateOnBlur,i=n===void 0?!0:n,a=t.validateOnMount,o=a===void 0?!1:a,s=t.isInitialValid,l=t.enableReinitialize,u=l===void 0?!1:l,c=t.onSubmit,f=dIe(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=Go({validateOnChange:r,validateOnBlur:i,validateOnMount:o,onSubmit:c},f),A=H.useRef(d.initialValues),p=H.useRef(d.initialErrors||A_),g=H.useRef(d.initialTouched||OF),m=H.useRef(d.initialStatus),y=H.useRef(!1),b=H.useRef({});H.useEffect(function(){return y.current=!0,function(){y.current=!1}},[]);var x=H.useState(0),T=x[1],B=H.useRef({values:IF(d.initialValues),errors:IF(d.initialErrors)||A_,touched:IF(d.initialTouched)||OF,status:IF(d.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),R=B.current,I=H.useCallback(function(Oe){var ht=B.current;B.current=XOt(ht,Oe),ht!==B.current&&T(function(At){return At+1})},[]),N=H.useCallback(function(Oe,ht){return new Promise(function(At,Ft){var Yt=d.validate(Oe,ht);Yt==null?At(A_):dK(Yt)?Yt.then(function(zr){At(zr||A_)},function(zr){Ft(zr)}):At(Yt)})},[d.validate]),F=H.useCallback(function(Oe,ht){var At=d.validationSchema,Ft=Df(At)?At(ht):At,Yt=ht&&Ft.validateAt?Ft.validateAt(ht,Oe):ePt(Oe,Ft);return new Promise(function(zr,ni){Yt.then(function(){zr(A_)},function(ii){ii.name==="ValidationError"?zr(JOt(ii)):ni(ii)})})},[d.validationSchema]),Q=H.useCallback(function(Oe,ht){return new Promise(function(At){return At(b.current[Oe].validate(ht))})},[]),j=H.useCallback(function(Oe){var ht=Object.keys(b.current).filter(function(Ft){return Df(b.current[Ft].validate)}),At=ht.length>0?ht.map(function(Ft){return Q(Ft,Hu(Oe,Ft))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(At).then(function(Ft){return Ft.reduce(function(Yt,zr,ni){return zr==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||zr&&(Yt=xb(Yt,ht[ni],zr)),Yt},{})})},[Q]),W=H.useCallback(function(Oe){return Promise.all([j(Oe),d.validationSchema?F(Oe):{},d.validate?N(Oe):{}]).then(function(ht){var At=ht[0],Ft=ht[1],Yt=ht[2],zr=i$.all([At,Ft,Yt],{arrayMerge:tPt});return zr})},[d.validate,d.validationSchema,j,N,F]),V=Ef(function(Oe){return Oe===void 0&&(Oe=R.values),I({type:"SET_ISVALIDATING",payload:!0}),W(Oe).then(function(ht){return y.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:ht})),ht})});H.useEffect(function(){o&&y.current===!0&&M_(A.current,d.initialValues)&&V(A.current)},[o,V]);var Y=H.useCallback(function(Oe){var ht=Oe&&Oe.values?Oe.values:A.current,At=Oe&&Oe.errors?Oe.errors:p.current?p.current:d.initialErrors||{},Ft=Oe&&Oe.touched?Oe.touched:g.current?g.current:d.initialTouched||{},Yt=Oe&&Oe.status?Oe.status:m.current?m.current:d.initialStatus;A.current=ht,p.current=At,g.current=Ft,m.current=Yt;var zr=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!Oe&&!!Oe.isSubmitting,errors:At,touched:Ft,status:Yt,values:ht,isValidating:!!Oe&&!!Oe.isValidating,submitCount:Oe&&Oe.submitCount&&typeof Oe.submitCount=="number"?Oe.submitCount:0}})};if(d.onReset){var ni=d.onReset(R.values,nt);dK(ni)?ni.then(zr):zr()}else zr()},[d.initialErrors,d.initialStatus,d.initialTouched,d.onReset]);H.useEffect(function(){y.current===!0&&!M_(A.current,d.initialValues)&&u&&(A.current=d.initialValues,Y(),o&&V(A.current))},[u,d.initialValues,Y,o,V]),H.useEffect(function(){u&&y.current===!0&&!M_(p.current,d.initialErrors)&&(p.current=d.initialErrors||A_,I({type:"SET_ERRORS",payload:d.initialErrors||A_}))},[u,d.initialErrors]),H.useEffect(function(){u&&y.current===!0&&!M_(g.current,d.initialTouched)&&(g.current=d.initialTouched||OF,I({type:"SET_TOUCHED",payload:d.initialTouched||OF}))},[u,d.initialTouched]),H.useEffect(function(){u&&y.current===!0&&!M_(m.current,d.initialStatus)&&(m.current=d.initialStatus,I({type:"SET_STATUS",payload:d.initialStatus}))},[u,d.initialStatus,d.initialTouched]);var G=Ef(function(Oe){if(b.current[Oe]&&Df(b.current[Oe].validate)){var ht=Hu(R.values,Oe),At=b.current[Oe].validate(ht);return dK(At)?(I({type:"SET_ISVALIDATING",payload:!0}),At.then(function(Ft){return Ft}).then(function(Ft){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:Ft}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:At}}),Promise.resolve(At))}else if(d.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),F(R.values,Oe).then(function(Ft){return Ft}).then(function(Ft){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:Hu(Ft,Oe)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),K=H.useCallback(function(Oe,ht){var At=ht.validate;b.current[Oe]={validate:At}},[]),X=H.useCallback(function(Oe){delete b.current[Oe]},[]),q=Ef(function(Oe,ht){I({type:"SET_TOUCHED",payload:Oe});var At=ht===void 0?i:ht;return At?V(R.values):Promise.resolve()}),ne=H.useCallback(function(Oe){I({type:"SET_ERRORS",payload:Oe})},[]),te=Ef(function(Oe,ht){var At=Df(Oe)?Oe(R.values):Oe;I({type:"SET_VALUES",payload:At});var Ft=ht===void 0?r:ht;return Ft?V(At):Promise.resolve()}),ce=H.useCallback(function(Oe,ht){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ht}})},[]),he=Ef(function(Oe,ht,At){var Ft=Df(ht)?ht(Hu(R.values,Oe)):ht;I({type:"SET_FIELD_VALUE",payload:{field:Oe,value:Ft}});var Yt=At===void 0?r:At;return Yt?V(xb(R.values,Oe,Ft)):Promise.resolve()}),ve=H.useCallback(function(Oe,ht){var At=ht,Ft=Oe,Yt;if(!fK(Oe)){Oe.persist&&Oe.persist();var zr=Oe.target?Oe.target:Oe.currentTarget,ni=zr.type,ii=zr.name,Qs=zr.id,js=zr.value,dd=zr.checked;zr.outerHTML;var pu=zr.options,Cl=zr.multiple;At=ht||ii||Qs,Ft=/number|range/.test(ni)?(Yt=parseFloat(js),isNaN(Yt)?"":Yt):/checkbox/.test(ni)?nPt(Hu(R.values,At),dd,js):pu&&Cl?rPt(pu):js}At&&he(At,Ft)},[he,R.values]),ae=Ef(function(Oe){if(fK(Oe))return function(ht){return ve(ht,Oe)};ve(Oe)}),fe=Ef(function(Oe,ht,At){ht===void 0&&(ht=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:Oe,value:ht}});var Ft=At===void 0?i:At;return Ft?V(R.values):Promise.resolve()}),we=H.useCallback(function(Oe,ht){Oe.persist&&Oe.persist();var At=Oe.target,Ft=At.name,Yt=At.id;At.outerHTML;var zr=ht||Ft||Yt;fe(zr,!0)},[fe]),Me=Ef(function(Oe){if(fK(Oe))return function(ht){return we(ht,Oe)};we(Oe)}),ge=H.useCallback(function(Oe){Df(Oe)?I({type:"SET_FORMIK_STATE",payload:Oe}):I({type:"SET_FORMIK_STATE",payload:function(){return Oe}})},[]),be=H.useCallback(function(Oe){I({type:"SET_STATUS",payload:Oe})},[]),Ve=H.useCallback(function(Oe){I({type:"SET_ISSUBMITTING",payload:Oe})},[]),Re=Ef(function(){return I({type:"SUBMIT_ATTEMPT"}),V().then(function(Oe){var ht=Oe instanceof Error,At=!ht&&Object.keys(Oe).length===0;if(At){var Ft;try{if(Ft=qe(),Ft===void 0)return}catch(Yt){throw Yt}return Promise.resolve(Ft).then(function(Yt){return y.current&&I({type:"SUBMIT_SUCCESS"}),Yt}).catch(function(Yt){if(y.current)throw I({type:"SUBMIT_FAILURE"}),Yt})}else if(y.current&&(I({type:"SUBMIT_FAILURE"}),ht))throw Oe})}),Se=Ef(function(Oe){Oe&&Oe.preventDefault&&Df(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&Df(Oe.stopPropagation)&&Oe.stopPropagation(),Re().catch(function(ht){console.warn("Warning: An unhandled error was caught from submitForm()",ht)})}),nt={resetForm:Y,validateForm:V,validateField:G,setErrors:ne,setFieldError:ce,setFieldTouched:fe,setFieldValue:he,setStatus:be,setSubmitting:Ve,setTouched:q,setValues:te,setFormikState:ge,submitForm:Re},qe=Ef(function(){return c(R.values,nt)}),tt=Ef(function(Oe){Oe&&Oe.preventDefault&&Df(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&Df(Oe.stopPropagation)&&Oe.stopPropagation(),Y()}),lt=H.useCallback(function(Oe){return{value:Hu(R.values,Oe),error:Hu(R.errors,Oe),touched:!!Hu(R.touched,Oe),initialValue:Hu(A.current,Oe),initialTouched:!!Hu(g.current,Oe),initialError:Hu(p.current,Oe)}},[R.errors,R.touched,R.values]),ct=H.useCallback(function(Oe){return{setValue:function(At,Ft){return he(Oe,At,Ft)},setTouched:function(At,Ft){return fe(Oe,At,Ft)},setError:function(At){return ce(Oe,At)}}},[he,fe,ce]),Ze=H.useCallback(function(Oe){var ht=XQ(Oe),At=ht?Oe.name:Oe,Ft=Hu(R.values,At),Yt={name:At,value:Ft,onChange:ae,onBlur:Me};if(ht){var zr=Oe.type,ni=Oe.value,ii=Oe.as,Qs=Oe.multiple;zr==="checkbox"?ni===void 0?Yt.checked=!!Ft:(Yt.checked=!!(Array.isArray(Ft)&&~Ft.indexOf(ni)),Yt.value=ni):zr==="radio"?(Yt.checked=Ft===ni,Yt.value=ni):ii==="select"&&Qs&&(Yt.value=Yt.value||[],Yt.multiple=!0)}return Yt},[Me,ae,R.values]),Jt=H.useMemo(function(){return!M_(A.current,R.values)},[A.current,R.values]),Sn=H.useMemo(function(){return typeof s<"u"?Jt?R.errors&&Object.keys(R.errors).length===0:s!==!1&&Df(s)?s(d):s:R.errors&&Object.keys(R.errors).length===0},[s,Jt,R.errors,d]),jr=Go({},R,{initialValues:A.current,initialErrors:p.current,initialTouched:g.current,initialStatus:m.current,handleBlur:Me,handleChange:ae,handleReset:tt,handleSubmit:Se,resetForm:Y,setErrors:ne,setFormikState:ge,setFieldTouched:fe,setFieldValue:he,setFieldError:ce,setStatus:be,setSubmitting:Ve,setTouched:q,setValues:te,submitForm:Re,validateForm:V,validateField:G,isValid:Sn,dirty:Jt,unregisterField:X,registerField:K,getFieldProps:Ze,getFieldMeta:lt,getFieldHelpers:ct,validateOnBlur:i,validateOnChange:r,validateOnMount:o});return jr}function JOt(t){var e={};if(t.inner){if(t.inner.length===0)return xb(e,t.path,t.message);for(var i=t.inner,r=Array.isArray(i),n=0,i=r?i:i[Symbol.iterator]();;){var a;if(r){if(n>=i.length)break;a=i[n++]}else{if(n=i.next(),n.done)break;a=n.value}var o=a;Hu(e,o.path)||(e=xb(e,o.path,o.message))}}return e}function ePt(t,e,r,n){r===void 0&&(r=!1);var i=u$(t);return e[r?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function u$(t){var e=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=String(r);Array.isArray(t[n])===!0?e[n]=t[n].map(function(i){return Array.isArray(i)===!0||Cve(i)?u$(i):i!==""?i:void 0}):Cve(t[n])?e[n]=u$(t[n]):e[n]=t[n]!==""?t[n]:void 0}return e}function tPt(t,e,r){var n=t.slice();return e.forEach(function(a,o){if(typeof n[o]>"u"){var s=r.clone!==!1,l=s&&r.isMergeableObject(a);n[o]=l?i$(Array.isArray(a)?[]:{},a,r):a}else r.isMergeableObject(a)?n[o]=i$(t[o],a,r):t.indexOf(a)===-1&&n.push(a)}),n}function rPt(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function nPt(t,e,r){if(typeof t=="boolean")return!!e;var n=[],i=!1,a=-1;if(Array.isArray(t))n=t,a=t.indexOf(r),i=a>=0;else if(!r||r=="true"||r=="false")return!!e;return e&&r&&!i?n.concat(r):i?n.slice(0,a).concat(n.slice(a+1)):n}var iPt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?H.useLayoutEffect:H.useEffect;function Ef(t){var e=H.useRef(t);return iPt(function(){e.current=t}),H.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current.apply(void 0,n)},[])}var aPt=H.forwardRef(function(t,e){var r=t.action,n=dIe(t,["action"]),i=r??"#",a=$Ot(),o=a.handleReset,s=a.handleSubmit;return H.createElement("form",Go({onSubmit:s,ref:e,onReset:o,action:i},n))});
191aPt.displayName="Form";const Ux=({initialValues:t,validationSchema:e,onSubmit:r})=>{const n=qOt({initialValues:t,validationSchema:e,onSubmit:r,validateOnBlur:!0,validateOnChange:!0});return{...n,isFieldInvalid:i=>n.touched[i]&&!!n.errors[i],getFieldError:i=>n.touched[i]&&n.errors[i]?n.errors[i]:""}};function oPt(t){return t.includes("bulk-export")||t.includes("download")||t.includes("export")}const E0=(t,e="POST",r={},n={})=>{const i=r.responseType||(oPt(t)?"blob":"json");return o4e({mutationFn:async a=>{const o=n?`${t}?${new URLSearchParams(n)}`:t,s={responseType:i};switch(e){case"POST":return Ov.post(o,a,s);case"PUT":return Ov.put(o,a,s);case"DELETE":return Ov.delete(o,{data:a,...s});case"PATCH":return Ov.patch(o,a,s);default:throw new Error(`Unsupported request method: ${e}`)}},onSuccess:a=>{r.onSuccess&&r.onSuccess(a)},onError:a=>{r.onError&&r.onError(a)},onSettled:(a,o)=>{r.onSettled&&r.onSettled(a,o)}})},FH=({leftIcon:t=null,rightIcon:e=null,placeholder:r="",topLabel:n=null,bottomLabel:i=null,disabled:a=!1,name:o,value:s,onChange:l,onBlur:u,error:c,className:f,minDate:d,maxDate:A})=>E.jsxs("div",{className:"w-full",children:[n&&typeof n=="string"?E.jsx("span",{className:"text-sm text-primary-dark-blue font-medium",children:n}):n,E.jsxs("div",{className:`input-wrapper ${c?"border-red-500":"border-primary-border"} ${f}`,children:[t&&E.jsx(t,{size:20,className:"text-primary-dark-blue/30"}),E.jsx("input",{type:"date",name:o,value:s,onChange:l,onBlur:u,disabled:a,placeholder:r,min:d,max:A}),e&&E.jsx(e,{size:20,className:"text-primary-dark-blue/30"})]}),i&&typeof i=="string"?E.jsx("span",{className:"text-sm text-primary-dark-blue/30",children:i}):i,c&&E.jsx("span",{className:"text-red-500 text-sm",children:c})]}),sPt=({hierarchy:t,selectedDevices:e,onChange:r,selectionField:n="gateway_serial"})=>{const{t:i}=Vt(),[a,o]=H.useState([]),s=x=>n==="asset_name"?x.asset_name:x.gateway_serial,l=x=>{const T=x?.devices&&x.devices.map(R=>s(R)),B=x.children.flatMap(R=>l(R));return[...T||[],...B]},u=x=>{if(x?.devices&&x.devices.length===0&&x.children.length===0)return!1;const T=x?.devices&&x.devices.length===0||x?.devices&&x.devices.every(R=>e.includes(s(R))),B=x.children.length===0||x.children.every(R=>u(R));return!!T&&!!B},c=x=>{if(l(x).length===0)return!1;const T=x?.devices&&x.devices.some(R=>e.includes(s(R))),B=x.children.some(R=>c(R)||u(R));return(T||B)&&!u(x)},f=(x,T)=>{const B=l(x);if(B.length!==0)if(u(x)){const R=e.filter(I=>!B.includes(I));r(R)}else{const R=[...e.filter(I=>!B.includes(I)),...B];r(R)}},d=(x,T)=>{e.includes(x)?r(e.filter(B=>B!==x)):r([...e,x])},A=(x,T)=>{o(B=>B.includes(x)?B.filter(R=>R!==x):[...B,x])},p=(x,T=0)=>{const B=a.includes(x.id),R=x.children.length>0||x?.devices&&x.devices.length>0,I=u(x),N=c(x),F=l(x).length>0,Q=T*4;return E.jsxs("div",{className:"w-full bg-white",children:[E.jsx("div",{className:"flex items-center p-2 hover:bg-gray-50",style:{paddingLeft:`${Q+8}px`},children:E.jsxs("div",{className:"flex items-center cursor-pointer w-full",children:[E.jsxs("div",{className:"flex cursor-pointer w-4/5 max-w-[80%] items-center",onClick:j=>{j.stopPropagation(),f(x)},children:[E.jsx("input",{type:"checkbox",className:"form-checkbox h-4 w-4 text-indigo-600",checked:I,disabled:!F,ref:j=>{j&&(j.indeterminate=N&&!I)},onChange:j=>{j.stopPropagation(),f(x)}}),E.jsx("span",{className:`ml-2 font-medium ${F?"":"text-gray-400"}`,children:x.name}),E.jsx("span",{className:"ml-1 text-gray-500 text-sm",children:x.asset_count?x.asset_count>0&&`(${x.asset_count})`:""})]}),R&&E.jsx("button",{type:"button",onClick:j=>{j.stopPropagation(),A(x.id)},className:"text-primary-blackLighter focus:outline-none w-1/5 max-w-[20%] flex items-center justify-center","aria-label":B?"Collapse":"Expand",children:B?E.jsx(FK,{className:"h-4 w-4"}):E.jsx(Rye,{className:"h-4 w-4"})})]})}),B&&R&&E.jsxs("div",{children:[x.children.map(j=>p(j,T+1)),x.devices&&x.devices.map(j=>{const W=s(j);return E.jsx("div",{className:"flex items-center p-2 hover:bg-gray-50",style:{paddingLeft:`${(T+1)*4+24}px`},children:E.jsxs("div",{className:"flex items-center cursor-pointer w-full",onClick:V=>{V.stopPropagation(),d(W)},children:[E.jsx("input",{type:"checkbox",className:"form-checkbox h-4 w-4 text-indigo-600",checked:e.includes(W),onChange:V=>{V.stopPropagation(),d(W)}}),E.jsx("span",{className:"ml-2",children:j.asset_name})]})},j.id)})]})]},x.id)},g=(x,T)=>{if(x){const B=t.flatMap(l);r(B)}else r([])},m=t.flatMap(l),y=m.length>0&&m.every(x=>e.includes(x)),b=e.length>0&&!y;return E.jsxs("div",{className:"border border-primary-border rounded-md p-2 max-h-96 overflow-y-auto",children:[E.jsx("div",{className:"inline-flex items-center p-2 w-full hover:bg-gray-50 cursor-pointer border-b border-b-primary-border",children:E.jsxs("div",{className:"flex items-center w-full cursor-pointer",onClick:x=>{x.stopPropagation(),g(!y)},children:[E.jsx("input",{type:"checkbox",checked:y,ref:x=>{x&&(x.indeterminate=b)},onChange:x=>{x.stopPropagation(),g(x.target.checked)},className:"form-checkbox h-4 w-4 text-indigo-600"}),E.jsx("span",{className:"ml-2 text-sm font-medium",children:i("all_devices")})]})}),E.jsx("div",{className:"mt-1",children:t.map(x=>p(x))})]})};function ege({company_id:t}){const{EXPORT_PARAMETERS:e,t:r}=Vt(),[n,i]=H.useState([]),[a,o]=H.useState(["Voltage"]),s=C0().shape({startDate:NT().required("Start date is required"),endDate:NT().required("End date is required").min(ote("startDate"),"End date must be after start date"),gateway_serials:NRe().of(_n()).required("Select at least one device")}),{data:l,isLoading:u,error:c}=hr(["/classifications","fetchAssetClassifications",t],"/classifications/",{company_id:t},{}),f=E0("/bulk-export","POST",{responseType:"blob",onSuccess:y=>{try{if(!y)throw new Error("No data received from the server");const b=y instanceof Blob?y:new Blob([y],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(b.size===0)throw new Error("Generated file is empty");const x=window.URL.createObjectURL(b),T=document.createElement("a");T.style.display="none",T.href=x;let B;const R=y.headers?.["content-disposition"];if(R){const I=R.match(/filename="(.+?)"/);I?.length===2&&(B=I[1])}B||(B=`smartdevice_data_${n.slice(0,2).join("_").substring(0,30)+(n.length>2?"_more":"")}_${d.values.startDate}_to_${d.values.endDate}.xlsx`),T.download=B,document.body.appendChild(T),T.click(),setTimeout(()=>{window.URL.revokeObjectURL(x),document.body.removeChild(T)},100),Oi("Exported file downloaded successfully",{variant:"success"}),d.setSubmitting(!1),d.resetForm(),i([])}catch(b){console.error("Error processing export file:",b),Oi("There was an error processing the exported file. Please try again.",{variant:"error"}),d.setSubmitting(!1)}},onError:y=>{console.error("Export failed:",y),Oi(y.response?.data?.error||"Export failed. Please try again.",{variant:"error"}),d.setSubmitting(!1)}},{company_id:t}),d=Ux({initialValues:{startDate:"",endDate:"",gateway_serials:[]},validationSchema:s,onSubmit:y=>{if(n.length===0){Oi("Please select at least one parameter to export",{variant:"error"});return}f.mutate({start_date:y.startDate,end_date:y.endDate,gateway_serials:y.gateway_serials,parameters:n})}}),A=y=>{i(b=>b.includes(y)?b.filter(x=>x!==y):[...b,y])},p=y=>{o(b=>b.includes(y)?b.filter(x=>x!==y):[...b,y])},g=y=>{const b=e.find(T=>T.category===y)?.parameters.map(T=>T.value)||[],x=b.every(T=>n.includes(T));i(T=>x?T.filter(B=>!b.includes(B)):[...new Set([...T,...b])])},m=y=>{d.setFieldValue("gateway_serials",y)};return E.jsx("div",{className:"w-full flex items-start justify-start",children:E.jsx("div",{className:"flex flex-col items-start justify-center min-h-[60%] w-[70%] max-w-137.5 bg-[#FDFDFD] gap-4 p-8 rounded-[20px] border border-primary-border",children:E.jsxs("form",{onSubmit:d.handleSubmit,className:"flex flex-col w-full space-y-4 gap-6",children:[E.jsxs("div",{className:"w-full sm:max-w-62.5 flex flex-col gap-6",children:[E.jsx(FH,{topLabel:r("filter.start_date"),name:"startDate",value:d.values.startDate,onChange:d.handleChange,onBlur:d.handleBlur,error:d.getFieldError("startDate"),type:jv.DATE,className:"text-md! border-primary-border!"}),E.jsx(FH,{name:"endDate",topLabel:r("filter.end_date"),value:d.values.endDate,onChange:d.handleChange,error:d.getFieldError("endDate"),type:jv.DATE,className:"text-md! border-primary-border!"}),E.jsxs("div",{className:"w-full",children:[E.jsx("label",{className:"block text-md text-primary-dark-blue font-medium mb-1",children:r("devices")}),u?E.jsx("div",{className:"",children:E.jsx(qA,{})}):c?E.jsx("span",{className:"text-red-500 text-sm font-medium",children:c}):E.jsx(sPt,{hierarchy:l||[],selectedDevices:d.values.gateway_serials,onChange:m}),d.errors.gateway_serials&&d.touched.gateway_serials&&E.jsx("p",{className:"text-red-500 text-xs mt-1",children:d.errors.gateway_serials})]})]}),E.jsxs("div",{className:"w-full",children:[E.jsxs("div",{className:"flex justify-between items-center mb-2",children:[E.jsxs("h3",{className:"text-md text-primary-dark-blue font-medium",children:[r("instruction.select_details"),n.length>0&&` (${n.length})`]}),n.length>0&&E.jsx("button",{type:"button",onClick:()=>i([]),className:"text-sm text-blue-600 hover:text-blue-800",children:"Clear all"})]}),E.jsx("div",{className:"mt-2 divide-y divide-primary-border border border-primary-border rounded-md max-h-100 overflow-y-auto",children:e.map(y=>E.jsxs("div",{className:"p-2",children:[E.jsxs("div",{className:"flex items-center justify-between cursor-pointer p-1 hover:bg-gray-50",onClick:()=>p(y.category),children:[E.jsxs("div",{className:"flex items-center",children:[E.jsx("input",{type:"checkbox",className:"mr-2 h-4 w-4",checked:y.parameters.length>0&&y.parameters.every(b=>n.includes(b.value)),onChange:()=>g(y.category),onClick:b=>b.stopPropagation()}),E.jsx("span",{className:"font-normal",children:y.category})]}),E.jsx("span",{children:a.includes(y.category)?"−":"+"})]}),a.includes(y.category)&&E.jsx("div",{className:"pl-6 mt-1 flex flex-col gap-1",children:y.parameters.map(b=>E.jsxs("label",{className:"inline-flex items-center",children:[E.jsx("input",{type:"checkbox",checked:n.includes(b.value),onChange:()=>A(b.value),className:"form-checkbox h-4 w-4 text-indigo-600"}),E.jsx("span",{className:"ml-2 text-sm",children:b.name})]},b.value))})]},y.category))})]}),E.jsxs("div",{className:"flex gap-4",children:[E.jsx(zi,{text:r("cancel"),type:bi.SECONDARY}),E.jsx(zi,{text:d.isSubmitting?"":r("export_data"),type:bi.PRIMARY,disabled:d.isSubmitting||n.length===0||!d.values.gateway_serials.length||!d.values.startDate||!d.values.endDate,loader:{loading:d.isSubmitting,height:4,width:4},handleClick:d.handleSubmit})]})]})})})}const lPt=({hierarchy:t,selectedDevices:e,onChange:r,selectionField:n="gateway_serial",placeholder:i="Search and select devices...",className:a=""})=>{const[o,s]=H.useState(!1),[l,u]=H.useState(""),[c,f]=H.useState([]),d=H.useRef(null),A=H.useRef(null),p=G=>n==="asset_name"?G.asset_name:G.gateway_serial,g=G=>G.asset_name||G.gateway_serial,m=G=>{const K=G?.devices&&G.devices.map(q=>p(q)),X=G.children.flatMap(q=>m(q));return[...K||[],...X]},b=(G=>{const K=[],X=q=>
191{q.devices&&K.push(...q.devices),q.children.forEach(X)};return G.forEach(X),K})(t).filter(G=>g(G).toLowerCase().includes(l.toLowerCase())),x=G=>{if(G?.devices&&G.devices.length===0&&G.children.length===0)return!1;const K=G?.devices&&G.devices.length===0||G?.devices&&G.devices.every(q=>e.includes(p(q))),X=G.children.length===0||G.children.every(q=>x(q));return!!K&&!!X},T=G=>{if(m(G).length===0)return!1;const K=G?.devices&&G.devices.some(q=>e.includes(p(q))),X=G.children.some(q=>T(q)||x(q));return(K||X)&&!x(G)},B=(G,K)=>{const X=m(G);if(X.length!==0)if(x(G)){const q=e.filter(ne=>!X.includes(ne));r(q)}else{const q=[...e.filter(ne=>!X.includes(ne)),...X];r(q)}},R=(G,K)=>{e.includes(G)?r(e.filter(X=>X!==G)):r([...e,G])},I=(G,K)=>{f(X=>X.includes(G)?X.filter(q=>q!==G):[...X,G])},N=(G,K)=>K?G.reduce((X,q)=>{const ne=q.name.toLowerCase().includes(K.toLowerCase()),te=q.devices?.filter(he=>g(he).toLowerCase().includes(K.toLowerCase()))||[],ce=N(q.children,K);return(ne||te.length>0||ce.length>0)&&X.push({...q,devices:te,children:ce}),X},[]):G,F=N(t,l),Q=(G,K=0)=>{const X=c.includes(G.id),q=G.children.length>0||G?.devices&&G.devices.length>0,ne=x(G),te=T(G),ce=m(G).length>0,he=K*4;return E.jsxs("div",{className:"w-full",children:[E.jsx("div",{className:"flex items-center p-2 hover:bg-gray-50",style:{paddingLeft:`${he+8}px`},children:E.jsxs("div",{className:"flex items-center cursor-pointer w-full",children:[E.jsxs("div",{className:"flex cursor-pointer w-4/5 max-w-[80%] items-center",onClick:ve=>{ve.stopPropagation(),B(G)},children:[E.jsx("input",{type:"checkbox",className:"form-checkbox h-4 w-4 text-indigo-600",checked:ne,disabled:!ce,ref:ve=>{ve&&(ve.indeterminate=te&&!ne)},onChange:ve=>{ve.stopPropagation(),B(G)}}),E.jsx("span",{className:`ml-2 font-medium text-sm ${ce?"":"text-gray-400"}`,children:G.name}),E.jsx("span",{className:"ml-1 text-gray-500 text-xs",children:G.asset_count?G.asset_count>0&&`(${G.asset_count})`:""})]}),q&&E.jsx("button",{type:"button",onClick:ve=>{ve.stopPropagation(),I(G.id)},className:"text-gray-600 focus:outline-none w-1/5 max-w-[20%] flex items-center justify-center","aria-label":X?"Collapse":"Expand",children:X?E.jsx(FK,{className:"h-3 w-3"}):E.jsx(Rye,{className:"h-3 w-3"})})]})}),X&&q&&E.jsxs("div",{children:[G.children.map(ve=>Q(ve,K+1)),G.devices&&G.devices.map(ve=>{const ae=p(ve);return E.jsx("div",{className:"flex items-center p-2 hover:bg-gray-50",style:{paddingLeft:`${(K+1)*4+24}px`},children:E.jsxs("div",{className:"flex items-center cursor-pointer w-full",onClick:fe=>{fe.stopPropagation(),R(ae)},children:[E.jsx("input",{type:"checkbox",className:"form-checkbox h-4 w-4 text-indigo-600",checked:e.includes(ae),onChange:fe=>{fe.stopPropagation(),R(ae)}}),E.jsx("span",{className:"ml-2 text-sm",children:g(ve)})]})},ve.id)})]})]},G.id)},j=(G,K)=>{if(G){const X=t.flatMap(m);r(X)}else r([])},W=t.flatMap(m),V=W.length>0&&W.every(G=>e.includes(G)),Y=e.length>0&&!V;return H.useEffect(()=>{const G=K=>{d.current&&!d.current.contains(K.target)&&s(!1)};return document.addEventListener("mousedown",G),()=>{document.removeEventListener("mousedown",G)}},[]),H.useEffect(()=>{o&&A.current&&A.current.focus()},[o]),E.jsxs("div",{className:`relative ${a}`,ref:d,children:[E.jsxs("button",{type:"button",onClick:()=>s(!o),className:"min-w-50 h-8 flex items-center justify-between py-1 px-3 rounded-full bg-[#E5E5E5] text-primary-dark-blue text-[10px] cursor-pointer hover:bg-gray-200 transition-colors",children:[E.jsx("span",{className:"truncate",children:e.length>0?`${e.length} device${e.length!==1?"s":""} selected`:i}),E.jsx(FK,{className:"h-3 w-3 ml-2 shrink-0"})]}),o&&E.jsxs("div",{className:"absolute top-full left-0 mt-1 w-80 bg-white border border-gray-200 rounded-md shadow-lg z-50 max-h-96 flex flex-col",children:[E.jsx("div",{className:"p-3 border-b border-gray-200",children:E.jsxs("div",{className:"relative",children:[E.jsx(zHe,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),E.jsx("input",{ref:A,type:"text",placeholder:"Search devices...",value:l,onChange:G=>u(G.target.value),className:"w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]})}),E.jsxs("div",{className:"overflow-y-auto flex-1",children:[E.jsx("div",{className:"border-b border-gray-100",children:E.jsxs("div",{className:"flex items-center p-3 hover:bg-gray-50 cursor-pointer",onClick:G=>{G.stopPropagation(),j(!V)},children:[E.jsx("input",{type:"checkbox",checked:V,ref:G=>{G&&(G.indeterminate=Y)},onChange:G=>{G.stopPropagation(),j(G.target.checked)},className:"form-checkbox h-4 w-4 text-indigo-600"}),E.jsx("span",{className:"ml-2 text-sm font-medium",children:"All Devices"})]})}),E.jsx("div",{className:"py-1",children:l?b.length>0?b.map(G=>{const K=p(G);return E.jsxs("div",{className:"flex items-center p-3 hover:bg-gray-50 cursor-pointer",onClick:X=>{X.stopPropagation(),R(K)},children:[E.jsx("input",{type:"checkbox",className:"form-checkbox h-4 w-4 text-indigo-600",checked:e.includes(K),onChange:X=>{X.stopPropagation(),R(K)}}),E.jsx("span",{className:"ml-2 text-sm",children:g(G)})]},G.id)}):E.jsx("div",{className:"p-3 text-gray-500 text-sm",children:"No devices found"}):F.map(G=>Q(G))})]})]})]})},uPt=({selectedDevices:t,onRemoveDevice:e,className:r="",maxVisible:n=5})=>{if(t.length===0)return null;const i=t.slice(0,n),a=t.length-n;return E.jsxs("div",{className:`flex flex-wrap items-center gap-2 ${r}`,children:[i.map(o=>E.jsxs("div",{className:"inline-flex items-center bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full border border-blue-200",children:[E.jsx("span",{className:"mr-1 truncate max-w-30",title:o,children:o}),E.jsx("button",{type:"button",onClick:s=>{s.stopPropagation(),e(o)},className:"ml-1 hover:bg-blue-200 rounded-full p-0.5 transition-colors","aria-label":`Remove ${o}`,children:E.jsx(jHe,{className:"h-2.5 w-2.5"})})]},o)),a>0&&E.jsx("div",{className:"inline-flex items-center bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full border border-gray-200",children:E.jsxs("span",{children:["+",a," more"]})}),t.length>0&&E.jsx("button",{type:"button",onClick:()=>{t.forEach(o=>e(o))},className:"text-xs text-red-500 hover:text-red-700 underline transition-colors",children:"Clear all"})]})},cPt=({status:t})=>{const e={"warning-alerts":{text:"Warning",icon:E.jsx(g7e,{className:"w-3 h-3 mr-1"}),bgColor:"bg-yellow-100",textColor:"text-yellow-800"},"critical-alerts-daily":{text:"Critical",icon:E.jsx(fbe,{className:"w-3 h-3 mr-1"}),bgColor:"bg-red-100",textColor:"text-red-800"}},{text:r,icon:n,bgColor:i,textColor:a}=e[t];return E.jsxs("span",{className:`inline-flex items-center ${i} ${a} rounded-2xl px-3 py-1 text-xs font-normal`,children:[n,r]})},fPt=({company_id:t})=>{const{t:e}=Vt(),[r,n]=ue.useState(1),i=[{key:e("alert.critical"),value:"critical-alerts-daily"},{key:e("alert.warning"),value:"warning-alerts"}],[a,o]=ue.useState([]),[s,l]=ue.useState("warning-alerts"),[u,c]=ue.useState(a),[f,d]=ue.useState("warning-alerts"),A=[{header:e("date_time"),accessorKey:"date",cell:({row:V})=>{const Y=V.original?.last_alarm_time||V?.original?.updated_at||V?.original?.sent_at,G=Ah(Y);return E.jsx("span",{children:G})}},{header:e("alert.site"),accessorKey:"site_id",cell:({row:V})=>{const Y=V.original?.site_id||"-";return E.jsx("span",{children:Y})}},{header:e("alert.threshold"),accessorKey:"threshold",cell:({row:V})=>{const Y=V.original?.threshold||0;return E.jsx("span",{children:Y})}},{header:e("alert.type"),accessorKey:"type",cell:()=>{const V=s;return E.jsx(cPt,{status:V})}},{header:e("alert.zone"),accessorKey:"zone",cell:({row:V})=>{const Y=V.original?.region||"-";return E.jsx("span",{children:Y})}},{header:e("alert.detected_value"),accessorKey:"detected_value",cell:({row:V})=>{const Y=V.original?.max_value||V.original?.current_value||0;return E.jsx("span",{children:Y})}},{header:e("alert.parameter"),accessorKey:"parameter",cell:({row:V})=>{const Y=V.original?.metric_type||"-";return E.jsx("span",{children:Y})}}],{data:p,isLoading:g}=hr(["/cloud-watch-alerts","fetchAllAlerts",t,a,s],"/fetch-cloudwatch-alerts",{page:1,page_size:Qi,company_id:t,site_id:a,table_name:s},{...ri,refetchInterval:1e3*60*3}),m=g,y=p?.results,b=V=>{n(V)},x=V=>{d(V.target.value)},T=V=>{c(V)},B=V=>{const Y=a.filter(G=>G!==V);o(Y),c(G=>G.filter(K=>K!==V))},R=()=>{l(f),o(u),n(1)},I=()=>{c([...a]),d(s)},N=f!==s||JSON.stringify(u.sort())!==JSON.stringify(a.sort()),{data:F,isLoading:Q,error:j}=hr(["/classifications","fetchAssetClassifications",t],"/classifications/",{company_id:t},{});H.useEffect(()=>{c([...a])},[a]);const W=p0({count:p?.count,currentPage:r,itemsPerPage:Qi});return E.jsxs(nr,{className:"lg:min-w-137.5 flex-1 items-start!",children:[E.jsxs("div",{className:"w-full flex flex-col sm:flex-row justify-between",children:[E.jsx("h3",{className:"heading-regular self-start mb-5",children:e("alert.history")}),E.jsxs("div",{className:"p-3 border-b border-gray-200 ",children:[E.jsxs("div",{className:"flex flex-wrap gap-3 items-start mb-3 ",children:[E.jsx("select",{value:f,onChange:x,className:"min-w-30 h-8 cursor-pointer flex items-center justify-center py-1 px-2 rounded-full bg-[#E5E5E5] text-primary-dark-blue text-[10px]",children:i.map(V=>E.jsx("option",{value:V.value,className:"text-primary-blackLight cursor-pointer",children:V.key}
191,V.key))}),Q?E.jsx("div",{className:"flex items-center",children:E.jsx(qA,{})}):j?E.jsx("p",{className:"text-red-500 text-xs",children:e("error_msg.unable_to_fetch_zone")}):F?E.jsx(lPt,{hierarchy:F||[],selectedDevices:u,onChange:T,selectionField:"asset_name",placeholder:"Select devices...",className:""}):null,E.jsxs("div",{className:"flex gap-2",children:[E.jsx(zi,{type:bi.PRIMARY,text:"Apply Filters",handleClick:R,disabled:!N,className:" text-xs font-medium"}),N&&E.jsx("button",{onClick:I,className:"px-4 py-1 rounded text-xs font-medium bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors",children:"Reset"})]})]}),a.length>0&&E.jsxs("div",{className:"mb-2 min-w-37.5",children:[E.jsx("div",{className:"text-xs text-gray-600 mb-1",children:"Applied Filters:"}),E.jsx(uPt,{selectedDevices:a,onRemoveDevice:B,maxVisible:5})]})]})]}),E.jsx(wg,{isLoading:m,data:y,columns:A,pagination:W,currentPage:r,onPageChange:b,emptyStateImage:"",emptyStateText:void 0})]})},dPt=["Raw data"];function hPt({company_id:t}){const e=a=>{switch(a){case"Raw data":return E.jsx(ege,{company_id:t});case"Alerts":return E.jsx(fPt,{company_id:t});default:return E.jsx(ege,{company_id:t})}},[r,n]=ue.useState("Raw data"),i=a=>{n(a)};return E.jsxs("div",{className:"flex flex-col w-full",style:{gap:qr},children:[E.jsx("div",{className:"w-full flex flex-col sm:flex-row justify-between border-b border-primary-border",children:E.jsx("div",{className:"flex gap-4 items-end min-w-[70%]",children:dPt.map((a,o)=>E.jsx("span",{onClick:()=>i(a),style:{borderBottomWidth:r===a?"5px":"0px",borderColor:r===a?Bt.PRIMARY:"transparent",fontWeight:r===a?"bold":"normal"},className:"h-10 cursor-pointer border-b  text-sm",children:a},o))})}),E.jsx("div",{className:"w-full",children:e(r)})]})}function APt(){const{id:t}=du();return E.jsx(hPt,{company_id:t})}function AIe({company_id:t}){const{FEEDBACK_MESSAGES:e,t:r}=Vt(),{startDate:n,endDate:i}=Au(),[a,o]=H.useState(null),s=a?.start??n,l=a?.end??i,{data:u,isLoading:c,error:f,isError:d}=hr(["/finance","fetchExpectedRevenue",s,l,t],"/finance/expected-revenue-chart",{company_id:t,start_date:s,end_date:l},{...ri}),A=H.useMemo(()=>u?.dataset?u.dataset.slice(1).map(([y,b])=>({title:y,revenue:b})):[],[u]),p=H.useMemo(()=>A.map(y=>y.revenue),[A]),g=H.useMemo(()=>A.map(y=>y.title),[A]),m=H.useMemo(()=>({grid:{left:"5%",right:"15%",top:"3%",bottom:"3%",containLabel:!0},xAxis:{max:"dataMax"},yAxis:{type:"category",data:g.length>
1910?g:[e.NO_DATA],inverse:!0,animationDuration:300,animationDurationUpdate:300,axisLabel:{fontWeight:"bold",fontSize:11,interval:0,width:120,overflow:"truncate",align:"right"}},series:[{realtimeSort:!0,name:r("chart.power_consumption"),type:"bar",color:"#9fdef1",data:p,label:{show:!0,position:"right",valueAnimation:!0,formatter:y=>`${Sme(y.value)} ${u?.currency??""}`}}],animationDuration:0,animationDurationUpdate:1e3,animationEasing:"linear"}),[g,p,u,r,e.NO_DATA]);return E.jsxs(nr,{className:"w-full flex flex-col flex-1 min-w-0 h-115 min-h-0! lg:h-full",children:[E.jsx(Dg,{title:r("chart.expected_revenue"),startDate:s,endDate:l,onRangeSelect:(y,b)=>o({start:y,end:b}),showDateButton:!d,disabled:c}),E.jsx("div",{className:"flex flex-col flex-1 min-h-0 w-full relative mt-4 overflow-y-auto",children:c?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):f?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:f.response?.data?.detail?E.jsx(hu,{message:e.NO_DEVICE,className:"h-full!"}):E.jsx(Ci,{message:e.ERROR})}):A.length===0?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(Us,{message:e.NO_DATA})}):E.jsx("div",{className:"h-full w-full p-0",children:E.jsx(Sl,{option:m,notMerge:!0,lazyUpdate:!0,style:{height:`${Math.max(A.length*30,300)}px`,width:"100%"}})})})]})}function vte({company_id:t}){const{translatedTitles:e,mapResponseToLabelValue:r,INSTATAENOUS_KPIS:n,excludeCards:i}=Vt(),{startDate:a,endDate:o}=Au(),s=vx(),{data:l,isLoading:u,error:c}=hr(["/manager","fetchManager",t],"/manager/cards-data",{card_type:"manager_home",company_id:t,start_date:a,end_date:o},{...ri}),f=u,d=l?r(l):[];return E.jsxs("div",{className:"flex flex-col items-start justify-center w-full",style:{gap:qr},children:[E.jsx("div",{className:"grid w-full grid-cols-[repeat(auto-fit,minmax(200px,1fr))]",style:{gap:qr},children:f?Array.from({length:4}).map((A,p)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(Uc,{})},isLoading:!0},`loading-${p}`)):c?Array.from({length:4}).map((A,p)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(Uc,{})},isError:!0,isLoading:!1},p)):d.map((A,p)=>!i.includes(A.label)&&E.jsx("div",{children:E.jsx(su,{stats:{label:A.label,value:A.value,type:VT(A.label,e),description:n.includes(A.label)?E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:Ah(l?.time,s)}):n.includes(A.label)?null:E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:ZR(a,o,s)})},icon:{variant:"blue",icon:A.label.toLowerCase().includes("revenue")?E.jsx(ou,{}):E.jsx(Uc,{})},isError:!1,isLoading:!1})},p))}),E.jsxs("div",{className:"flex flex-col xl:flex-row flex-wrap justify-between w-full",style:{gap:qr},children:[E.jsx("div",{className:"flex flex-col  justify-center w-full min-h-115",children:E.jsx(mRe,{company_id:t})}),E.jsxs("div",{className:"w-full  flex flex-col lg:flex-row max-w-full overflow-x-hidden lg:h-115",style:{gap:qr},children:[E.jsx(AIe,{company_id:t}),E.jsx(Jee,{company_id:t})]})]})]})}function pPt(){const{id:t}=du();return E.jsx(vte,{company_id:t})}const pIe=({queryKey:t,route:e,params:r})=>{const{t:n,FEEDBACK_MESSAGES:i}=Vt(),{startDate:a,endDate:o}=Au(),[s,l]=H.useState(null),u=s?.start??a,c=s?.end??o,{data:f,isLoading:d,error:A,isError:p}=hr([...t,u,c],e,{...r,start_date:u,end_date:c},{...ri}),g=H.useMemo(()=>!f?.dataset||f.dataset.length<=1?{dataset:[["month","collection","billed_energy"]]}:{dataset:f.dataset.map((T,B)=>{if(B===0)return T;const[R,I,N]=T;return[n(`month.${R}`),I,N]})},[f,n]),m=H.useMemo(()=>{const T=g.dataset.slice(1).flatMap(F=>[F[1],F[2]]).filter(F=>typeof F=="number"&&!isNaN(F));if(!T.length)return{min:0,max:void 0,interval:void 0};const B=Math.min(...T)>0?Math.min(...T):0;let R=Math.max(...T);const I=(R-B)*.1;R=Math.ceil(R+I);const N=Math.ceil((R-B)/5)||1;return{min:B,max:R,interval:N}},[g]),y=H.useMemo(()=>({dataset:{source:g.dataset},xAxis:{type:"category",name:n("chart.month"),nameLocation:"middle",nameGap:30,axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},boundaryGap:!1}
191,yAxis:{type:"value",axisLine:{show:!0,lineStyle:{color:"#000",width:.8}},name:n("finance.amount"),nameLocation:"middle",nameGap:80,min:m.min,max:m.max,splitLine:{lineStyle:{type:"dashed",color:"#eee"}}},series:[{name:n("chart.collection_label"),type:"line",encode:{x:"month",y:"collection"},smooth:!0,symbol:"circle",symbolSize:6,itemStyle:{color:Bt.BLACK},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(0,0,0,0.2)"},{offset:1,color:"rgba(0,0,0,0)"}]}}},{name:n("chart.billed_energy_label"),type:"line",encode:{x:"month",y:"billed_energy"},smooth:!0,symbol:"circle",symbolSize:6,itemStyle:{color:"#F7941D"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(247, 148, 29, 0.2)"},{offset:1,color:"rgba(247, 148, 29, 0)"}]}}}],tooltip:{trigger:"axis",formatter:x=>{let T=`<strong>${x[0].axisValue}</strong><br/>`;return x.forEach(B=>{T+=`${B.marker} ${B.seriesName}: ${B.data[B.seriesIndex+1]?.toLocaleString()}<br/>`}),T}}}),[g,m,n]),b=[{text:n("chart.collection_label"),color:Bt.BLACK},{text:n("chart.billed_energy_label"),color:"#F7941D"}];return E.jsxs(nr,{className:"w-full flex flex-col flex-1 min-h-115!",children:[E.jsx(Dg,{title:n("chart.financial_performance_label"),startDate:u,endDate:c,onRangeSelect:(x,T)=>l({start:x,end:T}),showDateButton:!p,disabled:d}),!p&&g.dataset.length>1&&E.jsx("div",{className:"flex gap-2 justify-end py-2",children:b.map((x,T)=>E.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-primary-blackLighter2 px-3 py-1",children:[E.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:x.color}}),E.jsx("span",{className:"text-[11px] font-medium",children:x.text})]},T))}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative mt-2",children:d?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):A?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(Ci,{message:i.ERROR})}):g.dataset.length<=1?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(Us,{message:i.NO_DATA})}):E.jsx("div",{className:"h-full w-full",children:E.jsx(Sl,{option:y,notMerge:!0,lazyUpdate:!0,style:{height:"100%",width:"100%"}})})})]})},vPt=({company_id:t})=>{const{t:e,FEEDBACK_MESSAGES:r}=Vt(),n=A=>{const p=new Date,g=p.getFullYear();return A>p.getMonth()+1?`${g-1}-${String(A).padStart(2,"0")}-01`:`${g}-${String(A).padStart(2,"0")}-01`},i=new Date().getMonth()+1,a=H.useMemo(()=>[{key:e("month.jan"),num:1},{key:e("month.feb"),num:2},{key:e("month.mar"),num:3},{key:e("month.apr"),num:4},{key:e("month.may"),num:5},{key:e("month.jun"),num:6},{key:e("month.jul"),num:7},{key:e("month.aug"),num:8},{key:e("month.sep"),num:9},{key:e("month.oct"),num:10},{key:e("month.nov"),num:11},{key:e("month.dec"),num:12}].filter(p=>p.num<=i).map(p=>({key:p.key,value:n(p.num)})),[e,i]),o=n(i),[s,l]=ue.useState(()=>a.find(A=>A.value===o)?.value||o),{data:u,isLoading:c,error:f}=hr(["customerBreakdown",t,s],"finance/monthly-device-payment-status",{company_id:t,start_date:s,end_date:s}),d={...qf({chartName:e("chart.site_monitored"),top:"0px",right:"5px"}),tooltip:{trigger:"item",formatter:A=>`${A.name}: ${A.value}`},legend:{top:"80%",left:"center",data:u?.dataset.map(A=>`${A.key==="paying"?e("chart.label_paying"):e("chart.label_defaulting")} (${A.value})`)},series:[{type:"pie",data:u?.dataset.map(A=>({...A,name:`${A.key==="paying"?e("chart.label_paying"):e("chart.label_defaulting")} (${A.value})`,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:6,color:(A.key==="paying"?e("chart.label_paying"):e("chart.label_defaulting")).includes(e("chart.label_paying"))?"#FFC000":"#7C878E"}})),radius:["40%","70%"],center:["50%","35%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!1}},labelLine:{show:!1}}]};return E.jsxs(nr,{className:"w-full flex flex-col flex-1 h-full",children:[E.jsxs("div",{className:"flex gap-2 w-full",children:[E.jsx("h3",{className:"heading-regular",children:e("chart.customer_breakdown")}),E.jsx("select",{value:s,onChange:A=>l(A.target.value),className:"min-w-30  cursor-pointer flex items-center justify-center p-2 rounded-full bg-[#E5E5E5] text-primary-blackMain text-[10px]",children:a.map(A=>E.jsx("option",{value:A.value,className:"text-primary-blackLight cursor-pointer",children:A.key},A.key))})]}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative aspect-3/2",children:c?
191E.jsx("div",{className:"flex justify-center items-center h-full aspect-3/2",children:E.jsx(mn,{})}):f?f.response.data.detail?E.jsx("div",{className:"flex justify-center items-center h-full aspect-3/2",children:E.jsx(hu,{message:r.NO_DEVICE})}):E.jsx("div",{className:"flex justify-center items-center h-full aspect-3/2",children:E.jsx(Ci,{message:r.ERROR})}):u?.dataset?.length?E.jsxs("div",{className:"w-full relative h-full",children:[E.jsxs("div",{className:"absolute inset-0 top-[-15%] h-full flex flex-col items-center justify-center",children:[E.jsx("span",{className:"text-3xl font-semibold",children:u?.total}),E.jsx("span",{className:"text-md font-semibold",children:e("site_details.location")})]}),E.jsx(Sl,{option:d,style:{height:"100%",width:"100%"}})]}):E.jsx(Us,{message:r.NO_DATA})})]})};function vIe({company_id:t}){const{mapResponseToLabelValue:e,translatedTitles:r,t:n,INSTATAENOUS_KPIS:i}=Vt(),{setMonth:a,startDate:o,endDate:s}=Au(),l=[n("readings.unknown")],u=vx();H.useEffect(()=>{a()},[a]);const{data:c,isLoading:f,error:d}=hr(["/finance","fetchFinanceHome",t,o,s],"/finance/cards-data",{card_type:"finance_home",company_id:t,start_date:o,end_date:s}
191,{...ri,enabled:!!o&&!!s}),A=f,p=c?e(c):[],g=(m,y)=>A?Array.from({length:y}).map((b,x)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(ou,{})},isLoading:!0},`loading-${x}`)):d?Array.from({length:4}).map((b,x)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(ou,{})},isError:!0,isLoading:!1},x)):m.map((b,x)=>{if(l.includes(b.label))return null;const T=`previous_${b.key}`,B=c?c[T]??null:null;return E.jsx("div",{children:E.jsx(su,{stats:{label:b.label,value:b.value,type:VT(b.label,r),description:i.includes(b.label)?E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:Ah(c?.time,u)}):i.includes(b.label)?null:E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:ZR(o,s,u)}),currency:c?.currency,previousValue:B,note:ome.includes(b.key)?n("readings.excludes_substation"):void 0},icon:{variant:"blue",icon:b.label.toLowerCase().includes("revenue")?E.jsx(ou,{}):E.jsx(Uc,{})},isError:!1,isLoading:!1})},`stat-${x}`)});return!o||!s?E.jsx("div",{className:"w-full flex place-items-center justify-center",children:E.jsx(mn,{})}):E.jsxs("div",{className:"flex flex-col items-start justify-center w-full",style:{gap:qr},children:[E.jsx("div",{className:"grid w-full",style:{gap:qr,gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))"},children:g(p,4)}),E.jsx("div",{className:"flex flex-wrap justify-center w-full",style:{gap:qr},children:E.jsx(pIe,{queryKey:["finance","fetchFinancialPerformance",t],route:"/finance/monthly-collection-billing",params:{company_id:t}})}),E.jsxs("div",{className:"flex flex-col lg:flex-row w-full lg:h-105",style:{gap:qr},children:[E.jsx("div",{className:"lg:max-w-112.5 w-full h-full",children:E.jsx(vPt,{company_id:t})}),E.jsx(AIe,{company_id:t})]}),E.jsx("div",{className:"flex flex-col lg:flex-row w-full lg:h-115",style:{gap:qr},children:E.jsx(Jee,{company_id:t})})]})}function gPt(){const{id:t}=du();return E.jsx(vIe,{company_id:t})}const mPt=C0().shape({startDate:NT().required("Start date is required"),endDate:NT().required("End date is required").min(ote("startDate"),"End date must be after start date").max(new Date,"End date cannot be in the future").test("max-31-days","Date range cannot exceed 31 days",function(t){const{startDate:e}=this.parent;return!e||!t?!0:(new Date(t).getTime()-new Date(e).getTime())/(1e3*60*60*24)>31?(Oi("Date range cannot exceed 31 days",{variant:"error"}),!1):!0}).test("not-in-future","End date cannot be in the future",function(t){return t&&new Date(t)>new Date?(Oi("End date cannot be in the future",{variant:"error"}),!1):!0})});function yPt({siteId:t,siteName:e}){const{t:r}=Vt(),[n,i]=H.useState(!1),{job:a,start:o,expand:s}=W5(),l=a?.status==="generating",u=Ux({initialValues:{startDate:"",endDate:""},validationSchema:mPt,onSubmit:c=>{o({siteId:t,siteName:e||"Site",startDate:c.startDate,endDate:c.endDate}),u.resetForm(),i(!1)}});return E.jsxs(E.Fragment,{children:[E.jsx("button",{type:"button",onClick:()=>l?s():i(!0),title:l?"Show bill progress":"Generate bill","aria-label":l?"Show bill progress":"Generate bill",className:"fixed bottom-6 right-6 h-20 w-20 cursor-pointer shadow-lg hover:scale-105 transition-transform rounded-full bg-primary-yellow flex items-center justify-center",children:l?E.jsx(YX,{className:"text-white animate-spin",size:40}):E.jsx(Nat,{className:"text-white",size:40})}),E.jsxs(m0,{isOpen:n,onClose:()=>i(!1),children:[E.jsxs("h2",{className:"text-lg font-bold text-primary-dark-blue text-center",children:["Generate Bill for ",e]}),E.jsx("form",{onSubmit:u.handleSubmit,className:"flex flex-col w-full space-y-4 gap-6",children:E.jsxs("div",{className:"w-full flex gap-6 mt-6",children:[E.jsx(FH,{topLabel:r("filter.start_date"),name:"startDate",value:u.values.startDate,onChange:u.handleChange,onBlur:u.handleBlur,error:u.getFieldError("startDate"),type:jv.DATE,className:"text-md! border-primary-border!"}),E.jsx(FH,{name:"endDate",topLabel:r("filter.end_date"),value:u.values.endDate,onChange:u.handleChange,onBlur:u.handleBlur,error:u.getFieldError("endDate"),type:jv.DATE,className:"text-md! border-primary-border!"})]})}),E.jsxs("div",{className:"flex gap-4 items-center justify-center mt-4 w-full *:sm:w-1/2",children:[E.jsx(zi,{text:"Generate Bill",type:bi.PRIMARY,handleClick:u.handleSubmit}),E.jsx(zi,{text:"Cancel",type:bi.SECONDARY,handleClick:()=>i(!1)})]})]})]})}function wPt({site_id:t}){const{FEEDBACK_MESSAGES:e,t:r}=Vt(),{startDate:n,endDate:i}=Au(),[a,o]=H.useState(null),s=a?.start??n,l=a?.end??i,{data:u,isLoading:c,error:f}=hr(["/finance","fetchDailyConsumption",s,l],`/finance/daily-consumption/${t}`,{start_date:s,end_date:l},{...ri}),d=u?u.map(b=>({title:b.date,consumption:b.consumption})):[],A=c,p=d.map(b=>b.consumption),g=d.map(b=>b.title),m=Math.max(...p,0),y={grid:{left:"5%",right:"5%",top:"10%",bottom:"15%",containLabel:!0},xAxis:{type:"category",data:g.length>
1910?g:[e.NO_DATA],axisLabel:{fontWeight:"bold",fontSize:11,interval:0,rotate:45,overflow:"truncate"}},yAxis:{type:"value",max:"dataMax",axisLabel:{fontWeight:"bold",fontSize:11}},series:[{type:"bar",data:p.map(()=>m),barGap:"-100%",barWidth:"40%",itemStyle:{color:"#e0e0e0",borderRadius:[8,8,8,8]},silent:!0},{name:r("chart.daily_consumption"),type:"bar",data:p,barWidth:"40%",itemStyle:{color:Bt.PRIMARY,borderRadius:[8,8,8,8]},z:10}],tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(b){return`<div style="font-size:10px">${b[1].value.toLocaleString()} kWh</div>`},textStyle:{fontSize:10}},animationDuration:0,animationDurationUpdate:3e3,animationEasing:"linear",animationEasingUpdate:"linear"};return E.jsxs(nr,{className:"w-full flex flex-col flex-1 min-h-115!",children:[E.jsx(Dg,{title:r("chart.daily_consumption"),startDate:s,endDate:l,onRangeSelect:(b,x)=>o({start:b,end:x}),showDateButton:d.length>1}),E.jsx("div",{className:"flex flex-col h-full w-full",children:A?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):f?f.response?.data?.detail?E.jsx(hu,{message:e.NO_DEVICE}):E.jsx(Ci,{message:e.ERROR}):d.length===0?E.jsx(Us,{message:e.NO_DATA}):E.jsx("div",{className:"h-full w-full p-0",children:E.jsx(Sl,{option:y})})})]})}function _Pt({site_id:t,from_aggregate:e}){const{excludeCards:r,translatedTitles:n}=Vt(),i=vx(),{setMonth:a,startDate:o,endDate:s}=Au();H.useEffect(()=>{a()},[a]);const{mapResponseToLabelValue:l,INSTATAENOUS_KPIS:u,t:c}=Vt(),{data:f,isLoading:d,error:A}=hr(["/site","fetchFinanceSite",t],`/finance/site/${t}`,{start_date:o,end_date:s}
191,{...ri,enabled:!!o&&!!s}),{data:p,isLoading:g,error:m}=hr(["/site","fetchSiteDetail",t],`/device/${t}`,{},{refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:!!t}),{data:y}=hr(["/site","fetchSiteStatus",t],`/device-status/${t}`,{},{...ri}),b=d,x=f?l(f):[],T=(B,R)=>b?Array.from({length:R}).map((I,N)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(ou,{})},isLoading:!0},`loading-${N}`)):A?Array.from({length:4}).map((I,N)=>E.jsx(su,{icon:{variant:"blue",icon:E.jsx(ou,{})},isError:!0,isLoading:!1},N)):B.map((I,N)=>{if(r.includes(I.label))return null;const F=`previous_${I.key}`,Q=f?f[F]??null:null;return E.jsx("div",{children:E.jsx(su,{stats:{label:I.label,value:I.value,type:VT(I.label,n),description:u.includes(I.label)?E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:Ah(f?.time,i)}):u.includes(I.label)?null:E.jsx("p",{className:"text-xs text-primary-dark-blue/60 text-center",children:ZR(o,s,i)}),currency:I?.currency,previousValue:Q},icon:{variant:"blue",icon:I.label.toLowerCase().includes("revenue")?E.jsx(ou,{}):E.jsx(Uc,{})},isError:!1,isLoading:!1})},`stat-${N}`)});return E.jsxs("div",{className:"flex flex-col w-full",style:{gap:qr},children:[!e&&E.jsx("div",{className:"flex w-full",children:E.jsxs("div",{className:"flex gap-2 self-start justify-start items-center",children:[E.jsx(GQ,{showBackText:!1,link:p?.company_id?`/dashboard/finance/home/${p?.company_id}`:"#"}),g?E.jsx(qA,{}):m?E.jsx("div",{className:"text-red-500",children:c("feedback_msg.error_fetching")}):p?.asset_name?E.jsx("span",{className:"text-primary-blackMain text-xl font-bold ml-2",children:p.asset_name}):null]})}),E.jsxs("div",{className:"flex flex-col xl:flex-row w-full",style:{gap:qr},children:[E.jsx("div",{className:"w-full max-w-lg shrink-0",children:E.jsx(wRe,{isLoading:g,data:[p],site_status:y,error:m})}),E.jsx("div",{className:"flex-1 grid gap-4 w-full grid-cols-[repeat(auto-fit,minmax(220px,1fr))] auto-rows-max",style:{gap:qr},children:T(x.slice(0,7),5)})]}),E.jsx("div",{className:"flex flex-wrap justify-center w-full",style:{gap:qr},children:E.jsx(wPt,{site_id:t})}),E.jsx("div",{className:"flex flex-wrap justify-center w-full",style:{gap:qr},children:E.jsx(pIe,{queryKey:["finance","fetchFinancialPerformance",t],route:`/finance/monthly-collection-billing/${t}`})}),E.jsx(yPt,{siteId:t,siteName:p?.asset_name})]})}const bPt=H.memo(_Pt);function xPt(){const{id:t}=du();return E.jsx(bPt,{site_id:t})}const tge=()=>{const{logout:t}=bh(),e=rc(r=>r.logout);return H.useEffect(()=>{const r=window.location.pathname+window.location.search+window.location.hash,n=window.location.pathname!=="/auth/login"&&window.location.pathname!=="/";let i=`${window.location.origin}/auth/login`;n&&(i+=`?returnTo=${encodeURIComponent(r)}`),localStorage.clear(),e(),t({logoutParams:{returnTo:i}})},[e,t]),null},rge=["users/me","session"],gIe=({children:t})=>{const{isAuthenticated:e,isLoading:r,loginWithRedirect:n}=bh(),{user:i,isAuthenticated:a,login:o}=rc(),s=fu(),l=e&&!i,{data:u,isError:c}=hr(rge,"users/me",{},{queryKey:rge,enabled:l,retry:1});H.useEffect(()=>{l&&u&&o(u)},[l,u,o]);const f=s.pathname+s.search+s.hash,d=!r&&!e&&sWe(),A=H.useRef(!1);if(H.useEffect(()=>{!d||A.current||(A.current=!0,_be(f),n({authorizationParams:{prompt:"none"},appState:{returnTo:f,restore:!0}}))},[d,f,n]),r||d)return E.jsx(mn,{});if(!e){O4();const x=s.pathname==="/";return E.jsx(ly,{to:x?"/auth/login":`/auth/login?returnTo=${encodeURIComponent(f)}`,replace:!0})}if(c)return E.jsx(tge,{});if(!a||!i)return E.jsx(mn,{});const{company_id:p,access_level:g}=i;if(["/dashboard/my-account"].includes(s.pathname))return E.jsx(E.Fragment,{children:t});const y=xme[g];return y?y.patterns.some(x=>x.test(s.pathname))?E.jsx(E.Fragment,{children:t}):E.jsx(ly,{to:y.redirect(p),replace:!0}):E.jsx(tge,{})};function SPt({company_id:t,isFromFinance:e}){return E.jsx(w5,{company_id:t,isFromFinance:e})}function CPt(){const{id:t}=du(),[e]=$R(),r=e.get("isFromFinance")==="true";return E.jsx(SPt,{company_id:t,isFromFinance:r})}function TPt({userId:t,role:e,firstName:r,lastName:n,email:i,company:a}){const{t:o}=Vt(),s=u=>{switch(u.toLowerCase()){case"manager":return o("roles.manager");case"admin":return o("roles.admin");case"operations":return o("roles.operations");case"finance":return o("roles.finance");default:return u}},l=FFe(r,n,i,a,o);return E.jsx("div",{className:"flex items-start pt-20 justify-center w-full",children:E.jsx("div",{className:"flex flex-col items-start justify-center min-h-[60%] w-[70%] max-w-137.5 bg-[#FDFDFD] gap-4 p-8 rounded-[20px] border border-[#77777733]",children:E.jsxs("div",{className:"flex flex-col  items-start justify-start gap-10 flex-1 w-full",children:[E.jsxs("div",{className:"flex gap-4 items-center",children:[E.jsx(FHe,{size:50}),E.jsxs("div",{className:"flex text-primary-blackMain flex-1 flex-col items-start justify-center gap-2",children:[E.jsxs("span",{className:"",children:["ID: ",E.jsx("span",{className:" font-bold",children:t})]}),E.jsxs("span",{className:"text-primary-blackLighter max-w-max flex items-center justify-center p-1 px-4 roun
191ded-3xl border border-primary-border",children:[e.icon,E.jsx("span",{className:"ml-2",children:r5(s(e.type)||"")})]})]})]}),l.map((u,c)=>E.jsxs("div",{className:"relative rounded-2xl border border-primary-border bg-white w-full p-3 h-12",children:[E.jsx("span",{className:" absolute left-5 -top-3 px-2 bg-white text-primary-blackLighter",children:u.tag}),E.jsx("span",{className:"text-primary-blackMain ml-4",children:u.value})]},c))]})})})}function EPt(){const{user:t}=rc();return E.jsx(TPt,{userId:t?.employee_id||"",role:{type:t?.access_level||"",icon:E.jsx(Lye,{})},firstName:t?.first_name||"",lastName:t?.last_name||"",email:t?.email||"",company:t?.company.name||""})}const BPt=({children:t})=>{const{isAuthenticated:e}=bh(),{mutate:r}=E0("/user-analytics/track-user-page-visits/","POST");return H.useEffect(()=>{(async()=>{if(e)try{r({page_url:window.location.pathname},{onSuccess:()=>{},onError:i=>{console.error("Failed to record page view:",i)}})}catch(i){console.error("Error getting token for page tracking:",i)}})()},[e,r]),E.jsx(E.Fragment,{children:t})};function DPt(){const{id:t}=du();return E.jsx(vte,{company_id:t})}const Hi=({placeholder:t,value:e,onChange:r,name:n,isErrored:i,errorMessage:a,isTouched:o,type:s="text",disabled:l})=>{const[u,c]=H.useState(!1),f=()=>c(!0),d=()=>{e||c(!1)};return E.jsxs("div",{className:`w-full h-12 flex flex-col items-start gap-0 ${i&&o?"mb-6":""}`,children:[E.jsx("div",{className:`flex flex-col items-center justify-center border ${i&&o?"border-red-500":"border-primary-border"} rounded-lg w-full h-[80%] max-h-[80%] p-2 ${l?"cursor-not-allowed":""} disabled:bg-slate-400`,children:E.jsxs("div",{className:"relative w-full h-full flex items-center justify-center",children:[E.jsx("label",{className:`absolute font-medium! left-0 top-0 text-gray-400 text-sm transition-all duration-300 ease-in-out pointer-events-none ${u||e?" top-[-20px] left-2 bg-white  px-2 py-1 -translate-y-2 font-semibold":""}`,children:t}),E.jsx("input",{type:s,name:n,value:e,onChange:r,onBlur:d,onFocus:f,disabled:l,className:"w-full border-none outline-none  placeholder:text-sm disabled:cursor-not-allowed"})]})}),i&&o&&E.jsx("span",{className:"text-xs text-red-500 mt-1",children:a})]})},MPt=({leftIcon:t=null,rightIcon:e=null,placeholder:r="",topLabel:n=null,bottomLabel:i=null,type:a,disabled:o=!1,name:s,value:l,onChange:u,onBlur:c,error:f,className:d})=>{const[A,p]=H.useState(a),g=m=>p(m);return E.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n&&typeof n=="string"?E.jsx("span",{className:"text-sm text-primary-dark-blue font-semibold",children:n}):n,E.jsxs("div",{className:`input-wrapper ${f?"border-red-500":"border-primary-border"}  ${d}`,children:[t&&E.jsx(t,{size:20}),E.jsx("input",{className:"input-style",name:s,value:l,onChange:u,onBlur:c,disabled:o,placeholder:r,type:a==="password"?A:a}),a==="password"&&(A==="password"?E.jsx("span",{onClick:()=>g("text"),className:"cursor-pointer text-xs text-primary-placeholder",children:"Show"}):E.jsx("span",{onClick:()=>g("password"),className:"cursor-pointer text-xs text-primary-placeholder",children:"Hide"}))||e&&E.jsx(e,{size:20,className:"text-primary-blackLighter"})]}),i&&typeof i=="string"?E.jsx("span",{className:"text-sm text-primary-blackLighter",children:i}):i,f&&E.jsx("span",{className:`text-red-500 text-sm ${f?"mb-5":""}`,children:f})]})},nT=({label:t,options:e,value:r,name:n,isErrored:i,errorMessage:a,isTouched:o,onChange:s,onBlur:l,className:u,selectStyle:c,selectWrapperStyle:f,isLoading:d})=>E.jsxs("div",{className:`w-full h-[3rem] flex flex-col items-start gap-0 ${i&&o?"mb-6":""} ${u}`,children:[d?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(qA,{})}):E.jsxs("div",{className:`${i&&o?"border-red-500":"border-primary-border"} relative flex flex-col items-start justify-center border border-primary-border rounded-lg w-full h-[80%] max-h-[80%] p-2 ${f}`,children:[E.jsx("span",{className:"absolute top-[-20px] left-2 bg-primary-white px-2 py-1 text-sm text-primary-dark-blue font-semibold",children:t}),E.jsx("select",{name:n,value:r,onChange:s,onBlur:l,className:`curs
191or-pointer flex items-center h-full w-full justify-center border-none outline-none rounded-md text-primary-blackLighter ${c}`,children:e.map((A,p)=>E.jsx("option",{value:A.value,children:A.label},p))})]}),i&&o&&E.jsx("span",{className:"text-xs text-red-500 mt-1",children:a})]}),LPt=[{header:"Companies",accessorKey:"name",cell:({row:t})=>E.jsx("span",{children:t.original?.name||"-"})},{header:"Renewal Date",accessorKey:"renewal_date"},{header:"Users",accessorKey:"users_count"},{header:"Phone Number",accessorKey:"phone_number"},{header:"Email address",accessorKey:"email"}];function RPt({searchQuery:t}){const[e,r]=ue.useState(1);ue.useEffect(()=>{r(1)},[t]);const n={page:e,page_size:Qi,...t?{search:t}:{}},{data:i,isLoading:a,error:o}=hr(["/companies","fetchAllCompanies",e,t??""],"/companies",n),s=yh(),l=c=>s(`/${c.id}`),u=p0({count:i?.total_results,currentPage:e,itemsPerPage:Qi});return E.jsx(nr,{children:E.jsx("div",{className:" w-full min-w-full! h-full",children:E.jsx(wg,{isLoading:a,error:o,data:i?.results??[],columns:LPt,pagination:u,currentPage:e,onPageChange:r,emptyStateImage:"",emptyStateText:void 0,onRowClick:l})})})}const ML={BASE_URL:"https://api.demo.powersmarter.net/api/",AUTH0_CLIENT_ID:"RLHdjXQH7M3j8Tj1ygx7t8YZ0jgZsnxH",AUTH0_DOMAIN:"dev-mgw72jpas4obd84e.us.auth0.com",AUTH0_AUDIENCE:"https://api.demo.powersmarter.net/",WEB_SOCKET_BASE_URL:"ws://localhost:8002/ws/alerts/",CLOUDINARY_CLOUD_NAME:"dfn84o2fl",CLOUDINARY_UPLOAD_PRESET:"web_app_preset"},nge=({placeholder:t,onChange:e,name:r,isErrored:n,errorMessage:i,isTouched:a,disabled:o=!1,clearNameAndUrl:s=!1,supportedFormats:l="jpg, jpeg, png",accept:u="image/*",maxSizeMB:c=5})=>{const[f,d]=H.useState(!1),[A,p]=H.useState(""),[g,m]=H.useState(""),[y,b]=H.useState(!1),[x,T]=H.useState(!1),B=H.useRef(null),R=H.useCallback(async Y=>{if(Y.size>c*1024*1024){alert(`File size exceeds ${c}MB limit`);return}p(Y.name),d(!0),b(!0);try{const G=new FormData;G.append("file",Y),G.append("upload_preset",ML.CLOUDINARY_UPLOAD_PRESET||"");const X=await(await fetch(`https://api.cloudinary.com/v1_1/${ML.CLOUDINARY_CLOUD_NAME}/upload`,{method:"POST",body:G})).json();if(X.secure_url)e(X.secure_url),m(X.secure_url),Oi("Upload successful",{variant:"success"});else{Oi("Upload failed",{variant:"error"});return}}catch(G){console.error("Error uploading file:",G),p("")}finally{b(!1)}},[c,e]),I=Y=>{const G=Y.target.files;!G||G.length===0||R(G[0])},N=()=>{!o&&B.current&&B.current.click()},F=()=>{A||d(!1)},Q=H.useCallback(Y=>{Y.preventDefault(),Y.stopPropagation(),!(o||y)&&T(!0)},[o,y]),j=H.useCallback(Y=>{Y.preventDefault(),Y.stopPropagation(),T(!1)},[]),W=H.useCallback(Y=>{Y.preventDefault(),Y.stopPropagation(),!(o||y)&&(Y.dataTransfer.dropEffect="copy")},[o,y]),V=H.useCallback(Y=>{if(Y.preventDefault(),Y.stopPropagation(),o||y)return;T(!1);const G=Y.dataTransfer.files;G&&G.length>0&&R(G[0])},[o,y,R]);return H.useEffect(()=>{s&&(p(""),m(""))},[s]),E.jsxs("div",{className:`w-full flex flex-col items-start gap-0 ${n&&a?"mb-6":""}`,children:[E.jsx("div",{className:`flex flex-col items-center justify-center border-2 ${x?"border-primary-blue border-dashed bg-blue-50":n&&a?"border-red-500":"border-primary-border"} rounded-lg w-full min-h-24 p-4 transition-all duration-200 
192        ${o?"cursor-not-allowed opacity-70":"cursor-pointer hover:border-gray-400"}`,onClick:N,onBlur:F,onDragEnter:Q,onDragOver:W,onDragLeave:j,onDrop:V,tabIndex:0,children:E.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center gap-2",children:[E.jsx("label",{className:`absolute left-0 top-0 text-gray-400 text-sm transition-all duration-300 ease-in-out pointer-events-none ${f||A?"-top-5 left-2 bg-primary-white text-primary-dark-blue! px-2 py-1 -translate-y-2 font-semibold":""}`,children:t}),E.jsx("input",{type:"file",ref:B,name:r,onChange:I,className:"hidden",disabled:o||y,accept:u}),y?E.jsxs("div",{className:"flex flex-col items-center",children:[E.jsx("p",{className:"text-sm text-gray-500",children:"Uploading..."}),E.jsx("div",{className:"mt-2 w-32 h-1 bg-gray-200 rounded-full overflow-hidden",children:E.jsx("div",{className:"h-full bg-primary-blue animate-pulse rounded-full"})})]}):g?E.jsx("img",{src:g,alt:"Uploaded file",className:"w-full h-full object-cover rounded-lg"}):E.jsxs(E.Fragment,{children:[E.jsx(p7e,{className:`h-8 w-8 ${x?"text-primary-blue":"text-gray-400"}`}),E.jsx("p",{className:"text-sm text-gray-500",children:x?"Drop file here":"Click to upload or drag and drop"}),E.jsx("p",{className:"text-xs text-gray-400",children:`Supported formats: ${l}`})]})]})}),n&&a&&E.jsx("span",{className:"text-xs text-red-500 mt-1",children:i})]})},gte=({value:t,onChange:e,label:r})=>{const n=()=>{e(!t)};return E.jsxs("div",{className:"w-full  flex  items-start gap-2 font-semibold ",children:[E.jsx("span",{children:r}),E.jsx("button",{type:"button",onClick:n,className:`w-14 h-8 flex items-center rounded-full p-1 cursor-pointer transition-colors duration-300 ${t?"bg-primary-yellow":"bg-gray-300"}`,children:E.jsx("div",{className:`bg-primary-white w-6 h-6 rounded-full shadow-md transform transition-transform duration-300 ${t?"translate-x-6":"translate-x-0"}`})})]})},IPt=[{name:"grid",label:"Grid"},{name:"generator",label:"Generator"},{name:"solar",label:"Solar"}];function OPt(){const t=h0(),e={name:"",company_type:Lre[0].value,phone_number:"",email:"",address:"",renewal_date:"",service_type:Mre[0].value,currency:H2[0].currency,country:H2[0].key,language:Rre[0].value,logo:"",small_logo:"",grid:!1,generator:!1,solar:!1},r=R=>`Must be at most ${R} characters`,n=C0({name:_n().trim().max(120,r(120)).required("Company name is required"),
192company_type:_n().required("Company type is required"),phone_number:_n().trim().max(20,r(20)).required("Phone number is required"),email:_n().trim().lowercase().email("Enter a valid email address").required("Email is required"),address:_n().trim().max(255,r(255)).required("Company address is required"),renewal_date:_n().required("Renewal date is required"),service_type:_n().required("Service type is required"),currency:_n().required("Currency is required"),country:_n().required("Country is required"),language:_n().required("Language is required"),logo:_n().optional(),small_logo:_n().optional(),grid:EL(),generator:EL(),solar:EL()}),i=R=>{const I={...R};I.logo||delete I.logo,I.small_logo||delete I.small_logo,m(I)},{handleSubmit:a,handleChange:o,handleBlur:s,values:l,getFieldProps:u,errors:c,touched:f,isSubmitting:d,setSubmitting:A,resetForm:p,setFieldValue:g}=Ux({initialValues:e,validationSchema:n,onSubmit:i}),{mutate:m}=E0("/companies","POST",{onSuccess:()=>{t.invalidateQueries({queryKey:["/companies","fetchAllCompanies"]}),T(!0),Oi("Company added successfully!",{variant:"success"}),A(!1),p()},onError:R=>{const I=Object.values(R.response?.data||{}).flat().join(" ");Oi(I||"Error adding company",{variant:"error"}),A(!1)}}),[y,b]=H.useState(""),[x,T]=H.useState(!1),B=R=>{b(R)};return H.useEffect(()=>{g("currency",H2.find(R=>R.key===l.country)?.currency||H2[0].currency)},[l.country,g]),E.jsxs("div",{className:"flex flex-col w-full",style:{gap:qr},children:[E.jsxs("div",{className:"w-full flex justify-between",children:[E.jsx("h1",{className:"font-bold text-2xl",children:"Companies"}),E.jsx("div",{className:"max-w-[80%] sm:max-w-[45%] flex-1",children:E.jsx(Cye,{onSearch:B})})]}),E.jsxs("div",{className:"w-full flex flex-col lg:flex-row flex-1 lg:min-w-[65%]",style:{gap:qr},children:[E.jsx(RPt,{searchQuery:y}),E.jsxs("form",{onSubmit:a,className:"flex flex-col lg:min-w-[40%] bg-white p-6 border border-l-primary-border shadow-lg rounded-lg",children:[E.jsx("h2",{className:zT,children:"Add Company"}),E.jsxs("div",{className:"w-full gap-6 flex flex-col items-start",children:[E.jsx(Hi,{...u("name"),isErrored:!!c.name,isTouched:!!f.name,errorMessage:c.name,placeholder:"Company Name"}),E.jsx(nT,{...u("company_type"),name:"company_type",value:l.company_type,isErrored:!!c.company_type,isTouched:!!f.company_type,errorMessage:c.company_type,label:"Company Type",options:Lre}),E.jsx(nT,{...u("service_type"),name:"service_type",value:l.service_type,label:"Type of Service",options:Mre}),E.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[E.jsx("span",{className:"text-sm text-primary-blackMain font-semibold",children:"Select Country"}),E.jsx("div",{className:`input-wrapper ${c.currency?"border-red-500":"border-primary-border"}`,children:E.jsx("select",{name:"country",value:l.country,onChange:o,onBlur:s,className:"cursor-pointer flex items-center h-full w-full justify-center border-none outline-none rounded-md  text-primary-blackLighter",children:H2.map((R,I)=>E.jsx("option",{value:R.key,children:R.key},I))})}),c.currency&&f.currency&&E.jsx("span",{className:"text-xs text-red-500 mt-1",children:c.currency}),E.jsxs("span",{className:"text-xs text-primary-dark-blue/60",children:["Currency: ",l.currency]})]}),E.jsx(nT,{...u("language"),name:"language",value:l.language,isErrored:!!c.language,isTouched:!!f.language,errorMessage:c.language,label:"Dashboard Language",options:Rre}),E.jsxs("div",{className:"w-full flex flex-col gap-2",children:[E.jsx("span",{className:"text-sm text-primary-dark-blue font-semibold",children:"Power Assets"}),E.jsx("div",{className:"flex gap-2",children:IPt.map(R=>E.jsx(gte,{name:R.name,value:l[R.name],onChange:I=>g(R.name,I),label:R.label},R.name))})]}),E.jsx(MPt,{...u("renewal_date"),onChange:o,onBlur:s,type:jv.DATE,topLabel:"Company Renewal Date",value:l.renewal_date,error:c.renewal_date,className:""}),E.jsx(Hi,{...u("phone_number"),isErrored:!!c.phone_number,isTouched:!!f.phone_number,errorMessage:c.phone_number,placeholder:"Company Phone Number"}),E.jsx(Hi,{...u("email"),isErrored:!!c.email,isTouched:!!f.email,errorMessage:c.email,placeholder:"Company email address"}),E.jsx(Hi,{...u("address"),isErrored:!!c.address,isTouched:!!f.address,errorMessage:c.address,placeholder:"Company address"}),E.jsxs("div",{className:"flex gap-2",children:[E.jsxs("div",{className:"w-full flex flex-col gap-4",children:[E.jsx("span",{className:"text-sm text-primary-dark-blue font-semibold",children:"Company Logo"}),E.jsx(nge,{...u("logo"),name:"logo",supportedFormats:"JPG, JPEG, PNG",clearNameAndUrl:x,accept:"image/JPEG, image/PNG, image/JPG",isErrored:!!c.logo,isTouched:!!f.logo,errorMessage:c.logo,onChange:R=>{g("logo",R)}})]}),E.jsxs("div",{className:"w-full flex flex-col gap-4",children:[E.jsxs("span",{className:"text-sm text-primary-dark-blue font-semibold",children:["Small Logo ",E.jsx("span",{className:"text-xs text-gray-600",children:"(collapsed 
192sidebar, optional)"})]}),E.jsx(nge,{...u("small_logo"),name:"small_logo",supportedFormats:"JPG, JPEG, PNG",clearNameAndUrl:x,accept:"image/JPEG, image/PNG, image/JPG",isErrored:!!c.small_logo,isTouched:!!f.small_logo,errorMessage:c.small_logo,onChange:R=>{g("small_logo",R)}})]})]}),E.jsx(zi,{className:"w-full mt-4",text:d?"":"Add Company",loader:{loading:d,height:4,width:4},type:bi.PRIMARY,handleClick:a,disabled:d})]})]})]})]})}function PPt(){return E.jsx(OPt,{})}function ige({isModalOpen:t,closeModal:e,enableOutsideClick:r=!0,company_id:n,type:i,data:a,classfificationLoading:o=!1,classificationError:s=""}){const l=h0(),[u,c]=H.useState(!1),f=H.useRef(null),[d,A]=ue.useState(""),p=i==="edit"&&a?{...a}:{name:"",level_name:"",parent_id:"",company_id:n},g=C0({name:_n().required("Name is required"),level_name:_n().required("Level name is required"),company_id:_n().required("Company ID is required"),parent_id:_n().optional()}),m=W=>{j(W)},{handleSubmit:y,values:b,getFieldProps:x,errors:T,touched:B,isSubmitting:R,resetForm:I,setSubmitting:N,setValues:F}=Ux({initialValues:p,validationSchema:g,onSubmit:m}),Q=W=>{F({parent_id:W.id}),A(W)},{mutate:j}=E0(i==="edit"?`/classifications/${a?.id}`:"/classifications/",i==="edit"?"PUT":"POST",{onSuccess:W=>{l.invalidateQueries({queryKey:["/classifications","fetchAssetClassifications",W.company.id]}),Oi(i==="edit"?"Level updated":"New Level added!",{variant:"success"}),I(),N(!1),e()},onError:W=>{const V=Object.values(W.response?.data||{}).flat().join(" ");Oi(V||i==="edit"?"Error updating level":"Error adding level",{variant:"error"}),N(!1)}});return H.useEffect(()=>{i==="edit"&&a&&F({...a,company_id:a.company_id})},[a,i,F]),H.useEffect(()=>{function W(V){f.current&&!f.current.contains(V.target)&&c(!1)}return u&&document.addEventListener("mousedown",W),()=>{document.removeEventListener("mousedown",W)}},[u]),E.jsxs(m0,{isOpen:t,onClose:e,closeOnOutsideClick:r,children:[E.jsx("h2",{className:zT,children:i==="edit"?"Edit Level":"Add new Level"}),E.jsxs("form",{onSubmit:y,className:"gap-4 flex flex-col items-start",children:[E.jsx(Hi,{placeholder:"Name",...x("name"),value:b.name,isErrored:!!T.name,isTouched:!!B.name,errorMessage:T.name}),E.jsx(Hi,{placeholder:"Level Name",...x("level_name"),value:b.level_name,isErrored:!!T.level_name,isTouched:!!B.level_name,errorMessage:T.level_name}),E.jsxs("div",{className:"w-full h-12 gap-0 mb-6 relative flex flex-col items-start justify-center border border-primary-border rounded-lg max-h-[80%] p-2 ",children:[E.jsx("span",{className:"absolute -top-5 left-2 bg-white px-2 py-1 text-sm text-primary-blackMain font-semibold",children:"Parent"}),a&&E.jsx(V$,{data:a,selectedId:d,onSelect:Q,className:"relative! w-full! h-8! bg-white! rounded-none! p-0! border-none!",modalStyle:"mt-[-10px] !left-0"}),o?E.jsx("div",{className:"",children:E.jsx(qA,{})}):s?E.jsx("span",{className:"text-primary-red text-sm font-semibold",children:s}):null,T.parent_id&&E.jsx("span",{className:"text-xs text-red-500 mt-1",children:T.parent_id})]}),E.jsx(zi,{className:"w-full mt-4",text:R?"":i==="edit"?"Save Changes":"Add Level",loader:{loading:R,height:4,width:4},type:bi.PRIMARY,handleClick:y,disabled:R})]})]})}function kPt({isModalOpen:t,closeModal:e,enableOutsideClick:r=!0,title:n="Confirm Deletion",instruction:i="Are you sure you want to delete this item?",route:a,invalidateQueryKey:o,successMessage:s="Item deleted successfully!",errorMessage:l="Error deleting item",itemId:u}){const c=h0(),[f,d]=H.useState(!1),{mutate:A}=E0(a,"DELETE",{onSuccess:()=>{c.invalidateQueries({queryKey:o}),Oi(s,{variant:"success"}),d(!1),e()},onError:g=>{const m=Object.values(g.response?.data||{}).flat().join(" ");Oi(m||l,{variant:"error"}),d(!1)}}),p=()=>{d(!0),A({id:u})};return E.jsx(m0,{isOpen:t,onClose:e,closeOnOutsideClick:r,children:E.jsxs("div",{className:"w-full-h-full flex flex-col items-center justify-center",children:[E.jsx("img",{src:wQe,alt:"Delete icon",className:"max-h-37.5"}),E.jsx("h2",{className:`${zT} self-center`,children:n}),E.jsxs("div",{className:"text-gray-700 bg-[#ffe9d9] p-4 gap-2 border-l-4 border-primary-redMain rounded-md w-full min-h-17.5 flex flex-col items-start justify-center",children:[E.jsxs("p",{className:" text-primary-redMain flex items-center font-bold",children:[E.jsx(fWe,{className:"font-bold ",size:22}),"Warning"]}),E.jsx("p",{className:"font-semibold",children:i})]}),E.jsxs("div",{className:"flex gap-4 justify-center w-full mt-6",children:[E.jsx(zi,{className:"w-32",text:f?"":"Delete",loader:{loading:f,height:4,width:4},type:bi.DELETE,handleClick:p,disabled:f}),E.jsx(zi,{className:"w-32",text:"Cancel",type:bi.SECONDARY,handleClick:e,disabled:f})]})]})})}function NPt({data:t,isLoading:e,error:r,company_id:n}){const{FEEDBACK_MESSAGES:i}=Vt(),a=H.useRef(null),[o,s]=H.useState(null),[l,u]=H.useState(!1),c=yh(),f=H.useRef(null),d=H.useRef(null),[A,p]=H.useState(!1),[g,m]=H.useState(!1),[y,b]=H.useState(null),[x,T]=H.useState(!1),[B,R]=H.useState(null),I=Y=>{const G=K=>{const X={name:K.name,level_name:K.level_name,id:K.id,itemStyle:{color:Bt.BLACK_LIGHTER}},q=[];return K.children&&K.children.length>0&&q.push(...K.children.map(G)),K.devices&&K.devices.length>
1920&&(K.devices.forEach(ne=>{q.push({name:ne.asset_name,id:ne.id,value:ne.asset_capacity,itemStyle:{color:Bt.PRIMARY},deviceInfo:{type:ne.asset_type,capacity:ne.asset_capacity,year:ne.transformer_year,nature:ne.nature_of_transformer,gateway:ne.gateway_serial,active:ne.is_active}})}),X.itemStyle.color=Bt.PRIMARY),q.length>0&&(X.children=q),X};return Y?.map(G)||[]},N=H.useMemo(()=>t?I(t):[],[t]),F=H.useMemo(()=>!N||N.length===0?null:{tooltip:{trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,enterable:!0,formatter:function(Y){const{name:G,data:K}=Y;if(K&&K.deviceInfo){const{type:X,capacity:q,year:ne,nature:te,gateway:ce,active:he}=K.deviceInfo,ve=K.id;return`
193              <div style="padding: 5px">
194                <div><strong>${G}</strong> (${X})</div>
195                <div>Capacity: ${q}</div>
196                <div>Year: ${ne}</div>
197                <div>Nature: ${te}</div>
198                <div>Gateway: ${ce}</div>
199                <div>Status: ${he?"Active":"Inactive"}</div>
200                <div style="margin-top: 8px;">
201                  <a href="/dashboard/operations/site/${ve}" data-asset-id="${ve}" class="dashboard-link" style="color: #F59E0B; font-weight: 500; cursor: pointer; text-decoration: underline; display: flex; align-items: center;">
202                    View Dashboard <span style="margin-left: 4px;">&#8599;</span>
203                  </a>
204                </div>
205              </div>
206            `}else{const X=K.id;return`
207              <div style="padding: 10px">
208                <div><strong>${G}</strong></div>
209                <div style="margin-top: 8px;">
210                  <div 
211                    class="edit-level-btn" 
212                    data-node-id="${X}" 
213                    style="color: #3B82F6; font-weight: 500; cursor: pointer; padding: 4px 0; display: flex; align-items: center;"
214                  >
215                    <span style="margin-right: 4px;">✏️</span> Edit
216                  </div>
217                  <div 
218                    class="delete-level-btn" 
219                    data-node-id="${X}" 
220                    style="color: #EF4444; font-weight: 500; cursor: pointer; padding: 4px 0; display: flex; align-items: center;"
221                  >
222                    <span style="margin-right: 4px;">🗑️</span> Delete
223                  </div>
224                </div>
225              </div>
226            `}}},series:[{type:"tree",name:"Network Hierarchy",data:N,top:"10%",left:"8%",bottom:"22%",right:"20%",symbolSize:10,orient:"vertical",edgeShape:"polyline",edgeForkPosition:"63%",initialTreeDepth:3,lineStyle:{width:2},label:{backgroundColor:"#fff",position:"top",verticalAlign:"middle",align:"center",fontSize:12,distance:5},leaves:{label:{position:"right",verticalAlign:"middle",align:"left"}},emphasis:{focus:"descendant"},expandAndCollapse:!0,animationDuration:200,animationDurationUpdate:300,roam:!0}]},[N]),Q=H.useCallback((Y,G)=>{if(!G)return null;for(const K of Y){if(K.id===G)return K;if(K.children&&K.children.length>0){const X=Q(K.children,G);if(X)return X}}return null},[]),j=H.useCallback(Y=>{b(Y),m(!0)},[]),W=H.useCallback(Y=>{R(Y),T(!0)},[]);H.useEffect(()=>{d.current&&document.addEventListener("click",Y=>{const G=Y.target;if(G.classList.contains("edit-level-btn")){const K=G.getAttribute("data-node-id"),X=Q(N,K);X&&j(X)}if(G.classList.contains("delete-level-btn")){const K=G.getAttribute("data-node-id");K&&W(K)}if(G.classList.contains("dashboard-link")){const K=G.getAttribute("data-asset-id");K&&c(`/dashboard/operations/site/${K}`)}})},[Q,W,j,c,N]),H.useEffect(()=>{const Y=()=>{if(!a.current)return;const K=a.current.getEchartsInstance();K&&(d.current=K,setTimeout(()=>{d.current&&(d.current.resize(),u(!0))},100))};a.current&&!e&&N.length>0&&Y();const G=()=>{d.current&&d.current.resize()};return window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}},[e,N]),H.useEffect(()=>{if(!l||!a.current)return;const Y=d.current;if(!Y)return;Y.off("click"),Y.off("treeexpand"),Y.off("treecollapse"),Y.on("click",K=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{if(!K||!K.data)return;const X=K.data.id;o===X?(s(null),Y.dispatchAction({type:"hideTip"})):(s(X),Y.dispatchAction({type:"showTip",seriesIndex:K.seriesIndex,dataIndex:K.dataIndex}))},50)}),Y.on("treeexpand",()=>{setTimeout(()=>{Y.resize()},300)}),Y.on("treecollapse",()=>{setTimeout(()=>{Y.resize()},300)});const G=K=>{const q=K.target.closest(".dashboard-link");if(q&&q.closest(".echarts-tooltip")){K.preventDefault();const ne=q.getAttribute("data-asset-id"),te=q.getAttribute("data-layer-id");ne?c(`/dashboard/operations/site/${ne}`):te&&c(`/dashboard/operations/sites/aggregate/${te}`)}};return document.addEventListener("click",G),()=>{document.removeEventListener("click",G),f.current&&clearTimeout(f.current),Y&&(Y.off("click"),Y.off("treeexpand"),Y.off("treecollapse"))}},[l,o,c]),H.useEffect(()=>{if(!o||!l||!d.current)return;const Y=d.current,G=X=>{if(!X||!Array.isArray(X))return[];let q=[];for(let ne=0;ne<X.length;ne++){const te=X[ne];te&&(q.push(te),te.children&&Array.isArray(te.children)&&(q=q.concat(G(te.children))))}return q};setTimeout(()=>{try{const X=G(N),q=X.find(ne=>ne&&ne.id===o);if(q&&(Y.dispatchAction({type:"highlight",name:q.name}),Y.dispatchAction({type:"showTip",name:q.name}),q.parentId)){const ne=X.find(te=>te&&te.id===q.parentId);ne&&Y.dispatchAction({type:"treeExpandTo",name:ne.name})}}catch(X){console.error("Error selecting node:",X)}},300)},[N,o,l]),H.useEffect(()=>{l&&d.current&&F&&d.current.setOption(F,!0)},[F,l]);const V=()=>e?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):r?E.jsx(Ci,{message:i.ERROR,className:"h-25!"}):!t||!N||N.length===0?E.jsx(Us,{message:i.NO_DATA}):E.jsx("div",{className:"w-full h-150",children:E.jsx(Sl,{ref:a,option:F||{series:[]},style:{height:"100%",width:"100%"},notMerge:!1,lazyUpdate:!0,opts:{renderer:"canvas",devicePixelRatio:window.devicePixelRatio||1},onChartReady:()=>{u(!0),a.current&&(d.current=a.current.getEchartsInstance(),setTimeout(()=>{d.current&&d.current.resize()},50))}})});return E.jsxs(nr,{children:[E.jsxs("div",{className:"flex flex-col h-full w-full",children:[N&&N.length>0&&E.jsx("div",{className:" flex gap-2 justify-between ",children:E.jsxs("div",{className:"flex-1 flex gap-2 justify-end",children:[E.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-primary-blackLighter2 px-3 py-2",children:[E.jsx("span",{className:"w-4 h-4 rounded-md",style:{backgroundColor:Bt.PRIMARY}}),E.jsx("span",{className:"text-[11px]",children:"With Devices"})]}),E.jsxs("div",{className:"flex items-center gap-1 rounded-full bg-primary-blackLighter2 px-3 py-2",children:[E.jsx("span",{className:"w-4 h-4 rounded-md",style:{backgroundColor:Bt.BLACK_LIGHTER}}),E.jsx("span",{className:"text-[11px]",children:"No Devices"})]})]})}),V()]}),A&&E.jsx(ige,{company_id:n,isModalOpen:A,closeModal:()=>p(!1),enableOutsideClick:!1,type:"add"}),g&&E.jsx(ige,{data:y,isModalOpen:g,closeModal:()=>m(!1),enableOutsideClick:!1,type:"edit"}),x&&E.jsx(kPt,{isModalOpen:x,closeModal:()=>T(!1),enableOutsideClick:!0,itemId:B,instruction:"Are you sure you want to  delete this level",successMessage:"Level deleted successfully",errorMessage:"Error deleting LEvel",route:`/classifications/${B}`,invalidateQueryKey:["/classifications","fetchAssetClassifications",n]})]})}function FPt({company_id:t}){const{data:e,isLoading:r,error:n}=hr(["/classifications","fetchAssetClassifications",t],"/classifications/",{company_id:t},{}),{id:i}=du();return E.jsx(NPt,{company_id:i,data:e,isLoading:r,error:n})}function mte(t){if(!t)return"-";const e=new Date(t);return isNaN(e.getTime())?"-":py(e,"yyyy-LL-dd, hh:mm aa")}function mIe({isModalOpen:t,closeModal:e,enableOutsideClick:r=!0,company_id:n,type:i,data:a}){const o=h0(),s=i==="edit"&&a?{...a}:{first_name:"",last_name:"",employee_id:"",is_staff:!1,is_active:!0,email:"",access_level:Ire[0].value,phone_number:"",company_id:n},l=C0({first_name:_n().required("First name is required"),last_name:_n().required("Last name is required"),employee_id:_n().required("Employee ID is required"),email:_n().required("Email is required"),access_level:_n().required("Access level is required"),phone_number:_n().required("Phone number is required")}),u=T=>{x(T)},{handleSubmit:c,values:f,getFieldProps:d,errors:A,touched:p,isSubmitting:g,setValues:m,resetForm:y,setSubmitting:b}=Ux({initialValues:s,validationSchema:l,onSubmit:u}),{mutate:x}=E0(i==="edit"?`/users/${a?.id}`:"/users",i==="edit"?"PUT":"POST",{onSuccess:T=>{o.invalidateQueries({queryKey:["/users","fetchAllUsers",T.company.id],exact:!1}),Oi(i==="edit"?"user updated":"User added successfully!",{variant:"success"}),y(),b(!1),e()},onError:T=>{const B=Object.values(T.response?.data||{}).flat().join(" ");Oi(B||"Error adding user",{variant:"error"}),b(!1)}});return H.useEffect(()=>{i==="edit"&&a&&m({...a,company_id:a.company.id})},[a,i,m]),E.jsxs(m0,{isOpen:t,onClose:e,closeOnOutsideClick:r,children:[E.jsx("h2",{className:zT,children:i==="edit"?"Edit user":"Add Employee"}),E.jsxs("div",{className:"gap-6 flex flex-col items-start",children:[E.jsx(Hi,{...d("first_name"),placeholder:"Employee first name",isErrored:!!A.first_name,isTouched:!!p.first_name,errorMessage:A.first_name}),E.jsx(Hi,{...d("last_name"),placeholder:"Employee last name",isErrored:!!A.last_name,isTouched:!!p.last_name,errorMessage:A.last_name}),E.jsx(Hi,{...d("employee_id"),placeholder:"Employee ID no.",isErrored:!!A.employee_id,isTouched:!!p.employee_id,errorMessage:A.employee_id}),E.jsx(Hi,{...d("phone_number"),placeholder:"Employee phone number",isErrored:!!A.phone_number,isTouched:!!p.phone_number,errorMessage:A.phone_number}),E.jsx(Hi,{...d("email"),placeholder:"Employee email address",disabled:i==="edit",isErrored:!!A.email,isTouched:!!p.email,errorMessage:A.email}),E.jsx(nT,{...d("access_level"),name:"access_level",value:f.access_level,isErrored:!!A.access_level,isTouched:!!p.access_level,errorMessage:A.access_level,label:"Asset Type",options:Ire}),E.jsx(gte,{name:"is_staff",label:"Is Staff",value:f.is_staff,onCh
226ange:T=>{m({...f,is_staff:T})}}),E.jsx(zi,{className:"w-full mt-4",text:g?"":i==="edit"?"Save Changes":"Add Employee",loader:{loading:g,height:4,width:4},type:bi.PRIMARY,handleClick:c,disabled:g})]})]})}function UPt({isModalOpen:t,closeModal:e,enableOutsideClick:r=!0,data:n}){const i=h0(),a={new_password:"",confirm_password:""},o=C0({new_password:_n().required("New password is required"),confirm_password:_n().oneOf([ote("new_password")],"Passwords must match").required("Confirm password is required")}),s=m=>{g(m)},{handleSubmit:l,getFieldProps:u,errors:c,touched:f,isSubmitting:d,resetForm:A,setSubmitting:p}=Ux({initialValues:a,validationSchema:o,onSubmit:s}),{mutate:g}=E0(`/users/${n?.id}`,"PUT",{onSuccess:m=>{i.invalidateQueries({queryKey:["/users","fetchAllUsers",m.company.id],exact:!1}),Oi("User password changed successfully!",{variant:"success"}),A(),p(!1),e()},onError:m=>{const y=Object.values(m.response?.data||{}).flat().join(" ");Oi(y||"Error adding user",{variant:"error"}),p(!1)}});return E.jsxs(m0,{isOpen:t,onClose:e,closeOnOutsideClick:r,children:[E.jsxs("h2",{className:zT,children:["Change ",n?`${n.first_name} ${n.last_name}'s`:"user"," ","password"]}),E.jsxs("div",{className:"gap-6 flex flex-col items-start",children:[E.jsx(Hi,{...u("new_password"),placeholder:"New Password",isErrored:!!c.new_password,isTouched:!!f.new_password,errorMessage:c.new_password}),E.jsx(Hi,{...u("confirm_password"),placeholder:"Confirm Password",isErrored:!!c.confirm_password,isTouched:!!f.confirm_password,errorMessage:c.confirm_password}),E.jsx(zi,{className:"w-full mt-4",text:d?"":"Save Changes",loader:{loading:d,height:4,width:4},type:bi.PRIMARY,handleClick:l,disabled:d})]})]})}const HPt=({company_id:t})=>{const[e,r]=ue.useState(1),[n,i]=ue.useState(null),[a,o]=ue.useState(null),[s,l]=ue.useState(!1),[u,c]=ue.useState(!1),[f,d]=ue.useState(!1),A=[{header:"Users",accessorKey:"user",cell:({row:T})=>{const B=T.original;return E.jsx("span",{children:`${B.first_name} ${B.last_name}`})}},{header:"Company",accessorKey:"company",cell:({row:T})=>{const B=T.original?.company?.name||"-";return E.jsx("span",{children:B})}},{header:"Employee ID",accessorKey:"employee_id"},{header:"Email address",accessorKey:"email"},{header:"Department",accessorKey:"access_level"},{header:"Date Joined",accessorKey:"created_at",cell:({row:T})=>{const B=T.original.created_at;return E.jsx("span",{children:mte(B)})}},{header:"Actions",accessorKey:"actions",cell:({row:T})=>{const B=T.original,R=a===B.id;return E.jsxs("div",{className:"relative flex justify-center",children:[E.jsx(Gye,{className:"cursor-pointer",onClick:I=>{I.stopPropagation(),i(B),o(R?null:B.id)}}),R&&E.jsxs("div",{className:"absolute right-0 top-6 z-50 w-40 rounded-md bg-white shadow-lg border py-2 text-sm",children:[E.jsx("button",{className:"w-full px-4 py-2 text-left hover:bg-gray-100",onClick:()=>{l(!0),o(null)},children:"Modify"}),E.jsx("button",{className:"w-full px-4 py-2 text-left hover:bg-gray-100",onClick:()=>{c(!0),o(null)},children:"Change Password"}),E.jsx("button",{className:"w-full px-4 py-2 text-left text-red-600 hover:bg-gray-100",onClick:()=>{o(null)},children:"Delete"})]})]})}}],{data:p,isLoading:g,error:m}=hr(["/users","fetchAllUsers",t],"/users",{page:e,page_size:Qi,company_id:t},{refetchOnMount:!0,refetchOnWindowFocus:!0,staleTime:0}),y=g||f,b=p0({count:p?.total_results,currentPage:e,itemsPerPage:Qi}),x=T=>{d(!0),r(T)};return H.useEffect(()=>{const T=()=>o(null);return window.addEventListener("click",T),()=>window.removeEventListener("click",T)},[]),E.jsxs(nr,{children:[E.jsx("div",{className:"mt-5 w-full min-w-full! h-full",children:E.jsx(wg,{isLoading:y,error:m,data:p?.results||[],columns:A,pagination:b,currentPage:e,onPageChange:x,emptyStateImage:"",emptyStateText:void 0})}),E.jsx(mIe,{isModalOpen:s,closeModal:()=>l(!1),enableOutsideClick:!1,type:"edit",data:n}),E.jsx(UPt,{isModalOpen:u,closeModal:()=>c(!1),enableOutsideClick:!1,data:n})]})};var QPt=typeof document<"u",jPt=function(){},UH=QPt?H.useLayoutEffect:jPt;const zPt={...f0},VPt=zPt.useInsertionEffect,GPt=VPt||(t=>t());function KPt(t){const e=H.useRef(()=>{});return GPt(()=>{e.current=t}),H.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}const WPt={...f0};let age=!1,YPt=0;const oge=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+YPt++;function $Pt(){const[t,e]=H.useState(()=>age?oge():void 0);return UH(()=>{t==null&&e(oge())},[]),H.useEffect(()=>{age=!0},[]),t}const ZPt=WPt.useId,yIe=ZPt||$Pt,XPt=H.forwardRef(function(e,r){const{context:{placement:n,elements:{floating:i},middlewareData:{arrow:a,shift:o}},width:s=14,height:l=7,tipRadius:u=0,strokeWidth:c=0,staticOffset:f,stroke:d,d:A,style:{transform:p,...g}={},...m}=e,y=yIe(),[b,x]=H.useState(!1);if(UH(()=>
226{if(!i)return;ph(i).direction==="rtl"&&x(!0)},[i]),!i)return null;const[T,B]=n.split("-"),R=T==="top"||T==="bottom";let I=f;(R&&o!=null&&o.x||!R&&o!=null&&o.y)&&(I=null);const N=c*2,F=N/2,Q=s/2*(u/-8+1),j=l/2*u/4,W=!!A,V=I&&B==="end"?"bottom":"top";let Y=I&&B==="end"?"right":"left";I&&b&&(Y=B==="end"?"left":"right");const G=a?.x!=null?I||a.x:"",K=a?.y!=null?I||a.y:"",X=A||"M0,0"+(" H"+s)+(" L"+(s-Q)+","+(l-j))+(" Q"+s/2+","+l+" "+Q+","+(l-j))+" Z",q={top:W?"rotate(180deg)":"",left:W?"rotate(90deg)":"rotate(-90deg)",bottom:W?"":"rotate(180deg)",right:W?"rotate(-90deg)":"rotate(90deg)"}[T];return E.jsxs("svg",{...m,"aria-hidden":!0,ref:r,width:W?s:s+N,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[Y]:G,[V]:K,[T]:R||W?"100%":"calc(100% - "+N/2+"px)",transform:[q,p].filter(ne=>!!ne).join(" "),...g},children:[N>0&&E.jsx("path",{clipPath:"url(#"+y+")",fill:"none",stroke:d,strokeWidth:N+(A?0:1),d:X}),E.jsx("path",{stroke:N&&!A?m.fill:"none",d:X}),E.jsx("clipPath",{id:y,children:E.jsx("rect",{x:-F,y:F*(W?-1:1),width:s+N,height:s})})]})});function qPt(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(i=>i(r))},on(e,r){t.has(e)||t.set(e,new Set),t.get(e).add(r)},off(e,r){var n;(n=t.get(e))==null||n.delete(r)}}}const JPt=H.createContext(null),ekt=H.createContext(null),tkt=()=>{var t;return((t=H.useContext(JPt))==null?void 0:t.id)||null},rkt=()=>H.useContext(ekt);function nkt(t){const{open:e=!1,onOpenChange:r,elements:n}=t,i=yIe(),a=H.useRef({}),[o]=H.useState(()=>qPt()),s=tkt()!=null,[l,u]=H.useState(n.reference),c=KPt((A,p,g)=>{a.current.openEvent=A?p:void 0,o.emit("openchange",{open:A,event:p,reason:g,nested:s}),r?.(A,p,g)}),f=H.useMemo(()=>({setPositionReference:u}),[]),d=H.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return H.useMemo(()=>({dataRef:a,open:e,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[e,c,d,o,i,f])}function ikt(t){var e,r;let{elements:n,...i}=t===void 0?{}:t;const{nodeId:a}=i,o=nkt({...i,elements:{reference:(e=n?.reference)!=null?e:null,floating:(r=n?.floating)!=null?r:null}}),s=i.rootContext||o,l=s.elements,[u,c]=H.useState(null),[f,d]=H.useState(null),p=l?.domReference||u,g=H.useRef(null),m=rkt();UH(()=>{p&&(g.current=p)},[p]);const y=O0e({...i,elements:{...l,...f&&{reference:f}}}),b=H.useCallback(I=>{const N=Zu(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),getClientRects:()=>I.getClientRects(),contextElement:I}:I;d(N),y.refs.setReference(N)},[y.refs]),x=H.useCallback(I=>{(Zu(I)||I===null)&&(g.current=I,c(I)),(Zu(y.refs.reference.current)||y.refs.reference.current===null||I!==null&&!Zu(I))&&y.refs.setReference(I)},[y.refs]),T=H.useMemo(()=>({...y.refs,setReference:x,setPositionReference:b,domReference:g}),[y.refs,x,b]),B=H.useMemo(()=>({...y.elements,domReference:p}),[y.elements,p]),R=H.useMemo(()=>({...y,...s,refs:T,elements:B,nodeId:a}),[y,T,B,a,s]);return UH(()=>{s.dataRef.current.floatingContext=R;const I=m?.nodesRef.current.find(N=>N.id===a);I&&(I.context=R)}),H.useMemo(()=>({...y,context:R,refs:T,elements:B}),[y,T,B,R])}var c$=function(e,r){return c$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},c$(e,r)};function Hs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c$(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var nn=function(){return nn=Object.assign||function(r){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},nn.apply(this,arguments)};function HA(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}var akt=function(t){var e=t.showTimeSelectOnly,r=e===void 0?!1:e,n=t.showTime,i=n===void 0?!1:n,a=t.className,o=t.children,s=t.inline,l=r?"Choose Time":"Choose Date".concat(i?" and Time":"");return ue.createElement("div",{className:a,"aria-label":l,role:s?void 0:"dialog","aria-modal":s?void 0:"true",translate:"no"},o)},okt=function(t,e){var r=H.useRef(null),n=H.useRef(t);H.useEffect(function(){n.current=t},[t]);var i=H.useCallback(function(a){var o,s=a.composed&&a.composedPath&&a.composedPath().find(function(l){return l instanceof Node})||a.target;r.current&&!r.current.contains(s)&&(e&&s instanceof HTMLElement&&s.classList.contains(e)||(o=n.
226current)===null||o===void 0||o.call(n,a))},[e]);return H.useEffect(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),r},qQ=function(t){var e=t.children,r=t.onClickOutside,n=t.className,i=t.containerRef,a=t.style,o=t.ignoreClass,s=okt(r,o);return ue.createElement("div",{className:n,style:a,ref:function(l){s.current=l,i&&(i.current=l)}},e)},PF=null,sge=!1;function wIe(){if(sge)return PF;sge=!0;try{var t="date-fns-tz";PF=require(t)}catch{PF=null}return PF}function lge(t,e){if(!e)return t;var r=wIe();return r?r.toZonedTime(t,e):t}function bv(t,e){if(!e)return t;var r=wIe();return r?r.fromZonedTime(t,e):t}var _t;(function(t){t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.PageUp="PageUp",t.PageDown="PageDown",t.Home="Home",t.End="End",t.Enter="Enter",t.Space=" ",t.Tab="Tab",t.Escape="Escape",t.Backspace="Backspace",t.X="x"})(_t||(_t={}));function _Ie(){var t=typeof window<"u"?window:globalThis;return t}var eO=12;function Rn(t){if(t==null)return new Date;var e=typeof t=="string"?sqe(t):Gt(t);return Gu(e)?e:new Date}function p_(t,e,r,n,i){i===void 0&&(i=Rn());for(var a=UT(r)||UT(yte()),o=Array.isArray(e)?e:[e],s=0,l=o;s<l.length;s++){var u=l[s],c=nqe(t,u,i,{locale:a});if(Gu(c)&&(!n||t===Gi(c,u,r)))return c}if(!n&&t&&t.length>=8){var f=new Date(t);if(AT(f))return f}return null}function skt(t,e){if(e===void 0&&(e=Rn()),!t)return null;var r=t.match(/\b(1\d{3}|2\d{3})\b/);if(!r||!r[1])return null;var n=parseInt(r[1],10),i=t.match(/(?:^|[/\-\s])?(0?[1-9]|1[0-2])(?:[/\-\s]|$)/),a=i&&i[1]?parseInt(i[1],10)-1:e.getMonth();return new Date(n,a,1)}function Gu(t){return AT(t)}
226function rb(t){return t==null?null:uh(t)&&AT(t)?t:null}function Gi(t,e,r){if(r==="en")return py(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var n=r?UT(r):void 0;return r&&!n&&console.warn('A locale object was not found for the provided string ["'.concat(r,'"].')),n=n||UT(yte()),py(t,e,{locale:n,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Qu(t,e){var r=e.dateFormat,n=e.locale,i=Array.isArray(r)&&r.length>0?r[0]:r;return t&&Gi(t,i,n)||""}var bIe=" - ";function lkt(t,e,r){if(!t&&!e)return"";var n=t?Qu(t,r):"",i=e?Qu(e,r):"",a=r.rangeSeparator||bIe;return"".concat(n).concat(a).concat(i)}function ukt(t,e){if(!t?.length)return"";var r=t[0]?Qu(t[0],e):"";if(t.length===1)return r;if(t.length===2&&t[1]){var n=Qu(t[1],e);return"".concat(r,", ").concat(n)}var i=t.length-1;return"".concat(r," (+").concat(i,")")}function xv(t,e){var r=e.hour,n=r===void 0?0:r,i=e.minute,a=i===void 0?0:i,o=e.second,s=o===void 0?0:o;return xU(SU(CU(t,s),a),n)}function ckt(t){return bI(t)}function fkt(t,e){return Gi(t,"ddd",e)}function QM(t){return Xy(t)}function jy(t,e,r){var n=UT(e||yte());return tp(t,{locale:n,weekStartsOn:r})}function rg(t){return BX(t)}function jM(t){return _I(t)}function uge(t){return d7(t)}function cge(){return Xy(Rn())}function fge(t){return a1e(t)}function dkt(t){return MX(t)}function hkt(t){return EX(t)}function EA(t,e){return t&&e?h1e(t,e):!t&&!e}function Xl(t,e){return t&&e?d1e(t,e):!t&&!e}function HH(t,e){return t&&e?aqe(t,e):!t&&!e}function vn(t,e){return t&&e?i1e(t,e):!t&&!e}function nb(t,e){return t&&e?lXe(t,e):!t&&!e}function L_(t,e,r){var n,i=Xy(e),a=a1e(r);try{n=ZL(t,{start:i,end:a})}catch{n=!1}return n}function yte(){var t=_Ie();return t.__localeId__}function UT(t){if(typeof t=="string"){var e=_Ie();return e.__localeData__?e.__localeData__[t]:void 0}else return t}function Akt(t,e,r){return e(Gi(t,"EEEE",r))}function pkt(t,e){return Gi(t,"EEEEEE",e)}function vkt(t,e){return Gi(t,"EEE",e)}function wte(t,e){return Gi(ju(Rn(),t),"LLLL",e)}function xIe(t,e){return Gi(ju(Rn(),t),"LLL",e)}function gkt(t,e){return Gi(hC(Rn(),t),"QQQ",e)}function Uf(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.maxDate,a=r.excludeDates,o=r.excludeDateIntervals,s=r.includeDates,l=r.includeDateIntervals,u=r.filterDate,c=r.disabled;return c?!0:tO(t,{minDate:n,maxDate:i})||a&&a.some(function(f){return f instanceof Date?vn(t,f):vn(t,f.date)})||o&&o.some(function(f){var d=f.start,A=f.end;return ZL(t,{start:d,end:A})})||s&&!s.some(function(f){return vn(t,f)})||l&&!l.some(function(f){var d=f.start,A=f.end;return ZL(t,{start:d,end:A})})||u&&!u(Rn(t))||!1}function _te(t,e){var r=e===void 0?{}:e,n=r.excludeDates,i=r.excludeDateIntervals;return i&&i.length>0?i.some(function(a){var o=a.start,s=a.end;return ZL(t,{start:o,end:s})}):n&&n.some(function(a){var o;return a instanceof Date?vn(t,a):vn(t,(o=a.date)!==null&&o!==void 0?o:new Date)})||!1}function SIe(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.maxDate,a=r.excludeDates,o=r.includeDates,s=r.filterDate;return tO(t,{minDate:n?BX(n):void 0,maxDate:i?EX(i):void 0})||a?.some(function(l){return Xl(t,l instanceof Date?l:l.date)})||o&&!o.some(function(l){return Xl(t,l)})||s&&!s(Rn(t))||!1}function kF(t,e,r,n){var i=on(t),a=Jl(t),o=on(e),s=Jl(e),l=on(n);return i===o&&i===l?a<=r&&r<=s:i<o?l===i&&a<=r||l===o&&s>=r||l<o&&l>i:!1}function mkt(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.maxDate,a=r.excludeDates,o=r.includeDates;return tO(t,{minDate:n,maxDate:i})||a&&a.some(function(s){return Xl(s instanceof Date?s:s.date,t)})||o&&!o.some(function(s){return Xl(s,t)})||!1}function NF(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.maxDate,a=r.excludeDates,o=r.includeDates,s=r.filterDate,l=r.disabled;return l?!0:tO(t,{minDate:n,maxDate:i})||a?.some(function(u){return HH(t,u instanceof Date?u:u.date)})||o&&!o.some(function(u){return HH(t,u)})||s&&!s(Rn(t))||!1}function FF(t,e,r){if(!e||!r||!AT(e)||!AT(r))return!1;var n=on(e),i=on(r);return n<=t&&i>=t}function a4(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.maxDate,a=r.excludeDates,o=r.includeDates,s=r.filterDate,l=r.disabled;if(l)return!0;var u=new Date(t,0,1);return tO(u,{minDate:n?_I(n):void 0,maxDate:i?DX(i):void 0})||a?.some(function(c){return EA(u,c instanceof Date?c:c.date)})||o&&!o.some(function(c){return EA(u,c)})||s&&!s(Rn(u))||!1}function UF(t,e,r,n){var i=on(t),a=Ay(t),o=on(e),s=Ay(e),l=on(n);return i===o&&i===l?a<=r&&r<=s:i<o?l===i&&a<=r||l===o&&s>=r||l<o&&l>i:!1}function tO(t,e){var r,n=e===void 0?{}:e,i=n.minDate,a=n.maxDate;return(r=i&&qy(t,i)<0||a&&qy(t,a)>0)!==null&&r!==void 0?r:!1}function dge(t,e){return e.some(function(r){return ul(r)===ul(t)&&cl(r)===cl(t)&&My(r)===My(t)})}function hge(t,e){var r=e===void 0?{}:e,n=r.excludeTimes,i=r.includeTimes,a=r.filterTime;return n&&dge(t,n)||i&&!dge(t,i)||a&&!a(t)||!1}function Age(t,e){var r=e.minTime,n=e.maxTime;if(!r||!n)throw new Error("Both minTime and maxTime props required");var i=Rn();i=xU(i,ul(t)),i=SU(i,cl(t)),i=CU(i,My(t));var a=Rn();a=xU(a,ul(r)),a=SU(a,cl(r)),a=CU(a,My(r));var o=Rn();o=xU(o,ul(n)),o=SU(o,cl(n)),o=CU(o,My(n));var s;try{s=!ZL(i,{start:a,end:o})}catch{s=!1}return s}function pge(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.includeDates,a=fb(t,1);return n&&pT(n,a)>0||i&&i.every(function(o){return pT(o,a)>0})||!1}function vge(t,e){var r=e===void 0?{}:e,n=r.maxDate,i=r.includeDates,a=ed(t,1);return n&&pT(a,n)>0||i&&i.every(function(o){return pT(a,o)>0})||!1}function ykt(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.includeDates,a=_I(t),o=p1e(a);return n&&J4(n,o)>0||i&&i.every(function(s){return J4(s,o)>0})||!1}function wkt(t,e){var r=e===void 0?{}:e,n=r.maxDate,i=r.includeDates,a=DX(t),o=TX(a,1);return n&&J4(o,n)>0||i&&i.every(function(s){return J4(o,s)>0})||!1}function gge(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.includeDates,a=Jy(t,1);return n&&e3(n,a)>0||i&&i.every(function(o){return e3(o,a)>0})||!1}function _kt(t,e){var r=e===void 0?{}:e,n=r.minDate,i=r.yearItemNumber,a=i===void 0?eO:i,o=jM(Jy(t,a)),s=Qv(o,a).endPeriod,l=n&&on(n);return l&&l>s||!1}function mge(t,e){var r=e===void 0?{}:e,n=r.maxDate,i=r.includeDates,a=Wf(t,1);return n&&e3(a,n)>0||i&&i.every(function(o){return e3(a,o)>0})||!1}function bkt(t,e){var r=e===void 0?{}:e,n=r.maxDate,i=r.yearItemNumber,a=i===void 0?eO:i,o=Wf(t,a),s=Qv(o,a).startPeriod,l=n&&on(n);return l&&l<s||!1}function CIe(t){var e=t.minDate,r=t.includeDates;if(r&&e){var n=r.filter(function(i){return qy(i,e)>=0});return f7(n)}else return r?f7(r):e}function TIe(t){var e=t.maxDate,r=t.includeDates;if(r&&e){var n=r.filter(function(i){return qy(i,e)<=0});return c7(n)}else return r?c7(r):e}function yge(t,e){var r;t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var n=new Map,i=0,a=t.length;i<a;i++){var o=t[i];if(uh(o)){var s=Gi(o,"MM.dd.yyyy"),l=n.get(s)||[];l.includes(e)||(l.push(e),n.set(s,l))}else if(typeof o=="object"){var u=Object.keys(o),c=(r=u[0])!==null&&r!==void 0?r:"",f=o[c];if(typeof c=="string"&&Array.isArray(f))for(var d=0,A=f.length;d<A;d++){var p=f[d];if(p){var s=Gi(p,"MM.dd.yyyy"),l=n.get(s)||[];l.includes(c)||(l.push(c),n.set(s,l))}}}}return n}function xkt(t,e){return t.length!==e.length?!1:t.every(function(r,n){return r===e[n]})}function Skt(t,e){t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--holidays");var r=new Map;return t.forEach(function(n){var i=n.date,a=n.holidayName;if(uh(i)){var o=Gi(i,"MM.dd.yyyy"),s=r.get(o)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===e&&xkt(s.holidayNames,[a]))){
226s.className=e;var l=s.holidayNames;s.holidayNames=l?HA(HA([],l,!0),[a],!1):[a],r.set(o,s)}}}),r}function Ckt(t,e,r,n,i){for(var a=i.length,o=[],s=0;s<a;s++){var l=t,u=i[s];u&&(l=rZe(l,ul(u)),l=YL(l,cl(u)),l=aZe(l,My(u)));var c=YL(t,(r+1)*n);zA(l,e)&&eh(l,c)&&u!=null&&o.push(u)}return o}function iC(t){return t<10?"0".concat(t):"".concat(t)}function Qv(t,e){e===void 0&&(e=eO);var r=Math.ceil(on(t)/e)*e,n=r-(e-1);return{startPeriod:n,endPeriod:r}}function Tkt(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),24);return Math.round((+r-+e)/36e5)}function wge(t){var e=t.getSeconds(),r=t.getMilliseconds();return Gt(t.getTime()-e*1e3-r)}function EIe(t,e){return wge(t).getTime()===wge(e).getTime()}function _ge(t){if(!uh(t))throw new Error("Invalid date");var e=new Date(t);return e.setHours(0,0,0,0),e}function hK(t,e){if(!uh(t)||!uh(e))throw new Error("Invalid date received");var r=_ge(t),n=_ge(e);return eh(r,n)}function BIe(t){return t.key===_t.Space}var AK=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;return n.inputRef=ue.createRef(),n.onTimeChange=function(i){var a,o;n.setState({time:i});var s=n.props.date,l=s instanceof Date&&!isNaN(+s),u=l?s:new Date;if(i?.includes(":")){var c=i.split(":"),f=c[0],d=c[1];u.setHours(Number(f)),u.setMinutes(Number(d))}(o=(a=n.props).onChange)===null||o===void 0||o.call(a,u)},n.renderTimeInput=function(){var i=n.state.time,a=n.props,o=a.date,s=a.timeString,l=a.customTimeInput;return l?H.cloneElement(l,{date:o,value:i,onChange:n.onTimeChange}):ue.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:n.inputRef,onClick:function(){var u;(u=n.inputRef.current)===null||u===void 0||u.focus()},required:!0,value:i,onChange:function(u){n.onTimeChange(u.target.value||s)}})},n.state={time:n.props.timeString},n}return e.getDerivedStateFromProps=function(r,n){return r.timeString!==n.time?{time:r.timeString}:null},e.prototype.render=function(){return ue.createElement("div",{className:"react-datepicker__input-time-container"},ue.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),ue.createElement("div",{className:"react-datepicker-time__input-container"},ue.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e})(H.Component),Ekt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.dayEl=H.createRef(),r.handleClick=function(n){!r.isDisabled()&&r.props.onClick&&r.props.onClick(n)},r.handleMouseEnter=function(n){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(n)},r.handleOnKeyDown=function(n){var i,a,o=n.key;o===_t.Space&&(n.preventDefault(),n.key=_t.Enter),(a=(i=r.props).handleOnKeyDown)===null||a===void 0||a.call(i,n)},r.isSameDay=function(n){return vn(r.props.day,n)},r.isKeyboardSelected=function(){var n;if(r.props.disabledKeyboardNavigation)return!1;var i=r.props.selectsMultiple?(n=r.props.selectedDates)===null||n===void 0?void 0:n.some(function(o){return r.isSameDayOrWeek(o)}):r.isSameDayOrWeek(r.props.selected),a=r.props.preSelection&&r.isDisabled(r.props.preSelection);return!i&&r.isSameDayOrWeek(r.props.preSelection)&&!a},r.isDisabled=function(n){return n===void 0&&(n=r.props.day),Uf(n,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate,disabled:r.props.disabled})},r.isExcluded=function(){return _te(r.props.day,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.isStartOfWeek=function(){return vn(r.props.day,jy(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameWeek=function(n){return r.props.showWeekPicker&&vn(n,jy(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameDayOrWeek=function(n){return r.isSameDay(n)||r.isSameWeek(n)},r.getHighLightedClass=function(){var n=r.props,i=n.day,a=n.highlightDates;if(!a)return!1;var o=Gi(i,"MM.dd.yyyy");return a.get(o)},r.getHolidaysClass=function(){var n,i=r.props,a=i.day,o=i.holidays;if(!o)return[void 0];var s=Gi(a,"MM.dd.yyyy");return o.has(s)?[(n=o.get(s))===null||n===void 0?void 0:n.className]:[void 0]},r.isInRange=function(){var n=r.props,i=n.day,a=n.startDate,o=n.endDate;return!a||!o?!1:L_(i,a,o)},r.isInSelectingRange=function(){var n,i=r.props,a=i.day,o=i.selectsStart,s=i.selectsEnd,l=i.selectsRange,u=i.selectsDisabledDaysInRange,c=i.startDate,f=i.swapRange,d=i.endDate,A=(n=r.props.selectingDate)!==null&&n!==void 0?n:r.props.preSelection;if(r.isAfterMonth()||r.isBeforeMonth()||!(o||s||l)||!A||!u&&r.isDisabled())return!1;if(o&&d&&(eh(A,d)||nb(A,d)))return L_(a,A,d);if(s&&c&&(zA(A,c)||nb(A,c)))return L_(a,c,A);if(l&&c&&!d){if(nb(A,c)||zA(A,c))return L_(a,c,A);if(f&&eh(A,c))return L_(a,A,c)}return!1},r.isSelectingRangeStart=function(){var n;if(!r.isInSelectingRange())return!1;
226var i=r.props,a=i.day,o=i.startDate,s=i.selectsStart,l=i.swapRange,u=i.selectsRange,c=(n=r.props.selectingDate)!==null&&n!==void 0?n:r.props.preSelection;return s?vn(a,c):u&&l&&o&&c?vn(a,eh(c,o)?c:o):vn(a,o)},r.isSelectingRangeEnd=function(){var n;if(!r.isInSelectingRange())return!1;var i=r.props,a=i.day,o=i.endDate,s=i.selectsEnd,l=i.selectsRange,u=i.swapRange,c=i.startDate,f=(n=r.props.selectingDate)!==null&&n!==void 0?n:r.props.preSelection;return s?vn(a,f):l&&u&&c&&f?vn(a,eh(f,c)?c:f):l?vn(a,f):vn(a,o)},r.isRangeStart=function(){var n=r.props,i=n.day,a=n.startDate,o=n.endDate;return!a||!o?!1:vn(a,i)},r.isRangeEnd=function(){var n=r.props,i=n.day,a=n.startDate,o=n.endDate;return!a||!o?!1:vn(o,i)},r.isWeekend=function(){var n=iXe(r.props.day);return n===0||n===6},r.isAfterMonth=function(){return r.props.month!==void 0&&(r.props.month+1)%12===Jl(r.props.day)},r.isBeforeMonth=function(){return r.props.month!==void 0&&(Jl(r.props.day)+1)%12===r.props.month},r.isCurrentDay=function(){return r.isSameDay(Rn())},r.isSelected=function(){var n;return r.props.selectsMultiple?(n=r.props.selectedDates)===null||n===void 0?void 0:n.some(function(i){return r.isSameDayOrWeek(i)}):r.isSameDayOrWeek(r.props.selected)},r.getClassNames=function(n){var i=r.props.dayClassName?r.props.dayClassName(n):void 0;return Ha("react-datepicker__day",i,"react-datepicker__day--"+fkt(r.props.day),{"react-datepicker__day--disabled":r.
226isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass(),r.getHolidaysClass())},r.getAriaLabel=function(){var n=r.props,i=n.day,a=n.ariaLabelPrefixWhenEnabled,o=a===void 0?"Choose":a,s=n.ariaLabelPrefixWhenDisabled,l=s===void 0?"Not available":s,u=r.isDisabled()||r.isExcluded()?l:o;return"".concat(u," ").concat(Gi(i,"PPPP",r.props.locale))},r.getTitle=function(){var n=r.props,i=n.day,a=n.holidays,o=a===void 0?new Map:a,s=n.excludeDates,l=Gi(i,"MM.dd.yyyy"),u=[];return o.has(l)&&u.push.apply(u,o.get(l).holidayNames),r.isExcluded()&&u.push(s?.filter(function(c){return c instanceof Date?vn(c,i):vn(c?.date,i)}).map(function(c){if(!(c instanceof Date))return c?.message})),u.join(", ")},r.getTabIndex=function(){var n=r.props.selected,i=r.props.preSelection,a=!(r.props.showWeekPicker&&(r.props.showWeekNumber||!r.isStartOfWeek()))&&(r.isKeyboardSelected()||r.isSameDay(n)&&vn(i,n))?0:-1;return a},r.handleFocusDay=function(){var n;r.shouldFocusDay()&&((n=r.dayEl.current)===null||n===void 0||n.focus({preventScroll:!0}))},r.renderDayContents=function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(Xoe(r.props.day),r.props.day):Xoe(r.props.day)},r.render=function(){return ue.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.props.usePointerEvent?void 0:r.handleMouseEnter,onPointerEnter:r.props.usePointerEvent?r.handleMouseEnter:void 0,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"gridcell",title:r.getTitle(),"aria-disabled":r.
226isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&ue.createElement("span",{className:"overlay"},r.getTitle()))},r}return e.prototype.componentDidMount=function(){this.handleFocusDay()},e.prototype.componentDidUpdate=function(){this.handleFocusDay()},e.prototype.shouldFocusDay=function(){var r=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(r=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(r=!1),this.isDayActiveElement()&&(r=!0),this.isDuplicateDay()&&(r=!1)),r},e.prototype.isDayActiveElement=function(){var r,n,i;return((n=(r=this.props.containerRef)===null||r===void 0?void 0:r.current)===null||n===void 0?void 0:n.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},e.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},e})(H.Component),Bkt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.weekNumberEl=H.createRef(),r.handleClick=function(n){r.props.onClick&&r.props.onClick(n)},r.handleOnKeyDown=function(n){var i,a,o=n.key;o===_t.Space&&(n.preventDefault(),n.key=_t.Enter),(a=(i=r.props).handleOnKeyDown)===null||a===void 0||a.call(i,n)},r.isKeyboardSelected=function(){return!r.props.disabledKeyboardNavigation&&!vn(r.props.date,r.props.selected)&&vn(r.props.date,r.props.preSelection)},r.getTabIndex=function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||vn(r.props.date,r.props.selected)&&vn(r.props.preSelection,r.props.selected))?0:-1},r.handleFocusWeekNumber=function(n){var i=!1;r.getTabIndex()===0&&!n?.isInputFocused&&vn(r.props.date,r.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(i=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},e.prototype.componentDidUpdate=function(r){this.handleFocusWeekNumber(r)},e.prototype.render=function(){var r=this.props,n=r.weekNumber,i=r.isWeekDisabled,a=r.ariaLabelPrefix,o=a===void 0?e.defaultProps.ariaLabelPrefix:a,s=r.onClick,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s&&!i,"react-datepicker__week-number--selected":!!s&&vn(this.props.date,this.props.selected)};return ue.createElement("div",{ref:this.weekNumberEl,className:Ha(l),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},n)},e})(H.Component),Dkt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.isDisabled=function(n){return Uf(n,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.handleDayClick=function(n,i){r.props.onDayClick&&r.props.onDayClick(n,i)},r.handleDayMouseEnter=function(n){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(n)},r.handleWeekClick=function(n,i,a){for(var o,s,l,u=new Date(n),c=0;c<7;c++){var f=new Date(n);f.setDate(f.getDate()+c);var d=!r.isDisabled(f);if(d){u=f;break}}typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(u,i,a),r.props.showWeekPicker&&r.handleDayClick(u,a),((o=r.props.shouldCloseOnSelect)!==null&&o!==void 0?o:e.defaultProps.shouldCloseOnSelect)&&((l=(s=r.props).setOpen)===null||l===void 0||l.call(s,!1))},r.formatWeekNumber=function(n){return r.props.formatWeekNumber?r.props.formatWeekNumber(n):ckt(n)},r.isWeekDisabled=function(){for(var n=r.startOfWeek(),i=Kf(n,6),a=new Date(n);a<=i;){if(!r.isDisabled(a))return!1;a=Kf(a,1)}return!0},r.renderDays=function(){var n=r.startOfWeek(),i=[],a=r.formatWeekNumber(n);if(r.props.showWeekNumber){var o=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(r,n,a):void 0;i.push(ue.createElement(Bkt,nn({key:"W"},e.defaultProps,r.props,{weekNumber:a,isWeekDisabled:r.isWeekDisabled(),date:n,onClick:o})))}return i.concat([0,1,2,3,4,5,6].map(function(s){var l=Kf(n,s);return ue.createElement(Ekt,nn({},e.defaultProps,r.props,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:r.handleDayClick.bind(r,l),onMouseEnter:r.handleDayMouseEnter.bind(r,l)}))}
226))},r.startOfWeek=function(){return jy(r.props.day,r.props.locale,r.props.calendarStartDay)},r.isKeyboardSelected=function(){return!r.props.disabledKeyboardNavigation&&!vn(r.startOfWeek(),r.props.selected)&&vn(r.startOfWeek(),r.props.preSelection)},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":vn(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},n=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return ue.createElement("div",{className:Ha(r,n),role:"row"},this.renderDays())},e})(H.Component),iM,Mkt=6,iT={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},pK=(iM={},iM[iT.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},iM[iT.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},iM[iT.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},iM),HF=1;function bge(t,e){return t?iT.FOUR_COLUMNS:e?iT.TWO_COLUMNS:iT.THREE_COLUMNS}var Lkt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.MONTH_REFS=HA([],Array(12),!0).map(function(){return H.createRef()}),r.QUARTER_REFS=HA([],Array(4),!0).map(function(){return H.createRef()}),r.isDisabled=function(n){return Uf(n,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate,disabled:r.props.disabled})},r.isExcluded=function(n){return _te(n,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.handleDayClick=function(n,i){var a,o;
226(o=(a=r.props).onDayClick)===null||o===void 0||o.call(a,n,i,r.props.orderInDisplay)},r.handleDayMouseEnter=function(n){var i,a;(a=(i=r.props).onDayMouseEnter)===null||a===void 0||a.call(i,n)},r.handleMouseLeave=function(){var n,i;(i=(n=r.props).onMouseLeave)===null||i===void 0||i.call(n)},r.isRangeStartMonth=function(n){var i=r.props,a=i.day,o=i.startDate,s=i.endDate;return!o||!s?!1:Xl(ju(a,n),o)},r.isRangeStartQuarter=function(n){var i=r.props,a=i.day,o=i.startDate,s=i.endDate;return!o||!s?!1:HH(hC(a,n),o)},r.isRangeEndMonth=function(n){var i=r.props,a=i.day,o=i.startDate,s=i.endDate;return!o||!s?!1:Xl(ju(a,n),s)},r.isRangeEndQuarter=function(n){var i=r.props,a=i.day,o=i.startDate,s=i.endDate;return!o||!s?!1:HH(hC(a,n),s)},r.isInSelectingRangeMonth=function(n){var i,a=r.props,o=a.day,s=a.selectsStart,l=a.selectsEnd,u=a.selectsRange,c=a.startDate,f=a.endDate,d=(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection;return!(s||l||u)||!d?!1:s&&f?kF(d,f,n,o):l&&c||u&&c&&!f?kF(c,d,n,o):!1},r.isSelectingMonthRangeStart=function(n){var i;if(!r.isInSelectingRangeMonth(n))return!1;var a=r.props,o=a.day,s=a.startDate,l=a.selectsStart,u=ju(o,n),c=(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection;return l?Xl(u,c):Xl(u,s)},r.isSelectingMonthRangeEnd=function(n){var i;if(!r.isInSelectingRangeMonth(n))return!1;var a=r.props,o=a.day,s=a.endDate,l=a.selectsEnd,u=a.selectsRange,c=ju(o,n),f=(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection;return l||u?Xl(c,f):Xl(c,s)},r.isInSelectingRangeQuarter=function(n){var i,a=r.props,o=a.day,s=a.selectsStart,l=a.selectsEnd,u=a.selectsRange,c=a.startDate,f=a.endDate,d=(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection;return!(s||l||u)||!d?!1:s&&f?UF(d,f,n,o):l&&c||u&&c&&!f?UF(c,d,n,o):!1},r.isWeekInMonth=function(n){var i=r.props.day,a=Kf(n,6);return Xl(n,i)||Xl(a,i)},r.isCurrentMonth=function(n,i){return on(n)===on(Rn())&&i===Jl(Rn())},r.isCurrentQuarter=function(n,i){return on(n)===on(Rn())&&i===Ay(Rn())},r.isSelectedMonth=function(n,i,a){return Jl(a)===i&&on(n)===on(a)},r.isSelectMonthInList=function(n,i,a){return a.some(function(o){return r.isSelectedMonth(n,i,o)})},r.isSelectedQuarter=function(n,i,a){return Ay(a)===i&&on(n)===on(a)},r.isSelectQuarterInList=function(n,i,a){return a.some(function(o){return r.isSelectedQuarter(n,i,o)})},r.isMonthSelected=function(){var n=r.props,i=n.day,a=n.selected,o=n.selectedDates,s=n.selectsMultiple,l=Jl(i);return s?o?.some(function(u){return r.isSelectedMonth(i,l,u)}):!!a&&r.isSelectedMonth(i,l,a)},r.isQuarterSelected=function(){var n=r.props,i=n.day,a=n.selected,o=n.selectedDates,s=n.selectsMultiple,l=Ay(i);return s?o?.some(function(u){return r.isSelectedQuarter(i,l,u)}):!!a&&r.isSelectedQuarter(i,l,a)},r.renderWeeks=function(){if(!Gu(r.props.day))return[];for(var n=[],i=r.props.fixedHeight,a=0,o=!1,s=jy(rg(r.props.day),r.props.locale,r.props.calendarStartDay),l=function(p){return r.props.showWeekPicker?jy(p,r.props.locale,r.props.calendarStartDay):r.props.preSelection},u=function(p){return r.props.showWeekPicker?jy(p,r.props.locale,r.props.calendarStartDay):r.props.selected},c=r.props.selected?u(r.props.selected):void 0,f=r.props.preSelection?l(r.props.preSelection):void 0;n.push(ue.createElement(Dkt,nn({},r.props,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,key:a,day:s,month:Jl(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,selected:c,preSelection:f,showWeekNumber:r.props.showWeekNumbers}))),!o;){a++,s=$L(s,1);var d=i&&a>=Mkt,A=!i&&!r.isWeekInMonth(s);if(d||A)if(r.props.peekNextMonth)o=!0;else break}return n},r.onMonthClick=function(n,i){var a=r.isMonthDisabledForLabelDate(i),o=a.isDisabled,s=a.labelDate;o||r.handleDayClick(rg(s),n)},r.onMonthMouseEnter=function(n){var i=r.isMonthDisabledForLabelDate(n),a=i.isDisabled,o=i.labelDate;a||r.handleDayMouseEnter(rg(o))},r.handleMonthNavigation=function(n,i){var a,o,s,l;(o=(a=r.props).setPreSelection)===null||o===void 0||o.call(a,i),(l=(s=r.MONTH_REFS[n])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus()},r.handleKeyboardNavigation=function(n,i,a){var o,s=r.props,l=s.selected,u=s.preSelection,c=s.setPreSelection,f=s.minDate,d=s.maxDate,A=s.showFourColumnMonthYearPicker,p=s.showTwoColumnMonthYearPicker;if(u){var g=bge(A,p),m=r.getVerticalOffset(g),y=(o=pK[g])===null||o===void 0?void 0:o.grid,b=function(I,N,F){var Q,j,W=N,V=
226F;switch(I){case _t.ArrowRight:W=ed(N,HF),V=F===11?0:F+HF;break;case _t.ArrowLeft:W=fb(N,HF),V=F===0?11:F-HF;break;case _t.ArrowUp:W=fb(N,m),V=!((Q=y?.[0])===null||Q===void 0)&&Q.includes(F)?F+12-m:F-m;break;case _t.ArrowDown:W=ed(N,m),V=!((j=y?.[y.length-1])===null||j===void 0)&&j.includes(F)?F-12+m:F+m;break}return{newCalculatedDate:W,newCalculatedMonth:V}},x=function(I,N,F){for(var Q=40,j=I,W=!1,V=0,Y=b(j,N,F),G=Y.newCalculatedDate,K=Y.newCalculatedMonth;!W;){if(V>=Q){G=N,K=F;break}if(f&&G<f){j=_t.ArrowRight;var X=b(j,G,K);G=X.newCalculatedDate,K=X.newCalculatedMonth}if(d&&G>d){j=_t.ArrowLeft;var X=b(j,G,K);G=X.newCalculatedDate,K=X.newCalculatedMonth}if(mkt(G,r.props)){var X=b(j,G,K);G=X.newCalculatedDate,K=X.newCalculatedMonth}else W=!0;V++}return{newCalculatedDate:G,newCalculatedMonth:K}};if(i===_t.Enter){r.isMonthDisabled(a)||(r.onMonthClick(n,a),c?.(l));return}var T=x(i,u,a),B=T.newCalculatedDate,R=T.newCalculatedMonth;switch(i){case _t.ArrowRight:case _t.ArrowLeft:case _t.ArrowUp:case _t.ArrowDown:r.handleMonthNavigation(R,B);break}}},r.getVerticalOffset=function(n){var i,a;return(a=(i=pK[n])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&a!==void 0?a:0},r.onMonthKeyDown=function(n,i){var a=r.props,o=a.disabledKeyboardNavigation,s=a.handleOnMonthKeyDown,l=n.key;l!==_t.Tab&&n.preventDefault(),o||r.handleKeyboardNavigation(n,l,i),s&&s(n)},r.onQuarterClick=function(n,i){var a=hC(r.props.day,i);NF(a,r.props)||r.handleDayClick(uge(a),n)},r.onQuarterMouseEnter=function(n){var i=hC(r.props.day,n);NF(i,r.props)||r.handleDayMouseEnter(uge(i))},r.handleQuarterNavigation=function(n,i){var a,o,s,l;r.isDisabled(i)||r.isExcluded(i)||((o=(a=r.props).setPreSelection)===null||o===void 0||o.call(a,i),(l=(s=r.QUARTER_REFS[n-1])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus())},r.onQuarterKeyDown=function(n,i){var a,o,s=n.key;if(!r.props.disabledKeyboardNavigation)switch(s){case _t.Enter:r.onQuarterClick(n,i),(o=(a=r.props).setPreSelection)===null||o===void 0||o.call(a,r.props.selected);break;case _t.ArrowRight:if(!r.props.preSelection)break;r.handleQuarterNavigation(i===4?1:i+1,TX(r.props.preSelection,1));break;case _t.ArrowLeft:if(!r.props.preSelection)break;r.handleQuarterNavigation(i===1?4:i-1,p1e(r.props.preSelection));break}},r.isMonthDisabledForLabelDate=function(n){var i,a=r.props,o=a.day,s=a.disabled,l=a.minDate,u=a.maxDate,c=a.excludeDates,f=a.includeDates,d=ju(o,n);return s?{isDisabled:!0,labelDate:ju(o,n)}:{isDisabled:(i=(l||u||c||f)&&SIe(d,r.props))!==null&&i!==void 0?i:!1,labelDate:d}},r.isMonthDisabled=function(n){var i=r.isMonthDisabledForLabelDate(n).isDisabled;return i},r.getMonthClassNames=function(n){var i=r.props,a=i.day,o=i.startDate,s=i.endDate,l=i.preSelection,u=i.monthClassName,c=u?u(ju(a,n)):void 0,f=r.getSelection();return Ha("react-datepicker__month-text","react-datepicker__month-".concat(n),c,{"react-datepicker__month-text--disabled":r.
226isMonthDisabled(n),"react-datepicker__month-text--selected":f?r.isSelectMonthInList(a,n,f):void 0,"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&l&&r.isSelectedMonth(a,n,l)&&!r.isMonthSelected()&&!r.isMonthDisabled(n),"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(n),"react-datepicker__month-text--in-range":o&&s?kF(o,s,n,a):void 0,"react-datepicker__month-text--range-start":r.isRangeStartMonth(n),"react-datepicker__month-text--range-end":r.isRangeEndMonth(n),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(n),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(n),"react-datepicker__month-text--today":r.isCurrentMonth(a,n)})},r.getTabIndex=function(n){if(r.props.preSelection==null)return"-1";var i=Jl(r.props.preSelection),a=r.isMonthDisabledForLabelDate(i).isDisabled,o=n===i&&!(a||r.props.disabledKeyboardNavigation)?"0":"-1";return o},r.getQuarterTabIndex=function(n){if(r.props.preSelection==null)return"-1";var i=Ay(r.props.preSelection),a=NF(r.props.day,r.props),o=n===i&&!(a||r.props.disabledKeyboardNavigation)?"0":"-1";return o},r.getAriaLabel=function(n){var i=r.props,a=i.chooseDayAriaLabelPrefix,o=a===void 0?"Choose":a,s=i.disabledDayAriaLabelPrefix,l=s===void 0?"Not available":s,u=i.day,c=i.locale,f=ju(u,n),d=r.isDisabled(f)||r.isExcluded(f)?l:o;return"".concat(d," ").concat(Gi(f,"MMMM yyyy",c))},r.getQuarterClassNames=function(n){var i=r.props,a=i.day,o=i.startDate,s=i.endDate,l=i.minDate,u=i.maxDate,c=i.excludeDates,f=i.includeDates,d=i.filterDate,A=i.preSelection,p=i.disabledKeyboardNavigation,g=i.disabled,m=(l||u||c||f||d||g)&&NF(hC(a,n),r.props),y=r.getSelection();return Ha("react-datepicker__quarter-text","react-datepicker__quarter-".concat(n),{"react-datepicker__quarter-text--disabled":m,"react-datepicker__quarter-text--selected":y?r.isSelectQuarterInList(a,n,y):void 0,"react-datepicker__quarter-text--keyboard-selected":!p&&A&&r.isSelectedQuarter(a,n,A)&&!r.isQuarterSelected()&&!m,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(n),"react-datepicker__quarter-text--in-range":o&&s?UF(o,s,n,a):void 0,"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(n),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(n),"react-datepicker__quarter-text--today":r.
226isCurrentQuarter(a,n)})},r.getMonthContent=function(n){var i=r.props,a=i.showFullMonthYearPicker,o=i.renderMonthContent,s=i.locale,l=i.day,u=xIe(n,s),c=wte(n,s);return o?o(n,u,c,l):a?c:u},r.getQuarterContent=function(n){var i,a=r.props,o=a.renderQuarterContent,s=a.locale,l=gkt(n,s);return(i=o?.(n,l))!==null&&i!==void 0?i:l},r.renderMonths=function(){var n,i=r.props,a=i.showTwoColumnMonthYearPicker,o=i.showFourColumnMonthYearPicker,s=i.day,l=i.selected,u=(n=pK[bge(o,a)])===null||n===void 0?void 0:n.grid;return u?.map(function(c,f){return ue.createElement("div",{className:"react-datepicker__month-wrapper",key:f},c.map(function(d,A){return ue.createElement("div",{ref:r.MONTH_REFS[d],key:A,onClick:function(p){r.onMonthClick(p,d)},onKeyDown:function(p){BIe(p)&&(p.preventDefault(),p.key=_t.Enter),r.onMonthKeyDown(p,d)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onMonthMouseEnter(d)},onPointerEnter:r.props.usePointerEvent?function(){return r.onMonthMouseEnter(d)}:void 0,tabIndex:Number(r.getTabIndex(d)),className:r.getMonthClassNames(d),"aria-disabled":r.
226isMonthDisabled(d),role:"option","aria-label":r.getAriaLabel(d),"aria-current":r.isCurrentMonth(s,d)?"date":void 0,"aria-selected":l?r.isSelectedMonth(s,d,l):void 0},r.getMonthContent(d))}))})},r.renderQuarters=function(){var n=r.props,i=n.day,a=n.selected,o=[1,2,3,4];return ue.createElement("div",{className:"react-datepicker__quarter-wrapper"},o.map(function(s,l){return ue.createElement("div",{key:l,ref:r.QUARTER_REFS[l],role:"option",onClick:function(u){r.onQuarterClick(u,s)},onKeyDown:function(u){r.onQuarterKeyDown(u,s)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onQuarterMouseEnter(s)},onPointerEnter:r.props.usePointerEvent?function(){return r.onQuarterMouseEnter(s)}:void 0,className:r.getQuarterClassNames(s),"aria-selected":a?r.isSelectedQuarter(i,s,a):void 0,tabIndex:Number(r.getQuarterTabIndex(s)),"aria-current":r.isCurrentQuarter(i,s)?"date":void 0},r.getQuarterContent(s))}))},r.getClassNames=function(){var n=r.props,i=n.selectingDate,a=n.selectsStart,o=n.selectsEnd,s=n.showMonthYearPicker,l=n.showQuarterYearPicker,u=n.showWeekPicker;return Ha("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(a||o)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":u})},r}return e.prototype.getSelection=function(){var r=this.props,n=r.selected,i=r.selectedDates,a=r.selectsMultiple;if(a)return i;if(n)return[n]},e.prototype.render=function(){var r=this.props,n=r.showMonthYearPicker,i=r.showQuarterYearPicker,a=r.day,o=r.ariaLabelPrefix,s=o===void 0?"Month ":o,l=s?s.trim()+" ":"",u=Gu(a)?"".concat(l).concat(Gi(a,"MMMM, yyyy",this.props.locale)):"",c=n||i;return c?ue.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":u,role:"listbox"},n?this.renderMonths():this.renderQuarters()):ue.createElement("div",{role:"table"},this.props.dayNamesHeader&&ue.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),this.props.monthHeader&&ue.createElement("div",{role:"rowgroup"},this.props.monthHeader),ue.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":u,role:"rowgroup"},this.renderWeeks()),this.props.monthFooter&&ue.createElement("div",{role:"rowgroup"},this.props.monthFooter))},e})(H.Component),Rkt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.monthOptionButtonsRef={},r.isSelectedMonth=function(n){return r.props.month===n},r.handleOptionKeyDown=function(n,i){var a;switch(i.key){case"Enter":i.preventDefault(),r.onChange(n);break;case"Escape":i.preventDefault(),r.props.onCancel();break;case"ArrowUp":case"ArrowDown":{i.preventDefault();var o=(n+(i.key==="ArrowUp"?-1:1)+r.props.monthNames.length)%r.props.monthNames.length;(a=r.monthOptionButtonsRef[o])===null||a===void 0||a.focus();break}}},r.renderOptions=function(){return r.monthOptionButtonsRef={},r.props.monthNames.map(function(n,i){return ue.createElement("div",{ref:function(a){r.monthOptionButtonsRef[i]=a,r.isSelectedMonth(i)&&a?.focus()},role:"button",tabIndex:0,className:r.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:n,onClick:r.onChange.bind(r,i),onKeyDown:r.handleOptionKeyDown.bind(r,i),"aria-selected":r.isSelectedMonth(i)?"true":void 0},r.isSelectedMonth(i)?ue.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",n)})},r.onChange=function(n){return r.props.onChange(n)},r.handleClickOutside=function(){return r.props.onCancel()},r}return e.prototype.render=function(){return ue.createElement(qQ,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},e})(H.Component),Ikt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.state={dropdownVisible:!1},r.renderSelectOptions=function(n){return n.map(function(i,a){return ue.createElement("option",{key:i,value:a},i)})},r.renderSelectMode=function(n){return ue.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(i){return r.onChange(parseInt(i.target.value))}},r.renderSelectOptions(n))},r.renderReadView=function(n,i){return ue.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},ue.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),ue.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[r.props.month]))},r.renderDropdown=function(n){return ue.createElement(Rkt,nn({key:"dropdown"},r.props,{monthNames:n,onChange:r.onChange,onCancel:r.toggleDropdown}))},r.renderScrollMode=function(n){var i=r.state.dropdownVisible,a=[r.renderReadView(!i,n)];return i&&a.unshift(r.renderDropdown(n)),a},r.onChange=function(n){r.toggleDropdown(),n!==r.props.month&&r.props.onChange(n)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},r}return e.prototype.render=function(){var r=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return xIe(a,r.props.locale)}:function(a){return wte(a,r.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(n);break;case"select":i=this.renderSelectMode(n);break}return ue.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e})(H.Component),xge=5;function Okt(t,e,r){for(var n=[],i=t??Jy(r,xge),a=e??Wf(r,xge),o=rg(i),s=rg(a);!zA(o,s);
226)n.push(Rn(o)),o=ed(o,1);return n}var Pkt=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(i){var a=A7(i),o=EA(n.props.date,i)&&Xl(n.props.date,i);return ue.createElement("div",{className:o?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:n.onChange.bind(n,a),"aria-selected":o?"true":void 0},o?ue.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Gi(i,n.props.dateFormat,n.props.locale))})},n.onChange=function(i){return n.props.onChange(i)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:Okt(n.props.minDate,n.props.maxDate,n.props.date)},n}return e.prototype.render=function(){var r=Ha({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ue.createElement(qQ,{className:r,onClickOutside:this.handleClickOutside},this.renderOptions())},e})(H.Component),Sge=5,kkt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var n,i,a=(n=r.props.minDate)!==null&&n!==void 0?n:Jy(r.props.date,Sge),o=(i=r.props.maxDate)!==null&&i!==void 0?i:Wf(r.props.date,Sge),s=rg(a),l=rg(o),u=[];!zA(s,l);){var c=A7(s);u.push(ue.createElement("option",{key:c,value:c},Gi(s,r.props.dateFormat,r.props.locale))),s=ed(s,1)}return u},r.onSelectChange=function(n){r.onChange(parseInt(n.target.value))},r.renderSelectMode=function(){return ue.createElement("select",{value:A7(rg(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(n){var i=Gi(r.props.date,r.props.dateFormat,r.props.locale);return ue.createElement("div",{key:"read",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:r.toggleDropdown},ue.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ue.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},r.renderDropdown=function(){return ue.createElement(Pkt,nn({key:"dropdown"},r.props,{onChange:r.onChange,onCancel:r.toggleDropdown}))},r.renderScrollMode=function(){var n=r.state.dropdownVisible,i=[r.renderReadView(!n)];return n&&i.unshift(r.renderDropdown()),i},r.onChange=function(n){r.toggleDropdown();var i=Rn(n);EA(r.props.date,i)&&Xl(r.props.date,i)||r.props.onChange(i)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},r}return e.prototype.render=function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode();break}return ue.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)},e})(H.Component),Nkt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.state={height:null},r.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var n,i,a;r.list&&(r.list.scrollTop=(a=r.centerLi&&e.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-((i=(n=r.header)===null||n===void 0?void 0:n.clientHeight)!==null&&i!==void 0?i:0):r.list.clientHeight,r.centerLi))!==null&&a!==void 0?a:0)})},r.handleClick=function(n){var i,a;(r.props.minTime||r.props.maxTime)&&Age(n,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&hge(n,r.props)||(a=(i=r.props).onChange)===null||a===void 0||a.call(i,n)},r.isSelectedTime=function(n){var i=rb(r.props.selected);return i&&EIe(i,n)},r.isDisabledTime=function(n){return(r.props.minTime||r.props.maxTime)&&Age(n,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&hge(n,r.props)},r.liClasses=function(n){var i,a=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(n):void 0];return r.isSelectedTime(n)&&a.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(n)&&a.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(ul(n)*3600+cl(n)*60+My(n))%(((i=r.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},r.handleOnKeyDown=function(n,i){var a,o;n.key===_t.Space&&(n.preventDefault(),n.key=_t.Enter),(n.key===_t.ArrowUp||n.key===_t.ArrowLeft)&&n.target instanceof HTMLElement&&n.target.previousSibling&&(n.preventDefault(),n.target.previousSibling instanceof HTMLElement&&n.target.previousSibling.focus()),(n.key===_t.ArrowDown||n.key===_t.ArrowRight)&&n.target instanceof HTMLElement&&n.target.nextSibling&&(n.preventDefault(),n.target.nextSibling instanceof HTMLElement&&n.target.nextSibling.focus()),n.key===_t.Enter&&r.handleClick(i),(o=(a=r.props).handleOnKeyDown)===null||o===void 0||o.call(a,n)},r.renderTimes=function(){for(var n,i=[],a=typeof r.props.format=="string"?r.props.format:"p",o=(n=r.props.intervals)!==null&&n!==void 0?n:e.defaultProps.intervals,s=rb(r.props.selected)||rb(r.props.openToDate)||Rn(),l=QM(s),u=r.props.injectTimes&&r.props.injectTimes.sort(function(m,y){return m.getTime()-y.getTime()}),c=60*Tkt(s),f=c/o,d=0;d<f;d++){var A=YL(l,d*o);if(i.push(A),u){var p=Ckt(l,A,d,o,u);i=i.concat(p)}}var g=i.reduce(function(m,y){return y.getTime()<=s.getTime()?y:m},i[0]);return i.map(function(m){return ue.createElement("li",{key:m.valueOf(),onClick:r.handleClick.bind(r,m),className:r.liClasses(m),ref:function(y){m===g&&(r.centerLi=y)},onKeyDown:function(y){r.handleOnKeyDown(y,m)},tabIndex:m===g?0:-1,role:"option","aria-selected":r.isSelectedTime(m)?"true":void 0,"aria-disabled":r.
226isDisabledTime(m)?"true":void 0},Gi(m,a,r.props.locale))})},r.renderTimeCaption=function(){return r.props.showTimeCaption===!1?ue.createElement(ue.Fragment,null):ue.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(r.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(n){r.header=n}},ue.createElement("div",{className:"react-datepicker-time__header"},r.props.timeCaption))},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},e.prototype.componentWillUnmount=function(){var r;(r=this.resizeObserver)===null||r===void 0||r.disconnect()},e.prototype.observeDatePickerHeightChanges=function(){var r=this,n=this.props.monthRef;this.updateContainerHeight(),n&&(this.resizeObserver=new ResizeObserver(function(){r.updateContainerHeight()}),this.resizeObserver.observe(n))},e.prototype.updateContainerHeight=function(){if(this.props.monthRef&&this.header){var r=this.props.monthRef.clientHeight-this.header.clientHeight;this.state.height!==r&&this.setState({height:r})}},e.prototype.render=function(){var r=this,n,i=this.state.height;return ue.createElement("div",{className:"react-datepicker__time-container ".concat(((n=this.props.todayButton)!==null&&n!==void 0?n:e.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),ue.createElement("div",{className:"react-datepicker__time"},ue.createElement("div",{className:"react-datepicker__time-box"},ue.createElement("ul",{className:"react-datepicker__time-list",ref:function(a){r.list=a},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},e.calcCenterPosition=function(r,n){return n.offsetTop-(r/2-n.clientHeight/2)},e})(H.Component),Cge=3,Fkt=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;return n.YEAR_REFS=HA([],Array(n.props.yearItemNumber),!0).map(function(){return H.createRef()}),n.isDisabled=function(i){return Uf(i,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(i){return _te(i,{excludeDates:n.props.excludeDates})},n.selectingDate=function(){var i;return(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection},n.updateFocusOnPaginate=function(i){var a=function(){var o,s;(s=(o=n.YEAR_REFS[i])===null||o===void 0?void 0:o.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(a)},n.handleYearClick=function(i,a){n.props.onDayClick&&n.props.onDayClick(i,a)},n.handleYearNavigation=function(i,a){var o,s,l,u,c=n.props,f=c.date,d=c.yearItemNumber;if(!(f===void 0||d===void 0)){var A=Qv(f,d).startPeriod;n.isDisabled(a)||n.isExcluded(a)||((s=(o=n.props).setPreSelection)===null||s===void 0||s.call(o,a),i-A<0?n.updateFocusOnPaginate(d-(A-i)):i-A>=d?n.updateFocusOnPaginate(Math.abs(d-(i-A))):(u=(l=n.YEAR_REFS[i-A])===null||l===void 0?void 0:l.current)===null||u===void 0||u.focus())}},n.isSameDay=function(i,a){return vn(i,a)},n.isCurrentYear=function(i){return i===on(Rn())},n.isRangeStart=function(i){return n.props.startDate&&n.props.endDate&&EA(Xd(Rn(),i),n.props.startDate)},n.isRangeEnd=function(i){return n.props.startDate&&n.props.endDate&&EA(Xd(Rn(),i),n.props.endDate)},n.isInRange=function(i){return FF(i,n.props.startDate,n.props.endDate)},n.isInSelectingRange=function(i){var a=n.props,o=a.selectsStart,s=a.selectsEnd,l=a.selectsRange,u=a.startDate,c=a.endDate;return!(o||s||l)||!n.selectingDate()?!1:o&&c?FF(i,n.selectingDate(),c):s&&u||l&&u&&!c?FF(i,u,n.selectingDate()):!1},n.isSelectingRangeStart=function(i){var a;if(!n.isInSelectingRange(i))return!1;var o=n.props,s=o.startDate,l=o.selectsStart,u=Xd(Rn(),i);return l?EA(u,(a=n.selectingDate())!==null&&a!==void 0?a:null):EA(u,s??null)},n.isSelectingRangeEnd=function(i){var a;if(!n.isInSelectingRange(i))return!1;var o=n.props,s=o.endDate,l=o.selectsEnd,u=o.selectsRange,c=Xd(Rn(),i);return l||u?EA(c,(a=n.selectingDate())!==null&&a!==void 0?a:null):EA(c,s??null)},n.isKeyboardSelected=function(i){if(!(n.props.disabledKeyboardNavigation||n.props.date===void 0||n.props.preSelection==null)){var a=n.props,o=a.minDate,s=a.maxDate,l=a.excludeDates,u=a.includeDates,c=a.filterDate,f=a.selected,d=jM(Xd(n.props.date,i)),A=(o||s||l||u||c)&&a4(i,n.props),p=!!f&&vn(d,jM(f)),g=vn(d,jM(n.props.preSelection));return!n.props.inline&&!p&&g&&!A}},n.isSelectedYear=function(i){var a=n.props,o=a.selectsMultiple,s=a.selected,l=a.selectedDates;return o?l?.some(function(u){return i===on(u)}):!!s&&i===on(s)},n.onYearClick=function(i,a){var o=n.props.date;o!==void 0&&n.handleYearClick(jM(Xd(o,a)),i)},n.onYearKeyDown=function(i,a){var o,s,l=i.key,u=n.props,c=u.date,f=u.yearItemNumber,d=u.handleOnKeyDown;if(l!==_t.Tab&&i.preventDefault(),!n.props.disabledKeyboardNavigation)switch(l){case _t.Enter:if(n.props.selected==null)break;n.onYearClick(i,a),(s=(o=n.props).setPreSelection)===null||s===void 0||s.call(o,n.props.selected);break;case _t.ArrowRight:if(n.props.preSelection==null)break;n.handleYearNavigation(a+1,Wf(n.props.preSelection,1));break;case _t.ArrowLeft:if(n.props.preSelection==null)break;n.handleYearNavigation(a-1,Jy(n.props.preSelection,1));break;case _t.ArrowUp:{if(c===void 0||f===void 0||n.props.preSelection==null)break;var A=Qv(c,f).startPeriod,p=Cge,g=a-p;if(g<A){var m=f%p;a>=A&&a<A+m?p=m:p+=m,g=a-p}n.handleYearNavigation(g,Jy(n.props.preSelection,p));break}case _t.ArrowDown:{if(c===void 0||f===void 0||n.props.preSelection==null)break;var y=Qv(c,f).endPeriod,p=Cge,g=a+p;if(g>y){var m=f%p;a<=y&&a>y-m?p=m:p+=m,g=a+p}n.handleYearNavigation(g,Wf(n.props.preSelection,p));break}}d&&d(i)},n.getYearClassNames=function(i){var a=n.props,o=a.date,s=a.disabled,l=a.minDate,u=a.maxDate,c=a.excludeDates,f=a.includeDates,d=a.filterDate,A=a.yearClassName;return Ha("react-datepicker__year-text","react-datepicker__year-".concat(i),o?A?.(Xd(o,i)):void 0,{"react-datepicker__year-text--selected":n.isSelectedYear(i),"react-datepicker__year-text--disabled":(l||u||c||f||d||s)&&a4(i,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(i),"react-datepicker__year-text--range-start":n.isRangeStart(i),"react-datepicker__year-text--range-end":n.isRangeEnd(i),"react-datepicker__year-text--in-range":n.isInRange(i),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(i),"react-datepicker__year-text--today":n.isCurrentYear(i)})},n.getYearTabIndex=function(i){if(n.props.disabledKeyboardNavigation||n.props.preSelection==null)return"-1";var a=on(n.props.preSelection),o=a4(i,n.props);return i===a&&!o?"0":"-1"},n.getYearContent=function(i){return n.props.renderYearContent?n.props.renderYearContent(i):i},n}return e.prototype.render=function(){var r=this,n=[],i=this.props,a=i.date,o=i.yearItemNumber,s=i.onYearMouseEnter,l=i.onYearMouseLeave;if(a===void 0)return null;for(var u=Qv(a,o),c=u.startPeriod,f=u.endPeriod,d=function(g){n.push(ue.createElement("div",{ref:A.YEAR_REFS[g-c],onClick:function(m){r.onYearClick(m,g)},onKeyDown:function(m){BIe(m)&&(m.preventDefault(),m.key=_t.Enter),r.onYearKeyDown(m,g)},tabIndex:Number(A.getYearTabIndex(g)),className:A.getYearClassNames(g),onMouseEnter:A.props.usePointerEvent?void 0:function(m){return s(m,g)},onPointerEnter:A.props.usePointerEvent?function(m){return s(m,g)}:void 0,onMouseLeave:A.props.usePointerEvent?void 0:function(m){return l(m,g)},onPointerLeave:A.props.usePointerEvent?function(m){return l(m,g)}:void 0,key:g,"aria-current":A.isCurrentYear(g)?"date":void 0},A.getYearContent(g)))},A=this,p=c;p<=f;p++)d(p);return ue.createElement("div",{className:"react-datepicker__year"},ue.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},n))},e})(H.Component);function Ukt(t,e,r,n){for(var i=[],a=0;a<2*e+1;a++){var o=t+e-a,s=!0;r&&(s=on(r)<=o),n&&s&&(s=on(n)>=o),s&&i.push(o)}return i}var Hkt=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;n.yearOptionButtonsRef={},n.handleOptionKeyDown=function(s,l){var u;switch(l.key){case"Enter":l.preventDefault(),n.onChange(s);break;case"Escape":l.preventDefault(),n.props.onCancel();break;case"ArrowUp":case"ArrowDown":{l.preventDefault();var c=s+(l.key==="ArrowUp"?1:-1);n.yearOptionButtonsRef[c]&&((u=n.yearOptionButtonsRef[c])===null||u===void 0||u.focus());break}}},n.renderOptions=function(){n.yearOptionButtonsRef={};var s=n.props.year,l=n.state.yearsList.map(function(f){return ue.createElement("div",{ref:function(d){n.yearOptionButtonsRef[f]=d,f===s&&d?.focus()},role:"button",tabIndex:0,className:s===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:n.onChange.bind(n,f),onKeyDown:n.handleOptionKeyDown.bind(n,f),"aria-selected":s===f?"true":void 0},s===f?ue.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),u=n.props.minDate?on(n.props.minDate):null,c=n.props.maxDate?on(n.props.maxDate):null;return(!c||!n.state.yearsList.find(function(f){return f===c}))&&l.unshift(ue.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},ue.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!u||!n.state.yearsList.find(function(f){return f===u}))&&l.push(ue.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},ue.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},n.onChange=function(s){n.props.onChange(s)},n.handleClickOutside=function(){n.props.onCancel()},n.shiftYears=function(s){var l=n.state.yearsList.map(function(u){return u+s});n.setState({yearsList:l})},n.incrementYears=function(){return n.shiftYears(1)},n.decrementYears=function(){return n.shiftYears(-1)};var i=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,o=i||(a?10:5
226);return n.state={yearsList:Ukt(n.props.year,o,n.props.minDate,n.props.maxDate)},n.dropdownRef=H.createRef(),n}return e.prototype.componentDidMount=function(){var r=this.dropdownRef.current;if(r){var n=r.children?Array.from(r.children):null,i=n?n.find(function(a){return a.ariaSelected}):null;r.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}},e.prototype.render=function(){var r=Ha({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ue.createElement(qQ,{className:r,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},e})(H.Component),Qkt=(function(t){Hs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var n=r.props.minDate?on(r.props.minDate):1900,i=r.props.maxDate?on(r.props.maxDate):2100,a=[],o=n;o<=i;o++)a.push(ue.createElement("option",{key:o,value:o},o));return a},r.onSelectChange=function(n){r.onChange(parseInt(n.target.value))},r.renderSelectMode=function(){return ue.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(n){return ue.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:r.toggleDropdown},ue.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),ue.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))},r.renderDropdown=function(){return ue.createElement(Hkt,nn({key:"dropdown"},r.props,{onChange:r.onChange,onCancel:r.toggleDropdown}))},r.renderScrollMode=function(){var n=r.state.dropdownVisible,i=[r.renderReadView(!n)];return n&&i.unshift(r.renderDropdown()),i},r.onChange=function(n){r.toggleDropdown(),n!==r.props.year&&r.props.onChange(n)},r.toggleDropdown=function(n){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,n)})},r.handleYearChange=function(n,i){var a;(a=r.onSelect)===null||a===void 0||a.call(r,n,i),r.setOpen()},r.onSelect=function(n,i){var a,o;(o=(a=r.props).onSelect)===null||o===void 0||o.call(a,n,i)},r.setOpen=function(){var n,i;(i=(n=r.props).setOpen)===null||i===void 0||i.call(n,!0)},r}return e.prototype.render=function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode();break}return ue.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)},e})(H.Component),jkt=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],DIe="react-datepicker-ignore-onclickoutside",zkt=function(t){var e=(t.className||"").split(/\s+/);return jkt.some(function(r){return e.indexOf(r)>=0})},Vkt=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;return n.monthContainer=void 0,n.handleClickOutside=function(i){n.props.onClickOutside(i)},n.setClickOutsideRef=function(){return n.containerRef.current},n.handleDropdownFocus=function(i){var a,o;zkt(i.target)&&((o=(a=n.props).onDropdownFocus)===null||o===void 0||o.call(a,i))},n.getDateInView=function(){var i=n.props,a=i.preSelection,o=i.selected,s=i.openToDate,l=CIe(n.props),u=TIe(n.props),c=Rn(),f=s||o||a;return f||(l&&eh(c,l)?l:u&&zA(c,u)?u:c)},n.increaseMonth=function(){n.setState(function(i){var a=i.date;return{date:ed(a,1)}},function(){return n.handleMonthChange(n.state.date)})},n.decreaseMonth=function(){n.setState(function(i){var a=i.date;return{date:fb(a,1)}},function(){return n.handleMonthChange(n.state.date)})},n.handleDayClick=function(i,a,o){n.props.onSelect(i,a,o),n.props.setPreSelection&&n.props.setPreSelection(i)},n.handleDayMouseEnter=function(i){n.setState({selectingDate:i}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(i)},n.handleMonthMouseLeave=function(){n.setState({selectingDate:void 0}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()},n.handleYearMouseEnter=function(i,a){n.setState({selectingDate:Xd(Rn(),a)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(i,a)},n.handleYearMouseLeave=function(i,a){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(i,a)},n.handleYearChange=function(i){var a,o,s,l;
226(o=(a=n.props).onYearChange)===null||o===void 0||o.call(a,i),n.setState({isRenderAriaLiveMessage:!0}),n.props.adjustDateOnChange&&(n.props.onSelect(i),(l=(s=n.props).setOpen)===null||l===void 0||l.call(s,!0)),n.props.setPreSelection&&n.props.setPreSelection(i)},n.getEnabledPreSelectionDateForMonth=function(i){if(!Uf(i,n.props))return i;for(var a=rg(i),o=hkt(i),s=oZe(o,a),l=null,u=0;u<=s;u++){var c=Kf(a,u);if(!Uf(c,n.props)){l=c;break}}return l},n.handleMonthChange=function(i){var a,o,s,l=(a=n.getEnabledPreSelectionDateForMonth(i))!==null&&a!==void 0?a:i;n.handleCustomMonthChange(l),n.props.adjustDateOnChange&&(n.props.onSelect(l),(s=(o=n.props).setOpen)===null||s===void 0||s.call(o,!0)),n.props.setPreSelection&&n.props.setPreSelection(l)},n.handleCustomMonthChange=function(i){var a,o;(o=(a=n.props).onMonthChange)===null||o===void 0||o.call(a,i),n.setState({isRenderAriaLiveMessage:!0})},n.handleMonthYearChange=function(i){n.handleYearChange(i),n.handleMonthChange(i)},n.changeYear=function(i){n.setState(function(a){var o=a.date;return{date:Xd(o,Number(i))}},function(){return n.handleYearChange(n.state.date)})},n.changeMonth=function(i){n.setState(function(a){var o=a.date;return{date:ju(o,Number(i))}},function(){var a,o;n.handleMonthChange(n.state.date),(o=(a=n.props).onMonthSelectedInChange)===null||o===void 0||o.call(a,0)})},n.changeMonthYear=function(i){n.setState(function(a){var o=a.date;return{date:Xd(ju(o,Jl(i)),on(i))}},function(){return n.handleMonthYearChange(n.state.date)})},n.header=function(i,a){if(i===void 0&&(i=n.state.date),a===void 0&&(a=0),!Gu(i))return[];var o=n.props.disabled,s=jy(i,n.props.locale,n.props.calendarStartDay),l=[];return n.props.showWeekNumbers&&l.push(ue.createElement("div",{key:"W",className:"react-datepicker__day-name ".concat(o?"react-datepicker__day-name--disabled":""),role:"columnheader"},ue.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),ue.createElement("span",{"aria-hidden":"true"},n.props.weekLabel||"#"))),l.concat([0,1,2,3,4,5,6].map(function(u){var c=Kf(s,u),f=n.formatWeekday(c,n.props.locale),d=Gi(c,"EEEE",n.props.locale),A=n.props.weekDayClassName?n.props.weekDayClassName(c):void 0;if(n.props.renderCustomDayName){var p=n.props.renderCustomDayName({day:c,shortName:f,fullName:d,locale:n.props.locale,customDayNameCount:a});return ue.createElement("div",{key:u,role:"columnheader",className:Ha("react-datepicker__day-name",A,o?"react-datepicker__day-name--disabled":"")},p)}return ue.createElement("div",{key:u,role:"columnheader",className:Ha("react-datepicker__day-name",A,o?"react-datepicker__day-name--disabled":"")},ue.createElement("span",{className:"react-datepicker__sr-only"},d),ue.createElement("span",{"aria-hidden":"true"},f))}))},n.formatWeekday=function(i,a){return n.props.formatWeekDay?Akt(i,n.props.formatWeekDay,a):n.props.useWeekdaysShort?vkt(i,a):pkt(i,a)},n.decreaseYear=function(){n.setState(function(i){var a,o=i.date;return{date:Jy(o,n.props.showYearPicker?(a=n.props.yearItemNumber)!==null&&a!==void 0?a:e.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.clearSelectingDate=function(){n.setState({selectingDate:void 0})},n.renderPreviousButton=function(){var i,a,o;if(!n.props.renderCustomHeader){var s=(i=n.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=n.props.showPreviousMonths?s-1:0,u=(a=n.props.monthSelectedIn)!==null&&a!==void 0?a:l,c=fb(n.state.date,u),f;switch(!0){case n.props.disabled:f=!0;break;case n.props.showMonthYearPicker:f=gge(n.state.date,n.props);break;case n.props.showYearPicker:f=_kt(n.state.date,n.props);break;case n.props.showQuarterYearPicker:f=ykt(n.state.date,n.props);break;default:f=pge(c,n.props);break}if(!(!((o=n.props.forceShowMonthNavigation)!==null&&o!==void 0?o:e.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&f||n.props.showTimeSelectOnly)){var d=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],A=["react-datepicker__navigation","react-datepicker__navigation--previous"],p=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(p=n.decreaseYear),f&&n.props.showDisabledMonthNavigation&&(A.pu
226sh("react-datepicker__navigation--previous--disabled"),p=void 0);var g=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,m=n.props,y=m.previousMonthButtonLabel,b=y===void 0?e.defaultProps.previousMonthButtonLabel:y,x=m.previousYearButtonLabel,T=x===void 0?e.defaultProps.previousYearButtonLabel:x,B=n.props,R=B.previousMonthAriaLabel,I=R===void 0?typeof b=="string"?b:"Previous Month":R,N=B.previousYearAriaLabel,F=N===void 0?typeof T=="string"?T:"Previous Year":N;return ue.createElement("button",{type:"button",className:A.join(" "),onClick:p,onKeyDown:n.props.handleOnKeyDown,"aria-label":g?F:I},ue.createElement("span",{className:d.join(" ")},g?T:b))}}},n.increaseYear=function(){n.setState(function(i){var a,o=i.date;return{date:Wf(o,n.props.showYearPicker?(a=n.props.yearItemNumber)!==null&&a!==void 0?a:e.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.renderNextButton=function(){var i;if(!n.props.renderCustomHeader){var a;switch(!0){case n.props.disabled:a=!0;break;case n.props.showMonthYearPicker:a=mge(n.state.date,n.props);break;case n.props.showYearPicker:a=bkt(n.state.date,n.props);break;case n.props.showQuarterYearPicker:a=wkt(n.state.date,n.props);break;default:a=vge(n.state.date,n.props);break}if(!(!((i=n.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&a||n.props.showTimeSelectOnly)){var o=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];n.props.showTimeSelect&&o.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&o.push("react-datepicker__navigation--next--with-today-button");var l=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(l=n.increaseYear),a&&n.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--next--disabled"),l=void 0);var u=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,c=n.props,f=c.nextMonthButtonLabel,d=f===void 0?e.defaultProps.nextMonthButtonLabel:f,A=c.nextYearButtonLabel,p=A===void 0?e.defaultProps.nextYearButtonLabel:A,g=n.props,m=g.nextMonthAriaLabel,y=m===void 0?typeof d=="string"?d:"Next Month":m,b=g.nextYearAriaLabel,x=b===void 0?typeof p=="string"?p:"Next Year":b;return ue.createElement("button",{type:"button",className:o.join(" "),onClick:l,onKeyDown:n.props.handleOnKeyDown,"aria-label":u?x:y},ue.createElement("span",{className:s.join(" ")},u?p:d))}}},n.renderCurrentMonth=function(i){i===void 0&&(i=n.state.date);var a=["react-datepicker__current-month"];return n.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),ue.createElement("h2",{className:a.join(" ")},Gu(i)?Gi(i,n.props.dateFormat,n.props.locale):"")},n.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!n.props.showYearDropdown||i))return ue.createElement(Qkt,nn({},e.defaultProps,n.props,{date:n.state.date,onChange:n.changeYear,year:on(n.state.date)}))},n.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!n.props.showMonthDropdown||i))return ue.createElement(Ikt,nn({},e.defaultProps,n.props,{month:Jl(n.state.date),onChange:n.changeMonth}))},n.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!n.props.showMonthYearDropdown||i))return ue.createElement(kkt,nn({},e.defaultProps,n.props,{date:n.state.date,onChange:n.changeMonthYear}))},n.handleTodayButtonClick=function(i){n.props.onSelect(cge(),i),n.props.setPreSelection&&n.props.setPreSelection(cge())},n.renderTodayButton=function(){if(!(!n.props.todayButton||n.props.showTimeSelectOnly))return ue.createElement("div",{className:"react-datepicker__today-button",onClick:n.handleTodayButtonClick},n.props.todayButton)},n.renderDayNamesHeader=function(i,a){return a===void 0&&(a=0),ue.createElement("div",{className:"react-datepicker__day-names",role:"row"},n.header(i,a))},n.renderDefaultHeader=function(i){var a=i.monthDate,o=i.i,s=ue.createElement("div",{className:Ha("react-datepicker__header",{"react-datepicker__header--has-time-select":n.props.showTimeSelect,"react-datepicker__header--middle":n.props.monthHeaderPosition==="middle","react-datepicker__header--bottom":n.props.monthHeaderPosition==="bottom"})},n.renderCurrentMonth(a),ue.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(o!==0),n.renderMonthYearDropdown(o!==0),n.renderYearDropdown(o!==0)));return n.props.monthHeaderPosition==="top"?s:ue.createElement("div",{className:"react-datepicker__header-wrapper"},n.renderPreviousButton()||null,n.renderNextButton()||null,s)},n.renderCustomHeader=function(i){var a,o,s=i.monthDate,l=i.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var u=n.props,c=u.showYearPicker,f=u.yearItemNumber,d;if(c){var A=Qv(s,f),p=A.startPeriod,g=A.endPeriod;d={startYear:p,endYear:g}}var m=pge(n.state.date,n.props),y=vge(n.state.date,n.props),b=gge(n.state.date,n.props),x=mge(n.state.date,n.props);return ue.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},(o=(a=n.props).renderCustomHeader)===null||o===void 0?void 0:o.call(a,nn(nn(nn({},n.state),c&&{visibleYearsRange:d}),{customHeaderCount:l,monthDate:s,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:m,nextMonthButtonDisabled:y,prevYearButtonDisabled:b,nextYearButtonDisabled:x})))},n.renderYearHeader=function(i){var a=i.monthDate,o=n.props,s=o.showYearPicker,l=o.yearItemNumber,u=l===void 0?e.defaultProps.yearItemNumber:l,c=Qv(a,u),f=c.startPeriod,d=c.endPeriod;return ue.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(f," - ").concat(d):on(a))},n.renderHeader=function(i){var a=i.monthDate,o=i.i,s=o===void 0?0:o,l={monthDate:a,i:s};switch(!0){case n.props.renderCustomHeader!==void 0:return n.renderCustomHeader(l);case(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker):return n.renderYearHeader(l);default:return n.renderDefaultHeader(l)}},n.renderMonths=function(){var i,a;if(!(n.props.showTimeSelectOnly||n.props.showYearPicker)){for(var o=[],s=(i=n.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=n.props.showPreviousMonths?s-1:0,u=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?Wf(n.state.date,l):fb(n.state.date,l),c=(a=n.props.monthSelectedIn)!==null&&a!==void 0?a:l,f=0;f<s;++f){var d=f-c+l,A=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?Wf(u,d):ed(u,d),p="month-".concat(f),g=f<s-1,m=f>0;o.push(ue.createElement("div",{key:p,ref:function(y){n.monthContainer=y??void 0},className:"react-datepicker__month-container"},n.props.monthHeaderPosition==="top"&&n.renderHeader({monthDate:A,i:f}),ue.createElement(Lkt,nn({},e.defaultProps,n.props,{containerRef:n.containerRef,ariaLabelPrefix:n.props.monthAriaLabelPrefix,day:A,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,handleOnMonthKeyDown:n.props.handleOnKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,orderInDisplay:f,selectingDate:n.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:m,dayNamesHeader:n.renderDayNamesHeader(A,f),monthHeader:n.props.monthHeaderPosition==="middle"?n.renderHeader({monthDate:A,i:f}):void 0,monthFooter:n.props.monthHeaderPosition==="bottom"?n.renderHeader({monthDate:A,i:f}):void 0}))))}return o}},n.renderYears=function(){if(!n.props.showTimeSelectOnly&&n.props.showYearPicker)return ue.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader({monthDate:n.state.date}),ue.createElement(Fkt,nn({},e.defaultProps,n.props,{selectingDate:n.state.selectingDate,date:n.state.date,onDayClick:n.handleDayClick,clearSelectingDate:n.clearSelectingDate,onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave})))},n.renderTimeSection=function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return ue.createElement(Nkt,nn({},e.defaultProps,n.props,{onChange:n.props.onTimeChange,format:n.props.timeFormat,intervals:n.props.timeIntervals,monthRef:n.state.monthContainer}))},n.renderInputTimeSection=function(){var i,a;if(n.props.showTimeInput){if(n.props.selectsRange){var o=n.props,s=o.startDate,l=o.endDate,u=s?new Date(s):void 0,c=u&&Gu(u)&&!!s,f=c?"".concat(iC(u.getHours()),":").concat(iC(u.getMinutes())):"",d=l?new Date(l):void 0,A=d&&Gu(d)&&!!l,p=A?"".concat(iC(d.getHours()),":").concat(iC(d.getMinutes())):"";return ue.createElement(ue.Fragment,null,ue.createElement(AK,nn({}
226,e.defaultProps,n.props,{date:u,timeString:f,onChange:function(b){var x,T;(T=(x=n.props).onTimeChange)===null||T===void 0||T.call(x,b,"start")},timeInputLabel:((i=n.props.timeInputLabel)!==null&&i!==void 0?i:"Time")+" (Start)"})),ue.createElement(AK,nn({},e.defaultProps,n.props,{date:d,timeString:p,onChange:function(b){var x,T;(T=(x=n.props).onTimeChange)===null||T===void 0||T.call(x,b,"end")},timeInputLabel:((a=n.props.timeInputLabel)!==null&&a!==void 0?a:"Time")+" (End)"})))}var g=n.props.selected?new Date(n.props.selected):void 0,m=g&&Gu(g)&&!!n.props.selected,y=m?"".concat(iC(g.getHours()),":").concat(iC(g.getMinutes())):"";return ue.createElement(AK,nn({},e.defaultProps,n.props,{date:g,timeString:y,onChange:function(b){var x,T;(T=(x=n.props).onTimeChange)===null||T===void 0||T.call(x,b)}}))}},n.renderAriaLiveRegion=function(){var i;if(!Gu(n.state.date))return ue.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"});var a=Qv(n.state.date,(i=n.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),o=a.startPeriod,s=a.endPeriod,l;return n.props.showYearPicker?l="".concat(o," - ").concat(s):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?l=on(n.state.date):l="".concat(wte(Jl(n.state.date),n.props.locale)," ").concat(on(n.state.date)),ue.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&l)},n.renderChildren=function(){if(n.props.children)return ue.createElement("div",{className:"react-datepicker__children-container"},n.props.children)},n.containerRef=H.createRef(),n.state={date:n.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:DIe,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:eO,monthHeaderPosition:"top"}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){r.setState({monthContainer:r.monthContainer})})())},e.prototype.componentDidUpdate=function(r){var n=this;if(this.props.preSelection&&Gu(this.props.preSelection)&&(!vn(this.props.preSelection,r.preSelection)||this.props.monthSelectedIn!==r.monthSelectedIn)){var i=!Xl(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&n.handleCustomMonthChange(n.state.date)})}else this.props.openToDate&&!vn(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var r=this.props.container||akt;return ue.createElement(qQ,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},ue.createElement("div",{style:{display:"contents"},ref:this.containerRef},ue.createElement(r,{className:Ha("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly,inline:this.props.inline},this.renderAriaLiveRegion(),this.props.monthHeaderPosition==="top"&&this.renderPreviousButton(),this.props.monthHeaderPosition==="top"&&this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},e})(H.Component),Gkt=function(t){var e=t.icon,r=t.className,n=r===void 0?"":r,i=t.onClick,a="react-datepicker__calendar-icon";if(typeof e=="string")return ue.createElement("i",{className:"".concat(a," ").concat(e," ").concat(n),"aria-hidden":"true",onClick:i});if(ue.isValidElement(e)){var o=e;return ue.cloneElement(o,{className:"".concat(o.props.className||""," ").concat(a," ").concat(n),onClick:function(s){typeof o.props.onClick=="function"&&o.props.onClick(s),typeof i=="function"&&i(s)}})}return ue.createElement("svg",{className:"".concat(a," ").concat(n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},ue.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 9
2266 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},MIe=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return e.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return GNe.createPortal(this.props.children,this.el)},e})(H.Component),Kkt="[tabindex], a, button, input, select, textarea",Wkt=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&t.tabIndex!==-1},LIe=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;return n.getTabChildren=function(){var i;return Array.prototype.slice.call((i=n.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(Kkt),1,-1).filter(Wkt)},n.handleFocusStart=function(){var i=n.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},n.handleFocusEnd=function(){var i=n.getTabChildren();i&&i.length>1&&i[0].focus()},n.tabLoopRef=H.createRef(),n}return e.prototype.render=function(){var r;return((r=this.props.enableTabLoop)!==null&&r!==void 0?r:e.defaultProps.enableTabLoop)?ue.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ue.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,ue.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e})(H.Component);function Ykt(t){function e(r){var n,i=typeof r.hidePopper=="boolean"?r.hidePopper:!0,a=H.useRef(null),o=ikt(nn({open:!i,whileElementsMounted:R0e,placement:r.popperPlacement,middleware:HA([k0e({padding:15}),P0e(10),N0e({element:a})],(n=r.popperModifiers)!==null&&n!==void 0?n:[],!0)},r.popperProps)),s=nn(nn({},r),{hidePopper:i,popperProps:nn(nn({},o),{arrowRef:a})});return ue.createElement(t,nn({},s))}return e.displayName="withFloating(".concat(t.displayName||t.name||"Component",")"),e}var $kt=function(t){var e=t.className,r=t.wrapperClassName,n=t.hidePopper,i=n===void 0?!0:n,a=t.popperComponent,o=t.targetComponent,s=t.enableTabLoop,l=t.popperOnKeyDown,u=t.portalId,c=t.portalHost,f=t.popperProps,d=t.showArrow,A=t.popperTargetRef,p=t.monthHeaderPosition;H.useEffect(function(){A?.current&&f.refs.setPositionReference(A.current)},[A,f.refs]);var g=void 0;if(!i){var m=Ha("react-datepicker-popper",!d&&"react-datepicker-popper-offset",p==="middle"&&"react-datepicker-popper--header-middle",p==="bottom"&&"react-datepicker-popper--header-bottom",e);g=ue.createElement(LIe,{enableTabLoop:s},ue.createElement("div",{ref:f.refs.setFloating,style:f.floatingStyles,className:m,"data-placement":f.placement,onKeyDown:l},a,d&&ue.createElement(XPt,{ref:f.arrowRef,context:f.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}t.popperContainer&&(g=H.createElement(t.popperContainer,{},g)),u&&!i&&(g=ue.createElement(MIe,{portalId:u,portalHost:c},g));var y=Ha("react-datepicker-wrapper",r);return ue.createElement(ue.Fragment,null,ue.createElement("div",{ref:f.refs.setReference,className:y},o),g)},Zkt=Ykt($kt);function Tge(t,e){return t&&e?Jl(t)!==Jl(e)||on(t)!==on(e):t!==e}var vK="Date input not valid.",Xkt=(function(t){Hs(e,t);function e(r){var n=t.call(this,r)||this;return n.calendar=null,n.input=null,n.getPreSelection=function(){var i=n.props.timeZone,a=n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Rn();return i?lge(a,i):a},n.modifyHolidays=function(){var i;return(i=n.props.holidays)===null||i===void 0?void 0:i.reduce(function(a,o){var s=p_(o.date,"yyyy-MM-dd",void 0,!1);return s?HA(HA([],a,!0),[nn(nn({},o),{date:s})],!1):a},[])},n.calcInitialState=function(){var i=n.props.timeZone,a=n.getPreSelection(),o=CIe(n.props),s=TIe(n.props),l=o&&eh(a,QM(o)
226)?o:s&&zA(a,fge(s))?s:a,u=n.props.selectsRange?n.props.startDate:n.props.selected;return u&&i&&(u=lge(u,i)),{open:n.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:u??l,highlightDates:yge(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},n.getInputValue=function(){var i,a=n.props,o=a.locale,s=a.startDate,l=a.endDate,u=a.rangeSeparator,c=a.selected,f=a.selectedDates,d=a.selectsMultiple,A=a.selectsRange,p=a.formatMultipleDates,g=a.value,m=(i=n.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,y=n.state.inputValue;if(typeof g=="string")return g;if(typeof y=="string")return y;if(A)return lkt(s,l,{dateFormat:m,locale:o,rangeSeparator:u});if(d){if(p){var b=function(x){return Qu(x,{dateFormat:m,locale:o})};return p(f??[],b)}return ukt(f??[],{dateFormat:m,locale:o})}return Qu(c,{dateFormat:m,locale:o})},n.resetHiddenStatus=function(){n.setState(nn(nn({},n.state),{wasHidden:!1}))},n.setHiddenStatus=function(){n.setState(nn(nn({},n.state),{wasHidden:!0}))},n.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&n.setHiddenStatus()},n.clearPreventFocusTimeout=function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)},n.setFocus=function(){var i,a;(a=(i=n.input)===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i,{preventScroll:!0})},n.setBlur=function(){var i,a;(a=(i=n.input)===null||i===void 0?void 0:i.blur)===null||a===void 0||a.call(i),n.cancelFocusInput()},n.deferBlur=function(){requestAnimationFrame(function(){n.setBlur()})},n.setOpen=function(i,a){a===void 0&&(a=!1),n.setState({open:i,preSelection:i&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:gK},function(){i||n.setState(function(o){return{focused:a?o.focused:!1}},function(){!a&&n.deferBlur(),n.setState({inputValue:null})})})},n.inputOk=function(){return uh(n.state.preSelection)},n.isCalendarOpen=function(){return n.props.open===void 0?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open},n.handleFocus=function(i){var a,o,s=n.state.wasHidden,l=s?n.state.open:!0;s&&n.resetHiddenStatus(),n.state.preventFocus||((o=(a=n.props).onFocus)===null||o===void 0||o.call(a,i),l&&!n.props.preventOpenOnFocus&&!n.props.readOnly&&n.setOpen(!0)),n.setState({focused:!0})},n.sendFocusBackToInput=function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})}
226,n.cancelFocusInput=function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=void 0},n.deferFocusInput=function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)},n.handleDropdownFocus=function(){n.cancelFocusInput()},n.resetInputValue=function(){n.setState(nn(nn({},n.state),{inputValue:null}))},n.handleBlur=function(i){var a,o;(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&((o=(a=n.props).onBlur)===null||o===void 0||o.call(a,i));var s=n.state.inputValue;if(typeof s=="string"&&s.length>0){var l=/[a-zA-Z0-9]/.test(s);!l&&n.props.selected&&n.setSelected(null,void 0,!0)}n.resetInputValue(),n.state.open&&n.props.open===!1&&n.setOpen(!1),n.setState({focused:!1})},n.handleCalendarClickOutside=function(i){var a,o;(o=(a=n.props).onClickOutside)===null||o===void 0||o.call(a,i),!n.props.inline&&!i.defaultPrevented&&n.setOpen(!1),n.props.withPortal&&i.preventDefault()},n.handleChange=function(){for(var i,a,o,s,l,u,c,f,d=[],A=0;A<arguments.length;A++)d[A]=arguments[A];var p=d[0];if(!(n.props.onChangeRaw&&(n.props.onChangeRaw.apply(n,d),!p||typeof p.isDefaultPrevented!="function"||p.isDefaultPrevented()))){n.setState({inputValue:p?.target instanceof HTMLInputElement?p.target.value:null,lastPreSelectChange:qkt});var g=n.props,m=g.selectsRange,y=g.startDate,b=g.endDate,x=(i=n.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,T=(a=n.props.strictParsing)!==null&&a!==void 0?a:e.defaultProps.strictParsing,B=p?.target instanceof HTMLInputElement?p.target.value:"";if(m){var R=n.props.rangeSeparator,I=R.trim(),N=B.split(x.includes(I)?R:I,2).map(function(X){return X.trim()}),F=N[0],Q=N[1],j=p_(F??"",x,n.props.locale,T),W=j?p_(Q??"",x,n.props.locale,T):null,V=((o=rb(y))===null||o===void 0?void 0:o.getTime())!==j?.getTime(),Y=((s=rb(b))===null||s===void 0?void 0:s.getTime())!==W?.getTime();if(!V&&!Y||j&&Uf(j,n.props)||W&&Uf(W,n.props))return;j&&n.setState({preSelection:j}),(u=(l=n.props).onChange)===null||u===void 0||u.call(l,[j,W],p)}else{var G=p_(B,x,n.props.locale,T,(c=n.props.selected)!==null&&c!==void 0?c:void 0);if(G||!B)n.setSelected(G,p,!0);else if(!n.props.inline){var K=skt(B,(f=n.state.preSelection)!==null&&f!==void 0?f:void 0);K&&(!n.props.minDate||!eh(K,n.props.minDate))&&(!n.props.maxDate||!zA(K,n.props.maxDate))&&n.setState({preSelection:K})}}}},n.handleSelect=function(i,a,o){var s;if(!n.props.readOnly){var l=n.props,u=l.selectsRange,c=l.startDate,f=l.endDate,d=l.locale,A=l.swapRange,p=(s=n.props.dateFormat)!==null&&s!==void 0?s:e.defaultProps.dateFormat,g=!u||c&&!f&&(A||!hK(i,c));if(n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&g&&n.sendFocusBackToInput(),n.props.onChangeRaw){var m=Qu(i,{dateFormat:p,locale:d});n.props.onChangeRaw(a,{date:i,formattedDate:m})}n.setSelected(i,a,!1,o),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect?n.setPreSelection(i):g&&n.setOpen(!1)}},n.setSelected=function(i,a,o,s){var l,u,c=n.props.timeZone,f=i;if(f&&c&&(f=bv(f,c)),n.props.showYearPicker){if(f!==null&&a4(on(f),n.props))return}else if(n.props.showMonthYearPicker){if(f!==null&&SIe(f,n.props))return}else if(f!==null&&Uf(f,n.props))return;var d=n.props,A=d.onChange,p=d.selectsRange,g=d.startDate,m=d.endDate,y=d.selectsMultiple,b=d.selectedDates,x=d.minTime,T=d.swapRange;if(!nb(n.props.selected,f)||n.props.allowSameDay||p||y)if(f!==null&&(n.props.selected&&(!o||!n.props.showTimeSelect&&!n.props.showTimeSelectOnly&&!n.props.showTimeInput)&&(f=xv(f,{hour:ul(n.props.selected),minute:cl(n.props.selected),second:My(n.props.selected)})),!o&&(n.props.showTimeSelect||n.props.showTimeSelectOnly)&&x&&(f=xv(f,{hour:x.getHours(),minute:x.getMinutes(),second:x.getSeconds()})),n.props.inline||n.setState({preSelection:f}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:s})),p){var B=A,R=!g&&!m,I=g&&!m,N=!g&&!!m,F=g&&m;R?B?.([f,null],a):I?f===null?B?.([null,null],a):hK(f,g)?B?.(T?[f,g]:[f,null],a):B?.([g,f],a):N&&(f&&hK(f,m)?B?.([f,m],a):B?.([f,null],a)),F&&B?.([f,null],a)}else if(y){var Q=A;if(f!==null)if(!b?.length)Q?.([f],a);else{var j=b.some(function(V){return vn(V,f)});if(j){var W=b.filter(function(V){return!vn(V,f)}
226);Q?.(W,a)}else Q?.(HA(HA([],b,!0),[f],!1),a)}}else A?.(f,a);o||((u=(l=n.props).onSelect)===null||u===void 0||u.call(l,f,a),n.setState({inputValue:null}))},n.setPreSelection=function(i){if(!n.props.readOnly){var a=uh(n.props.minDate),o=uh(n.props.maxDate),s=!0;if(i){var l=QM(i);if(a&&o)s=L_(i,n.props.minDate,n.props.maxDate);else if(a){var u=QM(n.props.minDate);s=zA(i,u)||nb(l,u)}else if(o){var c=fge(n.props.maxDate);s=eh(i,c)||nb(l,c)}}s&&n.setState({preSelection:i})}},n.toggleCalendar=function(){n.setOpen(!n.state.open)},n.handleTimeChange=function(i,a){var o,s;if(!n.props.selectsMultiple){var l=n.props,u=l.selectsRange,c=l.startDate,f=l.endDate,d=l.onChange,A=l.timeZone;if(u){var p=d;if(a==="start"){if(c){var g=xv(c,{hour:ul(i),minute:cl(i)});n.setState({preSelection:g}),A&&(g=bv(g,A)),p?.([g,f?A?bv(f,A):f:null],void 0)}}else if(a==="end"){if(f){var m=xv(f,{hour:ul(i),minute:cl(i)});n.setState({preSelection:m}),A&&(m=bv(m,A)),p?.([c?A?bv(c,A):c:null,m],void 0)}}else{var y=c&&!f;if(y){var g=xv(c,{hour:ul(i),minute:cl(i)});n.setState({preSelection:g}),A&&(g=bv(g,A)),p?.([g,null],void 0)}else if(c&&f){var m=xv(f,{hour:ul(i),minute:cl(i)});n.setState({preSelection:m}),A&&(m=bv(m,A)),p?.([A?bv(c,A):c,m],void 0)}else{var b=xv(n.getPreSelection(),{hour:ul(i),minute:cl(i)});n.setState({preSelection:b})}}}else{var x=n.props.selected?n.props.selected:n.getPreSelection(),b=n.props.selected?i:xv(x,{hour:ul(i),minute:cl(i)});n.setState({preSelection:b}),b&&A&&(b=bv(b,A)),(s=(o=n.props).onChange)===null||s===void 0||s.call(o,b)}n.props.shouldCloseOnSelect&&!n.props.showTimeInput&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}},n.onInputClick=function(){var i,a;!n.props.disabled&&!n.props.readOnly&&n.setOpen(!0),(a=(i=n.props).onInputClick)===null||a===void 0||a.call(i)},n.handleTimeOnlyArrowKey=function(i){var a,o,s,l,u=rb(n.props.selected)||n.state.preSelection||Rn(),c=(a=n.props.timeIntervals)!==null&&a!==void 0?a:30,f=(o=n.props.dateFormat)!==null&&o!==void 0?o:e.defaultProps.dateFormat,d=Array.isArray(f)?f[0]:f,A=QM(u),p=ul(u)*60+cl(u),g=1440-c,m;if(i===_t.ArrowUp){var y=Math.max(0,p-c);m=YL(A,y)}else{var y=Math.min(g,p+c);m=YL(A,y)}var b=Gi(m,d||e.defaultProps.dateFormat,n.props.locale);if(n.setState({preSelection:m,inputValue:b}),!(n.props.selectsRange||n.props.selectsMultiple)){var x=n.props.selected?n.props.selected:n.getPreSelection(),T=n.props.selected?m:xv(x,{hour:ul(m),minute:cl(m)});(l=(s=n.props).onChange)===null||l===void 0||l.call(s,T),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),requestAnimationFrame(function(){n.scrollToTimeOption(m)})}},n.handleTimeOnlyEnterKey=function(i){var a,o,s,l,u=i.target,c=u.value,f=(a=n.props.dateFormat)!==null&&a!==void 0?a:e.defaultProps.dateFormat,d=n.props.timeFormat||"p",A=n.state.preSelection||rb(n.props.selected)||Rn(),p=p_(c,f,n.props.locale,(o=n.props.strictParsing)!==null&&o!==void 0?o:!1,A),g=A;if(p&&Gu(p))g=p;else{var m=((s=n.calendar)===null||s===void 0?void 0:s.containerRef.current)instanceof Element&&n.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");if(m instanceof HTMLElement){var y=(l=m.textContent)===null||l===void 0?void 0:l.trim();if(y){var b=p_(y,d,n.props.locale,!1,A);b&&Gu(b)&&(g=b)}}}n.handleTimeChange(g),n.setOpen(!1),n.sendFocusBackToInput()},n.scrollToTimeOption=function(i){var a,o;if(!((a=n.calendar)===null||a===void 0)&&a.containerRef.current){for(var s=n.calendar.containerRef.current,l=Array.from(s.querySelectorAll(".react-datepicker__time-list-item")),u=null,c=1/0,f=n.props.timeFormat||"p",d=0,A=l;d<A.length;d++){var p=A[d],g=(o=p.textContent)===null||o===void 0?void 0:o.trim();if(g){var m=p_(g,f,n.props.locale,!1,i);if(m&&Gu(m)){if(EIe(m,i)){u=p;break}var y=Math.abs(m.getTime()-i.getTime());y<c&&(c=y,u=p)}}}u&&(l.forEach(function(b){b.setAttribute("tabindex","-1")}),u.setAttribute("tabindex","0"),u.scrollIntoView({behavior:"smooth",block:"center"}))}},n.onInputKeyDown=function(i){var a,o,s,l,u,c;(o=(a=n.props).onKeyDown)===null||o===void 0||o.call(a,i);var f=i.key;if(!n.state.open&&!n.props.inline&&!n.props.preventOpenOnFocus){(f===_t.ArrowDown||f===_t.ArrowUp||f===_t.Enter)&&((s=n.onInputClick)===null||s===void 0||s.call(n));return}if(n.state.open&&n.props.showTimeSelectOnly){if(f===_t.ArrowDown||f===_t.ArrowUp){i.preventDefault(),n.handleTimeOnlyArrowKey(f);return}if(f===_t.Enter){i.preventDefault(),n.handleTimeOnlyEnterKey(i);return}}if(n.state.open){if(f===_t.ArrowDown||f===_t.ArrowUp){i.preventDefault();var d=n.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':n.props.showFullMonthYearPicker||n.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',A=((l=n.calendar)===null||l===void 0?void 0:l.containerRef.current)instanceof Element&&n.calendar.containerRef.current.querySelector(d);A instanceof HTMLElement&&A.focus({preventScroll:!0});return}var p=Rn(n.state.preSelection);f===_t.Enter?(i.preventDefault(),i.target.blur(),n.inputOk()&&n.state.lastPreSelectChange===gK?(n.handleSelect(p,i),!n.props.shouldCloseOnSelect&&n.setPreSelection(p)):n.setOpen(!1)):f===_t.Escape?(i.preventDefault(),i.target.blur(),n.sendFocusBackToInput(),n.setOpen(!1)):f===_t.Tab&&n.setOpen(!1),n.inputOk()||(c=(u=n.props).onInputError)===null||c===void 0||c.c
226all(u,{code:1,msg:vK})}},n.onPortalKeyDown=function(i){var a=i.key;a===_t.Escape&&(i.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))},n.onDayKeyDown=function(i){var a,o,s,l,u,c,f=n.props,d=f.minDate,A=f.maxDate,p=f.disabledKeyboardNavigation,g=f.showWeekPicker,m=f.shouldCloseOnSelect,y=f.locale,b=f.calendarStartDay,x=f.adjustDateOnChange,T=f.inline;if((o=(a=n.props).onKeyDown)===null||o===void 0||o.call(a,i),!p){var B=i.key,R=i.shiftKey,I=Rn(n.state.preSelection),N=function(j,W){var V=W;switch(j){case _t.ArrowRight:V=g?$L(W,1):Kf(W,1);break;case _t.ArrowLeft:V=g?qoe(W):oqe(W);break;case _t.ArrowUp:V=qoe(W);break;case _t.ArrowDown:V=$L(W,1);break;case _t.PageUp:V=R?Jy(W,1):fb(W,1);break;case _t.PageDown:V=R?Wf(W,1):ed(W,1);break;case _t.Home:V=jy(W,y,b);break;case _t.End:V=dkt(W);break}return V},F=function(j,W){for(var V=40,Y=j,G=!1,K=0,X=N(j,W);!G;){if(K>=V){X=W;break}d&&X<d&&(Y=_t.ArrowRight,X=Uf(d,n.props)?N(Y,X):d),A&&X>A&&(Y=_t.ArrowLeft,X=Uf(A,n.props)?N(Y,X):A),Uf(X,n.props)?((Y===_t.PageUp||Y===_t.Home)&&(Y=_t.ArrowRight),(Y===_t.PageDown||Y===_t.End)&&(Y=_t.ArrowLeft),X=N(Y,X)):G=!0,K++}return X};if(B===_t.Enter){i.preventDefault(),n.handleSelect(I,i),!m&&n.setPreSelection(I);return}else if(B===_t.Escape){i.preventDefault(),n.setOpen(!1),n.inputOk()||(l=(s=n.props).onInputError)===null||l===void 0||l.call(s,{code:1,msg:vK});return}var Q=null;switch(B){case _t.ArrowLeft:case _t.ArrowRight:case _t.ArrowUp:case _t.ArrowDown:case _t.PageUp:case _t.PageDown:case _t.Home:case _t.End:Q=F(B,I);break}if(!Q){(c=(u=n.props).onInputError)===null||c===void 0||c.call(u,{code:1,msg:vK});return}i.preventDefault(),n.setState({lastPreSelectChange:gK}),x&&n.setSelected(Q),n.setPreSelection(Q),T&&n.setState({shouldFocusDayInline:!0})}},n.onPopperKeyDown=function(i){var a=i.key;a===_t.Escape&&(i.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1))},n.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),n.sendFocusBackToInput();var a=n.props,o=a.selectsRange,s=a.onChange;s?.(o?[null,null]:null,i),n.setState({inputValue:null})},n.clear=function(){n.onClearClick()},n.onScroll=function(i){typeof n.props.closeOnScroll=="boolean"&&n.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&n.setOpen(!1):typeof n.props.closeOnScroll=="function"&&n.props.closeOnScroll(i)&&n.setOpen(!1)},n.handleMonthSelectedInChange=function(i){n.setState({monthSelectedIn:i})},n.renderCalendar=function(){var i,a;return!n.props.inline&&!n.isCalendarOpen()?null:ue.createElement(Vkt,nn({showMonthYearDropdown:void 0,ref:function(o){n.calendar=o}},n.props,n.state,{setOpen:n.setOpen,dateFormat:(i=n.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:n.handleSelect,onClickOutside:n.handleCalendarClickOutside,holidays:Skt(n.modifyHolidays()),outsideClickIgnoreClass:n.props.outsideClickIgnoreClass,onDropdownFocus:n.handleDropdownFocus,onTimeChange:n.handleTimeChange,className:n.props.calendarClassName,container:n.props.calendarContainer,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,setPreSelection:n.setPreSelection,dropdownMode:(a=n.props.dropdownMode)!==null&&a!==void 0?a:e.defaultProps.dropdownMode,onMonthSelectedInChange:n.handleMonthSelectedInChange}),n.props.children)},n.renderAriaLiveRegion=function(){var i,a=n.props.locale,o=(i=n.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,s=n.props.showTimeInput||n.props.showTimeSelect,l=s?"PPPPp":"PPPP",u;return n.props.selectsRange?u="Selected start date: ".concat(Qu(n.props.startDate,{dateFormat:l,locale:a}),". ").concat(n.props.endDate?"End date: "+Qu(n.props.endDate,{dateFormat:l,locale:a}):""):n.props.showTimeSelectOnly?u="Selected time: ".concat(Qu(n.props.selected,{dateFormat:o,locale:a})):n.props.showYearPicker?u="Selected year: ".concat(Qu(n.props.selected,{dateFormat:"yyyy",locale:a})):n.props.showMonthYearPicker?u="Selected month: ".concat(Qu(n.props.selected,{dateFormat:"MMMM yyyy",locale:a})):n.props.showQuarterYearPicker?u="Selected quarter: ".concat(Qu(n.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):u="Selected date: ".concat(Qu(n.props.selected,{dateFormat:l,locale:a})),ue.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-l
226ive"},u)},n.renderDateInput=function(){var i,a,o,s,l,u,c,f=Ha(n.props.className,(i={},i[n.props.outsideClickIgnoreClass||e.defaultProps.outsideClickIgnoreClass]=n.state.open,i)),d=n.props.customInput||ue.createElement("input",{type:"text"}),A=n.props.customInputRef||"ref",p={},g=(o=n.props["aria-describedby"])!==null&&o!==void 0?o:n.props.ariaDescribedBy,m=(s=n.props["aria-invalid"])!==null&&s!==void 0?s:n.props.ariaInvalid,y=(l=n.props["aria-label"])!==null&&l!==void 0?l:n.props.ariaLabel,b=(u=n.props["aria-labelledby"])!==null&&u!==void 0?u:n.props.ariaLabelledBy,x=(c=n.props["aria-required"])!==null&&c!==void 0?c:n.props.ariaRequired;return g!=null&&(p["aria-describedby"]=g),m!=null&&(p["aria-invalid"]=m),y!=null&&(p["aria-label"]=y),b!=null&&(p["aria-labelledby"]=b),x!=null&&(p["aria-required"]=x),H.cloneElement(d,nn((a={},a[A]=function(T){n.input=T},a.value=n.getInputValue(),a.onBlur=n.handleBlur,a.onChange=n.handleChange,a.onClick=n.onInputClick,a.onFocus=n.handleFocus,a.onKeyDown=n.onInputKeyDown,a.id=n.props.id,a.name=n.props.name,a.form=n.props.form,a.autoFocus=n.props.autoFocus,a.placeholder=n.props.placeholderText,a.disabled=n.props.disabled,a.autoComplete=n.props.autoComplete,a.className=Ha(d.props.className,f),a.title=n.props.title,a.readOnly=n.props.readOnly,a.required=n.props.required,a.tabIndex=n.props.tabIndex,a),p))},n.renderClearButton=function(){var i=n.props,a=i.isClearable,o=i.disabled,s=i.selected,l=i.startDate,u=i.endDate,c=i.clearButtonTitle,f=i.clearButtonClassName,d=f===void 0?"":f,A=i.ariaLabelClose,p=A===void 0?"Close":A,g=i.selectedDates,m=i.readOnly;return a&&!m&&(s!=null||l!=null||u!=null||g?.length)?ue.createElement("button",{type:"button",className:Ha("react-datepicker__close-icon",d,{"react-datepicker__close-icon--disabled":o}),disabled:o,"aria-label":p,onClick:n.onClearClick,title:c,tabIndex:-1}):null},n.state=n.calcInitialState(),n.preventFocusTimeout=void 0,n}return Object.defineProperty(e,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:DIe,readOnly:!1,rangeSeparator:bIe,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:eO,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(r,n){var i,a,o,s;this.props.selectsRange&&Tge(r.startDate,this.props.startDate)?this.setPreSelection(this.props.startDate):Tge(r.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),this.props.selectsRange&&n.open===!1&&this.state.open===!0&&this.state.monthSelectedIn!==0&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:yge(this.props.highlightDates)}),!n.focused&&!nb(r.selected,this.props.selected)&&this.setState({inputValue:null}),n.open!==this.state.open&&(n.open===!1&&this.state.open===!0&&((a=(i=this.props).onCalendarOpen)===null||a===void 0||a.call(i)),n.open===!0&&this.state.open===!1&&((s=(o=this.props).onCalendarClose)===null||s===void 0||s.call(o)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var r=this.props,n=r.showIcon,i=r.icon,a=r.calendarIconClassname,o=r.calendarIconClassName,s=r.toggleCalendarOnIconClick,l=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),ue.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&ue.createElement(Gkt,nn({icon:i,className:Ha(o,!o&&a,l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}
226,e.prototype.render=function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var n=this.state.open?ue.createElement(LIe,{enableTabLoop:this.props.enableTabLoop},ue.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(n=ue.createElement(MIe,nn({portalId:this.props.portalId},this.props),n)),ue.createElement(ue.Fragment,null,this.renderInputContainer(),n)}return ue.createElement(Zkt,nn({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:r,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow,monthHeaderPosition:this.props.monthHeaderPosition}))},e})(H.Component),qkt="input",gK="navigate";const Jkt=({isErrored:t,isTouched:e,label:r,setFieldValue:n,value:i,errorMessage:a})=>E.jsxs("div",{className:`w-full h-12 flex flex-col items-start gap-0 ${t&&e?"mb-6":""}`,children:[E.jsxs("div",{className:`${t&&e?"border-red-500":"border-primary-border"} relative  flex flex-col items-start justify-center border border-primary-border rounded-lg w-full h-[80%] max-h-[80%] p-2`,children:[E.jsx(_7e,{className:"cursor-pointer absolute right-2 text-sm text-primary-blackLight"}),E.jsx("span",{className:"absolute -top-5 left-2 bg-primary-white px-2 py-1 text-sm text-primary-dark-blue font-semibold",children:r}),E.jsx(Xkt,{selected:i,onChange:n,showYearPicker:!0,dateFormat:"yyyy",className:"focus:outline-none cursor-pointer flex items-center h-full w-full justify-center border-none outline-none rounded-md  text-primary-blackLighter",placeholderText:"Select Year"})]}),t&&e&&E.jsx("span",{className:"text-xs text-red-500 mt-1",children:a})]});function KR(){return KR=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},KR.apply(this,arguments)}function eNt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,f$(t,e)}function f$(t,e){return f$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},f$(t,e)}var QH,Ege={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(t){return""+t.result.label},resultFormat:function(t){return""+t.result.label},marker:{icon:LDt&&sx.Icon?new sx.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"×"};KR({},Ege),KR({},Ege.classNames);(function(t){t[t.SEARCH=0]="SEARCH",t[t.REVERSE=1]="REVERSE"})(QH||(QH={}));var tNt=(function(){function t(r){r===void 0&&(r={}),this.options=void 0,this.options=r}var e=t.prototype;return e.getParamString=function(r){r===void 0&&(r={});var n=KR({},this.options.params,r);return Object.keys(n).map(function(i){return encodeURIComponent(i)+"="+encodeURIComponent(n[i])}).join("&")},e.getUrl=function(r,n){return r+"?"+this.getParamString(n)},e.search=function(r){try{var n=this,i=n.endpoint({query:r.query,type:QH.SEARCH});return Promise.resolve(fetch(i)).then(function(a){return Promise.resolve(a.json()).then(function(o){return n.parse({data:o})})})}catch(a){return Promise.reject(a)}},t})(),Bge;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(Bge||(Bge={}));var rNt=(function(t){function e(n){var i;n===void 0&&(n={}),(i=t.call(this,n)||this).searchUrl=void 0,i.reverseUrl=void 0;var a="https://nominatim.openstreetmap.org";return i.searchUrl=n.searchUrl||a+"/search",i.reverseUrl=n.reverseUrl||a+"/reverse",i}eNt(e,t);var r=e.prototype;return r.endpoint=function(n){var i=n.query,a=n.type,o=typeof i=="string"?{q:i}:i;return o.format="json",this.getUrl(a===QH.REVERSE?this.reverseUrl:this.searchUrl,o)},r.parse=function(n){return(Array.isArray(n.data)?n.data:[n.data]).map(function(i){return{x:Number(i.lon),y:Number(i.lat),label:i.display_name,bounds:[[parseFloat(i.boundingbox[0]),parseFloat(i.boundingbox[2])],[parseFloat(i.boundingbox[1]),parseFloat(i.boundingbox[3])]],raw:i}})},e})(tNt);const nNt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85Ncy
226pgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",iNt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L
22650Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",aNt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxIm
226NQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",oNt=new x0.Icon({iconUrl:nNt,iconRetinaUrl:iNt,shadowUrl:aNt,iconSize:[25,41],iconAnchor:[12,41],shadowSize:[41,41]});function sNt({center:t}){const e=ate();return H.useEffect(()=>{e.setView(t,15)},[e,t]),null}function lNt(){const t=ate();return H.useEffect(()=>{const e=setTimeout(()=>t.invalidateSize(),250);return()=>clearTimeout(e)},[t]),null}function uNt({setFieldValue:t,position:e,setPosition:r}){return NDt({click(n){const{lat:i,lng:a}=n.latlng;r([i,a]),t("latitude",i),t("longitude",a)}}),e?E.jsx(pRe,{position:e,icon:oNt}):null}function RIe({isModalOpen:t,closeModal:e,enableOutsideClick:r=!0,company_id:n,type:i,data:a}){const o=h0(),[s,l]=H.useState(null),[u,c]=H.useState([6.5244,3.3792]),[f,d]=H.useState([]),[A,p]=H.useState(!1),[g,m]=H.useState(""),[y,b]=H.useState(""),x=H.useRef(new rNt),T=H.useRef(null),B=ge=>ge instanceof Date?ge.getFullYear():ge,R=i==="edit"&&a?{...a,transformer_year:B(a.transformer_year),is_active:a.is_active,asset_type:a.asset_type||hz[0].value,device_category:a.device_category||XP[0].value,substation_name:a.substation_name||"",feeder_name:a.feeder_name||"",feeder_voltage_level:a.feeder_voltage_level??""}:{asset_name:"",asset_type:hz[0].value,device_category:XP[0].value,asset_capacity:"",gateway_serial:"",description:"",tariff:"",transformer_year:"",address_of_tfo:"",type_of_position:"",nature_of_position:"",nature_of_transformer:"",substation_name:"",feeder_name:"",feeder_voltage_level:"",company_id:n,latitude:"",longitude:"",is_active:!0,search_address:""},I=ge=>`Must be at most ${ge} characters`,N=ge=>_n().max(ge,I(ge)).optional().nullable(),F=C0({asset_name:_n().trim().max(120,I(120)).required("Device name is required"),asset_type:_n().required("Asset Type is required"),device_category:_n().oneOf(Object.values(an),"Invalid device category").required("Device category is required"),description:N(240),address_of_tfo:N(240),type_of_position:N(240),nature_of_position:N(240),c
226ompany_id:i==="edit"?_n():_n().required("Company ID is required"),gateway_serial:_n().trim().max(240,I(240)).required("Gateway serial is required"),tariff:D_().typeError("Tariff must be a number").min(0,"Tariff cannot be negative").required("Tariff is required"),transformer_year:D_().typeError("Select a valid year").integer("Select a valid year").when("device_category",{is:an.TRANSFORMER,then:ge=>ge.required("Year of manufacture is required"),otherwise:ge=>ge.optional().nullable()}),nature_of_transformer:N(240),asset_capacity:D_().typeError("Asset capacity must be a number").integer("Asset capacity must be a whole number").positive("Asset capacity must be greater than 0").when("device_category",{is:an.TRANSFORMER,then:ge=>ge.required("Asset capacity is required"),otherwise:ge=>ge.optional().nullable()}),substation_name:_n().max(120,I(120)).when("device_category",{is:an.SUBSTATION_FEEDER,then:ge=>ge.required("Substation name is required"),otherwise:ge=>ge.optional().nullable()}),feeder_name:_n().max(120,I(120)).when("device_category",{is:an.SUBSTATION_FEEDER,then:ge=>ge.required("Feeder name is required"),otherwise:ge=>ge.optional().nullable()}),feeder_voltage_level:D_().typeError("Feeder voltage level must be a number").positive("Feeder voltage level must be greater than 0").when("device_category",{is:an.SUBSTATION_FEEDER,then:ge=>ge.required("Feeder voltage level is required"),otherwise:ge=>ge.optional().nullable()}),latitude:D_().typeError("Pick a location on the map or enter a co-ordinate").min(-90,"Latitude must be between -90 and 90").max(90,"Latitude must be between -90 and 90").required("Pick a location on the map or enter a co-ordinate"),longitude:D_().typeError("Pick a location on the map or enter a co-ordinate").min(-180,"Longitude must be between -180 and 180").max(180,"Longitude must be between -180 and 180").required("Pick a location on the map or enter a co-ordinate"),is_active:EL().required("Device status is required")}),Q=["asset_capacity","transformer_year","nature_of_transformer"],j=["substation_name","feeder_name","feeder_voltage_level"],W=["search_address","co_ordinate"],V=ge=>{const be={...ge};(be.device_category===an.SUBSTATION_FEEDER?Q:j).forEach(Re=>{be[Re]=null}),Object.keys(be).forEach(Re=>{be[Re]===""&&(be[Re]=null)}),W.forEach(Re=>delete be[Re]),ae(be)},{handleSubmit:Y,values:G,getFieldProps:K,errors:X,touched:q,isSubmitting:ne,setFieldValue:te,resetForm:ce,setSubmitting:he,setValues:ve}=Ux({initialValues:R,validationSchema:F,onSubmit:V}),{mutate:ae}=E0(i==="edit"?`/device/${a?.id}`:"/devices",i==="edit"?"PUT":"POST",{onSuccess:ge=>{o.invalidateQueries({queryKey:["/map","fetchSiteMap",ge.company.id]}),o.invalidateQueries({queryKey:["/devices","fetchAllDevices",ge.company.id]}),o.invalidateQueries({queryKey:["/manager","fetchManager",ge.company.id]}),Oi(i==="edit"?"Device updated":"Device added!",{variant:"success"}),ce(),he(!1),e()},onError:ge=>{const be=Object.values(ge.response?.data||{}).flat().join(" ");Oi(be||"Error adding Device",{variant:"error"}),he(!1)}}),fe=ge=>{b(ge);try{const be=ge.match(/-?\d+(?:\.\d+)?/g);if(!be||be.length<2)return;const Ve=parseFloat(be[0]),Re=parseFloat(be[1]);!isNaN(Ve)&&!isNaN(Re)&&(te("latitude",Ve),te("longitude",Re),l([Ve,Re]),c([Ve,Re]))}catch(be){console.error("Error parsing coordinates:",be)}};H.useEffect(()=>{G.latitude===""||G.longitude===""||G.latitude==null||G.longitude==null||b(`${G.latitude}, ${G.longitude}`)},[G.latitude,G.longitude]),H.useEffect(()=>{if(i==="edit"&&a&&(ve({...a,company_id:a.company.id,transformer_year:B(a.transformer_year),device_category:a.device_category||XP[0].value,substation_name:a.substation_name||"",feeder_name:a.feeder_name||"",feeder_voltage_level:a.feeder_voltage_level??""}),a.latitude&&a.longitude)){const ge=a.latitude,be=a.longitude;try{l([ge,be]),c([ge,be])}catch(Ve){console.error("Error parsing coordinates:",Ve)}}},[a,i,ve]),H.useEffect(()=>{function ge(be){T.current&&!T.current.contains(be.target)&&p(!1)}return A&&document.addEventListener("mousedown",ge),()=>{document.removeEventListener("mousedown",ge)}},[A]);const we=async ge=>{if(m(ge),ge.length>2)try{const be=await x.current.search({query:ge});d(be),p(!0)}catch(be){console.error("Error searching for address:",be),d([])}else d([]),p(!1)},Me=ge=>{const{y:be,x:Ve}=ge;l([be,Ve]),c([be,Ve]),te("latitude",be),te("longitude",Ve),te("address_of_tfo",ge.label||""),m(ge.label||""),p(!1)};return E.jsxs(m0,{isOpen:t,onClose:e,closeOnOutsideClick:r,children:[E.jsx("h2",{className:zT,children:i==="edit"?"Edit Device":"Add Device"}),E.jsxs("form",{onSubmit:Y,className:"gap-4 flex flex-col items-start",children:[E.jsx(Hi,{placeholder:"Device Name",...K("asset_name"),value:G.asset_name,isErrored:!!X.asset_name,isTouched:!!q.asset_name,errorMessage:X.asset_name}),E.jsx(Hi,{placeholder:"Device Description (Optional)",...K("description"),value:G.description,isErrored:!!X.description,isTouched:!!q.description,errorMessage:X.description}),E.jsx(nT,{...K("device_category"),name:"device_category",value:G.device_category,isErrored:!!X.device_category,isTouched:!!q.device_category,errorMessage:X.device_category,label:"Device Category",options:XP}),E.jsx(nT,{...K("asset_type"),name:"asset_type",value:G.asset_type,isErrored:!!X.asset_type,isTouched:!!q.asset_type,errorMessage:X.asset_type,label:"Asset Type",options:hz}),E.jsx(Hi,{placeholder:"Gateway Serial",...K("gateway_serial"),isErrored:!!X.gateway_serial,isTouched:!!q.gateway_serial,errorMessage:X.gateway_serial}),E.jsx(Hi,{placeholder:"Tariff",...K("tariff"),isErrored:!!X.tariff,isTouched:!!q.tariff,errorMessage:X.tariff,type:jv.NUMBER}),G.device_category===an.SUBSTATION_FEEDER?E.jsxs(E.Fragment,{children:[E.jsx(Hi,{placeholder:"Substation Name",...K("substation_name"),isErrored:!!X.substation_name,isTouched:!!q.substation_name,errorMessage:X.substation_name}),E.jsx(Hi,{placeholder:"Feeder Name",...K("feeder_name"),isErrored:!!X.feeder_name,isTouched:!!q.feeder_name,errorMessage:X.feeder_name}),E.jsx(Hi,{placeholder:"Feeder Voltage Level (kV)",...K("feeder_voltage_level"),isErrored:!!X.feeder_voltage_level,isTouched:!!q.feeder_voltage_level,errorMessage:X.feeder_voltage_level,type:jv.NUMBER})]}):E.jsxs(E.Fragment,{children:[E.jsx(Hi,{placeholder:"Asset Capacity (kVA)",...K("asset_capacity"),isErrored:!!X.asset_capacity,isTouched:!!q.asset_capacity,errorMessage:X.asset_capacity,type:jv.NUMBER}),E.jsx(Jkt,{value:G.transformer_year,isErrored:!!X.transformer_year,isTouched:!!q.transformer_year,errorMessage:X.transformer_year,label:"Year of Manufacture",setFieldValue:ge=>te("transformer_year",B(ge))}),E.jsx(Hi,{placeholder:"Nature of Transformer",...K("nature_of_transformer"),isErrored:!!X.nature_of_transformer,isTouched:!!q.nature_of_transformer,errorMessage:X.nature_of_transformer}),E.jsx(Hi,{placeholder:"Nature of Position",...K("nature_of_position"),isErrored:!!X.nature_of_position,isTouched:!!q.nature_of_position,errorMessage:X.nature_of_position}),E.jsx(Hi,{placeholder:"Address of TFO",...K("address_of_tfo"),isErrored:!!X.address_of_tfo,isTouched:!!q.address_of_tfo,errorMessage:X.address_of_tfo})]}
226),E.jsx(Hi,{placeholder:"Co-ordinate",onChange:ge=>fe(ge.target.value),value:y,isErrored:!!X.latitude||!!X.longitude,isTouched:!!q.latitude||!!q.longitude,errorMessage:X.latitude||X.longitude}),E.jsxs("div",{className:"flex flex-col w-full gap-4 p-4 rounded-lg border border-primary-border",children:[E.jsxs("div",{className:"w-full relative",children:[E.jsx("input",{type:"text",placeholder:"Search for address...",value:g,onChange:ge=>we(ge.target.value),className:"w-full p-2 border border-primary-border rounded-md placeholder:text-sm h-8 focus:outline-none"}),A&&f.length>0&&E.jsx("div",{ref:T,className:"absolute z-10 bottom-full w-full bg-white border border-gray-300 mb-1 max-h-60 overflow-y-auto rounded-md shadow-lg",children:f.map((ge,be)=>E.jsx("div",{className:"p-2 cursor-pointer hover:bg-gray-100",onClick:()=>Me(ge),children:ge.label},be))})]}),E.jsx("div",{className:"w-full h-64",children:E.jsxs(ARe,{center:u,zoom:13,className:"h-full w-full",children:[E.jsx(vRe,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),E.jsx(uNt,{setFieldValue:te,position:s,setPosition:l}),E.jsx(sNt,{center:u}),E.jsx(lNt,{})]})})]}),E.jsx(gte,{...K("is_active"),name:"is_active",onChange:ge=>te("is_active",ge),value:G.is_active,label:"Device Status"}),E.jsx(zi,{className:"w-full mt-4",text:ne?"":i==="edit"?"Save Changes":"Add Device",loader:{loading:ne,height:4,width:4},type:bi.PRIMARY,handleClick:Y,disabled:ne})]})]})}const QF=[{id:"overview",labelKey:"overview"},{id:"operations",labelKey:"role.operations"},{id:"finance",labelKey:"role.finance"},{id:"users",labelKey:"sidebar.users"},{id:"sites",labelKey:"Sites"},{id:"asset_classifications",labelKey:"asset_classifications"}];function cNt({company_id:t}){const{t:e}=Vt(),r=p=>{switch(p){case"overview":return E.jsx(vte,{company_id:t});case"operations":return E.jsx(yRe,{company_id:t});case"finance":return E.jsx(vIe,{company_id:t});case"users":return E.jsx(HPt,{company_id:t});case"asset_classifications":return E.jsx(FPt,{company_id:t});case"sites":return E.jsx(w5,{company_id:t,isFromFinance:!1});default:return null}},{data:n,isLoading:i,isError:a}=hr(["/company/","fetchCompany, ",t],`/company/${t}`,{},{refetchOnMount:!0}),o=n||null,[s,l]=ue.useState(QF[0].id),u=e(QF.find(p=>p.id===s)?.labelKey??QF[0].labelKey),[c,f]=H.useState(!1),[d,A]=H.useState(!1);return E.jsxs("div",{className:"flex flex-col w-full",style:{gap:qr},children:[E.jsxs("div",{className:"flex gap-2 self-start justify-start items-center",children:[E.jsx(GQ,{link:"/dashboard/admin/companies",showBackText:!1}),i?E.jsx("div",{className:"",children:E.jsx(qA,{})}):a?E.jsx("div",{className:"text-red-500",children:"Error fetching company name"}):E.jsx("span",{className:"text-primary-dark-blue text-xl font-bold ml-2",children:o&&o.name}),E.jsxs("span",{className:"text-primary-dark-blue/60 ",children:[">"," "]}),E.jsx("span",{className:"text-primary-dark-blue/60",children:u})]}),E.jsxs("div",{className:"w-full flex flex-col gap-4 lg:flex-row justify-between ",children:[E.jsx("div",{className:"flex gap-4 items-end min-w-[70%] lg:max-w-75 border-b border-primary-border",children:QF.map(p=>{const g=s===p.id;return E.jsx("span",{onClick:()=>l(p.id),style:{borderBottomWidth:g?"5px":"0px",borderColor:g?Bt.PRIMARY:"transparent",fontWeight:g?"bold":"normal"},className:"h-10 cursor-pointer border-b text-primary-blackMain text-sm",children:e(p.labelKey)},p.id)})}),E.jsxs("div",{className:"md:max-w-[45%]  gap-4 flex  flex-col sm:flex-row items-center justify-start  mb-2",children:[E.jsx(zi,{text:"Add Device",className:"bg-primary-dark-blue! text-sm!",handleClick:()=>A(!0),type:bi.PRIMARY}),E.jsx(zi,{text:"Add Employee",className:"text-sm!",handleClick:()=>f(!0),type:bi.PRIMARY})]})]}),E.jsx("div",{className:"w-full",children:r(s)}),E.jsx(RIe,{company_id:t,isModalOpen:d,closeModal:()=>A(!1),enableOutsideClick:!1,type:"add"}),E.jsx(mIe,{company_id:t,isModalOpen:c,closeModal:()=>f(!1),enableOutsideClick:!1,type:"add"})]})}function fNt(){const{id:t}=du();return E.jsx(cNt,{company_id:t})}function dNt(){return E.jsx("div",{className:"h-[1px] my-[1rem] bg-gradient-to-r from-transparent via-gray-400 to-transparent"})}const hNt=({icon:t,title:e,value:r,percentageChange:n,extraClass:i,backgroundColor:a,description:o})=>E.jsxs("div",{className:"flex flex-col relative p-4 bg-primary-white shadow-md rounded-lg",children:[E.jsx("div",{className:`text-2xl absolute top-[-20px] bg-${a} text-primary-white rounded-lg p-2 h-[55px] w-[55px] flex items-center justify-center shadow-md shadow-gray-300 ${i}`,children:t}),E.jsxs("div",{className:"flex flex-col items-end text-black-1 gap-1",children:[E.jsx("span",{className:"text-sm font-thin",children:e}),E.jsx("h2",{className:"text-2xl font-semibold",children:r})]}),E.jsx(dNt,{}),E.jsxs("div",{className:"flex gap-2 items-center text-black-1",children:[E.jsx("span",{className:"text-green-500 text-sm font-medium",children:n}),E.jsx("span",{className:" text-xs",children:o})]})]}),ANt={hidden:{opacity:0,y:-10},visible:{opacity:1,y:0,transition:{duration:.3}}};function IIe({user_id:t}){const{FEEDBACK_MESSAGES:e,t:r}=Vt(),n=H.useMemo(()=>[{key:"7 Days",value:7},{key:"2 Weeks",value:14},{key:"1 Month",value:30}],[]),i=F=>{const Q=new Date,j=new Date;return j.setDate(Q.getDate()-F),{start_date:j.toISOString().split("T")[0],end_date:Q.toISOString().split("T")[0]}},[a,o]=H.useState(n[0].value),{start_date:s,end_date:l}=i(a),[u,c]=H.useState(!1),{data:f,isLoading:d,error:A,refetch:p}=hr(["/user-analytics","fetchPageVisits",t],"/user-analytics/page-visits/",{start_date:s,end_date:l,user_id:t},{...ri}),g=f?.datasets||[],m={admin:"Admin",finance:"Finance",operations:"Operations","senior-manager"
226:"Manager"},y=F=>{for(const Q in m)if(F.includes(`/${Q}`))return m[Q];return"Unknown"},b=g.reduce((F,Q)=>{const j=y(Q.page_url);return F[j]=(F[j]||0)+Q.total_visits,F},{}),x=Object.keys(b),T=Object.values(b),B=d||u;H.useEffect(()=>{s&&l&&(c(!0),p().finally(()=>{c(!1)}))},[s,l,p]);const R=Math.max(...T,0),I=[Bt.PRIMARY,Bt.RED,Bt.PURPLE,Bt.GREEN,Bt.NEUTRAL,Bt.PHASE_A,Bt.PHASE_B,Bt.PHASE_C],N={grid:{left:"5%",right:"5%",top:"10%",bottom:"15%",containLabel:!0},xAxis:{type:"category",data:x.length>0?x:[e.NO_DATA],axisLabel:{fontWeight:"bold",fontSize:11,interval:0,rotate:45,overflow:"truncate"}},yAxis:{type:"value",max:"dataMax",axisLabel:{fontWeight:"bold",fontSize:11}},series:[{type:"bar",data:T.map(()=>R),barGap:"-100%",barWidth:"40%",itemStyle:{color:"#e0e0e0"},silent:!0},{name:r("chart.website_visits"),type:"bar",data:T.map((F,Q)=>({value:F,itemStyle:{color:I[Q%I.length],borderRadius:[8,8,0,0]}})),barWidth:"40%",z:10}],tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(F){return`<div style="font-size:10px">${F[1].value.toLocaleString()} visits</div>`},textStyle:{fontSize:10}},animationDuration:0,animationDurationUpdate:3e3,animationEasing:"linear",animationEasingUpdate:"linear"};return E.jsxs(nr,{children:[E.jsxs("div",{className:"w-full  flex flex-col sm:flex-row justify-between sm:items-center border-b border-primary-border pb-5",children:[E.jsx(na.h3,{className:"heading-regular",variants:ANt,initial:"hidden",animate:"visible",children:"Page Visits"}),E.jsx("div",{className:"flex w-full! justify-end",children:E.jsx("select",{onChange:F=>o(parseInt(F.target.value,10)),value:a,className:"cursor-pointer flex items-center justify-center max-w-[30%] py-1 px-2 rounded-full bg-[#E5E5E5] text-primary-blackMain text-[10px]",children:n.map(F=>E.jsx("option",{value:F.value,className:"text-primary-dark-blue/80 cursor-pointer",children:F.key},F.key))})})]}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative min-h-50",children:B?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(mn,{})}):A?A.response?.data?.detail?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(hu,{message:e.NO_DEVICE})}):E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(Ci,{message:e.ERROR})}):g.length===0?E.jsx(Us,{message:e.NO_DATA}):E.jsx("div",{className:"flex-3 w-full relative  min-h-80",children:E.jsx(Sl,{option:N})})})]})}const OIe=({text:t,type:e=VH.H1,className:r=null})=>E.jsx("h1",{className:`${e} ${r}`,children:t}),pNt=({company_id:t})=>{const e=yh(),[r,n]=ue.useState(1),i=10,{data:a,isLoading:o,error:s}=hr(["/users","fetchAllUsers",t,r],"/users",{page:r,page_size:i,company_id:t},{refetchOnMount:!0,refetchOnWindowFocus:!0,staleTime:0}),l=b=>[{icon:E.jsx(NHe,{}),title:"Total Users",value:b.total_users,backgroundColor:"gradient-yellow",extraClass:"gradient-yellow"},{icon:E.jsx(QHe,{}),title:"Active Users",value:b.active_users,backgroundColor:"gradient-green",extraClass:"gradient-green",description:"than last month"},{icon:E.jsx(UHe,{}),title:"Inactive Users",value:b.inactive_users,backgroundColor:"gradient-black",extraClass:"gradient-black",description:"than last month"},{icon:E.jsx(HHe,{}),title:"Non Staff",value:b.non_staff_users,backgroundColor:"gradient-blue",extraClass:"gradient-blue",description:"than last month"}],u=[{header:"Users",accessorKey:"user",cell:({row:b})=>{const x=b.original;return E.jsx("span",{children:`${x.first_name} ${x.last_name}`})}},{header:"Company",accessorKey:"company",cell:({row:b})=>{const x=b.original?.company?.name||"-";return E.jsx("span",{children:x})}},{header:"Employee ID",accessorKey:"employee_id"},{header:"Email address",accessorKey:"email"},{header:"Department",accessorKey:"access_level"},{header:"Last login",accessorKey:"last_login",cell:({row:b})=>{const x=b.original.last_login;return E.jsx("span",{children:mte(x)})}}],{data:c,isLoading:f,error:d}=hr(["/users","fetchUserAnalytics",t],"/user-analytics/detailed",{},{}),A=o,p=H.useMemo(()=>c?l(c):[],[c]),g=p0({count:a?.total_results,currentPage:r,itemsPerPage:i}),m=b=>{e(`/dashboard/admin/user-analytics-detail/${b.id}/${t}`)},y=b=>{n(b)};return E.jsxs("div",{className:" w-full p-10 bg-[#f5f5f5]! h-full! min-h-[50vh] flex flex-col gap-10 items-start justify-start! rounded-xl",children:[E.jsx("div",{className:"w-full flex  flex-col gap-10 mt-10",children:f?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):d?E.jsx(Ci,{message:"Error fetching user analytics"}):E.jsx("div",{className:"grid gap-10 grid-cols-[repeat(auto-fill,minmax(220px,1fr))] w-full ",children:p.map((b,x)=>E.jsx(hNt,{icon:b.icon,title:b.title,value:b.value,backgroundColor:b.backgroundColor,extraClass:b.extraClass},x))})}),E.jsx("div",{className:"w-full",children:E.jsx(IIe,{})}),E.jsxs(nr,{children:[E.jsx(OIe,{text:"User activity",type:VH.H3,className:"mb-4 self
226-start! justify-start!"}),A?E.jsx("div",{className:"w-full min-h-40 flex flex-col justify-center items-center",children:E.jsx(mn,{})}):s?E.jsx(Ci,{message:"Error fetching users"}):a.length===0?E.jsx(Us,{message:"No user data found"}):E.jsx("div",{className:"flex  flex-col items-center justify-center w-full",children:E.jsx(wg,{data:a.results||[],columns:u,pagination:g,currentPage:r,onPageChange:y,emptyStateImage:"",emptyStateText:void 0,onRowClick:m})})]})]})};function vNt(){const{id:t}=du();return E.jsx(pNt,{company_id:t})}const gNt={hidden:{opacity:0,y:-10},visible:{opacity:1,y:0,transition:{duration:.3}}};function mNt({user_id:t}){const{FEEDBACK_MESSAGES:e}=Vt(),r=H.useMemo(()=>[{key:"7 Days",value:7},{key:"2 Weeks",value:14},{key:"1 Month",value:30}],[]),n=y=>{const b=new Date,x=new Date;return x.setDate(b.getDate()-y),{start_date:x.toISOString().split("T")[0],end_date:b.toISOString().split("T")[0]}},[i,a]=H.useState(r[0].value),{start_date:o,end_date:s}=n(i),{data:l,isLoading:u,error:c}=hr(["/user-login-trends","fetchUserLoginTrends",t],"/user-analytics/logins-trend/",{start_date:o,end_date:s,user_id:t},{...ri}),f=l||[],d=f.map(y=>y.total),A=Math.min(...d),p=Math.max(...d),g={tooltip:{trigger:"axis"},grid:{left:"5%",right:"5%",bottom:"15%",containLabel:!0},xAxis:{type:"category",data:f.map(y=>y.day),axisLabel:{rotate:45,fontSize:10}},yAxis:{type:"value",min:A,max:p,interval:Math.max(1,Math.ceil((p-A)/5))},series:[{data:f.map(y=>y.total),type:"line",smooth:!0,symbol:"circle",symbolSize:8,lineStyle:{width:2,color:"#5470C6"},itemStyle:{color:"#5470C6"},areaStyle:{opacity:.1,color:"#5470C6"}}]},m=u;return E.jsxs(nr,{children:[E.jsxs("div",{className:"w-full  flex flex-col sm:flex-row justify-between sm:items-center border-b border-primary-border pb-5",children:[E.jsx(na.h3,{className:"heading-regular",variants:gNt,initial:"hidden",animate:"visible",children:"Login Trends"}),E.jsx("div",{className:"flex w-full! justify-end",children:E.jsx("select",{onChange:y=>a(parseInt(y.target.value,10)),value:i,className:"cursor-pointer flex items-center justify-center max-w-[30%] py-1 px-2 rounded-full bg-[#E5E5E5] text-primary-blackMain text-[10px]",children:r.map(y=>E.jsx("option",{value:y.value,className:"text-primary-dark-blue/80 cursor-pointer",children:y.key},y.key))})})]}),E.jsx("div",{className:"flex flex-col flex-1 w-full relative min-h-50",children:m?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(mn,{})}):c?c.response?.data?.detail?E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(hu,{message:e.NO_DEVICE})}):E.jsx("div",{className:"flex justify-center items-center h-full min-h-50",children:E.jsx(Ci,{message:e.ERROR})}):f.length===0?E.jsx(Us,{message:e.NO_DATA}):E.jsx("div",{className:"flex-3 w-full relative  min-h-80",children:E.jsx(Sl,{option:g})})})]})}function yNt(){const{user_id:t,id:e}=du(),{data:r,isLoading:n,error:i}=hr(["/users","fetchUserDetails",t],`/users/${t}`,{},{}),a=H.useMemo(()=>r?[{key:"Email",value:r.email},{key:"Role",value:r.access_level||"N/A"},{key:"Last Login",value:mte(r.last_login)||"N/A"}]:[],[r]);return E.jsxs("div",{className:" w-full p-10 bg-[#f5f5f5]! h-full! min-h-[70vh] rounded-xl",children:[E.jsx("div",{className:"flex w-full",children:E.jsx("div",{className:"flex gap-2 self-start justify-start items-center",children:E.jsx(GQ,{showBackText:!1,link:`/dashboard/admin/user-analytics/${e}`})})}),E.jsxs("div",{className:"flex flex-col gap-10 items-start justify-start! w-full",children:[E.jsx("div",{className:"w-full flex  flex-col gap-10 mt-10",children:n?E.jsx("div",{className:"flex justify-center items-center h-full w-full",children:E.jsx(mn,{})}):i?E.jsx(Ci,{message:"Error fetching user details"}):E.jsxs("div",{className:"flex flex-col gap-4",children:[E.jsx("h2",{className:"text-2xl font-semibold",children:`${r.first_name} ${r.last_name}`}),E.jsx("div",{className:"grid gap-10 grid-cols-[repeat(auto-fill,minmax(220px,1fr))] w-full ",children:a.map((o,s)=>E.jsxs("div",{className:`bg-white shadow-md flex flex-col items-start justify-center p-6 w-full h-32.5 
227        rounded-2xl break-all`,children:[E.jsx("span",{className:"font-semibold text-lg",children:o.key}),E.jsx("span",{children:o.value})]},s))})]})}),E.jsx("div",{className:"w-full mt-6",children:E.jsx(mNt,{user_id:t||""})}),E.jsx("div",{className:"w-full mt-6",children:E.jsx(IIe,{user_id:t||""})})]})]})}const wNt=({company_id:t})=>{const[e,r]=ue.useState(1),[n,i]=ue.useState(null),{t:a}=Vt(),[o,s]=ue.useState(!1),{data:l,isLoading:u,error:c}=hr(["/devices","fetchAllDevices",t,e],"/devices",{page:e,page_size:Qi,company_id:t},{}),f=y=>{r(y)},d=[{header:a("table.device_name"),accessorKey:"device_name",cell:({row:y})=>{const b=y.original?.asset_name||"-";return E.jsx("span",{children:b})}}
227,{header:a("table.region"),accessorKey:"device_region",cell:({row:y})=>{const b=y.original?.classification?.name||"N/A";return E.jsx("span",{children:b})}},{header:a("site_details.asset_type"),accessorKey:"asset_type",cell:({row:y})=>{const x=r5((T=>{switch(T){case"transformer":return a("asset_type.transformer");case"generator":return a("asset_type.generator");case"battery":return a("asset_type.battery");default:return T}})(y.original?.asset_type)||"")||"N/A";return E.jsx("span",{children:x})}},{header:a("site_details.asset_capacity"),accessorKey:"asset_capacity",cell:({row:y})=>{const b=y.original?.asset_capacity||0;return E.jsx("span",{children:b})}},{header:a("common.status"),accessorKey:"status",cell:({row:y})=>E.jsx(W7e,{deviceId:y.original.id,site:y?.original})},{header:"Actions",accessorKey:"actions",cell:({row:y})=>{const b=y.original,x=n===b.id;return E.jsxs("div",{className:"relative flex justify-center",children:[E.jsx(Gye,{className:"cursor-pointer",onClick:T=>{T.stopPropagation(),g(b),i(x?null:b.id)}}),x&&E.jsxs("div",{className:"absolute right-0 top-6 z-50 w-40 rounded-md bg-white shadow-lg border py-2 text-sm",children:[E.jsx("button",{className:"w-full px-4 py-2 text-left hover:bg-gray-100",onClick:()=>{s(!0),i(null)},children:"Modify"}),E.jsx("button",{className:"w-full px-4 py-2 text-left text-red-600 hover:bg-gray-100",onClick:()=>{i(null)},children:"Delete"})]})]})}}],A=u,[p,g]=ue.useState(null),m=p0({count:l?.total_results,currentPage:e,itemsPerPage:Qi});return H.useEffect(()=>{const y=()=>i(null);return window.addEventListener("click",y),()=>window.removeEventListener("click",y)},[]),E.jsxs(nr,{children:[E.jsx(wg,{isLoading:A,error:c,data:l?.results||[],columns:d,pagination:m,currentPage:e,onPageChange:f,emptyStateImage:"",emptyStateText:void 0}),E.jsx(RIe,{isModalOpen:o,closeModal:()=>s(!1),enableOutsideClick:!1,type:"edit",data:p})]})};function _Nt(){const{id:t}=du();return E.jsx(wNt,{company_id:t})}function bNt(){return E.jsx(w5,{company_id:HL,isFromFinance:!1,isDummy:!0})}function xNt(){const{id:t}=du();return E.jsx(bRe,{site_id:t,isDummy:!0})}const SNt=[{path:"/dashboard",element:E.jsx(gIe,{children:E.jsx(BPt,{children:E.jsx(Gat,{})})}),children:[{path:"admin/home/:id",element:E.jsx(DPt,{})},{path:"admin/companies",element:E.jsx(PPt,{})},{path:"admin/companies/:id",element:E.jsx(fNt,{})},{path:"admin/user-analytics/:id",element:E.jsx(vNt,{})},{path:"admin/user-analytics-detail/:user_id/:id",element:E.jsx(yNt,{})},{path:"admin/devices/:id",element:E.jsx(_Nt,{})},{path:"admin/demo/home",element:E.jsx(hve,{isDummy:!0})},{path:"admin/demo/sites",element:E.jsx(bNt,{})},{path:"admin/demo/site/:id",element:E.jsx(xNt,{})},{path:"my-account",element:E.jsx(EPt,{})},{path:"operations/home/:id",element:E.jsx(hve,{})},{path:"operations/site/:id",element:E.jsx(hMt,{})},{path:"operations/sites/:id",element:E.jsx(xae,{})},{path:"operations/activity-log/:id",element:E.jsx(APt,{})},{path:"finance/home/:id",element:E.jsx(gPt,{})},{path:"finance/sites/:id",element:E.jsx(CPt,{})},{path:"finance/site/:id",element:E.jsx(xPt,{})},{path:"senior-manager/home/:id",element:E.jsx(pPt,{})},{path:"senior-manager/sites/:id",element:E.jsx(xae,{})}]}],Dge=({children:t})=>{const{isAuthenticated:e,isLoading:r}=bh(),{user:n}=rc(),[i]=$R();if(r)return E.jsx(mn,{});if(e&&!n){const a=i.get("returnTo");return E.jsx(ly,{to:cT(a)?a:"/",replace:!0})}if(e&&n){const a=n.access_level,o=n.company_id;switch(a){case fa.ADMIN:case fa.MANAGER:return E.jsx(ly,{to:"/",replace:!0});case fa.FINANCE:return E.jsx(ly,{to:`/dashboard/finance/home/${o}`,replace:!0});case fa.OPERATIONS:return E.jsx(ly,{to:`/dashboard/operations/home/${o}`,replace:!0});case fa.OTHER:return E.jsx(ly,{to:"/sbee",replace:!0});default:return E.jsx(E.Fragment,{children:t})}}return E.jsx(E.Fragment,{children:t})};function CNt(){const{logout:t}=bh(),{logout:e}=rc(),r=()=>{t({logoutParams:{returnTo:`${window.location.origin}/auth/login`}}),e()};return E.jsx("div",{className:"auth-layout-bg min-h-screen overflow-hidden",children:E.jsxs("div",{className:"bg-primary-white/75 min-h-screen p-6 flex flex-col",children:[E.jsxs("div",{className:"flex justify-between items-center text h-20",children:[E.jsx("div",{className:"max-w-50",children:E.jsx("img",{src:ybe,alt:"Smarterise Logo"})}),E.jsx(tX,{})]}),E.jsxs("div",{className:"relative flex-1 flex flex-col items-center justify-center",children:[E.jsx("span",{className:"absolute cursor-pointer right-5 top-5",children:E.jsx(eX,{size:22,className:"",onClick:r})}),E.jsx(w$,{})]})]})})}function TNt(){const{loginWithRedirect:t}=bh(),{t:e}=Vt(),[r]=$R(),n=()=>{const i=r.get("returnTo");t(cT(i)?{appState:{returnTo:i}}:void 0)};return E.jsxs("div",{style:{boxShadow:"0px 0px 21px 0px rgba(0, 0, 0, 0.08)"},className:"md:h-[40%] max-h-105 md:w-[50%] max-w-100 p-10 rounded-3xl bg-white flex flex-col items-center justify-center",children:[E.jsx(OIe,{text:e("login.login_prompt"),type:VH.H1,className:"mb-10 text-center"}),E.jsx("div",{className:"w-full flex flex-col",children:E.jsx(zi,{type:bi.PRIMARY,text:e("login.login_btn"),handleClick:n})})]})}function Mge(){return E.jsx(TNt,{})}const ENt=()=>{const{logout:t}=rc(),{logout:e}=bh();return H.useEffect(()=>{e({logoutParams:{returnTo:`${window.location.origin}/auth/login`}}),t()},[t,e]),E.jsx("div",{children:"Logging out..."})};function BNt(){return E.jsx(ENt,{})}const Lge=({title:t,message:e,action:r})=>E.jsxs("div",{className:"max-w-md rounded-xl bg-white p-8 shadow-md text-center",children:[E.jsx("div",{className:"flex justify-center mb-4",children:E.jsx(lQe,{className:"text-red-500 w-10 h-10"})}),E.jsx("h2",{className:"text-xl font-semibold mb-2",children:t}),e&&E.jsx("p",{className:"text-gray-500 mb-6",children:e}),r&&r]}),DNt=(t,e,r=3e3)=>{H.useEffect(()=>{if(!e)return;const n=setTimeout(()=>{t({logoutParams:{returnTo:`${window.location.origin}/auth/login`}})},r);return()=>clearTimeout(n)},[t,e,r])},mK="users/me",MNt=()=>{const{login:t}=rc(),{isAuthenticated:e,isLoading:r,getAccessTokenSilently:n,logout:i}=bh(),[a,o]=H.useState(!1),[s]=$R(),l=yh();H.useEffect(()=>{e&&!a&&(async()=>{try{await n(),o(!0)}catch(g){console.error("TEstError1 Error while fetching token: ",g),i({logoutParams:{returnTo:`${window.location.origin}/auth/login`}})}})()},[a,e,n,i]);const{data:u,isLoading:c,error:f,isSuccess:d}=hr([mK],mK,{login_from:"web_app",login_device:navigator.userAgent},{enabled:!!a,queryKey:[mK]});return DNt(i,f?"user_error":e?null:"not_authenticated"),H.useEffect(()=>{if(e&&!c&&u!=null&&d)try{t(u);const p=u,g=p?.access_level,m=p?.company_id,y=s.get("returnTo");
227if(cT(y)){const b=y,x=xme[g];if(x&&x.patterns?.some(B=>B.test(b))){l(b,{replace:!0});return}}switch(g){case fa.ADMIN:l("/",{replace:!0});break;case fa.MANAGER:l("/",{replace:!0});break;case fa.FINANCE:l(`/dashboard/finance/home/${m}`,{replace:!0});break;case fa.OPERATIONS:l(`/dashboard/operations/home/${m}`,{replace:!0});break;case fa.OTHER:l("/sbee",{replace:!0});break;default:i({logoutParams:{returnTo:`${window.location.origin}/auth/login`}});return}}catch(p){console.error("Error during login dispatch:",p),i({logoutParams:{returnTo:`${window.location.origin}/auth/login`}})}},[e,c,u,d,l,s,i,t]),r||!a||c?E.jsx(mn,{}):f?E.jsx(Lge,{title:"Unable to load your account",message:"Something went wrong while fetching your profile. Redirecting to login..."}):e?E.jsx(mn,{}):E.jsx(Lge,{title:"Session expired",message:"Your session is no longer valid. Redirecting to login..."})};function LNt(){return E.jsx(MNt,{})}const RNt=[{path:"/auth",element:E.jsx(CNt,{}),children:[{path:"login",element:E.jsx(Dge,{children:E.jsx(Mge,{})})},{path:"signup",element:E.jsx(Dge,{children:E.jsx(Mge,{})})},{path:"post-login",element:E.jsx(LNt,{})},{path:"logout",element:E.jsx(BNt,{})}]}],INt=()=>{const{logout:t}=bh(),{user:e,logout:r}=rc(),n=()=>{t({logoutParams:{returnTo:`${window.location.origin}/auth/login`}}),r()},i=e;return E.jsx(P1e,{children:E.jsxs("div",{className:"bg-primary-white/50 min-h-screen p-6 flex flex-col",children:[E.jsxs("div",{className:"flex justify-between items-center text h-20",children:[E.jsx("div",{className:"max-w-50",children:E.jsx("img",{src:i?.company.logo,alt:i?.company.name,className:"max-h-15"})}),E.jsxs("div",{className:"flex gap-2 items-center justify-center",children:[E.jsx(tX,{}),E.jsx("span",{className:"cursor-pointer",children:E.jsx(eX,{size:22,className:"",onClick:n})})]})]}),E.jsx("div",{className:"relative flex-1 flex flex-col items-center justify-center",children:E.jsx(w$,{})}),i&&!i?.company.name.includes("Smarterise")&&E.jsx(wbe,{className:"w-40 bg-inherit! text-primary-dark-blue!",logo:ybe})]})})};function ONt({userInfo:t,company_id:e}){const{t:r}=Vt();return E.jsxs(na.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},className:"flex flex-col items-center justify-center mt-10 bg-[#FDFDFD] gap-4 p-8 rounded-[20px] border border-primary-border min-h-62.5 max-w-212.5 mx-auto",children:[E.jsx(na.h2,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2,duration:.5},className:"lg:self-start text-2xl font-semibold text-primary-dark-blue",children:`${r("greetings.welcome")} ${t?.first_name}!`}),E.jsxs(na.div,{className:"mt-8 flex gap-6 flex-wrap justify-center lg:justify-start w-full",variants:{hidden:{},show:{transition:{staggerChildren:.12}}},initial:"hidden",animate:"show",children:[E.jsx(aM,{title:r("role.manager"),icon:E.jsx(Lye,{size:40}),to:`/dashboard/senior-manager/home/${e}`}),E.jsx(aM,{title:r("role.operations"),icon:E.jsx(VHe,{size:40}),to:`/dashboard/operations/home/${e}`}),E.jsx(aM,{title:r("role.finance"),icon:E.jsx(GHe,{size:40}),to:`/dashboard/finance/home/${e}`}),t.access_level===fa.ADMIN&&E.jsxs(E.Fragment,{children:[E.jsx(aM,{title:r("role.admin"),icon:E.jsx(Dat,{size:40}),to:`/dashboard/admin/home/${e}`}),E.jsx(aM,{title:r("role.demo"),icon:E.jsx(qJe,{size:40}),to:"/dashboard/admin/demo/home"})]})]}),E.jsxs(na.p,{initial:{opacity:0}
227,animate:{opacity:1},transition:{delay:.6},className:"text-sm text-gray-500 mt-2 lg:self-end",children:[r("feedback_msg.contact_super_admin")," ",E.jsx(ig,{to:"/",className:"text-blue-500 underline",children:r("feedback_msg.contact_super_admin")})]})]})}const PNt=na.create(ig),aM=({title:t,icon:e,to:r})=>E.jsxs(PNt,{to:r,variants:{hidden:{opacity:0,y:25,scale:.9},show:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:260,damping:18}}},whileHover:{y:-8,scale:1.04,boxShadow:"0px 15px 35px rgba(0,0,0,0.12)"},whileTap:{scale:.97},className:"w-40 h-40 rounded-lg shadow-md flex flex-col items-center justify-center relative text-primary-white dark-blue-gradient cursor-pointer",children:[E.jsx(na.div,{whileHover:{rotate:8},transition:{type:"spring",stiffness:300},children:e}),E.jsx("h3",{className:"mt-4 text-lg font-normal",children:t})]});function kNt(){const{user:t}=rc();return E.jsx(ONt,{userInfo:t,company_id:t?.company.id})}const NNt=[{path:"/",element:E.jsx(gIe,{children:E.jsx(INt,{})}),children:[{path:"/",element:E.jsx(kNt,{})}]}],FNt=[...RNt,...SNt,...NNt,{path:"*",element:E.jsx(ly,{to:"/auth/login",replace:!0}),children:[]}],UNt=({route:t})=>Xke(t);function HNt(){return E.jsx(UNt,{route:FNt})}const QNt=["consent_required","interaction_required"];nWe();const jNt=({children:t})=>{const{getAccessTokenSilently:e,logout:r,error:n,loginWithRedirect:i}=bh(),a=yh(),o=H.useRef(!1),s=H.useRef(null);return gHe(()=>e()),H.useEffect(()=>(bne(()=>{o.current||(o.current=!0,rc.setState({isAuthenticated:!1,user:null}),O4(),QL(),r({logoutParams:{returnTo:`${window.location.origin}/auth/login`}}))}),()=>bne(null)),[r]),H.useEffect(()=>{if(!n||s.current===n)return;s.current=n;const l=bbe();if(!l)return;const u=n.error;if(!l.interactive&&typeof u=="string"&&QNt.includes(u)){_be(l.returnTo,!0),i({appState:{returnTo:l.returnTo,restore:!0}});return}QL(),O4(),a(cT(l.returnTo)&&l.returnTo!=="/"?`/auth/login?returnTo=${encodeURIComponent(l.returnTo)}`:"/auth/login",{replace:!0})},[n,a,i]),E.jsx(E.Fragment,{children:t})},zNt=({children:t})=>{const e=yh(),r=H.useCallback(n=>{const i=n?.returnTo;if(QL(),n?.restore){e(cT(i)?i:"/",{replace:!0});return}e(cT(i)?`/auth/post-login?returnTo=${encodeURIComponent(i)}`:"/auth/post-login",{replace:!0})},[e]);return E.jsx(W$e,{domain:ML.AUTH0_DOMAIN,clientId:ML.AUTH0_CLIENT_ID,authorizationParams:{redirect_uri:`${window.location.origin}/auth/post-login`,audience:ML.AUTH0_AUDIENCE,scope:"read:messages write:data openid profile email offline_access"},cacheLocation:"memory",useRefreshTokens:!0,useRefreshTokensFallback:!0,authorizeTimeoutInSeconds:5,onRedirectCallback:r,children:E.jsx(jNt,{children:t})})},VNt=new WUe;iOe.createRoot(document.getElementById("root")).render(E.jsx(H.StrictMode,{children:E.jsx(wUe,{maxSnack:3,children:E.jsx(_Ue,{client:VNt,children:E.jsx(PNe,{children:E.jsx(zNt,{children:E.jsx(HNt,{})})})})})}))});export default GNt();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.