@advt-gpt-chart/package 3.0.11 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chart/DataSource/metricInsight.d.ts +1 -1
- package/dist/index.es.js +27 -23
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +8 -7
- package/dist/index.umd.js.gz +0 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -505,7 +505,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`,f_e=()=>({style:{symbolType:d3t,fill:{type:"palette"
|
|
|
505
505
|
*
|
|
506
506
|
* This source code is licensed under the MIT license found in the
|
|
507
507
|
* LICENSE file in the root directory of this source tree.
|
|
508
|
-
*/return i.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),p=!1,m=!1,v=!1,b=!1,y=!1,_;_=Symbol.for("react.module.reference");function S(Ee){return!!(typeof Ee=="string"||typeof Ee=="function"||Ee===n||Ee===o||y||Ee===r||Ee===c||Ee===h||b||Ee===g||p||m||v||typeof Ee=="object"&&Ee!==null&&(Ee.$$typeof===f||Ee.$$typeof===d||Ee.$$typeof===a||Ee.$$typeof===s||Ee.$$typeof===u||Ee.$$typeof===_||Ee.getModuleId!==void 0))}function x(Ee){if(typeof Ee=="object"&&Ee!==null){var Ae=Ee.$$typeof;switch(Ae){case e:var Te=Ee.type;switch(Te){case n:case o:case r:case c:case h:return Te;default:var Oe=Te&&Te.$$typeof;switch(Oe){case l:case s:case u:case f:case d:case a:return Oe;default:return Ae}}case t:return Ae}}}var w=s,E=a,A=e,T=u,R=n,k=f,O=d,P=t,L=o,F=r,W=c,V=h,G=!1,z=!1;function X(Ee){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(Ee){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(Ee){return x(Ee)===s}function J(Ee){return x(Ee)===a}function re(Ee){return typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===e}function se(Ee){return x(Ee)===u}function ie(Ee){return x(Ee)===n}function ue(Ee){return x(Ee)===f}function he(Ee){return x(Ee)===d}function ge(Ee){return x(Ee)===t}function pe(Ee){return x(Ee)===o}function me(Ee){return x(Ee)===r}function fe(Ee){return x(Ee)===c}function Se(Ee){return x(Ee)===h}aa.ContextConsumer=w,aa.ContextProvider=E,aa.Element=A,aa.ForwardRef=T,aa.Fragment=R,aa.Lazy=k,aa.Memo=O,aa.Portal=P,aa.Profiler=L,aa.StrictMode=F,aa.Suspense=W,aa.SuspenseList=V,aa.isAsyncMode=X,aa.isConcurrentMode=j,aa.isContextConsumer=H,aa.isContextProvider=J,aa.isElement=re,aa.isForwardRef=se,aa.isFragment=ie,aa.isLazy=ue,aa.isMemo=he,aa.isPortal=ge,aa.isProfiler=pe,aa.isStrictMode=me,aa.isSuspense=fe,aa.isSuspenseList=Se,aa.isValidElementType=S,aa.typeOf=x})(),aa}var q_e;function nxt(){if(q_e)return TM.exports;q_e=1;var i={};return i.NODE_ENV==="production"?TM.exports=txt():TM.exports=ixt(),TM.exports}var RM=nxt();const nV=i=>{let e=[];return ce.Children.forEach(i,(t=>{Me(t)||(RM.isFragment(t)?e=e.concat(nV(t.props.children)):e.push(t))})),e},rxt=["children","hooks","ref"],u3={onPointerDown:"pointerdown",onPointerUp:"pointerup",onPointerUpOutside:"pointerupoutside",onPointerTap:"pointertap",onPointerOver:"pointerover",onPointerMove:"pointermove",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerOut:"pointerout",onMouseDown:"mousedown",onMouseUp:"mouseup",onMouseUpOutside:"mouseupoutside",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onPinch:"pinch",onPinchStart:"pinchstart",onPinchEnd:"pinchend",onPan:"pan",onPanStart:"panstart",onPanEnd:"panend",onDrag:"drag",onDragStart:"dragstart",onDragEnter:"dragenter",onDragLeave:"dragleave",onDragOver:"dragover",onDragEnd:"dragend",onRightDown:"rightdown",onRightUp:"rightup",onRightUpOutside:"rightupoutside",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchEndOutside:"touchendoutside",onTouchMove:"touchmove",onTouchCancel:"touchcancel",onPress:"press",onPressUp:"pressup",onPressEnd:"pressend",onSwipe:"swipe",onDrop:"drop",onWeel:"wheel",onClick:"click",onDblClick:"dblclick"},oxt={onLegendItemHover:"legendItemHover",onLegendItemUnHover:"legendItemUnHover",onLegendItemClick:"legendItemClick",onLegendFilter:"legendFilter",onLegendSelectedDataChange:"legendSelectedDataChange"},axt={onBrushStart:"brushStart",onBrushChange:"brushChange",onBrushEnd:"brushEnd",onBrushClear:"brushClear"},sxt={onDataZoomChange:"dataZoomChange"},lxt={onPlayerPlay:"playerPlay",onPlayerPause:"playerPause",onPlayerEnd:"playerEnd",onPlayerChange:"playerChange",onPlayerForward:"playerForward",onPlayerBackward:"playerBackward"},uxt={onScrollBarChange:"scrollBarChange"},cxt={onDimensionHover:"dimensionHover",onDimensionClick:"dimensionClick"},hxt={onDrill:"drill"},dxt={onInitialized:"initialized",onRendered:"rendered",onRenderFinished:"renderFinished",onAnimationFinished:"animationFinished",onLayoutStart:"layoutStart",onLayoutEnd:"layoutEnd"},rV=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oxt),axt),lxt),sxt),uxt),cxt),dxt),hxt),u3),fxt=Object.keys(rV).concat(Object.keys(u3).map((i=>`${i}Filter`)));Object.keys(u3).reduce(((i,e)=>(i[u3[e]]=e,i)),{});const Y_e=(i,e=u3)=>{const t={};return Object.keys(i).forEach((n=>{e[n]&&i[n]&&(t[n]=i[n])})),t},X_e=(i,e,t,n=u3)=>{if(!e&&!t||!i)return!1;const r=t?Y_e(t,n):null,o=e?Y_e(e,n):null;return r&&Object.keys(r).forEach((a=>{(!o||!o[a]||o[a]!==r[a])&&i.off(n[a],r[a])})),o&&Object.keys(o).forEach((a=>{if(!r||!r[a]||r[a]!==o[a]){const s=e[`${a}Filter`];s?i.on(n[a],s,o[a]):i.on(n[a],o[a])}})),!0},K_e=`${_r}_REACT_TOOLTIP`,gxt=(i,e,t)=>{let n;if(t!=null&&t.tooltipRender?(n=t.tooltipRender,delete t.tooltipRender):e.tooltipRender&&(n=e.tooltipRender),n){let r;return t!=null&&t.reserveDefaultTooltip?(r=t.reserveDefaultTooltip,delete t.reserveDefaultTooltip):r=e.reserveDefaultTooltip,Object.assign(Object.assign({},t),{updateElement:(o,a,s)=>{const{changePositionOnly:l}=s;if(!l){if(!r){o.style.width="auto",o.style.height="auto",o.style.minHeight="auto",o.style.padding="0px";for(let u=0;u<o.children.length;u++){const c=o.children[u];c.className!==K_e&&c.style.display!=="none"&&(c.style.display="none")}}i(Lr.createPortal(ce.createElement("div",{className:K_e},n(o,a,s)),o))}}})}return t},Z_e=[...rxt,...fxt,"vchartConstructor","vchartConstrouctor","useSyncRender","skipFunctionDiff","onError","onReady","spec","container","options","morphConfig"],Q_e={morph:!1,enableExitAnimation:!1},J_e=(i,e)=>`${i&&i.type&&(i.type.displayName||i.type.name)}-${e}`,pxt=i=>{const e={};return nV(i.children).map(((t,n)=>{const r=t&&t.type&&t.type.parseSpec;if(r&&t.props){const o=r(Me(t.props.componentId)?Object.assign(Object.assign({},t.props),{componentId:J_e(t,n)}):t.props);o.isSingle?e[o.specName]=o.spec:(e[o.specName]||(e[o.specName]=[]),e[o.specName].push(o.spec))}})),e},mxt=ce.forwardRef(((i,e)=>{const[t,n]=ce.useState(0),r=ce.useRef({});ce.useImperativeHandle(e,(()=>{var p;return(p=r.current)===null||p===void 0?void 0:p.chart}));const o=!!i.spec,a=ce.useRef(!1),s=ce.useRef(jm(i,Z_e)),l=ce.useRef(null),u=ce.useRef(null),c=!!i.skipFunctionDiff,[h,d]=ce.useState(null),f=p=>{let m;o&&p.spec?(m=p.spec,be(p.data)&&(m=Object.assign(Object.assign({},p.spec),{data:p.data}))):m=Object.assign(Object.assign({},s.current),l.current);const v=gxt(d,p,m.tooltip);return v&&(m.tooltip=v),m},g=p=>{if(!a.current){if(!r.current||!r.current.chart)return;p&&X_e(r.current.chart,i,u.current,rV),n(t+1),i.onReady&&i.onReady(r.current.chart,t===0)}};return ce.useEffect((()=>{var p,m,v;const b=o?null:pxt(i);if(!(!((p=r.current)===null||p===void 0)&&p.chart))return o||(l.current=b),(_=>{var S;const x=new((S=_.vchartConstructor)!==null&&S!==void 0?S:_.vchartConstrouctor)(f(_),Object.assign(Object.assign({},_.options),{onError:_.onError,autoFit:!0,dom:_.container}));r.current=Object.assign(Object.assign({},r.current),{chart:x}),a.current=!1})(i),r.current.chart&&(X_e(r.current.chart,i,u.current,rV),r.current.chart.renderSync({reuse:!1}),g()),void(u.current=i);if(o)return void(mo(u.current.spec,i.spec,{skipFunction:c})?u.current.data!==i.data&&(r.current.chart.updateFullDataSync(i.data),g(!0),u.current=i):(r.current.chart.updateSpecSync(f(i),void 0,(m=i.morphConfig)!==null&&m!==void 0?m:Q_e),g(!0),u.current=i));const y=jm(i,Z_e);mo(y,s.current,{skipFunction:c})&&mo(b,l.current,{skipFunction:c})||(s.current=y,l.current=b,r.current.chart.updateSpecSync(f(i),void 0,(v=i.morphConfig)!==null&&v!==void 0?v:Q_e),g(!0),u.current=i)}),[i]),ce.useEffect((()=>()=>{r&&r.current&&r.current.chart&&(r.current.chart.release(),r.current.chart=null),u.current=null,a.current=!0}),[]),ce.createElement(j_e.Provider,{value:r.current},nV(i.children).map(((p,m)=>{if(typeof p=="string")return null;const v=J_e(p,m);return ce.createElement(ce.Fragment,{key:v},ce.cloneElement(p,{updateId:t,componentId:v}))})),h)})),D1=(i,e,t)=>{t&&t.length&&e.vchartConstructor&&e.vchartConstructor.useRegisters(t);const n=ext(mxt,i,(r=>e?Object.assign(r,e):r));return n.displayName=i,n},qE=[nW,o$,zW,tV,HC,zC,Xbt,Kbt,r3t,B_e,$W,p_e,HW,QW,iV,N3t,L3t,W3t,m_e,KW],vxt=D1("AreaChart",{type:"area",vchartConstructor:Cs},[Fyt,xv,D_e,...qE]),eCe=D1("BarChart",{type:"bar",vchartConstructor:Cs},[Uyt,xv,D_e,...qE]),oV=[nW,o$,zW,tV,HW,$W,QW,iV,KW],bxt=[nW,o$,zW,tV,SE,dM,s3t,B_e,$W,p_e,HW,QW,iV,m_e,KW],yxt=D1("FunnelChart",{type:"funnel",vchartConstructor:Cs},[BCt,xv,...oV]),_xt=D1("GaugeChart",{type:"gauge",vchartConstructor:Cs},[LCt,...oV]),Cxt=D1("HeatmapChart",{type:"heatmap",vchartConstructor:Cs},[FCt,xv,...qE]),xxt=D1("LineChart",{type:"line",vchartConstructor:Cs},[kyt,xv,...qE]),tCe=D1("PieChart",{type:"pie",vchartConstructor:Cs},[OCt,xv,b3t,...oV]),Sxt=D1("RadarChart",{type:"radar",vchartConstructor:Cs},[PCt,xv,...bxt]),wxt=D1("ScatterChart",{type:"scatter",vchartConstructor:Cs},[t_t,xv,...qE]);var iCe=typeof global=="object"&&global&&global.Object===Object&&global,Ext=typeof self=="object"&&self&&self.Object===Object&&self,np=iCe||Ext||Function("return this")(),Df=np.Symbol,nCe=Object.prototype,Axt=nCe.hasOwnProperty,Txt=nCe.toString,YE=Df?Df.toStringTag:void 0;function Rxt(i){var e=Axt.call(i,YE),t=i[YE];try{i[YE]=void 0;var n=!0}catch(o){}var r=Txt.call(i);return n&&(e?i[YE]=t:delete i[YE]),r}var Mxt=Object.prototype,kxt=Mxt.toString;function Oxt(i){return kxt.call(i)}var Ixt="[object Null]",Dxt="[object Undefined]",rCe=Df?Df.toStringTag:void 0;function P1(i){return i==null?i===void 0?Dxt:Ixt:rCe&&rCe in Object(i)?Rxt(i):Oxt(i)}function Pf(i){return i!=null&&typeof i=="object"}var Pxt="[object Symbol]";function MM(i){return typeof i=="symbol"||Pf(i)&&P1(i)==Pxt}function Lxt(i,e){for(var t=-1,n=i==null?0:i.length,r=Array(n);++t<n;)r[t]=e(i[t],t,i);return r}var hl=Array.isArray,oCe=Df?Df.prototype:void 0,aCe=oCe?oCe.toString:void 0;function sCe(i){if(typeof i=="string")return i;if(hl(i))return Lxt(i,sCe)+"";if(MM(i))return aCe?aCe.call(i):"";var e=i+"";return e=="0"&&1/i==-1/0?"-0":e}var Bxt=/\s/;function Fxt(i){for(var e=i.length;e--&&Bxt.test(i.charAt(e)););return e}var Nxt=/^\s+/;function Hxt(i){return i&&i.slice(0,Fxt(i)+1).replace(Nxt,"")}function Wh(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var lCe=NaN,$xt=/^[-+]0x[0-9a-f]+$/i,zxt=/^0b[01]+$/i,Wxt=/^0o[0-7]+$/i,Vxt=parseInt;function uCe(i){if(typeof i=="number")return i;if(MM(i))return lCe;if(Wh(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=Wh(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=Hxt(i);var t=zxt.test(i);return t||Wxt.test(i)?Vxt(i.slice(2),t?2:8):$xt.test(i)?lCe:+i}function aV(i){return i}var jxt="[object AsyncFunction]",Uxt="[object Function]",Gxt="[object GeneratorFunction]",qxt="[object Proxy]";function sV(i){if(!Wh(i))return!1;var e=P1(i);return e==Uxt||e==Gxt||e==jxt||e==qxt}var lV=np["__core-js_shared__"],cCe=(function(){var i=/[^.]+$/.exec(lV&&lV.keys&&lV.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function Yxt(i){return!!cCe&&cCe in i}var Xxt=Function.prototype,Kxt=Xxt.toString;function Tb(i){if(i!=null){try{return Kxt.call(i)}catch(e){}try{return i+""}catch(e){}}return""}var Zxt=/[\\^$.*+?()[\]{}|]/g,Qxt=/^\[object .+?Constructor\]$/,Jxt=Function.prototype,eSt=Object.prototype,tSt=Jxt.toString,iSt=eSt.hasOwnProperty,nSt=RegExp("^"+tSt.call(iSt).replace(Zxt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rSt(i){if(!Wh(i)||Yxt(i))return!1;var e=sV(i)?nSt:Qxt;return e.test(Tb(i))}function oSt(i,e){return i==null?void 0:i[e]}function Rb(i,e){var t=oSt(i,e);return rSt(t)?t:void 0}var uV=Rb(np,"WeakMap"),hCe=Object.create,aSt=(function(){function i(){}return function(e){if(!Wh(e))return{};if(hCe)return hCe(e);i.prototype=e;var t=new i;return i.prototype=void 0,t}})();function sSt(i,e,t){switch(t.length){case 0:return i.call(e);case 1:return i.call(e,t[0]);case 2:return i.call(e,t[0],t[1]);case 3:return i.call(e,t[0],t[1],t[2])}return i.apply(e,t)}function lSt(i,e){var t=-1,n=i.length;for(e||(e=Array(n));++t<n;)e[t]=i[t];return e}var uSt=800,cSt=16,hSt=Date.now;function dSt(i){var e=0,t=0;return function(){var n=hSt(),r=cSt-(n-t);if(t=n,r>0){if(++e>=uSt)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}function fSt(i){return function(){return i}}var kM=(function(){try{var i=Rb(Object,"defineProperty");return i({},"",{}),i}catch(e){}})(),gSt=kM?function(i,e){return kM(i,"toString",{configurable:!0,enumerable:!1,value:fSt(e),writable:!0})}:aV,dCe=dSt(gSt);function pSt(i,e){for(var t=-1,n=i==null?0:i.length;++t<n&&e(i[t],t,i)!==!1;);return i}var mSt=9007199254740991,vSt=/^(?:0|[1-9]\d*)$/;function OM(i,e){var t=typeof i;return e=e==null?mSt:e,!!e&&(t=="number"||t!="symbol"&&vSt.test(i))&&i>-1&&i%1==0&&i<e}function cV(i,e,t){e=="__proto__"&&kM?kM(i,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[e]=t}function XE(i,e){return i===e||i!==i&&e!==e}var bSt=Object.prototype,ySt=bSt.hasOwnProperty;function hV(i,e,t){var n=i[e];(!(ySt.call(i,e)&&XE(n,t))||t===void 0&&!(e in i))&&cV(i,e,t)}function _St(i,e,t,n){var r=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=void 0;l===void 0&&(l=i[s]),r?cV(t,s,l):hV(t,s,l)}return t}var fCe=Math.max;function gCe(i,e,t){return e=fCe(e===void 0?i.length-1:e,0),function(){for(var n=arguments,r=-1,o=fCe(n.length-e,0),a=Array(o);++r<o;)a[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=t(a),sSt(i,this,s)}}function CSt(i,e){return dCe(gCe(i,e,aV),i+"")}var xSt=9007199254740991;function dV(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=xSt}function Mb(i){return i!=null&&dV(i.length)&&!sV(i)}function SSt(i,e,t){if(!Wh(t))return!1;var n=typeof e;return(n=="number"?Mb(t)&&OM(e,t.length):n=="string"&&e in t)?XE(t[e],i):!1}function pCe(i){return CSt(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=i.length>3&&typeof o=="function"?(r--,o):void 0,a&&SSt(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var s=t[n];s&&i(e,s,n,o)}return e})}var wSt=Object.prototype;function IM(i){var e=i&&i.constructor,t=typeof e=="function"&&e.prototype||wSt;return i===t}function ESt(i,e){for(var t=-1,n=Array(i);++t<i;)n[t]=e(t);return n}var ASt="[object Arguments]";function mCe(i){return Pf(i)&&P1(i)==ASt}var vCe=Object.prototype,TSt=vCe.hasOwnProperty,RSt=vCe.propertyIsEnumerable,c3=mCe((function(){return arguments})())?mCe:function(i){return Pf(i)&&TSt.call(i,"callee")&&!RSt.call(i,"callee")};function MSt(){return!1}var bCe=typeof Ki=="object"&&Ki&&!Ki.nodeType&&Ki,yCe=bCe&&typeof module=="object"&&module&&!module.nodeType&&module,kSt=yCe&&yCe.exports===bCe,_Ce=kSt?np.Buffer:void 0,OSt=_Ce?_Ce.isBuffer:void 0,h3=OSt||MSt,ISt="[object Arguments]",DSt="[object Array]",PSt="[object Boolean]",LSt="[object Date]",BSt="[object Error]",FSt="[object Function]",NSt="[object Map]",HSt="[object Number]",$St="[object Object]",zSt="[object RegExp]",WSt="[object Set]",VSt="[object String]",jSt="[object WeakMap]",USt="[object ArrayBuffer]",GSt="[object DataView]",qSt="[object Float32Array]",YSt="[object Float64Array]",XSt="[object Int8Array]",KSt="[object Int16Array]",ZSt="[object Int32Array]",QSt="[object Uint8Array]",JSt="[object Uint8ClampedArray]",ewt="[object Uint16Array]",twt="[object Uint32Array]",is={};is[qSt]=is[YSt]=is[XSt]=is[KSt]=is[ZSt]=is[QSt]=is[JSt]=is[ewt]=is[twt]=!0,is[ISt]=is[DSt]=is[USt]=is[PSt]=is[GSt]=is[LSt]=is[BSt]=is[FSt]=is[NSt]=is[HSt]=is[$St]=is[zSt]=is[WSt]=is[VSt]=is[jSt]=!1;function iwt(i){return Pf(i)&&dV(i.length)&&!!is[P1(i)]}function fV(i){return function(e){return i(e)}}var CCe=typeof Ki=="object"&&Ki&&!Ki.nodeType&&Ki,KE=CCe&&typeof module=="object"&&module&&!module.nodeType&&module,nwt=KE&&KE.exports===CCe,gV=nwt&&iCe.process,d3=(function(){try{var i=KE&&KE.require&&KE.require("util").types;return i||gV&&gV.binding&&gV.binding("util")}catch(e){}})(),xCe=d3&&d3.isTypedArray,DM=xCe?fV(xCe):iwt,rwt=Object.prototype,owt=rwt.hasOwnProperty;function SCe(i,e){var t=hl(i),n=!t&&c3(i),r=!t&&!n&&h3(i),o=!t&&!n&&!r&&DM(i),a=t||n||r||o,s=a?ESt(i.length,String):[],l=s.length;for(var u in i)(e||owt.call(i,u))&&!(a&&(u=="length"||r&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||OM(u,l)))&&s.push(u);return s}function wCe(i,e){return function(t){return i(e(t))}}var awt=wCe(Object.keys,Object),swt=Object.prototype,lwt=swt.hasOwnProperty;function pV(i){if(!IM(i))return awt(i);var e=[];for(var t in Object(i))lwt.call(i,t)&&t!="constructor"&&e.push(t);return e}function mV(i){return Mb(i)?SCe(i):pV(i)}function uwt(i){var e=[];if(i!=null)for(var t in Object(i))e.push(t);return e}var cwt=Object.prototype,hwt=cwt.hasOwnProperty;function dwt(i){if(!Wh(i))return uwt(i);var e=IM(i),t=[];for(var n in i)n=="constructor"&&(e||!hwt.call(i,n))||t.push(n);return t}function ECe(i){return Mb(i)?SCe(i,!0):dwt(i)}var fwt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gwt=/^\w*$/;function vV(i,e){if(hl(i))return!1;var t=typeof i;return t=="number"||t=="symbol"||t=="boolean"||i==null||MM(i)?!0:gwt.test(i)||!fwt.test(i)||e!=null&&i in Object(e)}var ZE=Rb(Object,"create");function pwt(){this.__data__=ZE?ZE(null):{},this.size=0}function mwt(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e}var vwt="__lodash_hash_undefined__",bwt=Object.prototype,ywt=bwt.hasOwnProperty;function _wt(i){var e=this.__data__;if(ZE){var t=e[i];return t===vwt?void 0:t}return ywt.call(e,i)?e[i]:void 0}var Cwt=Object.prototype,xwt=Cwt.hasOwnProperty;function Swt(i){var e=this.__data__;return ZE?e[i]!==void 0:xwt.call(e,i)}var wwt="__lodash_hash_undefined__";function Ewt(i,e){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=ZE&&e===void 0?wwt:e,this}function kb(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}kb.prototype.clear=pwt,kb.prototype.delete=mwt,kb.prototype.get=_wt,kb.prototype.has=Swt,kb.prototype.set=Ewt;function Awt(){this.__data__=[],this.size=0}function PM(i,e){for(var t=i.length;t--;)if(XE(i[t][0],e))return t;return-1}var Twt=Array.prototype,Rwt=Twt.splice;function Mwt(i){var e=this.__data__,t=PM(e,i);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Rwt.call(e,t,1),--this.size,!0}function kwt(i){var e=this.__data__,t=PM(e,i);return t<0?void 0:e[t][1]}function Owt(i){return PM(this.__data__,i)>-1}function Iwt(i,e){var t=this.__data__,n=PM(t,i);return n<0?(++this.size,t.push([i,e])):t[n][1]=e,this}function L1(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}L1.prototype.clear=Awt,L1.prototype.delete=Mwt,L1.prototype.get=kwt,L1.prototype.has=Owt,L1.prototype.set=Iwt;var QE=Rb(np,"Map");function Dwt(){this.size=0,this.__data__={hash:new kb,map:new(QE||L1),string:new kb}}function Pwt(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null}function LM(i,e){var t=i.__data__;return Pwt(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Lwt(i){var e=LM(this,i).delete(i);return this.size-=e?1:0,e}function Bwt(i){return LM(this,i).get(i)}function Fwt(i){return LM(this,i).has(i)}function Nwt(i,e){var t=LM(this,i),n=t.size;return t.set(i,e),this.size+=t.size==n?0:1,this}function B1(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}B1.prototype.clear=Dwt,B1.prototype.delete=Lwt,B1.prototype.get=Bwt,B1.prototype.has=Fwt,B1.prototype.set=Nwt;var Hwt="Expected a function";function bV(i,e){if(typeof i!="function"||e!=null&&typeof e!="function")throw new TypeError(Hwt);var t=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=t.cache;if(o.has(r))return o.get(r);var a=i.apply(this,n);return t.cache=o.set(r,a)||o,a};return t.cache=new(bV.Cache||B1),t}bV.Cache=B1;var $wt=500;function zwt(i){var e=bV(i,function(n){return t.size===$wt&&t.clear(),n}),t=e.cache;return e}var Wwt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vwt=/\\(\\)?/g,jwt=zwt(function(i){var e=[];return i.charCodeAt(0)===46&&e.push(""),i.replace(Wwt,function(t,n,r,o){e.push(r?o.replace(Vwt,"$1"):n||t)}),e});function JE(i){return i==null?"":sCe(i)}function BM(i,e){return hl(i)?i:vV(i,e)?[i]:jwt(JE(i))}function e6(i){if(typeof i=="string"||MM(i))return i;var e=i+"";return e=="0"&&1/i==-1/0?"-0":e}function yV(i,e){e=BM(e,i);for(var t=0,n=e.length;i!=null&&t<n;)i=i[e6(e[t++])];return t&&t==n?i:void 0}function rp(i,e,t){var n=i==null?void 0:yV(i,e);return n===void 0?t:n}function ACe(i,e){for(var t=-1,n=e.length,r=i.length;++t<n;)i[r+t]=e[t];return i}var TCe=Df?Df.isConcatSpreadable:void 0;function Uwt(i){return hl(i)||c3(i)||!!(TCe&&i&&i[TCe])}function Gwt(i,e,t,n,r){var o=-1,a=i.length;for(t||(t=Uwt),r||(r=[]);++o<a;){var s=i[o];t(s)?ACe(r,s):r[r.length]=s}return r}function qwt(i){var e=i==null?0:i.length;return e?Gwt(i):[]}function Ywt(i){return dCe(gCe(i,void 0,qwt),i+"")}var RCe=wCe(Object.getPrototypeOf,Object),Xwt="[object Object]",Kwt=Function.prototype,Zwt=Object.prototype,MCe=Kwt.toString,Qwt=Zwt.hasOwnProperty,Jwt=MCe.call(Object);function e4t(i){if(!Pf(i)||P1(i)!=Xwt)return!1;var e=RCe(i);if(e===null)return!0;var t=Qwt.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&MCe.call(t)==Jwt}var t4t="\\ud800-\\udfff",i4t="\\u0300-\\u036f",n4t="\\ufe20-\\ufe2f",r4t="\\u20d0-\\u20ff",o4t=i4t+n4t+r4t,a4t="\\ufe0e\\ufe0f",s4t="\\u200d",l4t=RegExp("["+s4t+t4t+o4t+a4t+"]");function u4t(i){return l4t.test(i)}function c4t(i,e,t,n){for(var r=-1,o=i==null?0:i.length;++r<o;)t=e(t,i[r],r,i);return t}function h4t(i){return function(e){return i==null?void 0:i[e]}}var d4t={À:"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"},f4t=h4t(d4t),g4t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,p4t="\\u0300-\\u036f",m4t="\\ufe20-\\ufe2f",v4t="\\u20d0-\\u20ff",b4t=p4t+m4t+v4t,y4t="["+b4t+"]",_4t=RegExp(y4t,"g");function C4t(i){return i=JE(i),i&&i.replace(g4t,f4t).replace(_4t,"")}var x4t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function S4t(i){return i.match(x4t)||[]}var w4t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function E4t(i){return w4t.test(i)}var kCe="\\ud800-\\udfff",A4t="\\u0300-\\u036f",T4t="\\ufe20-\\ufe2f",R4t="\\u20d0-\\u20ff",M4t=A4t+T4t+R4t,OCe="\\u2700-\\u27bf",ICe="a-z\\xdf-\\xf6\\xf8-\\xff",k4t="\\xac\\xb1\\xd7\\xf7",O4t="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I4t="\\u2000-\\u206f",D4t=" \\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",DCe="A-Z\\xc0-\\xd6\\xd8-\\xde",P4t="\\ufe0e\\ufe0f",PCe=k4t+O4t+I4t+D4t,LCe="['’]",BCe="["+PCe+"]",L4t="["+M4t+"]",FCe="\\d+",B4t="["+OCe+"]",NCe="["+ICe+"]",HCe="[^"+kCe+PCe+FCe+OCe+ICe+DCe+"]",F4t="\\ud83c[\\udffb-\\udfff]",N4t="(?:"+L4t+"|"+F4t+")",H4t="[^"+kCe+"]",$Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",zCe="[\\ud800-\\udbff][\\udc00-\\udfff]",f3="["+DCe+"]",$4t="\\u200d",WCe="(?:"+NCe+"|"+HCe+")",z4t="(?:"+f3+"|"+HCe+")",VCe="(?:"+LCe+"(?:d|ll|m|re|s|t|ve))?",jCe="(?:"+LCe+"(?:D|LL|M|RE|S|T|VE))?",UCe=N4t+"?",GCe="["+P4t+"]?",W4t="(?:"+$4t+"(?:"+[H4t,$Ce,zCe].join("|")+")"+GCe+UCe+")*",V4t="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",j4t="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",U4t=GCe+UCe+W4t,G4t="(?:"+[B4t,$Ce,zCe].join("|")+")"+U4t,q4t=RegExp([f3+"?"+NCe+"+"+VCe+"(?="+[BCe,f3,"$"].join("|")+")",z4t+"+"+jCe+"(?="+[BCe,f3+WCe,"$"].join("|")+")",f3+"?"+WCe+"+"+VCe,f3+"+"+jCe,j4t,V4t,FCe,G4t].join("|"),"g");function Y4t(i){return i.match(q4t)||[]}function X4t(i,e,t){return i=JE(i),e=e,e===void 0?E4t(i)?Y4t(i):S4t(i):i.match(e)||[]}var K4t="['’]",Z4t=RegExp(K4t,"g");function Q4t(i){return function(e){return c4t(X4t(C4t(e).replace(Z4t,"")),i,"")}}function J4t(){this.__data__=new L1,this.size=0}function eEt(i){var e=this.__data__,t=e.delete(i);return this.size=e.size,t}function tEt(i){return this.__data__.get(i)}function iEt(i){return this.__data__.has(i)}var nEt=200;function rEt(i,e){var t=this.__data__;if(t instanceof L1){var n=t.__data__;if(!QE||n.length<nEt-1)return n.push([i,e]),this.size=++t.size,this;t=this.__data__=new B1(n)}return t.set(i,e),this.size=t.size,this}function V0(i){var e=this.__data__=new L1(i);this.size=e.size}V0.prototype.clear=J4t,V0.prototype.delete=eEt,V0.prototype.get=tEt,V0.prototype.has=iEt,V0.prototype.set=rEt;var qCe=typeof Ki=="object"&&Ki&&!Ki.nodeType&&Ki,YCe=qCe&&typeof module=="object"&&module&&!module.nodeType&&module,oEt=YCe&&YCe.exports===qCe,XCe=oEt?np.Buffer:void 0,KCe=XCe?XCe.allocUnsafe:void 0;function ZCe(i,e){if(e)return i.slice();var t=i.length,n=KCe?KCe(t):new i.constructor(t);return i.copy(n),n}function aEt(i,e){for(var t=-1,n=i==null?0:i.length,r=0,o=[];++t<n;){var a=i[t];e(a,t,i)&&(o[r++]=a)}return o}function sEt(){return[]}var lEt=Object.prototype,uEt=lEt.propertyIsEnumerable,QCe=Object.getOwnPropertySymbols,cEt=QCe?function(i){return i==null?[]:(i=Object(i),aEt(QCe(i),function(e){return uEt.call(i,e)}))}:sEt;function hEt(i,e,t){var n=e(i);return hl(i)?n:ACe(n,t(i))}function _V(i){return hEt(i,mV,cEt)}var CV=Rb(np,"DataView"),xV=Rb(np,"Promise"),SV=Rb(np,"Set"),JCe="[object Map]",dEt="[object Object]",e3e="[object Promise]",t3e="[object Set]",i3e="[object WeakMap]",n3e="[object DataView]",fEt=Tb(CV),gEt=Tb(QE),pEt=Tb(xV),mEt=Tb(SV),vEt=Tb(uV),Ed=P1;(CV&&Ed(new CV(new ArrayBuffer(1)))!=n3e||QE&&Ed(new QE)!=JCe||xV&&Ed(xV.resolve())!=e3e||SV&&Ed(new SV)!=t3e||uV&&Ed(new uV)!=i3e)&&(Ed=function(i){var e=P1(i),t=e==dEt?i.constructor:void 0,n=t?Tb(t):"";if(n)switch(n){case fEt:return n3e;case gEt:return JCe;case pEt:return e3e;case mEt:return t3e;case vEt:return i3e}return e});var bEt=Object.prototype,yEt=bEt.hasOwnProperty;function _Et(i){var e=i.length,t=new i.constructor(e);return e&&typeof i[0]=="string"&&yEt.call(i,"index")&&(t.index=i.index,t.input=i.input),t}var FM=np.Uint8Array;function wV(i){var e=new i.constructor(i.byteLength);return new FM(e).set(new FM(i)),e}function CEt(i,e){var t=wV(i.buffer);return new i.constructor(t,i.byteOffset,i.byteLength)}var xEt=/\w*$/;function SEt(i){var e=new i.constructor(i.source,xEt.exec(i));return e.lastIndex=i.lastIndex,e}var r3e=Df?Df.prototype:void 0,o3e=r3e?r3e.valueOf:void 0;function wEt(i){return o3e?Object(o3e.call(i)):{}}function a3e(i,e){var t=e?wV(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}var EEt="[object Boolean]",AEt="[object Date]",TEt="[object Map]",REt="[object Number]",MEt="[object RegExp]",kEt="[object Set]",OEt="[object String]",IEt="[object Symbol]",DEt="[object ArrayBuffer]",PEt="[object DataView]",LEt="[object Float32Array]",BEt="[object Float64Array]",FEt="[object Int8Array]",NEt="[object Int16Array]",HEt="[object Int32Array]",$Et="[object Uint8Array]",zEt="[object Uint8ClampedArray]",WEt="[object Uint16Array]",VEt="[object Uint32Array]";function jEt(i,e,t){var n=i.constructor;switch(e){case DEt:return wV(i);case EEt:case AEt:return new n(+i);case PEt:return CEt(i);case LEt:case BEt:case FEt:case NEt:case HEt:case $Et:case zEt:case WEt:case VEt:return a3e(i,t);case TEt:return new n;case REt:case OEt:return new n(i);case MEt:return SEt(i);case kEt:return new n;case IEt:return wEt(i)}}function s3e(i){return typeof i.constructor=="function"&&!IM(i)?aSt(RCe(i)):{}}var UEt="[object Map]";function GEt(i){return Pf(i)&&Ed(i)==UEt}var l3e=d3&&d3.isMap,qEt=l3e?fV(l3e):GEt,YEt="[object Set]";function XEt(i){return Pf(i)&&Ed(i)==YEt}var u3e=d3&&d3.isSet,KEt=u3e?fV(u3e):XEt,ZEt=1,c3e="[object Arguments]",QEt="[object Array]",JEt="[object Boolean]",e6t="[object Date]",t6t="[object Error]",h3e="[object Function]",i6t="[object GeneratorFunction]",n6t="[object Map]",r6t="[object Number]",d3e="[object Object]",o6t="[object RegExp]",a6t="[object Set]",s6t="[object String]",l6t="[object Symbol]",u6t="[object WeakMap]",c6t="[object ArrayBuffer]",h6t="[object DataView]",d6t="[object Float32Array]",f6t="[object Float64Array]",g6t="[object Int8Array]",p6t="[object Int16Array]",m6t="[object Int32Array]",v6t="[object Uint8Array]",b6t="[object Uint8ClampedArray]",y6t="[object Uint16Array]",_6t="[object Uint32Array]",Ga={};Ga[c3e]=Ga[QEt]=Ga[c6t]=Ga[h6t]=Ga[JEt]=Ga[e6t]=Ga[d6t]=Ga[f6t]=Ga[g6t]=Ga[p6t]=Ga[m6t]=Ga[n6t]=Ga[r6t]=Ga[d3e]=Ga[o6t]=Ga[a6t]=Ga[s6t]=Ga[l6t]=Ga[v6t]=Ga[b6t]=Ga[y6t]=Ga[_6t]=!0,Ga[t6t]=Ga[h3e]=Ga[u6t]=!1;function NM(i,e,t,n,r,o){var a,s=e&ZEt;if(a!==void 0)return a;if(!Wh(i))return i;var l=hl(i);if(l)a=_Et(i);else{var u=Ed(i),c=u==h3e||u==i6t;if(h3(i))return ZCe(i,s);if(u==d3e||u==c3e||c&&!r)a=c?{}:s3e(i);else{if(!Ga[u])return r?i:{};a=jEt(i,u,s)}}o||(o=new V0);var h=o.get(i);if(h)return h;o.set(i,a),KEt(i)?i.forEach(function(g){a.add(NM(g,e,t,g,i,o))}):qEt(i)&&i.forEach(function(g,p){a.set(p,NM(g,e,t,p,i,o))});var d=_V,f=l?void 0:d(i);return pSt(f||i,function(g,p){f&&(p=g,g=i[p]),hV(a,p,NM(g,e,t,p,i,o))}),a}var C6t=1,x6t=4;function S6t(i){return NM(i,C6t|x6t)}var w6t="__lodash_hash_undefined__";function E6t(i){return this.__data__.set(i,w6t),this}function A6t(i){return this.__data__.has(i)}function HM(i){var e=-1,t=i==null?0:i.length;for(this.__data__=new B1;++e<t;)this.add(i[e])}HM.prototype.add=HM.prototype.push=E6t,HM.prototype.has=A6t;function f3e(i,e){for(var t=-1,n=i==null?0:i.length;++t<n;)if(e(i[t],t,i))return!0;return!1}function T6t(i,e){return i.has(e)}var R6t=1,M6t=2;function g3e(i,e,t,n,r,o){var a=t&R6t,s=i.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(i),c=o.get(e);if(u&&c)return u==e&&c==i;var h=-1,d=!0,f=t&M6t?new HM:void 0;for(o.set(i,e),o.set(e,i);++h<s;){var g=i[h],p=e[h];if(n)var m=a?n(p,g,h,e,i,o):n(g,p,h,i,e,o);if(m!==void 0){if(m)continue;d=!1;break}if(f){if(!f3e(e,function(v,b){if(!T6t(f,b)&&(g===v||r(g,v,t,n,o)))return f.push(b)})){d=!1;break}}else if(!(g===p||r(g,p,t,n,o))){d=!1;break}}return o.delete(i),o.delete(e),d}function k6t(i){var e=-1,t=Array(i.size);return i.forEach(function(n,r){t[++e]=[r,n]}),t}function O6t(i){var e=-1,t=Array(i.size);return i.forEach(function(n){t[++e]=n}),t}var I6t=1,D6t=2,P6t="[object Boolean]",L6t="[object Date]",B6t="[object Error]",F6t="[object Map]",N6t="[object Number]",H6t="[object RegExp]",$6t="[object Set]",z6t="[object String]",W6t="[object Symbol]",V6t="[object ArrayBuffer]",j6t="[object DataView]",p3e=Df?Df.prototype:void 0,EV=p3e?p3e.valueOf:void 0;function U6t(i,e,t,n,r,o,a){switch(t){case j6t:if(i.byteLength!=e.byteLength||i.byteOffset!=e.byteOffset)return!1;i=i.buffer,e=e.buffer;case V6t:return!(i.byteLength!=e.byteLength||!o(new FM(i),new FM(e)));case P6t:case L6t:case N6t:return XE(+i,+e);case B6t:return i.name==e.name&&i.message==e.message;case H6t:case z6t:return i==e+"";case F6t:var s=k6t;case $6t:var l=n&I6t;if(s||(s=O6t),i.size!=e.size&&!l)return!1;var u=a.get(i);if(u)return u==e;n|=D6t,a.set(i,e);var c=g3e(s(i),s(e),n,r,o,a);return a.delete(i),c;case W6t:if(EV)return EV.call(i)==EV.call(e)}return!1}var G6t=1,q6t=Object.prototype,Y6t=q6t.hasOwnProperty;function X6t(i,e,t,n,r,o){var a=t&G6t,s=_V(i),l=s.length,u=_V(e),c=u.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var d=s[h];if(!(a?d in e:Y6t.call(e,d)))return!1}var f=o.get(i),g=o.get(e);if(f&&g)return f==e&&g==i;var p=!0;o.set(i,e),o.set(e,i);for(var m=a;++h<l;){d=s[h];var v=i[d],b=e[d];if(n)var y=a?n(b,v,d,e,i,o):n(v,b,d,i,e,o);if(!(y===void 0?v===b||r(v,b,t,n,o):y)){p=!1;break}m||(m=d=="constructor")}if(p&&!m){var _=i.constructor,S=e.constructor;_!=S&&"constructor"in i&&"constructor"in e&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(p=!1)}return o.delete(i),o.delete(e),p}var K6t=1,m3e="[object Arguments]",v3e="[object Array]",$M="[object Object]",Z6t=Object.prototype,b3e=Z6t.hasOwnProperty;function Q6t(i,e,t,n,r,o){var a=hl(i),s=hl(e),l=a?v3e:Ed(i),u=s?v3e:Ed(e);l=l==m3e?$M:l,u=u==m3e?$M:u;var c=l==$M,h=u==$M,d=l==u;if(d&&h3(i)){if(!h3(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new V0),a||DM(i)?g3e(i,e,t,n,r,o):U6t(i,e,l,t,n,r,o);if(!(t&K6t)){var f=c&&b3e.call(i,"__wrapped__"),g=h&&b3e.call(e,"__wrapped__");if(f||g){var p=f?i.value():i,m=g?e.value():e;return o||(o=new V0),r(p,m,t,n,o)}}return d?(o||(o=new V0),X6t(i,e,t,n,r,o)):!1}function zM(i,e,t,n,r){return i===e?!0:i==null||e==null||!Pf(i)&&!Pf(e)?i!==i&&e!==e:Q6t(i,e,t,n,zM,r)}var J6t=1,eAt=2;function tAt(i,e,t,n){var r=t.length,o=r;if(i==null)return!o;for(i=Object(i);r--;){var a=t[r];if(a[2]?a[1]!==i[a[0]]:!(a[0]in i))return!1}for(;++r<o;){a=t[r];var s=a[0],l=i[s],u=a[1];if(a[2]){if(l===void 0&&!(s in i))return!1}else{var c=new V0,h;if(!(h===void 0?zM(u,l,J6t|eAt,n,c):h))return!1}}return!0}function y3e(i){return i===i&&!Wh(i)}function iAt(i){for(var e=mV(i),t=e.length;t--;){var n=e[t],r=i[n];e[t]=[n,r,y3e(r)]}return e}function _3e(i,e){return function(t){return t==null?!1:t[i]===e&&(e!==void 0||i in Object(t))}}function nAt(i){var e=iAt(i);return e.length==1&&e[0][2]?_3e(e[0][0],e[0][1]):function(t){return t===i||tAt(t,i,e)}}function rAt(i,e){return i!=null&&e in Object(i)}function oAt(i,e,t){e=BM(e,i);for(var n=-1,r=e.length,o=!1;++n<r;){var a=e6(e[n]);if(!(o=i!=null&&t(i,a)))break;i=i[a]}return o||++n!=r?o:(r=i==null?0:i.length,!!r&&dV(r)&&OM(a,r)&&(hl(i)||c3(i)))}function C3e(i,e){return i!=null&&oAt(i,e,rAt)}var aAt=1,sAt=2;function lAt(i,e){return vV(i)&&y3e(e)?_3e(e6(i),e):function(t){var n=rp(t,i);return n===void 0&&n===e?C3e(t,i):zM(e,n,aAt|sAt)}}function x3e(i){return function(e){return e==null?void 0:e[i]}}function uAt(i){return function(e){return yV(e,i)}}function cAt(i){return vV(i)?x3e(e6(i)):uAt(i)}function AV(i){return typeof i=="function"?i:i==null?aV:typeof i=="object"?hl(i)?lAt(i[0],i[1]):nAt(i):cAt(i)}function hAt(i){return function(e,t,n){for(var r=-1,o=Object(e),a=n(e),s=a.length;s--;){var l=a[++r];if(t(o[l],l,o)===!1)break}return e}}var S3e=hAt();function w3e(i,e){return i&&S3e(i,e,mV)}function dAt(i,e){return function(t,n){if(t==null)return t;if(!Mb(t))return i(t,n);for(var r=t.length,o=-1,a=Object(t);++o<r&&n(a[o],o,a)!==!1;);return t}}var fAt=dAt(w3e);function TV(i,e,t){(t!==void 0&&!XE(i[e],t)||t===void 0&&!(e in i))&&cV(i,e,t)}function gAt(i){return Pf(i)&&Mb(i)}function RV(i,e){if(!(e==="constructor"&&typeof i[e]=="function")&&e!="__proto__")return i[e]}function pAt(i){return _St(i,ECe(i))}function mAt(i,e,t,n,r,o,a){var s=RV(i,t),l=RV(e,t),u=a.get(l);if(u){TV(i,t,u);return}var c=o?o(s,l,t+"",i,e,a):void 0,h=c===void 0;if(h){var d=hl(l),f=!d&&h3(l),g=!d&&!f&&DM(l);c=l,d||f||g?hl(s)?c=s:gAt(s)?c=lSt(s):f?(h=!1,c=ZCe(l,!0)):g?(h=!1,c=a3e(l,!0)):c=[]:e4t(l)||c3(l)?(c=s,c3(s)?c=pAt(s):(!Wh(s)||sV(s))&&(c=s3e(l))):h=!1}h&&(a.set(l,c),r(c,l,n,o,a),a.delete(l)),TV(i,t,c)}function MV(i,e,t,n,r){i!==e&&S3e(e,function(o,a){if(r||(r=new V0),Wh(o))mAt(i,e,a,t,MV,n,r);else{var s=n?n(RV(i,a),o,a+"",i,e,r):void 0;s===void 0&&(s=o),TV(i,a,s)}},ECe)}var vAt=pCe(function(i,e,t,n){MV(i,e,t,n)});function bAt(i,e,t){var n;return t(i,function(r,o,a){if(e(r,o,a))return n=o,!1}),n}function yAt(i,e){return bAt(i,AV(e),w3e)}var _At="[object String]";function WM(i){return typeof i=="string"||!hl(i)&&Pf(i)&&P1(i)==_At}var CAt="[object Map]",xAt="[object Set]",SAt=Object.prototype,wAt=SAt.hasOwnProperty;function EAt(i){if(i==null)return!0;if(Mb(i)&&(hl(i)||typeof i=="string"||typeof i.splice=="function"||h3(i)||DM(i)||c3(i)))return!i.length;var e=Ed(i);if(e==CAt||e==xAt)return!i.size;if(IM(i))return!pV(i).length;for(var t in i)if(wAt.call(i,t))return!1;return!0}function AAt(i,e){return zM(i,e)}var TAt="[object Number]";function RAt(i){return typeof i=="number"||Pf(i)&&P1(i)==TAt}function E3e(i){return RAt(i)&&i!=+i}var MAt=Q4t(function(i,e,t){return i+(t?"-":"")+e.toLowerCase()});function kAt(i,e){for(var t,n=-1,r=i.length;++n<r;){var o=e(i[n]);o!==void 0&&(t=t===void 0?o:t+o)}return t}var OAt=pCe(function(i,e,t){MV(i,e,t)});function IAt(i,e,t,n){if(!Wh(i))return i;e=BM(e,i);for(var r=-1,o=e.length,a=o-1,s=i;s!=null&&++r<o;){var l=e6(e[r]),u=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return i;if(r!=a){var c=s[l];u=void 0,u===void 0&&(u=Wh(c)?c:OM(e[r+1])?[]:{})}hV(s,l,u),s=s[l]}return i}function DAt(i,e,t){for(var n=-1,r=e.length,o={};++n<r;){var a=e[n],s=yV(i,a);t(s,a)&&IAt(o,BM(a,i),s)}return o}var PAt=x3e("length"),A3e="\\ud800-\\udfff",LAt="\\u0300-\\u036f",BAt="\\ufe20-\\ufe2f",FAt="\\u20d0-\\u20ff",NAt=LAt+BAt+FAt,HAt="\\ufe0e\\ufe0f",$At="["+A3e+"]",kV="["+NAt+"]",OV="\\ud83c[\\udffb-\\udfff]",zAt="(?:"+kV+"|"+OV+")",T3e="[^"+A3e+"]",R3e="(?:\\ud83c[\\udde6-\\uddff]){2}",M3e="[\\ud800-\\udbff][\\udc00-\\udfff]",WAt="\\u200d",k3e=zAt+"?",O3e="["+HAt+"]?",VAt="(?:"+WAt+"(?:"+[T3e,R3e,M3e].join("|")+")"+O3e+k3e+")*",jAt=O3e+k3e+VAt,UAt="(?:"+[T3e+kV+"?",kV,R3e,M3e,$At].join("|")+")",I3e=RegExp(OV+"(?="+OV+")|"+UAt+jAt,"g");function GAt(i){for(var e=I3e.lastIndex=0;I3e.test(i);)++e;return e}function qAt(i){return u4t(i)?GAt(i):PAt(i)}function YAt(i,e){return DAt(i,e,function(t,n){return C3e(i,n)})}var XAt=Ywt(function(i,e){return i==null?{}:YAt(i,e)}),KAt="[object Map]",ZAt="[object Set]";function QAt(i){if(i==null)return 0;if(Mb(i))return WM(i)?qAt(i):i.length;var e=Ed(i);return e==KAt||e==ZAt?i.size:pV(i).length}function JAt(i,e){var t;return fAt(i,function(n,r,o){return t=e(n,r,o),!t}),!!t}function eTt(i,e,t){var n=hl(i)?f3e:JAt;return n(i,AV(e))}function tTt(i,e){return i&&i.length?kAt(i,AV(e)):0}function iTt(i){return JE(i).toLowerCase()}const nTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M14.1106 12.0679C14.1474 12.2055 14.1673 12.3501 14.1673 12.4994C14.1673 13.42 13.421 14.1661 12.5007 14.1661C11.5801 14.1661 10.834 13.42 10.834 12.4994C10.834 12.3501 10.8537 12.2053 10.8906 12.0676L7.93249 9.10938C7.79474 9.14625 7.64999 9.16613 7.50062 9.16613C7.35137 9.16613 7.20674 9.14625 7.06887 9.10938L3.33398 12.8443V16.6661H16.6668V9.51163L14.1106 12.0679Z",fill:"currentColor"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 1.66602V18.3328H1.66699V1.66602H18.3333ZM12.5005 10.8328C12.6498 10.8328 12.7944 10.8527 12.932 10.8894L16.6665 7.15502V3.33277H3.33375V10.4877L5.89037 7.93103C5.8535 7.79303 5.83362 7.64853 5.83362 7.49928C5.83362 6.5789 6.57988 5.83265 7.50038 5.83265C8.42075 5.83265 9.16688 6.5789 9.16688 7.49928C9.16688 7.64853 9.14713 7.79303 9.11025 7.93078L12.0689 10.8894C12.2066 10.8527 12.3511 10.8328 12.5005 10.8328ZM14.167 12.4993C14.167 12.35 14.1471 12.2054 14.1104 12.0678L16.6665 9.51153V16.666H3.33375V12.8442L7.06863 9.10928C7.2065 9.14615 7.35113 9.16603 7.50038 9.16603C7.64975 9.16603 7.7945 9.14615 7.93225 9.10928L10.8904 12.0675C10.8535 12.2052 10.8338 12.35 10.8338 12.4993C10.8338 13.4199 11.5799 14.166 12.5005 14.166C13.4208 14.166 14.167 13.4199 14.167 12.4993ZM7.50038 7.08252C7.7305 7.08252 7.91713 7.26915 7.91713 7.49927C7.91713 7.72928 7.7305 7.9159 7.50038 7.9159C7.27038 7.9159 7.08375 7.72928 7.08375 7.49927C7.08375 7.26915 7.27038 7.08252 7.50038 7.08252ZM12.9171 12.4993C12.9171 12.2693 12.7305 12.0827 12.5005 12.0827C12.2704 12.0827 12.0838 12.2693 12.0838 12.4993C12.0838 12.7294 12.2704 12.916 12.5005 12.916C12.7305 12.916 12.9171 12.7294 12.9171 12.4993Z",fill:"currentColor"})),rTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.333 18.333H1.66699V1.66602H18.333V18.333ZM3.33398 16.666H16.667V3.33301H3.33398V16.666ZM5.83398 15.832H4.16699V8.33203H5.83398V15.832ZM8.33496 15.832H6.66895V6.66602H8.33496V15.832ZM10.8369 15.832H9.16992V9.99902H10.8369V15.832ZM13.334 15.832H11.668V11.665H13.334V15.832ZM15.833 15.832H14.167V9.99902H15.833V15.832Z",fill:"currentColor"})),oTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M10.0002 16.6658C6.64934 16.6658 3.80338 14.1511 3.38574 10.8333H5.91756C6.31249 12.764 8.02302 14.1659 10.0002 14.1659C12.2957 14.1659 14.1668 12.2948 14.1668 9.99918C14.1668 8.02156 12.7647 6.31113 10.8335 5.91639V3.38477C14.1517 3.80241 16.6668 6.64799 16.6668 9.99918C16.6668 13.6701 13.6711 16.6658 10.0002 16.6658Z",fill:"currentColor"}),M.createElement("path",{opacity:.1,d:"M3.38574 9.16658C3.76371 6.15828 6.15868 3.7635 9.16679 3.38477V5.91639C7.53734 6.2497 6.24991 7.53684 5.91727 9.16658H3.38574Z",fill:"currentColor"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3337 9.99939C18.3337 14.5899 14.5908 18.3328 10.0004 18.3328C5.40986 18.3328 1.66699 14.5899 1.66699 9.99939C1.66699 5.40898 5.40986 1.66602 10.0004 1.66602C14.5908 1.66602 18.3337 5.40898 18.3337 9.99939ZM3.38595 10.8335C3.8036 14.1513 6.64956 16.666 10.0004 16.666C13.6713 16.666 16.667 13.6703 16.667 9.99939C16.667 6.6482 14.152 3.80262 10.8337 3.38498V5.9166C12.7649 6.31134 14.167 8.02177 14.167 9.99939C14.167 12.295 12.296 14.1661 10.0004 14.1661C8.02323 14.1661 6.3127 12.7642 5.91777 10.8335H3.38595ZM7.50046 9.99939C7.50046 11.3754 8.62439 12.4994 10.0004 12.4994C11.3763 12.4994 12.5003 11.3754 12.5003 9.99939C12.5003 8.62342 11.3763 7.49948 10.0004 7.49948C8.62439 7.49948 7.50046 8.62342 7.50046 9.99939ZM3.38595 9.16679C3.76392 6.15849 6.15889 3.76371 9.167 3.38498V5.9166C7.53755 6.24991 6.25012 7.53705 5.91749 9.16679H3.38595Z",fill:"currentColor"})),aTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M10.8333 13.3333H9.16667L8.33333 12.5H11.6667L10.8333 13.3333ZM11.6667 10.8333H8.33333L6.66667 10H13.3333L11.6667 10.8333ZM13.3333 8.33333H6.66667L5 7.5H15L13.3333 8.33333Z",fill:"currentColor"}),M.createElement("path",{d:"M18.3337 18.3327H1.66699V1.66602H18.3337V18.3327ZM3.33366 16.666H16.667V3.33268H3.33366V16.666ZM10.8337 14.9993H9.16699V13.3327H10.8337V14.9993ZM11.667 12.4993H8.33366V10.8327H11.667V12.4993ZM13.3337 9.99935H6.66699V8.33268H13.3337V9.99935ZM15.0003 7.49935H5.00033V5.83268H15.0003V7.49935Z",fill:"currentColor"})),sTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M14.7169 14.7167L12.9502 12.95C13.7002 12.2 14.1669 11.1583 14.1669 10H16.6669C16.6669 11.7833 15.9752 13.4583 14.7169 14.7167Z",fill:"currentColor"}),M.createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.7163 5.28398L12.9497 7.05065C12.1997 6.30065 11.158 5.83398 9.99967 5.83398C7.69967 5.83398 5.83301 7.70065 5.83301 10.0007C5.83301 11.1507 6.29967 12.1923 7.04967 12.9507L5.28301 14.7173C4.02467 13.459 3.33301 11.784 3.33301 10.0007C3.33301 6.31732 6.31634 3.33398 9.99967 3.33398C11.8413 3.33398 13.508 4.08398 14.7163 5.28398Z",fill:"currentColor"}),M.createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.6669 9.99987H14.1669C14.1669 8.84987 13.7002 7.8082 12.9502 7.04987L14.7169 5.2832C15.9252 6.49154 16.6669 8.1582 16.6669 9.99987Z",fill:"currentColor"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66699 15.8327H13.3337V17.4993H6.66699V15.8327ZM14.717 14.716L15.892 15.891C17.4503 14.3243 18.3337 12.216 18.3337 9.99935C18.3337 5.39935 14.6003 1.66602 10.0003 1.66602C5.40033 1.66602 1.66699 5.39935 1.66699 9.99935C1.66699 12.2077 2.54199 14.3243 4.10866 15.891L5.28366 14.716C4.02533 13.4577 3.33366 11.7827 3.33366 9.99935C3.33366 6.31602 6.31699 3.33268 10.0003 3.33268C13.6837 3.33268 16.667 6.31602 16.667 9.99935C16.667 11.7827 15.9753 13.4577 14.717 14.716ZM10.0003 8.33268C10.1503 8.33268 10.292 8.34935 10.4337 8.39102L12.9503 5.87435L14.1253 7.04935L11.6087 9.56602C11.642 9.70768 11.667 9.84935 11.667 9.99935C11.667 10.916 10.917 11.666 10.0003 11.666C9.08366 11.666 8.33366 10.916 8.33366 9.99935C8.33366 9.08268 9.08366 8.33268 10.0003 8.33268Z",fill:"currentColor"})),lTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.3337 18.3327H1.66699V1.66602H18.3337V18.3327ZM3.33366 16.666H16.667V3.33268H3.33366V16.666ZM10.8337 7.49935H12.5003V9.16602H10.8337V12.4993H12.5003V14.166H10.8337V15.8327H9.16699V12.4993H7.50033V10.8327H9.16699V7.49935H7.50033V5.83268H9.16699V4.16602H10.8337V7.49935ZM7.50033 10.8327H5.83366V9.16602H7.50033V10.8327ZM14.167 10.8327H12.5003V9.16602H14.167V10.8327Z",fill:"currentColor"}),M.createElement("path",{opacity:.5,d:"M9.16699 15.8327H7.50033V12.4993H9.16699V15.8327ZM12.5003 15.8327H10.8337V14.166H12.5003V15.8327ZM12.5003 10.8327H14.167V14.166H12.5003V12.4993H10.8337V9.16602H12.5003V10.8327ZM7.50033 12.4993H5.83366V10.8327H7.50033V12.4993ZM5.83366 10.8327H4.16699V9.16602H5.83366V10.8327ZM7.50033 7.49935H9.16699V10.8327H7.50033V9.16602H5.83366V5.83268H7.50033V7.49935ZM15.8337 10.8327H14.167V9.16602H15.8337V10.8327ZM14.167 9.16602H12.5003V7.49935H14.167V9.16602ZM12.5003 7.49935H10.8337V4.16602H12.5003V7.49935ZM9.16699 5.83268H7.50033V4.16602H9.16699V5.83268Z",fill:"currentColor"}),M.createElement("path",{opacity:.3,d:"M5.83366 12.4993H7.50033V15.8327H4.16699V10.8327H5.83366V12.4993ZM15.8337 15.8327H12.5003V14.166H14.167V10.8327H15.8337V15.8327ZM5.83366 9.16602H4.16699V4.16602H7.50033V5.83268H5.83366V9.16602ZM15.8337 9.16602H14.167V7.49935H12.5003V4.16602H15.8337V9.16602Z",fill:"currentColor"})),uTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.333 1.66602V18.333H1.66699V1.66602H18.333ZM3.33398 3.33301V16.666H16.667V3.33301H3.33398ZM11.2168 14.166H9.57031V7.82031L7.60449 8.42969V7.09082L11.04 5.86035H11.2168V14.166Z",fill:"currentColor"})),cTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 1.66602V18.3328H1.66699V1.66602H18.3333ZM12.5005 10.8328C12.6498 10.8328 12.7944 10.8527 12.932 10.8894L16.6665 7.15502V3.33277H3.33375V10.4877L5.89037 7.93103C5.8535 7.79303 5.83362 7.64853 5.83362 7.49928C5.83362 6.5789 6.57988 5.83265 7.50038 5.83265C8.42075 5.83265 9.16688 6.5789 9.16688 7.49928C9.16688 7.64853 9.14713 7.79303 9.11025 7.93078L12.0689 10.8894C12.2066 10.8527 12.3511 10.8328 12.5005 10.8328ZM14.167 12.4993C14.167 12.35 14.1471 12.2054 14.1104 12.0678L16.6665 9.51153V16.666H3.33375V12.8442L7.06863 9.10928C7.2065 9.14615 7.35113 9.16603 7.50038 9.16603C7.64975 9.16603 7.7945 9.14615 7.93225 9.10928L10.8904 12.0675C10.8535 12.2052 10.8338 12.35 10.8338 12.4993C10.8338 13.4199 11.5799 14.166 12.5005 14.166C13.4208 14.166 14.167 13.4199 14.167 12.4993ZM7.50038 7.08252C7.7305 7.08252 7.91713 7.26915 7.91713 7.49927C7.91713 7.72928 7.7305 7.9159 7.50038 7.9159C7.27038 7.9159 7.08375 7.72928 7.08375 7.49927C7.08375 7.26915 7.27038 7.08252 7.50038 7.08252ZM12.9171 12.4993C12.9171 12.2693 12.7305 12.0827 12.5005 12.0827C12.2704 12.0827 12.0838 12.2693 12.0838 12.4993C12.0838 12.7294 12.2704 12.916 12.5005 12.916C12.7305 12.916 12.9171 12.7294 12.9171 12.4993Z",fill:"currentColor"})),hTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M10.8301 1.70898L10.8303 9.16808H18.2916C17.8984 5.23952 14.7586 2.10121 10.8301 1.70898Z",fill:"currentColor"}),M.createElement("path",{opacity:.1,d:"M18.2917 10.834H12.0127L16.4473 15.2693C17.4589 14.0344 18.1242 12.5056 18.2917 10.834Z",fill:"currentColor"}),M.createElement("path",{d:"M10 1.66602C14.5903 1.66602 18.3338 5.40872 18.334 9.99902C18.334 14.5895 14.5905 18.333 10 18.333C5.4097 18.3328 1.66699 14.5894 1.66699 9.99902C1.6672 5.40885 5.40982 1.66622 10 1.66602ZM9.16699 3.38477C5.84893 3.80239 3.33417 6.64793 3.33398 9.99902C3.33398 13.6698 6.32931 16.6658 10 16.666C11.5359 16.666 12.9544 16.1407 14.084 15.2617L9.16699 10.3447V3.38477ZM12.0117 10.833L15.2627 14.084C15.9803 13.162 16.4624 12.0469 16.6152 10.833H12.0117ZM10.834 9.16699H16.6152C16.2373 6.15878 13.8419 3.76351 10.834 3.38477V9.16699Z",fill:"currentColor"})),dTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M10.0003 18.3327C8.84755 18.3327 7.76421 18.1139 6.75033 17.6764C5.73644 17.2389 4.85449 16.6452 4.10449 15.8952C3.35449 15.1452 2.76074 14.2632 2.32324 13.2493C1.88574 12.2355 1.66699 11.1521 1.66699 9.99935C1.66699 8.84657 1.88574 7.76324 2.32324 6.74935C2.76074 5.73546 3.35449 4.85352 4.10449 4.10352C4.85449 3.35352 5.73644 2.75977 6.75033 2.32227C7.76421 1.88477 8.84755 1.66602 10.0003 1.66602C11.1531 1.66602 12.2364 1.88477 13.2503 2.32227C14.2642 2.75977 15.1462 3.35352 15.8962 4.10352C16.6462 4.85352 17.2399 5.73546 17.6774 6.74935C18.1149 7.76324 18.3337 8.84657 18.3337 9.99935C18.3337 11.1521 18.1149 12.2355 17.6774 13.2493C17.2399 14.2632 16.6462 15.1452 15.8962 15.8952C15.1462 16.6452 14.2642 17.2389 13.2503 17.6764C12.2364 18.1139 11.1531 18.3327 10.0003 18.3327ZM10.0003 16.666C10.7781 16.666 11.5107 16.5445 12.1982 16.3014C12.8857 16.0584 13.5142 15.7146 14.0837 15.2702L12.8962 14.0827C12.4934 14.3743 12.0455 14.6 11.5524 14.7598C11.0594 14.9195 10.542 14.9993 10.0003 14.9993C8.61144 14.9993 7.43088 14.5132 6.45866 13.541C5.48644 12.5688 5.00033 11.3882 5.00033 9.99935C5.00033 8.61046 5.48644 7.4299 6.45866 6.45768C7.43088 5.48546 8.61144 4.99935 10.0003 4.99935C11.3892 4.99935 12.5698 5.48546 13.542 6.45768C14.5142 7.4299 15.0003 8.61046 15.0003 9.99935C15.0003 10.541 14.917 11.0618 14.7503 11.5618C14.5837 12.0618 14.3545 12.5132 14.0628 12.916L15.2503 14.1035C15.6948 13.5341 16.042 12.9021 16.292 12.2077C16.542 11.5132 16.667 10.7771 16.667 9.99935C16.667 8.13824 16.0212 6.56185 14.7295 5.27018C13.4378 3.97852 11.8614 3.33268 10.0003 3.33268C8.13921 3.33268 6.56283 3.97852 5.27116 5.27018C3.97949 6.56185 3.33366 8.13824 3.33366 9.99935C3.33366 11.8605 3.97949 13.4368 5.27116 14.7285C6.56283 16.0202 8.13921 16.666 10.0003 16.666ZM10.0003 13.3327C10.3059 13.3327 10.601 13.2945 10.8857 13.2181C11.1705 13.1417 11.4378 13.0271 11.6878 12.8743L10.417 11.6035C10.3475 11.6313 10.2781 11.6487 10.2087 11.6556C10.1392 11.6625 10.0698 11.666 10.0003 11.666C9.54199 11.666 9.14963 11.5028 8.82324 11.1764C8.49685 10.85 8.33366 10.4577 8.33366 9.99935C8.33366 9.54102 8.49685 9.14866 8.82324 8.82227C9.14963 8.49588 9.54199 8.33268 10.0003 8.33268C10.4587 8.33268 10.851 8.49588 11.1774 8.82227C11.5038 9.14866 11.667 9.54102 11.667 9.99935C11.667 10.0827 11.6635 10.1625 11.6566 10.2389C11.6496 10.3153 11.6323 10.3882 11.6045 10.4577L12.8545 11.7077C13.0073 11.4577 13.1253 11.1903 13.2087 10.9056C13.292 10.6209 13.3337 10.3188 13.3337 9.99935C13.3337 9.08268 13.0073 8.29796 12.3545 7.64518C11.7017 6.9924 10.917 6.66602 10.0003 6.66602C9.08366 6.66602 8.29894 6.9924 7.64616 7.64518C6.99338 8.29796 6.66699 9.08268 6.66699 9.99935C6.66699 10.916 6.99338 11.7007 7.64616 12.3535C8.29894 13.0063 9.08366 13.3327 10.0003 13.3327Z",fill:"currentColor"})),fTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.333 18.333H1.66699V1.66602H18.333V18.333ZM3.33398 16.666H16.667V3.33301H3.33398V16.666ZM6.66699 15.832H4.16699V14.166H6.66699V15.832ZM8.33398 13.333H4.16699V11.667H8.33398V13.333ZM10.834 10.8359H4.16699V9.16895H10.834V10.8359ZM13.334 8.33398H4.16699V6.66797H13.334V8.33398ZM15.834 5.83301H4.16699V4.16602H15.834V5.83301Z",fill:"currentColor"})),gTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3342 18.3347V1.66797H1.66797V18.3347H18.3342ZM3.3347 3.3347H16.6675V16.668H3.3347V3.3347Z",fill:"currentColor"}),M.createElement("path",{d:"M12.5005 5.0013H15.0005V7.5013H12.5005V5.0013Z",fill:"currentColor"}),M.createElement("path",{d:"M5.00049 12.5013H7.50049V15.0013H5.00049V12.5013Z",fill:"currentColor"}),M.createElement("path",{d:"M10.8338 10.0013H13.3338V12.5013H10.8338V10.0013Z",fill:"currentColor"}),M.createElement("path",{d:"M6.66716 7.5013H9.16716V10.0013H6.66716V7.5013Z",fill:"currentColor"})),pTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.334 18.333H1.66699V1.66602H18.334V18.333ZM8.33398 16.666H11.667V14.166H8.33398V16.666ZM13.334 16.666H16.667V14.166H13.334V16.666ZM3.33398 16.666H6.66699V14.166H3.33398V16.666ZM8.33398 12.499H11.667V9.99902H8.33398V12.499ZM13.334 12.499H16.667V9.99902H13.334V12.499ZM3.33398 12.499H6.66699V9.99902H3.33398V12.499ZM8.33398 8.33301H11.667V5.83301H8.33398V8.33301ZM13.334 8.33301H16.667V5.83301H13.334V8.33301ZM3.33398 8.33301H6.66699V5.83301H3.33398V8.33301Z",fill:"currentColor"}));var Pa=(i=>(i.Area="area",i.Bar="bar",i.Donut="donut",i.Funnel="funnel",i.Gauge="gauge",i.Heatmap="heatmap",i.Line="line",i.Pie="pie",i.Radar="radar",i.Rank="rank",i.Scatter="scatter",i.VisText="vis-text",i.Table="table",i.Indicator="indicator",i))(Pa||{});const D3e=[{key:"bar",label:"Bar chart",icon:rTt},{key:"donut",label:"Donut chart",icon:oTt},{key:"line",label:"Line chart",icon:cTt},{key:"table",label:"Table",icon:pTt},{key:"area",label:"Area chart",icon:nTt},{key:"funnel",label:"Funnel",icon:aTt},{key:"gauge",label:"Gauge",icon:sTt},{key:"heatmap",label:"Heatmap",icon:lTt},{key:"indicator",label:"Indicator",icon:uTt},{key:"pie",label:"Pie chart",icon:hTt},{key:"radar",label:"Radar chart",icon:dTt},{key:"rank",label:"Rank",icon:fTt},{key:"scatter",label:"Scatter chart",icon:gTt}],mTt={cartesian:["area","bar","heatmap","line","scatter","rank"],polar:["donut","funnel","gauge","pie","radar","indicator"],table:["table"]};function Lf(i){for(const[e,t]of Object.entries(mTt))if(t.includes(i))return e;return"unknown"}function vTt(i,e){const t=i==null?void 0:i[0],n=t?Object.keys(t):[];return e==="cartesian"?{xField:n==null?void 0:n[0],yField:n==null?void 0:n[1]}:e==="polar"?{nameField:n==null?void 0:n[0],valField:n==null?void 0:n[1]}:{}}const P3e=(i,e)=>{const t=Lf(e.type),n=Lf(i);let r=ke({},e);(e==null?void 0:e.type)==="rank"&&(r.xField=e.yField,r.yField=e.xField);let o=ke({},r);if(o.type=i,t==="cartesian"&&n==="polar"&&(o.nameField=(e==null?void 0:e.nameField)||e.xField,o.valField=(e==null?void 0:e.valField)||e.yField),t==="polar"&&n==="cartesian"&&(o.xField=(e==null?void 0:e.xField)||e.nameField,o.yField=e.yField||e.valField),t==="table"){const a=vTt(e.data,n);o=ke(ke({},a),o)}return i==="rank"&&(o.xField=r.yField,o.yField=r.xField),o},bTt=({metrics:i,dimensions:e,timeGrain:t,chartJson:n,data:r,isInit:o=!1})=>{const a=Lf(n.type),s=(l,u)=>l&&u.includes(l);if(a==="cartesian"){let l,u,c;return n.type==="heatmap"?(l=o&&s(n==null?void 0:n.xField,e)?n.xField:e[0],u=o&&s(n==null?void 0:n.yField,e)?n.yField:e[1],c=o&&s(n==null?void 0:n.valField,i)?n.valField:i[0]):n.type==="rank"?(l=o&&s(n==null?void 0:n.xField,i)?n.xField:i[0],u=o&&s(n==null?void 0:n.yField,e)?n.yField:e[0]):(l=o&&s(n==null?void 0:n.xField,e)?n.xField:e[0],u=o&&s(n==null?void 0:n.yField,i)?n.yField:i[0]),Pi(ke({},n),{metrics:i,dimensions:e,timeGrain:t,data:r,xField:l,yField:u,valField:c})}else if(a==="polar"){const l=o&&s(n==null?void 0:n.nameField,e)?n.nameField:e[0],u=o&&s(n==null?void 0:n.valField,i)?n.valField:i[0];return Pi(ke({},n),{metrics:i,dimensions:e,data:r,nameField:l,valField:u})}return Pi(ke({},n),{metrics:i,dimensions:e,data:r})},IV=({metrics:i,dimensions:e,chartJson:t,isInit:n=!1})=>{const r=Lf(t.type),o=(i==null?void 0:i.map(l=>l.label))||[],a=(e==null?void 0:e.map(l=>l.label))||[],s=(l,u)=>l&&u.includes(l);if(r==="cartesian"){let l,u,c;return t.type==="heatmap"?(l=n&&s(t==null?void 0:t.xField,a)?t.xField:a[0],u=n&&s(t==null?void 0:t.yField,a)?t.yField:a[1],c=n&&s(t==null?void 0:t.valField,o)?t.valField:o[0]):t.type==="rank"?(l=n&&s(t==null?void 0:t.xField,o)?t.xField:o[0],u=n&&s(t==null?void 0:t.yField,a)?t.yField:a[0]):(l=n&&s(t==null?void 0:t.xField,a)?t.xField:a[0],u=n&&s(t==null?void 0:t.yField,o)?t.yField:o[0]),Pi(ke({},t),{metrics:o,dimensions:a,xField:l,yField:u,valField:c})}else if(r==="polar"){const l=n&&s(t==null?void 0:t.nameField,a)?t.nameField:a[0],u=n&&s(t==null?void 0:t.valField,o)?t.valField:o[0];return Pi(ke({},t),{metrics:o,dimensions:a,nameField:l,valField:u})}return Pi(ke({},t),{metrics:o,dimensions:a})},yTt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let DV=(i=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(i|=0));for(;i--;)e+=yTt[t[i]&63];return e};const _Tt={},L3e=i=>{let e;const t=new Set,n=(c,h)=>{const d=typeof c=="function"?c(e):c;if(!Object.is(d,e)){const f=e;e=(h!=null?h:typeof d!="object"||d===null)?d:Object.assign({},e,d),t.forEach(g=>g(e,f))}},r=()=>e,l={setState:n,getState:r,getInitialState:()=>u,subscribe:c=>(t.add(c),()=>t.delete(c)),destroy:()=>{(_Tt?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},u=e=i(n,r,l);return l},CTt=i=>i?L3e(i):L3e;var VM={exports:{}},PV={},jM={exports:{}},LV={};/**
|
|
508
|
+
*/return i.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),p=!1,m=!1,v=!1,b=!1,y=!1,_;_=Symbol.for("react.module.reference");function S(Ee){return!!(typeof Ee=="string"||typeof Ee=="function"||Ee===n||Ee===o||y||Ee===r||Ee===c||Ee===h||b||Ee===g||p||m||v||typeof Ee=="object"&&Ee!==null&&(Ee.$$typeof===f||Ee.$$typeof===d||Ee.$$typeof===a||Ee.$$typeof===s||Ee.$$typeof===u||Ee.$$typeof===_||Ee.getModuleId!==void 0))}function x(Ee){if(typeof Ee=="object"&&Ee!==null){var Ae=Ee.$$typeof;switch(Ae){case e:var Te=Ee.type;switch(Te){case n:case o:case r:case c:case h:return Te;default:var Oe=Te&&Te.$$typeof;switch(Oe){case l:case s:case u:case f:case d:case a:return Oe;default:return Ae}}case t:return Ae}}}var w=s,E=a,A=e,T=u,R=n,k=f,O=d,P=t,L=o,F=r,W=c,V=h,G=!1,z=!1;function X(Ee){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(Ee){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(Ee){return x(Ee)===s}function J(Ee){return x(Ee)===a}function re(Ee){return typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===e}function se(Ee){return x(Ee)===u}function ie(Ee){return x(Ee)===n}function ue(Ee){return x(Ee)===f}function he(Ee){return x(Ee)===d}function ge(Ee){return x(Ee)===t}function pe(Ee){return x(Ee)===o}function me(Ee){return x(Ee)===r}function fe(Ee){return x(Ee)===c}function Se(Ee){return x(Ee)===h}aa.ContextConsumer=w,aa.ContextProvider=E,aa.Element=A,aa.ForwardRef=T,aa.Fragment=R,aa.Lazy=k,aa.Memo=O,aa.Portal=P,aa.Profiler=L,aa.StrictMode=F,aa.Suspense=W,aa.SuspenseList=V,aa.isAsyncMode=X,aa.isConcurrentMode=j,aa.isContextConsumer=H,aa.isContextProvider=J,aa.isElement=re,aa.isForwardRef=se,aa.isFragment=ie,aa.isLazy=ue,aa.isMemo=he,aa.isPortal=ge,aa.isProfiler=pe,aa.isStrictMode=me,aa.isSuspense=fe,aa.isSuspenseList=Se,aa.isValidElementType=S,aa.typeOf=x})(),aa}var q_e;function nxt(){if(q_e)return TM.exports;q_e=1;var i={};return i.NODE_ENV==="production"?TM.exports=txt():TM.exports=ixt(),TM.exports}var RM=nxt();const nV=i=>{let e=[];return ce.Children.forEach(i,(t=>{Me(t)||(RM.isFragment(t)?e=e.concat(nV(t.props.children)):e.push(t))})),e},rxt=["children","hooks","ref"],u3={onPointerDown:"pointerdown",onPointerUp:"pointerup",onPointerUpOutside:"pointerupoutside",onPointerTap:"pointertap",onPointerOver:"pointerover",onPointerMove:"pointermove",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerOut:"pointerout",onMouseDown:"mousedown",onMouseUp:"mouseup",onMouseUpOutside:"mouseupoutside",onMouseMove:"mousemove",onMouseOver:"mouseover",onMouseOut:"mouseout",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onPinch:"pinch",onPinchStart:"pinchstart",onPinchEnd:"pinchend",onPan:"pan",onPanStart:"panstart",onPanEnd:"panend",onDrag:"drag",onDragStart:"dragstart",onDragEnter:"dragenter",onDragLeave:"dragleave",onDragOver:"dragover",onDragEnd:"dragend",onRightDown:"rightdown",onRightUp:"rightup",onRightUpOutside:"rightupoutside",onTouchStart:"touchstart",onTouchEnd:"touchend",onTouchEndOutside:"touchendoutside",onTouchMove:"touchmove",onTouchCancel:"touchcancel",onPress:"press",onPressUp:"pressup",onPressEnd:"pressend",onSwipe:"swipe",onDrop:"drop",onWeel:"wheel",onClick:"click",onDblClick:"dblclick"},oxt={onLegendItemHover:"legendItemHover",onLegendItemUnHover:"legendItemUnHover",onLegendItemClick:"legendItemClick",onLegendFilter:"legendFilter",onLegendSelectedDataChange:"legendSelectedDataChange"},axt={onBrushStart:"brushStart",onBrushChange:"brushChange",onBrushEnd:"brushEnd",onBrushClear:"brushClear"},sxt={onDataZoomChange:"dataZoomChange"},lxt={onPlayerPlay:"playerPlay",onPlayerPause:"playerPause",onPlayerEnd:"playerEnd",onPlayerChange:"playerChange",onPlayerForward:"playerForward",onPlayerBackward:"playerBackward"},uxt={onScrollBarChange:"scrollBarChange"},cxt={onDimensionHover:"dimensionHover",onDimensionClick:"dimensionClick"},hxt={onDrill:"drill"},dxt={onInitialized:"initialized",onRendered:"rendered",onRenderFinished:"renderFinished",onAnimationFinished:"animationFinished",onLayoutStart:"layoutStart",onLayoutEnd:"layoutEnd"},rV=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oxt),axt),lxt),sxt),uxt),cxt),dxt),hxt),u3),fxt=Object.keys(rV).concat(Object.keys(u3).map((i=>`${i}Filter`)));Object.keys(u3).reduce(((i,e)=>(i[u3[e]]=e,i)),{});const Y_e=(i,e=u3)=>{const t={};return Object.keys(i).forEach((n=>{e[n]&&i[n]&&(t[n]=i[n])})),t},X_e=(i,e,t,n=u3)=>{if(!e&&!t||!i)return!1;const r=t?Y_e(t,n):null,o=e?Y_e(e,n):null;return r&&Object.keys(r).forEach((a=>{(!o||!o[a]||o[a]!==r[a])&&i.off(n[a],r[a])})),o&&Object.keys(o).forEach((a=>{if(!r||!r[a]||r[a]!==o[a]){const s=e[`${a}Filter`];s?i.on(n[a],s,o[a]):i.on(n[a],o[a])}})),!0},K_e=`${_r}_REACT_TOOLTIP`,gxt=(i,e,t)=>{let n;if(t!=null&&t.tooltipRender?(n=t.tooltipRender,delete t.tooltipRender):e.tooltipRender&&(n=e.tooltipRender),n){let r;return t!=null&&t.reserveDefaultTooltip?(r=t.reserveDefaultTooltip,delete t.reserveDefaultTooltip):r=e.reserveDefaultTooltip,Object.assign(Object.assign({},t),{updateElement:(o,a,s)=>{const{changePositionOnly:l}=s;if(!l){if(!r){o.style.width="auto",o.style.height="auto",o.style.minHeight="auto",o.style.padding="0px";for(let u=0;u<o.children.length;u++){const c=o.children[u];c.className!==K_e&&c.style.display!=="none"&&(c.style.display="none")}}i(Lr.createPortal(ce.createElement("div",{className:K_e},n(o,a,s)),o))}}})}return t},Z_e=[...rxt,...fxt,"vchartConstructor","vchartConstrouctor","useSyncRender","skipFunctionDiff","onError","onReady","spec","container","options","morphConfig"],Q_e={morph:!1,enableExitAnimation:!1},J_e=(i,e)=>`${i&&i.type&&(i.type.displayName||i.type.name)}-${e}`,pxt=i=>{const e={};return nV(i.children).map(((t,n)=>{const r=t&&t.type&&t.type.parseSpec;if(r&&t.props){const o=r(Me(t.props.componentId)?Object.assign(Object.assign({},t.props),{componentId:J_e(t,n)}):t.props);o.isSingle?e[o.specName]=o.spec:(e[o.specName]||(e[o.specName]=[]),e[o.specName].push(o.spec))}})),e},mxt=ce.forwardRef(((i,e)=>{const[t,n]=ce.useState(0),r=ce.useRef({});ce.useImperativeHandle(e,(()=>{var p;return(p=r.current)===null||p===void 0?void 0:p.chart}));const o=!!i.spec,a=ce.useRef(!1),s=ce.useRef(jm(i,Z_e)),l=ce.useRef(null),u=ce.useRef(null),c=!!i.skipFunctionDiff,[h,d]=ce.useState(null),f=p=>{let m;o&&p.spec?(m=p.spec,be(p.data)&&(m=Object.assign(Object.assign({},p.spec),{data:p.data}))):m=Object.assign(Object.assign({},s.current),l.current);const v=gxt(d,p,m.tooltip);return v&&(m.tooltip=v),m},g=p=>{if(!a.current){if(!r.current||!r.current.chart)return;p&&X_e(r.current.chart,i,u.current,rV),n(t+1),i.onReady&&i.onReady(r.current.chart,t===0)}};return ce.useEffect((()=>{var p,m,v;const b=o?null:pxt(i);if(!(!((p=r.current)===null||p===void 0)&&p.chart))return o||(l.current=b),(_=>{var S;const x=new((S=_.vchartConstructor)!==null&&S!==void 0?S:_.vchartConstrouctor)(f(_),Object.assign(Object.assign({},_.options),{onError:_.onError,autoFit:!0,dom:_.container}));r.current=Object.assign(Object.assign({},r.current),{chart:x}),a.current=!1})(i),r.current.chart&&(X_e(r.current.chart,i,u.current,rV),r.current.chart.renderSync({reuse:!1}),g()),void(u.current=i);if(o)return void(mo(u.current.spec,i.spec,{skipFunction:c})?u.current.data!==i.data&&(r.current.chart.updateFullDataSync(i.data),g(!0),u.current=i):(r.current.chart.updateSpecSync(f(i),void 0,(m=i.morphConfig)!==null&&m!==void 0?m:Q_e),g(!0),u.current=i));const y=jm(i,Z_e);mo(y,s.current,{skipFunction:c})&&mo(b,l.current,{skipFunction:c})||(s.current=y,l.current=b,r.current.chart.updateSpecSync(f(i),void 0,(v=i.morphConfig)!==null&&v!==void 0?v:Q_e),g(!0),u.current=i)}),[i]),ce.useEffect((()=>()=>{r&&r.current&&r.current.chart&&(r.current.chart.release(),r.current.chart=null),u.current=null,a.current=!0}),[]),ce.createElement(j_e.Provider,{value:r.current},nV(i.children).map(((p,m)=>{if(typeof p=="string")return null;const v=J_e(p,m);return ce.createElement(ce.Fragment,{key:v},ce.cloneElement(p,{updateId:t,componentId:v}))})),h)})),D1=(i,e,t)=>{t&&t.length&&e.vchartConstructor&&e.vchartConstructor.useRegisters(t);const n=ext(mxt,i,(r=>e?Object.assign(r,e):r));return n.displayName=i,n},qE=[nW,o$,zW,tV,HC,zC,Xbt,Kbt,r3t,B_e,$W,p_e,HW,QW,iV,N3t,L3t,W3t,m_e,KW],vxt=D1("AreaChart",{type:"area",vchartConstructor:Cs},[Fyt,xv,D_e,...qE]),eCe=D1("BarChart",{type:"bar",vchartConstructor:Cs},[Uyt,xv,D_e,...qE]),oV=[nW,o$,zW,tV,HW,$W,QW,iV,KW],bxt=[nW,o$,zW,tV,SE,dM,s3t,B_e,$W,p_e,HW,QW,iV,m_e,KW],yxt=D1("FunnelChart",{type:"funnel",vchartConstructor:Cs},[BCt,xv,...oV]),_xt=D1("GaugeChart",{type:"gauge",vchartConstructor:Cs},[LCt,...oV]),Cxt=D1("HeatmapChart",{type:"heatmap",vchartConstructor:Cs},[FCt,xv,...qE]),xxt=D1("LineChart",{type:"line",vchartConstructor:Cs},[kyt,xv,...qE]),tCe=D1("PieChart",{type:"pie",vchartConstructor:Cs},[OCt,xv,b3t,...oV]),Sxt=D1("RadarChart",{type:"radar",vchartConstructor:Cs},[PCt,xv,...bxt]),wxt=D1("ScatterChart",{type:"scatter",vchartConstructor:Cs},[t_t,xv,...qE]);var iCe=typeof global=="object"&&global&&global.Object===Object&&global,Ext=typeof self=="object"&&self&&self.Object===Object&&self,np=iCe||Ext||Function("return this")(),Df=np.Symbol,nCe=Object.prototype,Axt=nCe.hasOwnProperty,Txt=nCe.toString,YE=Df?Df.toStringTag:void 0;function Rxt(i){var e=Axt.call(i,YE),t=i[YE];try{i[YE]=void 0;var n=!0}catch(o){}var r=Txt.call(i);return n&&(e?i[YE]=t:delete i[YE]),r}var Mxt=Object.prototype,kxt=Mxt.toString;function Oxt(i){return kxt.call(i)}var Ixt="[object Null]",Dxt="[object Undefined]",rCe=Df?Df.toStringTag:void 0;function P1(i){return i==null?i===void 0?Dxt:Ixt:rCe&&rCe in Object(i)?Rxt(i):Oxt(i)}function Pf(i){return i!=null&&typeof i=="object"}var Pxt="[object Symbol]";function MM(i){return typeof i=="symbol"||Pf(i)&&P1(i)==Pxt}function Lxt(i,e){for(var t=-1,n=i==null?0:i.length,r=Array(n);++t<n;)r[t]=e(i[t],t,i);return r}var hl=Array.isArray,oCe=Df?Df.prototype:void 0,aCe=oCe?oCe.toString:void 0;function sCe(i){if(typeof i=="string")return i;if(hl(i))return Lxt(i,sCe)+"";if(MM(i))return aCe?aCe.call(i):"";var e=i+"";return e=="0"&&1/i==-1/0?"-0":e}var Bxt=/\s/;function Fxt(i){for(var e=i.length;e--&&Bxt.test(i.charAt(e)););return e}var Nxt=/^\s+/;function Hxt(i){return i&&i.slice(0,Fxt(i)+1).replace(Nxt,"")}function Wh(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}var lCe=NaN,$xt=/^[-+]0x[0-9a-f]+$/i,zxt=/^0b[01]+$/i,Wxt=/^0o[0-7]+$/i,Vxt=parseInt;function uCe(i){if(typeof i=="number")return i;if(MM(i))return lCe;if(Wh(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=Wh(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=Hxt(i);var t=zxt.test(i);return t||Wxt.test(i)?Vxt(i.slice(2),t?2:8):$xt.test(i)?lCe:+i}function aV(i){return i}var jxt="[object AsyncFunction]",Uxt="[object Function]",Gxt="[object GeneratorFunction]",qxt="[object Proxy]";function sV(i){if(!Wh(i))return!1;var e=P1(i);return e==Uxt||e==Gxt||e==jxt||e==qxt}var lV=np["__core-js_shared__"],cCe=(function(){var i=/[^.]+$/.exec(lV&&lV.keys&&lV.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function Yxt(i){return!!cCe&&cCe in i}var Xxt=Function.prototype,Kxt=Xxt.toString;function Tb(i){if(i!=null){try{return Kxt.call(i)}catch(e){}try{return i+""}catch(e){}}return""}var Zxt=/[\\^$.*+?()[\]{}|]/g,Qxt=/^\[object .+?Constructor\]$/,Jxt=Function.prototype,eSt=Object.prototype,tSt=Jxt.toString,iSt=eSt.hasOwnProperty,nSt=RegExp("^"+tSt.call(iSt).replace(Zxt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rSt(i){if(!Wh(i)||Yxt(i))return!1;var e=sV(i)?nSt:Qxt;return e.test(Tb(i))}function oSt(i,e){return i==null?void 0:i[e]}function Rb(i,e){var t=oSt(i,e);return rSt(t)?t:void 0}var uV=Rb(np,"WeakMap"),hCe=Object.create,aSt=(function(){function i(){}return function(e){if(!Wh(e))return{};if(hCe)return hCe(e);i.prototype=e;var t=new i;return i.prototype=void 0,t}})();function sSt(i,e,t){switch(t.length){case 0:return i.call(e);case 1:return i.call(e,t[0]);case 2:return i.call(e,t[0],t[1]);case 3:return i.call(e,t[0],t[1],t[2])}return i.apply(e,t)}function lSt(i,e){var t=-1,n=i.length;for(e||(e=Array(n));++t<n;)e[t]=i[t];return e}var uSt=800,cSt=16,hSt=Date.now;function dSt(i){var e=0,t=0;return function(){var n=hSt(),r=cSt-(n-t);if(t=n,r>0){if(++e>=uSt)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}function fSt(i){return function(){return i}}var kM=(function(){try{var i=Rb(Object,"defineProperty");return i({},"",{}),i}catch(e){}})(),gSt=kM?function(i,e){return kM(i,"toString",{configurable:!0,enumerable:!1,value:fSt(e),writable:!0})}:aV,dCe=dSt(gSt);function pSt(i,e){for(var t=-1,n=i==null?0:i.length;++t<n&&e(i[t],t,i)!==!1;);return i}var mSt=9007199254740991,vSt=/^(?:0|[1-9]\d*)$/;function OM(i,e){var t=typeof i;return e=e==null?mSt:e,!!e&&(t=="number"||t!="symbol"&&vSt.test(i))&&i>-1&&i%1==0&&i<e}function cV(i,e,t){e=="__proto__"&&kM?kM(i,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[e]=t}function XE(i,e){return i===e||i!==i&&e!==e}var bSt=Object.prototype,ySt=bSt.hasOwnProperty;function hV(i,e,t){var n=i[e];(!(ySt.call(i,e)&&XE(n,t))||t===void 0&&!(e in i))&&cV(i,e,t)}function _St(i,e,t,n){var r=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=void 0;l===void 0&&(l=i[s]),r?cV(t,s,l):hV(t,s,l)}return t}var fCe=Math.max;function gCe(i,e,t){return e=fCe(e===void 0?i.length-1:e,0),function(){for(var n=arguments,r=-1,o=fCe(n.length-e,0),a=Array(o);++r<o;)a[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=t(a),sSt(i,this,s)}}function CSt(i,e){return dCe(gCe(i,e,aV),i+"")}var xSt=9007199254740991;function dV(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=xSt}function Mb(i){return i!=null&&dV(i.length)&&!sV(i)}function SSt(i,e,t){if(!Wh(t))return!1;var n=typeof e;return(n=="number"?Mb(t)&&OM(e,t.length):n=="string"&&e in t)?XE(t[e],i):!1}function pCe(i){return CSt(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=i.length>3&&typeof o=="function"?(r--,o):void 0,a&&SSt(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var s=t[n];s&&i(e,s,n,o)}return e})}var wSt=Object.prototype;function IM(i){var e=i&&i.constructor,t=typeof e=="function"&&e.prototype||wSt;return i===t}function ESt(i,e){for(var t=-1,n=Array(i);++t<i;)n[t]=e(t);return n}var ASt="[object Arguments]";function mCe(i){return Pf(i)&&P1(i)==ASt}var vCe=Object.prototype,TSt=vCe.hasOwnProperty,RSt=vCe.propertyIsEnumerable,c3=mCe((function(){return arguments})())?mCe:function(i){return Pf(i)&&TSt.call(i,"callee")&&!RSt.call(i,"callee")};function MSt(){return!1}var bCe=typeof Ki=="object"&&Ki&&!Ki.nodeType&&Ki,yCe=bCe&&typeof module=="object"&&module&&!module.nodeType&&module,kSt=yCe&&yCe.exports===bCe,_Ce=kSt?np.Buffer:void 0,OSt=_Ce?_Ce.isBuffer:void 0,h3=OSt||MSt,ISt="[object Arguments]",DSt="[object Array]",PSt="[object Boolean]",LSt="[object Date]",BSt="[object Error]",FSt="[object Function]",NSt="[object Map]",HSt="[object Number]",$St="[object Object]",zSt="[object RegExp]",WSt="[object Set]",VSt="[object String]",jSt="[object WeakMap]",USt="[object ArrayBuffer]",GSt="[object DataView]",qSt="[object Float32Array]",YSt="[object Float64Array]",XSt="[object Int8Array]",KSt="[object Int16Array]",ZSt="[object Int32Array]",QSt="[object Uint8Array]",JSt="[object Uint8ClampedArray]",ewt="[object Uint16Array]",twt="[object Uint32Array]",is={};is[qSt]=is[YSt]=is[XSt]=is[KSt]=is[ZSt]=is[QSt]=is[JSt]=is[ewt]=is[twt]=!0,is[ISt]=is[DSt]=is[USt]=is[PSt]=is[GSt]=is[LSt]=is[BSt]=is[FSt]=is[NSt]=is[HSt]=is[$St]=is[zSt]=is[WSt]=is[VSt]=is[jSt]=!1;function iwt(i){return Pf(i)&&dV(i.length)&&!!is[P1(i)]}function fV(i){return function(e){return i(e)}}var CCe=typeof Ki=="object"&&Ki&&!Ki.nodeType&&Ki,KE=CCe&&typeof module=="object"&&module&&!module.nodeType&&module,nwt=KE&&KE.exports===CCe,gV=nwt&&iCe.process,d3=(function(){try{var i=KE&&KE.require&&KE.require("util").types;return i||gV&&gV.binding&&gV.binding("util")}catch(e){}})(),xCe=d3&&d3.isTypedArray,DM=xCe?fV(xCe):iwt,rwt=Object.prototype,owt=rwt.hasOwnProperty;function SCe(i,e){var t=hl(i),n=!t&&c3(i),r=!t&&!n&&h3(i),o=!t&&!n&&!r&&DM(i),a=t||n||r||o,s=a?ESt(i.length,String):[],l=s.length;for(var u in i)(e||owt.call(i,u))&&!(a&&(u=="length"||r&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||OM(u,l)))&&s.push(u);return s}function wCe(i,e){return function(t){return i(e(t))}}var awt=wCe(Object.keys,Object),swt=Object.prototype,lwt=swt.hasOwnProperty;function pV(i){if(!IM(i))return awt(i);var e=[];for(var t in Object(i))lwt.call(i,t)&&t!="constructor"&&e.push(t);return e}function mV(i){return Mb(i)?SCe(i):pV(i)}function uwt(i){var e=[];if(i!=null)for(var t in Object(i))e.push(t);return e}var cwt=Object.prototype,hwt=cwt.hasOwnProperty;function dwt(i){if(!Wh(i))return uwt(i);var e=IM(i),t=[];for(var n in i)n=="constructor"&&(e||!hwt.call(i,n))||t.push(n);return t}function ECe(i){return Mb(i)?SCe(i,!0):dwt(i)}var fwt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gwt=/^\w*$/;function vV(i,e){if(hl(i))return!1;var t=typeof i;return t=="number"||t=="symbol"||t=="boolean"||i==null||MM(i)?!0:gwt.test(i)||!fwt.test(i)||e!=null&&i in Object(e)}var ZE=Rb(Object,"create");function pwt(){this.__data__=ZE?ZE(null):{},this.size=0}function mwt(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e}var vwt="__lodash_hash_undefined__",bwt=Object.prototype,ywt=bwt.hasOwnProperty;function _wt(i){var e=this.__data__;if(ZE){var t=e[i];return t===vwt?void 0:t}return ywt.call(e,i)?e[i]:void 0}var Cwt=Object.prototype,xwt=Cwt.hasOwnProperty;function Swt(i){var e=this.__data__;return ZE?e[i]!==void 0:xwt.call(e,i)}var wwt="__lodash_hash_undefined__";function Ewt(i,e){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=ZE&&e===void 0?wwt:e,this}function kb(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}kb.prototype.clear=pwt,kb.prototype.delete=mwt,kb.prototype.get=_wt,kb.prototype.has=Swt,kb.prototype.set=Ewt;function Awt(){this.__data__=[],this.size=0}function PM(i,e){for(var t=i.length;t--;)if(XE(i[t][0],e))return t;return-1}var Twt=Array.prototype,Rwt=Twt.splice;function Mwt(i){var e=this.__data__,t=PM(e,i);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Rwt.call(e,t,1),--this.size,!0}function kwt(i){var e=this.__data__,t=PM(e,i);return t<0?void 0:e[t][1]}function Owt(i){return PM(this.__data__,i)>-1}function Iwt(i,e){var t=this.__data__,n=PM(t,i);return n<0?(++this.size,t.push([i,e])):t[n][1]=e,this}function L1(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}L1.prototype.clear=Awt,L1.prototype.delete=Mwt,L1.prototype.get=kwt,L1.prototype.has=Owt,L1.prototype.set=Iwt;var QE=Rb(np,"Map");function Dwt(){this.size=0,this.__data__={hash:new kb,map:new(QE||L1),string:new kb}}function Pwt(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null}function LM(i,e){var t=i.__data__;return Pwt(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Lwt(i){var e=LM(this,i).delete(i);return this.size-=e?1:0,e}function Bwt(i){return LM(this,i).get(i)}function Fwt(i){return LM(this,i).has(i)}function Nwt(i,e){var t=LM(this,i),n=t.size;return t.set(i,e),this.size+=t.size==n?0:1,this}function B1(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}B1.prototype.clear=Dwt,B1.prototype.delete=Lwt,B1.prototype.get=Bwt,B1.prototype.has=Fwt,B1.prototype.set=Nwt;var Hwt="Expected a function";function bV(i,e){if(typeof i!="function"||e!=null&&typeof e!="function")throw new TypeError(Hwt);var t=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=t.cache;if(o.has(r))return o.get(r);var a=i.apply(this,n);return t.cache=o.set(r,a)||o,a};return t.cache=new(bV.Cache||B1),t}bV.Cache=B1;var $wt=500;function zwt(i){var e=bV(i,function(n){return t.size===$wt&&t.clear(),n}),t=e.cache;return e}var Wwt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vwt=/\\(\\)?/g,jwt=zwt(function(i){var e=[];return i.charCodeAt(0)===46&&e.push(""),i.replace(Wwt,function(t,n,r,o){e.push(r?o.replace(Vwt,"$1"):n||t)}),e});function JE(i){return i==null?"":sCe(i)}function BM(i,e){return hl(i)?i:vV(i,e)?[i]:jwt(JE(i))}function e6(i){if(typeof i=="string"||MM(i))return i;var e=i+"";return e=="0"&&1/i==-1/0?"-0":e}function yV(i,e){e=BM(e,i);for(var t=0,n=e.length;i!=null&&t<n;)i=i[e6(e[t++])];return t&&t==n?i:void 0}function rp(i,e,t){var n=i==null?void 0:yV(i,e);return n===void 0?t:n}function ACe(i,e){for(var t=-1,n=e.length,r=i.length;++t<n;)i[r+t]=e[t];return i}var TCe=Df?Df.isConcatSpreadable:void 0;function Uwt(i){return hl(i)||c3(i)||!!(TCe&&i&&i[TCe])}function Gwt(i,e,t,n,r){var o=-1,a=i.length;for(t||(t=Uwt),r||(r=[]);++o<a;){var s=i[o];t(s)?ACe(r,s):r[r.length]=s}return r}function qwt(i){var e=i==null?0:i.length;return e?Gwt(i):[]}function Ywt(i){return dCe(gCe(i,void 0,qwt),i+"")}var RCe=wCe(Object.getPrototypeOf,Object),Xwt="[object Object]",Kwt=Function.prototype,Zwt=Object.prototype,MCe=Kwt.toString,Qwt=Zwt.hasOwnProperty,Jwt=MCe.call(Object);function e4t(i){if(!Pf(i)||P1(i)!=Xwt)return!1;var e=RCe(i);if(e===null)return!0;var t=Qwt.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&MCe.call(t)==Jwt}var t4t="\\ud800-\\udfff",i4t="\\u0300-\\u036f",n4t="\\ufe20-\\ufe2f",r4t="\\u20d0-\\u20ff",o4t=i4t+n4t+r4t,a4t="\\ufe0e\\ufe0f",s4t="\\u200d",l4t=RegExp("["+s4t+t4t+o4t+a4t+"]");function u4t(i){return l4t.test(i)}function c4t(i,e,t,n){for(var r=-1,o=i==null?0:i.length;++r<o;)t=e(t,i[r],r,i);return t}function h4t(i){return function(e){return i==null?void 0:i[e]}}var d4t={À:"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"},f4t=h4t(d4t),g4t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,p4t="\\u0300-\\u036f",m4t="\\ufe20-\\ufe2f",v4t="\\u20d0-\\u20ff",b4t=p4t+m4t+v4t,y4t="["+b4t+"]",_4t=RegExp(y4t,"g");function C4t(i){return i=JE(i),i&&i.replace(g4t,f4t).replace(_4t,"")}var x4t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function S4t(i){return i.match(x4t)||[]}var w4t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function E4t(i){return w4t.test(i)}var kCe="\\ud800-\\udfff",A4t="\\u0300-\\u036f",T4t="\\ufe20-\\ufe2f",R4t="\\u20d0-\\u20ff",M4t=A4t+T4t+R4t,OCe="\\u2700-\\u27bf",ICe="a-z\\xdf-\\xf6\\xf8-\\xff",k4t="\\xac\\xb1\\xd7\\xf7",O4t="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I4t="\\u2000-\\u206f",D4t=" \\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",DCe="A-Z\\xc0-\\xd6\\xd8-\\xde",P4t="\\ufe0e\\ufe0f",PCe=k4t+O4t+I4t+D4t,LCe="['’]",BCe="["+PCe+"]",L4t="["+M4t+"]",FCe="\\d+",B4t="["+OCe+"]",NCe="["+ICe+"]",HCe="[^"+kCe+PCe+FCe+OCe+ICe+DCe+"]",F4t="\\ud83c[\\udffb-\\udfff]",N4t="(?:"+L4t+"|"+F4t+")",H4t="[^"+kCe+"]",$Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",zCe="[\\ud800-\\udbff][\\udc00-\\udfff]",f3="["+DCe+"]",$4t="\\u200d",WCe="(?:"+NCe+"|"+HCe+")",z4t="(?:"+f3+"|"+HCe+")",VCe="(?:"+LCe+"(?:d|ll|m|re|s|t|ve))?",jCe="(?:"+LCe+"(?:D|LL|M|RE|S|T|VE))?",UCe=N4t+"?",GCe="["+P4t+"]?",W4t="(?:"+$4t+"(?:"+[H4t,$Ce,zCe].join("|")+")"+GCe+UCe+")*",V4t="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",j4t="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",U4t=GCe+UCe+W4t,G4t="(?:"+[B4t,$Ce,zCe].join("|")+")"+U4t,q4t=RegExp([f3+"?"+NCe+"+"+VCe+"(?="+[BCe,f3,"$"].join("|")+")",z4t+"+"+jCe+"(?="+[BCe,f3+WCe,"$"].join("|")+")",f3+"?"+WCe+"+"+VCe,f3+"+"+jCe,j4t,V4t,FCe,G4t].join("|"),"g");function Y4t(i){return i.match(q4t)||[]}function X4t(i,e,t){return i=JE(i),e=e,e===void 0?E4t(i)?Y4t(i):S4t(i):i.match(e)||[]}var K4t="['’]",Z4t=RegExp(K4t,"g");function Q4t(i){return function(e){return c4t(X4t(C4t(e).replace(Z4t,"")),i,"")}}function J4t(){this.__data__=new L1,this.size=0}function eEt(i){var e=this.__data__,t=e.delete(i);return this.size=e.size,t}function tEt(i){return this.__data__.get(i)}function iEt(i){return this.__data__.has(i)}var nEt=200;function rEt(i,e){var t=this.__data__;if(t instanceof L1){var n=t.__data__;if(!QE||n.length<nEt-1)return n.push([i,e]),this.size=++t.size,this;t=this.__data__=new B1(n)}return t.set(i,e),this.size=t.size,this}function V0(i){var e=this.__data__=new L1(i);this.size=e.size}V0.prototype.clear=J4t,V0.prototype.delete=eEt,V0.prototype.get=tEt,V0.prototype.has=iEt,V0.prototype.set=rEt;var qCe=typeof Ki=="object"&&Ki&&!Ki.nodeType&&Ki,YCe=qCe&&typeof module=="object"&&module&&!module.nodeType&&module,oEt=YCe&&YCe.exports===qCe,XCe=oEt?np.Buffer:void 0,KCe=XCe?XCe.allocUnsafe:void 0;function ZCe(i,e){if(e)return i.slice();var t=i.length,n=KCe?KCe(t):new i.constructor(t);return i.copy(n),n}function aEt(i,e){for(var t=-1,n=i==null?0:i.length,r=0,o=[];++t<n;){var a=i[t];e(a,t,i)&&(o[r++]=a)}return o}function sEt(){return[]}var lEt=Object.prototype,uEt=lEt.propertyIsEnumerable,QCe=Object.getOwnPropertySymbols,cEt=QCe?function(i){return i==null?[]:(i=Object(i),aEt(QCe(i),function(e){return uEt.call(i,e)}))}:sEt;function hEt(i,e,t){var n=e(i);return hl(i)?n:ACe(n,t(i))}function _V(i){return hEt(i,mV,cEt)}var CV=Rb(np,"DataView"),xV=Rb(np,"Promise"),SV=Rb(np,"Set"),JCe="[object Map]",dEt="[object Object]",e3e="[object Promise]",t3e="[object Set]",i3e="[object WeakMap]",n3e="[object DataView]",fEt=Tb(CV),gEt=Tb(QE),pEt=Tb(xV),mEt=Tb(SV),vEt=Tb(uV),Ed=P1;(CV&&Ed(new CV(new ArrayBuffer(1)))!=n3e||QE&&Ed(new QE)!=JCe||xV&&Ed(xV.resolve())!=e3e||SV&&Ed(new SV)!=t3e||uV&&Ed(new uV)!=i3e)&&(Ed=function(i){var e=P1(i),t=e==dEt?i.constructor:void 0,n=t?Tb(t):"";if(n)switch(n){case fEt:return n3e;case gEt:return JCe;case pEt:return e3e;case mEt:return t3e;case vEt:return i3e}return e});var bEt=Object.prototype,yEt=bEt.hasOwnProperty;function _Et(i){var e=i.length,t=new i.constructor(e);return e&&typeof i[0]=="string"&&yEt.call(i,"index")&&(t.index=i.index,t.input=i.input),t}var FM=np.Uint8Array;function wV(i){var e=new i.constructor(i.byteLength);return new FM(e).set(new FM(i)),e}function CEt(i,e){var t=wV(i.buffer);return new i.constructor(t,i.byteOffset,i.byteLength)}var xEt=/\w*$/;function SEt(i){var e=new i.constructor(i.source,xEt.exec(i));return e.lastIndex=i.lastIndex,e}var r3e=Df?Df.prototype:void 0,o3e=r3e?r3e.valueOf:void 0;function wEt(i){return o3e?Object(o3e.call(i)):{}}function a3e(i,e){var t=e?wV(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}var EEt="[object Boolean]",AEt="[object Date]",TEt="[object Map]",REt="[object Number]",MEt="[object RegExp]",kEt="[object Set]",OEt="[object String]",IEt="[object Symbol]",DEt="[object ArrayBuffer]",PEt="[object DataView]",LEt="[object Float32Array]",BEt="[object Float64Array]",FEt="[object Int8Array]",NEt="[object Int16Array]",HEt="[object Int32Array]",$Et="[object Uint8Array]",zEt="[object Uint8ClampedArray]",WEt="[object Uint16Array]",VEt="[object Uint32Array]";function jEt(i,e,t){var n=i.constructor;switch(e){case DEt:return wV(i);case EEt:case AEt:return new n(+i);case PEt:return CEt(i);case LEt:case BEt:case FEt:case NEt:case HEt:case $Et:case zEt:case WEt:case VEt:return a3e(i,t);case TEt:return new n;case REt:case OEt:return new n(i);case MEt:return SEt(i);case kEt:return new n;case IEt:return wEt(i)}}function s3e(i){return typeof i.constructor=="function"&&!IM(i)?aSt(RCe(i)):{}}var UEt="[object Map]";function GEt(i){return Pf(i)&&Ed(i)==UEt}var l3e=d3&&d3.isMap,qEt=l3e?fV(l3e):GEt,YEt="[object Set]";function XEt(i){return Pf(i)&&Ed(i)==YEt}var u3e=d3&&d3.isSet,KEt=u3e?fV(u3e):XEt,ZEt=1,c3e="[object Arguments]",QEt="[object Array]",JEt="[object Boolean]",e6t="[object Date]",t6t="[object Error]",h3e="[object Function]",i6t="[object GeneratorFunction]",n6t="[object Map]",r6t="[object Number]",d3e="[object Object]",o6t="[object RegExp]",a6t="[object Set]",s6t="[object String]",l6t="[object Symbol]",u6t="[object WeakMap]",c6t="[object ArrayBuffer]",h6t="[object DataView]",d6t="[object Float32Array]",f6t="[object Float64Array]",g6t="[object Int8Array]",p6t="[object Int16Array]",m6t="[object Int32Array]",v6t="[object Uint8Array]",b6t="[object Uint8ClampedArray]",y6t="[object Uint16Array]",_6t="[object Uint32Array]",Ga={};Ga[c3e]=Ga[QEt]=Ga[c6t]=Ga[h6t]=Ga[JEt]=Ga[e6t]=Ga[d6t]=Ga[f6t]=Ga[g6t]=Ga[p6t]=Ga[m6t]=Ga[n6t]=Ga[r6t]=Ga[d3e]=Ga[o6t]=Ga[a6t]=Ga[s6t]=Ga[l6t]=Ga[v6t]=Ga[b6t]=Ga[y6t]=Ga[_6t]=!0,Ga[t6t]=Ga[h3e]=Ga[u6t]=!1;function NM(i,e,t,n,r,o){var a,s=e&ZEt;if(a!==void 0)return a;if(!Wh(i))return i;var l=hl(i);if(l)a=_Et(i);else{var u=Ed(i),c=u==h3e||u==i6t;if(h3(i))return ZCe(i,s);if(u==d3e||u==c3e||c&&!r)a=c?{}:s3e(i);else{if(!Ga[u])return r?i:{};a=jEt(i,u,s)}}o||(o=new V0);var h=o.get(i);if(h)return h;o.set(i,a),KEt(i)?i.forEach(function(g){a.add(NM(g,e,t,g,i,o))}):qEt(i)&&i.forEach(function(g,p){a.set(p,NM(g,e,t,p,i,o))});var d=_V,f=l?void 0:d(i);return pSt(f||i,function(g,p){f&&(p=g,g=i[p]),hV(a,p,NM(g,e,t,p,i,o))}),a}var C6t=1,x6t=4;function S6t(i){return NM(i,C6t|x6t)}var w6t="__lodash_hash_undefined__";function E6t(i){return this.__data__.set(i,w6t),this}function A6t(i){return this.__data__.has(i)}function HM(i){var e=-1,t=i==null?0:i.length;for(this.__data__=new B1;++e<t;)this.add(i[e])}HM.prototype.add=HM.prototype.push=E6t,HM.prototype.has=A6t;function f3e(i,e){for(var t=-1,n=i==null?0:i.length;++t<n;)if(e(i[t],t,i))return!0;return!1}function T6t(i,e){return i.has(e)}var R6t=1,M6t=2;function g3e(i,e,t,n,r,o){var a=t&R6t,s=i.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(i),c=o.get(e);if(u&&c)return u==e&&c==i;var h=-1,d=!0,f=t&M6t?new HM:void 0;for(o.set(i,e),o.set(e,i);++h<s;){var g=i[h],p=e[h];if(n)var m=a?n(p,g,h,e,i,o):n(g,p,h,i,e,o);if(m!==void 0){if(m)continue;d=!1;break}if(f){if(!f3e(e,function(v,b){if(!T6t(f,b)&&(g===v||r(g,v,t,n,o)))return f.push(b)})){d=!1;break}}else if(!(g===p||r(g,p,t,n,o))){d=!1;break}}return o.delete(i),o.delete(e),d}function k6t(i){var e=-1,t=Array(i.size);return i.forEach(function(n,r){t[++e]=[r,n]}),t}function O6t(i){var e=-1,t=Array(i.size);return i.forEach(function(n){t[++e]=n}),t}var I6t=1,D6t=2,P6t="[object Boolean]",L6t="[object Date]",B6t="[object Error]",F6t="[object Map]",N6t="[object Number]",H6t="[object RegExp]",$6t="[object Set]",z6t="[object String]",W6t="[object Symbol]",V6t="[object ArrayBuffer]",j6t="[object DataView]",p3e=Df?Df.prototype:void 0,EV=p3e?p3e.valueOf:void 0;function U6t(i,e,t,n,r,o,a){switch(t){case j6t:if(i.byteLength!=e.byteLength||i.byteOffset!=e.byteOffset)return!1;i=i.buffer,e=e.buffer;case V6t:return!(i.byteLength!=e.byteLength||!o(new FM(i),new FM(e)));case P6t:case L6t:case N6t:return XE(+i,+e);case B6t:return i.name==e.name&&i.message==e.message;case H6t:case z6t:return i==e+"";case F6t:var s=k6t;case $6t:var l=n&I6t;if(s||(s=O6t),i.size!=e.size&&!l)return!1;var u=a.get(i);if(u)return u==e;n|=D6t,a.set(i,e);var c=g3e(s(i),s(e),n,r,o,a);return a.delete(i),c;case W6t:if(EV)return EV.call(i)==EV.call(e)}return!1}var G6t=1,q6t=Object.prototype,Y6t=q6t.hasOwnProperty;function X6t(i,e,t,n,r,o){var a=t&G6t,s=_V(i),l=s.length,u=_V(e),c=u.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var d=s[h];if(!(a?d in e:Y6t.call(e,d)))return!1}var f=o.get(i),g=o.get(e);if(f&&g)return f==e&&g==i;var p=!0;o.set(i,e),o.set(e,i);for(var m=a;++h<l;){d=s[h];var v=i[d],b=e[d];if(n)var y=a?n(b,v,d,e,i,o):n(v,b,d,i,e,o);if(!(y===void 0?v===b||r(v,b,t,n,o):y)){p=!1;break}m||(m=d=="constructor")}if(p&&!m){var _=i.constructor,S=e.constructor;_!=S&&"constructor"in i&&"constructor"in e&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(p=!1)}return o.delete(i),o.delete(e),p}var K6t=1,m3e="[object Arguments]",v3e="[object Array]",$M="[object Object]",Z6t=Object.prototype,b3e=Z6t.hasOwnProperty;function Q6t(i,e,t,n,r,o){var a=hl(i),s=hl(e),l=a?v3e:Ed(i),u=s?v3e:Ed(e);l=l==m3e?$M:l,u=u==m3e?$M:u;var c=l==$M,h=u==$M,d=l==u;if(d&&h3(i)){if(!h3(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new V0),a||DM(i)?g3e(i,e,t,n,r,o):U6t(i,e,l,t,n,r,o);if(!(t&K6t)){var f=c&&b3e.call(i,"__wrapped__"),g=h&&b3e.call(e,"__wrapped__");if(f||g){var p=f?i.value():i,m=g?e.value():e;return o||(o=new V0),r(p,m,t,n,o)}}return d?(o||(o=new V0),X6t(i,e,t,n,r,o)):!1}function zM(i,e,t,n,r){return i===e?!0:i==null||e==null||!Pf(i)&&!Pf(e)?i!==i&&e!==e:Q6t(i,e,t,n,zM,r)}var J6t=1,eAt=2;function tAt(i,e,t,n){var r=t.length,o=r;if(i==null)return!o;for(i=Object(i);r--;){var a=t[r];if(a[2]?a[1]!==i[a[0]]:!(a[0]in i))return!1}for(;++r<o;){a=t[r];var s=a[0],l=i[s],u=a[1];if(a[2]){if(l===void 0&&!(s in i))return!1}else{var c=new V0,h;if(!(h===void 0?zM(u,l,J6t|eAt,n,c):h))return!1}}return!0}function y3e(i){return i===i&&!Wh(i)}function iAt(i){for(var e=mV(i),t=e.length;t--;){var n=e[t],r=i[n];e[t]=[n,r,y3e(r)]}return e}function _3e(i,e){return function(t){return t==null?!1:t[i]===e&&(e!==void 0||i in Object(t))}}function nAt(i){var e=iAt(i);return e.length==1&&e[0][2]?_3e(e[0][0],e[0][1]):function(t){return t===i||tAt(t,i,e)}}function rAt(i,e){return i!=null&&e in Object(i)}function oAt(i,e,t){e=BM(e,i);for(var n=-1,r=e.length,o=!1;++n<r;){var a=e6(e[n]);if(!(o=i!=null&&t(i,a)))break;i=i[a]}return o||++n!=r?o:(r=i==null?0:i.length,!!r&&dV(r)&&OM(a,r)&&(hl(i)||c3(i)))}function C3e(i,e){return i!=null&&oAt(i,e,rAt)}var aAt=1,sAt=2;function lAt(i,e){return vV(i)&&y3e(e)?_3e(e6(i),e):function(t){var n=rp(t,i);return n===void 0&&n===e?C3e(t,i):zM(e,n,aAt|sAt)}}function x3e(i){return function(e){return e==null?void 0:e[i]}}function uAt(i){return function(e){return yV(e,i)}}function cAt(i){return vV(i)?x3e(e6(i)):uAt(i)}function AV(i){return typeof i=="function"?i:i==null?aV:typeof i=="object"?hl(i)?lAt(i[0],i[1]):nAt(i):cAt(i)}function hAt(i){return function(e,t,n){for(var r=-1,o=Object(e),a=n(e),s=a.length;s--;){var l=a[++r];if(t(o[l],l,o)===!1)break}return e}}var S3e=hAt();function w3e(i,e){return i&&S3e(i,e,mV)}function dAt(i,e){return function(t,n){if(t==null)return t;if(!Mb(t))return i(t,n);for(var r=t.length,o=-1,a=Object(t);++o<r&&n(a[o],o,a)!==!1;);return t}}var fAt=dAt(w3e);function TV(i,e,t){(t!==void 0&&!XE(i[e],t)||t===void 0&&!(e in i))&&cV(i,e,t)}function gAt(i){return Pf(i)&&Mb(i)}function RV(i,e){if(!(e==="constructor"&&typeof i[e]=="function")&&e!="__proto__")return i[e]}function pAt(i){return _St(i,ECe(i))}function mAt(i,e,t,n,r,o,a){var s=RV(i,t),l=RV(e,t),u=a.get(l);if(u){TV(i,t,u);return}var c=o?o(s,l,t+"",i,e,a):void 0,h=c===void 0;if(h){var d=hl(l),f=!d&&h3(l),g=!d&&!f&&DM(l);c=l,d||f||g?hl(s)?c=s:gAt(s)?c=lSt(s):f?(h=!1,c=ZCe(l,!0)):g?(h=!1,c=a3e(l,!0)):c=[]:e4t(l)||c3(l)?(c=s,c3(s)?c=pAt(s):(!Wh(s)||sV(s))&&(c=s3e(l))):h=!1}h&&(a.set(l,c),r(c,l,n,o,a),a.delete(l)),TV(i,t,c)}function MV(i,e,t,n,r){i!==e&&S3e(e,function(o,a){if(r||(r=new V0),Wh(o))mAt(i,e,a,t,MV,n,r);else{var s=n?n(RV(i,a),o,a+"",i,e,r):void 0;s===void 0&&(s=o),TV(i,a,s)}},ECe)}var vAt=pCe(function(i,e,t,n){MV(i,e,t,n)});function bAt(i,e,t){var n;return t(i,function(r,o,a){if(e(r,o,a))return n=o,!1}),n}function yAt(i,e){return bAt(i,AV(e),w3e)}var _At="[object String]";function WM(i){return typeof i=="string"||!hl(i)&&Pf(i)&&P1(i)==_At}var CAt="[object Map]",xAt="[object Set]",SAt=Object.prototype,wAt=SAt.hasOwnProperty;function EAt(i){if(i==null)return!0;if(Mb(i)&&(hl(i)||typeof i=="string"||typeof i.splice=="function"||h3(i)||DM(i)||c3(i)))return!i.length;var e=Ed(i);if(e==CAt||e==xAt)return!i.size;if(IM(i))return!pV(i).length;for(var t in i)if(wAt.call(i,t))return!1;return!0}function AAt(i,e){return zM(i,e)}var TAt="[object Number]";function RAt(i){return typeof i=="number"||Pf(i)&&P1(i)==TAt}function E3e(i){return RAt(i)&&i!=+i}var MAt=Q4t(function(i,e,t){return i+(t?"-":"")+e.toLowerCase()});function kAt(i,e){for(var t,n=-1,r=i.length;++n<r;){var o=e(i[n]);o!==void 0&&(t=t===void 0?o:t+o)}return t}var OAt=pCe(function(i,e,t){MV(i,e,t)});function IAt(i,e,t,n){if(!Wh(i))return i;e=BM(e,i);for(var r=-1,o=e.length,a=o-1,s=i;s!=null&&++r<o;){var l=e6(e[r]),u=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return i;if(r!=a){var c=s[l];u=void 0,u===void 0&&(u=Wh(c)?c:OM(e[r+1])?[]:{})}hV(s,l,u),s=s[l]}return i}function DAt(i,e,t){for(var n=-1,r=e.length,o={};++n<r;){var a=e[n],s=yV(i,a);t(s,a)&&IAt(o,BM(a,i),s)}return o}var PAt=x3e("length"),A3e="\\ud800-\\udfff",LAt="\\u0300-\\u036f",BAt="\\ufe20-\\ufe2f",FAt="\\u20d0-\\u20ff",NAt=LAt+BAt+FAt,HAt="\\ufe0e\\ufe0f",$At="["+A3e+"]",kV="["+NAt+"]",OV="\\ud83c[\\udffb-\\udfff]",zAt="(?:"+kV+"|"+OV+")",T3e="[^"+A3e+"]",R3e="(?:\\ud83c[\\udde6-\\uddff]){2}",M3e="[\\ud800-\\udbff][\\udc00-\\udfff]",WAt="\\u200d",k3e=zAt+"?",O3e="["+HAt+"]?",VAt="(?:"+WAt+"(?:"+[T3e,R3e,M3e].join("|")+")"+O3e+k3e+")*",jAt=O3e+k3e+VAt,UAt="(?:"+[T3e+kV+"?",kV,R3e,M3e,$At].join("|")+")",I3e=RegExp(OV+"(?="+OV+")|"+UAt+jAt,"g");function GAt(i){for(var e=I3e.lastIndex=0;I3e.test(i);)++e;return e}function qAt(i){return u4t(i)?GAt(i):PAt(i)}function YAt(i,e){return DAt(i,e,function(t,n){return C3e(i,n)})}var XAt=Ywt(function(i,e){return i==null?{}:YAt(i,e)}),KAt="[object Map]",ZAt="[object Set]";function QAt(i){if(i==null)return 0;if(Mb(i))return WM(i)?qAt(i):i.length;var e=Ed(i);return e==KAt||e==ZAt?i.size:pV(i).length}function JAt(i,e){var t;return fAt(i,function(n,r,o){return t=e(n,r,o),!t}),!!t}function eTt(i,e,t){var n=hl(i)?f3e:JAt;return n(i,AV(e))}function tTt(i,e){return i&&i.length?kAt(i,AV(e)):0}function iTt(i){return JE(i).toLowerCase()}const nTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M14.1106 12.0679C14.1474 12.2055 14.1673 12.3501 14.1673 12.4994C14.1673 13.42 13.421 14.1661 12.5007 14.1661C11.5801 14.1661 10.834 13.42 10.834 12.4994C10.834 12.3501 10.8537 12.2053 10.8906 12.0676L7.93249 9.10938C7.79474 9.14625 7.64999 9.16613 7.50062 9.16613C7.35137 9.16613 7.20674 9.14625 7.06887 9.10938L3.33398 12.8443V16.6661H16.6668V9.51163L14.1106 12.0679Z",fill:"currentColor"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 1.66602V18.3328H1.66699V1.66602H18.3333ZM12.5005 10.8328C12.6498 10.8328 12.7944 10.8527 12.932 10.8894L16.6665 7.15502V3.33277H3.33375V10.4877L5.89037 7.93103C5.8535 7.79303 5.83362 7.64853 5.83362 7.49928C5.83362 6.5789 6.57988 5.83265 7.50038 5.83265C8.42075 5.83265 9.16688 6.5789 9.16688 7.49928C9.16688 7.64853 9.14713 7.79303 9.11025 7.93078L12.0689 10.8894C12.2066 10.8527 12.3511 10.8328 12.5005 10.8328ZM14.167 12.4993C14.167 12.35 14.1471 12.2054 14.1104 12.0678L16.6665 9.51153V16.666H3.33375V12.8442L7.06863 9.10928C7.2065 9.14615 7.35113 9.16603 7.50038 9.16603C7.64975 9.16603 7.7945 9.14615 7.93225 9.10928L10.8904 12.0675C10.8535 12.2052 10.8338 12.35 10.8338 12.4993C10.8338 13.4199 11.5799 14.166 12.5005 14.166C13.4208 14.166 14.167 13.4199 14.167 12.4993ZM7.50038 7.08252C7.7305 7.08252 7.91713 7.26915 7.91713 7.49927C7.91713 7.72928 7.7305 7.9159 7.50038 7.9159C7.27038 7.9159 7.08375 7.72928 7.08375 7.49927C7.08375 7.26915 7.27038 7.08252 7.50038 7.08252ZM12.9171 12.4993C12.9171 12.2693 12.7305 12.0827 12.5005 12.0827C12.2704 12.0827 12.0838 12.2693 12.0838 12.4993C12.0838 12.7294 12.2704 12.916 12.5005 12.916C12.7305 12.916 12.9171 12.7294 12.9171 12.4993Z",fill:"currentColor"})),rTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.333 18.333H1.66699V1.66602H18.333V18.333ZM3.33398 16.666H16.667V3.33301H3.33398V16.666ZM5.83398 15.832H4.16699V8.33203H5.83398V15.832ZM8.33496 15.832H6.66895V6.66602H8.33496V15.832ZM10.8369 15.832H9.16992V9.99902H10.8369V15.832ZM13.334 15.832H11.668V11.665H13.334V15.832ZM15.833 15.832H14.167V9.99902H15.833V15.832Z",fill:"currentColor"})),oTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M10.0002 16.6658C6.64934 16.6658 3.80338 14.1511 3.38574 10.8333H5.91756C6.31249 12.764 8.02302 14.1659 10.0002 14.1659C12.2957 14.1659 14.1668 12.2948 14.1668 9.99918C14.1668 8.02156 12.7647 6.31113 10.8335 5.91639V3.38477C14.1517 3.80241 16.6668 6.64799 16.6668 9.99918C16.6668 13.6701 13.6711 16.6658 10.0002 16.6658Z",fill:"currentColor"}),M.createElement("path",{opacity:.1,d:"M3.38574 9.16658C3.76371 6.15828 6.15868 3.7635 9.16679 3.38477V5.91639C7.53734 6.2497 6.24991 7.53684 5.91727 9.16658H3.38574Z",fill:"currentColor"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3337 9.99939C18.3337 14.5899 14.5908 18.3328 10.0004 18.3328C5.40986 18.3328 1.66699 14.5899 1.66699 9.99939C1.66699 5.40898 5.40986 1.66602 10.0004 1.66602C14.5908 1.66602 18.3337 5.40898 18.3337 9.99939ZM3.38595 10.8335C3.8036 14.1513 6.64956 16.666 10.0004 16.666C13.6713 16.666 16.667 13.6703 16.667 9.99939C16.667 6.6482 14.152 3.80262 10.8337 3.38498V5.9166C12.7649 6.31134 14.167 8.02177 14.167 9.99939C14.167 12.295 12.296 14.1661 10.0004 14.1661C8.02323 14.1661 6.3127 12.7642 5.91777 10.8335H3.38595ZM7.50046 9.99939C7.50046 11.3754 8.62439 12.4994 10.0004 12.4994C11.3763 12.4994 12.5003 11.3754 12.5003 9.99939C12.5003 8.62342 11.3763 7.49948 10.0004 7.49948C8.62439 7.49948 7.50046 8.62342 7.50046 9.99939ZM3.38595 9.16679C3.76392 6.15849 6.15889 3.76371 9.167 3.38498V5.9166C7.53755 6.24991 6.25012 7.53705 5.91749 9.16679H3.38595Z",fill:"currentColor"})),aTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M10.8333 13.3333H9.16667L8.33333 12.5H11.6667L10.8333 13.3333ZM11.6667 10.8333H8.33333L6.66667 10H13.3333L11.6667 10.8333ZM13.3333 8.33333H6.66667L5 7.5H15L13.3333 8.33333Z",fill:"currentColor"}),M.createElement("path",{d:"M18.3337 18.3327H1.66699V1.66602H18.3337V18.3327ZM3.33366 16.666H16.667V3.33268H3.33366V16.666ZM10.8337 14.9993H9.16699V13.3327H10.8337V14.9993ZM11.667 12.4993H8.33366V10.8327H11.667V12.4993ZM13.3337 9.99935H6.66699V8.33268H13.3337V9.99935ZM15.0003 7.49935H5.00033V5.83268H15.0003V7.49935Z",fill:"currentColor"})),sTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M14.7169 14.7167L12.9502 12.95C13.7002 12.2 14.1669 11.1583 14.1669 10H16.6669C16.6669 11.7833 15.9752 13.4583 14.7169 14.7167Z",fill:"currentColor"}),M.createElement("path",{opacity:.1,fillRule:"evenodd",clipRule:"evenodd",d:"M14.7163 5.28398L12.9497 7.05065C12.1997 6.30065 11.158 5.83398 9.99967 5.83398C7.69967 5.83398 5.83301 7.70065 5.83301 10.0007C5.83301 11.1507 6.29967 12.1923 7.04967 12.9507L5.28301 14.7173C4.02467 13.459 3.33301 11.784 3.33301 10.0007C3.33301 6.31732 6.31634 3.33398 9.99967 3.33398C11.8413 3.33398 13.508 4.08398 14.7163 5.28398Z",fill:"currentColor"}),M.createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M16.6669 9.99987H14.1669C14.1669 8.84987 13.7002 7.8082 12.9502 7.04987L14.7169 5.2832C15.9252 6.49154 16.6669 8.1582 16.6669 9.99987Z",fill:"currentColor"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66699 15.8327H13.3337V17.4993H6.66699V15.8327ZM14.717 14.716L15.892 15.891C17.4503 14.3243 18.3337 12.216 18.3337 9.99935C18.3337 5.39935 14.6003 1.66602 10.0003 1.66602C5.40033 1.66602 1.66699 5.39935 1.66699 9.99935C1.66699 12.2077 2.54199 14.3243 4.10866 15.891L5.28366 14.716C4.02533 13.4577 3.33366 11.7827 3.33366 9.99935C3.33366 6.31602 6.31699 3.33268 10.0003 3.33268C13.6837 3.33268 16.667 6.31602 16.667 9.99935C16.667 11.7827 15.9753 13.4577 14.717 14.716ZM10.0003 8.33268C10.1503 8.33268 10.292 8.34935 10.4337 8.39102L12.9503 5.87435L14.1253 7.04935L11.6087 9.56602C11.642 9.70768 11.667 9.84935 11.667 9.99935C11.667 10.916 10.917 11.666 10.0003 11.666C9.08366 11.666 8.33366 10.916 8.33366 9.99935C8.33366 9.08268 9.08366 8.33268 10.0003 8.33268Z",fill:"currentColor"})),lTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.3337 18.3327H1.66699V1.66602H18.3337V18.3327ZM3.33366 16.666H16.667V3.33268H3.33366V16.666ZM10.8337 7.49935H12.5003V9.16602H10.8337V12.4993H12.5003V14.166H10.8337V15.8327H9.16699V12.4993H7.50033V10.8327H9.16699V7.49935H7.50033V5.83268H9.16699V4.16602H10.8337V7.49935ZM7.50033 10.8327H5.83366V9.16602H7.50033V10.8327ZM14.167 10.8327H12.5003V9.16602H14.167V10.8327Z",fill:"currentColor"}),M.createElement("path",{opacity:.5,d:"M9.16699 15.8327H7.50033V12.4993H9.16699V15.8327ZM12.5003 15.8327H10.8337V14.166H12.5003V15.8327ZM12.5003 10.8327H14.167V14.166H12.5003V12.4993H10.8337V9.16602H12.5003V10.8327ZM7.50033 12.4993H5.83366V10.8327H7.50033V12.4993ZM5.83366 10.8327H4.16699V9.16602H5.83366V10.8327ZM7.50033 7.49935H9.16699V10.8327H7.50033V9.16602H5.83366V5.83268H7.50033V7.49935ZM15.8337 10.8327H14.167V9.16602H15.8337V10.8327ZM14.167 9.16602H12.5003V7.49935H14.167V9.16602ZM12.5003 7.49935H10.8337V4.16602H12.5003V7.49935ZM9.16699 5.83268H7.50033V4.16602H9.16699V5.83268Z",fill:"currentColor"}),M.createElement("path",{opacity:.3,d:"M5.83366 12.4993H7.50033V15.8327H4.16699V10.8327H5.83366V12.4993ZM15.8337 15.8327H12.5003V14.166H14.167V10.8327H15.8337V15.8327ZM5.83366 9.16602H4.16699V4.16602H7.50033V5.83268H5.83366V9.16602ZM15.8337 9.16602H14.167V7.49935H12.5003V4.16602H15.8337V9.16602Z",fill:"currentColor"})),uTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.333 1.66602V18.333H1.66699V1.66602H18.333ZM3.33398 3.33301V16.666H16.667V3.33301H3.33398ZM11.2168 14.166H9.57031V7.82031L7.60449 8.42969V7.09082L11.04 5.86035H11.2168V14.166Z",fill:"currentColor"})),cTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3333 1.66602V18.3328H1.66699V1.66602H18.3333ZM12.5005 10.8328C12.6498 10.8328 12.7944 10.8527 12.932 10.8894L16.6665 7.15502V3.33277H3.33375V10.4877L5.89037 7.93103C5.8535 7.79303 5.83362 7.64853 5.83362 7.49928C5.83362 6.5789 6.57988 5.83265 7.50038 5.83265C8.42075 5.83265 9.16688 6.5789 9.16688 7.49928C9.16688 7.64853 9.14713 7.79303 9.11025 7.93078L12.0689 10.8894C12.2066 10.8527 12.3511 10.8328 12.5005 10.8328ZM14.167 12.4993C14.167 12.35 14.1471 12.2054 14.1104 12.0678L16.6665 9.51153V16.666H3.33375V12.8442L7.06863 9.10928C7.2065 9.14615 7.35113 9.16603 7.50038 9.16603C7.64975 9.16603 7.7945 9.14615 7.93225 9.10928L10.8904 12.0675C10.8535 12.2052 10.8338 12.35 10.8338 12.4993C10.8338 13.4199 11.5799 14.166 12.5005 14.166C13.4208 14.166 14.167 13.4199 14.167 12.4993ZM7.50038 7.08252C7.7305 7.08252 7.91713 7.26915 7.91713 7.49927C7.91713 7.72928 7.7305 7.9159 7.50038 7.9159C7.27038 7.9159 7.08375 7.72928 7.08375 7.49927C7.08375 7.26915 7.27038 7.08252 7.50038 7.08252ZM12.9171 12.4993C12.9171 12.2693 12.7305 12.0827 12.5005 12.0827C12.2704 12.0827 12.0838 12.2693 12.0838 12.4993C12.0838 12.7294 12.2704 12.916 12.5005 12.916C12.7305 12.916 12.9171 12.7294 12.9171 12.4993Z",fill:"currentColor"})),hTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{opacity:.3,d:"M10.8301 1.70898L10.8303 9.16808H18.2916C17.8984 5.23952 14.7586 2.10121 10.8301 1.70898Z",fill:"currentColor"}),M.createElement("path",{opacity:.1,d:"M18.2917 10.834H12.0127L16.4473 15.2693C17.4589 14.0344 18.1242 12.5056 18.2917 10.834Z",fill:"currentColor"}),M.createElement("path",{d:"M10 1.66602C14.5903 1.66602 18.3338 5.40872 18.334 9.99902C18.334 14.5895 14.5905 18.333 10 18.333C5.4097 18.3328 1.66699 14.5894 1.66699 9.99902C1.6672 5.40885 5.40982 1.66622 10 1.66602ZM9.16699 3.38477C5.84893 3.80239 3.33417 6.64793 3.33398 9.99902C3.33398 13.6698 6.32931 16.6658 10 16.666C11.5359 16.666 12.9544 16.1407 14.084 15.2617L9.16699 10.3447V3.38477ZM12.0117 10.833L15.2627 14.084C15.9803 13.162 16.4624 12.0469 16.6152 10.833H12.0117ZM10.834 9.16699H16.6152C16.2373 6.15878 13.8419 3.76351 10.834 3.38477V9.16699Z",fill:"currentColor"})),dTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M10.0003 18.3327C8.84755 18.3327 7.76421 18.1139 6.75033 17.6764C5.73644 17.2389 4.85449 16.6452 4.10449 15.8952C3.35449 15.1452 2.76074 14.2632 2.32324 13.2493C1.88574 12.2355 1.66699 11.1521 1.66699 9.99935C1.66699 8.84657 1.88574 7.76324 2.32324 6.74935C2.76074 5.73546 3.35449 4.85352 4.10449 4.10352C4.85449 3.35352 5.73644 2.75977 6.75033 2.32227C7.76421 1.88477 8.84755 1.66602 10.0003 1.66602C11.1531 1.66602 12.2364 1.88477 13.2503 2.32227C14.2642 2.75977 15.1462 3.35352 15.8962 4.10352C16.6462 4.85352 17.2399 5.73546 17.6774 6.74935C18.1149 7.76324 18.3337 8.84657 18.3337 9.99935C18.3337 11.1521 18.1149 12.2355 17.6774 13.2493C17.2399 14.2632 16.6462 15.1452 15.8962 15.8952C15.1462 16.6452 14.2642 17.2389 13.2503 17.6764C12.2364 18.1139 11.1531 18.3327 10.0003 18.3327ZM10.0003 16.666C10.7781 16.666 11.5107 16.5445 12.1982 16.3014C12.8857 16.0584 13.5142 15.7146 14.0837 15.2702L12.8962 14.0827C12.4934 14.3743 12.0455 14.6 11.5524 14.7598C11.0594 14.9195 10.542 14.9993 10.0003 14.9993C8.61144 14.9993 7.43088 14.5132 6.45866 13.541C5.48644 12.5688 5.00033 11.3882 5.00033 9.99935C5.00033 8.61046 5.48644 7.4299 6.45866 6.45768C7.43088 5.48546 8.61144 4.99935 10.0003 4.99935C11.3892 4.99935 12.5698 5.48546 13.542 6.45768C14.5142 7.4299 15.0003 8.61046 15.0003 9.99935C15.0003 10.541 14.917 11.0618 14.7503 11.5618C14.5837 12.0618 14.3545 12.5132 14.0628 12.916L15.2503 14.1035C15.6948 13.5341 16.042 12.9021 16.292 12.2077C16.542 11.5132 16.667 10.7771 16.667 9.99935C16.667 8.13824 16.0212 6.56185 14.7295 5.27018C13.4378 3.97852 11.8614 3.33268 10.0003 3.33268C8.13921 3.33268 6.56283 3.97852 5.27116 5.27018C3.97949 6.56185 3.33366 8.13824 3.33366 9.99935C3.33366 11.8605 3.97949 13.4368 5.27116 14.7285C6.56283 16.0202 8.13921 16.666 10.0003 16.666ZM10.0003 13.3327C10.3059 13.3327 10.601 13.2945 10.8857 13.2181C11.1705 13.1417 11.4378 13.0271 11.6878 12.8743L10.417 11.6035C10.3475 11.6313 10.2781 11.6487 10.2087 11.6556C10.1392 11.6625 10.0698 11.666 10.0003 11.666C9.54199 11.666 9.14963 11.5028 8.82324 11.1764C8.49685 10.85 8.33366 10.4577 8.33366 9.99935C8.33366 9.54102 8.49685 9.14866 8.82324 8.82227C9.14963 8.49588 9.54199 8.33268 10.0003 8.33268C10.4587 8.33268 10.851 8.49588 11.1774 8.82227C11.5038 9.14866 11.667 9.54102 11.667 9.99935C11.667 10.0827 11.6635 10.1625 11.6566 10.2389C11.6496 10.3153 11.6323 10.3882 11.6045 10.4577L12.8545 11.7077C13.0073 11.4577 13.1253 11.1903 13.2087 10.9056C13.292 10.6209 13.3337 10.3188 13.3337 9.99935C13.3337 9.08268 13.0073 8.29796 12.3545 7.64518C11.7017 6.9924 10.917 6.66602 10.0003 6.66602C9.08366 6.66602 8.29894 6.9924 7.64616 7.64518C6.99338 8.29796 6.66699 9.08268 6.66699 9.99935C6.66699 10.916 6.99338 11.7007 7.64616 12.3535C8.29894 13.0063 9.08366 13.3327 10.0003 13.3327Z",fill:"currentColor"})),fTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.333 18.333H1.66699V1.66602H18.333V18.333ZM3.33398 16.666H16.667V3.33301H3.33398V16.666ZM6.66699 15.832H4.16699V14.166H6.66699V15.832ZM8.33398 13.333H4.16699V11.667H8.33398V13.333ZM10.834 10.8359H4.16699V9.16895H10.834V10.8359ZM13.334 8.33398H4.16699V6.66797H13.334V8.33398ZM15.834 5.83301H4.16699V4.16602H15.834V5.83301Z",fill:"currentColor"})),gTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.3342 18.3347V1.66797H1.66797V18.3347H18.3342ZM3.3347 3.3347H16.6675V16.668H3.3347V3.3347Z",fill:"currentColor"}),M.createElement("path",{d:"M12.5005 5.0013H15.0005V7.5013H12.5005V5.0013Z",fill:"currentColor"}),M.createElement("path",{d:"M5.00049 12.5013H7.50049V15.0013H5.00049V12.5013Z",fill:"currentColor"}),M.createElement("path",{d:"M10.8338 10.0013H13.3338V12.5013H10.8338V10.0013Z",fill:"currentColor"}),M.createElement("path",{d:"M6.66716 7.5013H9.16716V10.0013H6.66716V7.5013Z",fill:"currentColor"})),pTt=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M18.334 18.333H1.66699V1.66602H18.334V18.333ZM8.33398 16.666H11.667V14.166H8.33398V16.666ZM13.334 16.666H16.667V14.166H13.334V16.666ZM3.33398 16.666H6.66699V14.166H3.33398V16.666ZM8.33398 12.499H11.667V9.99902H8.33398V12.499ZM13.334 12.499H16.667V9.99902H13.334V12.499ZM3.33398 12.499H6.66699V9.99902H3.33398V12.499ZM8.33398 8.33301H11.667V5.83301H8.33398V8.33301ZM13.334 8.33301H16.667V5.83301H13.334V8.33301ZM3.33398 8.33301H6.66699V5.83301H3.33398V8.33301Z",fill:"currentColor"}));var Pa=(i=>(i.Area="area",i.Bar="bar",i.Donut="donut",i.Funnel="funnel",i.Gauge="gauge",i.Heatmap="heatmap",i.Line="line",i.Pie="pie",i.Radar="radar",i.Rank="rank",i.Scatter="scatter",i.VisText="vis-text",i.Table="table",i.Indicator="indicator",i))(Pa||{});const D3e=[{key:"bar",label:"Bar chart",icon:rTt},{key:"donut",label:"Donut chart",icon:oTt},{key:"line",label:"Line chart",icon:cTt},{key:"table",label:"Table",icon:pTt},{key:"area",label:"Area chart",icon:nTt},{key:"funnel",label:"Funnel",icon:aTt},{key:"gauge",label:"Gauge",icon:sTt},{key:"heatmap",label:"Heatmap",icon:lTt},{key:"indicator",label:"Indicator",icon:uTt},{key:"pie",label:"Pie chart",icon:hTt},{key:"radar",label:"Radar chart",icon:dTt},{key:"rank",label:"Rank",icon:fTt},{key:"scatter",label:"Scatter chart",icon:gTt}],mTt={cartesian:["area","bar","heatmap","line","scatter","rank"],polar:["donut","funnel","gauge","pie","radar","indicator"],table:["table"]};function Lf(i){for(const[e,t]of Object.entries(mTt))if(t.includes(i))return e;return"unknown"}function vTt(i,e){const{data:t,metrics:n,dimensions:r}=i,o=t==null?void 0:t[0],a=o?Object.keys(o):[];return e==="cartesian"?{xField:(r==null?void 0:r[0])||(a==null?void 0:a[0]),yField:(n==null?void 0:n[0])||(a==null?void 0:a[1])}:e==="polar"?{nameField:(r==null?void 0:r[0])||(a==null?void 0:a[0]),valField:(n==null?void 0:n[0])||(a==null?void 0:a[1])}:{}}const P3e=(i,e)=>{const t=Lf(e.type),n=Lf(i);let r=ke({},e);(e==null?void 0:e.type)==="rank"&&(r.xField=e.yField,r.yField=e.xField);let o=ke({},r);if(o.type=i,t==="cartesian"&&n==="polar"&&(o.nameField=(e==null?void 0:e.nameField)||e.xField,o.valField=(e==null?void 0:e.valField)||e.yField),t==="polar"&&n==="cartesian"&&(o.xField=(e==null?void 0:e.xField)||e.nameField,o.yField=e.yField||e.valField),t==="table"){const a=vTt(e,n);o=ke(ke({},a),o)}return i==="rank"&&(o.xField=r.yField,o.yField=r.xField),o},bTt=({metrics:i,dimensions:e,timeGrain:t,chartJson:n,data:r,isInit:o=!1})=>{const a=Lf(n.type),s=(l,u)=>l&&u.includes(l);if(a==="cartesian"){let l,u,c;return n.type==="heatmap"?(l=o&&s(n==null?void 0:n.xField,e)?n.xField:e[0],u=o&&s(n==null?void 0:n.yField,e)?n.yField:e[1],c=o&&s(n==null?void 0:n.valField,i)?n.valField:i[0]):n.type==="rank"?(l=o&&s(n==null?void 0:n.xField,i)?n.xField:i[0],u=o&&s(n==null?void 0:n.yField,e)?n.yField:e[0]):(l=o&&s(n==null?void 0:n.xField,e)?n.xField:e[0],u=o&&s(n==null?void 0:n.yField,i)?n.yField:i[0]),Pi(ke({},n),{metrics:i,dimensions:e,timeGrain:t,data:r,xField:l,yField:u,valField:c})}else if(a==="polar"){const l=o&&s(n==null?void 0:n.nameField,e)?n.nameField:e[0],u=o&&s(n==null?void 0:n.valField,i)?n.valField:i[0];return Pi(ke({},n),{metrics:i,dimensions:e,data:r,nameField:l,valField:u})}return Pi(ke({},n),{metrics:i,dimensions:e,data:r})},IV=({metrics:i,dimensions:e,chartJson:t,isInit:n=!1})=>{const r=Lf(t.type),o=(i==null?void 0:i.map(l=>l.label))||[],a=(e==null?void 0:e.map(l=>l.label))||[],s=(l,u)=>l&&u.includes(l);if(r==="cartesian"){let l,u,c;return t.type==="heatmap"?(l=n&&s(t==null?void 0:t.xField,a)?t.xField:a[0],u=n&&s(t==null?void 0:t.yField,a)?t.yField:a[1],c=n&&s(t==null?void 0:t.valField,o)?t.valField:o[0]):t.type==="rank"?(l=n&&s(t==null?void 0:t.xField,o)?t.xField:o[0],u=n&&s(t==null?void 0:t.yField,a)?t.yField:a[0]):(l=n&&s(t==null?void 0:t.xField,a)?t.xField:a[0],u=n&&s(t==null?void 0:t.yField,o)?t.yField:o[0]),Pi(ke({},t),{metrics:o,dimensions:a,xField:l,yField:u,valField:c})}else if(r==="polar"){const l=n&&s(t==null?void 0:t.nameField,a)?t.nameField:a[0],u=n&&s(t==null?void 0:t.valField,o)?t.valField:o[0];return Pi(ke({},t),{metrics:o,dimensions:a,nameField:l,valField:u})}return Pi(ke({},t),{metrics:o,dimensions:a})},yTt="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let DV=(i=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(i|=0));for(;i--;)e+=yTt[t[i]&63];return e};const _Tt={},L3e=i=>{let e;const t=new Set,n=(c,h)=>{const d=typeof c=="function"?c(e):c;if(!Object.is(d,e)){const f=e;e=(h!=null?h:typeof d!="object"||d===null)?d:Object.assign({},e,d),t.forEach(g=>g(e,f))}},r=()=>e,l={setState:n,getState:r,getInitialState:()=>u,subscribe:c=>(t.add(c),()=>t.delete(c)),destroy:()=>{(_Tt?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},u=e=i(n,r,l);return l},CTt=i=>i?L3e(i):L3e;var VM={exports:{}},PV={},jM={exports:{}},LV={};/**
|
|
509
509
|
* @license React
|
|
510
510
|
* use-sync-external-store-shim.production.js
|
|
511
511
|
*
|
|
@@ -537,7 +537,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`,f_e=()=>({style:{symbolType:d3t,fill:{type:"palette"
|
|
|
537
537
|
*
|
|
538
538
|
* This source code is licensed under the MIT license found in the
|
|
539
539
|
* LICENSE file in the root directory of this source tree.
|
|
540
|
-
*/return i.NODE_ENV!=="production"&&(function(){function e(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=ce,n=H3e(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,s=t.useEffect,l=t.useMemo,u=t.useDebugValue;FV.useSyncExternalStoreWithSelector=function(c,h,d,f,g){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=l(function(){function b(w){if(!y){if(y=!0,_=w,w=f(w),g!==void 0&&m.hasValue){var E=m.value;if(g(E,w))return S=E}return S=w}if(E=S,r(_,w))return E;var A=f(w);return g!==void 0&&g(E,A)?(_=w,E):(_=w,S=A)}var y=!1,_,S,x=d===void 0?null:d;return[function(){return b(h())},x===null?void 0:function(){return b(x())}]},[h,d,f,g]);var v=o(c,p[0],p[1]);return s(function(){m.hasValue=!0,m.value=v},[v]),u(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),FV}var W3e;function ATt(){if(W3e)return VM.exports;W3e=1;var i={};return i.NODE_ENV==="production"?VM.exports=wTt():VM.exports=ETt(),VM.exports}var TTt=ATt();const RTt=Xr(TTt),{useDebugValue:MTt}=ce,{useSyncExternalStoreWithSelector:kTt}=RTt,OTt=i=>i;function ITt(i,e=OTt,t){const n=kTt(i.subscribe,i.getState,i.getServerState||i.getInitialState,e,t);return MTt(n),n}var UM={exports:{}},DTt=UM.exports,V3e;function j3e(){return V3e||(V3e=1,(function(i,e){(function(t,n){i.exports=n()})(DTt,(function(){var t=1e3,n=6e4,r=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",h="month",d="quarter",f="year",g="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var L=["th","st","nd","rd"],F=P%100;return"["+P+(L[(F-20)%10]||L[F]||L[0])+"]"}},y=function(P,L,F){var W=String(P);return!W||W.length>=L?P:""+Array(L+1-W.length).join(F)+P},_={s:y,z:function(P){var L=-P.utcOffset(),F=Math.abs(L),W=Math.floor(F/60),V=F%60;return(L<=0?"+":"-")+y(W,2,"0")+":"+y(V,2,"0")},m:function P(L,F){if(L.date()<F.date())return-P(F,L);var W=12*(F.year()-L.year())+(F.month()-L.month()),V=L.clone().add(W,h),G=F-V<0,z=L.clone().add(W+(G?-1:1),h);return+(-(W+(F-V)/(G?V-z:z-V))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:h,y:f,w:c,d:u,D:g,h:l,m:s,s:a,ms:o,Q:d}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",x={};x[S]=b;var w="$isDayjsObject",E=function(P){return P instanceof k||!(!P||!P[w])},A=function P(L,F,W){var V;if(!L)return S;if(typeof L=="string"){var G=L.toLowerCase();x[G]&&(V=G),F&&(x[G]=F,V=G);var z=L.split("-");if(!V&&z.length>1)return P(z[0])}else{var X=L.name;x[X]=L,V=X}return!W&&V&&(S=V),V||!W&&S},T=function(P,L){if(E(P))return P.clone();var F=typeof L=="object"?L:{};return F.date=P,F.args=arguments,new k(F)},R=_;R.l=A,R.i=E,R.w=function(P,L){return T(P,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var k=(function(){function P(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[w]=!0}var L=P.prototype;return L.parse=function(F){this.$d=(function(W){var V=W.date,G=W.utc;if(V===null)return new Date(NaN);if(R.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var z=V.match(m);if(z){var X=z[2]-1||0,j=(z[7]||"0").substring(0,3);return G?new Date(Date.UTC(z[1],X,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)):new Date(z[1],X,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)}}return new Date(V)})(F),this.init()},L.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},L.$utils=function(){return R},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(F,W){var V=T(F);return this.startOf(W)<=V&&V<=this.endOf(W)},L.isAfter=function(F,W){return T(F)<this.startOf(W)},L.isBefore=function(F,W){return this.endOf(W)<T(F)},L.$g=function(F,W,V){return R.u(F)?this[W]:this.set(V,F)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(F,W){var V=this,G=!!R.u(W)||W,z=R.p(F),X=function(he,ge){var pe=R.w(V.$u?Date.UTC(V.$y,ge,he):new Date(V.$y,ge,he),V);return G?pe:pe.endOf(u)},j=function(he,ge){return R.w(V.toDate()[he].apply(V.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ge)),V)},H=this.$W,J=this.$M,re=this.$D,se="set"+(this.$u?"UTC":"");switch(z){case f:return G?X(1,0):X(31,11);case h:return G?X(1,J):X(0,J+1);case c:var ie=this.$locale().weekStart||0,ue=(H<ie?H+7:H)-ie;return X(G?re-ue:re+(6-ue),J);case u:case g:return j(se+"Hours",0);case l:return j(se+"Minutes",1);case s:return j(se+"Seconds",2);case a:return j(se+"Milliseconds",3);default:return this.clone()}},L.endOf=function(F){return this.startOf(F,!1)},L.$set=function(F,W){var V,G=R.p(F),z="set"+(this.$u?"UTC":""),X=(V={},V[u]=z+"Date",V[g]=z+"Date",V[h]=z+"Month",V[f]=z+"FullYear",V[l]=z+"Hours",V[s]=z+"Minutes",V[a]=z+"Seconds",V[o]=z+"Milliseconds",V)[G],j=G===u?this.$D+(W-this.$W):W;if(G===h||G===f){var H=this.clone().set(g,1);H.$d[X](j),H.init(),this.$d=H.set(g,Math.min(this.$D,H.daysInMonth())).$d}else X&&this.$d[X](j);return this.init(),this},L.set=function(F,W){return this.clone().$set(F,W)},L.get=function(F){return this[R.p(F)]()},L.add=function(F,W){var V,G=this;F=Number(F);var z=R.p(W),X=function(J){var re=T(G);return R.w(re.date(re.date()+Math.round(J*F)),G)};if(z===h)return this.set(h,this.$M+F);if(z===f)return this.set(f,this.$y+F);if(z===u)return X(1);if(z===c)return X(7);var j=(V={},V[s]=n,V[l]=r,V[a]=t,V)[z]||1,H=this.$d.getTime()+F*j;return R.w(H,this)},L.subtract=function(F,W){return this.add(-1*F,W)},L.format=function(F){var W=this,V=this.$locale();if(!this.isValid())return V.invalidDate||p;var G=F||"YYYY-MM-DDTHH:mm:ssZ",z=R.z(this),X=this.$H,j=this.$m,H=this.$M,J=V.weekdays,re=V.months,se=V.meridiem,ie=function(ge,pe,me,fe){return ge&&(ge[pe]||ge(W,G))||me[pe].slice(0,fe)},ue=function(ge){return R.s(X%12||12,ge,"0")},he=se||function(ge,pe,me){var fe=ge<12?"AM":"PM";return me?fe.toLowerCase():fe};return G.replace(v,(function(ge,pe){return pe||(function(me){switch(me){case"YY":return String(W.$y).slice(-2);case"YYYY":return R.s(W.$y,4,"0");case"M":return H+1;case"MM":return R.s(H+1,2,"0");case"MMM":return ie(V.monthsShort,H,re,3);case"MMMM":return ie(re,H);case"D":return W.$D;case"DD":return R.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return ie(V.weekdaysMin,W.$W,J,2);case"ddd":return ie(V.weekdaysShort,W.$W,J,3);case"dddd":return J[W.$W];case"H":return String(X);case"HH":return R.s(X,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return he(X,j,!0);case"A":return he(X,j,!1);case"m":return String(j);case"mm":return R.s(j,2,"0");case"s":return String(W.$s);case"ss":return R.s(W.$s,2,"0");case"SSS":return R.s(W.$ms,3,"0");case"Z":return z}return null})(ge)||z.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(F,W,V){var G,z=this,X=R.p(W),j=T(F),H=(j.utcOffset()-this.utcOffset())*n,J=this-j,re=function(){return R.m(z,j)};switch(X){case f:G=re()/12;break;case h:G=re();break;case d:G=re()/3;break;case c:G=(J-H)/6048e5;break;case u:G=(J-H)/864e5;break;case l:G=J/r;break;case s:G=J/n;break;case a:G=J/t;break;default:G=J}return V?G:R.a(G)},L.daysInMonth=function(){return this.endOf(h).$D},L.$locale=function(){return x[this.$L]},L.locale=function(F,W){if(!F)return this.$L;var V=this.clone(),G=A(F,W,!0);return G&&(V.$L=G),V},L.clone=function(){return R.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},P})(),O=k.prototype;return T.prototype=O,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",h],["$y",f],["$D",g]].forEach((function(P){O[P[1]]=function(L){return this.$g(L,P[0],P[1])}})),T.extend=function(P,L){return P.$i||(P(L,k,T),P.$i=!0),T},T.locale=A,T.isDayjs=E,T.unix=function(P){return T(1e3*P)},T.en=x[S],T.Ls=x,T.p={},T}))})(UM)),UM.exports}var PTt=j3e();const Ir=Xr(PTt),Ob="YYYY/MM/DD HH:mm:ss",GM="YYYY-MM-DD HH:mm:ss";var U3e=(i=>(i.Second="second",i.Minute="minute",i.Hour="hour",i.Day="day",i.Week="week",i.Month="month",i.Quarter="quarter",i.Year="year",i))(U3e||{});const LTt={second:"YYYY/MM/DD HH:mm:ss",minute:"YYYY/MM/DD HH:mm",hour:"YYYY/MM/DD HH:mm",day:"YYYY/MM/DD",week:"YYYY/MM/DD",month:"YYYY/MM",quarter:"YYYY/MM",year:"YYYY"},G3e=(i,e=Ob)=>{let t=null;if(typeof i=="number")i>=1e9&&i<=2e9?t=Ir(i*1e3):t=Ir(i);else if(typeof i=="string")if(/^\d+$/.test(i)){const n=parseInt(i,10);n>=1e9&&n<=2e9?t=Ir(n*1e3):t=Ir(n)}else t=Ir(i);return!t||!t.isValid()?i:t.format(e)},BTt=["time","date","timestamp","metricTime"],FTt=i=>Ir(i).isValid()?!0:typeof i=="string"?!isNaN(Date.parse(i))||/^\d{4}-\d{2}-\d{2}/.test(i):!1,NTt=(i,e)=>{const t=e.filter(n=>BTt.includes(n.toLowerCase()));return t.length>0?i.map(n=>{const r=ke({},n);return t.forEach(o=>{r[o]&&FTt(r[o])&&(r[o]=G3e(r[o]))}),r}):i};var Bf=(i=>(i[i.Number=0]="Number",i[i.String=1]="String",i[i.Timestamp=2]="Timestamp",i[i.Date=3]="Date",i[i.Boolean=4]="Boolean",i))(Bf||{});const q3e={timestamp:2,datetime:2,timestamptz:2,date:3,time:3,number:0,double:0,bigint:0,numerical:0,ratio:0,count:0,float:0,int:0,decimal:0,string:1},Y3e=(i,e)=>G3e(i,e||Ob),qM=(i,e,t)=>{let n,r=i==null?void 0:i.find(o=>o.fieldName===e);if(r!=null&&r.type){const o=iTt(r.type);n=q3e[o]}return n===void 0&&t!==void 0&&t!==null&&(n=q3e[typeof t]),n},HTt=(i,e,t,n)=>{const r=qM(i,e,t);return r===Bf.Timestamp||r===Bf.Date?Y3e(t,n):t},$Tt=(i=[],e,t)=>{const n=qM(i,e,t);return n===Bf.Timestamp||n===Bf.Date?Ir(t).valueOf():t},zTt=(i,e)=>{if(i==null)return i;const t=Number(i);if(isNaN(t))return i;if(e!=null&&e.formatType&&(e==null?void 0:e.formatType)!=="none"){const n=e.decimalPlaces!==void 0?e.decimalPlaces:0;let r;switch(e.formatType){case"none":r=t.toString();break;case"number":{r=(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n),e.suffix&&(r=r+e.suffix);break}case"percentage_raw":{r=(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)+"%";break}case"percentage_scaled":{const o=t*100;r=(Math.round(o*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)+"%";break}default:{r=(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n),e.suffix&&(r=r+e.suffix);break}}return r}return i},F1=()=>{const{chartJson:i,controllerConfig:e,dataSourceQueryInfo:t,dataset:n,drillBy:r}=Qh(),o=()=>{var d,f,g;return r!=null&&r.visible&&((f=(d=r==null?void 0:r.config)==null?void 0:d.current)!=null&&f.selectedTimeGrain)?r.config.current.selectedTimeGrain:(g=i==null?void 0:i.dataSource)!=null&&g.type&&(e!=null&&e.timeGrain)?e.timeGrain:(i==null?void 0:i.timeGrain)||U3e.Day},a=()=>{const d=o();return LTt[d]||Ob},s=d=>{var f;return((f=i==null?void 0:i.dataFormat)==null?void 0:f[d])||{formatType:"none"}},l=(d,f)=>{let g=f||a();return Y3e(d,g)},u=(d,f)=>{var p;let g=[];return console.log("dataSourceQueryInfo",t),(p=t==null?void 0:t.fieldInfo)!=null&&p.length?g=(t==null?void 0:t.fieldInfo)||[]:g=(n==null?void 0:n.fieldInfo)||[],qM(g,d,f)};return{formatTime:l,getFieldType:u,formatValue:(d,f,g)=>{if(!d||f===null||f===void 0)return;const p=u(d,f);if(p===Bf.Timestamp||p===Bf.Date)return l(f,g);if(p===Bf.Number||p===Bf.String){const m=s(d);return zTt(f,m)}return f},getAxesType:d=>{var p;let f=d;console.log("fieldName",d),d!=null&&d.includes(PO)&&(f=((p=d==null?void 0:d.split(PO))==null?void 0:p[0])||f);const g=u(f);return g===Bf.Timestamp||g===Bf.Date?"band":g===Bf.Number?"linear":"band"}}};var NV=(i=>(i[i.Number=0]="Number",i[i.String=1]="String",i[i.Timestamp=2]="Timestamp",i[i.Date=3]="Date",i[i.Boolean=4]="Boolean",i[i.Other=5]="Other",i))(NV||{});const g3=(i,e)=>Object.prototype.toString.call(i)===`[object ${e}]`,fc=(i,e=!1)=>e?typeof i=="boolean":i===!0||i===!1||g3(i,"Boolean"),gc=i=>typeof i=="function",Cr=i=>i==null,Ne=i=>i!=null,Ps=i=>{const e=typeof i;return i!==null&&e==="object"||e==="function"},WTt=i=>typeof i=="object"&&i!==null,t6=function(i){if(!WTt(i)||!g3(i,"Object"))return!1;if(Object.getPrototypeOf(i)===null)return!0;let e=i;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(i)===e},sa=(i,e=!1)=>{const t=typeof i;return e?t==="string":t==="string"||g3(i,"String")},qt=i=>Array.isArray?Array.isArray(i):g3(i,"Array"),HV=function(i){return i!==null&&typeof i!="function"&&Number.isFinite(i.length)},VTt=i=>g3(i,"Date"),ki=(i,e=!1)=>{const t=typeof i;return e?t==="number":t==="number"||g3(i,"Number")},pc=i=>ki(i)&&Number.isFinite(i),jTt=i=>({}).toString.call(i).replace(/^\[object /,"").replace(/]$/,""),UTt=Object.prototype,GTt=function(i){const e=i&&i.constructor;return i===(typeof e=="function"&&e.prototype||UTt)},qTt=Object.prototype.hasOwnProperty;function Cu(i){if(Cr(i))return!0;if(HV(i))return!i.length;const e=jTt(i);if(e==="Map"||e==="Set")return!i.size;if(GTt(i))return!Object.keys(i).length;for(const t in i)if(qTt.call(i,t))return!1;return!0}const YM=(i,e,t)=>{const n=sa(e)?e.split("."):e;for(let r=0;r<n.length;r++)i=i?i[n[r]]:void 0;return i===void 0?t:i};function qs(i,e,t){let n;if(!Ne(i)||typeof i!="object"||e)return i;const r=qt(i),o=i.length;n=r?new Array(o):typeof i=="object"?{}:fc(i)||ki(i)||sa(i)?i:VTt(i)?new Date(+i):void 0;const a=r?void 0:Object.keys(Object(i));let s=-1;if(n)for(;++s<(a||i).length;){const l=a?a[s]:s,u=i[l];t&&t.includes(l.toString())?n[l]=u:n[l]=qs(u,e,t)}return n}function X3e(i,e,t=!1,n=!1){if(e){if(i===e)return;if(Ne(e)&&typeof e=="object"){const r=Object(e),o=[];for(const l in r)o.push(l);let{length:a}=o,s=-1;for(;a--;){const l=o[++s];!Ne(r[l])||typeof r[l]!="object"||n&&qt(i[l])?K3e(i,l,r[l]):YTt(i,e,l,t,n)}}}}function YTt(i,e,t,n=!1,r=!1){const o=i[t],a=e[t];let s=e[t],l=!0;if(qt(a)){if(n)s=[];else if(qt(o))s=o;else if(HV(o)){s=new Array(o.length);let u=-1;const c=o.length;for(;++u<c;)s[u]=o[u]}}else t6(a)?(s=o!=null?o:{},typeof o!="function"&&typeof o=="object"||(s={})):l=!1;l&&X3e(s,a,n,r),K3e(i,t,s)}function K3e(i,e,t){(t!==void 0&&!XTt(i[e],t)||t===void 0&&!(e in i))&&(i[e]=t)}function XTt(i,e){return i===e||Number.isNaN(i)&&Number.isNaN(e)}function cr(i,...e){let t=-1;const n=e.length;for(;++t<n;)X3e(i,e[t],!0);return i}const KTt=Object.prototype.hasOwnProperty;function i6(i,e){if(!i||!t6(i))return i;const t={};return e.forEach((n=>{KTt.call(i,n)&&(t[n]=i[n])})),t}function ZTt(i,e){if(!i||!t6(i))return i;const t={};return Object.keys(i).forEach((n=>{const r=i[n];let o=!1;e.forEach((a=>{(sa(a)&&a===n||a instanceof RegExp&&n.match(a))&&(o=!0)})),o||(t[n]=r)})),t}function Z3e(i){return Object.prototype.toString.call(i)}function Q3e(i){return Object.keys(i)}function n6(i,e,t){if(i===e)return!0;if(typeof i!=typeof e||i==null||e==null)return!1;if(Number.isNaN(i)&&Number.isNaN(e))return!0;if(Z3e(i)!==Z3e(e)||gc(i)||typeof i!="object")return!1;if(qt(i)){if(i.length!==e.length)return!1;for(let o=i.length-1;o>=0;o--)if(!n6(i[o],e[o]))return!1;return!0}if(!t6(i))return!1;const n=Q3e(i),r=Q3e(e);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=n.length-1;o>=0;o--)if(n[o]!=r[o])return!1;for(let o=n.length-1;o>=0;o--){const a=n[o];if(!n6(i[a],e[a]))return!1}return!0}function Ys(i){return Ne(i)?qt(i)?i:[i]:[]}function QTt(i){if(HV(i))return i[i.length-1]}const J3e=(i,e)=>{var t;if(i.length===0)return;let n=i[0];for(let r=1;r<i.length;r++){const o=i[r];((t=void 0)!==null&&t!==void 0?t:o-n)>0&&(n=o)}return n},exe=(i,e)=>{var t;if(i.length===0)return;let n=i[0];for(let r=1;r<i.length;r++){const o=i[r];((t=void 0)!==null&&t!==void 0?t:o-n)<0&&(n=o)}return n};function JTt(i,e){if(!qt(i)||!qt(e)||i.length!==e.length)return!1;for(let t=0;t<i.length;t++)if(i[t]!==e[t])return!1;return!0}function Vh(i){return i&&qt(i)?Array.from(new Set(Ys(i))):i}function e5t(i,e,t){Ne(e)||(e=i,i=0),Ne(t)||(t=1);let n=-1;const r=0|Math.max(0,Math.ceil((e-i)/t)),o=new Array(r);for(;++n<r;)o[n]=i+n*t;return o}const t5t=typeof console!="undefined";function XM(i,e,t){const n=[e].concat([].slice.call(t));t5t&&console[i].apply(console,n)}var j0;(function(i){i[i.None=0]="None",i[i.Error=1]="Error",i[i.Warn=2]="Warn",i[i.Info=3]="Info",i[i.Debug=4]="Debug"})(j0||(j0={}));let txe=class sf{static getInstance(e,t){return sf._instance&&ki(e)?sf._instance.level(e):sf._instance||(sf._instance=new sf(e,t)),sf._instance}static setInstance(e){return sf._instance=e}static setInstanceLevel(e){sf._instance?sf._instance.level(e):sf._instance=new sf(e)}static clearInstance(){sf._instance=null}constructor(e=j0.None,t){this._onErrorHandler=[],this._level=e,this._method=t}addErrorHandler(e){this._onErrorHandler.find((t=>t===e))||this._onErrorHandler.push(e)}removeErrorHandler(e){const t=this._onErrorHandler.findIndex((n=>n===e));t<0||this._onErrorHandler.splice(t,1)}callErrorHandler(...e){this._onErrorHandler.forEach((t=>t(...e)))}canLogInfo(){return this._level>=j0.Info}canLogDebug(){return this._level>=j0.Debug}canLogError(){return this._level>=j0.Error}canLogWarn(){return this._level>=j0.Warn}level(e){return arguments.length?(this._level=+e,this):this._level}error(...e){var t;return this._level>=j0.Error&&(this._onErrorHandler.length?this.callErrorHandler(...e):XM((t=this._method)!==null&&t!==void 0?t:"error","ERROR",e)),this}warn(...e){return this._level>=j0.Warn&&XM(this._method||"warn","WARN",e),this}info(...e){return this._level>=j0.Info&&XM(this._method||"log","INFO",e),this}debug(...e){return this._level>=j0.Debug&&XM(this._method||"log","DEBUG",e),this}};txe._instance=null;function KM(i){return i*(Math.PI/180)}const ixe=i=>{let e=i.charCodeAt(0),t=i.length===2?i.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=t&&t<=57343&&(e&=1023,t&=1023,n=e<<10|t,n+=65536),n===12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n===8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n===172||n===175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n===161||n===164||167<=n&&n<=168||n===170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n===198||n===208||215<=n&&n<=216||222<=n&&n<=225||n===230||232<=n&&n<=234||236<=n&&n<=237||n===240||242<=n&&n<=243||247<=n&&n<=250||n===252||n===254||n===257||n===273||n===275||n===283||294<=n&&n<=295||n===299||305<=n&&n<=307||n===312||319<=n&&n<=322||n===324||328<=n&&n<=331||n===333||338<=n&&n<=339||358<=n&&n<=359||n===363||n===462||n===464||n===466||n===468||n===470||n===472||n===474||n===476||n===593||n===609||n===708||n===711||713<=n&&n<=715||n===717||n===720||728<=n&&n<=731||n===733||n===735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n===1025||1040<=n&&n<=1103||n===1105||n===8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n===8240||8242<=n&&n<=8243||n===8245||n===8251||n===8254||n===8308||n===8319||8321<=n&&n<=8324||n===8364||n===8451||n===8453||n===8457||n===8467||n===8470||8481<=n&&n<=8482||n===8486||n===8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n===8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n===8658||n===8660||n===8679||n===8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n===8715||n===8719||n===8721||n===8725||n===8730||8733<=n&&n<=8736||n===8739||n===8741||8743<=n&&n<=8748||n===8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n===8776||n===8780||n===8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n===8853||n===8857||n===8869||n===8895||n===8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n===9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n===9711||9733<=n&&n<=9734||n===9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n===9756||n===9758||n===9792||n===9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n===9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n===9955||9960<=n&&n<=9983||n===10045||n===10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n===65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};function i5t(i,e={},t){t||(t=1);const{fontStyle:n=e.fontStyle,fontVariant:r=e.fontVariant,fontWeight:o=e.fontWeight,fontSize:a=e.fontSize,fontFamily:s=e.fontFamily}=i;return(n?n+" ":"")+(r?r+" ":"")+(o?o+" ":"")+a*t+"px "+(s||"sans-serif")}class Ad{constructor(e,t){this._numberCharSize=null,this._fullCharSize=null,this._letterCharSize=null,this._specialCharSizeMap={},this._canvas=null,this._context=null,this._contextSaved=!1,this._notSupportCanvas=!1,this._notSupportVRender=!1,this._userSpec={},this.specialCharSet=`-/: .,@%'"~`,this._option=e,this._userSpec=t!=null?t:{},this.textSpec=this._initSpec(),Ne(e.specialCharSet)&&(this.specialCharSet=e.specialCharSet),this._standardMethod=Ne(e.getTextBounds)?this.fullMeasure.bind(this):this.measureWithNaiveCanvas.bind(this)}initContext(){if(this._notSupportCanvas)return!1;if(Cr(this._canvas)&&(Ne(this._option.getCanvasForMeasure)&&(this._canvas=this._option.getCanvasForMeasure()),Cr(this._canvas)&&typeof window!="undefined"&&window.document!==void 0&&globalThis&&Ne(globalThis.document)&&(this._canvas=globalThis.document.createElement("canvas"))),Cr(this._context)&&Ne(this._canvas)){const e=this._canvas.getContext("2d");Ne(e)&&(e.save(),e.font=i5t(this.textSpec),this._contextSaved=!0,this._context=e)}return!Cr(this._context)||(this._notSupportCanvas=!0,!1)}_initSpec(){var e,t,n;const{defaultFontParams:r={}}=this._option,{fontStyle:o=r.fontStyle,fontVariant:a=r.fontVariant,fontWeight:s=(e=r.fontWeight)!==null&&e!==void 0?e:"normal",fontSize:l=(t=r.fontSize)!==null&&t!==void 0?t:12,fontFamily:u=(n=r.fontFamily)!==null&&n!==void 0?n:"sans-serif",align:c,textAlign:h=c!=null?c:"center",baseline:d,textBaseline:f=d!=null?d:"middle",ellipsis:g,limit:p}=this._userSpec;let{lineHeight:m=l}=this._userSpec;if(sa(m)&&m[m.length-1]==="%"){const v=Number.parseFloat(m.substring(0,m.length-1))/100;m=l*v}return{fontStyle:o,fontVariant:a,fontFamily:u,fontSize:l,fontWeight:s,textAlign:h,textBaseline:f,ellipsis:g,limit:p,lineHeight:m}}measure(e,t){switch(t){case"vrender":case"canopus":return this.fullMeasure(e);case"canvas":return this.measureWithNaiveCanvas(e);case"simple":return this.quickMeasureWithoutCanvas(e);default:return this.quickMeasure(e)}}fullMeasure(e){if(Cr(e))return{width:0,height:0};if(Cr(this._option.getTextBounds)||!this._notSupportVRender)return this.measureWithNaiveCanvas(e);const{fontFamily:t,fontSize:n,fontWeight:r,textAlign:o,textBaseline:a,ellipsis:s,limit:l,lineHeight:u}=this.textSpec;let c;try{const h=this._option.getTextBounds({text:e,fontFamily:t,fontSize:n,fontWeight:r,textAlign:o,textBaseline:a,ellipsis:!!s,maxLineWidth:l||1/0,lineHeight:u});c={width:h.width(),height:h.height()}}catch(h){this._notSupportVRender=!0,c=this.measureWithNaiveCanvas(e)}return c}measureWithNaiveCanvas(e){return this._measureReduce(e,this._measureWithNaiveCanvas.bind(this))}_measureWithNaiveCanvas(e){var t;if(!this.initContext())return this._quickMeasureWithoutCanvas(e);const n=this._context.measureText(e),{fontSize:r,lineHeight:o}=this.textSpec;return{width:n.width,height:(t=o)!==null&&t!==void 0?t:r,fontBoundingBoxAscent:n.fontBoundingBoxAscent,fontBoundingBoxDescent:n.fontBoundingBoxDescent}}quickMeasure(e){return this._measureReduce(e,this._quickMeasure.bind(this))}_quickMeasure(e){const t={width:0,height:0};for(let n=0;n<e.length;n++){const r=e[n];let o=this._measureSpecialChar(r);Cr(o)&&Ad.NUMBERS_CHAR_SET.includes(r)&&(o=this._measureNumberChar()),Cr(o)&&["F","W"].includes(ixe(r))&&(o=this._measureFullSizeChar()),Cr(o)&&(o=this._measureLetterChar()),t.width+=o.width,t.height=Math.max(t.height,o.height),!Cr(o.fontBoundingBoxAscent)&&(t.fontBoundingBoxAscent=o.fontBoundingBoxAscent),!Cr(o.fontBoundingBoxDescent)&&(t.fontBoundingBoxDescent=o.fontBoundingBoxDescent)}return t}quickMeasureWithoutCanvas(e){return this._measureReduce(e,this._quickMeasureWithoutCanvas.bind(this))}_quickMeasureWithoutCanvas(e){var t;const n={width:0,height:0},{fontSize:r,lineHeight:o}=this.textSpec;for(let a=0;a<e.length;a++){const s=e[a],l=["F","W"].includes(ixe(s))?1:.53;n.width+=l*r}return n.height=(t=o)!==null&&t!==void 0?t:r,n}_measureReduce(e,t){var n;const{fontSize:r,lineHeight:o}=this.textSpec,a={width:0,height:0};if(Cr(e))return a;if(qt(e)){const s=e.filter(Ne).map((l=>l.toString()));return s.length===0?a:s.length===1?t(s[0]):{width:s.reduce(((l,u)=>Math.max(l,t(u).width)),0),height:s.length*(((n=o)!==null&&n!==void 0?n:r)+1)+1}}return t(e.toString())}_measureNumberChar(){if(Cr(this._numberCharSize)){const e=this._standardMethod(Ad.NUMBERS_CHAR_SET);this._numberCharSize={width:e.width/Ad.NUMBERS_CHAR_SET.length,height:e.height,fontBoundingBoxAscent:e.fontBoundingBoxAscent,fontBoundingBoxDescent:e.fontBoundingBoxDescent}}return this._numberCharSize}_measureFullSizeChar(){return Cr(this._fullCharSize)&&(this._fullCharSize=this._standardMethod(Ad.FULL_SIZE_CHAR)),this._fullCharSize}_measureLetterChar(){if(Cr(this._letterCharSize)){const e=this._standardMethod(Ad.ALPHABET_CHAR_SET);this._letterCharSize={width:e.width/Ad.ALPHABET_CHAR_SET.length,height:e.height,fontBoundingBoxAscent:e.fontBoundingBoxAscent,fontBoundingBoxDescent:e.fontBoundingBoxDescent}}return this._letterCharSize}_measureSpecialChar(e){return Ne(this._specialCharSizeMap[e])?this._specialCharSizeMap[e]:this.specialCharSet.includes(e)?(this._specialCharSizeMap[e]=this._standardMethod(e),this._specialCharSizeMap[e]):null}release(){Ne(this._canvas)&&(this._canvas=null),Ne(this._context)&&(this._contextSaved&&(this._context.restore(),this._contextSaved=!1),this._context=null)}}Ad.ALPHABET_CHAR_SET="abcdefghijklmnopqrstuvwxyz",Ad.NUMBERS_CHAR_SET="0123456789",Ad.FULL_SIZE_CHAR="字";function n5t(i,e,t){const{x1:n,y1:r,x2:o,y2:a}=e;return t.onlyTranslate()?(i!==e&&i.setValue(e.x1,e.y1,e.x2,e.y2),i.translate(t.e,t.f),e):(i.clear(),i.add(t.a*n+t.c*r+t.e,t.b*n+t.d*r+t.f),i.add(t.a*o+t.c*r+t.e,t.b*o+t.d*r+t.f),i.add(t.a*o+t.c*a+t.e,t.b*o+t.d*a+t.f),i.add(t.a*n+t.c*a+t.e,t.b*n+t.d*a+t.f),e)}class Sv{constructor(e){e?this.setValue(e.x1,e.y1,e.x2,e.y2):this.clear()}clone(){return new Sv(this)}clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this}empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE}equals(e){return this.x1===e.x1&&this.y1===e.y1&&this.x2===e.x2&&this.y2===e.y2}setValue(e=0,t=0,n=0,r=0){return this.x1=e,this.y1=t,this.x2=n,this.y2=r,this}set(e=0,t=0,n=0,r=0){return n<e?(this.x2=e,this.x1=n):(this.x1=e,this.x2=n),r<t?(this.y2=t,this.y1=r):(this.y1=t,this.y2=r),this}add(e=0,t=0){return e<this.x1&&(this.x1=e),t<this.y1&&(this.y1=t),e>this.x2&&(this.x2=e),t>this.y2&&(this.y2=t),this}expand(e=0){return qt(e)?(this.y1-=e[0],this.x2+=e[1],this.y2+=e[2],this.x1-=e[3]):(this.x1-=e,this.y1-=e,this.x2+=e,this.y2+=e),this}round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this}translate(e=0,t=0){return this.x1+=e,this.x2+=e,this.y1+=t,this.y2+=t,this}rotate(e=0,t=0,n=0){const r=this.rotatedPoints(e,t,n);return this.clear().add(r[0],r[1]).add(r[2],r[3]).add(r[4],r[5]).add(r[6],r[7])}scale(e=0,t=0,n=0,r=0){const o=this.scalePoints(e,t,n,r);return this.clear().add(o[0],o[1]).add(o[2],o[3])}union(e){return e.x1<this.x1&&(this.x1=e.x1),e.y1<this.y1&&(this.y1=e.y1),e.x2>this.x2&&(this.x2=e.x2),e.y2>this.y2&&(this.y2=e.y2),this}intersect(e){return e.x1>this.x1&&(this.x1=e.x1),e.y1>this.y1&&(this.y1=e.y1),e.x2<this.x2&&(this.x2=e.x2),e.y2<this.y2&&(this.y2=e.y2),this}encloses(e){return e&&this.x1<=e.x1&&this.x2>=e.x2&&this.y1<=e.y1&&this.y2>=e.y2}alignsWith(e){return e&&(this.x1===e.x1||this.x2===e.x2||this.y1===e.y1||this.y2===e.y2)}intersects(e){return e&&!(this.x2<e.x1||this.x1>e.x2||this.y2<e.y1||this.y1>e.y2)}contains(e=0,t=0){return!(e<this.x1||e>this.x2||t<this.y1||t>this.y2)}containsPoint(e){return!(e.x<this.x1||e.x>this.x2||e.y<this.y1||e.y>this.y2)}width(){return this.empty()?0:this.x2-this.x1}height(){return this.empty()?0:this.y2-this.y1}scaleX(e=0){return this.x1*=e,this.x2*=e,this}scaleY(e=0){return this.y1*=e,this.y2*=e,this}transformWithMatrix(e){return n5t(this,this,e),this}copy(e){return this.x1=e.x1,this.y1=e.y1,this.x2=e.x2,this.y2=e.y2,this}rotatedPoints(e,t,n){const{x1:r,y1:o,x2:a,y2:s}=this,l=Math.cos(e),u=Math.sin(e),c=t-t*l+n*u,h=n-t*u-n*l;return[l*r-u*o+c,u*r+l*o+h,l*r-u*s+c,u*r+l*s+h,l*a-u*o+c,u*a+l*o+h,l*a-u*s+c,u*a+l*s+h]}scalePoints(e,t,n,r){const{x1:o,y1:a,x2:s,y2:l}=this;return[e*o+(1-e)*n,t*a+(1-t)*r,e*s+(1-e)*n,t*l+(1-t)*r]}}class r6 extends Sv{}function nxe(i,e){return function(){return i.apply(e,arguments)}}const{toString:r5t}=Object.prototype,{getPrototypeOf:$V}=Object,{iterator:ZM,toStringTag:rxe}=Symbol,QM=(i=>e=>{const t=r5t.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),U0=i=>(i=i.toLowerCase(),e=>QM(e)===i),JM=i=>e=>typeof e===i,{isArray:p3}=Array,m3=JM("undefined");function o6(i){return i!==null&&!m3(i)&&i.constructor!==null&&!m3(i.constructor)&&jh(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const oxe=U0("ArrayBuffer");function o5t(i){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(i):e=i&&i.buffer&&oxe(i.buffer),e}const a5t=JM("string"),jh=JM("function"),axe=JM("number"),a6=i=>i!==null&&typeof i=="object",s5t=i=>i===!0||i===!1,ek=i=>{if(QM(i)!=="object")return!1;const e=$V(i);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(rxe in i)&&!(ZM in i)},l5t=i=>{if(!a6(i)||o6(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch(e){return!1}},u5t=U0("Date"),c5t=U0("File"),h5t=U0("Blob"),d5t=U0("FileList"),f5t=i=>a6(i)&&jh(i.pipe),g5t=i=>{let e;return i&&(typeof FormData=="function"&&i instanceof FormData||jh(i.append)&&((e=QM(i))==="formdata"||e==="object"&&jh(i.toString)&&i.toString()==="[object FormData]"))},p5t=U0("URLSearchParams"),[m5t,v5t,b5t,y5t]=["ReadableStream","Request","Response","Headers"].map(U0),_5t=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s6(i,e,{allOwnKeys:t=!1}={}){if(i===null||typeof i=="undefined")return;let n,r;if(typeof i!="object"&&(i=[i]),p3(i))for(n=0,r=i.length;n<r;n++)e.call(null,i[n],n,i);else{if(o6(i))return;const o=t?Object.getOwnPropertyNames(i):Object.keys(i),a=o.length;let s;for(n=0;n<a;n++)s=o[n],e.call(null,i[s],s,i)}}function sxe(i,e){if(o6(i))return null;e=e.toLowerCase();const t=Object.keys(i);let n=t.length,r;for(;n-- >0;)if(r=t[n],e===r.toLowerCase())return r;return null}const Ib=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,lxe=i=>!m3(i)&&i!==Ib;function zV(){const{caseless:i,skipUndefined:e}=lxe(this)&&this||{},t={},n=(r,o)=>{const a=i&&sxe(t,o)||o;ek(t[a])&&ek(r)?t[a]=zV(t[a],r):ek(r)?t[a]=zV({},r):p3(r)?t[a]=r.slice():(!e||!m3(r))&&(t[a]=r)};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&s6(arguments[r],n);return t}const C5t=(i,e,t,{allOwnKeys:n}={})=>(s6(e,(r,o)=>{t&&jh(r)?i[o]=nxe(r,t):i[o]=r},{allOwnKeys:n}),i),x5t=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),S5t=(i,e,t,n)=>{i.prototype=Object.create(e.prototype,n),i.prototype.constructor=i,Object.defineProperty(i,"super",{value:e.prototype}),t&&Object.assign(i.prototype,t)},w5t=(i,e,t,n)=>{let r,o,a;const s={};if(e=e||{},i==null)return e;do{for(r=Object.getOwnPropertyNames(i),o=r.length;o-- >0;)a=r[o],(!n||n(a,i,e))&&!s[a]&&(e[a]=i[a],s[a]=!0);i=t!==!1&&$V(i)}while(i&&(!t||t(i,e))&&i!==Object.prototype);return e},E5t=(i,e,t)=>{i=String(i),(t===void 0||t>i.length)&&(t=i.length),t-=e.length;const n=i.indexOf(e,t);return n!==-1&&n===t},A5t=i=>{if(!i)return null;if(p3(i))return i;let e=i.length;if(!axe(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=i[e];return t},T5t=(i=>e=>i&&e instanceof i)(typeof Uint8Array!="undefined"&&$V(Uint8Array)),R5t=(i,e)=>{const n=(i&&i[ZM]).call(i);let r;for(;(r=n.next())&&!r.done;){const o=r.value;e.call(i,o[0],o[1])}},M5t=(i,e)=>{let t;const n=[];for(;(t=i.exec(e))!==null;)n.push(t);return n},k5t=U0("HTMLFormElement"),O5t=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),uxe=(({hasOwnProperty:i})=>(e,t)=>i.call(e,t))(Object.prototype),I5t=U0("RegExp"),cxe=(i,e)=>{const t=Object.getOwnPropertyDescriptors(i),n={};s6(t,(r,o)=>{let a;(a=e(r,o,i))!==!1&&(n[o]=a||r)}),Object.defineProperties(i,n)},D5t=i=>{cxe(i,(e,t)=>{if(jh(i)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=i[t];if(jh(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},P5t=(i,e)=>{const t={},n=r=>{r.forEach(o=>{t[o]=!0})};return p3(i)?n(i):n(String(i).split(e)),t},L5t=()=>{},B5t=(i,e)=>i!=null&&Number.isFinite(i=+i)?i:e;function F5t(i){return!!(i&&jh(i.append)&&i[rxe]==="FormData"&&i[ZM])}const N5t=i=>{const e=new Array(10),t=(n,r)=>{if(a6(n)){if(e.indexOf(n)>=0)return;if(o6(n))return n;if(!("toJSON"in n)){e[r]=n;const o=p3(n)?[]:{};return s6(n,(a,s)=>{const l=t(a,r+1);!m3(l)&&(o[s]=l)}),e[r]=void 0,o}}return n};return t(i,0)},H5t=U0("AsyncFunction"),$5t=i=>i&&(a6(i)||jh(i))&&jh(i.then)&&jh(i.catch),hxe=((i,e)=>i?setImmediate:e?((t,n)=>(Ib.addEventListener("message",({source:r,data:o})=>{r===Ib&&o===t&&n.length&&n.shift()()},!1),r=>{n.push(r),Ib.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",jh(Ib.postMessage)),z5t=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Ib):typeof process!="undefined"&&process.nextTick||hxe,li={isArray:p3,isArrayBuffer:oxe,isBuffer:o6,isFormData:g5t,isArrayBufferView:o5t,isString:a5t,isNumber:axe,isBoolean:s5t,isObject:a6,isPlainObject:ek,isEmptyObject:l5t,isReadableStream:m5t,isRequest:v5t,isResponse:b5t,isHeaders:y5t,isUndefined:m3,isDate:u5t,isFile:c5t,isBlob:h5t,isRegExp:I5t,isFunction:jh,isStream:f5t,isURLSearchParams:p5t,isTypedArray:T5t,isFileList:d5t,forEach:s6,merge:zV,extend:C5t,trim:_5t,stripBOM:x5t,inherits:S5t,toFlatObject:w5t,kindOf:QM,kindOfTest:U0,endsWith:E5t,toArray:A5t,forEachEntry:R5t,matchAll:M5t,isHTMLForm:k5t,hasOwnProperty:uxe,hasOwnProp:uxe,reduceDescriptors:cxe,freezeMethods:D5t,toObjectSet:P5t,toCamelCase:O5t,noop:L5t,toFiniteNumber:B5t,findKey:sxe,global:Ib,isContextDefined:lxe,isSpecCompliantForm:F5t,toJSONObject:N5t,isAsyncFn:H5t,isThenable:$5t,setImmediate:hxe,asap:z5t,isIterable:i=>i!=null&&jh(i[ZM])};function io(i,e,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=i,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}li.inherits(io,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:li.toJSONObject(this.config),code:this.code,status:this.status}}});const dxe=io.prototype,fxe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(i=>{fxe[i]={value:i}}),Object.defineProperties(io,fxe),Object.defineProperty(dxe,"isAxiosError",{value:!0}),io.from=(i,e,t,n,r,o)=>{const a=Object.create(dxe);li.toFlatObject(i,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const s=i&&i.message?i.message:"Error",l=e==null&&i?i.code:e;return io.call(a,s,l,t,n,r),i&&a.cause==null&&Object.defineProperty(a,"cause",{value:i,configurable:!0}),a.name=i&&i.name||"Error",o&&Object.assign(a,o),a};const W5t=null;function WV(i){return li.isPlainObject(i)||li.isArray(i)}function gxe(i){return li.endsWith(i,"[]")?i.slice(0,-2):i}function pxe(i,e,t){return i?i.concat(e).map(function(r,o){return r=gxe(r),!t&&o?"["+r+"]":r}).join(t?".":""):e}function V5t(i){return li.isArray(i)&&!i.some(WV)}const j5t=li.toFlatObject(li,{},null,function(e){return/^is[A-Z]/.test(e)});function tk(i,e,t){if(!li.isObject(i))throw new TypeError("target must be an object");e=e||new FormData,t=li.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!li.isUndefined(m[p])});const n=t.metaTokens,r=t.visitor||c,o=t.dots,a=t.indexes,l=(t.Blob||typeof Blob!="undefined"&&Blob)&&li.isSpecCompliantForm(e);if(!li.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(li.isDate(g))return g.toISOString();if(li.isBoolean(g))return g.toString();if(!l&&li.isBlob(g))throw new io("Blob is not supported. Use a Buffer instead.");return li.isArrayBuffer(g)||li.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,p,m){let v=g;if(g&&!m&&typeof g=="object"){if(li.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(li.isArray(g)&&V5t(g)||(li.isFileList(g)||li.endsWith(p,"[]"))&&(v=li.toArray(g)))return p=gxe(p),v.forEach(function(y,_){!(li.isUndefined(y)||y===null)&&e.append(a===!0?pxe([p],_,o):a===null?p:p+"[]",u(y))}),!1}return WV(g)?!0:(e.append(pxe(m,p,o),u(g)),!1)}const h=[],d=Object.assign(j5t,{defaultVisitor:c,convertValue:u,isVisitable:WV});function f(g,p){if(!li.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(g),li.forEach(g,function(v,b){(!(li.isUndefined(v)||v===null)&&r.call(e,v,li.isString(b)?b.trim():b,p,d))===!0&&f(v,p?p.concat(b):[b])}),h.pop()}}if(!li.isObject(i))throw new TypeError("data must be an object");return f(i),e}function mxe(i){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function VV(i,e){this._pairs=[],i&&tk(i,this,e)}const vxe=VV.prototype;vxe.append=function(e,t){this._pairs.push([e,t])},vxe.toString=function(e){const t=e?function(n){return e.call(this,n,mxe)}:mxe;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function U5t(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bxe(i,e,t){if(!e)return i;const n=t&&t.encode||U5t;li.isFunction(t)&&(t={serialize:t});const r=t&&t.serialize;let o;if(r?o=r(e,t):o=li.isURLSearchParams(e)?e.toString():new VV(e,t).toString(n),o){const a=i.indexOf("#");a!==-1&&(i=i.slice(0,a)),i+=(i.indexOf("?")===-1?"?":"&")+o}return i}class yxe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){li.forEach(this.handlers,function(n){n!==null&&e(n)})}}const _xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G5t={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:VV,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},jV=typeof window!="undefined"&&typeof document!="undefined",UV=typeof navigator=="object"&&navigator||void 0,q5t=jV&&(!UV||["ReactNative","NativeScript","NS"].indexOf(UV.product)<0),Y5t=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",X5t=jV&&window.location.href||"http://localhost",Wu=ke(ke({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jV,hasStandardBrowserEnv:q5t,hasStandardBrowserWebWorkerEnv:Y5t,navigator:UV,origin:X5t},Symbol.toStringTag,{value:"Module"}))),G5t);function K5t(i,e){return tk(i,new Wu.classes.URLSearchParams,ke({visitor:function(t,n,r,o){return Wu.isNode&&li.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Z5t(i){return li.matchAll(/\w+|\[(\w*)]/g,i).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Q5t(i){const e={},t=Object.keys(i);let n;const r=t.length;let o;for(n=0;n<r;n++)o=t[n],e[o]=i[o];return e}function Cxe(i){function e(t,n,r,o){let a=t[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=t.length;return a=!a&&li.isArray(r)?r.length:a,l?(li.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):((!r[a]||!li.isObject(r[a]))&&(r[a]=[]),e(t,n,r[a],o)&&li.isArray(r[a])&&(r[a]=Q5t(r[a])),!s)}if(li.isFormData(i)&&li.isFunction(i.entries)){const t={};return li.forEachEntry(i,(n,r)=>{e(Z5t(n),r,t,0)}),t}return null}function J5t(i,e,t){if(li.isString(i))try{return(e||JSON.parse)(i),li.trim(i)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(i)}const l6={transitional:_xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=li.isObject(e);if(o&&li.isHTMLForm(e)&&(e=new FormData(e)),li.isFormData(e))return r?JSON.stringify(Cxe(e)):e;if(li.isArrayBuffer(e)||li.isBuffer(e)||li.isStream(e)||li.isFile(e)||li.isBlob(e)||li.isReadableStream(e))return e;if(li.isArrayBufferView(e))return e.buffer;if(li.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return K5t(e,this.formSerializer).toString();if((s=li.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return tk(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),J5t(e)):e}],transformResponse:[function(e){const t=this.transitional||l6.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(li.isResponse(e)||li.isReadableStream(e))return e;if(e&&li.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?io.from(s,io.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wu.classes.FormData,Blob:Wu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};li.forEach(["delete","get","head","post","put","patch"],i=>{l6.headers[i]={}});const e8t=li.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"]),t8t=i=>{const e={};let t,n,r;return i&&i.split(`
|
|
540
|
+
*/return i.NODE_ENV!=="production"&&(function(){function e(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=ce,n=H3e(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,s=t.useEffect,l=t.useMemo,u=t.useDebugValue;FV.useSyncExternalStoreWithSelector=function(c,h,d,f,g){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=l(function(){function b(w){if(!y){if(y=!0,_=w,w=f(w),g!==void 0&&m.hasValue){var E=m.value;if(g(E,w))return S=E}return S=w}if(E=S,r(_,w))return E;var A=f(w);return g!==void 0&&g(E,A)?(_=w,E):(_=w,S=A)}var y=!1,_,S,x=d===void 0?null:d;return[function(){return b(h())},x===null?void 0:function(){return b(x())}]},[h,d,f,g]);var v=o(c,p[0],p[1]);return s(function(){m.hasValue=!0,m.value=v},[v]),u(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),FV}var W3e;function ATt(){if(W3e)return VM.exports;W3e=1;var i={};return i.NODE_ENV==="production"?VM.exports=wTt():VM.exports=ETt(),VM.exports}var TTt=ATt();const RTt=Xr(TTt),{useDebugValue:MTt}=ce,{useSyncExternalStoreWithSelector:kTt}=RTt,OTt=i=>i;function ITt(i,e=OTt,t){const n=kTt(i.subscribe,i.getState,i.getServerState||i.getInitialState,e,t);return MTt(n),n}var UM={exports:{}},DTt=UM.exports,V3e;function j3e(){return V3e||(V3e=1,(function(i,e){(function(t,n){i.exports=n()})(DTt,(function(){var t=1e3,n=6e4,r=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",h="month",d="quarter",f="year",g="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var L=["th","st","nd","rd"],F=P%100;return"["+P+(L[(F-20)%10]||L[F]||L[0])+"]"}},y=function(P,L,F){var W=String(P);return!W||W.length>=L?P:""+Array(L+1-W.length).join(F)+P},_={s:y,z:function(P){var L=-P.utcOffset(),F=Math.abs(L),W=Math.floor(F/60),V=F%60;return(L<=0?"+":"-")+y(W,2,"0")+":"+y(V,2,"0")},m:function P(L,F){if(L.date()<F.date())return-P(F,L);var W=12*(F.year()-L.year())+(F.month()-L.month()),V=L.clone().add(W,h),G=F-V<0,z=L.clone().add(W+(G?-1:1),h);return+(-(W+(F-V)/(G?V-z:z-V))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:h,y:f,w:c,d:u,D:g,h:l,m:s,s:a,ms:o,Q:d}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},S="en",x={};x[S]=b;var w="$isDayjsObject",E=function(P){return P instanceof k||!(!P||!P[w])},A=function P(L,F,W){var V;if(!L)return S;if(typeof L=="string"){var G=L.toLowerCase();x[G]&&(V=G),F&&(x[G]=F,V=G);var z=L.split("-");if(!V&&z.length>1)return P(z[0])}else{var X=L.name;x[X]=L,V=X}return!W&&V&&(S=V),V||!W&&S},T=function(P,L){if(E(P))return P.clone();var F=typeof L=="object"?L:{};return F.date=P,F.args=arguments,new k(F)},R=_;R.l=A,R.i=E,R.w=function(P,L){return T(P,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var k=(function(){function P(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[w]=!0}var L=P.prototype;return L.parse=function(F){this.$d=(function(W){var V=W.date,G=W.utc;if(V===null)return new Date(NaN);if(R.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var z=V.match(m);if(z){var X=z[2]-1||0,j=(z[7]||"0").substring(0,3);return G?new Date(Date.UTC(z[1],X,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)):new Date(z[1],X,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)}}return new Date(V)})(F),this.init()},L.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},L.$utils=function(){return R},L.isValid=function(){return this.$d.toString()!==p},L.isSame=function(F,W){var V=T(F);return this.startOf(W)<=V&&V<=this.endOf(W)},L.isAfter=function(F,W){return T(F)<this.startOf(W)},L.isBefore=function(F,W){return this.endOf(W)<T(F)},L.$g=function(F,W,V){return R.u(F)?this[W]:this.set(V,F)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(F,W){var V=this,G=!!R.u(W)||W,z=R.p(F),X=function(he,ge){var pe=R.w(V.$u?Date.UTC(V.$y,ge,he):new Date(V.$y,ge,he),V);return G?pe:pe.endOf(u)},j=function(he,ge){return R.w(V.toDate()[he].apply(V.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ge)),V)},H=this.$W,J=this.$M,re=this.$D,se="set"+(this.$u?"UTC":"");switch(z){case f:return G?X(1,0):X(31,11);case h:return G?X(1,J):X(0,J+1);case c:var ie=this.$locale().weekStart||0,ue=(H<ie?H+7:H)-ie;return X(G?re-ue:re+(6-ue),J);case u:case g:return j(se+"Hours",0);case l:return j(se+"Minutes",1);case s:return j(se+"Seconds",2);case a:return j(se+"Milliseconds",3);default:return this.clone()}},L.endOf=function(F){return this.startOf(F,!1)},L.$set=function(F,W){var V,G=R.p(F),z="set"+(this.$u?"UTC":""),X=(V={},V[u]=z+"Date",V[g]=z+"Date",V[h]=z+"Month",V[f]=z+"FullYear",V[l]=z+"Hours",V[s]=z+"Minutes",V[a]=z+"Seconds",V[o]=z+"Milliseconds",V)[G],j=G===u?this.$D+(W-this.$W):W;if(G===h||G===f){var H=this.clone().set(g,1);H.$d[X](j),H.init(),this.$d=H.set(g,Math.min(this.$D,H.daysInMonth())).$d}else X&&this.$d[X](j);return this.init(),this},L.set=function(F,W){return this.clone().$set(F,W)},L.get=function(F){return this[R.p(F)]()},L.add=function(F,W){var V,G=this;F=Number(F);var z=R.p(W),X=function(J){var re=T(G);return R.w(re.date(re.date()+Math.round(J*F)),G)};if(z===h)return this.set(h,this.$M+F);if(z===f)return this.set(f,this.$y+F);if(z===u)return X(1);if(z===c)return X(7);var j=(V={},V[s]=n,V[l]=r,V[a]=t,V)[z]||1,H=this.$d.getTime()+F*j;return R.w(H,this)},L.subtract=function(F,W){return this.add(-1*F,W)},L.format=function(F){var W=this,V=this.$locale();if(!this.isValid())return V.invalidDate||p;var G=F||"YYYY-MM-DDTHH:mm:ssZ",z=R.z(this),X=this.$H,j=this.$m,H=this.$M,J=V.weekdays,re=V.months,se=V.meridiem,ie=function(ge,pe,me,fe){return ge&&(ge[pe]||ge(W,G))||me[pe].slice(0,fe)},ue=function(ge){return R.s(X%12||12,ge,"0")},he=se||function(ge,pe,me){var fe=ge<12?"AM":"PM";return me?fe.toLowerCase():fe};return G.replace(v,(function(ge,pe){return pe||(function(me){switch(me){case"YY":return String(W.$y).slice(-2);case"YYYY":return R.s(W.$y,4,"0");case"M":return H+1;case"MM":return R.s(H+1,2,"0");case"MMM":return ie(V.monthsShort,H,re,3);case"MMMM":return ie(re,H);case"D":return W.$D;case"DD":return R.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return ie(V.weekdaysMin,W.$W,J,2);case"ddd":return ie(V.weekdaysShort,W.$W,J,3);case"dddd":return J[W.$W];case"H":return String(X);case"HH":return R.s(X,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return he(X,j,!0);case"A":return he(X,j,!1);case"m":return String(j);case"mm":return R.s(j,2,"0");case"s":return String(W.$s);case"ss":return R.s(W.$s,2,"0");case"SSS":return R.s(W.$ms,3,"0");case"Z":return z}return null})(ge)||z.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(F,W,V){var G,z=this,X=R.p(W),j=T(F),H=(j.utcOffset()-this.utcOffset())*n,J=this-j,re=function(){return R.m(z,j)};switch(X){case f:G=re()/12;break;case h:G=re();break;case d:G=re()/3;break;case c:G=(J-H)/6048e5;break;case u:G=(J-H)/864e5;break;case l:G=J/r;break;case s:G=J/n;break;case a:G=J/t;break;default:G=J}return V?G:R.a(G)},L.daysInMonth=function(){return this.endOf(h).$D},L.$locale=function(){return x[this.$L]},L.locale=function(F,W){if(!F)return this.$L;var V=this.clone(),G=A(F,W,!0);return G&&(V.$L=G),V},L.clone=function(){return R.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},P})(),O=k.prototype;return T.prototype=O,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",h],["$y",f],["$D",g]].forEach((function(P){O[P[1]]=function(L){return this.$g(L,P[0],P[1])}})),T.extend=function(P,L){return P.$i||(P(L,k,T),P.$i=!0),T},T.locale=A,T.isDayjs=E,T.unix=function(P){return T(1e3*P)},T.en=x[S],T.Ls=x,T.p={},T}))})(UM)),UM.exports}var PTt=j3e();const Ir=Xr(PTt),Ob="YYYY/MM/DD HH:mm:ss",GM="YYYY-MM-DD HH:mm:ss";var U3e=(i=>(i.Second="second",i.Minute="minute",i.Hour="hour",i.Day="day",i.Week="week",i.Month="month",i.Quarter="quarter",i.Year="year",i))(U3e||{});const LTt={second:"YYYY/MM/DD HH:mm:ss",minute:"YYYY/MM/DD HH:mm",hour:"YYYY/MM/DD HH:mm",day:"YYYY/MM/DD",week:"YYYY/MM/DD",month:"YYYY/MM",quarter:"YYYY/MM",year:"YYYY"},G3e=(i,e=Ob)=>{let t=null;if(typeof i=="number")i>=1e9&&i<=2e9?t=Ir(i*1e3):t=Ir(i);else if(typeof i=="string")if(/^\d+$/.test(i)){const n=parseInt(i,10);n>=1e9&&n<=2e9?t=Ir(n*1e3):t=Ir(n)}else t=Ir(i);return!t||!t.isValid()?i:t.format(e)},BTt=["time","date","timestamp","metricTime"],FTt=i=>Ir(i).isValid()?!0:typeof i=="string"?!isNaN(Date.parse(i))||/^\d{4}-\d{2}-\d{2}/.test(i):!1,NTt=(i,e)=>{const t=e.filter(n=>BTt.includes(n.toLowerCase()));return t.length>0?i.map(n=>{const r=ke({},n);return t.forEach(o=>{r[o]&&FTt(r[o])&&(r[o]=G3e(r[o]))}),r}):i};var Bf=(i=>(i[i.Number=0]="Number",i[i.String=1]="String",i[i.Timestamp=2]="Timestamp",i[i.Date=3]="Date",i[i.Boolean=4]="Boolean",i))(Bf||{});const q3e={timestamp:2,datetime:2,timestamptz:2,date:3,time:3,number:0,double:0,bigint:0,numerical:0,ratio:0,count:0,float:0,int:0,decimal:0,string:1},Y3e=(i,e)=>G3e(i,e||Ob),qM=(i,e,t)=>{let n,r=i==null?void 0:i.find(o=>o.fieldName===e);if(r!=null&&r.type){const o=iTt(r.type);n=q3e[o]}return n===void 0&&t!==void 0&&t!==null&&(n=q3e[typeof t]),n},HTt=(i,e,t,n)=>{const r=qM(i,e,t);return r===Bf.Timestamp||r===Bf.Date?Y3e(t,n):t},$Tt=(i=[],e,t)=>{const n=qM(i,e,t);return n===Bf.Timestamp||n===Bf.Date?Ir(t).valueOf():t},zTt=(i,e)=>{if(i==null)return i;const t=Number(i);if(isNaN(t))return i;if(e!=null&&e.formatType&&(e==null?void 0:e.formatType)!=="none"){const n=e.decimalPlaces!==void 0?e.decimalPlaces:0;let r;switch(e.formatType){case"none":r=t.toString();break;case"number":{r=(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n),e.suffix&&(r=r+e.suffix);break}case"percentage_raw":{r=(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)+"%";break}case"percentage_scaled":{const o=t*100;r=(Math.round(o*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)+"%";break}default:{r=(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n),e.suffix&&(r=r+e.suffix);break}}return r}return i},F1=()=>{const{chartJson:i,controllerConfig:e,dataSourceQueryInfo:t,dataset:n,drillBy:r}=Qh(),o=()=>{var d,f,g;return r!=null&&r.visible&&((f=(d=r==null?void 0:r.config)==null?void 0:d.current)!=null&&f.selectedTimeGrain)?r.config.current.selectedTimeGrain:(g=i==null?void 0:i.dataSource)!=null&&g.type&&(e!=null&&e.timeGrain)?e.timeGrain:(i==null?void 0:i.timeGrain)||U3e.Day},a=()=>{const d=o();return LTt[d]||Ob},s=d=>{var f;return((f=i==null?void 0:i.dataFormat)==null?void 0:f[d])||{formatType:"none"}},l=(d,f)=>{let g=f||a();return Y3e(d,g)},u=(d,f)=>{var p;let g=[];return(p=t==null?void 0:t.fieldInfo)!=null&&p.length?g=(t==null?void 0:t.fieldInfo)||[]:g=(n==null?void 0:n.fieldInfo)||[],qM(g,d,f)};return{formatTime:l,getFieldType:u,formatValue:(d,f,g)=>{if(!d||f===null||f===void 0)return;const p=u(d,f);if(p===Bf.Timestamp||p===Bf.Date)return l(f,g);if(p===Bf.Number||p===Bf.String){const m=s(d);return zTt(f,m)}return f},getAxesType:d=>{var p;let f=d;d!=null&&d.includes(PO)&&(f=((p=d==null?void 0:d.split(PO))==null?void 0:p[0])||f);const g=u(f);return g===Bf.Timestamp||g===Bf.Date?"band":g===Bf.Number?"linear":"band"}}};var NV=(i=>(i[i.Number=0]="Number",i[i.String=1]="String",i[i.Timestamp=2]="Timestamp",i[i.Date=3]="Date",i[i.Boolean=4]="Boolean",i[i.Other=5]="Other",i))(NV||{});const g3=(i,e)=>Object.prototype.toString.call(i)===`[object ${e}]`,fc=(i,e=!1)=>e?typeof i=="boolean":i===!0||i===!1||g3(i,"Boolean"),gc=i=>typeof i=="function",Cr=i=>i==null,Ne=i=>i!=null,Ps=i=>{const e=typeof i;return i!==null&&e==="object"||e==="function"},WTt=i=>typeof i=="object"&&i!==null,t6=function(i){if(!WTt(i)||!g3(i,"Object"))return!1;if(Object.getPrototypeOf(i)===null)return!0;let e=i;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(i)===e},sa=(i,e=!1)=>{const t=typeof i;return e?t==="string":t==="string"||g3(i,"String")},qt=i=>Array.isArray?Array.isArray(i):g3(i,"Array"),HV=function(i){return i!==null&&typeof i!="function"&&Number.isFinite(i.length)},VTt=i=>g3(i,"Date"),ki=(i,e=!1)=>{const t=typeof i;return e?t==="number":t==="number"||g3(i,"Number")},pc=i=>ki(i)&&Number.isFinite(i),jTt=i=>({}).toString.call(i).replace(/^\[object /,"").replace(/]$/,""),UTt=Object.prototype,GTt=function(i){const e=i&&i.constructor;return i===(typeof e=="function"&&e.prototype||UTt)},qTt=Object.prototype.hasOwnProperty;function Cu(i){if(Cr(i))return!0;if(HV(i))return!i.length;const e=jTt(i);if(e==="Map"||e==="Set")return!i.size;if(GTt(i))return!Object.keys(i).length;for(const t in i)if(qTt.call(i,t))return!1;return!0}const YM=(i,e,t)=>{const n=sa(e)?e.split("."):e;for(let r=0;r<n.length;r++)i=i?i[n[r]]:void 0;return i===void 0?t:i};function qs(i,e,t){let n;if(!Ne(i)||typeof i!="object"||e)return i;const r=qt(i),o=i.length;n=r?new Array(o):typeof i=="object"?{}:fc(i)||ki(i)||sa(i)?i:VTt(i)?new Date(+i):void 0;const a=r?void 0:Object.keys(Object(i));let s=-1;if(n)for(;++s<(a||i).length;){const l=a?a[s]:s,u=i[l];t&&t.includes(l.toString())?n[l]=u:n[l]=qs(u,e,t)}return n}function X3e(i,e,t=!1,n=!1){if(e){if(i===e)return;if(Ne(e)&&typeof e=="object"){const r=Object(e),o=[];for(const l in r)o.push(l);let{length:a}=o,s=-1;for(;a--;){const l=o[++s];!Ne(r[l])||typeof r[l]!="object"||n&&qt(i[l])?K3e(i,l,r[l]):YTt(i,e,l,t,n)}}}}function YTt(i,e,t,n=!1,r=!1){const o=i[t],a=e[t];let s=e[t],l=!0;if(qt(a)){if(n)s=[];else if(qt(o))s=o;else if(HV(o)){s=new Array(o.length);let u=-1;const c=o.length;for(;++u<c;)s[u]=o[u]}}else t6(a)?(s=o!=null?o:{},typeof o!="function"&&typeof o=="object"||(s={})):l=!1;l&&X3e(s,a,n,r),K3e(i,t,s)}function K3e(i,e,t){(t!==void 0&&!XTt(i[e],t)||t===void 0&&!(e in i))&&(i[e]=t)}function XTt(i,e){return i===e||Number.isNaN(i)&&Number.isNaN(e)}function cr(i,...e){let t=-1;const n=e.length;for(;++t<n;)X3e(i,e[t],!0);return i}const KTt=Object.prototype.hasOwnProperty;function i6(i,e){if(!i||!t6(i))return i;const t={};return e.forEach((n=>{KTt.call(i,n)&&(t[n]=i[n])})),t}function ZTt(i,e){if(!i||!t6(i))return i;const t={};return Object.keys(i).forEach((n=>{const r=i[n];let o=!1;e.forEach((a=>{(sa(a)&&a===n||a instanceof RegExp&&n.match(a))&&(o=!0)})),o||(t[n]=r)})),t}function Z3e(i){return Object.prototype.toString.call(i)}function Q3e(i){return Object.keys(i)}function n6(i,e,t){if(i===e)return!0;if(typeof i!=typeof e||i==null||e==null)return!1;if(Number.isNaN(i)&&Number.isNaN(e))return!0;if(Z3e(i)!==Z3e(e)||gc(i)||typeof i!="object")return!1;if(qt(i)){if(i.length!==e.length)return!1;for(let o=i.length-1;o>=0;o--)if(!n6(i[o],e[o]))return!1;return!0}if(!t6(i))return!1;const n=Q3e(i),r=Q3e(e);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=n.length-1;o>=0;o--)if(n[o]!=r[o])return!1;for(let o=n.length-1;o>=0;o--){const a=n[o];if(!n6(i[a],e[a]))return!1}return!0}function Ys(i){return Ne(i)?qt(i)?i:[i]:[]}function QTt(i){if(HV(i))return i[i.length-1]}const J3e=(i,e)=>{var t;if(i.length===0)return;let n=i[0];for(let r=1;r<i.length;r++){const o=i[r];((t=void 0)!==null&&t!==void 0?t:o-n)>0&&(n=o)}return n},exe=(i,e)=>{var t;if(i.length===0)return;let n=i[0];for(let r=1;r<i.length;r++){const o=i[r];((t=void 0)!==null&&t!==void 0?t:o-n)<0&&(n=o)}return n};function JTt(i,e){if(!qt(i)||!qt(e)||i.length!==e.length)return!1;for(let t=0;t<i.length;t++)if(i[t]!==e[t])return!1;return!0}function Vh(i){return i&&qt(i)?Array.from(new Set(Ys(i))):i}function e5t(i,e,t){Ne(e)||(e=i,i=0),Ne(t)||(t=1);let n=-1;const r=0|Math.max(0,Math.ceil((e-i)/t)),o=new Array(r);for(;++n<r;)o[n]=i+n*t;return o}const t5t=typeof console!="undefined";function XM(i,e,t){const n=[e].concat([].slice.call(t));t5t&&console[i].apply(console,n)}var j0;(function(i){i[i.None=0]="None",i[i.Error=1]="Error",i[i.Warn=2]="Warn",i[i.Info=3]="Info",i[i.Debug=4]="Debug"})(j0||(j0={}));let txe=class sf{static getInstance(e,t){return sf._instance&&ki(e)?sf._instance.level(e):sf._instance||(sf._instance=new sf(e,t)),sf._instance}static setInstance(e){return sf._instance=e}static setInstanceLevel(e){sf._instance?sf._instance.level(e):sf._instance=new sf(e)}static clearInstance(){sf._instance=null}constructor(e=j0.None,t){this._onErrorHandler=[],this._level=e,this._method=t}addErrorHandler(e){this._onErrorHandler.find((t=>t===e))||this._onErrorHandler.push(e)}removeErrorHandler(e){const t=this._onErrorHandler.findIndex((n=>n===e));t<0||this._onErrorHandler.splice(t,1)}callErrorHandler(...e){this._onErrorHandler.forEach((t=>t(...e)))}canLogInfo(){return this._level>=j0.Info}canLogDebug(){return this._level>=j0.Debug}canLogError(){return this._level>=j0.Error}canLogWarn(){return this._level>=j0.Warn}level(e){return arguments.length?(this._level=+e,this):this._level}error(...e){var t;return this._level>=j0.Error&&(this._onErrorHandler.length?this.callErrorHandler(...e):XM((t=this._method)!==null&&t!==void 0?t:"error","ERROR",e)),this}warn(...e){return this._level>=j0.Warn&&XM(this._method||"warn","WARN",e),this}info(...e){return this._level>=j0.Info&&XM(this._method||"log","INFO",e),this}debug(...e){return this._level>=j0.Debug&&XM(this._method||"log","DEBUG",e),this}};txe._instance=null;function KM(i){return i*(Math.PI/180)}const ixe=i=>{let e=i.charCodeAt(0),t=i.length===2?i.charCodeAt(1):0,n=e;return 55296<=e&&e<=56319&&56320<=t&&t<=57343&&(e&=1023,t&=1023,n=e<<10|t,n+=65536),n===12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n===8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n===172||n===175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n===161||n===164||167<=n&&n<=168||n===170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n===198||n===208||215<=n&&n<=216||222<=n&&n<=225||n===230||232<=n&&n<=234||236<=n&&n<=237||n===240||242<=n&&n<=243||247<=n&&n<=250||n===252||n===254||n===257||n===273||n===275||n===283||294<=n&&n<=295||n===299||305<=n&&n<=307||n===312||319<=n&&n<=322||n===324||328<=n&&n<=331||n===333||338<=n&&n<=339||358<=n&&n<=359||n===363||n===462||n===464||n===466||n===468||n===470||n===472||n===474||n===476||n===593||n===609||n===708||n===711||713<=n&&n<=715||n===717||n===720||728<=n&&n<=731||n===733||n===735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n===1025||1040<=n&&n<=1103||n===1105||n===8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n===8240||8242<=n&&n<=8243||n===8245||n===8251||n===8254||n===8308||n===8319||8321<=n&&n<=8324||n===8364||n===8451||n===8453||n===8457||n===8467||n===8470||8481<=n&&n<=8482||n===8486||n===8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n===8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n===8658||n===8660||n===8679||n===8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n===8715||n===8719||n===8721||n===8725||n===8730||8733<=n&&n<=8736||n===8739||n===8741||8743<=n&&n<=8748||n===8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n===8776||n===8780||n===8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n===8853||n===8857||n===8869||n===8895||n===8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n===9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n===9711||9733<=n&&n<=9734||n===9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n===9756||n===9758||n===9792||n===9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n===9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n===9955||9960<=n&&n<=9983||n===10045||n===10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n===65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"};function i5t(i,e={},t){t||(t=1);const{fontStyle:n=e.fontStyle,fontVariant:r=e.fontVariant,fontWeight:o=e.fontWeight,fontSize:a=e.fontSize,fontFamily:s=e.fontFamily}=i;return(n?n+" ":"")+(r?r+" ":"")+(o?o+" ":"")+a*t+"px "+(s||"sans-serif")}class Ad{constructor(e,t){this._numberCharSize=null,this._fullCharSize=null,this._letterCharSize=null,this._specialCharSizeMap={},this._canvas=null,this._context=null,this._contextSaved=!1,this._notSupportCanvas=!1,this._notSupportVRender=!1,this._userSpec={},this.specialCharSet=`-/: .,@%'"~`,this._option=e,this._userSpec=t!=null?t:{},this.textSpec=this._initSpec(),Ne(e.specialCharSet)&&(this.specialCharSet=e.specialCharSet),this._standardMethod=Ne(e.getTextBounds)?this.fullMeasure.bind(this):this.measureWithNaiveCanvas.bind(this)}initContext(){if(this._notSupportCanvas)return!1;if(Cr(this._canvas)&&(Ne(this._option.getCanvasForMeasure)&&(this._canvas=this._option.getCanvasForMeasure()),Cr(this._canvas)&&typeof window!="undefined"&&window.document!==void 0&&globalThis&&Ne(globalThis.document)&&(this._canvas=globalThis.document.createElement("canvas"))),Cr(this._context)&&Ne(this._canvas)){const e=this._canvas.getContext("2d");Ne(e)&&(e.save(),e.font=i5t(this.textSpec),this._contextSaved=!0,this._context=e)}return!Cr(this._context)||(this._notSupportCanvas=!0,!1)}_initSpec(){var e,t,n;const{defaultFontParams:r={}}=this._option,{fontStyle:o=r.fontStyle,fontVariant:a=r.fontVariant,fontWeight:s=(e=r.fontWeight)!==null&&e!==void 0?e:"normal",fontSize:l=(t=r.fontSize)!==null&&t!==void 0?t:12,fontFamily:u=(n=r.fontFamily)!==null&&n!==void 0?n:"sans-serif",align:c,textAlign:h=c!=null?c:"center",baseline:d,textBaseline:f=d!=null?d:"middle",ellipsis:g,limit:p}=this._userSpec;let{lineHeight:m=l}=this._userSpec;if(sa(m)&&m[m.length-1]==="%"){const v=Number.parseFloat(m.substring(0,m.length-1))/100;m=l*v}return{fontStyle:o,fontVariant:a,fontFamily:u,fontSize:l,fontWeight:s,textAlign:h,textBaseline:f,ellipsis:g,limit:p,lineHeight:m}}measure(e,t){switch(t){case"vrender":case"canopus":return this.fullMeasure(e);case"canvas":return this.measureWithNaiveCanvas(e);case"simple":return this.quickMeasureWithoutCanvas(e);default:return this.quickMeasure(e)}}fullMeasure(e){if(Cr(e))return{width:0,height:0};if(Cr(this._option.getTextBounds)||!this._notSupportVRender)return this.measureWithNaiveCanvas(e);const{fontFamily:t,fontSize:n,fontWeight:r,textAlign:o,textBaseline:a,ellipsis:s,limit:l,lineHeight:u}=this.textSpec;let c;try{const h=this._option.getTextBounds({text:e,fontFamily:t,fontSize:n,fontWeight:r,textAlign:o,textBaseline:a,ellipsis:!!s,maxLineWidth:l||1/0,lineHeight:u});c={width:h.width(),height:h.height()}}catch(h){this._notSupportVRender=!0,c=this.measureWithNaiveCanvas(e)}return c}measureWithNaiveCanvas(e){return this._measureReduce(e,this._measureWithNaiveCanvas.bind(this))}_measureWithNaiveCanvas(e){var t;if(!this.initContext())return this._quickMeasureWithoutCanvas(e);const n=this._context.measureText(e),{fontSize:r,lineHeight:o}=this.textSpec;return{width:n.width,height:(t=o)!==null&&t!==void 0?t:r,fontBoundingBoxAscent:n.fontBoundingBoxAscent,fontBoundingBoxDescent:n.fontBoundingBoxDescent}}quickMeasure(e){return this._measureReduce(e,this._quickMeasure.bind(this))}_quickMeasure(e){const t={width:0,height:0};for(let n=0;n<e.length;n++){const r=e[n];let o=this._measureSpecialChar(r);Cr(o)&&Ad.NUMBERS_CHAR_SET.includes(r)&&(o=this._measureNumberChar()),Cr(o)&&["F","W"].includes(ixe(r))&&(o=this._measureFullSizeChar()),Cr(o)&&(o=this._measureLetterChar()),t.width+=o.width,t.height=Math.max(t.height,o.height),!Cr(o.fontBoundingBoxAscent)&&(t.fontBoundingBoxAscent=o.fontBoundingBoxAscent),!Cr(o.fontBoundingBoxDescent)&&(t.fontBoundingBoxDescent=o.fontBoundingBoxDescent)}return t}quickMeasureWithoutCanvas(e){return this._measureReduce(e,this._quickMeasureWithoutCanvas.bind(this))}_quickMeasureWithoutCanvas(e){var t;const n={width:0,height:0},{fontSize:r,lineHeight:o}=this.textSpec;for(let a=0;a<e.length;a++){const s=e[a],l=["F","W"].includes(ixe(s))?1:.53;n.width+=l*r}return n.height=(t=o)!==null&&t!==void 0?t:r,n}_measureReduce(e,t){var n;const{fontSize:r,lineHeight:o}=this.textSpec,a={width:0,height:0};if(Cr(e))return a;if(qt(e)){const s=e.filter(Ne).map((l=>l.toString()));return s.length===0?a:s.length===1?t(s[0]):{width:s.reduce(((l,u)=>Math.max(l,t(u).width)),0),height:s.length*(((n=o)!==null&&n!==void 0?n:r)+1)+1}}return t(e.toString())}_measureNumberChar(){if(Cr(this._numberCharSize)){const e=this._standardMethod(Ad.NUMBERS_CHAR_SET);this._numberCharSize={width:e.width/Ad.NUMBERS_CHAR_SET.length,height:e.height,fontBoundingBoxAscent:e.fontBoundingBoxAscent,fontBoundingBoxDescent:e.fontBoundingBoxDescent}}return this._numberCharSize}_measureFullSizeChar(){return Cr(this._fullCharSize)&&(this._fullCharSize=this._standardMethod(Ad.FULL_SIZE_CHAR)),this._fullCharSize}_measureLetterChar(){if(Cr(this._letterCharSize)){const e=this._standardMethod(Ad.ALPHABET_CHAR_SET);this._letterCharSize={width:e.width/Ad.ALPHABET_CHAR_SET.length,height:e.height,fontBoundingBoxAscent:e.fontBoundingBoxAscent,fontBoundingBoxDescent:e.fontBoundingBoxDescent}}return this._letterCharSize}_measureSpecialChar(e){return Ne(this._specialCharSizeMap[e])?this._specialCharSizeMap[e]:this.specialCharSet.includes(e)?(this._specialCharSizeMap[e]=this._standardMethod(e),this._specialCharSizeMap[e]):null}release(){Ne(this._canvas)&&(this._canvas=null),Ne(this._context)&&(this._contextSaved&&(this._context.restore(),this._contextSaved=!1),this._context=null)}}Ad.ALPHABET_CHAR_SET="abcdefghijklmnopqrstuvwxyz",Ad.NUMBERS_CHAR_SET="0123456789",Ad.FULL_SIZE_CHAR="字";function n5t(i,e,t){const{x1:n,y1:r,x2:o,y2:a}=e;return t.onlyTranslate()?(i!==e&&i.setValue(e.x1,e.y1,e.x2,e.y2),i.translate(t.e,t.f),e):(i.clear(),i.add(t.a*n+t.c*r+t.e,t.b*n+t.d*r+t.f),i.add(t.a*o+t.c*r+t.e,t.b*o+t.d*r+t.f),i.add(t.a*o+t.c*a+t.e,t.b*o+t.d*a+t.f),i.add(t.a*n+t.c*a+t.e,t.b*n+t.d*a+t.f),e)}class Sv{constructor(e){e?this.setValue(e.x1,e.y1,e.x2,e.y2):this.clear()}clone(){return new Sv(this)}clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this}empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE}equals(e){return this.x1===e.x1&&this.y1===e.y1&&this.x2===e.x2&&this.y2===e.y2}setValue(e=0,t=0,n=0,r=0){return this.x1=e,this.y1=t,this.x2=n,this.y2=r,this}set(e=0,t=0,n=0,r=0){return n<e?(this.x2=e,this.x1=n):(this.x1=e,this.x2=n),r<t?(this.y2=t,this.y1=r):(this.y1=t,this.y2=r),this}add(e=0,t=0){return e<this.x1&&(this.x1=e),t<this.y1&&(this.y1=t),e>this.x2&&(this.x2=e),t>this.y2&&(this.y2=t),this}expand(e=0){return qt(e)?(this.y1-=e[0],this.x2+=e[1],this.y2+=e[2],this.x1-=e[3]):(this.x1-=e,this.y1-=e,this.x2+=e,this.y2+=e),this}round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this}translate(e=0,t=0){return this.x1+=e,this.x2+=e,this.y1+=t,this.y2+=t,this}rotate(e=0,t=0,n=0){const r=this.rotatedPoints(e,t,n);return this.clear().add(r[0],r[1]).add(r[2],r[3]).add(r[4],r[5]).add(r[6],r[7])}scale(e=0,t=0,n=0,r=0){const o=this.scalePoints(e,t,n,r);return this.clear().add(o[0],o[1]).add(o[2],o[3])}union(e){return e.x1<this.x1&&(this.x1=e.x1),e.y1<this.y1&&(this.y1=e.y1),e.x2>this.x2&&(this.x2=e.x2),e.y2>this.y2&&(this.y2=e.y2),this}intersect(e){return e.x1>this.x1&&(this.x1=e.x1),e.y1>this.y1&&(this.y1=e.y1),e.x2<this.x2&&(this.x2=e.x2),e.y2<this.y2&&(this.y2=e.y2),this}encloses(e){return e&&this.x1<=e.x1&&this.x2>=e.x2&&this.y1<=e.y1&&this.y2>=e.y2}alignsWith(e){return e&&(this.x1===e.x1||this.x2===e.x2||this.y1===e.y1||this.y2===e.y2)}intersects(e){return e&&!(this.x2<e.x1||this.x1>e.x2||this.y2<e.y1||this.y1>e.y2)}contains(e=0,t=0){return!(e<this.x1||e>this.x2||t<this.y1||t>this.y2)}containsPoint(e){return!(e.x<this.x1||e.x>this.x2||e.y<this.y1||e.y>this.y2)}width(){return this.empty()?0:this.x2-this.x1}height(){return this.empty()?0:this.y2-this.y1}scaleX(e=0){return this.x1*=e,this.x2*=e,this}scaleY(e=0){return this.y1*=e,this.y2*=e,this}transformWithMatrix(e){return n5t(this,this,e),this}copy(e){return this.x1=e.x1,this.y1=e.y1,this.x2=e.x2,this.y2=e.y2,this}rotatedPoints(e,t,n){const{x1:r,y1:o,x2:a,y2:s}=this,l=Math.cos(e),u=Math.sin(e),c=t-t*l+n*u,h=n-t*u-n*l;return[l*r-u*o+c,u*r+l*o+h,l*r-u*s+c,u*r+l*s+h,l*a-u*o+c,u*a+l*o+h,l*a-u*s+c,u*a+l*s+h]}scalePoints(e,t,n,r){const{x1:o,y1:a,x2:s,y2:l}=this;return[e*o+(1-e)*n,t*a+(1-t)*r,e*s+(1-e)*n,t*l+(1-t)*r]}}class r6 extends Sv{}function nxe(i,e){return function(){return i.apply(e,arguments)}}const{toString:r5t}=Object.prototype,{getPrototypeOf:$V}=Object,{iterator:ZM,toStringTag:rxe}=Symbol,QM=(i=>e=>{const t=r5t.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),U0=i=>(i=i.toLowerCase(),e=>QM(e)===i),JM=i=>e=>typeof e===i,{isArray:p3}=Array,m3=JM("undefined");function o6(i){return i!==null&&!m3(i)&&i.constructor!==null&&!m3(i.constructor)&&jh(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const oxe=U0("ArrayBuffer");function o5t(i){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(i):e=i&&i.buffer&&oxe(i.buffer),e}const a5t=JM("string"),jh=JM("function"),axe=JM("number"),a6=i=>i!==null&&typeof i=="object",s5t=i=>i===!0||i===!1,ek=i=>{if(QM(i)!=="object")return!1;const e=$V(i);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(rxe in i)&&!(ZM in i)},l5t=i=>{if(!a6(i)||o6(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch(e){return!1}},u5t=U0("Date"),c5t=U0("File"),h5t=U0("Blob"),d5t=U0("FileList"),f5t=i=>a6(i)&&jh(i.pipe),g5t=i=>{let e;return i&&(typeof FormData=="function"&&i instanceof FormData||jh(i.append)&&((e=QM(i))==="formdata"||e==="object"&&jh(i.toString)&&i.toString()==="[object FormData]"))},p5t=U0("URLSearchParams"),[m5t,v5t,b5t,y5t]=["ReadableStream","Request","Response","Headers"].map(U0),_5t=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s6(i,e,{allOwnKeys:t=!1}={}){if(i===null||typeof i=="undefined")return;let n,r;if(typeof i!="object"&&(i=[i]),p3(i))for(n=0,r=i.length;n<r;n++)e.call(null,i[n],n,i);else{if(o6(i))return;const o=t?Object.getOwnPropertyNames(i):Object.keys(i),a=o.length;let s;for(n=0;n<a;n++)s=o[n],e.call(null,i[s],s,i)}}function sxe(i,e){if(o6(i))return null;e=e.toLowerCase();const t=Object.keys(i);let n=t.length,r;for(;n-- >0;)if(r=t[n],e===r.toLowerCase())return r;return null}const Ib=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,lxe=i=>!m3(i)&&i!==Ib;function zV(){const{caseless:i,skipUndefined:e}=lxe(this)&&this||{},t={},n=(r,o)=>{const a=i&&sxe(t,o)||o;ek(t[a])&&ek(r)?t[a]=zV(t[a],r):ek(r)?t[a]=zV({},r):p3(r)?t[a]=r.slice():(!e||!m3(r))&&(t[a]=r)};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&s6(arguments[r],n);return t}const C5t=(i,e,t,{allOwnKeys:n}={})=>(s6(e,(r,o)=>{t&&jh(r)?i[o]=nxe(r,t):i[o]=r},{allOwnKeys:n}),i),x5t=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),S5t=(i,e,t,n)=>{i.prototype=Object.create(e.prototype,n),i.prototype.constructor=i,Object.defineProperty(i,"super",{value:e.prototype}),t&&Object.assign(i.prototype,t)},w5t=(i,e,t,n)=>{let r,o,a;const s={};if(e=e||{},i==null)return e;do{for(r=Object.getOwnPropertyNames(i),o=r.length;o-- >0;)a=r[o],(!n||n(a,i,e))&&!s[a]&&(e[a]=i[a],s[a]=!0);i=t!==!1&&$V(i)}while(i&&(!t||t(i,e))&&i!==Object.prototype);return e},E5t=(i,e,t)=>{i=String(i),(t===void 0||t>i.length)&&(t=i.length),t-=e.length;const n=i.indexOf(e,t);return n!==-1&&n===t},A5t=i=>{if(!i)return null;if(p3(i))return i;let e=i.length;if(!axe(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=i[e];return t},T5t=(i=>e=>i&&e instanceof i)(typeof Uint8Array!="undefined"&&$V(Uint8Array)),R5t=(i,e)=>{const n=(i&&i[ZM]).call(i);let r;for(;(r=n.next())&&!r.done;){const o=r.value;e.call(i,o[0],o[1])}},M5t=(i,e)=>{let t;const n=[];for(;(t=i.exec(e))!==null;)n.push(t);return n},k5t=U0("HTMLFormElement"),O5t=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),uxe=(({hasOwnProperty:i})=>(e,t)=>i.call(e,t))(Object.prototype),I5t=U0("RegExp"),cxe=(i,e)=>{const t=Object.getOwnPropertyDescriptors(i),n={};s6(t,(r,o)=>{let a;(a=e(r,o,i))!==!1&&(n[o]=a||r)}),Object.defineProperties(i,n)},D5t=i=>{cxe(i,(e,t)=>{if(jh(i)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=i[t];if(jh(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},P5t=(i,e)=>{const t={},n=r=>{r.forEach(o=>{t[o]=!0})};return p3(i)?n(i):n(String(i).split(e)),t},L5t=()=>{},B5t=(i,e)=>i!=null&&Number.isFinite(i=+i)?i:e;function F5t(i){return!!(i&&jh(i.append)&&i[rxe]==="FormData"&&i[ZM])}const N5t=i=>{const e=new Array(10),t=(n,r)=>{if(a6(n)){if(e.indexOf(n)>=0)return;if(o6(n))return n;if(!("toJSON"in n)){e[r]=n;const o=p3(n)?[]:{};return s6(n,(a,s)=>{const l=t(a,r+1);!m3(l)&&(o[s]=l)}),e[r]=void 0,o}}return n};return t(i,0)},H5t=U0("AsyncFunction"),$5t=i=>i&&(a6(i)||jh(i))&&jh(i.then)&&jh(i.catch),hxe=((i,e)=>i?setImmediate:e?((t,n)=>(Ib.addEventListener("message",({source:r,data:o})=>{r===Ib&&o===t&&n.length&&n.shift()()},!1),r=>{n.push(r),Ib.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",jh(Ib.postMessage)),z5t=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Ib):typeof process!="undefined"&&process.nextTick||hxe,li={isArray:p3,isArrayBuffer:oxe,isBuffer:o6,isFormData:g5t,isArrayBufferView:o5t,isString:a5t,isNumber:axe,isBoolean:s5t,isObject:a6,isPlainObject:ek,isEmptyObject:l5t,isReadableStream:m5t,isRequest:v5t,isResponse:b5t,isHeaders:y5t,isUndefined:m3,isDate:u5t,isFile:c5t,isBlob:h5t,isRegExp:I5t,isFunction:jh,isStream:f5t,isURLSearchParams:p5t,isTypedArray:T5t,isFileList:d5t,forEach:s6,merge:zV,extend:C5t,trim:_5t,stripBOM:x5t,inherits:S5t,toFlatObject:w5t,kindOf:QM,kindOfTest:U0,endsWith:E5t,toArray:A5t,forEachEntry:R5t,matchAll:M5t,isHTMLForm:k5t,hasOwnProperty:uxe,hasOwnProp:uxe,reduceDescriptors:cxe,freezeMethods:D5t,toObjectSet:P5t,toCamelCase:O5t,noop:L5t,toFiniteNumber:B5t,findKey:sxe,global:Ib,isContextDefined:lxe,isSpecCompliantForm:F5t,toJSONObject:N5t,isAsyncFn:H5t,isThenable:$5t,setImmediate:hxe,asap:z5t,isIterable:i=>i!=null&&jh(i[ZM])};function io(i,e,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=i,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}li.inherits(io,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:li.toJSONObject(this.config),code:this.code,status:this.status}}});const dxe=io.prototype,fxe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(i=>{fxe[i]={value:i}}),Object.defineProperties(io,fxe),Object.defineProperty(dxe,"isAxiosError",{value:!0}),io.from=(i,e,t,n,r,o)=>{const a=Object.create(dxe);li.toFlatObject(i,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const s=i&&i.message?i.message:"Error",l=e==null&&i?i.code:e;return io.call(a,s,l,t,n,r),i&&a.cause==null&&Object.defineProperty(a,"cause",{value:i,configurable:!0}),a.name=i&&i.name||"Error",o&&Object.assign(a,o),a};const W5t=null;function WV(i){return li.isPlainObject(i)||li.isArray(i)}function gxe(i){return li.endsWith(i,"[]")?i.slice(0,-2):i}function pxe(i,e,t){return i?i.concat(e).map(function(r,o){return r=gxe(r),!t&&o?"["+r+"]":r}).join(t?".":""):e}function V5t(i){return li.isArray(i)&&!i.some(WV)}const j5t=li.toFlatObject(li,{},null,function(e){return/^is[A-Z]/.test(e)});function tk(i,e,t){if(!li.isObject(i))throw new TypeError("target must be an object");e=e||new FormData,t=li.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!li.isUndefined(m[p])});const n=t.metaTokens,r=t.visitor||c,o=t.dots,a=t.indexes,l=(t.Blob||typeof Blob!="undefined"&&Blob)&&li.isSpecCompliantForm(e);if(!li.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(li.isDate(g))return g.toISOString();if(li.isBoolean(g))return g.toString();if(!l&&li.isBlob(g))throw new io("Blob is not supported. Use a Buffer instead.");return li.isArrayBuffer(g)||li.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,p,m){let v=g;if(g&&!m&&typeof g=="object"){if(li.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(li.isArray(g)&&V5t(g)||(li.isFileList(g)||li.endsWith(p,"[]"))&&(v=li.toArray(g)))return p=gxe(p),v.forEach(function(y,_){!(li.isUndefined(y)||y===null)&&e.append(a===!0?pxe([p],_,o):a===null?p:p+"[]",u(y))}),!1}return WV(g)?!0:(e.append(pxe(m,p,o),u(g)),!1)}const h=[],d=Object.assign(j5t,{defaultVisitor:c,convertValue:u,isVisitable:WV});function f(g,p){if(!li.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(g),li.forEach(g,function(v,b){(!(li.isUndefined(v)||v===null)&&r.call(e,v,li.isString(b)?b.trim():b,p,d))===!0&&f(v,p?p.concat(b):[b])}),h.pop()}}if(!li.isObject(i))throw new TypeError("data must be an object");return f(i),e}function mxe(i){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function VV(i,e){this._pairs=[],i&&tk(i,this,e)}const vxe=VV.prototype;vxe.append=function(e,t){this._pairs.push([e,t])},vxe.toString=function(e){const t=e?function(n){return e.call(this,n,mxe)}:mxe;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function U5t(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bxe(i,e,t){if(!e)return i;const n=t&&t.encode||U5t;li.isFunction(t)&&(t={serialize:t});const r=t&&t.serialize;let o;if(r?o=r(e,t):o=li.isURLSearchParams(e)?e.toString():new VV(e,t).toString(n),o){const a=i.indexOf("#");a!==-1&&(i=i.slice(0,a)),i+=(i.indexOf("?")===-1?"?":"&")+o}return i}class yxe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){li.forEach(this.handlers,function(n){n!==null&&e(n)})}}const _xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G5t={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:VV,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},jV=typeof window!="undefined"&&typeof document!="undefined",UV=typeof navigator=="object"&&navigator||void 0,q5t=jV&&(!UV||["ReactNative","NativeScript","NS"].indexOf(UV.product)<0),Y5t=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",X5t=jV&&window.location.href||"http://localhost",Wu=ke(ke({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jV,hasStandardBrowserEnv:q5t,hasStandardBrowserWebWorkerEnv:Y5t,navigator:UV,origin:X5t},Symbol.toStringTag,{value:"Module"}))),G5t);function K5t(i,e){return tk(i,new Wu.classes.URLSearchParams,ke({visitor:function(t,n,r,o){return Wu.isNode&&li.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Z5t(i){return li.matchAll(/\w+|\[(\w*)]/g,i).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Q5t(i){const e={},t=Object.keys(i);let n;const r=t.length;let o;for(n=0;n<r;n++)o=t[n],e[o]=i[o];return e}function Cxe(i){function e(t,n,r,o){let a=t[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=t.length;return a=!a&&li.isArray(r)?r.length:a,l?(li.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):((!r[a]||!li.isObject(r[a]))&&(r[a]=[]),e(t,n,r[a],o)&&li.isArray(r[a])&&(r[a]=Q5t(r[a])),!s)}if(li.isFormData(i)&&li.isFunction(i.entries)){const t={};return li.forEachEntry(i,(n,r)=>{e(Z5t(n),r,t,0)}),t}return null}function J5t(i,e,t){if(li.isString(i))try{return(e||JSON.parse)(i),li.trim(i)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(i)}const l6={transitional:_xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=li.isObject(e);if(o&&li.isHTMLForm(e)&&(e=new FormData(e)),li.isFormData(e))return r?JSON.stringify(Cxe(e)):e;if(li.isArrayBuffer(e)||li.isBuffer(e)||li.isStream(e)||li.isFile(e)||li.isBlob(e)||li.isReadableStream(e))return e;if(li.isArrayBufferView(e))return e.buffer;if(li.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return K5t(e,this.formSerializer).toString();if((s=li.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return tk(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),J5t(e)):e}],transformResponse:[function(e){const t=this.transitional||l6.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(li.isResponse(e)||li.isReadableStream(e))return e;if(e&&li.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?io.from(s,io.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wu.classes.FormData,Blob:Wu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};li.forEach(["delete","get","head","post","put","patch"],i=>{l6.headers[i]={}});const e8t=li.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"]),t8t=i=>{const e={};let t,n,r;return i&&i.split(`
|
|
541
541
|
`).forEach(function(a){r=a.indexOf(":"),t=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!t||e[t]&&e8t[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},xxe=Symbol("internals");function u6(i){return i&&String(i).trim().toLowerCase()}function ik(i){return i===!1||i==null?i:li.isArray(i)?i.map(ik):String(i)}function i8t(i){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(i);)e[n[1]]=n[2];return e}const n8t=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function GV(i,e,t,n,r){if(li.isFunction(n))return n.call(this,e,t);if(r&&(e=t),!!li.isString(e)){if(li.isString(n))return e.indexOf(n)!==-1;if(li.isRegExp(n))return n.test(e)}}function r8t(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function o8t(i,e){const t=li.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(i,n+t,{value:function(r,o,a){return this[n].call(this,e,r,o,a)},configurable:!0})})}let Uh=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(s,l,u){const c=u6(l);if(!c)throw new Error("header name must be a non-empty string");const h=li.findKey(r,c);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||l]=ik(s))}const a=(s,l)=>li.forEach(s,(u,c)=>o(u,c,l));if(li.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(li.isString(e)&&(e=e.trim())&&!n8t(e))a(t8t(e),t);else if(li.isObject(e)&&li.isIterable(e)){let s={},l,u;for(const c of e){if(!li.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?li.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(s,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=u6(e),e){const n=li.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return i8t(r);if(li.isFunction(t))return t.call(this,r,n);if(li.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=u6(e),e){const n=li.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||GV(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function o(a){if(a=u6(a),a){const s=li.findKey(n,a);s&&(!t||GV(n,n[s],s,t))&&(delete n[s],r=!0)}}return li.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];(!e||GV(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return li.forEach(this,(r,o)=>{const a=li.findKey(n,o);if(a){t[a]=ik(r),delete t[o];return}const s=e?r8t(o):String(o).trim();s!==o&&delete t[o],t[s]=ik(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return li.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&li.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
542
542
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[xxe]=this[xxe]={accessors:{}}).accessors,r=this.prototype;function o(a){const s=u6(a);n[s]||(o8t(r,a),n[s]=!0)}return li.isArray(e)?e.forEach(o):o(e),this}};Uh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),li.reduceDescriptors(Uh.prototype,({value:i},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>i,set(n){this[t]=n}}}),li.freezeMethods(Uh);function qV(i,e){const t=this||l6,n=e||t,r=Uh.from(n.headers);let o=n.data;return li.forEach(i,function(s){o=s.call(t,o,r.normalize(),e?e.status:void 0)}),r.normalize(),o}function Sxe(i){return!!(i&&i.__CANCEL__)}function v3(i,e,t){io.call(this,i==null?"canceled":i,io.ERR_CANCELED,e,t),this.name="CanceledError"}li.inherits(v3,io,{__CANCEL__:!0});function wxe(i,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?i(t):e(new io("Request failed with status code "+t.status,[io.ERR_BAD_REQUEST,io.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function a8t(i){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return e&&e[1]||""}function s8t(i,e){i=i||10;const t=new Array(i),n=new Array(i);let r=0,o=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[o];a||(a=u),t[r]=l,n[r]=u;let h=o,d=0;for(;h!==r;)d+=t[h++],h=h%i;if(r=(r+1)%i,r===o&&(o=(o+1)%i),u-a<e)return;const f=c&&u-c;return f?Math.round(d*1e3/f):void 0}}function l8t(i,e){let t=0,n=1e3/e,r,o;const a=(u,c=Date.now())=>{t=c,r=null,o&&(clearTimeout(o),o=null),i(...u)};return[(...u)=>{const c=Date.now(),h=c-t;h>=n?a(u,c):(r=u,o||(o=setTimeout(()=>{o=null,a(r)},n-h)))},()=>r&&a(r)]}const nk=(i,e,t=3)=>{let n=0;const r=s8t(50,250);return l8t(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-n,u=r(l),c=a<=s;n=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[e?"download":"upload"]:!0};i(h)},t)},Exe=(i,e)=>{const t=i!=null;return[n=>e[0]({lengthComputable:t,total:i,loaded:n}),e[1]]},Axe=i=>(...e)=>li.asap(()=>i(...e)),u8t=Wu.hasStandardBrowserEnv?((i,e)=>t=>(t=new URL(t,Wu.origin),i.protocol===t.protocol&&i.host===t.host&&(e||i.port===t.port)))(new URL(Wu.origin),Wu.navigator&&/(msie|trident)/i.test(Wu.navigator.userAgent)):()=>!0,c8t=Wu.hasStandardBrowserEnv?{write(i,e,t,n,r,o,a){if(typeof document=="undefined")return;const s=[`${i}=${encodeURIComponent(e)}`];li.isNumber(t)&&s.push(`expires=${new Date(t).toUTCString()}`),li.isString(n)&&s.push(`path=${n}`),li.isString(r)&&s.push(`domain=${r}`),o===!0&&s.push("secure"),li.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(i){if(typeof document=="undefined")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(i){this.write(i,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function h8t(i){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function d8t(i,e){return e?i.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):i}function Txe(i,e,t){let n=!h8t(e);return i&&(n||t==!1)?d8t(i,e):e}const Rxe=i=>i instanceof Uh?ke({},i):i;function Db(i,e){e=e||{};const t={};function n(u,c,h,d){return li.isPlainObject(u)&&li.isPlainObject(c)?li.merge.call({caseless:d},u,c):li.isPlainObject(c)?li.merge({},c):li.isArray(c)?c.slice():c}function r(u,c,h,d){if(li.isUndefined(c)){if(!li.isUndefined(u))return n(void 0,u,h,d)}else return n(u,c,h,d)}function o(u,c){if(!li.isUndefined(c))return n(void 0,c)}function a(u,c){if(li.isUndefined(c)){if(!li.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,h){if(h in e)return n(u,c);if(h in i)return n(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c,h)=>r(Rxe(u),Rxe(c),h,!0)};return li.forEach(Object.keys(ke(ke({},i),e)),function(c){const h=l[c]||r,d=h(i[c],e[c],c);li.isUndefined(d)&&h!==s||(t[c]=d)}),t}const Mxe=i=>{const e=Db({},i);let{data:t,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:a,auth:s}=e;if(e.headers=a=Uh.from(a),e.url=bxe(Txe(e.baseURL,e.url,e.allowAbsoluteUrls),i.params,i.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),li.isFormData(t)){if(Wu.hasStandardBrowserEnv||Wu.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(li.isFunction(t.getHeaders)){const l=t.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,h])=>{u.includes(c.toLowerCase())&&a.set(c,h)})}}if(Wu.hasStandardBrowserEnv&&(n&&li.isFunction(n)&&(n=n(e)),n||n!==!1&&u8t(e.url))){const l=r&&o&&c8t.read(o);l&&a.set(r,l)}return e},f8t=typeof XMLHttpRequest!="undefined"&&function(i){return new Promise(function(t,n){const r=Mxe(i);let o=r.data;const a=Uh.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=r,c,h,d,f,g;function p(){f&&f(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function v(){if(!m)return;const y=Uh.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:i,request:m};wxe(function(w){t(w),p()},function(w){n(w),p()},S),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(n(new io("Request aborted",io.ECONNABORTED,i,m)),m=null)},m.onerror=function(_){const S=_&&_.message?_.message:"Network Error",x=new io(S,io.ERR_NETWORK,i,m);x.event=_||null,n(x),m=null},m.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||_xe;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),n(new io(_,S.clarifyTimeoutError?io.ETIMEDOUT:io.ECONNABORTED,i,m)),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&li.forEach(a.toJSON(),function(_,S){m.setRequestHeader(S,_)}),li.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),s&&s!=="json"&&(m.responseType=r.responseType),u&&([d,g]=nk(u,!0),m.addEventListener("progress",d)),l&&m.upload&&([h,f]=nk(l),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",f)),(r.cancelToken||r.signal)&&(c=y=>{m&&(n(!y||y.type?new v3(null,i,m):y),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const b=a8t(r.url);if(b&&Wu.protocols.indexOf(b)===-1){n(new io("Unsupported protocol "+b+":",io.ERR_BAD_REQUEST,i));return}m.send(o||null)})},g8t=(i,e)=>{const{length:t}=i=i?i.filter(Boolean):[];if(e||t){let n=new AbortController,r;const o=function(u){if(!r){r=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof io?c:new v3(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,o(new io(`timeout ${e} of ms exceeded`,io.ETIMEDOUT))},e);const s=()=>{i&&(a&&clearTimeout(a),a=null,i.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),i=null)};i.forEach(u=>u.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>li.asap(s),l}},p8t=function*(i,e){let t=i.byteLength;if(t<e){yield i;return}let n=0,r;for(;n<t;)r=n+e,yield i.slice(n,r),n=r},m8t=function(i,e){return whe(this,null,function*(){try{for(var t=ert(v8t(i)),n,r,o;n=!(r=yield new T_(t.next())).done;n=!1){const a=r.value;yield*Ehe(p8t(a,e))}}catch(r){o=[r]}finally{try{n&&(r=t.return)&&(yield new T_(r.call(t)))}finally{if(o)throw o[0]}}})},v8t=function(i){return whe(this,null,function*(){if(i[Symbol.asyncIterator]){yield*Ehe(i);return}const e=i.getReader();try{for(;;){const{done:t,value:n}=yield new T_(e.read());if(t)break;yield n}}finally{yield new T_(e.cancel())}})},kxe=(i,e,t,n)=>{const r=m8t(i,e);let o=0,a,s=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({pull(u){return ga(this,null,function*(){try{const{done:c,value:h}=yield r.next();if(c){s(),u.close();return}let d=h.byteLength;if(t){let f=o+=d;t(f)}u.enqueue(new Uint8Array(h))}catch(c){throw s(c),c}})},cancel(u){return s(u),r.return()}},{highWaterMark:2})},Oxe=64*1024,{isFunction:rk}=li,b8t=(({Request:i,Response:e})=>({Request:i,Response:e}))(li.global),{ReadableStream:Ixe,TextEncoder:Dxe}=li.global,Pxe=(i,...e)=>{try{return!!i(...e)}catch(t){return!1}},y8t=i=>{i=li.merge.call({skipUndefined:!0},b8t,i);const{fetch:e,Request:t,Response:n}=i,r=e?rk(e):typeof fetch=="function",o=rk(t),a=rk(n);if(!r)return!1;const s=r&&rk(Ixe),l=r&&(typeof Dxe=="function"?(g=>p=>g.encode(p))(new Dxe):g=>ga(null,null,function*(){return new Uint8Array(yield new t(g).arrayBuffer())})),u=o&&s&&Pxe(()=>{let g=!1;const p=new t(Wu.origin,{body:new Ixe,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!p}),c=a&&s&&Pxe(()=>li.isReadableStream(new n("").body)),h={stream:c&&(g=>g.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(p,m)=>{let v=p&&p[g];if(v)return v.call(p);throw new io(`Response type '${g}' is not supported`,io.ERR_NOT_SUPPORT,m)})});const d=g=>ga(null,null,function*(){if(g==null)return 0;if(li.isBlob(g))return g.size;if(li.isSpecCompliantForm(g))return(yield new t(Wu.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(li.isArrayBufferView(g)||li.isArrayBuffer(g))return g.byteLength;if(li.isURLSearchParams(g)&&(g=g+""),li.isString(g))return(yield l(g)).byteLength}),f=(g,p)=>ga(null,null,function*(){const m=li.toFiniteNumber(g.getContentLength());return m==null?d(p):m});return g=>ga(null,null,function*(){let{url:p,method:m,data:v,signal:b,cancelToken:y,timeout:_,onDownloadProgress:S,onUploadProgress:x,responseType:w,headers:E,withCredentials:A="same-origin",fetchOptions:T}=Mxe(g),R=e||fetch;w=w?(w+"").toLowerCase():"text";let k=g8t([b,y&&y.toAbortSignal()],_),O=null;const P=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let L;try{if(x&&u&&m!=="get"&&m!=="head"&&(L=yield f(E,v))!==0){let X=new t(p,{method:"POST",body:v,duplex:"half"}),j;if(li.isFormData(v)&&(j=X.headers.get("content-type"))&&E.setContentType(j),X.body){const[H,J]=Exe(L,nk(Axe(x)));v=kxe(X.body,Oxe,H,J)}}li.isString(A)||(A=A?"include":"omit");const F=o&&"credentials"in t.prototype,W=Pi(ke({},T),{signal:k,method:m.toUpperCase(),headers:E.normalize().toJSON(),body:v,duplex:"half",credentials:F?A:void 0});O=o&&new t(p,W);let V=yield o?R(O,T):R(p,W);const G=c&&(w==="stream"||w==="response");if(c&&(S||G&&P)){const X={};["status","statusText","headers"].forEach(re=>{X[re]=V[re]});const j=li.toFiniteNumber(V.headers.get("content-length")),[H,J]=S&&Exe(j,nk(Axe(S),!0))||[];V=new n(kxe(V.body,Oxe,H,()=>{J&&J(),P&&P()}),X)}w=w||"text";let z=yield h[li.findKey(h,w)||"text"](V,g);return!G&&P&&P(),yield new Promise((X,j)=>{wxe(X,j,{data:z,headers:Uh.from(V.headers),status:V.status,statusText:V.statusText,config:g,request:O})})}catch(F){throw P&&P(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new io("Network Error",io.ERR_NETWORK,g,O),{cause:F.cause||F}):io.from(F,F&&F.code,g,O)}})},_8t=new Map,Lxe=i=>{let e=i&&i.env||{};const{fetch:t,Request:n,Response:r}=e,o=[n,r,t];let a=o.length,s=a,l,u,c=_8t;for(;s--;)l=o[s],u=c.get(l),u===void 0&&c.set(l,u=s?new Map:y8t(e)),c=u;return u};Lxe();const YV={http:W5t,xhr:f8t,fetch:{get:Lxe}};li.forEach(YV,(i,e)=>{if(i){try{Object.defineProperty(i,"name",{value:e})}catch(t){}Object.defineProperty(i,"adapterName",{value:e})}});const Bxe=i=>`- ${i}`,C8t=i=>li.isFunction(i)||i===null||i===!1;function x8t(i,e){i=li.isArray(i)?i:[i];const{length:t}=i;let n,r;const o={};for(let a=0;a<t;a++){n=i[a];let s;if(r=n,!C8t(n)&&(r=YV[(s=String(n)).toLowerCase()],r===void 0))throw new io(`Unknown adapter '${s}'`);if(r&&(li.isFunction(r)||(r=r.get(e))))break;o[s||"#"+a]=r}if(!r){const a=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since :
|
|
543
543
|
`+a.map(Bxe).join(`
|
|
@@ -9760,7 +9760,7 @@ When executing the task, you need to meet the following requirements:
|
|
|
9760
9760
|
`),l.push(` </office:body>
|
|
9761
9761
|
`),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}})();function zke(i,e){if(e.bookType=="fods")return $ke(i,e);var t=hJ(),n="",r=[],o=[];return n="mimetype",uo(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",uo(t,n,$ke(i,e)),r.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",uo(t,n,RGt(i,e)),r.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",uo(t,n,Tl+zMe()),r.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",uo(t,n,$$t(o)),r.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",uo(t,n,N$t(r)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function OO(i){return new DataView(i.buffer,i.byteOffset,i.byteLength)}function MGt(i){return typeof TextEncoder!="undefined"?new TextEncoder().encode(i):J0(L6(i))}function kGt(i,e){e:for(var t=0;t<=i.length-e.length;++t){for(var n=0;n<e.length;++n)if(i[t+n]!=e[n])continue e;return!0}return!1}function Hv(i){var e=i.reduce(function(r,o){return r+o.length},0),t=new Uint8Array(e),n=0;return i.forEach(function(r){t.set(r,n),n+=r.length}),t}function OGt(i,e,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,r=t/Math.pow(10,n-6176);i[e+15]|=n>>7,i[e+14]|=(n&127)<<1;for(var o=0;r>=1;++o,r/=256)i[e+o]=r&255;i[e+15]|=t>=0?0:128}function q6(i,e){var t=e?e[0]:0,n=i[t]&127;e:if(i[t++]>=128&&(n|=(i[t]&127)<<7,i[t++]<128||(n|=(i[t]&127)<<14,i[t++]<128)||(n|=(i[t]&127)<<21,i[t++]<128)||(n+=(i[t]&127)*Math.pow(2,28),++t,i[t++]<128)||(n+=(i[t]&127)*Math.pow(2,35),++t,i[t++]<128)||(n+=(i[t]&127)*Math.pow(2,42),++t,i[t++]<128)))break e;return e&&(e[0]=t),n}function Ca(i){var e=new Uint8Array(7);e[0]=i&127;var t=1;e:if(i>127){if(e[t-1]|=128,e[t]=i>>7&127,++t,i<=16383||(e[t-1]|=128,e[t]=i>>14&127,++t,i<=2097151)||(e[t-1]|=128,e[t]=i>>21&127,++t,i<=268435455)||(e[t-1]|=128,e[t]=i/256>>>21&127,++t,i<=34359738367)||(e[t-1]|=128,e[t]=i/65536>>>21&127,++t,i<=4398046511103))break e;e[t-1]|=128,e[t]=i/16777216>>>21&127,++t}return e.slice(0,t)}function q3(i){var e=0,t=i[e]&127;e:if(i[e++]>=128){if(t|=(i[e]&127)<<7,i[e++]<128||(t|=(i[e]&127)<<14,i[e++]<128)||(t|=(i[e]&127)<<21,i[e++]<128))break e;t|=(i[e]&127)<<28}return t}function $l(i){for(var e=[],t=[0];t[0]<i.length;){var n=t[0],r=q6(i,t),o=r&7;r=Math.floor(r/8);var a=0,s;if(r==0)break;switch(o){case 0:{for(var l=t[0];i[t[0]++]>=128;);s=i.slice(l,t[0])}break;case 5:a=4,s=i.slice(t[0],t[0]+a),t[0]+=a;break;case 1:a=8,s=i.slice(t[0],t[0]+a),t[0]+=a;break;case 2:a=q6(i,t),s=i.slice(t[0],t[0]+a),t[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(r," at offset ").concat(n))}var u={data:s,type:o};e[r]==null?e[r]=[u]:e[r].push(u)}return e}function Mu(i){var e=[];return i.forEach(function(t,n){t.forEach(function(r){r.data&&(e.push(Ca(n*8+r.type)),r.type==2&&e.push(Ca(r.data.length)),e.push(r.data))})}),Hv(e)}function ig(i){for(var e,t=[],n=[0];n[0]<i.length;){var r=q6(i,n),o=$l(i.slice(n[0],n[0]+r));n[0]+=r;var a={id:q3(o[1][0].data),messages:[]};o[2].forEach(function(s){var l=$l(s.data),u=q3(l[3][0].data);a.messages.push({meta:l,data:i.slice(n[0],n[0]+u)}),n[0]+=u}),(e=o[3])!=null&&e[0]&&(a.merge=q3(o[3][0].data)>>>0>0),t.push(a)}return t}function Y3(i){var e=[];return i.forEach(function(t){var n=[];n[1]=[{data:Ca(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Ca(+!!t.merge),type:0}]);var r=[];t.messages.forEach(function(a){r.push(a.data),a.meta[3]=[{type:0,data:Ca(a.data.length)}],n[2].push({data:Mu(a.meta),type:2})});var o=Mu(n);e.push(Ca(o.length)),e.push(o),r.forEach(function(a){return e.push(a)})}),Hv(e)}function IGt(i,e){if(i!=0)throw new Error("Unexpected Snappy chunk type ".concat(i));for(var t=[0],n=q6(e,t),r=[];t[0]<e.length;){var o=e[t[0]]&3;if(o==0){var a=e[t[0]++]>>2;if(a<60)++a;else{var s=a-59;a=e[t[0]],s>1&&(a|=e[t[0]+1]<<8),s>2&&(a|=e[t[0]+2]<<16),s>3&&(a|=e[t[0]+3]<<24),a>>>=0,a++,t[0]+=s}r.push(e.slice(t[0],t[0]+a)),t[0]+=a;continue}else{var l=0,u=0;if(o==1?(u=(e[t[0]]>>2&7)+4,l=(e[t[0]++]&224)<<3,l|=e[t[0]++]):(u=(e[t[0]++]>>2)+1,o==2?(l=e[t[0]]|e[t[0]+1]<<8,t[0]+=2):(l=(e[t[0]]|e[t[0]+1]<<8|e[t[0]+2]<<16|e[t[0]+3]<<24)>>>0,t[0]+=4)),r=[Hv(r)],l==0)throw new Error("Invalid offset 0");if(l>r[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(r.push(r[0].slice(-l)),u-=l;u>=r[r.length-1].length;)r.push(r[r.length-1]),u-=r[r.length-1].length;r.push(r[0].slice(-l,-l+u))}}var c=Hv(r);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function ng(i){for(var e=[],t=0;t<i.length;){var n=i[t++],r=i[t]|i[t+1]<<8|i[t+2]<<16;t+=3,e.push(IGt(n,i.slice(t,t+r))),t+=r}if(t!==i.length)throw new Error("data is not a valid framed stream!");return Hv(e)}function X3(i){for(var e=[],t=0;t<i.length;){var n=Math.min(i.length-t,268435455),r=new Uint8Array(4);e.push(r);var o=Ca(n),a=o.length;e.push(o),n<=60?(a++,e.push(new Uint8Array([n-1<<2]))):n<=256?(a+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(a+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(a+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(i.slice(t,t+n)),a+=n,r[0]=0,r[1]=a&255,r[2]=a>>8&255,r[3]=a>>16&255,t+=n}return Hv(e)}function LJ(i,e){var t=new Uint8Array(32),n=OO(t),r=12,o=0;switch(t[0]=5,i.t){case"n":t[1]=2,OGt(t,r,i.v),o|=1,r+=16;break;case"b":t[1]=6,n.setFloat64(r,i.v?1:0,!0),o|=2,r+=8;break;case"s":if(e.indexOf(i.v)==-1)throw new Error("Value ".concat(i.v," missing from SST!"));t[1]=3,n.setUint32(r,e.indexOf(i.v),!0),o|=8,r+=4;break;default:throw"unsupported cell type "+i.t}return n.setUint32(8,o,!0),t.slice(0,r)}function BJ(i,e){var t=new Uint8Array(32),n=OO(t),r=12,o=0;switch(t[0]=3,i.t){case"n":t[2]=2,n.setFloat64(r,i.v,!0),o|=32,r+=8;break;case"b":t[2]=6,n.setFloat64(r,i.v?1:0,!0),o|=32,r+=8;break;case"s":if(e.indexOf(i.v)==-1)throw new Error("Value ".concat(i.v," missing from SST!"));t[2]=3,n.setUint32(r,e.indexOf(i.v),!0),o|=16,r+=4;break;default:throw"unsupported cell type "+i.t}return n.setUint32(4,o,!0),t.slice(0,r)}function $v(i){var e=$l(i);return q6(e[1][0].data)}function DGt(i,e,t){var n,r,o,a;if(!((n=i[6])!=null&&n[0])||!((r=i[7])!=null&&r[0]))throw"Mutation only works on post-BNC storages!";var s=((a=(o=i[8])==null?void 0:o[0])==null?void 0:a.data)&&q3(i[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=OO(i[7][0].data),c=0,h=[],d=OO(i[4][0].data),f=0,g=[],p=0;p<e.length;++p){if(e[p]==null){u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}u.setUint16(p*2,c,!0),d.setUint16(p*2,f,!0);var m,v;switch(typeof e[p]){case"string":m=LJ({t:"s",v:e[p]},t),v=BJ({t:"s",v:e[p]},t);break;case"number":m=LJ({t:"n",v:e[p]},t),v=BJ({t:"n",v:e[p]},t);break;case"boolean":m=LJ({t:"b",v:e[p]},t),v=BJ({t:"b",v:e[p]},t);break;default:throw new Error("Unsupported value "+e[p])}h.push(m),c+=m.length,g.push(v),f+=v.length,++l}for(i[2][0].data=Ca(l);p<i[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return i[6][0].data=Hv(h),i[3][0].data=Hv(g),l}function PGt(i,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=i.Sheets[i.SheetNames[0]];i.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Od(t["!ref"]);n.s.r=n.s.c=0;var r=!1;n.e.c>9&&(r=!0,n.e.c=9),n.e.r>49&&(r=!0,n.e.r=49),r&&console.error("The Numbers writer is currently limited to ".concat(Rl(n)));var o=DO(t,{range:n,header:1}),a=["~Sh33tJ5~"];o.forEach(function(H){return H.forEach(function(J){typeof J=="string"&&a.push(J)})});var s={},l=[],u=Ta.read(e.numbers,{type:"base64"});u.FileIndex.map(function(H,J){return[H,u.FullPaths[J]]}).forEach(function(H){var J=H[0],re=H[1];if(J.type==2&&J.name.match(/\.iwa/)){var se=J.content,ie=ng(se),ue=ig(ie);ue.forEach(function(he){l.push(he.id),s[he.id]={deps:[],location:re,type:q3(he.messages[0].meta[1][0].data)}})}}),l.sort(function(H,J){return H-J});var c=l.filter(function(H){return H>1}).map(function(H){return[H,Ca(H)]});u.FileIndex.map(function(H,J){return[H,u.FullPaths[J]]}).forEach(function(H){var J=H[0];if(H[1],!!J.name.match(/\.iwa/)){var re=ig(ng(J.content));re.forEach(function(se){se.messages.forEach(function(ie){c.forEach(function(ue){se.messages.some(function(he){return q3(he.meta[1][0].data)!=11006&&kGt(he.data,ue[1])})&&s[ue[0]].deps.push(se.id)})})})}});for(var h=Ta.find(u,s[1].location),d=ig(ng(h.content)),f,g=0;g<d.length;++g){var p=d[g];p.id==1&&(f=p)}var m=$v($l(f.messages[0].data)[1][0].data);for(h=Ta.find(u,s[m].location),d=ig(ng(h.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(f=p);for(m=$v($l(f.messages[0].data)[2][0].data),h=Ta.find(u,s[m].location),d=ig(ng(h.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(f=p);for(m=$v($l(f.messages[0].data)[2][0].data),h=Ta.find(u,s[m].location),d=ig(ng(h.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(f=p);var v=$l(f.messages[0].data);{v[6][0].data=Ca(n.e.r+1),v[7][0].data=Ca(n.e.c+1);var b=$v(v[46][0].data),y=Ta.find(u,s[b].location),_=ig(ng(y.content));{for(var S=0;S<_.length&&_[S].id!=b;++S);if(_[S].id!=b)throw"Bad ColumnRowUIDMapArchive";var x=$l(_[S].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var w=0;w<=n.e.c;++w){var E=[];E[1]=E[2]=[{type:0,data:Ca(w+420690)}],x[1].push({type:2,data:Mu(E)}),x[2].push({type:0,data:Ca(w)}),x[3].push({type:0,data:Ca(w)})}x[4]=[],x[5]=[],x[6]=[];for(var A=0;A<=n.e.r;++A)E=[],E[1]=E[2]=[{type:0,data:Ca(A+726270)}],x[4].push({type:2,data:Mu(E)}),x[5].push({type:0,data:Ca(A)}),x[6].push({type:0,data:Ca(A)});_[S].messages[0].data=Mu(x)}y.content=X3(Y3(_)),y.size=y.content.length,delete v[46];var T=$l(v[4][0].data);{T[7][0].data=Ca(n.e.r+1);var R=$l(T[1][0].data),k=$v(R[2][0].data);y=Ta.find(u,s[k].location),_=ig(ng(y.content));{if(_[0].id!=k)throw"Bad HeaderStorageBucket";var O=$l(_[0].messages[0].data);for(A=0;A<o.length;++A){var P=$l(O[2][0].data);P[1][0].data=Ca(A),P[4][0].data=Ca(o[A].length),O[2][A]={type:O[2][0].type,data:Mu(P)}}_[0].messages[0].data=Mu(O)}y.content=X3(Y3(_)),y.size=y.content.length;var L=$v(T[2][0].data);y=Ta.find(u,s[L].location),_=ig(ng(y.content));{if(_[0].id!=L)throw"Bad HeaderStorageBucket";for(O=$l(_[0].messages[0].data),w=0;w<=n.e.c;++w)P=$l(O[2][0].data),P[1][0].data=Ca(w),P[4][0].data=Ca(n.e.r+1),O[2][w]={type:O[2][0].type,data:Mu(P)};_[0].messages[0].data=Mu(O)}y.content=X3(Y3(_)),y.size=y.content.length;var F=$v(T[4][0].data);(function(){for(var H=Ta.find(u,s[F].location),J=ig(ng(H.content)),re,se=0;se<J.length;++se){var ie=J[se];ie.id==F&&(re=ie)}var ue=$l(re.messages[0].data);{ue[3]=[];var he=[];a.forEach(function(me,fe){he[1]=[{type:0,data:Ca(fe)}],he[2]=[{type:0,data:Ca(1)}],he[3]=[{type:2,data:MGt(me)}],ue[3].push({type:2,data:Mu(he)})})}re.messages[0].data=Mu(ue);var ge=Y3(J),pe=X3(ge);H.content=pe,H.size=H.content.length})();var W=$l(T[3][0].data);{var V=W[1][0];delete W[2];var G=$l(V.data);{var z=$v(G[2][0].data);(function(){for(var H=Ta.find(u,s[z].location),J=ig(ng(H.content)),re,se=0;se<J.length;++se){var ie=J[se];ie.id==z&&(re=ie)}var ue=$l(re.messages[0].data);{delete ue[6],delete W[7];var he=new Uint8Array(ue[5][0].data);ue[5]=[];for(var ge=0,pe=0;pe<=n.e.r;++pe){var me=$l(he);ge+=DGt(me,o[pe],a),me[1][0].data=Ca(pe),ue[5].push({data:Mu(me),type:2})}ue[1]=[{type:0,data:Ca(n.e.c+1)}],ue[2]=[{type:0,data:Ca(n.e.r+1)}],ue[3]=[{type:0,data:Ca(ge)}],ue[4]=[{type:0,data:Ca(n.e.r+1)}]}re.messages[0].data=Mu(ue);var fe=Y3(J),Se=X3(fe);H.content=Se,H.size=H.content.length})()}V.data=Mu(G)}T[3][0].data=Mu(W)}v[4][0].data=Mu(T)}f.messages[0].data=Mu(v);var X=Y3(d),j=X3(X);return h.content=j,h.size=h.content.length,u}function LGt(i){return function(t){for(var n=0;n!=i.length;++n){var r=i[n];t[r[0]]===void 0&&(t[r[0]]=r[1]),r[2]==="n"&&(t[r[0]]=Number(t[r[0]]))}}}function FJ(i){LGt([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(i)}function BGt(i,e){return e.bookType=="ods"?zke(i,e):e.bookType=="numbers"?PGt(i,e):e.bookType=="xlsb"?FGt(i,e):NGt(i,e)}function FGt(i,e){U3=1024,i&&!i.SSF&&(i.SSF=Kh(Ks)),i&&i.SSF&&(fO(),dO(i.SSF),e.revssf=gO(i.SSF),e.revssf[i.SSF[65535]]=0,e.ssf=i.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,U6?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var t=e.bookType=="xlsb"?"bin":"xml",n=bke.indexOf(e.bookType)>-1,r=FMe();FJ(e=e||{});var o=hJ(),a="",s=0;if(e.cellXfs=[],Nv(e.cellXfs,{},{revssf:{General:0}}),i.Props||(i.Props={}),a="docProps/core.xml",uo(o,a,WMe(i.Props,e)),r.coreprops.push(a),_a(e.rels,2,a,ia.CORE_PROPS),a="docProps/app.xml",!(i.Props&&i.Props.SheetNames))if(!i.Workbook||!i.Workbook.Sheets)i.Props.SheetNames=i.SheetNames;else{for(var l=[],u=0;u<i.SheetNames.length;++u)(i.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(i.SheetNames[u]);i.Props.SheetNames=l}for(i.Props.Worksheets=i.Props.SheetNames.length,uo(o,a,jMe(i.Props)),r.extprops.push(a),_a(e.rels,3,a,ia.EXT_PROPS),i.Custprops!==i.Props&&Eu(i.Custprops||{}).length>0&&(a="docProps/custom.xml",uo(o,a,UMe(i.Custprops)),r.custprops.push(a),_a(e.rels,4,a,ia.CUST_PROPS)),s=1;s<=i.SheetNames.length;++s){var c={"!id":{}},h=i.Sheets[i.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+t,uo(o,a,$Ut(s-1,a,e,i,c)),r.sheets.push(a),_a(e.wbrels,-1,"worksheets/sheet"+s+"."+t,ia.WS[0])}if(h){var f=h["!comments"],g=!1,p="";f&&f.length>0&&(p="xl/comments"+s+"."+t,uo(o,p,VUt(f,p)),r.comments.push(p),_a(c,-1,"../comments"+s+"."+t,ia.CMNT),g=!0),h["!legacy"]&&g&&uo(o,"xl/drawings/vmlDrawing"+s+".vml",mke(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}c["!id"].rId1&&uo(o,HMe(a),V3(c))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+t,uo(o,a,WUt(e.Strings,a,e)),r.strs.push(a),_a(e.wbrels,-1,"sharedStrings."+t,ia.SST)),a="xl/workbook."+t,uo(o,a,HUt(i,a)),r.workbooks.push(a),_a(e.rels,1,a,ia.WB),a="xl/theme/theme1.xml",uo(o,a,gke(i.Themes,e)),r.themes.push(a),_a(e.wbrels,-1,"theme/theme1.xml",ia.THEME),a="xl/styles."+t,uo(o,a,zUt(i,a,e)),r.styles.push(a),_a(e.wbrels,-1,"styles."+t,ia.STY),i.vbaraw&&n&&(a="xl/vbaProject.bin",uo(o,a,i.vbaraw),r.vba.push(a),_a(e.wbrels,-1,"vbaProject.bin",ia.VBA)),a="xl/metadata."+t,uo(o,a,jUt(a)),r.metadata.push(a),_a(e.wbrels,-1,"metadata."+t,ia.XLMETA),uo(o,"[Content_Types].xml",NMe(r,e)),uo(o,"_rels/.rels",V3(e.rels)),uo(o,"xl/_rels/workbook."+t+".rels",V3(e.wbrels)),delete e.revssf,delete e.ssf,o}function NGt(i,e){U3=1024,i&&!i.SSF&&(i.SSF=Kh(Ks)),i&&i.SSF&&(fO(),dO(i.SSF),e.revssf=gO(i.SSF),e.revssf[i.SSF[65535]]=0,e.ssf=i.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,U6?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var t="xml",n=bke.indexOf(e.bookType)>-1,r=FMe();FJ(e=e||{});var o=hJ(),a="",s=0;if(e.cellXfs=[],Nv(e.cellXfs,{},{revssf:{General:0}}),i.Props||(i.Props={}),a="docProps/core.xml",uo(o,a,WMe(i.Props,e)),r.coreprops.push(a),_a(e.rels,2,a,ia.CORE_PROPS),a="docProps/app.xml",!(i.Props&&i.Props.SheetNames))if(!i.Workbook||!i.Workbook.Sheets)i.Props.SheetNames=i.SheetNames;else{for(var l=[],u=0;u<i.SheetNames.length;++u)(i.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(i.SheetNames[u]);i.Props.SheetNames=l}i.Props.Worksheets=i.Props.SheetNames.length,uo(o,a,jMe(i.Props)),r.extprops.push(a),_a(e.rels,3,a,ia.EXT_PROPS),i.Custprops!==i.Props&&Eu(i.Custprops||{}).length>0&&(a="docProps/custom.xml",uo(o,a,UMe(i.Custprops)),r.custprops.push(a),_a(e.rels,4,a,ia.CUST_PROPS));var c=["SheetJ5"];for(e.tcid=0,s=1;s<=i.SheetNames.length;++s){var h={"!id":{}},d=i.Sheets[i.SheetNames[s-1]],f=(d||{})["!type"]||"sheet";switch(f){case"chart":default:a="xl/worksheets/sheet"+s+"."+t,uo(o,a,kke(s-1,e,i,h)),r.sheets.push(a),_a(e.wbrels,-1,"worksheets/sheet"+s+"."+t,ia.WS[0])}if(d){var g=d["!comments"],p=!1,m="";if(g&&g.length>0){var v=!1;g.forEach(function(b){b[1].forEach(function(y){y.T==!0&&(v=!0)})}),v&&(m="xl/threadedComments/threadedComment"+s+"."+t,uo(o,m,pWt(g,c,e)),r.threadedcomments.push(m),_a(h,-1,"../threadedComments/threadedComment"+s+"."+t,ia.TCMNT)),m="xl/comments"+s+"."+t,uo(o,m,vke(g)),r.comments.push(m),_a(h,-1,"../comments"+s+"."+t,ia.CMNT),p=!0}d["!legacy"]&&p&&uo(o,"xl/drawings/vmlDrawing"+s+".vml",mke(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}h["!id"].rId1&&uo(o,HMe(a),V3(h))}return e.Strings!=null&&e.Strings.length>0&&(a="xl/sharedStrings."+t,uo(o,a,ake(e.Strings,e)),r.strs.push(a),_a(e.wbrels,-1,"sharedStrings."+t,ia.SST)),a="xl/workbook."+t,uo(o,a,Dke(i)),r.workbooks.push(a),_a(e.rels,1,a,ia.WB),a="xl/theme/theme1.xml",uo(o,a,gke(i.Themes,e)),r.themes.push(a),_a(e.wbrels,-1,"theme/theme1.xml",ia.THEME),a="xl/styles."+t,uo(o,a,hke(i,e)),r.styles.push(a),_a(e.wbrels,-1,"styles."+t,ia.STY),i.vbaraw&&n&&(a="xl/vbaProject.bin",uo(o,a,i.vbaraw),r.vba.push(a),_a(e.wbrels,-1,"vbaProject.bin",ia.VBA)),a="xl/metadata."+t,uo(o,a,pke()),r.metadata.push(a),_a(e.wbrels,-1,"metadata."+t,ia.XLMETA),c.length>1&&(a="xl/persons/person.xml",uo(o,a,mWt(c)),r.people.push(a),_a(e.wbrels,-1,"persons/person.xml",ia.PEOPLE)),uo(o,"[Content_Types].xml",NMe(r,e)),uo(o,"_rels/.rels",V3(e.rels)),uo(o,"xl/_rels/workbook."+t+".rels",V3(e.wbrels)),delete e.revssf,delete e.ssf,o}function HGt(i,e){var t="";switch((e||{}).type||"base64"){case"buffer":return[i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]];case"base64":t=Y1(i.slice(0,12));break;case"binary":t=i;break;case"array":return[i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Wke(i,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return I6(e.file,Ta.write(i,{type:ra?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return Ta.write(i,e)}function $Gt(i,e){var t=Kh(e||{}),n=BGt(i,t);return zGt(n,t)}function zGt(i,e){var t={},n=ra?"nodebuffer":typeof Uint8Array!="undefined"?"array":"string";if(e.compression&&(t.compression="DEFLATE"),e.password)t.type=n;else switch(e.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var r=i.FullPaths?Ta.write(i,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!e.compression}):i.generate(t);if(typeof Deno!="undefined"&&typeof r=="string"){if(e.type=="binary"||e.type=="base64")return r;r=new Uint8Array(aO(r))}return e.password&&typeof encrypt_agile!="undefined"?Wke(encrypt_agile(r,e.password),e):e.type==="file"?I6(e.file,r):e.type=="string"?P6(r):r}function WGt(i,e){var t=e||{},n=rGt(i,t);return Wke(n,t)}function pp(i,e,t){t||(t="");var n=t+i;switch(e.type){case"base64":return M6(L6(n));case"binary":return L6(n);case"string":return i;case"file":return I6(e.file,n,"utf8");case"buffer":return ra?X1(n,"utf8"):typeof TextEncoder!="undefined"?new TextEncoder().encode(n):pp(n,{type:"binary"}).split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function VGt(i,e){switch(e.type){case"base64":return M6(i);case"binary":return i;case"string":return i;case"file":return I6(e.file,i,"binary");case"buffer":return ra?X1(i,"binary"):i.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function IO(i,e){switch(e.type){case"string":case"base64":case"binary":for(var t="",n=0;n<i.length;++n)t+=String.fromCharCode(i[n]);return e.type=="base64"?M6(t):e.type=="string"?P6(t):t;case"file":return I6(e.file,i);case"buffer":return i;default:throw new Error("Unrecognized type "+e.type)}}function Vke(i,e){vHt(),RUt(i);var t=Kh(e||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=Vke(i,t);return t.type="array",aO(n)}var r=0;if(t.sheet&&(typeof t.sheet=="number"?r=t.sheet:r=i.SheetNames.indexOf(t.sheet),!i.SheetNames[r]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return pp(iGt(i,t),t);case"slk":case"sylk":return pp(Ezt.from_sheet(i.Sheets[i.SheetNames[r]],t),t);case"htm":case"html":return pp(Bke(i.Sheets[i.SheetNames[r]],t),t);case"txt":return VGt(Uke(i.Sheets[i.SheetNames[r]],t),t);case"csv":return pp(NJ(i.Sheets[i.SheetNames[r]],t),t,"\uFEFF");case"dif":return pp(Azt.from_sheet(i.Sheets[i.SheetNames[r]],t),t);case"dbf":return IO(wzt.from_sheet(i.Sheets[i.SheetNames[r]],t),t);case"prn":return pp(Tzt.from_sheet(i.Sheets[i.SheetNames[r]],t),t);case"rtf":return pp(Pzt.from_sheet(i.Sheets[i.SheetNames[r]],t),t);case"eth":return pp(rke.from_sheet(i.Sheets[i.SheetNames[r]],t),t);case"fods":return pp(zke(i,t),t);case"wk1":return IO(oke.sheet_to_wk1(i.Sheets[i.SheetNames[r]],t),t);case"wk3":return IO(oke.book_to_wk3(i,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),IO(Lke(i,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),WGt(i,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return $Gt(i,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function jGt(i){if(!i.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=i.file.slice(i.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(i.bookType=t.slice(1)),i.bookType=e[i.bookType]||i.bookType}}function UGt(i,e,t){var n={};return n.type="file",n.file=e,jGt(n),Vke(i,n)}function GGt(i,e,t,n,r,o,a,s){var l=Tu(t),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=r===1?[]:{};if(r!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:t,enumerable:!1})}catch(m){d.__rowNum__=t}else d.__rowNum__=t;if(!a||i[t])for(var f=e.s.c;f<=e.e.c;++f){var g=a?i[t][f]:i[n[f]+l];if(g===void 0||g.t===void 0){if(u===void 0)continue;o[f]!=null&&(d[o[f]]=u);continue}var p=g.v;switch(g.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+g.t)}if(o[f]!=null){if(p==null)if(g.t=="e"&&p===null)d[o[f]]=null;else if(u!==void 0)d[o[f]]=u;else if(c&&p===null)d[o[f]]=null;else continue;else d[o[f]]=c&&(g.t!=="n"||g.t==="n"&&s.rawNumbers!==!1)?p:Q1(g,p,s);p!=null&&(h=!1)}}return{row:d,isempty:h}}function DO(i,e){if(i==null||i["!ref"]==null)return[];var t={t:"n",v:0},n=0,r=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=e||{},c=u.range!=null?u.range:i["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof c){case"string":l=us(c);break;case"number":l=us(i["!ref"]),l.s.r=c;break;default:l=c}n>0&&(r=0);var h=Tu(l.s.r),d=[],f=[],g=0,p=0,m=Array.isArray(i),v=l.s.r,b=0,y={};m&&!i[v]&&(i[v]=[]);var _=u.skipHidden&&i["!cols"]||[],S=u.skipHidden&&i["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(_[b]||{}).hidden)switch(d[b]=ju(b),t=m?i[v][b]:i[d[b]+h],n){case 1:o[b]=b-l.s.c;break;case 2:o[b]=d[b];break;case 3:o[b]=u.header[b-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),s=a=Q1(t,null,u),p=y[a]||0,!p)y[a]=1;else{do s=a+"_"+p++;while(y[s]);y[a]=p,y[s]=1}o[b]=s}for(v=l.s.r+r;v<=l.e.r;++v)if(!(S[v]||{}).hidden){var x=GGt(i,l,v,d,n,o,m,u);(x.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(f[g++]=x.row)}return f.length=g,f}var jke=/"/g;function qGt(i,e,t,n,r,o,a,s){for(var l=!0,u=[],c="",h=Tu(t),d=e.s.c;d<=e.e.c;++d)if(n[d]){var f=s.dense?(i[t]||[])[d]:i[n[d]+h];if(f==null)c="";else if(f.v!=null){l=!1,c=""+(s.rawNumbers&&f.t=="n"?f.v:Q1(f,null,s));for(var g=0,p=0;g!==c.length;++g)if((p=c.charCodeAt(g))===r||p===o||p===34||s.forceQuotes){c='"'+c.replace(jke,'""')+'"';break}c=="ID"&&(c='"ID"')}else f.f!=null&&!f.F?(l=!1,c="="+f.f,c.indexOf(",")>=0&&(c='"'+c.replace(jke,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(a)}function NJ(i,e){var t=[],n=e==null?{}:e;if(i==null||i["!ref"]==null)return"";var r=us(i["!ref"]),o=n.FS!==void 0?n.FS:",",a=o.charCodeAt(0),s=n.RS!==void 0?n.RS:`
|
|
9762
9762
|
`,l=s.charCodeAt(0),u=new RegExp((o=="|"?"\\|":o)+"+$"),c="",h=[];n.dense=Array.isArray(i);for(var d=n.skipHidden&&i["!cols"]||[],f=n.skipHidden&&i["!rows"]||[],g=r.s.c;g<=r.e.c;++g)(d[g]||{}).hidden||(h[g]=ju(g));for(var p=0,m=r.s.r;m<=r.e.r;++m)(f[m]||{}).hidden||(c=qGt(i,r,m,h,a,l,o,n),c!=null&&(n.strip&&(c=c.replace(u,"")),(c||n.blankrows!==!1)&&t.push((p++?s:"")+c)));return delete n.dense,t.join("")}function Uke(i,e){e||(e={}),e.FS=" ",e.RS=`
|
|
9763
|
-
`;var t=NJ(i,e);return t}function YGt(i){var e="",t,n="";if(i==null||i["!ref"]==null)return[];var r=us(i["!ref"]),o="",a=[],s,l=[],u=Array.isArray(i);for(s=r.s.c;s<=r.e.c;++s)a[s]=ju(s);for(var c=r.s.r;c<=r.e.r;++c)for(o=Tu(c),s=r.s.c;s<=r.e.c;++s)if(e=a[s]+o,t=u?(i[c]||[])[s]:i[e],n="",t!==void 0){if(t.F!=null){if(e=t.F,!t.f)continue;n=t.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}l[l.length]=e+"="+n}return l}function Gke(i,e,t){var n=t||{},r=+!n.skipHeader,o=i||{},a=0,s=0;if(o&&n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?tu(n.origin):n.origin;a=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:a+e.length-1+r}};if(o["!ref"]){var h=us(o["!ref"]);c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),a==-1&&(a=h.e.r+1,c.e.r=a+e.length-1+r)}else a==-1&&(a=0,c.e.r=e.length-1+r);var d=n.header||[],f=0;e.forEach(function(p,m){Eu(p).forEach(function(v){(f=d.indexOf(v))==-1&&(d[f=d.length]=v);var b=p[v],y="z",_="",S=ya({c:s+f,r:a+m+r});u=Y6(o,S),b&&typeof b=="object"&&!(b instanceof Date)?o[S]=b:(typeof b=="number"?y="n":typeof b=="boolean"?y="b":typeof b=="string"?y="s":b instanceof Date?(y="d",n.cellDates||(y="n",b=Xh(b)),_=n.dateNF||Ks[14]):b===null&&n.nullError&&(y="e",b=0),u?(u.t=y,u.v=b,delete u.w,delete u.R,_&&(u.z=_)):o[S]=u={t:y,v:b},_&&(u.z=_))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var g=Tu(a);if(r)for(f=0;f<d.length;++f)o[ju(f+s)+g]={t:"s",v:d[f]};return o["!ref"]=Rl(c),o}function XGt(i,e){return Gke(null,i,e)}function Y6(i,e,t){if(typeof e=="string"){if(Array.isArray(i)){var n=tu(e);return i[n.r]||(i[n.r]=[]),i[n.r][n.c]||(i[n.r][n.c]={t:"z"})}return i[e]||(i[e]={t:"z"})}return typeof e!="number"?Y6(i,ya(e)):Y6(i,ya({r:e,c:t||0}))}function KGt(i,e){if(typeof e=="number"){if(e>=0&&i.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var t=i.SheetNames.indexOf(e);if(t>-1)return t;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function ZGt(){return{SheetNames:[],Sheets:{}}}function QGt(i,e,t,n){var r=1;if(!t)for(;r<=65535&&i.SheetNames.indexOf(t="Sheet"+r)!=-1;++r,t=void 0);if(!t||i.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&i.SheetNames.indexOf(t)>=0){var o=t.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var a=o&&o[1]||t;for(++r;r<=65535&&i.SheetNames.indexOf(t=a+r)!=-1;++r);}if(Ike(t),i.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return i.SheetNames.push(t),i.Sheets[t]=e,t}function JGt(i,e,t){i.Workbook||(i.Workbook={}),i.Workbook.Sheets||(i.Workbook.Sheets=[]);var n=KGt(i,e);switch(i.Workbook.Sheets[n]||(i.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}i.Workbook.Sheets[n].Hidden=t}function eqt(i,e){return i.z=e,i}function qke(i,e,t){return e?(i.l={Target:e},t&&(i.l.Tooltip=t)):delete i.l,i}function tqt(i,e,t){return qke(i,"#"+e,t)}function iqt(i,e,t){i.c||(i.c=[]),i.c.push({t:e,a:t||"SheetJS"})}function nqt(i,e,t,n){for(var r=typeof e!="string"?e:us(e),o=typeof e=="string"?e:Rl(e),a=r.s.r;a<=r.e.r;++a)for(var s=r.s.c;s<=r.e.c;++s){var l=Y6(i,a,s);l.t="n",l.F=o,delete l.v,a==r.s.r&&s==r.s.c&&(l.f=t,n&&(l.D=!0))}return i}var HJ={encode_col:ju,encode_row:Tu,encode_cell:ya,encode_range:Rl,decode_col:_J,decode_row:yJ,split_cell:v$t,decode_cell:tu,decode_range:Od,format_cell:Q1,sheet_add_aoa:MMe,sheet_add_json:Gke,sheet_add_dom:Fke,aoa_to_sheet:$3,json_to_sheet:XGt,table_to_sheet:Nke,table_to_book:AGt,sheet_to_csv:NJ,sheet_to_txt:Uke,sheet_to_json:DO,sheet_to_html:Bke,sheet_to_formulae:YGt,sheet_to_row_object_array:DO,sheet_get_cell:Y6,book_new:ZGt,book_append_sheet:QGt,book_set_sheet_visibility:JGt,cell_set_number_format:eqt,cell_set_hyperlink:qke,cell_set_internal_link:tqt,cell_add_comment:iqt,sheet_set_array_formula:nqt,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const $J=new B7t({model:c6.CHART_ADVISOR});function rqt(i,e){return eTt(i,{key:e})}function Yke(i){const{xField:e,yField:t,nameField:n,valField:r,type:o,metrics:a,dimensions:s}=i;if(!o||!bS[o])return!0;const l=Lf(o);if(l==="cartesian"){if(!e&&!t&&!(a!=null&&a.length)&&!(s!=null&&s.length))return!0}else if(l==="polar"&&!n&&!r&&!(a!=null&&a.length)&&!(s!=null&&s.length))return!0;return!1}function Xke(i){return ga(this,null,function*(){var l,u,c,h,d,f,g;const e=i==null?void 0:i.data;if(!e)return i;const t=$J.getFieldInfo(e),n=yield $J.generateChart("",t,e);let r;const o=(l=n==null?void 0:n.chartAdvistorRes)==null?void 0:l[0];r=(u=o==null?void 0:o.spec)==null?void 0:u.type,(!r||!MGe[r])&&(r=Pa.Table);const a=Lf(r),s=Pi(ke({},i),{type:r});if(a==="cartesian"){const p=(c=n==null?void 0:n.spec)==null?void 0:c.xField;s.xField=p,s.yField=(h=n==null?void 0:n.spec)==null?void 0:h.yield,hl(p)&&(s.xField=p[0])}else a==="polar"&&(s.nameField=(d=n==null?void 0:n.spec)==null?void 0:d.categoryField,s.valField=(f=n==null?void 0:n.spec)==null?void 0:f.valueField);if((g=n==null?void 0:n.vizSchema)!=null&&g.fields){const p=[],m=[];n.vizSchema.fields.forEach(v=>{v.role==="dimension"&&p.push(v.id),v.role==="measure"&&m.push(v.id)}),p.length>0&&s.xField&&!p.includes(s.xField)&&(s.xField=p[0]),s.dimensions=p,s.metrics=m}return s})}function oqt(i,e){const t=HJ.book_new(),n=HJ.json_to_sheet(i);HJ.book_append_sheet(t,n,"Sheet1");const r=Ir().format("YYYY-MM-DD-hh-mm-ss");UGt(t,`${e}-${r}.xlsx`)}const PO=",",aqt="fold-key",zJ="megre-column-name",sqt=()=>{const i=DV(8);return{keyId:i,FOLD_KEY:`${aqt}-${i}`,MERGE_COLUMN_NAME:`${zJ}-${i}`}},{FOLD_KEY:K3,MERGE_COLUMN_NAME:Kke}=sqt(),WJ=i=>{const{data:e,columns:t,metrics:n,dimensions:r,dataSource:o}=i;if(!Array.isArray(e)||(e==null?void 0:e.length)===0)return{};const a=o!=null&&o.type?"dataSource":"static",s=Zke(e,{columns:t,metrics:n,dimensions:r}),l=lqt(e,{metrics:n,dimensions:r}),u=uqt(l,r,n),c=Qke(u.foldData,s,i),h={data:c.data,foldData:u.foldData,isMetricFolded:(u==null?void 0:u.isMetricFolded)||!1,foldKey:u==null?void 0:u.foldKey,foldValue:u==null?void 0:u.foldValue,isColumnMegred:c==null?void 0:c.isColumnMegred,megreColumnName:c==null?void 0:c.megreColumnName};return{fieldInfo:s,type:a,transfromData:h,data:e}},Zke=(i,{columns:e,metrics:t,dimensions:n})=>{const r=$J.getFieldInfo(i);let o=e||[];const a=new Map(o.map(s=>[s.name,s]));for(const s of r){if(a.has(s==null?void 0:s.fieldName)){const l=a.get(s.fieldName);if(l){const u=cqt(s,t,n);Object.assign(s,u,{type:l.type})}}(s==null?void 0:s.role)==="measure"&&(s.role="metric")}return r},lqt=(i,{metrics:e=[],dimensions:t=[]})=>{const n=new Set([...e,...t]);return n.size===0?i:i.map(r=>{let o=!1;for(const s in r)if(!n.has(s)){o=!0;break}if(!o)return r;const a={};for(const s in r)n.has(s)&&(a[s]=r[s]);return a})},uqt=(i,e=[],t=[])=>{let n=i,r=!1;const o=!!(e!=null&&e.length),a=(t==null?void 0:t.length)>0;if(!o&&a||o&&t.length>1){const s=t.join(PO);return r=!0,n=mde(i,{key:K3,value:s,fields:t}),{foldData:n,foldKey:K3,foldValue:s,isMetricFolded:r}}return{foldData:n,isMetricFolded:r}},Qke=(i=[],e=[],t)=>{const{type:n,metrics:r,dimensions:o,xField:a,yField:s,timeGrain:l}=t,u=Lf(n);let c=i,h=o;u==="cartesian"?(h=o==null?void 0:o.filter(f=>f!==(n===Pa.Rank?s:a)),c=Jke(i,{fieldInfo:e,dimensions:o,metrics:r,timeGrain:l})):u==="polar"&&(c=Jke(i,{fieldInfo:e,dimensions:o,metrics:r,timeGrain:l}));const d=hqt(c,e,n,h,r);return{data:(d==null?void 0:d.data)||[],isColumnMegred:(d==null?void 0:d.isColumnMegred)||!1,megreColumnName:d==null?void 0:d.megreColumnName}};function cqt(i,e,t){let n="";return e!=null&&e.includes((i==null?void 0:i.name)||(i==null?void 0:i.fieldName))?n="metric":t!=null&&t.includes((i==null?void 0:i.name)||(i==null?void 0:i.fieldName))&&(n="dimension"),!n&&i.role==="measure"&&(i.role="metric"),Pi(ke({},i),{fieldName:(i==null?void 0:i.name)||(i==null?void 0:i.fieldName),role:n||(i==null?void 0:i.role)})}const hqt=(i,e,t,n=[],r=[])=>{const o=i.map(a=>{const s=Object.keys(a).reduce((l,u)=>{const c=$Tt(e,u,a[u]);return l[u]=c,l},{});if(n&&(n==null?void 0:n.length)>0){const l=n.map(u=>{const c=HTt(e,u,a[u]);return c==null?void 0:c.toString()});t===Pa.Indicator&&(a!=null&&a[K3])&&l.push(K3),(r==null?void 0:r.length)>1&&(s!=null&&s[K3])&&l.push(s[K3]),s[Kke]=l.join(PO)}return ke(ke({},a),s)});return n&&(n==null?void 0:n.length)>0?{data:o,isColumnMegred:!0,megreColumnName:Kke}:{data:o}},Jke=(i,{fieldInfo:e,dimensions:t,metrics:n,timeGrain:r})=>{if(!(i!=null&&i.length)||!(t!=null&&t.length)||!(n!=null&&n.length)||!r)return i;const o=[];if(e==null||e.forEach(u=>{if((u==null?void 0:u.role)==="dimension"&&(u!=null&&u.fieldName)){const c=qM(e,u.fieldName);(c===NV.Timestamp||c===NV.Date)&&o.push(u.fieldName)}}),!o.length)return i;const a=t.filter(u=>o.includes(u));if(!a.length)return i;const s=a[0],l=[...i].sort((u,c)=>{const h=new Date(u[s]).getTime(),d=new Date(c[s]).getTime();return h-d});return l.length<=2,l},dqt=(i,e,t)=>{var a;if(!AAt(i==null?void 0:i.data,e==null?void 0:e.data))return{dataset:WJ(e),isShouldUpdate:!0};const n=Lf(i.type),r=Lf(e==null?void 0:e.type);let o=t;if(n!==r||(i==null?void 0:i.timeGrain)!==(e==null?void 0:e.timeGrain)){const s=Qke((a=t==null?void 0:t.transfromData)==null?void 0:a.foldData,t==null?void 0:t.fieldInfo,e);return o=Pi(ke({},t),{transfromData:ke(ke({},t==null?void 0:t.transfromData),s)}),{dataset:o,isShouldUpdate:!0}}return{isShouldUpdate:!1}},fqt=i=>{const e=mqt(i);return CTt(t=>({theme:"light",chartLoading:!0,chartJson:e,dataset:WJ(e),controllerConfig:{timeRange:void 0,metrics:[],dimensions:[],timeGrain:void 0,filters:[]},contextMenu:{visible:!1,clientX:0,clientY:0},drillBy:{visible:!1,config:{history:[],current:{}},chartState:{}},dataSourceQueryInfo:{metrics:[],dimensions:[],fieldInfo:[]},error:{visible:!1,title:"",message:""},dataDetail:{visible:!1,error:"",loading:!0},setLoading:n=>t(()=>({chartLoading:n})),setError:n=>t(()=>({error:n})),setTheme:n=>t(()=>({theme:n})),setChartJson:n=>t(r=>{const o=r.chartJson,a=dqt(o,n,r.dataset);return a!=null&&a.isShouldUpdate&&t(()=>({dataset:a==null?void 0:a.dataset})),{chartJson:ke(ke({},r.chartJson),n)}}),updateChartJson:(n,r)=>t(o=>{const a=o.chartJson[n];return JSON.stringify(a)===JSON.stringify(r)?o:{chartJson:Pi(ke({},o.chartJson),{[n]:r})}}),setDataset:n=>t(r=>({dataset:ke(ke({},r.dataset),n)})),setControllerConfig:n=>t(()=>({controllerConfig:ke({},n)})),setContextMenu:n=>{t(()=>({contextMenu:ke({},n)}))},setChartDrillBy:n=>{t(r=>({drillBy:ke(ke({},r.drillBy),n)}))},setDataSourceQueryInfo:n=>t(r=>({dataSourceQueryInfo:ke(ke({},r.dataSourceQueryInfo),n)})),setDataDetail:n=>t(r=>({dataDetail:ke(ke({},r.dataDetail),n)}))}))},VJ=new Map,gqt=(i,e)=>(VJ.has(i)||VJ.set(i,fqt(ke({chartId:i},e))),VJ.get(i)),pqt=(i,e,t)=>{if(!i)throw new Error("chartId is required");const n=gqt(i,e);return ITt(n,t)},mqt=i=>{const{type:e,data:t,columns:n,metrics:r,dimensions:o}=i,a=Zke(t,{columns:n,metrics:r,dimensions:o});let s=i;const l=Lf(e);let u=[],c=[];if(!(r!=null&&r.length)||!(o!=null&&o.length))for(const h of a)h.role==="metric"&&(h!=null&&h.fieldName)&&u.push(h.fieldName),h.role==="dimension"&&(h!=null&&h.fieldName)&&c.push(h.fieldName);return u=r!=null&&r.length?r:u,c=o!=null&&o.length?o:c,l==="cartesian"&&(s=Pi(ke({},s),{metrics:u,dimensions:c,xField:i.xField||(c==null?void 0:c[0]),yField:i.yField||(u==null?void 0:u[0])})),ke({},s)},eOe=ce.createContext(null),vqt=()=>{const i=ce.useContext(eOe);if(!i)throw new Error("useChartContext must be used within ChartStoreProvider");return i},Qh=()=>vqt().store,bqt=({chartProps:i,children:e})=>{const t=ce.useMemo(()=>{const r=(i==null?void 0:i.chartId)||DV(10);return Pi(ke({},i),{chartId:r})},[i]),n=pqt(t.chartId,t,r=>r);return we.jsx(eOe.Provider,{value:{store:n,chartId:t.chartId},children:e})};function rg({VChart:i,spec:e={}}){const{setContextMenu:t,chartJson:n}=Qh(),r=o=>{const{event:a,datum:s,mark:l,chart:u}=o;if(EAt(s)){t({visible:!1});return}if([Pa.Line,Pa.Area].includes(n.type)&&(l==null?void 0:l.name)!=="point"){t({visible:!1});return}const h=Lf(n.type),d=u==null?void 0:u.getSpec();let f;h==="cartesian"?(f=rp(d,"xField"),n.type===Pa.Rank&&(f=rp(d,"yField"))):h==="polar"&&(f=rp(d,"categoryField"));const g=n==null?void 0:n.dimensions,p=typeof f=="string"&&f.includes(zJ)||Array.isArray(f)&&f.some(b=>typeof b=="string"&&b.includes(zJ))||Array.isArray(f)&&h==="cartesian"&&g&&g.length>0;p&&g&&g.length>0&&(f=g);let m=[];typeof f=="string"?m.push({name:f,value:rp(s,f),containsMergeKey:p}):Array.isArray(f)&&(m=f.map(b=>({name:b,value:rp(s,b),containsMergeKey:p})));const v={visible:!0,clientX:a==null?void 0:a.clientX,clientY:a==null?void 0:a.clientY,rightClickValue:m};t(v)};return we.jsx(we.Fragment,{children:i&&we.jsx(i,{spec:ke({},e),onRightDown:r},n==null?void 0:n.chartId)})}const LO=(i,e)=>{const{formatValue:t}=F1();return{visible:!!i,item:{label:{formatMethod:r=>t(e,r)}}}},X6=(i,e)=>{const t={visible:!!e};return e||(t.item={label:{formatMethod:()=>i}}),t},K6=({categoryField:i,valueField:e,seriesField:t,showPercent:n})=>{const{formatValue:r}=F1();let o;return t||(o={key:()=>e,value:a=>{const s=r(e,a[e]);return n?`${s} ${a._percent_}%`:s}}),{mark:{title:{value:a=>r(i,a[i])},content:o},dimension:{title:{value:a=>r(i,a[i])},content:o}}},tOe=()=>({line:{style:{lineWidth:3,curveType:aW}},point:{style:{fillOpacity:0,strokeOpacity:0,size:0},state:{dimension_hover:{size:10,fillOpacity:1,strokeOpacity:1}}}}),Z6=i=>{const{xField:e,yField:t}=i,{formatValue:n,getAxesType:r}=F1(),a={orient:"bottom",type:r(e),label:{formatMethod:u=>n(e,u)},title:{visible:!0,text:i.xField}},l={orient:"left",type:r(t),label:{formatMethod:u=>n(t,u)},title:{visible:!0,text:i.yField}};return[ke({},a),ke({},l)]},Q6=({xField:i,yField:e,seriesField:t})=>{const{formatValue:n}=F1(),r={key:a=>t?a[t]:(a==null?void 0:a.key)===null?void 0:e,value:a=>n(e,a[e])},o=a=>Pi(ke({},a),{value:n(i,a==null?void 0:a.value)});return{mark:{updateTitle:o,content:r},dimension:{updateTitle:o,content:r}}};function J6(i={},{xField:e,yField:t,dimensions:n}){const{transfromData:r}=i||{},o=(n==null?void 0:n.filter(c=>c!==e))||[],a={xField:o[0]?[e,o[0]]:e,yField:t,seriesField:o[0]},s=r==null?void 0:r.foldKey,l=r==null?void 0:r.foldValue,u=r==null?void 0:r.megreColumnName;return r!=null&&r.isMetricFolded&&!(r!=null&&r.isColumnMegred)?(a.xField=s?[e,s]:e,a.yField=l||t,a.seriesField=s):!(r!=null&&r.isMetricFolded)&&(r!=null&&r.isColumnMegred)?(a.xField=u?[e,u]:e,a.seriesField=u):r!=null&&r.isMetricFolded&&(r!=null&&r.isColumnMegred)&&(a.xField=[e,s||"",u||""],a.yField=l||t,a.seriesField=u),a}function eA(i={},{nameField:e,valField:t}){const{transfromData:n}=i||{},r={nameField:e,valField:t,seriesField:""},o=(n==null?void 0:n.foldKey)||"",a=(n==null?void 0:n.foldValue)||"",s=(n==null?void 0:n.megreColumnName)||"";return n!=null&&n.isMetricFolded&&!(n!=null&&n.isColumnMegred)?(r.nameField=o,r.valField=a,r.seriesField=e||"series-key"):n!=null&&n.isColumnMegred&&!(n!=null&&n.isMetricFolded)?(r.nameField=s,r.valField=t,r.seriesField=s):n!=null&&n.isMetricFolded&&(n!=null&&n.isColumnMegred)&&(r.nameField=o,r.valField=(n==null?void 0:n.foldValue)||"",r.seriesField=s),r}function yqt(i,{nameField:e,valField:t}){const{transfromData:n}=i||{},r={nameField:e,valField:t,seriesField:""},o=(n==null?void 0:n.foldKey)||"",a=(n==null?void 0:n.foldValue)||"",s=(n==null?void 0:n.megreColumnName)||"";return n!=null&&n.isMetricFolded&&!(n!=null&&n.isColumnMegred)?(r.nameField=e,r.valField=a,r.seriesField=o):n!=null&&n.isColumnMegred&&!(n!=null&&n.isMetricFolded)?(r.nameField=s,r.valField=t,r.seriesField=s):n!=null&&n.isMetricFolded&&(n!=null&&n.isColumnMegred)&&(r.nameField=o,r.valField=(n==null?void 0:n.foldValue)||"",r.seriesField=s),r}function _qt(i){const{axisXTitle:e,axisYTitle:t}=i,n=ke({axis:{}},i);return e&&(rp(n,"axis.x")?n.axis.x.title=e:n.axis.x={title:e}),t&&(rp(n,"axis.y")?n.axis.y.title=t:n.axis.y={title:t}),n}function Cqt(i){return _qt(i)}const iOe=2,xqt=()=>we.jsx("svg",{width:"8px",height:"9px",style:{transform:"rotate(180deg)",marginRight:iOe},viewBox:"0 0 8 9",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:we.jsx("g",{transform:"translate(-2.000000, -2.000000)",children:we.jsx("polygon",{fill:"currentColor",points:"6 11 9.5 2 2.5 2"})})}),Sqt=()=>we.jsx("svg",{width:"8px",height:"9px",viewBox:"0 0 8 9",style:{marginRight:iOe},version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:we.jsx("g",{transform:"translate(-2.000000, -2.000000)",children:we.jsx("polygon",{fill:"currentColor",points:"6 11 9.5 2 2.5 2"})})}),Es={fontSizeBase:14,chart:{proportionShadowColor:"#CDDDFD",proportionFillColor:"#3471F9",lineStrokeColor:"#5B8FF9"},light:{primaryColor:"#1677FF",default88Color:"rgba(0, 0, 0, 0.88)",default65Color:"rgba(0, 0, 0, 0.65)",posColor:"#FA541C",negColor:"#13A8A8",conclusionColor:"#1F0352"},dark:{primaryColor:"#4B91FF",default88Color:"rgba(255, 255, 255, 0.88)",default65Color:"rgba(255, 255, 255, 0.65)",posColor:"#FA541C",negColor:"#13A8A8",conclusionColor:"#D8C3F3"}};function nOe(i,e){var t;return window.getComputedStyle?window.getComputedStyle(i,null)[e]:(t=i==null?void 0:i.currentStyle)==null?void 0:t[e]}function rOe(i){return i==null?void 0:i.endsWith("px")}function oOe(i){const e=i.replace(/px$/,""),t=Number(e);if(!Number.isNaN(t))return t}function wqt(i,e=Es.fontSizeBase){const t="font-size",n=nOe(i,t);if(n&&rOe(n)){const o=oOe(n);if(o)return o}const r=nOe(window.document.body,t);if(r&&rOe(r)){const o=oOe(r);if(o)return o}return e}const aOe=()=>{const i=ce.useRef(null),[e,t]=ce.useState(Es.fontSizeBase);return ce.useLayoutEffect(()=>{i.current&&t(wqt(i.current,Es.fontSizeBase))},[]),[a=>{var s=a,{children:r}=s,o=Rh(s,["children"]);return we.jsx("svg",Pi(ke({style:{margin:"0px 4px",transform:"translate(0px, 0.125em)"},ref:i},o),{children:r}))},e]},sOe=(i,e)=>t=>{const[n,r]=i,[o,a]=e;return o===a?(r-n)/2:t/(a-o)*(r-n)},lOe=2;let uOe=class{constructor(e,t){this.data=[],this.size=Es.fontSizeBase,this.height=this.size,this.width=this.getWidth(),this.points=[],this.size=e,t&&(this.data=t,this.compute())}getWidth(){var e;return Math.max(this.size*2,((e=this.data)==null?void 0:e.length)*2)}compute(){var n;if(!this.data)return;this.height=this.size,this.width=this.getWidth(),this.xScale=sOe([0,this.width],[0,((n=this.data)==null?void 0:n.length)-1]);const[e,t]=[Math.min(...this.data),Math.max(...this.data)];this.yScale=sOe([lOe,this.height-lOe],[e,t]),this.points=this.data.map((r,o)=>[this.xScale(o),this.height-this.yScale(r)])}getLinePath(){var t;return!((t=this.data)!=null&&t.length)||!this.xScale||!this.yScale?null:this.points.reduce((n,[r,o],a)=>a===0?`M${r} ${o}`:`${n} L ${r} ${o}`,"")}getPolygonPath(){var o;if(!((o=this.data)!=null&&o.length)||!this.xScale||!this.yScale)return null;const e=[...this.points],t=this.points[this.points.length-1];e.push([t[0],this.height]),e.push([0,this.height]);const n=this.points[0];return e.push(n),e.reduce((a,[s,l])=>`${a} ${s},${l}`,"")}getContainer(){return[this.width,this.height]}};const Eqt=(i,e)=>{const[t,n]=ce.useState(new uOe(i,e));return ce.useEffect(()=>{n(new uOe(i,e))},[i,e]),{width:t.getContainer()[0],height:t.getContainer()[1],linePath:t.getLinePath(),polygonPath:t.getPolygonPath()}},cOe="wsc-line-fill";function Aqt(i){if(hl(i))return i;if(WM(i))try{const e=JSON.parse(i);if(hl(e))return e}catch(e){console.warn(e,`${i} is not a valid json string`)}}const Tqt=({origin:i})=>{const[e,t]=aOe(),n=ce.useMemo(()=>Aqt(i),[i]),{width:r,height:o,linePath:a,polygonPath:s}=Eqt(t,n);return QAt(n)>0&&we.jsxs(e,{width:r,height:o,children:[we.jsx("defs",{children:we.jsxs("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"122.389541%",id:cOe,children:[we.jsx("stop",{stopColor:Es.chart.lineStrokeColor,offset:"0%"}),we.jsx("stop",{stopColor:"#FFFFFF",stopOpacity:"0",offset:"100%"})]})}),a&&we.jsx("path",{d:a,stroke:Es.chart.lineStrokeColor,fill:"transparent"}),s&&we.jsx("polygon",{points:s,fill:`url(#${cOe})`})]})};function Rqt(i){return typeof i!="number"?0:i>1?1:i<0?0:i}function Mqt(i,e){const t=i/2,n=i/2,r=i/2,o=Rqt(e)*2*Math.PI,a=t+r*Math.sin(o),s=n-r*Math.cos(o);return`
|
|
9763
|
+
`;var t=NJ(i,e);return t}function YGt(i){var e="",t,n="";if(i==null||i["!ref"]==null)return[];var r=us(i["!ref"]),o="",a=[],s,l=[],u=Array.isArray(i);for(s=r.s.c;s<=r.e.c;++s)a[s]=ju(s);for(var c=r.s.r;c<=r.e.r;++c)for(o=Tu(c),s=r.s.c;s<=r.e.c;++s)if(e=a[s]+o,t=u?(i[c]||[])[s]:i[e],n="",t!==void 0){if(t.F!=null){if(e=t.F,!t.f)continue;n=t.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}l[l.length]=e+"="+n}return l}function Gke(i,e,t){var n=t||{},r=+!n.skipHeader,o=i||{},a=0,s=0;if(o&&n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?tu(n.origin):n.origin;a=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:a+e.length-1+r}};if(o["!ref"]){var h=us(o["!ref"]);c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),a==-1&&(a=h.e.r+1,c.e.r=a+e.length-1+r)}else a==-1&&(a=0,c.e.r=e.length-1+r);var d=n.header||[],f=0;e.forEach(function(p,m){Eu(p).forEach(function(v){(f=d.indexOf(v))==-1&&(d[f=d.length]=v);var b=p[v],y="z",_="",S=ya({c:s+f,r:a+m+r});u=Y6(o,S),b&&typeof b=="object"&&!(b instanceof Date)?o[S]=b:(typeof b=="number"?y="n":typeof b=="boolean"?y="b":typeof b=="string"?y="s":b instanceof Date?(y="d",n.cellDates||(y="n",b=Xh(b)),_=n.dateNF||Ks[14]):b===null&&n.nullError&&(y="e",b=0),u?(u.t=y,u.v=b,delete u.w,delete u.R,_&&(u.z=_)):o[S]=u={t:y,v:b},_&&(u.z=_))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var g=Tu(a);if(r)for(f=0;f<d.length;++f)o[ju(f+s)+g]={t:"s",v:d[f]};return o["!ref"]=Rl(c),o}function XGt(i,e){return Gke(null,i,e)}function Y6(i,e,t){if(typeof e=="string"){if(Array.isArray(i)){var n=tu(e);return i[n.r]||(i[n.r]=[]),i[n.r][n.c]||(i[n.r][n.c]={t:"z"})}return i[e]||(i[e]={t:"z"})}return typeof e!="number"?Y6(i,ya(e)):Y6(i,ya({r:e,c:t||0}))}function KGt(i,e){if(typeof e=="number"){if(e>=0&&i.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var t=i.SheetNames.indexOf(e);if(t>-1)return t;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function ZGt(){return{SheetNames:[],Sheets:{}}}function QGt(i,e,t,n){var r=1;if(!t)for(;r<=65535&&i.SheetNames.indexOf(t="Sheet"+r)!=-1;++r,t=void 0);if(!t||i.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&i.SheetNames.indexOf(t)>=0){var o=t.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var a=o&&o[1]||t;for(++r;r<=65535&&i.SheetNames.indexOf(t=a+r)!=-1;++r);}if(Ike(t),i.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return i.SheetNames.push(t),i.Sheets[t]=e,t}function JGt(i,e,t){i.Workbook||(i.Workbook={}),i.Workbook.Sheets||(i.Workbook.Sheets=[]);var n=KGt(i,e);switch(i.Workbook.Sheets[n]||(i.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}i.Workbook.Sheets[n].Hidden=t}function eqt(i,e){return i.z=e,i}function qke(i,e,t){return e?(i.l={Target:e},t&&(i.l.Tooltip=t)):delete i.l,i}function tqt(i,e,t){return qke(i,"#"+e,t)}function iqt(i,e,t){i.c||(i.c=[]),i.c.push({t:e,a:t||"SheetJS"})}function nqt(i,e,t,n){for(var r=typeof e!="string"?e:us(e),o=typeof e=="string"?e:Rl(e),a=r.s.r;a<=r.e.r;++a)for(var s=r.s.c;s<=r.e.c;++s){var l=Y6(i,a,s);l.t="n",l.F=o,delete l.v,a==r.s.r&&s==r.s.c&&(l.f=t,n&&(l.D=!0))}return i}var HJ={encode_col:ju,encode_row:Tu,encode_cell:ya,encode_range:Rl,decode_col:_J,decode_row:yJ,split_cell:v$t,decode_cell:tu,decode_range:Od,format_cell:Q1,sheet_add_aoa:MMe,sheet_add_json:Gke,sheet_add_dom:Fke,aoa_to_sheet:$3,json_to_sheet:XGt,table_to_sheet:Nke,table_to_book:AGt,sheet_to_csv:NJ,sheet_to_txt:Uke,sheet_to_json:DO,sheet_to_html:Bke,sheet_to_formulae:YGt,sheet_to_row_object_array:DO,sheet_get_cell:Y6,book_new:ZGt,book_append_sheet:QGt,book_set_sheet_visibility:JGt,cell_set_number_format:eqt,cell_set_hyperlink:qke,cell_set_internal_link:tqt,cell_add_comment:iqt,sheet_set_array_formula:nqt,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const $J=new B7t({model:c6.CHART_ADVISOR});function rqt(i,e){return eTt(i,{key:e})}function Yke(i){const{xField:e,yField:t,nameField:n,valField:r,type:o,metrics:a,dimensions:s}=i;if(!o||!bS[o])return!0;const l=Lf(o);if(l==="cartesian"){if(!e&&!t&&!(a!=null&&a.length)&&!(s!=null&&s.length))return!0}else if(l==="polar"&&!n&&!r&&!(a!=null&&a.length)&&!(s!=null&&s.length))return!0;return!1}function Xke(i){return ga(this,null,function*(){var l,u,c,h,d,f,g;const e=i==null?void 0:i.data;if(!e)return i;const t=$J.getFieldInfo(e),n=yield $J.generateChart("",t,e);let r;const o=(l=n==null?void 0:n.chartAdvistorRes)==null?void 0:l[0];r=(u=o==null?void 0:o.spec)==null?void 0:u.type,(!r||!MGe[r])&&(r=Pa.Table);const a=Lf(r),s=Pi(ke({},i),{type:r});if(a==="cartesian"){const p=(c=n==null?void 0:n.spec)==null?void 0:c.xField;s.xField=p,s.yField=(h=n==null?void 0:n.spec)==null?void 0:h.yield,hl(p)&&(s.xField=p[0])}else a==="polar"&&(s.nameField=(d=n==null?void 0:n.spec)==null?void 0:d.categoryField,s.valField=(f=n==null?void 0:n.spec)==null?void 0:f.valueField);if((g=n==null?void 0:n.vizSchema)!=null&&g.fields){const p=[],m=[];n.vizSchema.fields.forEach(v=>{v.role==="dimension"&&p.push(v.id),v.role==="measure"&&m.push(v.id)}),p.length>0&&s.xField&&!p.includes(s.xField)&&(s.xField=p[0]),m.length>0&&s.yField&&!m.includes(s.yField)&&(s.yField=m[0]),s.dimensions=p,s.metrics=m}return s})}function oqt(i,e){const t=HJ.book_new(),n=HJ.json_to_sheet(i);HJ.book_append_sheet(t,n,"Sheet1");const r=Ir().format("YYYY-MM-DD-hh-mm-ss");UGt(t,`${e}-${r}.xlsx`)}const PO=",",aqt="fold-key",zJ="megre-column-name",sqt=()=>{const i=DV(8);return{keyId:i,FOLD_KEY:`${aqt}-${i}`,MERGE_COLUMN_NAME:`${zJ}-${i}`}},{FOLD_KEY:K3,MERGE_COLUMN_NAME:Kke}=sqt(),WJ=i=>{const{data:e,columns:t,metrics:n,dimensions:r,dataSource:o}=i;if(!Array.isArray(e)||(e==null?void 0:e.length)===0)return{};const a=o!=null&&o.type?"dataSource":"static",s=Zke(e,{columns:t,metrics:n,dimensions:r}),l=lqt(e,{metrics:n,dimensions:r}),u=uqt(l,r,n),c=Qke(u.foldData,s,i),h={data:c.data,foldData:u.foldData,isMetricFolded:(u==null?void 0:u.isMetricFolded)||!1,foldKey:u==null?void 0:u.foldKey,foldValue:u==null?void 0:u.foldValue,isColumnMegred:c==null?void 0:c.isColumnMegred,megreColumnName:c==null?void 0:c.megreColumnName};return{fieldInfo:s,type:a,transfromData:h,data:e}},Zke=(i,{columns:e,metrics:t,dimensions:n})=>{const r=$J.getFieldInfo(i);let o=e||[];const a=new Map(o.map(s=>[s.name,s]));for(const s of r){if(a.has(s==null?void 0:s.fieldName)){const l=a.get(s.fieldName);if(l){const u=cqt(s,t,n);Object.assign(s,u,{type:l.type})}}(s==null?void 0:s.role)==="measure"&&(s.role="metric")}return r},lqt=(i,{metrics:e=[],dimensions:t=[]})=>{const n=new Set([...e,...t]);return n.size===0?i:i.map(r=>{let o=!1;for(const s in r)if(!n.has(s)){o=!0;break}if(!o)return r;const a={};for(const s in r)n.has(s)&&(a[s]=r[s]);return a})},uqt=(i,e=[],t=[])=>{let n=i,r=!1;const o=!!(e!=null&&e.length),a=(t==null?void 0:t.length)>0;if(!o&&a||o&&t.length>1){const s=t.join(PO);return r=!0,n=mde(i,{key:K3,value:s,fields:t}),{foldData:n,foldKey:K3,foldValue:s,isMetricFolded:r}}return{foldData:n,isMetricFolded:r}},Qke=(i=[],e=[],t)=>{const{type:n,metrics:r,dimensions:o,xField:a,yField:s,timeGrain:l}=t,u=Lf(n);let c=i,h=o;u==="cartesian"?(h=o==null?void 0:o.filter(f=>f!==(n===Pa.Rank?s:a)),c=Jke(i,{fieldInfo:e,dimensions:o,metrics:r,timeGrain:l})):u==="polar"&&(c=Jke(i,{fieldInfo:e,dimensions:o,metrics:r,timeGrain:l}));const d=hqt(c,e,n,h,r);return{data:(d==null?void 0:d.data)||[],isColumnMegred:(d==null?void 0:d.isColumnMegred)||!1,megreColumnName:d==null?void 0:d.megreColumnName}};function cqt(i,e,t){let n="";return e!=null&&e.includes((i==null?void 0:i.name)||(i==null?void 0:i.fieldName))?n="metric":t!=null&&t.includes((i==null?void 0:i.name)||(i==null?void 0:i.fieldName))&&(n="dimension"),!n&&i.role==="measure"&&(i.role="metric"),Pi(ke({},i),{fieldName:(i==null?void 0:i.name)||(i==null?void 0:i.fieldName),role:n||(i==null?void 0:i.role)})}const hqt=(i,e,t,n=[],r=[])=>{const o=i.map(a=>{const s=Object.keys(a).reduce((l,u)=>{const c=$Tt(e,u,a[u]);return l[u]=c,l},{});if(n&&(n==null?void 0:n.length)>0){const l=n.map(u=>{const c=HTt(e,u,a[u]);return c==null?void 0:c.toString()});t===Pa.Indicator&&(a!=null&&a[K3])&&l.push(K3),(r==null?void 0:r.length)>1&&(s!=null&&s[K3])&&l.push(s[K3]),s[Kke]=l.join(PO)}return ke(ke({},a),s)});return n&&(n==null?void 0:n.length)>0?{data:o,isColumnMegred:!0,megreColumnName:Kke}:{data:o}},Jke=(i,{fieldInfo:e,dimensions:t,metrics:n,timeGrain:r})=>{if(!(i!=null&&i.length)||!(t!=null&&t.length)||!(n!=null&&n.length)||!r)return i;const o=[];if(e==null||e.forEach(u=>{if((u==null?void 0:u.role)==="dimension"&&(u!=null&&u.fieldName)){const c=qM(e,u.fieldName);(c===NV.Timestamp||c===NV.Date)&&o.push(u.fieldName)}}),!o.length)return i;const a=t.filter(u=>o.includes(u));if(!a.length)return i;const s=a[0],l=[...i].sort((u,c)=>{const h=new Date(u[s]).getTime(),d=new Date(c[s]).getTime();return h-d});return l.length<=2,l},dqt=(i,e,t)=>{var a;if(!AAt(i==null?void 0:i.data,e==null?void 0:e.data))return{dataset:WJ(e),isShouldUpdate:!0};const n=Lf(i.type),r=Lf(e==null?void 0:e.type);let o=t;if(n!==r||(i==null?void 0:i.timeGrain)!==(e==null?void 0:e.timeGrain)){const s=Qke((a=t==null?void 0:t.transfromData)==null?void 0:a.foldData,t==null?void 0:t.fieldInfo,e);return o=Pi(ke({},t),{transfromData:ke(ke({},t==null?void 0:t.transfromData),s)}),{dataset:o,isShouldUpdate:!0}}return{isShouldUpdate:!1}},fqt=i=>{const e=mqt(i);return CTt(t=>({theme:"light",chartLoading:!0,chartJson:e,dataset:WJ(e),controllerConfig:{timeRange:void 0,metrics:[],dimensions:[],timeGrain:void 0,filters:[]},contextMenu:{visible:!1,clientX:0,clientY:0},drillBy:{visible:!1,config:{history:[],current:{}},chartState:{}},dataSourceQueryInfo:{metrics:[],dimensions:[],fieldInfo:[]},error:{visible:!1,title:"",message:""},dataDetail:{visible:!1,error:"",loading:!0},setLoading:n=>t(()=>({chartLoading:n})),setError:n=>t(()=>({error:n})),setTheme:n=>t(()=>({theme:n})),setChartJson:n=>t(r=>{const o=r.chartJson,a=dqt(o,n,r.dataset);return a!=null&&a.isShouldUpdate&&t(()=>({dataset:a==null?void 0:a.dataset})),{chartJson:ke(ke({},r.chartJson),n)}}),updateChartJson:(n,r)=>t(o=>{const a=o.chartJson[n];return JSON.stringify(a)===JSON.stringify(r)?o:{chartJson:Pi(ke({},o.chartJson),{[n]:r})}}),setDataset:n=>t(r=>({dataset:ke(ke({},r.dataset),n)})),setControllerConfig:n=>t(()=>({controllerConfig:ke({},n)})),setContextMenu:n=>{t(()=>({contextMenu:ke({},n)}))},setChartDrillBy:n=>{t(r=>({drillBy:ke(ke({},r.drillBy),n)}))},setDataSourceQueryInfo:n=>t(r=>({dataSourceQueryInfo:ke(ke({},r.dataSourceQueryInfo),n)})),setDataDetail:n=>t(r=>({dataDetail:ke(ke({},r.dataDetail),n)}))}))},VJ=new Map,gqt=(i,e)=>(VJ.has(i)||VJ.set(i,fqt(ke({chartId:i},e))),VJ.get(i)),pqt=(i,e,t)=>{if(!i)throw new Error("chartId is required");const n=gqt(i,e);return ITt(n,t)},mqt=i=>{const{type:e,data:t,columns:n,metrics:r,dimensions:o}=i,a=Zke(t,{columns:n,metrics:r,dimensions:o});let s=i;const l=Lf(e);let u=[],c=[];if(!(r!=null&&r.length)||!(o!=null&&o.length))for(const h of a)h.role==="metric"&&(h!=null&&h.fieldName)&&u.push(h.fieldName),h.role==="dimension"&&(h!=null&&h.fieldName)&&c.push(h.fieldName);return u=r!=null&&r.length?r:u,c=o!=null&&o.length?o:c,l==="cartesian"&&(s=Pi(ke({},s),{metrics:u,dimensions:c,xField:i.xField||(c==null?void 0:c[0]),yField:i.yField||(u==null?void 0:u[0])})),ke({},s)},eOe=ce.createContext(null),vqt=()=>{const i=ce.useContext(eOe);if(!i)throw new Error("useChartContext must be used within ChartStoreProvider");return i},Qh=()=>vqt().store,bqt=({chartProps:i,children:e})=>{const t=ce.useMemo(()=>{const r=(i==null?void 0:i.chartId)||DV(10);return Pi(ke({},i),{chartId:r})},[i]),n=pqt(t.chartId,t,r=>r);return we.jsx(eOe.Provider,{value:{store:n,chartId:t.chartId},children:e})};function rg({VChart:i,spec:e={}}){const{setContextMenu:t,chartJson:n}=Qh(),r=o=>{const{event:a,datum:s,mark:l,chart:u}=o;if(EAt(s)){t({visible:!1});return}if([Pa.Line,Pa.Area].includes(n.type)&&(l==null?void 0:l.name)!=="point"){t({visible:!1});return}const h=Lf(n.type),d=u==null?void 0:u.getSpec();let f;h==="cartesian"?(f=rp(d,"xField"),n.type===Pa.Rank&&(f=rp(d,"yField"))):h==="polar"&&(f=rp(d,"categoryField"));const g=n==null?void 0:n.dimensions,p=typeof f=="string"&&f.includes(zJ)||Array.isArray(f)&&f.some(b=>typeof b=="string"&&b.includes(zJ))||Array.isArray(f)&&h==="cartesian"&&g&&g.length>0;p&&g&&g.length>0&&(f=g);let m=[];typeof f=="string"?m.push({name:f,value:rp(s,f),containsMergeKey:p}):Array.isArray(f)&&(m=f.map(b=>({name:b,value:rp(s,b),containsMergeKey:p})));const v={visible:!0,clientX:a==null?void 0:a.clientX,clientY:a==null?void 0:a.clientY,rightClickValue:m};t(v)};return we.jsx(we.Fragment,{children:i&&we.jsx(i,{spec:ke({},e),onRightDown:r},n==null?void 0:n.chartId)})}const LO=(i,e)=>{const{formatValue:t}=F1();return{visible:!!i,item:{label:{formatMethod:r=>t(e,r)}}}},X6=(i,e)=>{const t={visible:!!e};return e||(t.item={label:{formatMethod:()=>i}}),t},K6=({categoryField:i,valueField:e,seriesField:t,showPercent:n})=>{const{formatValue:r}=F1();let o;return t||(o={key:()=>e,value:a=>{const s=r(e,a[e]);return n?`${s} ${a._percent_}%`:s}}),{mark:{title:{value:a=>r(i,a[i])},content:o},dimension:{title:{value:a=>r(i,a[i])},content:o}}},tOe=()=>({line:{style:{lineWidth:3,curveType:aW}},point:{style:{fillOpacity:0,strokeOpacity:0,size:0},state:{dimension_hover:{size:10,fillOpacity:1,strokeOpacity:1}}}}),Z6=i=>{const{xField:e,yField:t}=i,{formatValue:n,getAxesType:r}=F1(),a={orient:"bottom",type:r(e),label:{formatMethod:u=>n(e,u)},title:{visible:!0,text:i.xField}},l={orient:"left",type:r(t),label:{formatMethod:u=>n(t,u)},title:{visible:!0,text:i.yField}};return[ke({},a),ke({},l)]},Q6=({xField:i,yField:e,seriesField:t})=>{const{formatValue:n}=F1(),r={key:a=>t?a[t]:(a==null?void 0:a.key)===null?void 0:e,value:a=>n(e,a[e])},o=a=>Pi(ke({},a),{value:n(i,a==null?void 0:a.value)});return{mark:{updateTitle:o,content:r},dimension:{updateTitle:o,content:r}}};function J6(i={},{xField:e,yField:t,dimensions:n}){const{transfromData:r}=i||{},o=(n==null?void 0:n.filter(c=>c!==e))||[],a={xField:o[0]?[e,o[0]]:e,yField:t,seriesField:o[0]},s=r==null?void 0:r.foldKey,l=r==null?void 0:r.foldValue,u=r==null?void 0:r.megreColumnName;return r!=null&&r.isMetricFolded&&!(r!=null&&r.isColumnMegred)?(a.xField=s?[e,s]:e,a.yField=l||t,a.seriesField=s):!(r!=null&&r.isMetricFolded)&&(r!=null&&r.isColumnMegred)?(a.xField=u?[e,u]:e,a.seriesField=u):r!=null&&r.isMetricFolded&&(r!=null&&r.isColumnMegred)&&(a.xField=[e,s||"",u||""],a.yField=l||t,a.seriesField=u),a}function eA(i={},{nameField:e,valField:t}){const{transfromData:n}=i||{},r={nameField:e,valField:t,seriesField:""},o=(n==null?void 0:n.foldKey)||"",a=(n==null?void 0:n.foldValue)||"",s=(n==null?void 0:n.megreColumnName)||"";return n!=null&&n.isMetricFolded&&!(n!=null&&n.isColumnMegred)?(r.nameField=o,r.valField=a,r.seriesField=e||"series-key"):n!=null&&n.isColumnMegred&&!(n!=null&&n.isMetricFolded)?(r.nameField=s,r.valField=t,r.seriesField=s):n!=null&&n.isMetricFolded&&(n!=null&&n.isColumnMegred)&&(r.nameField=o,r.valField=(n==null?void 0:n.foldValue)||"",r.seriesField=s),r}function yqt(i,{nameField:e,valField:t}){const{transfromData:n}=i||{},r={nameField:e,valField:t,seriesField:""},o=(n==null?void 0:n.foldKey)||"",a=(n==null?void 0:n.foldValue)||"",s=(n==null?void 0:n.megreColumnName)||"";return n!=null&&n.isMetricFolded&&!(n!=null&&n.isColumnMegred)?(r.nameField=e,r.valField=a,r.seriesField=o):n!=null&&n.isColumnMegred&&!(n!=null&&n.isMetricFolded)?(r.nameField=s,r.valField=t,r.seriesField=s):n!=null&&n.isMetricFolded&&(n!=null&&n.isColumnMegred)&&(r.nameField=o,r.valField=(n==null?void 0:n.foldValue)||"",r.seriesField=s),r}function _qt(i){const{axisXTitle:e,axisYTitle:t}=i,n=ke({axis:{}},i);return e&&(rp(n,"axis.x")?n.axis.x.title=e:n.axis.x={title:e}),t&&(rp(n,"axis.y")?n.axis.y.title=t:n.axis.y={title:t}),n}function Cqt(i){return _qt(i)}const iOe=2,xqt=()=>we.jsx("svg",{width:"8px",height:"9px",style:{transform:"rotate(180deg)",marginRight:iOe},viewBox:"0 0 8 9",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:we.jsx("g",{transform:"translate(-2.000000, -2.000000)",children:we.jsx("polygon",{fill:"currentColor",points:"6 11 9.5 2 2.5 2"})})}),Sqt=()=>we.jsx("svg",{width:"8px",height:"9px",viewBox:"0 0 8 9",style:{marginRight:iOe},version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:we.jsx("g",{transform:"translate(-2.000000, -2.000000)",children:we.jsx("polygon",{fill:"currentColor",points:"6 11 9.5 2 2.5 2"})})}),Es={fontSizeBase:14,chart:{proportionShadowColor:"#CDDDFD",proportionFillColor:"#3471F9",lineStrokeColor:"#5B8FF9"},light:{primaryColor:"#1677FF",default88Color:"rgba(0, 0, 0, 0.88)",default65Color:"rgba(0, 0, 0, 0.65)",posColor:"#FA541C",negColor:"#13A8A8",conclusionColor:"#1F0352"},dark:{primaryColor:"#4B91FF",default88Color:"rgba(255, 255, 255, 0.88)",default65Color:"rgba(255, 255, 255, 0.65)",posColor:"#FA541C",negColor:"#13A8A8",conclusionColor:"#D8C3F3"}};function nOe(i,e){var t;return window.getComputedStyle?window.getComputedStyle(i,null)[e]:(t=i==null?void 0:i.currentStyle)==null?void 0:t[e]}function rOe(i){return i==null?void 0:i.endsWith("px")}function oOe(i){const e=i.replace(/px$/,""),t=Number(e);if(!Number.isNaN(t))return t}function wqt(i,e=Es.fontSizeBase){const t="font-size",n=nOe(i,t);if(n&&rOe(n)){const o=oOe(n);if(o)return o}const r=nOe(window.document.body,t);if(r&&rOe(r)){const o=oOe(r);if(o)return o}return e}const aOe=()=>{const i=ce.useRef(null),[e,t]=ce.useState(Es.fontSizeBase);return ce.useLayoutEffect(()=>{i.current&&t(wqt(i.current,Es.fontSizeBase))},[]),[a=>{var s=a,{children:r}=s,o=Rh(s,["children"]);return we.jsx("svg",Pi(ke({style:{margin:"0px 4px",transform:"translate(0px, 0.125em)"},ref:i},o),{children:r}))},e]},sOe=(i,e)=>t=>{const[n,r]=i,[o,a]=e;return o===a?(r-n)/2:t/(a-o)*(r-n)},lOe=2;let uOe=class{constructor(e,t){this.data=[],this.size=Es.fontSizeBase,this.height=this.size,this.width=this.getWidth(),this.points=[],this.size=e,t&&(this.data=t,this.compute())}getWidth(){var e;return Math.max(this.size*2,((e=this.data)==null?void 0:e.length)*2)}compute(){var n;if(!this.data)return;this.height=this.size,this.width=this.getWidth(),this.xScale=sOe([0,this.width],[0,((n=this.data)==null?void 0:n.length)-1]);const[e,t]=[Math.min(...this.data),Math.max(...this.data)];this.yScale=sOe([lOe,this.height-lOe],[e,t]),this.points=this.data.map((r,o)=>[this.xScale(o),this.height-this.yScale(r)])}getLinePath(){var t;return!((t=this.data)!=null&&t.length)||!this.xScale||!this.yScale?null:this.points.reduce((n,[r,o],a)=>a===0?`M${r} ${o}`:`${n} L ${r} ${o}`,"")}getPolygonPath(){var o;if(!((o=this.data)!=null&&o.length)||!this.xScale||!this.yScale)return null;const e=[...this.points],t=this.points[this.points.length-1];e.push([t[0],this.height]),e.push([0,this.height]);const n=this.points[0];return e.push(n),e.reduce((a,[s,l])=>`${a} ${s},${l}`,"")}getContainer(){return[this.width,this.height]}};const Eqt=(i,e)=>{const[t,n]=ce.useState(new uOe(i,e));return ce.useEffect(()=>{n(new uOe(i,e))},[i,e]),{width:t.getContainer()[0],height:t.getContainer()[1],linePath:t.getLinePath(),polygonPath:t.getPolygonPath()}},cOe="wsc-line-fill";function Aqt(i){if(hl(i))return i;if(WM(i))try{const e=JSON.parse(i);if(hl(e))return e}catch(e){console.warn(e,`${i} is not a valid json string`)}}const Tqt=({origin:i})=>{const[e,t]=aOe(),n=ce.useMemo(()=>Aqt(i),[i]),{width:r,height:o,linePath:a,polygonPath:s}=Eqt(t,n);return QAt(n)>0&&we.jsxs(e,{width:r,height:o,children:[we.jsx("defs",{children:we.jsxs("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"122.389541%",id:cOe,children:[we.jsx("stop",{stopColor:Es.chart.lineStrokeColor,offset:"0%"}),we.jsx("stop",{stopColor:"#FFFFFF",stopOpacity:"0",offset:"100%"})]})}),a&&we.jsx("path",{d:a,stroke:Es.chart.lineStrokeColor,fill:"transparent"}),s&&we.jsx("polygon",{points:s,fill:`url(#${cOe})`})]})};function Rqt(i){return typeof i!="number"?0:i>1?1:i<0?0:i}function Mqt(i,e){const t=i/2,n=i/2,r=i/2,o=Rqt(e)*2*Math.PI,a=t+r*Math.sin(o),s=n-r*Math.cos(o);return`
|
|
9764
9764
|
M${t} 0
|
|
9765
9765
|
A ${t} ${n} 0 ${o>Math.PI?1:0} 1 ${a} ${s}
|
|
9766
9766
|
L ${t} ${n} Z
|
|
@@ -10586,7 +10586,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
10586
10586
|
`,HT=({loadingText:i})=>we.jsxs($3i,{className:"gpt-vis-loading",children:[we.jsx("div",{className:"gpt-vis-loading-icon",children:we.jsxs("div",{className:"loading-svg-ele",children:[we.jsx("svg",{width:"0",height:"0",children:we.jsx("defs",{children:we.jsxs("linearGradient",{id:"loadingCircleStrokeGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[we.jsx("stop",{offset:"0%",stopColor:"#008CD6"}),we.jsx("stop",{offset:"100%",stopColor:"#00CC66"})]})})}),we.jsx("svg",{viewBox:"22 22 44 44",children:we.jsx("circle",{className:"loading-svg-circle",cx:"44",cy:"44",r:"20.2",fill:"none",strokeWidth:"3.6"})})]})}),we.jsx("p",{children:i})]});var Wae=new Map,NL=new WeakMap,kGe=0,z3i;function W3i(i){return i?(NL.has(i)||(kGe+=1,NL.set(i,kGe.toString())),NL.get(i)):"0"}function V3i(i){return Object.keys(i).sort().filter(e=>i[e]!==void 0).map(e=>`${e}_${e==="root"?W3i(i.root):i[e]}`).toString()}function j3i(i){const e=V3i(i);let t=Wae.get(e);if(!t){const n=new Map;let r;const o=new IntersectionObserver(a=>{a.forEach(s=>{var l;const u=s.isIntersecting&&r.some(c=>s.intersectionRatio>=c);i.trackVisibility&&typeof s.isVisible=="undefined"&&(s.isVisible=u),(l=n.get(s.target))==null||l.forEach(c=>{c(u,s)})})},i);r=o.thresholds||(Array.isArray(i.threshold)?i.threshold:[i.threshold||0]),t={id:e,observer:o,elements:n},Wae.set(e,t)}return t}function U3i(i,e,t={},n=z3i){if(typeof window.IntersectionObserver=="undefined"&&n!==void 0){const l=i.getBoundingClientRect();return e(n,{isIntersecting:n,target:i,intersectionRatio:typeof t.threshold=="number"?t.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:r,observer:o,elements:a}=j3i(t),s=a.get(i)||[];return a.has(i)||a.set(i,s),s.push(e),o.observe(i),function(){s.splice(s.indexOf(e),1),s.length===0&&(a.delete(i),o.unobserve(i)),a.size===0&&(o.disconnect(),Wae.delete(r))}}function G3i({threshold:i,delay:e,trackVisibility:t,rootMargin:n,root:r,triggerOnce:o,skip:a,initialInView:s,fallbackInView:l,onChange:u}={}){var c;const[h,d]=M.useState(null),f=M.useRef(u),g=M.useRef(s),[p,m]=M.useState({inView:!!s,entry:void 0});f.current=u,M.useEffect(()=>{if(g.current===void 0&&(g.current=s),a||!h)return;let _;return _=U3i(h,(S,x)=>{const w=g.current;g.current=S,!(w===void 0&&!S)&&(m({inView:S,entry:x}),f.current&&f.current(S,x),x.isIntersecting&&o&&_&&(_(),_=void 0))},{root:r,rootMargin:n,threshold:i,trackVisibility:t,delay:e},l),()=>{_&&_()}},[Array.isArray(i)?i.toString():i,h,r,n,o,a,t,l,e]);const v=(c=p.entry)==null?void 0:c.target,b=M.useRef(void 0);!h&&v&&!o&&!a&&b.current!==v&&(b.current=v,m({inView:!!s,entry:void 0}),g.current=s);const y=[d,p.inView,p.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const q3i=As.div`
|
|
10587
10587
|
height: 100%;
|
|
10588
10588
|
width: 100%;
|
|
10589
|
-
`,Vae=({visible:i,title:e,message:t})=>i?we.jsx(q3i,{className:"error-container",children:we.jsx(QA,{status:"error",title:e,subTitle:t})}):null,OGe=ce.createContext(null);function IGe(){const i=ce.useContext(OGe);if(i===void 0||Object.keys(i).length===0)throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");return i}const DGe="3.0.11",jae=ce.createContext({});function PGe(i){var e,t,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var r=i.length;for(e=0;e<r;e++)i[e]&&(t=PGe(i[e]))&&(n&&(n+=" "),n+=t)}else for(t in i)i[t]&&(n&&(n+=" "),n+=t);return n}function Uae(){for(var i,e,t=0,n="",r=arguments.length;t<r;t++)(i=arguments[t])&&(e=PGe(i))&&(n&&(n+=" "),n+=e);return n}const Y3i={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},ou=Math.round;function Gae(i,e){const t=i.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)n[r]=e(n[r]||0,t[r]||"",r);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const LGe=(i,e,t)=>t===0?i:i/100;function $T(i,e){const t=e||255;return i>t?t:i<0?0:i}class yS{constructor(e){sc(this,"isValid",!0);sc(this,"r",0);sc(this,"g",0);sc(this,"b",0);sc(this,"a",1);sc(this,"_h");sc(this,"_s");sc(this,"_l");sc(this,"_v");sc(this,"_max");sc(this,"_min");sc(this,"_brightness");function t(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let r=function(o){return n.startsWith(o)};const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const o=Y3i[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(e instanceof yS)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=$T(e.r),this.g=$T(e.g),this.b=$T(e.b),this.a=typeof e.a=="number"?$T(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(typeof this._h=="undefined"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=ou(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s=="undefined"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=s=>(n[s]-this[s])*r+this[s],a={r:ou(o("r")),g:ou(o("g")),b:ou(o("b")),a:ou(o("a")*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=o=>ou((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.b||0).toString(16);if(e+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ou(this.a*255).toString(16);e+=o.length===2?o:"0"+o}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ou(this.getSaturation()*100),n=ou(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=$T(t,n),r}_c(e){return new this.constructor(e)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(r,o){return parseInt(t[r]+t[o||r],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof r=="number"?r:1,t<=0){const d=ou(n*255);this.r=d,this.g=d,this.b=d}let o=0,a=0,s=0;const l=e/60,u=(1-Math.abs(2*n-1))*t,c=u*(1-Math.abs(l%2-1));l>=0&&l<1?(o=u,a=c):l>=1&&l<2?(o=c,a=u):l>=2&&l<3?(a=u,s=c):l>=3&&l<4?(a=c,s=u):l>=4&&l<5?(o=c,s=u):l>=5&&l<6&&(o=u,s=c);const h=n-u/2;this.r=ou((o+h)*255),this.g=ou((a+h)*255),this.b=ou((s+h)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a=typeof r=="number"?r:1;const o=ou(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,s=Math.floor(a),l=a-s,u=ou(n*(1-t)*255),c=ou(n*(1-t*l)*255),h=ou(n*(1-t*(1-l))*255);switch(s){case 0:this.g=h,this.b=u;break;case 1:this.r=c,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=c;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=c;break}}fromHsvString(e){const t=Gae(e,LGe);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Gae(e,LGe);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Gae(e,(n,r)=>r.includes("%")?ou(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const HL=2,BGe=.16,X3i=.05,K3i=.05,Z3i=.15,FGe=5,NGe=4,Q3i=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function HGe(i,e,t){let n;return Math.round(i.h)>=60&&Math.round(i.h)<=240?n=t?Math.round(i.h)-HL*e:Math.round(i.h)+HL*e:n=t?Math.round(i.h)+HL*e:Math.round(i.h)-HL*e,n<0?n+=360:n>=360&&(n-=360),n}function $Ge(i,e,t){if(i.h===0&&i.s===0)return i.s;let n;return t?n=i.s-BGe*e:e===NGe?n=i.s+BGe:n=i.s+X3i*e,n>1&&(n=1),t&&e===FGe&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function zGe(i,e,t){let n;return t?n=i.v+K3i*e:n=i.v-Z3i*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function J3i(i,e={}){const t=[],n=new yS(i),r=n.toHsv();for(let o=FGe;o>0;o-=1){const a=new yS({h:HGe(r,o,!0),s:$Ge(r,o,!0),v:zGe(r,o,!0)});t.push(a)}t.push(n);for(let o=1;o<=NGe;o+=1){const a=new yS({h:HGe(r,o),s:$Ge(r,o),v:zGe(r,o)});t.push(a)}return e.theme==="dark"?Q3i.map(({index:o,amount:a})=>new yS(e.backgroundColor||"#141414").mix(t[o],a).toHexString()):t.map(o=>o.toHexString())}const qae=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qae.primary=qae[5];function exi(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function txi(i,e){if(!i)return!1;if(i.contains)return i.contains(e);let t=e;for(;t;){if(t===i)return!0;t=t.parentNode}return!1}const WGe="data-rc-order",VGe="data-rc-priority",ixi="rc-util-key",Yae=new Map;function jGe({mark:i}={}){return i?i.startsWith("data-")?i:`data-${i}`:ixi}function Xae(i){return i.attachTo?i.attachTo:document.querySelector("head")||document.body}function nxi(i){return i==="queue"?"prependQueue":i?"prepend":"append"}function Kae(i){return Array.from((Yae.get(i)||i).children).filter(e=>e.tagName==="STYLE")}function UGe(i,e={}){if(!exi())return null;const{csp:t,prepend:n,priority:r=0}=e,o=nxi(n),a=o==="prependQueue",s=document.createElement("style");s.setAttribute(WGe,o),a&&r&&s.setAttribute(VGe,`${r}`),t!=null&&t.nonce&&(s.nonce=t==null?void 0:t.nonce),s.innerHTML=i;const l=Xae(e),{firstChild:u}=l;if(n){if(a){const c=(e.styles||Kae(l)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(WGe)))return!1;const d=Number(h.getAttribute(VGe)||0);return r>=d});if(c.length)return l.insertBefore(s,c[c.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function rxi(i,e={}){let{styles:t}=e;return t||(t=Kae(Xae(e))),t.find(n=>n.getAttribute(jGe(e))===i)}function oxi(i,e){const t=Yae.get(i);if(!t||!txi(document,t)){const n=UGe("",e),{parentNode:r}=n;Yae.set(i,r),i.removeChild(n)}}function axi(i,e,t={}){var l,u,c;const n=Xae(t),r=Kae(n),o=Pi(ke({},t),{styles:r});oxi(n,o);const a=rxi(e,o);if(a)return(l=o.csp)!=null&&l.nonce&&a.nonce!==((u=o.csp)==null?void 0:u.nonce)&&(a.nonce=(c=o.csp)==null?void 0:c.nonce),a.innerHTML!==i&&(a.innerHTML=i),a;const s=UGe(i,o);return s.setAttribute(jGe(o),e),s}function GGe(i){var e;return(e=i==null?void 0:i.getRootNode)==null?void 0:e.call(i)}function sxi(i){return GGe(i)instanceof ShadowRoot}function lxi(i){return sxi(i)?GGe(i):null}var qGe={};let Zae={};const Qae=[],uxi=i=>{Qae.push(i)};function cxi(i,e){if(qGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Qae.reduce((n,r)=>r(n!=null?n:"","warning"),e);t&&console.error(`Warning: ${t}`)}}function hxi(i,e){if(qGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Qae.reduce((n,r)=>r(n!=null?n:"","note"),e);t&&console.warn(`Note: ${t}`)}}function dxi(){Zae={}}function YGe(i,e,t){!e&&!Zae[t]&&(i(!1,t),Zae[t]=!0)}function $L(i,e){YGe(cxi,i,e)}function fxi(i,e){YGe(hxi,i,e)}$L.preMessage=uxi,$L.resetWarned=dxi,$L.noteOnce=fxi;function gxi(i){return i.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function Jae(i,e){$L(i,`[@ant-design/icons] ${e}`)}function XGe(i){return typeof i=="object"&&typeof i.name=="string"&&typeof i.theme=="string"&&(typeof i.icon=="object"||typeof i.icon=="function")}function KGe(i={}){return Object.keys(i).reduce((e,t)=>{const n=i[t];switch(t){case"class":e.className=n,delete e.class;break;default:delete e[t],e[gxi(t)]=n}return e},{})}function ese(i,e,t){return t?ce.createElement(i.tag,ke(ke({key:e},KGe(i.attrs)),t),(i.children||[]).map((n,r)=>ese(n,`${e}-${i.tag}-${r}`))):ce.createElement(i.tag,ke({key:e},KGe(i.attrs)),(i.children||[]).map((n,r)=>ese(n,`${e}-${i.tag}-${r}`)))}function ZGe(i){return J3i(i)[0]}function QGe(i){return i?Array.isArray(i)?i:[i]:[]}const pxi={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},mxi=`
|
|
10589
|
+
`,Vae=({visible:i,title:e,message:t})=>i?we.jsx(q3i,{className:"error-container",children:we.jsx(QA,{status:"error",title:e,subTitle:t})}):null,OGe=ce.createContext(null);function IGe(){const i=ce.useContext(OGe);if(i===void 0||Object.keys(i).length===0)throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");return i}const DGe="3.0.12",jae=ce.createContext({});function PGe(i){var e,t,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var r=i.length;for(e=0;e<r;e++)i[e]&&(t=PGe(i[e]))&&(n&&(n+=" "),n+=t)}else for(t in i)i[t]&&(n&&(n+=" "),n+=t);return n}function Uae(){for(var i,e,t=0,n="",r=arguments.length;t<r;t++)(i=arguments[t])&&(e=PGe(i))&&(n&&(n+=" "),n+=e);return n}const Y3i={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},ou=Math.round;function Gae(i,e){const t=i.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)n[r]=e(n[r]||0,t[r]||"",r);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const LGe=(i,e,t)=>t===0?i:i/100;function $T(i,e){const t=e||255;return i>t?t:i<0?0:i}class yS{constructor(e){sc(this,"isValid",!0);sc(this,"r",0);sc(this,"g",0);sc(this,"b",0);sc(this,"a",1);sc(this,"_h");sc(this,"_s");sc(this,"_l");sc(this,"_v");sc(this,"_max");sc(this,"_min");sc(this,"_brightness");function t(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let r=function(o){return n.startsWith(o)};const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const o=Y3i[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(e instanceof yS)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=$T(e.r),this.g=$T(e.g),this.b=$T(e.b),this.a=typeof e.a=="number"?$T(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(typeof this._h=="undefined"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=ou(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s=="undefined"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=s=>(n[s]-this[s])*r+this[s],a={r:ou(o("r")),g:ou(o("g")),b:ou(o("b")),a:ou(o("a")*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=o=>ou((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.b||0).toString(16);if(e+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ou(this.a*255).toString(16);e+=o.length===2?o:"0"+o}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ou(this.getSaturation()*100),n=ou(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=$T(t,n),r}_c(e){return new this.constructor(e)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(r,o){return parseInt(t[r]+t[o||r],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof r=="number"?r:1,t<=0){const d=ou(n*255);this.r=d,this.g=d,this.b=d}let o=0,a=0,s=0;const l=e/60,u=(1-Math.abs(2*n-1))*t,c=u*(1-Math.abs(l%2-1));l>=0&&l<1?(o=u,a=c):l>=1&&l<2?(o=c,a=u):l>=2&&l<3?(a=u,s=c):l>=3&&l<4?(a=c,s=u):l>=4&&l<5?(o=c,s=u):l>=5&&l<6&&(o=u,s=c);const h=n-u/2;this.r=ou((o+h)*255),this.g=ou((a+h)*255),this.b=ou((s+h)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a=typeof r=="number"?r:1;const o=ou(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,s=Math.floor(a),l=a-s,u=ou(n*(1-t)*255),c=ou(n*(1-t*l)*255),h=ou(n*(1-t*(1-l))*255);switch(s){case 0:this.g=h,this.b=u;break;case 1:this.r=c,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=c;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=c;break}}fromHsvString(e){const t=Gae(e,LGe);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Gae(e,LGe);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Gae(e,(n,r)=>r.includes("%")?ou(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const HL=2,BGe=.16,X3i=.05,K3i=.05,Z3i=.15,FGe=5,NGe=4,Q3i=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function HGe(i,e,t){let n;return Math.round(i.h)>=60&&Math.round(i.h)<=240?n=t?Math.round(i.h)-HL*e:Math.round(i.h)+HL*e:n=t?Math.round(i.h)+HL*e:Math.round(i.h)-HL*e,n<0?n+=360:n>=360&&(n-=360),n}function $Ge(i,e,t){if(i.h===0&&i.s===0)return i.s;let n;return t?n=i.s-BGe*e:e===NGe?n=i.s+BGe:n=i.s+X3i*e,n>1&&(n=1),t&&e===FGe&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function zGe(i,e,t){let n;return t?n=i.v+K3i*e:n=i.v-Z3i*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function J3i(i,e={}){const t=[],n=new yS(i),r=n.toHsv();for(let o=FGe;o>0;o-=1){const a=new yS({h:HGe(r,o,!0),s:$Ge(r,o,!0),v:zGe(r,o,!0)});t.push(a)}t.push(n);for(let o=1;o<=NGe;o+=1){const a=new yS({h:HGe(r,o),s:$Ge(r,o),v:zGe(r,o)});t.push(a)}return e.theme==="dark"?Q3i.map(({index:o,amount:a})=>new yS(e.backgroundColor||"#141414").mix(t[o],a).toHexString()):t.map(o=>o.toHexString())}const qae=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qae.primary=qae[5];function exi(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function txi(i,e){if(!i)return!1;if(i.contains)return i.contains(e);let t=e;for(;t;){if(t===i)return!0;t=t.parentNode}return!1}const WGe="data-rc-order",VGe="data-rc-priority",ixi="rc-util-key",Yae=new Map;function jGe({mark:i}={}){return i?i.startsWith("data-")?i:`data-${i}`:ixi}function Xae(i){return i.attachTo?i.attachTo:document.querySelector("head")||document.body}function nxi(i){return i==="queue"?"prependQueue":i?"prepend":"append"}function Kae(i){return Array.from((Yae.get(i)||i).children).filter(e=>e.tagName==="STYLE")}function UGe(i,e={}){if(!exi())return null;const{csp:t,prepend:n,priority:r=0}=e,o=nxi(n),a=o==="prependQueue",s=document.createElement("style");s.setAttribute(WGe,o),a&&r&&s.setAttribute(VGe,`${r}`),t!=null&&t.nonce&&(s.nonce=t==null?void 0:t.nonce),s.innerHTML=i;const l=Xae(e),{firstChild:u}=l;if(n){if(a){const c=(e.styles||Kae(l)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(WGe)))return!1;const d=Number(h.getAttribute(VGe)||0);return r>=d});if(c.length)return l.insertBefore(s,c[c.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function rxi(i,e={}){let{styles:t}=e;return t||(t=Kae(Xae(e))),t.find(n=>n.getAttribute(jGe(e))===i)}function oxi(i,e){const t=Yae.get(i);if(!t||!txi(document,t)){const n=UGe("",e),{parentNode:r}=n;Yae.set(i,r),i.removeChild(n)}}function axi(i,e,t={}){var l,u,c;const n=Xae(t),r=Kae(n),o=Pi(ke({},t),{styles:r});oxi(n,o);const a=rxi(e,o);if(a)return(l=o.csp)!=null&&l.nonce&&a.nonce!==((u=o.csp)==null?void 0:u.nonce)&&(a.nonce=(c=o.csp)==null?void 0:c.nonce),a.innerHTML!==i&&(a.innerHTML=i),a;const s=UGe(i,o);return s.setAttribute(jGe(o),e),s}function GGe(i){var e;return(e=i==null?void 0:i.getRootNode)==null?void 0:e.call(i)}function sxi(i){return GGe(i)instanceof ShadowRoot}function lxi(i){return sxi(i)?GGe(i):null}var qGe={};let Zae={};const Qae=[],uxi=i=>{Qae.push(i)};function cxi(i,e){if(qGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Qae.reduce((n,r)=>r(n!=null?n:"","warning"),e);t&&console.error(`Warning: ${t}`)}}function hxi(i,e){if(qGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Qae.reduce((n,r)=>r(n!=null?n:"","note"),e);t&&console.warn(`Note: ${t}`)}}function dxi(){Zae={}}function YGe(i,e,t){!e&&!Zae[t]&&(i(!1,t),Zae[t]=!0)}function $L(i,e){YGe(cxi,i,e)}function fxi(i,e){YGe(hxi,i,e)}$L.preMessage=uxi,$L.resetWarned=dxi,$L.noteOnce=fxi;function gxi(i){return i.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function Jae(i,e){$L(i,`[@ant-design/icons] ${e}`)}function XGe(i){return typeof i=="object"&&typeof i.name=="string"&&typeof i.theme=="string"&&(typeof i.icon=="object"||typeof i.icon=="function")}function KGe(i={}){return Object.keys(i).reduce((e,t)=>{const n=i[t];switch(t){case"class":e.className=n,delete e.class;break;default:delete e[t],e[gxi(t)]=n}return e},{})}function ese(i,e,t){return t?ce.createElement(i.tag,ke(ke({key:e},KGe(i.attrs)),t),(i.children||[]).map((n,r)=>ese(n,`${e}-${i.tag}-${r}`))):ce.createElement(i.tag,ke({key:e},KGe(i.attrs)),(i.children||[]).map((n,r)=>ese(n,`${e}-${i.tag}-${r}`)))}function ZGe(i){return J3i(i)[0]}function QGe(i){return i?Array.isArray(i)?i:[i]:[]}const pxi={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},mxi=`
|
|
10590
10590
|
.anticon {
|
|
10591
10591
|
display: inline-flex;
|
|
10592
10592
|
align-items: center;
|
|
@@ -10723,7 +10723,7 @@ ${r}
|
|
|
10723
10723
|
}
|
|
10724
10724
|
}
|
|
10725
10725
|
`}
|
|
10726
|
-
`,rd=i=>{var l;const s=i,{prefix:e,allowClear:t}=s,n=Rh(s,["prefix","allowClear"]),[r,o]=ce.useState((l=i==null?void 0:i.open)!=null?l:!1);ce.useEffect(()=>{(i==null?void 0:i.open)!==void 0&&o(i==null?void 0:i.open)},[i==null?void 0:i.open]);const a=u=>{if(i!=null&&i.onOpenChange){i==null||i.onOpenChange(u);return}o(u)};return we.jsxs(Yf,{theme:Kxi,children:[we.jsx(Qxi,{}),we.jsx(Zxi,{className:r?"open":"",children:we.jsx(hm,ke({prefix:e?we.jsx("span",{className:r?"open":"",children:e}):void 0,suffixIcon:we.jsxs(we.Fragment,{children:[r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(lse,{style:{color:"#008CD6",pointerEvents:"none"}})}),!r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(nse,{style:{color:"#89898a",pointerEvents:"none"}})})]}),maxTagCount:"responsive",allowClear:t?{clearIcon:we.jsx(cse,{className:"clear-icon"})}:!1,onOpenChange:a},n))})]})},Jxi="http://localhost";class eSi{constructor({baseURL:e=Jxi,host:t,protocol:n,timeout:r=6e5,headers:o}={}){var s,l,u;this.host=t||((s=window.location)==null?void 0:s.host),this.protocol=n||(["http:","https:"].includes((l=window==null?void 0:window.location)==null?void 0:l.protocol)?(u=window==null?void 0:window.location)==null?void 0:u.protocol:void 0);const a=new URL(this.host||this.protocol?`${this.protocol||"https:"}//${this.host||"localhost"}`:e,window.location.href);this.baseURL=a.href.replace(/\/+$/,""),this.host=a.host,this.protocol=a.protocol,this.timeout=r,this.headers=o||{"Content-Type":"application/json"},this.instance=Xs.create({baseURL:this.baseURL,timeout:this.timeout,headers:this.headers})}get(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"GET"}))})}delete(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"DELETE"}))})}put(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"PUT"}))})}post(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"POST"}))})}patch(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"PATCH"}))})}ping(){return this.request({url:"/api/ping",method:"GET",retry:1})}request(e){return ga(this,null,function*(){return this.instance(e).then(t=>{const{status:n,config:r}=t;return(r==null?void 0:r.method)==="delete"&&(n===200||n===201)?{message:"delete success"}:{data:t.data}}).catch(t=>Promise.reject(t))})}}const WT=new eSi,tSi=i=>vAt({},C$e,i,t=>{if(Array.isArray(t))return t}),iSi=[{key:"basic",label:"Basic",value:"basic"},{key:"customSql",label:"Custom SQL",value:"customSql"}],pse=[{key:"equal",label:"Equal",value:"equal"},{key:"notEqual",label:"Not equal",value:"not equal"},{key:"isNull",label:"Is null",value:"is null"},{key:"isNotNull",label:"Is not null",value:"is not null"},{key:"greaterThan",label:"Greater than",value:"greater than"},{key:"greaterThanOrEqualto",label:"Greater than or equal to",value:"greater than or equal to"},{key:"lessThan",label:"Less than",value:"less than"},{key:"lessThanEqualTo",label:"Less than or equal to",value:"less than or equal to"},{key:"contains",label:"Contains",value:"contains"},{key:"notContains",label:"Not contains",value:"not contains"},{key:"StartsWith",label:"Starts with",value:"starts with"},{key:"doesNotStartWith",label:"Does not start with",value:"does not start with"},{key:"endsWith",label:"Ends with",value:"ends with"},{key:"doesNotEndWith",label:"Does not end with",value:"does not end with"}],nSi={equal:"=",notEqual:"!=",isNull:"IS NULL",isNotNull:"IS NOT NULL",greaterThan:">",greaterThanOrEqualto:">=",lessThan:"<",lessThanEqualTo:"<=",contains:"LIKE",notContains:"NOT LIKE",StartsWith:"LIKE",doesNotStartWith:"NOT LIKE",endsWith:"LIKE",doesNotEndWith:"NOT LIKE"},rSi=[{key:"where",label:"WHERE",value:"WHERE"},{key:"having",label:"HAVING",value:"HAVING"}];function mse(i,e){const t=e==null?void 0:e.find(n=>n.value===i.dimensionId||n.label===i.name);return t?{datasetName:t.datasetName,dimensionColumn:t.dimensionColumn,englishName:t.englishName,dimensionId:t.value}:null}const oSi=i=>i?i==null?void 0:i.map(e=>ke({},e.subFilter)):[],aSi=i=>{const e="/metricInsight/api/v1/metric/"+i;return WT.get({url:e}).then(t=>t.data||[])},sSi=i=>{const e="/metricInsight/api/v1/dimension/metric?mode=intersect&metricIds="+i.join(",");return WT.get({url:e}).then(t=>{var n;return((n=t==null?void 0:t.data)==null?void 0:n.items)||[]})},lSi=i=>WT.post({url:"/metricInsight/api/v1/mql/params",data:i}).then(t=>(t==null?void 0:t.data)||[]),uSi=(i,e)=>i!=null&&i.mql?hSi(i,e):cSi(e),cSi=({timeRange:i,metrics:e,dimensions:t,timeGrain:n,filters:r,queryMetricOrgId:o})=>{const a=e==null?void 0:e.map(f=>f.value),s=a==null?void 0:a[0],l=t==null?void 0:t.some(f=>f.value==="metricTime");let u=t,c;l&&(u=t==null?void 0:t.filter(f=>f.value!=="metricTime"),c={dimensionName:"metricTime",dimensionUnit:n});const h={orgId:o,metricIds:a,timeRange:i,dimensionIds:u==null?void 0:u.map(f=>f.value)};(i==null?void 0:i.type)==="custom"&&(i!=null&&i.custom)&&(h.timeRange.custom={from:Ir(i.custom.from).format(GM),to:Ir(i.custom.to).format(GM)}),c&&(h.timeDimension=c),r&&r.length>0&&(h.filters=r.map(f=>({conjunction:"AND",subFilter:ke({},f)})));const d=`/metricInsight/api/v1/metric/${s}/preview`;return WT.post({url:d,data:h}).then(f=>(f==null?void 0:f.data)||[])},hSi=(i,{timeRange:e,metrics:t,dimensions:n,timeGrain:r,filters:o,queryMetricOrgId:a,queryType:s})=>{const l=i==null?void 0:i.mql,u={dimensions:[],metricDefinitions:{},metrics:[],timeConstraint:{},filters:{},orders:(l==null?void 0:l.orders)||{},limits:(l==null?void 0:l.limits)||{},orgId:a,queryType:s},c=n==null?void 0:n.map(f=>{let g=(f==null?void 0:f.englishName)||(f==null?void 0:f.label);return f.value==="metricTime"&&(g="metric_time__"+r),g});u.dimensions={};let h=o==null?void 0:o.map(f=>{var g;return f.type==="basic"?fSi(f==null?void 0:f.basic):f.type==="customSql"?(g=f==null?void 0:f.sql)==null?void 0:g.filterCondition:null}).filter(f=>f!==null&&f.trim()!=="");return t==null||t.forEach(f=>{const g=(f==null?void 0:f.displayName)||(f==null?void 0:f.label);u.metrics.push(g),u.dimensions[g]=c,u.metricDefinitions[g]=f.metricDefinitions,u.filters[g]=h||[],u.timeConstraint[g]=e||{}}),WT.post({url:"/metricInsight/api/v1/mql/query",data:u}).then(f=>{var g;return((g=f==null?void 0:f.data)==null?void 0:g[0])||[]})},dSi=i=>{const{data:e,metricTime:t}=i;if(!e)return[];if(!(e!=null&&e.columns)||!(e!=null&&e.rows))return[];const{columns:n,rows:r}=e;return n.forEach((a,s)=>{a.name}),r.map(a=>{const s={};return n.forEach((l,u)=>{if(a.row[u]!==void 0){let c=l.name;c==="metricTime"&&(c=t),s[c]=a.row[u].v}}),s})},fSi=i=>{var s;const e=(i==null?void 0:i.englishName)||(i==null?void 0:i.dimensionColumn),t=i==null?void 0:i.condition,n=i==null?void 0:i.value,r=(s=pse.find(l=>l.value===t))==null?void 0:s.key,o=nSi[r];if(!e||!o)throw new Error("Invalid filter configuration");if(r==="isNull"||r==="isNotNull")return`${e} ${o}`;if(o==="LIKE"||o==="NOT LIKE"){let l=n;return t==="contains"?l=`%${n}%`:t==="StartsWith"?l=`${n}%`:t==="endsWith"?l=`%${n}`:t==="notContains"?l=`%${n}%`:t==="doesNotStartWith"?l=`${n}%`:t==="doesNotEndWith"&&(l=`%${n}`),`${e} ${o} '${l}'`}const a=typeof n=="string"?`'${n}'`:n;return`${e} ${o} ${a}`},gSi={metricInsight:{queryMql2Params:lSi,queryChartData:uSi,queryMetricId:aSi,queryDimensions:sSi,transformData:dSi},simpleJson:{}},aqe=i=>{const e=Jh(),{setError:t,setLoading:n}=Qh();return ce.useMemo(()=>{const o=gSi[i];return{queryMql2Params:o.queryMql2Params?sqe(o.queryMql2Params,t,n,e):()=>Promise.resolve({}),queryMetricId:o.queryMetricId?sqe(o.queryMetricId,t,n,e):()=>Promise.resolve({}),queryDimensions:o.queryDimensions?o.queryDimensions:()=>Promise.resolve({}),queryChartData:o.queryChartData?o.queryChartData:()=>Promise.resolve({}),transformData:a=>o.transformData?o.transformData(a):[]}},[i])};function sqe(i,e,t,n){return((...r)=>ga(null,null,function*(){try{return yield i(...r)}catch(o){let a=o==null?void 0:o.message;throw typeof o=="string"&&(a=o),t(!1),e({visible:!0,title:n.formatMessage({id:"metricError"}),message:a||"error"}),o}}))}const lqe=[{key:"none",label:"None",value:"none"},{key:"number",label:"Number",value:"number"},{key:"percentage_raw",label:"Percentage (raw)",value:"percentage_raw",desc:"1→1%"},{key:"percentage_scaled",label:"Percentage (scaled)",value:"percentage_scaled",desc:"1→100%"}],pSi={none:"",number:"",percentage_raw:"%",percentage_scaled:"%",celsius:"°C",fahrenheit:"°F",CNY:"¥",USD:"$",GBP:"£",EUR:"€"};function uqe(i,e){if(!i&&!e)return"";let t="",n="";return i&&i!=="none"&&(t=i),e&&e!=="none"&&(n=pSi[e]||e),t+(n?" "+n:"")}function mSi(i,e,t){if(!i)return null;const{dimensionDetailList:n,displayName:r,metricId:o,derivationMethod:a}=i,s={value:o,label:r},l=vse(n,a,t),c=((e==null?void 0:e.dimensions)||[(e==null?void 0:e.xField)||(e==null?void 0:e.nameField)]).map(d=>l.find(f=>d===f.label||d===f.value)).filter(Boolean),h=_Si(r,i);return{metrics:[s],dimensions:c,dissionOptions:l,dataFormat:h}}function vSi(i,e){const{metrics:t}=e,n=hqe(i),r=[],o={};return((n==null?void 0:n.metrics)||[]).forEach(s=>{var p,m;const l=(p=n==null?void 0:n.metricDefinitions)==null?void 0:p[s],u=l==null?void 0:l.refMetric,c=l==null?void 0:l.variables;let h;!u&&c?h=Object.values(c).map(v=>v==null?void 0:v.refMetric):h=[u];let d=[],f=[],g=!1;((m=l==null?void 0:l.indirections)==null?void 0:m.length)>0&&!c&&(g=!0),t.forEach(v=>{if(!g&&v.englishName===u){const b=v==null?void 0:v.metricUnit;o[s]={formatType:(b==null?void 0:b.type)||"none",decimalPlaces:(b==null?void 0:b.decimal)||0,suffix:uqe(b==null?void 0:b.valueUnit,b==null?void 0:b.formatUnit)}}else o[s]={formatType:"none",decimalPlaces:0,suffix:""};h!=null&&h.includes(v==null?void 0:v.englishName)&&!f.includes(v==null?void 0:v.metricId)&&(d.push(v),f.push(v==null?void 0:v.metricId))}),r.push({isDerived:g,displayName:s,label:s,value:"uuid-"+DV(6),metricDefinitions:l,atomicMetricIds:f,atomicMetricsInfo:d})}),{metricsOptions:r,dataFormat:o}}function bSi(i,e,t,n){const{dimensions:r,timeDimension:o={},filters:a=[]}=i,{metricsOptions:s,dataFormat:l}=e,u=Pi(ke({},n),{dataType:"TIMESTAMP"}),c=cqe(s),h=vse(t,c,n),d=(r==null?void 0:r.map(f=>h.find(g=>(f==null?void 0:f.displayName)===g.label||(f==null?void 0:f.dimensionId)===g.value)).filter(Boolean))||[];return(o==null?void 0:o.dimensionName)===(n==null?void 0:n.value)&&d.unshift(u),{metrics:s,dataFormat:l,dimensions:d,dissionOptions:h,timeDimension:o,filters:a,queryMetricOrgId:i==null?void 0:i.orgId}}function cqe(i){const e=[];return i==null||i.forEach(t=>{var n;t!=null&&t.atomicMetricsInfo&&((n=t==null?void 0:t.atomicMetricsInfo)==null||n.forEach(r=>{hl(r==null?void 0:r.derivationMethod)?e.push(...r.derivationMethod):Wh(r==null?void 0:r.derivationMethod)&&e.push(r.derivationMethod)}))}),e==null?void 0:e[0]}function ySi(i,e){var r,o,a,s,l;let t=!1,n=!1;if(!(e!=null&&e.enabled))return{defaultSelected:t,defaultDisabled:n};if((e==null?void 0:e.method)==="Ranking"&&(e!=null&&e.ranking)){const u=((r=e.ranking)==null?void 0:r.dimensions)||[],c=((o=e.ranking)==null?void 0:o.ranges)||[];return{defaultSelected:[...u,...c].includes(i),defaultDisabled:n}}if((e==null?void 0:e.method)==="Proportion"&&(e!=null&&e.proportion)){const u=((a=e.proportion)==null?void 0:a.dimensions)||[],c=((s=e.proportion)==null?void 0:s.ranges)||[];return{defaultSelected:[...u,...c].includes(i),defaultDisabled:n}}if((e==null?void 0:e.method)==="Custom"&&((l=e==null?void 0:e.custom)==null?void 0:l.length)>0){const u=e.custom,c=u.findIndex(h=>(h==null?void 0:h.dimension)===i);return c!==-1&&(c===u.length-1?t=!0:(t=!1,n=!0)),{defaultSelected:t,defaultDisabled:n}}return{defaultSelected:t,defaultDisabled:n}}const _Si=(i,e)=>{var t,n;if(i&&((t=e==null?void 0:e.computationalAttributes)!=null&&t.format)){const r=(n=e==null?void 0:e.computationalAttributes)==null?void 0:n.format;return{[i]:{formatType:(r==null?void 0:r.type)||"none",decimalPlaces:(r==null?void 0:r.decimal)||0,suffix:uqe(r==null?void 0:r.valueUnit,r==null?void 0:r.formatUnit)}}}return null};function hqe(i){let e={};if(typeof i=="object")e=i;else if(typeof i=="string")try{e=JSON.parse(i)}catch(t){console.error(t)}return e}function vse(i,e,t){const n=(i==null?void 0:i.map(r=>{const{defaultSelected:o,defaultDisabled:a}=ySi(r.dimensionId,e);return{label:r.displayName,value:r.dimensionId,englishName:r.englishName,dataType:r.dimensionColumnType,datasetName:r.datasetName,dimensionColumn:r.dimensionColumn,defaultSelected:o,defaultDisabled:a,disabled:o||a}}))||[];return n.unshift(Pi(ke({},t),{dataType:"TIMESTAMP",englishName:t.label,datasetName:void 0,dimensionColumn:void 0,defaultSelected:!1,defaultDisabled:!1,disabled:!1})),n}const CSi=[{key:"custom",label:"Custom",value:"custom"},{key:"today",label:"Today",value:"today"},{key:"last7Days",label:"Last 7 days",value:"last7Days"},{key:"last30Days",label:"Last 30 days",value:"last30Days"},{key:"last1Year",label:"Last year",value:"last1Year"},{key:"thisWeek",label:"This week",value:"thisWeek"},{key:"thisMonth",label:"This month",value:"thisMonth"},{key:"thisQuarter",label:"This quarter",value:"thisQuarter"},{key:"thisYear",label:"This year",value:"thisYear"},{key:"weekToDate",label:"Week-to-date",value:"weekToDate"},{key:"monthToDate",label:"Month-to-date",value:"monthToDate"},{key:"quarterToDate",label:"Quarter-to-date",value:"quarterToDate"},{key:"yearToDate",label:"Year-to-date",value:"yearToDate"},{key:"advanced",label:"Advanced",value:"advanced"}],xSi=[{key:"lastPeriod",label:"Last N period",value:"lastPeriod"},{key:"periodAgo",label:"N periods ago",value:"periodAgo"},{key:"periodBoundary",label:"Current/previous period boundary",value:"periodBoundary"}],SSi=[{key:"current",label:"Current",value:"current"},{key:"previous",label:"Previous",value:"previous"}],CS=[{key:"minute",label:"Minute",value:"minute"},{key:"hour",label:"Hour",value:"hour"},{key:"day",label:"Day",value:"day"},{key:"week",label:"Week",value:"week"},{key:"month",label:"Month",value:"month"},{key:"quarter",label:"Quarter",value:"quarter"},{key:"year",label:"Year",value:"year"}],dqe=[{key:"year",label:"Year",value:"year"},{key:"quarter",label:"Quarter",value:"quarter"},{key:"month",label:"Month",value:"month"},{key:"week",label:"Week",value:"week"},{key:"day",label:"Day",value:"day"},{key:"hour",label:"Hour",value:"hour"},{key:"minute",label:"Minute",value:"minute"}],wSi=[{key:"first",label:"First",value:"first"},{key:"last",label:"Last",value:"last"}],fqe={type:"lastPeriod",lastPeriod:{range:7,unit:"day"},periodAgo:{range:7,unit:"day"},periodBoundary:{periodType:"current",periodUnit:"month",periodRange:void 0,boundaryType:"first",boundaryUnit:"day"}},VT={second:0,minute:1,hour:2,day:3,week:4,month:5,quarter:6,year:7},ESi=i=>{if(i&&Object.prototype.hasOwnProperty.call(VT,i)){const e=VT[i];return CS.filter(t=>VT[t.value]<e)}return CS},ASi=i=>{const e=VT[i==null?void 0:i.toLowerCase()];return e!==void 0?dqe.filter(t=>VT[t.value]<e):dqe},TSi=(i,e,t)=>{var n,r,o,a,s,l;if((e==null?void 0:e.type)==="custom"&&(n=e==null?void 0:e.custom)!=null&&n.from&&(r=e==null?void 0:e.custom)!=null&&r.to){const u=Ir(e.custom.from).format(Ob),c=Ir(e.custom.to).format(Ob);return`${u}-${c}`}if((e==null?void 0:e.type)==="advanced"&&e.advanced){const u=e.advanced;let c="";if((u==null?void 0:u.type)==="lastPeriod")return t({id:"lastNUnits"},{range:(o=u==null?void 0:u.lastPeriod)==null?void 0:o.range,unit:t({id:"unit"+((a=u.lastPeriod)==null?void 0:a.unit)})});if((u==null?void 0:u.type)==="periodAgo")return t({id:"periodAgoNUnits"},{range:(s=u.periodAgo)==null?void 0:s.range,unit:t({id:"unit"+((l=u.periodAgo)==null?void 0:l.unit)})});if((u==null?void 0:u.type)==="periodBoundary"){const h=u.periodBoundary;if((h==null?void 0:h.periodType)==="current")return t({id:"currentNUnit"},{periodUnit:t({id:"unit"+h.periodUnit}),boundaryType:t({id:h.boundaryType}),boundaryUnit:t({id:"unit"+h.boundaryUnit})});if((h==null?void 0:h.periodType)==="previous")return t({id:"previousNUnits"},{periodRange:h.periodRange,periodUnit:t({id:"unit"+h.periodUnit}),boundaryType:t({id:h.boundaryType}),boundaryUnit:t({id:"unit"+h.boundaryUnit})})}return c}return i},RSi=i=>i==null?void 0:i.dimensionUnit,MSi=(i,e)=>{var t,n,r;if(!(i!=null&&i.type)){const o=e==null?void 0:e.mql;let a;if(a=(t=hqe(o))==null?void 0:t.timeConstraint,!a)return{};const s=Object.keys(a)[0],l=a[s];return l&&typeof l=="object"&&(l==null?void 0:l.type)==="advanced"&&((r=(n=l==null?void 0:l.advanced)==null?void 0:n.custom)!=null&&r.from)?{type:"custom",custom:{from:l.advanced.custom.from,to:l.advanced.custom.to||Ir().format("YYYY-MM-DD HH:mm:ss")}}:{}}return i},kSi=i=>{var e;return(i==null?void 0:i.type)==="custom"&&((e=i==null?void 0:i.custom)!=null&&e.from)?{type:"custom",custom:{from:Ir(i.custom.from).format("YYYY-MM-DD HH:mm:ss"),to:Ir(i.custom.to).format("YYYY-MM-DD HH:mm:ss")}}:i},bse=i=>{const e=Jh(),t=i.type,{queryChartData:n,transformData:r}=aqe(t),{chartJson:o,drillBy:a,setLoading:s,setChartJson:l,setError:u,setDataSourceQueryInfo:c,setChartDrillBy:h}=Qh(),d=e.formatMessage({id:"metricTime"});return{queryChartDataFromDatasource:(m,v)=>ga(null,null,function*(){var x;const{metrics:b,dimensions:y,timeGrain:_,dataFormat:S}=m;if(u({visible:!1,title:"",message:""}),m.timeRange=kSi(m.timeRange),m.dimensions=y==null?void 0:y.map(w=>ke({},w)),b!=null&&b.length){const w=yield n(i,m).catch(k=>{u({visible:!0,title:e.formatMessage({id:"chartDataLoadingFailed"}),message:k.message}),s(!1)});c({fieldInfo:(x=w==null?void 0:w.columns)==null?void 0:x.map(k=>{let O=k.name;return O==="metricTime"&&(O=d),{fieldName:O,type:k.type}})});const E=r({data:w,metricTime:d});let A=o;Yke(o)&&(A=yield Xke(Pi(ke({},o),{data:E})));let T=IV({chartJson:A,metrics:b,dimensions:y,isInit:v});const R=Pi(ke({},T),{data:E,timeGrain:_,dataFormat:S});l(R),s(!1),w&&u({visible:!1,title:"",message:""})}}),queryDrillByChartData:y=>ga(null,[y],function*({queryData:m,setDrillLoading:v,setDrillError:b}){var x;const{metrics:_,dimensions:S}=m;if(_!=null&&_.length){const w=yield n(i,m).catch(O=>{b({visible:!0,title:e.formatMessage({id:"drillDataLoadingFailed"}),message:O.message}),v(!1)}),E=r({data:w,metricTime:d}),A=IV({chartJson:o,metrics:_,dimensions:S}),T=Pi(ke({},A),{data:E}),R=WJ(T),k=a;h(Pi(ke({},k),{chartState:{chartJson:T,dataset:R,history:[...((x=k.chartState)==null?void 0:x.history)||[],{chartJson:T,dataset:R}]}})),v(!1),w&&b({visible:!1,title:"",message:""})}}),queyDetailTableData:m=>ga(null,null,function*(){return n(i,Pi(ke({},m),{queryType:"detailed"})).then(v=>r({data:v,metricTime:d}))})}},OSi=As(pl)`
|
|
10726
|
+
`,rd=i=>{var l;const s=i,{prefix:e,allowClear:t}=s,n=Rh(s,["prefix","allowClear"]),[r,o]=ce.useState((l=i==null?void 0:i.open)!=null?l:!1);ce.useEffect(()=>{(i==null?void 0:i.open)!==void 0&&o(i==null?void 0:i.open)},[i==null?void 0:i.open]);const a=u=>{if(i!=null&&i.onOpenChange){i==null||i.onOpenChange(u);return}o(u)};return we.jsxs(Yf,{theme:Kxi,children:[we.jsx(Qxi,{}),we.jsx(Zxi,{className:r?"open":"",children:we.jsx(hm,ke({prefix:e?we.jsx("span",{className:r?"open":"",children:e}):void 0,suffixIcon:we.jsxs(we.Fragment,{children:[r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(lse,{style:{color:"#008CD6",pointerEvents:"none"}})}),!r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(nse,{style:{color:"#89898a",pointerEvents:"none"}})})]}),maxTagCount:"responsive",allowClear:t?{clearIcon:we.jsx(cse,{className:"clear-icon"})}:!1,onOpenChange:a},n))})]})},Jxi="http://localhost";class eSi{constructor({baseURL:e=Jxi,host:t,protocol:n,timeout:r=6e5,headers:o}={}){var s,l,u;this.host=t||((s=window.location)==null?void 0:s.host),this.protocol=n||(["http:","https:"].includes((l=window==null?void 0:window.location)==null?void 0:l.protocol)?(u=window==null?void 0:window.location)==null?void 0:u.protocol:void 0);const a=new URL(this.host||this.protocol?`${this.protocol||"https:"}//${this.host||"localhost"}`:e,window.location.href);this.baseURL=a.href.replace(/\/+$/,""),this.host=a.host,this.protocol=a.protocol,this.timeout=r,this.headers=o||{"Content-Type":"application/json"},this.instance=Xs.create({baseURL:this.baseURL,timeout:this.timeout,headers:this.headers})}get(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"GET"}))})}delete(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"DELETE"}))})}put(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"PUT"}))})}post(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"POST"}))})}patch(e){return ga(this,null,function*(){return this.request(Pi(ke({},e),{method:"PATCH"}))})}ping(){return this.request({url:"/api/ping",method:"GET",retry:1})}request(e){return ga(this,null,function*(){return this.instance(e).then(t=>{const{status:n,config:r}=t;return(r==null?void 0:r.method)==="delete"&&(n===200||n===201)?{message:"delete success"}:{data:t.data}}).catch(t=>Promise.reject(t))})}}const WT=new eSi,tSi=i=>vAt({},C$e,i,t=>{if(Array.isArray(t))return t}),iSi=[{key:"basic",label:"Basic",value:"basic"},{key:"customSql",label:"Custom SQL",value:"customSql"}],pse=[{key:"equal",label:"Equal",value:"equal"},{key:"notEqual",label:"Not equal",value:"not equal"},{key:"isNull",label:"Is null",value:"is null"},{key:"isNotNull",label:"Is not null",value:"is not null"},{key:"greaterThan",label:"Greater than",value:"greater than"},{key:"greaterThanOrEqualto",label:"Greater than or equal to",value:"greater than or equal to"},{key:"lessThan",label:"Less than",value:"less than"},{key:"lessThanEqualTo",label:"Less than or equal to",value:"less than or equal to"},{key:"contains",label:"Contains",value:"contains"},{key:"notContains",label:"Not contains",value:"not contains"},{key:"StartsWith",label:"Starts with",value:"starts with"},{key:"doesNotStartWith",label:"Does not start with",value:"does not start with"},{key:"endsWith",label:"Ends with",value:"ends with"},{key:"doesNotEndWith",label:"Does not end with",value:"does not end with"}],nSi={equal:"=",notEqual:"!=",isNull:"IS NULL",isNotNull:"IS NOT NULL",greaterThan:">",greaterThanOrEqualto:">=",lessThan:"<",lessThanEqualTo:"<=",contains:"LIKE",notContains:"NOT LIKE",StartsWith:"LIKE",doesNotStartWith:"NOT LIKE",endsWith:"LIKE",doesNotEndWith:"NOT LIKE"},rSi=[{key:"where",label:"WHERE",value:"WHERE"},{key:"having",label:"HAVING",value:"HAVING"}];function mse(i,e){const t=e==null?void 0:e.find(n=>n.value===i.dimensionId||n.label===i.name);return t?{datasetName:t.datasetName,dimensionColumn:t.dimensionColumn,englishName:t.englishName,dimensionId:t.value}:null}const oSi=i=>i?i==null?void 0:i.map(e=>ke({},e.subFilter)):[],aSi=i=>{const e="/metricInsight/api/v1/metric/"+i;return WT.get({url:e}).then(t=>t.data||[])},sSi=i=>{const e="/metricInsight/api/v1/dimension/metric?mode=intersect&metricIds="+i.join(",");return WT.get({url:e}).then(t=>{var n;return((n=t==null?void 0:t.data)==null?void 0:n.items)||[]})},lSi=i=>WT.post({url:"/metricInsight/api/v1/mql/params",data:i}).then(t=>(t==null?void 0:t.data)||[]),uSi=(i,e)=>i!=null&&i.mql?hSi(i,e):cSi(e),cSi=({timeRange:i,metrics:e,dimensions:t,timeGrain:n,filters:r,queryMetricOrgId:o,queryType:a})=>{const s=e==null?void 0:e.map(g=>g.value),l=s==null?void 0:s[0],u=t==null?void 0:t.some(g=>g.value==="metricTime");let c=t,h;u&&(c=t==null?void 0:t.filter(g=>g.value!=="metricTime"),h={dimensionName:"metricTime",dimensionUnit:n});const d={orgId:o,metricIds:s,timeRange:i,dimensionIds:c==null?void 0:c.map(g=>g.value),queryType:a};(i==null?void 0:i.type)==="custom"&&(i!=null&&i.custom)&&(d.timeRange.custom={from:Ir(i.custom.from).format(GM),to:Ir(i.custom.to).format(GM)}),h&&(d.timeDimension=h),r&&r.length>0&&(d.filters=r.map(g=>({conjunction:"AND",subFilter:ke({},g)})));const f=`/metricInsight/api/v1/metric/${l}/preview`;return WT.post({url:f,data:d}).then(g=>(g==null?void 0:g.data)||[])},hSi=(i,{timeRange:e,metrics:t,dimensions:n,timeGrain:r,filters:o,queryMetricOrgId:a,queryType:s})=>{const l=i==null?void 0:i.mql,u={dimensions:[],metricDefinitions:{},metrics:[],timeConstraint:{},filters:{},orders:(l==null?void 0:l.orders)||{},limits:(l==null?void 0:l.limits)||{},orgId:a,queryType:s},c=n==null?void 0:n.map(f=>{let g=(f==null?void 0:f.englishName)||(f==null?void 0:f.label);return f.value==="metricTime"&&(g="metric_time__"+r),g});u.dimensions={};let h=o==null?void 0:o.map(f=>{var g;return f.type==="basic"?fSi(f==null?void 0:f.basic):f.type==="customSql"?(g=f==null?void 0:f.sql)==null?void 0:g.filterCondition:null}).filter(f=>f!==null&&f.trim()!=="");return t==null||t.forEach(f=>{const g=(f==null?void 0:f.displayName)||(f==null?void 0:f.label);u.metrics.push(g),u.dimensions[g]=c,u.metricDefinitions[g]=f.metricDefinitions,u.filters[g]=h||[],u.timeConstraint[g]=e||{}}),WT.post({url:"/metricInsight/api/v1/mql/query",data:u}).then(f=>{var g;return((g=f==null?void 0:f.data)==null?void 0:g[0])||[]})},dSi=i=>{const{data:e,metricTime:t}=i;if(!e)return[];if(!(e!=null&&e.columns)||!(e!=null&&e.rows))return[];const{columns:n,rows:r}=e;return n.forEach((a,s)=>{a.name}),r.map(a=>{const s={};return n.forEach((l,u)=>{if(a.row[u]!==void 0){let c=l.name;c==="metricTime"&&(c=t),s[c]=a.row[u].v}}),s})},fSi=i=>{var s;const e=(i==null?void 0:i.englishName)||(i==null?void 0:i.dimensionColumn),t=i==null?void 0:i.condition,n=i==null?void 0:i.value,r=(s=pse.find(l=>l.value===t))==null?void 0:s.key,o=nSi[r];if(!e||!o)throw new Error("Invalid filter configuration");if(r==="isNull"||r==="isNotNull")return`${e} ${o}`;if(o==="LIKE"||o==="NOT LIKE"){let l=n;return t==="contains"?l=`%${n}%`:t==="StartsWith"?l=`${n}%`:t==="endsWith"?l=`%${n}`:t==="notContains"?l=`%${n}%`:t==="doesNotStartWith"?l=`${n}%`:t==="doesNotEndWith"&&(l=`%${n}`),`${e} ${o} '${l}'`}const a=typeof n=="string"?`'${n}'`:n;return`${e} ${o} ${a}`},gSi={metricInsight:{queryMql2Params:lSi,queryChartData:uSi,queryMetricId:aSi,queryDimensions:sSi,transformData:dSi},simpleJson:{}},aqe=i=>{const e=Jh(),{setError:t,setLoading:n}=Qh();return ce.useMemo(()=>{const o=gSi[i];return{queryMql2Params:o.queryMql2Params?sqe(o.queryMql2Params,t,n,e):()=>Promise.resolve({}),queryMetricId:o.queryMetricId?sqe(o.queryMetricId,t,n,e):()=>Promise.resolve({}),queryDimensions:o.queryDimensions?o.queryDimensions:()=>Promise.resolve({}),queryChartData:o.queryChartData?o.queryChartData:()=>Promise.resolve({}),transformData:a=>o.transformData?o.transformData(a):[]}},[i])};function sqe(i,e,t,n){return((...r)=>ga(null,null,function*(){try{return yield i(...r)}catch(o){let a=o==null?void 0:o.message;throw typeof o=="string"&&(a=o),t(!1),e({visible:!0,title:n.formatMessage({id:"metricError"}),message:a||"error"}),o}}))}const lqe=[{key:"none",label:"None",value:"none"},{key:"number",label:"Number",value:"number"},{key:"percentage_raw",label:"Percentage (raw)",value:"percentage_raw",desc:"1→1%"},{key:"percentage_scaled",label:"Percentage (scaled)",value:"percentage_scaled",desc:"1→100%"}],pSi={none:"",number:"",percentage_raw:"%",percentage_scaled:"%",celsius:"°C",fahrenheit:"°F",CNY:"¥",USD:"$",GBP:"£",EUR:"€"};function uqe(i,e){if(!i&&!e)return"";let t="",n="";return i&&i!=="none"&&(t=i),e&&e!=="none"&&(n=pSi[e]||e),t+(n?" "+n:"")}function mSi(i,e,t){if(!i)return null;const{dimensionDetailList:n,displayName:r,metricId:o,derivationMethod:a}=i,s={value:o,label:r},l=vse(n,a,t),c=((e==null?void 0:e.dimensions)||[(e==null?void 0:e.xField)||(e==null?void 0:e.nameField)]).map(d=>l.find(f=>d===f.label||d===f.value)).filter(Boolean),h=_Si(r,i);return{metrics:[s],dimensions:c,dissionOptions:l,dataFormat:h}}function vSi(i,e){const{metrics:t}=e,n=hqe(i),r=[],o={};return((n==null?void 0:n.metrics)||[]).forEach(s=>{var p,m;const l=(p=n==null?void 0:n.metricDefinitions)==null?void 0:p[s],u=l==null?void 0:l.refMetric,c=l==null?void 0:l.variables;let h;!u&&c?h=Object.values(c).map(v=>v==null?void 0:v.refMetric):h=[u];let d=[],f=[],g=!1;((m=l==null?void 0:l.indirections)==null?void 0:m.length)>0&&!c&&(g=!0),t.forEach(v=>{if(!g&&v.englishName===u){const b=v==null?void 0:v.metricUnit;o[s]={formatType:(b==null?void 0:b.type)||"none",decimalPlaces:(b==null?void 0:b.decimal)||0,suffix:uqe(b==null?void 0:b.valueUnit,b==null?void 0:b.formatUnit)}}else o[s]={formatType:"none",decimalPlaces:0,suffix:""};h!=null&&h.includes(v==null?void 0:v.englishName)&&!f.includes(v==null?void 0:v.metricId)&&(d.push(v),f.push(v==null?void 0:v.metricId))}),r.push({isDerived:g,displayName:s,label:s,value:"uuid-"+DV(6),metricDefinitions:l,atomicMetricIds:f,atomicMetricsInfo:d})}),{metricsOptions:r,dataFormat:o}}function bSi(i,e,t,n){const{dimensions:r,timeDimension:o={},filters:a=[]}=i,{metricsOptions:s,dataFormat:l}=e,u=Pi(ke({},n),{dataType:"TIMESTAMP"}),c=cqe(s),h=vse(t,c,n),d=(r==null?void 0:r.map(f=>h.find(g=>(f==null?void 0:f.displayName)===g.label||(f==null?void 0:f.dimensionId)===g.value)).filter(Boolean))||[];return(o==null?void 0:o.dimensionName)===(n==null?void 0:n.value)&&d.unshift(u),{metrics:s,dataFormat:l,dimensions:d,dissionOptions:h,timeDimension:o,filters:a,queryMetricOrgId:i==null?void 0:i.orgId}}function cqe(i){const e=[];return i==null||i.forEach(t=>{var n;t!=null&&t.atomicMetricsInfo&&((n=t==null?void 0:t.atomicMetricsInfo)==null||n.forEach(r=>{hl(r==null?void 0:r.derivationMethod)?e.push(...r.derivationMethod):Wh(r==null?void 0:r.derivationMethod)&&e.push(r.derivationMethod)}))}),e==null?void 0:e[0]}function ySi(i,e){var r,o,a,s,l;let t=!1,n=!1;if(!(e!=null&&e.enabled))return{defaultSelected:t,defaultDisabled:n};if((e==null?void 0:e.method)==="Ranking"&&(e!=null&&e.ranking)){const u=((r=e.ranking)==null?void 0:r.dimensions)||[],c=((o=e.ranking)==null?void 0:o.ranges)||[];return{defaultSelected:[...u,...c].includes(i),defaultDisabled:n}}if((e==null?void 0:e.method)==="Proportion"&&(e!=null&&e.proportion)){const u=((a=e.proportion)==null?void 0:a.dimensions)||[],c=((s=e.proportion)==null?void 0:s.ranges)||[];return{defaultSelected:[...u,...c].includes(i),defaultDisabled:n}}if((e==null?void 0:e.method)==="Custom"&&((l=e==null?void 0:e.custom)==null?void 0:l.length)>0){const u=e.custom,c=u.findIndex(h=>(h==null?void 0:h.dimension)===i);return c!==-1&&(c===u.length-1?t=!0:(t=!1,n=!0)),{defaultSelected:t,defaultDisabled:n}}return{defaultSelected:t,defaultDisabled:n}}const _Si=(i,e)=>{var t,n;if(i&&((t=e==null?void 0:e.computationalAttributes)!=null&&t.format)){const r=(n=e==null?void 0:e.computationalAttributes)==null?void 0:n.format;return{[i]:{formatType:(r==null?void 0:r.type)||"none",decimalPlaces:(r==null?void 0:r.decimal)||0,suffix:uqe(r==null?void 0:r.valueUnit,r==null?void 0:r.formatUnit)}}}return null};function hqe(i){let e={};if(typeof i=="object")e=i;else if(typeof i=="string")try{e=JSON.parse(i)}catch(t){console.error(t)}return e}function vse(i,e,t){const n=(i==null?void 0:i.map(r=>{const{defaultSelected:o,defaultDisabled:a}=ySi(r.dimensionId,e);return{label:r.displayName,value:r.dimensionId,englishName:r.englishName,dataType:r.dimensionColumnType,datasetName:r.datasetName,dimensionColumn:r.dimensionColumn,defaultSelected:o,defaultDisabled:a,disabled:o||a}}))||[];return n.unshift(Pi(ke({},t),{dataType:"TIMESTAMP",englishName:t.label,datasetName:void 0,dimensionColumn:void 0,defaultSelected:!1,defaultDisabled:!1,disabled:!1})),n}const CSi=[{key:"custom",label:"Custom",value:"custom"},{key:"today",label:"Today",value:"today"},{key:"last7Days",label:"Last 7 days",value:"last7Days"},{key:"last30Days",label:"Last 30 days",value:"last30Days"},{key:"last1Year",label:"Last year",value:"last1Year"},{key:"thisWeek",label:"This week",value:"thisWeek"},{key:"thisMonth",label:"This month",value:"thisMonth"},{key:"thisQuarter",label:"This quarter",value:"thisQuarter"},{key:"thisYear",label:"This year",value:"thisYear"},{key:"weekToDate",label:"Week-to-date",value:"weekToDate"},{key:"monthToDate",label:"Month-to-date",value:"monthToDate"},{key:"quarterToDate",label:"Quarter-to-date",value:"quarterToDate"},{key:"yearToDate",label:"Year-to-date",value:"yearToDate"},{key:"advanced",label:"Advanced",value:"advanced"}],xSi=[{key:"lastPeriod",label:"Last N period",value:"lastPeriod"},{key:"periodAgo",label:"N periods ago",value:"periodAgo"},{key:"periodBoundary",label:"Current/previous period boundary",value:"periodBoundary"}],SSi=[{key:"current",label:"Current",value:"current"},{key:"previous",label:"Previous",value:"previous"}],CS=[{key:"minute",label:"Minute",value:"minute"},{key:"hour",label:"Hour",value:"hour"},{key:"day",label:"Day",value:"day"},{key:"week",label:"Week",value:"week"},{key:"month",label:"Month",value:"month"},{key:"quarter",label:"Quarter",value:"quarter"},{key:"year",label:"Year",value:"year"}],dqe=[{key:"year",label:"Year",value:"year"},{key:"quarter",label:"Quarter",value:"quarter"},{key:"month",label:"Month",value:"month"},{key:"week",label:"Week",value:"week"},{key:"day",label:"Day",value:"day"},{key:"hour",label:"Hour",value:"hour"},{key:"minute",label:"Minute",value:"minute"}],wSi=[{key:"first",label:"First",value:"first"},{key:"last",label:"Last",value:"last"}],fqe={type:"lastPeriod",lastPeriod:{range:7,unit:"day"},periodAgo:{range:7,unit:"day"},periodBoundary:{periodType:"current",periodUnit:"month",periodRange:void 0,boundaryType:"first",boundaryUnit:"day"}},VT={second:0,minute:1,hour:2,day:3,week:4,month:5,quarter:6,year:7},ESi=i=>{if(i&&Object.prototype.hasOwnProperty.call(VT,i)){const e=VT[i];return CS.filter(t=>VT[t.value]<e)}return CS},ASi=i=>{const e=VT[i==null?void 0:i.toLowerCase()];return e!==void 0?dqe.filter(t=>VT[t.value]<e):dqe},TSi=(i,e,t)=>{var n,r,o,a,s,l;if((e==null?void 0:e.type)==="custom"&&(n=e==null?void 0:e.custom)!=null&&n.from&&(r=e==null?void 0:e.custom)!=null&&r.to){const u=Ir(e.custom.from).format(Ob),c=Ir(e.custom.to).format(Ob);return`${u}-${c}`}if((e==null?void 0:e.type)==="advanced"&&e.advanced){const u=e.advanced;let c="";if((u==null?void 0:u.type)==="lastPeriod")return t({id:"lastNUnits"},{range:(o=u==null?void 0:u.lastPeriod)==null?void 0:o.range,unit:t({id:"unit"+((a=u.lastPeriod)==null?void 0:a.unit)})});if((u==null?void 0:u.type)==="periodAgo")return t({id:"periodAgoNUnits"},{range:(s=u.periodAgo)==null?void 0:s.range,unit:t({id:"unit"+((l=u.periodAgo)==null?void 0:l.unit)})});if((u==null?void 0:u.type)==="periodBoundary"){const h=u.periodBoundary;if((h==null?void 0:h.periodType)==="current")return t({id:"currentNUnit"},{periodUnit:t({id:"unit"+h.periodUnit}),boundaryType:t({id:h.boundaryType}),boundaryUnit:t({id:"unit"+h.boundaryUnit})});if((h==null?void 0:h.periodType)==="previous")return t({id:"previousNUnits"},{periodRange:h.periodRange,periodUnit:t({id:"unit"+h.periodUnit}),boundaryType:t({id:h.boundaryType}),boundaryUnit:t({id:"unit"+h.boundaryUnit})})}return c}return i},RSi=i=>i==null?void 0:i.dimensionUnit,MSi=(i,e)=>{var t,n,r;if(!(i!=null&&i.type)){const o=e==null?void 0:e.mql;let a;if(a=(t=hqe(o))==null?void 0:t.timeConstraint,!a)return{};const s=Object.keys(a)[0],l=a[s];return l&&typeof l=="object"&&(l==null?void 0:l.type)==="advanced"&&((r=(n=l==null?void 0:l.advanced)==null?void 0:n.custom)!=null&&r.from)?{type:"custom",custom:{from:l.advanced.custom.from,to:l.advanced.custom.to||Ir().format("YYYY-MM-DD HH:mm:ss")}}:{}}return i},kSi=i=>{var e;return(i==null?void 0:i.type)==="custom"&&((e=i==null?void 0:i.custom)!=null&&e.from)?{type:"custom",custom:{from:Ir(i.custom.from).format("YYYY-MM-DD HH:mm:ss"),to:Ir(i.custom.to).format("YYYY-MM-DD HH:mm:ss")}}:i},bse=i=>{const e=Jh(),t=i.type,{queryChartData:n,transformData:r}=aqe(t),{chartJson:o,drillBy:a,setLoading:s,setChartJson:l,setError:u,setDataSourceQueryInfo:c,setChartDrillBy:h}=Qh(),d=e.formatMessage({id:"metricTime"});return{queryChartDataFromDatasource:(m,v)=>ga(null,null,function*(){var x;const{metrics:b,dimensions:y,timeGrain:_,dataFormat:S}=m;if(u({visible:!1,title:"",message:""}),m.timeRange=kSi(m.timeRange),m.dimensions=y==null?void 0:y.map(w=>ke({},w)),b!=null&&b.length){const w=yield n(i,m).catch(k=>{u({visible:!0,title:e.formatMessage({id:"chartDataLoadingFailed"}),message:k.message}),s(!1)});c({fieldInfo:(x=w==null?void 0:w.columns)==null?void 0:x.map(k=>{let O=k.name;return O==="metricTime"&&(O=d),{fieldName:O,type:k.type}})});const E=r({data:w,metricTime:d});let A=o;Yke(o)&&(A=yield Xke(Pi(ke({},o),{data:E})));let T=IV({chartJson:A,metrics:b,dimensions:y,isInit:v});const R=Pi(ke({},T),{data:E,timeGrain:_,dataFormat:S});l(R),s(!1),w&&u({visible:!1,title:"",message:""})}}),queryDrillByChartData:y=>ga(null,[y],function*({queryData:m,setDrillLoading:v,setDrillError:b}){var x;const{metrics:_,dimensions:S}=m;if(_!=null&&_.length){const w=yield n(i,m).catch(O=>{b({visible:!0,title:e.formatMessage({id:"drillDataLoadingFailed"}),message:O.message}),v(!1)}),E=r({data:w,metricTime:d}),A=IV({chartJson:o,metrics:_,dimensions:S}),T=Pi(ke({},A),{data:E}),R=WJ(T),k=a;h(Pi(ke({},k),{chartState:{chartJson:T,dataset:R,history:[...((x=k.chartState)==null?void 0:x.history)||[],{chartJson:T,dataset:R}]}})),v(!1),w&&b({visible:!1,title:"",message:""})}}),queyDetailTableData:m=>ga(null,null,function*(){return n(i,Pi(ke({},m),{queryType:"detailed"})).then(v=>r({data:v,metricTime:d}))})}},OSi=As(pl)`
|
|
10727
10727
|
${()=>bl`
|
|
10728
10728
|
&.advt-vis-chart-antd-btn {
|
|
10729
10729
|
color: #89898a;
|
|
@@ -10835,6 +10835,7 @@ ${r}
|
|
|
10835
10835
|
.right-content {
|
|
10836
10836
|
padding-top: 16px;
|
|
10837
10837
|
flex: 1;
|
|
10838
|
+
overflow: hidden;
|
|
10838
10839
|
.advt-vis-chart-antd-form {
|
|
10839
10840
|
padding: 0 8px;
|
|
10840
10841
|
}
|
|
@@ -10925,7 +10926,7 @@ ${r}
|
|
|
10925
10926
|
padding: 0;
|
|
10926
10927
|
}
|
|
10927
10928
|
}
|
|
10928
|
-
`,X8i=({filter:i,onCancel:e,onApply:t})=>{var v,b;const n=Jh(),[r,o]=ce.useState((i==null?void 0:i.type)||"basic"),[a,s]=ce.useState(!0),[l,u]=ce.useState("WHERE"),[c,h]=ce.useState(""),[d]=No.useForm(),f=No.useWatch(null,d),g=No.useWatch("condition",d),{dataSourceQueryInfo:p}=Qh();ce.useEffect(()=>{o(i.type),i.type==="basic"&&d.setFieldsValue(i.basic),i.type==="customSql"&&(i!=null&&i.sql)&&(u(i.sql.conditionType),h(i.sql.filterCondition))},[i]),ce.useEffect(()=>{if(r==="basic"){const y=d.getFieldsValue(),_=Object.values(y).every(S=>S!==null&&S!==""&&S!==void 0);s(!_)}else r==="customSql"&&s(!c||!l)},[r,f,c]);const m=()=>{if(r==="basic"){const y={type:"basic",basic:ke({},f)};t(y)}r==="customSql"&&t({type:"customSql",sql:{conditionType:l,filterCondition:c}})};return we.jsxs(q8i,{className:"filter-modal",children:[we.jsxs("div",{className:"modal-content",children:[we.jsx("div",{className:"left-content",children:we.jsx(yp,{selectedKeys:[r],mode:"inline",theme:"light",items:Yd(iSi),onClick:({key:y})=>{o(y)}})}),we.jsx("div",{className:"right-content",children:we.jsxs(No,{layout:"vertical",form:d,children:[r==="basic"&&we.jsxs(dg,{vertical:!0,children:[we.jsx(No.Item,{label:we.jsx(ho,{id:"dimension"}),name:"dimensionId",children:we.jsx(rd,{options:(b=(v=p==null?void 0:p.dimensions)==null?void 0:v.filter(y=>y.value!=="metricTime"))==null?void 0:b.map(y=>Pi(ke({},y),{disabled:!1}))})}),we.jsx(No.Item,{label:we.jsx(ho,{id:"condition"}),name:"condition",children:we.jsx(rd,{options:Yd(pse)})}),!["is null","is not null"].includes(g)&&we.jsx(No.Item,{label:we.jsx(ho,{id:"value"}),name:"value",colon:!1,children:we.jsx(gm,{allowClear:!0})})]}),r==="customSql"&&we.jsxs(dg,{vertical:!0,children:[we.jsx(No.Item,{label:we.jsx(ho,{id:"conditionType"}),children:we.jsx(rd,{options:rSi,value:l,onChange:y=>u(y)})}),we.jsx(No.Item,{label:we.jsx(ho,{id:"filterConditionSQL"}),colon:!1,className:"code-sql",children:we.jsx(_Qe,{placeholder:n.formatMessage({id:"filterConditionPlaceholder"}),value:c,height:"276px",extensions:[ETi()],onChange:y=>h(y)})})]})]})})]}),we.jsxs("div",{className:"footer",children:[we.jsx("div",{className:"footer-btn cancel-btn",children:we.jsx(pl,{type:"text",onClick:()=>e(),children:we.jsx(ho,{id:"cancel"})})}),we.jsx("div",{className:"footer-btn apply-btn",children:we.jsx(pl,{type:"text",disabled:a,onClick:()=>m(),children:we.jsx(ho,{id:"modalApply"})})})]})]})},CQe=({filter:i,filterKey:e,onFilterChange:t,deleteFilter:n})=>{const r=Jh(),[o,a]=ce.useState(""),[s,l]=ce.useState(!1),{dataSourceQueryInfo:u}=Qh();return ce.useEffect(()=>{var h,d;let c="";if(i.type==="basic"){const f=i==null?void 0:i.basic,g=(h=u==null?void 0:u.dimensions)==null?void 0:h.find(v=>v.value===(f==null?void 0:f.dimensionId)),p=(d=pse.find(v=>v.value===(f==null?void 0:f.condition)))==null?void 0:d.key,m=(f==null?void 0:f.value)!==void 0?` ${f==null?void 0:f.value}`:"";c=`${g==null?void 0:g.label} ${r.formatMessage({id:p})} ${m}`}if(i.type==="customSql"){const f=i==null?void 0:i.sql;c=`${f==null?void 0:f.conditionType} ${f==null?void 0:f.filterCondition}`}a(c)},[i]),we.jsxs(UI,{classNames:{root:"advt-chart-popover"},content:we.jsx(X8i,{filter:i,onCancel:()=>l(!1),onApply:c=>{if(c.type==="basic"&&c.basic.dimensionId){const h=c.basic.dimensionId,d=mse({dimensionId:h},u==null?void 0:u.dimensions);c.basic=ke(ke({},c.basic),d)}t(c),l(!1)}}),trigger:"click",open:s,placement:"bottomLeft",arrow:!1,onOpenChange:c=>l(c),children:[e!=="add-filter"&&we.jsxs(_p.Compact,{className:"filter-item-box",children:[we.jsx(gm,{className:"filter-input",value:o,suffix:we.jsxs(we.Fragment,{children:[s&&we.jsx("div",{className:"suffixIcon",children:we.jsx(lse,{style:{color:"#008CD6",pointerEvents:"none"}})}),!s&&we.jsx("div",{className:"suffixIcon",children:we.jsx(nse,{style:{color:"#89898a",pointerEvents:"none"}})})]}),onClick:()=>{l(!s)}}),we.jsx(Op,{icon:we.jsx(cse,{}),onClick:c=>{c.stopPropagation(),n&&n()}})]}),e==="add-filter"&&we.jsx(Op,{className:"add-filter-btn",icon:we.jsx(nqe,{}),onClick:()=>{l(!0)}})]},e)},K8i={type:"basic",basic:{dimensionId:"",condition:"equal",value:""},sql:{conditionType:"Where",filterCondition:""}},Z8i=({filters:i=[],onChange:e})=>{const t=o=>{i.push(o),e([...i])},n=o=>{i.splice(o,1),e([...i])},r=(o,a)=>{i[a]=o,e([...i])};return we.jsxs(G8i,{children:[i==null?void 0:i.map((o,a)=>{const s=`filter-${a}`;return we.jsx("div",{className:"filter-item",children:we.jsx(CQe,{filter:o,filterKey:s,deleteFilter:()=>n(a),onFilterChange:l=>r(l,a)})},s)}),we.jsx("div",{className:"filter-item",children:we.jsx(CQe,{filterKey:"add-filter",filter:ke({},K8i),onFilterChange:o=>t(o)})},"add-filter")]})},Q8i=As.div`
|
|
10929
|
+
`,X8i=({filter:i,onCancel:e,onApply:t})=>{var v,b;const n=Jh(),[r,o]=ce.useState((i==null?void 0:i.type)||"basic"),[a,s]=ce.useState(!0),[l,u]=ce.useState("WHERE"),[c,h]=ce.useState(""),[d]=No.useForm(),f=No.useWatch(null,d),g=No.useWatch("condition",d),{dataSourceQueryInfo:p}=Qh();ce.useEffect(()=>{o(i.type),i.type==="basic"&&d.setFieldsValue(i.basic),i.type==="customSql"&&(i!=null&&i.sql)&&(u(i.sql.conditionType),h(i.sql.filterCondition))},[i]),ce.useEffect(()=>{if(r==="basic"){const y=d.getFieldsValue(),_=Object.values(y).every(S=>S!==null&&S!==""&&S!==void 0);s(!_)}else r==="customSql"&&s(!c||!l)},[r,f,c]);const m=()=>{if(r==="basic"){const y={type:"basic",basic:ke({},f)};t(y)}r==="customSql"&&t({type:"customSql",sql:{conditionType:l,filterCondition:c}})};return we.jsxs(q8i,{className:"filter-modal",children:[we.jsxs("div",{className:"modal-content",children:[we.jsx("div",{className:"left-content",children:we.jsx(yp,{selectedKeys:[r],mode:"inline",theme:"light",items:Yd(iSi),onClick:({key:y})=>{o(y)}})}),we.jsx("div",{className:"right-content",children:we.jsxs(No,{layout:"vertical",form:d,children:[r==="basic"&&we.jsxs(dg,{vertical:!0,children:[we.jsx(No.Item,{label:we.jsx(ho,{id:"dimension"}),name:"dimensionId",children:we.jsx(rd,{options:(b=(v=p==null?void 0:p.dimensions)==null?void 0:v.filter(y=>y.value!=="metricTime"))==null?void 0:b.map(y=>Pi(ke({},y),{disabled:!1}))})}),we.jsx(No.Item,{label:we.jsx(ho,{id:"condition"}),name:"condition",children:we.jsx(rd,{options:Yd(pse)})}),!["is null","is not null"].includes(g)&&we.jsx(No.Item,{label:we.jsx(ho,{id:"value"}),name:"value",colon:!1,children:we.jsx(gm,{allowClear:!0})})]}),r==="customSql"&&we.jsxs(dg,{vertical:!0,children:[we.jsx(No.Item,{label:we.jsx(ho,{id:"conditionType"}),children:we.jsx(rd,{options:rSi,value:l,onChange:y=>u(y)})}),we.jsx(No.Item,{label:we.jsx(ho,{id:"filterConditionSQL"}),colon:!1,className:"code-sql",children:we.jsx(_Qe,{placeholder:n.formatMessage({id:"filterConditionPlaceholder"}),value:c,height:"276px",width:"100%",extensions:[ETi()],onChange:y=>h(y)})})]})]})})]}),we.jsxs("div",{className:"footer",children:[we.jsx("div",{className:"footer-btn cancel-btn",children:we.jsx(pl,{type:"text",onClick:()=>e(),children:we.jsx(ho,{id:"cancel"})})}),we.jsx("div",{className:"footer-btn apply-btn",children:we.jsx(pl,{type:"text",disabled:a,onClick:()=>m(),children:we.jsx(ho,{id:"modalApply"})})})]})]})},CQe=({filter:i,filterKey:e,onFilterChange:t,deleteFilter:n})=>{const r=Jh(),[o,a]=ce.useState(""),[s,l]=ce.useState(!1),{dataSourceQueryInfo:u}=Qh();return ce.useEffect(()=>{var h,d;let c="";if(i.type==="basic"){const f=i==null?void 0:i.basic,g=(h=u==null?void 0:u.dimensions)==null?void 0:h.find(v=>v.value===(f==null?void 0:f.dimensionId)),p=(d=pse.find(v=>v.value===(f==null?void 0:f.condition)))==null?void 0:d.key,m=(f==null?void 0:f.value)!==void 0?` ${f==null?void 0:f.value}`:"";c=`${g==null?void 0:g.label} ${r.formatMessage({id:p})} ${m}`}if(i.type==="customSql"){const f=i==null?void 0:i.sql;c=`${f==null?void 0:f.conditionType} ${f==null?void 0:f.filterCondition}`}a(c)},[i]),we.jsxs(UI,{classNames:{root:"advt-chart-popover"},content:we.jsx(X8i,{filter:i,onCancel:()=>l(!1),onApply:c=>{if(c.type==="basic"&&c.basic.dimensionId){const h=c.basic.dimensionId,d=mse({dimensionId:h},u==null?void 0:u.dimensions);c.basic=ke(ke({},c.basic),d)}t(c),l(!1)}}),trigger:"click",open:s,placement:"bottomLeft",arrow:!1,onOpenChange:c=>l(c),children:[e!=="add-filter"&&we.jsxs(_p.Compact,{className:"filter-item-box",children:[we.jsx(gm,{className:"filter-input",value:o,suffix:we.jsxs(we.Fragment,{children:[s&&we.jsx("div",{className:"suffixIcon",children:we.jsx(lse,{style:{color:"#008CD6",pointerEvents:"none"}})}),!s&&we.jsx("div",{className:"suffixIcon",children:we.jsx(nse,{style:{color:"#89898a",pointerEvents:"none"}})})]}),onClick:()=>{l(!s)}}),we.jsx(Op,{icon:we.jsx(cse,{}),onClick:c=>{c.stopPropagation(),n&&n()}})]}),e==="add-filter"&&we.jsx(Op,{className:"add-filter-btn",icon:we.jsx(nqe,{}),onClick:()=>{l(!0)}})]},e)},K8i={type:"basic",basic:{dimensionId:"",condition:"equal",value:""},sql:{conditionType:"Where",filterCondition:""}},Z8i=({filters:i=[],onChange:e})=>{const t=o=>{i.push(o),e([...i])},n=o=>{i.splice(o,1),e([...i])},r=(o,a)=>{i[a]=o,e([...i])};return we.jsxs(G8i,{children:[i==null?void 0:i.map((o,a)=>{const s=`filter-${a}`;return we.jsx("div",{className:"filter-item",children:we.jsx(CQe,{filter:o,filterKey:s,deleteFilter:()=>n(a),onFilterChange:l=>r(l,a)})},s)}),we.jsx("div",{className:"filter-item",children:we.jsx(CQe,{filterKey:"add-filter",filter:ke({},K8i),onFilterChange:o=>t(o)})},"add-filter")]})},Q8i=As.div`
|
|
10929
10930
|
${()=>bl`
|
|
10930
10931
|
width: 100%;
|
|
10931
10932
|
|
|
@@ -11243,7 +11244,7 @@ ${r}
|
|
|
11243
11244
|
}
|
|
11244
11245
|
}
|
|
11245
11246
|
`}
|
|
11246
|
-
`,SQe=i=>{const[e,t]=ce.useState(null),[n,r]=ce.useState(!1),o=ce.useRef(null);ce.useEffect(()=>{const l=u=>{const c=o.current;c&&!c.contains(u.target)&&r(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]);const a=()=>we.jsxs(dg,{className:"actions",justify:"space-between",align:"center",children:[we.jsx(Op,{type:"text",onClick:()=>r(!1),children:we.jsx(ho,{id:"cancel"})}),we.jsx(Op,{type:"text",onClick:()=>{i.onChange&&i.onChange(e==null?void 0:e.dates,e==null?void 0:e.dateStrings),r(!1)},children:we.jsx(ho,{id:"modalApply"})})]}),s=(l,u)=>{t({dates:l,dateStrings:u})};return we.jsxs(Yf,{theme:sRi,children:[we.jsx(uRi,{}),we.jsx("div",{ref:o,children:we.jsx(lRi,ke({suffixIcon:null,renderExtraFooter:a,showNow:!1,needConfirm:!0,onCalendarChange:s,open:n,getPopupContainer:()=>o.current,onClick:()=>r(!n),classNames:{popup:{root:"time-pick-popover"}}},i))})]})},cRi=({customTimeRange:i,onChange:e})=>{var n,r;const t=({from:o,to:a})=>{e({from:o||i.from,to:a||i.to})};return we.jsxs(tRi,{className:"custom-content",children:[we.jsxs("div",{className:"left-content",children:[we.jsx("div",{className:"title",children:we.jsx(ho,{id:"startTime"})}),we.jsx(xQe,{value:i.from,onChange:o=>{t({from:o})}}),we.jsxs("div",{className:"date-time",children:[we.jsx(gm,{value:(n=i.from)==null?void 0:n.format("YYYY/MM/DD")}),we.jsx(SQe,{onChange:o=>{o&&t({from:o})},value:i.from})]})]}),we.jsxs("div",{className:"right-content",children:[we.jsx("div",{className:"title",children:we.jsx(ho,{id:"endTime"})}),we.jsx(xQe,{value:i.to,onChange:o=>{t({to:o})}}),we.jsxs("div",{className:"date-time",children:[we.jsx(gm,{value:(r=i.to)==null?void 0:r.format("YYYY/MM/DD")}),we.jsx(SQe,{onChange:o=>{o&&t({to:o})},value:i.to})]})]})]})},hRi=({type:i,setClose:e,setApply:t,timeRange:n})=>{const[r,o]=ce.useState({from:Ir().subtract(7,"day"),to:Ir()}),[a,s]=ce.useState({type:"lastPeriod",lastPeriod:{range:7,unit:"day"}});ce.useEffect(()=>{var u,c;i==="custom"&&(u=n==null?void 0:n.custom)!=null&&u.from&&(c=n==null?void 0:n.custom)!=null&&c.to&&o({from:Ir(n.custom.from),to:Ir(n.custom.to)}),i==="advanced"&&n!=null&&n.advanced&&s(n.advanced)},[n]);const l=()=>{if(i==="custom"){const u=Ir(r.from).format(Ob),c=Ir(r.to).format(Ob);t({type:"custom",custom:{from:u,to:c}})}i==="advanced"&&t({type:"advanced",advanced:ke({},a)})};return we.jsxs(eRi,{className:"time-popover-container",children:[we.jsxs("div",{className:"time-popover-header",children:[we.jsx(pl,{className:"icon-box",type:"text",onClick:()=>e(!0),children:we.jsx(p0,{component:nRi})}),we.jsx("span",{className:"time-title",children:we.jsx(ho,{id:i})})]}),we.jsxs("div",{className:"time-popover-content",children:[i==="custom"&&we.jsx(cRi,{customTimeRange:r,onChange:u=>o(u)}),i==="advanced"&&we.jsx(oRi,{advancedTimeRange:a,onChange:u=>{s(u)}})]}),we.jsxs("div",{className:"time-footer",children:[we.jsx("div",{className:"time-footer-btn cancel-btn",children:we.jsx(Op,{type:"text",onClick:()=>e(),children:we.jsx(ho,{id:"cancel"})})}),we.jsx("div",{className:"time-footer-btn apply-btn",children:we.jsx(Op,{type:"text",onClick:l,children:we.jsx(ho,{id:"modalApply"})})})]})]})},dRi=({timeRange:i,onChange:e})=>{const{formatMessage:t}=Jh(),[n,r]=ce.useState(!1),[o,a]=ce.useState(!1),s=ce.useRef(null),[l,u]=ce.useState("");ce.useEffect(()=>{const g=p=>{var b,y;const m=(b=s.current)==null?void 0:b.contains(p.target),v=(y=document.querySelector(".advanced-select-dropdown"))==null?void 0:y.contains(p.target);!m&&!v&&a(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),ce.useEffect(()=>{i&&((i.type==="custom"||i.type==="advanced")&&u(i.type),i.type==="basic"&&i.basic&&u(i==null?void 0:i.basic),i.type||u(""))},[i]);const c=g=>{e(g),a(!1)},h=g=>{if(g==="custom"||g==="advanced"){u(g),a(!0);return}o&&a(!1),e({type:g?"basic":"",basic:g||""})},d=({label:g,value:p})=>p==="custom"||p==="advanced"?TSi(g,i,t):g,f=g=>{const p=g.value==="advanced"||g.value==="custom";return we.jsxs(dg,{align:"center",justify:"space-between",onClick:()=>{(g.value==="advanced"||g.value==="custom")&&a(!0)},children:[we.jsx("span",{className:"label",children:g.label}),p&&we.jsx("span",{className:"icon",children:we.jsx(ase,{})})]})};return we.jsxs(J8i,{ref:s,children:[we.jsx(rd,{className:"time-range-select",prefix:we.jsx(ho,{id:"timeRange"}),value:l,options:Yd(CSi),optionRender:f,labelRender:d,open:n,onChange:h,getPopupContainer:()=>s.current,onOpenChange:g=>{g&&((i==null?void 0:i.type)==="advanced"||(i==null?void 0:i.type)==="custom")&&a(!o),r(g)},allowClear:!0}),o&&we.jsx(hRi,{type:l,timeRange:i,setClose:g=>{a(!1),i&&e(ke({},i)),g&&r(!0)},setApply:c})]})};function fRi({theme:i,dataSource:e}){const t=Jh(),[n,r]=ce.useState([]),[o,a]=ce.useState([]),s={label:t.formatMessage({id:"metricTime"}),value:"metricTime"},{chartJson:l,setDataSourceQueryInfo:u,setLoading:c,setError:h,setControllerConfig:d,setChartDrillBy:f}=Qh(),[g,p]=ce.useState({metrics:[],dimensions:[]}),{queryDimensions:m,queryMql2Params:v,queryMetricId:b}=aqe(e==null?void 0:e.type),{queryChartDataFromDatasource:y}=bse(e),_=L=>{const F={metrics:(L==null?void 0:L.metrics)||[],dimensions:(L==null?void 0:L.dimensions)||[],timeRange:MSi(L==null?void 0:L.timeRange,e)||{},timeGrain:RSi(L==null?void 0:L.timeDimension)||(L==null?void 0:L.timeGrain)||(l==null?void 0:l.timeGrain),filters:oSi(L==null?void 0:L.filters),queryMetricOrgId:L==null?void 0:L.queryMetricOrgId};p(F),r(L==null?void 0:L.metrics),a((L==null?void 0:L.dissionOptions)||[]),
|
|
11247
|
+
`,SQe=i=>{const[e,t]=ce.useState(null),[n,r]=ce.useState(!1),o=ce.useRef(null);ce.useEffect(()=>{const l=u=>{const c=o.current;c&&!c.contains(u.target)&&r(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]);const a=()=>we.jsxs(dg,{className:"actions",justify:"space-between",align:"center",children:[we.jsx(Op,{type:"text",onClick:()=>r(!1),children:we.jsx(ho,{id:"cancel"})}),we.jsx(Op,{type:"text",onClick:()=>{i.onChange&&i.onChange(e==null?void 0:e.dates,e==null?void 0:e.dateStrings),r(!1)},children:we.jsx(ho,{id:"modalApply"})})]}),s=(l,u)=>{t({dates:l,dateStrings:u})};return we.jsxs(Yf,{theme:sRi,children:[we.jsx(uRi,{}),we.jsx("div",{ref:o,children:we.jsx(lRi,ke({suffixIcon:null,renderExtraFooter:a,showNow:!1,needConfirm:!0,onCalendarChange:s,open:n,getPopupContainer:()=>o.current,onClick:()=>r(!n),classNames:{popup:{root:"time-pick-popover"}}},i))})]})},cRi=({customTimeRange:i,onChange:e})=>{var n,r;const t=({from:o,to:a})=>{e({from:o||i.from,to:a||i.to})};return we.jsxs(tRi,{className:"custom-content",children:[we.jsxs("div",{className:"left-content",children:[we.jsx("div",{className:"title",children:we.jsx(ho,{id:"startTime"})}),we.jsx(xQe,{value:i.from,onChange:o=>{t({from:o})}}),we.jsxs("div",{className:"date-time",children:[we.jsx(gm,{value:(n=i.from)==null?void 0:n.format("YYYY/MM/DD")}),we.jsx(SQe,{onChange:o=>{o&&t({from:o})},value:i.from})]})]}),we.jsxs("div",{className:"right-content",children:[we.jsx("div",{className:"title",children:we.jsx(ho,{id:"endTime"})}),we.jsx(xQe,{value:i.to,onChange:o=>{t({to:o})}}),we.jsxs("div",{className:"date-time",children:[we.jsx(gm,{value:(r=i.to)==null?void 0:r.format("YYYY/MM/DD")}),we.jsx(SQe,{onChange:o=>{o&&t({to:o})},value:i.to})]})]})]})},hRi=({type:i,setClose:e,setApply:t,timeRange:n})=>{const[r,o]=ce.useState({from:Ir().subtract(7,"day"),to:Ir()}),[a,s]=ce.useState({type:"lastPeriod",lastPeriod:{range:7,unit:"day"}});ce.useEffect(()=>{var u,c;i==="custom"&&(u=n==null?void 0:n.custom)!=null&&u.from&&(c=n==null?void 0:n.custom)!=null&&c.to&&o({from:Ir(n.custom.from),to:Ir(n.custom.to)}),i==="advanced"&&n!=null&&n.advanced&&s(n.advanced)},[n]);const l=()=>{if(i==="custom"){const u=Ir(r.from).format(Ob),c=Ir(r.to).format(Ob);t({type:"custom",custom:{from:u,to:c}})}i==="advanced"&&t({type:"advanced",advanced:ke({},a)})};return we.jsxs(eRi,{className:"time-popover-container",children:[we.jsxs("div",{className:"time-popover-header",children:[we.jsx(pl,{className:"icon-box",type:"text",onClick:()=>e(!0),children:we.jsx(p0,{component:nRi})}),we.jsx("span",{className:"time-title",children:we.jsx(ho,{id:i})})]}),we.jsxs("div",{className:"time-popover-content",children:[i==="custom"&&we.jsx(cRi,{customTimeRange:r,onChange:u=>o(u)}),i==="advanced"&&we.jsx(oRi,{advancedTimeRange:a,onChange:u=>{s(u)}})]}),we.jsxs("div",{className:"time-footer",children:[we.jsx("div",{className:"time-footer-btn cancel-btn",children:we.jsx(Op,{type:"text",onClick:()=>e(),children:we.jsx(ho,{id:"cancel"})})}),we.jsx("div",{className:"time-footer-btn apply-btn",children:we.jsx(Op,{type:"text",onClick:l,children:we.jsx(ho,{id:"modalApply"})})})]})]})},dRi=({timeRange:i,onChange:e})=>{const{formatMessage:t}=Jh(),[n,r]=ce.useState(!1),[o,a]=ce.useState(!1),s=ce.useRef(null),[l,u]=ce.useState("");ce.useEffect(()=>{const g=p=>{var b,y;const m=(b=s.current)==null?void 0:b.contains(p.target),v=(y=document.querySelector(".advanced-select-dropdown"))==null?void 0:y.contains(p.target);!m&&!v&&a(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),ce.useEffect(()=>{i&&((i.type==="custom"||i.type==="advanced")&&u(i.type),i.type==="basic"&&i.basic&&u(i==null?void 0:i.basic),i.type||u(""))},[i]);const c=g=>{e(g),a(!1)},h=g=>{if(g==="custom"||g==="advanced"){u(g),a(!0);return}o&&a(!1),e({type:g?"basic":"",basic:g||""})},d=({label:g,value:p})=>p==="custom"||p==="advanced"?TSi(g,i,t):g,f=g=>{const p=g.value==="advanced"||g.value==="custom";return we.jsxs(dg,{align:"center",justify:"space-between",onClick:()=>{(g.value==="advanced"||g.value==="custom")&&a(!0)},children:[we.jsx("span",{className:"label",children:g.label}),p&&we.jsx("span",{className:"icon",children:we.jsx(ase,{})})]})};return we.jsxs(J8i,{ref:s,children:[we.jsx(rd,{className:"time-range-select",prefix:we.jsx(ho,{id:"timeRange"}),value:l,options:Yd(CSi),optionRender:f,labelRender:d,open:n,onChange:h,getPopupContainer:()=>s.current,onOpenChange:g=>{g&&((i==null?void 0:i.type)==="advanced"||(i==null?void 0:i.type)==="custom")&&a(!o),r(g)},allowClear:!0}),o&&we.jsx(hRi,{type:l,timeRange:i,setClose:g=>{a(!1),i&&e(ke({},i)),g&&r(!0)},setApply:c})]})};function fRi({theme:i,dataSource:e}){const t=Jh(),[n,r]=ce.useState([]),[o,a]=ce.useState([]),s={label:t.formatMessage({id:"metricTime"}),value:"metricTime"},{chartJson:l,setDataSourceQueryInfo:u,setLoading:c,setError:h,setControllerConfig:d,setChartDrillBy:f}=Qh(),[g,p]=ce.useState({metrics:[],dimensions:[]}),{queryDimensions:m,queryMql2Params:v,queryMetricId:b}=aqe(e==null?void 0:e.type),{queryChartDataFromDatasource:y}=bse(e),_=L=>{const F={metrics:(L==null?void 0:L.metrics)||[],dimensions:(L==null?void 0:L.dimensions)||[],timeRange:MSi(L==null?void 0:L.timeRange,e)||{},timeGrain:RSi(L==null?void 0:L.timeDimension)||(L==null?void 0:L.timeGrain)||(l==null?void 0:l.timeGrain),filters:oSi(L==null?void 0:L.filters),queryMetricOrgId:L==null?void 0:L.queryMetricOrgId};p(F),r(L==null?void 0:L.metrics),a((L==null?void 0:L.dissionOptions)||[]),u({metrics:(L==null?void 0:L.metrics)||[],dimensions:(L==null?void 0:L.dissionOptions)||[]}),d(F);const W=Pi(ke({},F),{dataFormat:L==null?void 0:L.dataFormat});y(W,!0)},S=L=>ga(null,null,function*(){var W;const F=yield v(L);if(F&&Array.isArray(F)&&F.length>0){const V=F[0],G=vSi(L,V),z=(W=G==null?void 0:G.metricsOptions)==null?void 0:W.flatMap(J=>J==null?void 0:J.atomicMetricIds),X=z?[...new Set(z)]:[];if(!(X!=null&&X.length)){h({visible:!0,title:"Error",message:"metric is missing"}),c(!1);return}const j=yield m(X),H=bSi(V,G,j,s);_(H)}}),x=L=>ga(null,null,function*(){var V,G;if(!((V=L==null?void 0:L.metricIds)!=null&&V.length)){h({visible:!0,title:"Error",message:"metric is missing"}),c(!1);return}const F=yield b((G=L==null?void 0:L.metricIds)==null?void 0:G[0]),W=mSi(F,l,s);_(Pi(ke({},W),{timeGrain:L==null?void 0:L.timeGrain,timeRange:L==null?void 0:L.timeRange,filters:L==null?void 0:L.filters}))});ce.useEffect(()=>{(e==null?void 0:e.type)==="metricInsight"&&(e!=null&&e.mql?S(e.mql):e!=null&&e.params?x(e.params):(c(!1),h({visible:!0,title:"Error",message:"mql or params is missing "})))},[e]);const w=()=>{c(!0),f({visible:!1,config:{},chartState:{}}),d(ke({},g)),y(Pi(ke({},g),{dataFormat:l==null?void 0:l.dataFormat}))},E=()=>{const{metrics:L}=g;return!(L!=null&&L.length)},A=(L,F)=>{p(W=>Pi(ke({},W),{[L]:F}))};if(e!=null&&e.hideControls)return null;const{timeRange:T,metrics:R,dimensions:k,timeGrain:O,filters:P}=g;return we.jsxs(Q8i,{className:"chart-controllers",theme:i,children:[we.jsxs("div",{className:"controllers",children:[we.jsx("div",{className:"controllers-icon",children:we.jsx(p0,{component:Yxi})}),we.jsxs("div",{className:"controllers-content",children:[we.jsxs("div",{className:"row-item",children:[we.jsx(dRi,{timeRange:T,onChange:L=>A("timeRange",L)}),we.jsx(rd,{mode:"multiple",prefix:we.jsx(ho,{id:"metric"}),options:n,value:R,onChange:L=>{if(L.length>0){const F=n.filter(G=>L.includes(G.value));A("metrics",F);const W=F==null?void 0:F.flatMap(G=>G==null?void 0:G.atomicMetricIds),V=W?[...new Set(W)]:[];m(V).then(G=>{const z=cqe(F),X=vse(G,z,s);a(X)})}}})]}),we.jsxs("div",{className:"row-item",children:[we.jsx(rd,{mode:"multiple",prefix:we.jsx(ho,{id:"dimension"}),value:k,options:o,onChange:L=>{const F=L.map(G=>o.find(z=>z.value===G)).filter(G=>G!==void 0),W=F==null?void 0:F.some(G=>G.value===s.value);W!==!!O&&A("timeGrain",W?O||"day":""),A("dimensions",F)}}),we.jsx(rd,{prefix:we.jsx(ho,{id:"timeGrain"}),value:O,options:Yd(CS),onChange:L=>A("timeGrain",L),allowClear:!0})]})]})]}),we.jsxs("div",{className:"controllers",children:[we.jsx("div",{className:"controllers-icon",children:we.jsx(p0,{component:Xxi})}),we.jsx(Z8i,{filters:P,onChange:L=>A("filters",L)})]}),we.jsx("div",{className:"apply-btns",children:we.jsx(pl,{disabled:E(),type:"primary",onClick:w,children:we.jsx(ho,{id:"apply"})})})]})}const wQe=i=>M.createElement("svg",ke({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),M.createElement("path",{d:"M8.82166 9.99921L5.28613 13.5347L6.46464 14.7132L10.0002 11.1777L13.5357 14.7133L14.7142 13.5348L11.1787 9.99921L14.7142 6.46367L13.5357 5.28516L10.0002 8.82069L6.46467 5.28519L5.28616 6.4637L8.82166 9.99921Z",fill:"#89898A"})),gRi=As.div`
|
|
11247
11248
|
${i=>{const{theme:e}=i;return{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:999,background:e==="dark"?"#333":"#fff",".header":{height:"48px",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",boxSizing:"border-box"},".title":{height:"32px",lineHeight:"32px",fontSize:"14px",fontWeight:"700",color:e==="dark"?"#C8C8C8":"#323233",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"},".advt-vis-chart-antd-btn-icon>.anticon":{fontSize:"20px"},".detail-data-table":{height:"calc(100% - 48px)"}}}}
|
|
11248
11249
|
`,pRi=({dataSource:i})=>{const{dataDetail:e,setDataDetail:t,controllerConfig:n}=Qh(),{queyDetailTableData:r}=bse(i),[o,a]=ce.useState([]),s=Jh();return ce.useEffect(()=>{e!=null&&e.visible&&(t(Pi(ke({},e),{loading:!0})),r(n).then(l=>{a(l),t(Pi(ke({},e),{error:"",loading:!1}))}).catch(l=>{a([]),t(Pi(ke({},e),{error:l==null?void 0:l.message}))}))},[e==null?void 0:e.visible,n]),we.jsxs(gRi,{children:[we.jsxs("div",{className:"header",children:[we.jsx("div",{className:"title",children:we.jsx(ho,{id:"DetailData"})}),we.jsx("div",{className:"",children:we.jsx(pl,{className:"del-button",type:"text",icon:we.jsx(p0,{component:wQe,style:{fontSize:"20px"}}),onClick:()=>{t({visible:!1,error:"",loading:!1})}})})]}),we.jsxs("div",{className:"detail-data-table",children:[!(e!=null&&e.loading)&&!e.error&&we.jsx(FL,{data:o}),(e==null?void 0:e.loading)&&we.jsx(HT,{}),e.error&&we.jsx(Vae,{message:e.error,visible:!0,title:s.formatMessage({id:"detailDataError"})})]})]})},mRi=As.div`
|
|
11249
11250
|
${()=>bl`
|