@gientech/modual 2.2.33 → 2.2.34
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/assets/client-ClqOT00H.js +1 -0
- package/assets/{index-D3YrsAA1.js → index-BrQsYGxa.js} +1 -1
- package/assets/{index-Bi5ePMtR.js → index-CmltVl0j.js} +5 -6
- package/assets/{style-C0xb5cv_.js → style-CtNhFE2h.js} +1 -1
- package/chat.js +1 -1
- package/chatCompare.js +1 -1
- package/index.js +1 -1
- package/oprecords.js +1 -1
- package/package.json +2 -1
- package/assets/client-ClH9pVlh.js +0 -1
- package/assets/dayjs.min-9C0uSO6x.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as l}from"./index-CmltVl0j.js";import u from"react-dom";function s(e,i){for(var n=0;n<i.length;n++){const t=i[n];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o={},c;function p(){if(c)return o;c=1;var e=u;return o.createRoot=e.createRoot,o.hydrateRoot=e.hydrateRoot,o}var f=p();const d=l(f),y=s({__proto__:null,default:d},[f]);export{y as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as Re,jsx as _,Fragment as Ko}from"react/jsx-runtime";import*as ur from"react";import sa,{useState as Xe,useMemo as Ht,useRef as Ft,useEffect as pt,memo as ul,Suspense as $N,forwardRef as ll,createElement as y5,useImperativeHandle as PQ,useCallback as si,createContext as eF,useContext as tF}from"react";import{ChatMessageAdapter as nF,mergeLiveChunkToNodes as iF}from"@mxmweb/rtext";import{Icon as Pn,useTheme as OQ,deepMergeTheme as Z1,defaultTheme as j8}from"@mxmweb/zui";import"
|
|
1
|
+
import{jsxs as Re,jsx as _,Fragment as Ko}from"react/jsx-runtime";import*as ur from"react";import sa,{useState as Xe,useMemo as Ht,useRef as Ft,useEffect as pt,memo as ul,Suspense as $N,forwardRef as ll,createElement as y5,useImperativeHandle as PQ,useCallback as si,createContext as eF,useContext as tF}from"react";import{ChatMessageAdapter as nF,mergeLiveChunkToNodes as iF}from"@mxmweb/rtext";import{Icon as Pn,useTheme as OQ,deepMergeTheme as Z1,defaultTheme as j8}from"@mxmweb/zui";import"dayjs";import dn from"axios";import{message as Ei,Popconfirm as rF,Popover as sF,Tooltip as ko,Switch as aF,Input as nu,Form as C2,ConfigProvider as K6,Modal as oF,Button as Mo,Tree as AF,Tag as uF,Spin as lF,Table as cF,Pagination as hF,Empty as gF,Drawer as LQ,Select as RQ,Flex as dF,Badge as NQ}from"antd";import{u as Vr}from"./index-CpW6Dhpp.js";import{C as FQ,G as HQ,a as fF}from"./GientechStreamReader-_ih9ja1B.js";import{X as _6}from"./x-CdZQbi--.js";import{c as cl}from"./createLucideIcon-Bj5DlX2s.js";import{L as G8}from"./loader-circle-C1Oa97Sz.js";import{validateFileUpload as YQ,showValidationErrors as zQ}from"@mxmweb/aichat";import{C as pF}from"./circle-plus-RlDPoPkb.js";/**
|
|
2
2
|
* @license lucide-react v0.456.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import{jsx as It,jsxs as Zn,Fragment as eG}from"react/jsx-runtime";import*as Gr from"react";import Bn,{createContext as NP,useContext as RP,useEffect as Qu,Component as nG,Fragment as rG,useRef as Nu,forwardRef as IP,useMemo as _p,useState as oa}from"react";import Yv from"styled-components";import{Timeline as iG,Avatar as aG,Spin as DP,Row as oG,Col as fy,Card as Qd,Statistic as dy,DatePicker as sG,Input as cG,Radio as hy}from"antd";import{g as Hv,d as np,c as Jd}from"./dayjs.min-9C0uSO6x.js";import{DashboardContainer as lG}from"@mxmweb/zui";import uG from"axios";import{c as tx}from"./createLucideIcon-Bj5DlX2s.js";import{S as fG}from"./search-CEuIa9-_.js";/**
|
|
1
|
+
import{jsx as It,jsxs as Zn,Fragment as eG}from"react/jsx-runtime";import*as Gr from"react";import Bn,{createContext as NP,useContext as RP,useEffect as Qu,Component as nG,Fragment as rG,useRef as Nu,forwardRef as IP,useMemo as _p,useState as oa}from"react";import Yv from"styled-components";import{Timeline as iG,Avatar as aG,Spin as DP,Row as oG,Col as fy,Card as Qd,Statistic as dy,DatePicker as sG,Input as cG,Radio as hy}from"antd";import np from"dayjs";import{DashboardContainer as lG}from"@mxmweb/zui";import uG from"axios";import{c as tx}from"./createLucideIcon-Bj5DlX2s.js";import{S as fG}from"./search-CEuIa9-_.js";/**
|
|
3
2
|
* @license lucide-react v0.456.0 - ISC
|
|
4
3
|
*
|
|
5
4
|
* This source code is licensed under the ISC license.
|
|
@@ -14,9 +13,9 @@ import{jsx as It,jsxs as Zn,Fragment as eG}from"react/jsx-runtime";import*as Gr
|
|
|
14
13
|
*
|
|
15
14
|
* This source code is licensed under the ISC license.
|
|
16
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/const jP=tx("MonitorCog",[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m15.2 4.9-.9-.4",key:"12wd2u"}],["path",{d:"m15.2 7.1-.9.4",key:"1r2vl7"}],["path",{d:"m16.9 3.2-.4-.9",key:"3zbo91"}],["path",{d:"m16.9 8.8-.4.9",key:"1qr2dn"}],["path",{d:"m19.5 2.3-.4.9",key:"1rjrkq"}],["path",{d:"m19.5 9.7-.4-.9",key:"heryx5"}],["path",{d:"m21.7 4.5-.9.4",key:"17fqt1"}],["path",{d:"m21.7 7.5-.9-.4",key:"14zyni"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]]);function Ws(){return Ws=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ws.apply(null,arguments)}function pG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hm(t,n){return Hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},Hm(t,n)}function vG(t,n){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(n.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function Vm(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function gG(t){if(Array.isArray(t))return Vm(t)}function yG(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ex(t,n){if(t){if(typeof t=="string")return Vm(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Vm(t,n):void 0}}function mG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
|
+
*/const jP=tx("MonitorCog",[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m15.2 4.9-.9-.4",key:"12wd2u"}],["path",{d:"m15.2 7.1-.9.4",key:"1r2vl7"}],["path",{d:"m16.9 3.2-.4-.9",key:"3zbo91"}],["path",{d:"m16.9 8.8-.4.9",key:"1qr2dn"}],["path",{d:"m19.5 2.3-.4.9",key:"1rjrkq"}],["path",{d:"m19.5 9.7-.4-.9",key:"heryx5"}],["path",{d:"m21.7 4.5-.9.4",key:"17fqt1"}],["path",{d:"m21.7 7.5-.9-.4",key:"14zyni"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]]);function Ws(){return Ws=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ws.apply(null,arguments)}function pG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hm(t,n){return Hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},Hm(t,n)}function vG(t,n){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(n.indexOf(r)!==-1)continue;e[r]=t[r]}return e}var Jd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function q2t(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if(typeof n=="function"){var e=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),e}function Vm(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function gG(t){if(Array.isArray(t))return Vm(t)}function yG(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ex(t,n){if(t){if(typeof t=="string")return Vm(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Vm(t,n):void 0}}function mG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
18
17
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(t){return gG(t)||yG(t)||ex(t)||mG()}function bG(t){if(Array.isArray(t))return t}function xG(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=a.call(e)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&e.return!=null&&(o=e.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function wG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vt(t,n){return bG(t)||xG(t,n)||ex(t,n)||wG()}function no(t){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},no(t)}function _G(t,n){if(no(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var r=e.call(t,n);if(no(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function $P(t){var n=_G(t,"string");return no(n)=="symbol"?n:n+""}function wt(t,n,e){return(n=$P(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function BS(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,r)}return e}function Dt(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?BS(Object(e),!0).forEach(function(r){wt(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):BS(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function OG(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function SG(t,n){if(!t)return!1;if(t.contains)return t.contains(n);for(var e=n;e;){if(e===t)return!0;e=e.parentNode}return!1}var zS="data-rc-order",WS="data-rc-priority",EG="rc-util-key",Um=new Map;function FP(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.mark;return n?n.startsWith("data-")?n:"data-".concat(n):EG}function Vv(t){if(t.attachTo)return t.attachTo;var n=document.querySelector("head");return n||document.body}function kG(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function nx(t){return Array.from((Um.get(t)||t).children).filter(function(n){return n.tagName==="STYLE"})}function BP(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!OG())return null;var e=n.csp,r=n.prepend,i=n.priority,a=i===void 0?0:i,o=kG(r),s=o==="prependQueue",c=document.createElement("style");c.setAttribute(zS,o),s&&a&&c.setAttribute(WS,"".concat(a)),e!=null&&e.nonce&&(c.nonce=e==null?void 0:e.nonce),c.innerHTML=t;var l=Vv(n),u=l.firstChild;if(r){if(s){var f=(n.styles||nx(l)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(zS)))return!1;var h=Number(d.getAttribute(WS)||0);return a>=h});if(f.length)return l.insertBefore(c,f[f.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function zP(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=Vv(n);return(n.styles||nx(e)).find(function(r){return r.getAttribute(FP(n))===t})}function q2t(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=zP(t,n);if(e){var r=Vv(n);r.removeChild(e)}}function AG(t,n){var e=Um.get(t);if(!e||!SG(document,e)){var r=BP("",n),i=r.parentNode;Um.set(t,i),t.removeChild(r)}}function MG(t,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Vv(e),i=nx(r),a=Dt(Dt({},e),{},{styles:i});AG(r,a);var o=zP(n,a);if(o){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var l;o.nonce=(l=a.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var u=BP(t,a);return u.setAttribute(FP(a),n),u}function lo(t,n){if(t==null)return{};var e,r,i=vG(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}var Xm={},TG=function(n){};function PG(t,n){}function CG(t,n){}function LG(){Xm={}}function WP(t,n,e){!n&&!Xm[e]&&(t(!1,e),Xm[e]=!0)}function Uv(t,n){WP(PG,t,n)}function NG(t,n){WP(CG,t,n)}Uv.preMessage=TG;Uv.resetWarned=LG;Uv.noteOnce=NG;function ht(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function GS(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$P(r.key),r)}}function pt(t,n,e){return n&&GS(t.prototype,n),e&&GS(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function te(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Hm(t,n)}function rl(t){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rl(t)}function GP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GP=function(){return!!t})()}function RG(t,n){if(n&&(no(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pG(t)}var YP=NP({});const er=Math.round;function py(t,n){const e=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=e.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=n(r[i]||0,e[i]||"",i);return e[3]?r[3]=e[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const YS=(t,n,e)=>e===0?t:t/100;function tu(t,n){const e=n||255;return t>e?e:t<0?0:t}class jc{constructor(n){wt(this,"isValid",!0),wt(this,"r",0),wt(this,"g",0),wt(this,"b",0),wt(this,"a",1),wt(this,"_h",void 0),wt(this,"_s",void 0),wt(this,"_l",void 0),wt(this,"_v",void 0),wt(this,"_max",void 0),wt(this,"_min",void 0),wt(this,"_brightness",void 0);function e(r){return r[0]in n&&r[1]in n&&r[2]in n}if(n)if(typeof n=="string"){let i=function(a){return r.startsWith(a)};const r=n.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(n instanceof jc)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._s=n._s,this._l=n._l,this._v=n._v;else if(e("rgb"))this.r=tu(n.r),this.g=tu(n.g),this.b=tu(n.b),this.a=typeof n.a=="number"?tu(n.a,1):1;else if(e("hsl"))this.fromHsl(n);else if(e("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const e=this.toHsv();return e.h=n,this._c(e)}getLuminance(){function n(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const e=n(this.r),r=n(this.g),i=n(this.b);return .2126*e+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=er(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const n=this.getMax()-this.getMin();n===0?this._s=0:this._s=n/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(n=10){const e=this.getHue(),r=this.getSaturation();let i=this.getLightness()-n/100;return i<0&&(i=0),this._c({h:e,s:r,l:i,a:this.a})}lighten(n=10){const e=this.getHue(),r=this.getSaturation();let i=this.getLightness()+n/100;return i>1&&(i=1),this._c({h:e,s:r,l:i,a:this.a})}mix(n,e=50){const r=this._c(n),i=e/100,a=s=>(r[s]-this[s])*i+this[s],o={r:er(a("r")),g:er(a("g")),b:er(a("b")),a:er(a("a")*100)/100};return this._c(o)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const e=this._c(n),r=this.a+e.a*(1-this.a),i=a=>er((this[a]*this.a+e[a]*e.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const e=(this.r||0).toString(16);n+=e.length===2?e:"0"+e;const r=(this.g||0).toString(16);n+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(n+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=er(this.a*255).toString(16);n+=a.length===2?a:"0"+a}return n}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),e=er(this.getSaturation()*100),r=er(this.getLightness()*100);return this.a!==1?`hsla(${n},${e}%,${r}%,${this.a})`:`hsl(${n},${e}%,${r}%)`}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(n,e,r){const i=this.clone();return i[n]=tu(e,r),i}_c(n){return new this.constructor(n)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(n){const e=n.replace("#","");function r(i,a){return parseInt(e[i]+e[a||i],16)}e.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=e[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=e[6]?r(6,7)/255:1)}fromHsl({h:n,s:e,l:r,a:i}){if(this._h=n%360,this._s=e,this._l=r,this.a=typeof i=="number"?i:1,e<=0){const d=er(r*255);this.r=d,this.g=d,this.b=d}let a=0,o=0,s=0;const c=n/60,l=(1-Math.abs(2*r-1))*e,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);const f=r-l/2;this.r=er((a+f)*255),this.g=er((o+f)*255),this.b=er((s+f)*255)}fromHsv({h:n,s:e,v:r,a:i}){this._h=n%360,this._s=e,this._v=r,this.a=typeof i=="number"?i:1;const a=er(r*255);if(this.r=a,this.g=a,this.b=a,e<=0)return;const o=n/60,s=Math.floor(o),c=o-s,l=er(r*(1-e)*255),u=er(r*(1-e*c)*255),f=er(r*(1-e*(1-c))*255);switch(s){case 0:this.g=f,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=f;break;case 3:this.r=l,this.g=u;break;case 4:this.r=f,this.g=l;break;case 5:default:this.g=l,this.b=u;break}}fromHsvString(n){const e=py(n,YS);this.fromHsv({h:e[0],s:e[1],v:e[2],a:e[3]})}fromHslString(n){const e=py(n,YS);this.fromHsl({h:e[0],s:e[1],l:e[2],a:e[3]})}fromRgbString(n){const e=py(n,(r,i)=>i.includes("%")?er(r/100*255):r);this.r=e[0],this.g=e[1],this.b=e[2],this.a=e[3]}}var th=2,HS=.16,IG=.05,DG=.05,jG=.15,HP=5,VP=4,$G=[{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 VS(t,n,e){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=e?Math.round(t.h)-th*n:Math.round(t.h)+th*n:r=e?Math.round(t.h)+th*n:Math.round(t.h)-th*n,r<0?r+=360:r>=360&&(r-=360),r}function US(t,n,e){if(t.h===0&&t.s===0)return t.s;var r;return e?r=t.s-HS*n:n===VP?r=t.s+HS:r=t.s+IG*n,r>1&&(r=1),e&&n===HP&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function XS(t,n,e){var r;return e?r=t.v+DG*n:r=t.v-jG*n,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function FG(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[],r=new jc(t),i=r.toHsv(),a=HP;a>0;a-=1){var o=new jc({h:VS(i,a,!0),s:US(i,a,!0),v:XS(i,a,!0)});e.push(o)}e.push(r);for(var s=1;s<=VP;s+=1){var c=new jc({h:VS(i,s),s:US(i,s),v:XS(i,s)});e.push(c)}return n.theme==="dark"?$G.map(function(l){var u=l.index,f=l.amount;return new jc(n.backgroundColor||"#141414").mix(e[u],f).toHexString()}):e.map(function(l){return l.toHexString()})}var K2t={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},qm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];qm.primary=qm[5];var Km=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Km.primary=Km[5];var Zm=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Zm.primary=Zm[5];var Qm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qm.primary=Qm[5];var Jm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Jm.primary=Jm[5];var t1=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];t1.primary=t1[5];var e1=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];e1.primary=e1[5];var n1=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];n1.primary=n1[5];var Op=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Op.primary=Op[5];var r1=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];r1.primary=r1[5];var i1=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];i1.primary=i1[5];var a1=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];a1.primary=a1[5];var o1=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];o1.primary=o1[5];var Z2t={red:qm,volcano:Km,orange:Zm,gold:Qm,yellow:Jm,lime:t1,green:e1,cyan:n1,blue:Op,geekblue:r1,purple:i1,magenta:a1,grey:o1},vy={exports:{}};/*!
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vt(t,n){return bG(t)||xG(t,n)||ex(t,n)||wG()}function no(t){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},no(t)}function _G(t,n){if(no(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var r=e.call(t,n);if(no(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function $P(t){var n=_G(t,"string");return no(n)=="symbol"?n:n+""}function wt(t,n,e){return(n=$P(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function BS(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,r)}return e}function Dt(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?BS(Object(e),!0).forEach(function(r){wt(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):BS(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function OG(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function SG(t,n){if(!t)return!1;if(t.contains)return t.contains(n);for(var e=n;e;){if(e===t)return!0;e=e.parentNode}return!1}var zS="data-rc-order",WS="data-rc-priority",EG="rc-util-key",Um=new Map;function FP(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.mark;return n?n.startsWith("data-")?n:"data-".concat(n):EG}function Vv(t){if(t.attachTo)return t.attachTo;var n=document.querySelector("head");return n||document.body}function kG(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function nx(t){return Array.from((Um.get(t)||t).children).filter(function(n){return n.tagName==="STYLE"})}function BP(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!OG())return null;var e=n.csp,r=n.prepend,i=n.priority,a=i===void 0?0:i,o=kG(r),s=o==="prependQueue",c=document.createElement("style");c.setAttribute(zS,o),s&&a&&c.setAttribute(WS,"".concat(a)),e!=null&&e.nonce&&(c.nonce=e==null?void 0:e.nonce),c.innerHTML=t;var l=Vv(n),u=l.firstChild;if(r){if(s){var f=(n.styles||nx(l)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(zS)))return!1;var h=Number(d.getAttribute(WS)||0);return a>=h});if(f.length)return l.insertBefore(c,f[f.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function zP(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=Vv(n);return(n.styles||nx(e)).find(function(r){return r.getAttribute(FP(n))===t})}function K2t(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=zP(t,n);if(e){var r=Vv(n);r.removeChild(e)}}function AG(t,n){var e=Um.get(t);if(!e||!SG(document,e)){var r=BP("",n),i=r.parentNode;Um.set(t,i),t.removeChild(r)}}function MG(t,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Vv(e),i=nx(r),a=Dt(Dt({},e),{},{styles:i});AG(r,a);var o=zP(n,a);if(o){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var l;o.nonce=(l=a.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var u=BP(t,a);return u.setAttribute(FP(a),n),u}function lo(t,n){if(t==null)return{};var e,r,i=vG(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}var Xm={},TG=function(n){};function PG(t,n){}function CG(t,n){}function LG(){Xm={}}function WP(t,n,e){!n&&!Xm[e]&&(t(!1,e),Xm[e]=!0)}function Uv(t,n){WP(PG,t,n)}function NG(t,n){WP(CG,t,n)}Uv.preMessage=TG;Uv.resetWarned=LG;Uv.noteOnce=NG;function ht(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function GS(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$P(r.key),r)}}function pt(t,n,e){return n&&GS(t.prototype,n),e&&GS(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function te(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Hm(t,n)}function rl(t){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rl(t)}function GP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GP=function(){return!!t})()}function RG(t,n){if(n&&(no(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pG(t)}var YP=NP({});const er=Math.round;function py(t,n){const e=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=e.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=n(r[i]||0,e[i]||"",i);return e[3]?r[3]=e[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const YS=(t,n,e)=>e===0?t:t/100;function tu(t,n){const e=n||255;return t>e?e:t<0?0:t}class jc{constructor(n){wt(this,"isValid",!0),wt(this,"r",0),wt(this,"g",0),wt(this,"b",0),wt(this,"a",1),wt(this,"_h",void 0),wt(this,"_s",void 0),wt(this,"_l",void 0),wt(this,"_v",void 0),wt(this,"_max",void 0),wt(this,"_min",void 0),wt(this,"_brightness",void 0);function e(r){return r[0]in n&&r[1]in n&&r[2]in n}if(n)if(typeof n=="string"){let i=function(a){return r.startsWith(a)};const r=n.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(n instanceof jc)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._s=n._s,this._l=n._l,this._v=n._v;else if(e("rgb"))this.r=tu(n.r),this.g=tu(n.g),this.b=tu(n.b),this.a=typeof n.a=="number"?tu(n.a,1):1;else if(e("hsl"))this.fromHsl(n);else if(e("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const e=this.toHsv();return e.h=n,this._c(e)}getLuminance(){function n(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const e=n(this.r),r=n(this.g),i=n(this.b);return .2126*e+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=er(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const n=this.getMax()-this.getMin();n===0?this._s=0:this._s=n/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(n=10){const e=this.getHue(),r=this.getSaturation();let i=this.getLightness()-n/100;return i<0&&(i=0),this._c({h:e,s:r,l:i,a:this.a})}lighten(n=10){const e=this.getHue(),r=this.getSaturation();let i=this.getLightness()+n/100;return i>1&&(i=1),this._c({h:e,s:r,l:i,a:this.a})}mix(n,e=50){const r=this._c(n),i=e/100,a=s=>(r[s]-this[s])*i+this[s],o={r:er(a("r")),g:er(a("g")),b:er(a("b")),a:er(a("a")*100)/100};return this._c(o)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const e=this._c(n),r=this.a+e.a*(1-this.a),i=a=>er((this[a]*this.a+e[a]*e.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const e=(this.r||0).toString(16);n+=e.length===2?e:"0"+e;const r=(this.g||0).toString(16);n+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(n+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=er(this.a*255).toString(16);n+=a.length===2?a:"0"+a}return n}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),e=er(this.getSaturation()*100),r=er(this.getLightness()*100);return this.a!==1?`hsla(${n},${e}%,${r}%,${this.a})`:`hsl(${n},${e}%,${r}%)`}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(n,e,r){const i=this.clone();return i[n]=tu(e,r),i}_c(n){return new this.constructor(n)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(n){const e=n.replace("#","");function r(i,a){return parseInt(e[i]+e[a||i],16)}e.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=e[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=e[6]?r(6,7)/255:1)}fromHsl({h:n,s:e,l:r,a:i}){if(this._h=n%360,this._s=e,this._l=r,this.a=typeof i=="number"?i:1,e<=0){const d=er(r*255);this.r=d,this.g=d,this.b=d}let a=0,o=0,s=0;const c=n/60,l=(1-Math.abs(2*r-1))*e,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);const f=r-l/2;this.r=er((a+f)*255),this.g=er((o+f)*255),this.b=er((s+f)*255)}fromHsv({h:n,s:e,v:r,a:i}){this._h=n%360,this._s=e,this._v=r,this.a=typeof i=="number"?i:1;const a=er(r*255);if(this.r=a,this.g=a,this.b=a,e<=0)return;const o=n/60,s=Math.floor(o),c=o-s,l=er(r*(1-e)*255),u=er(r*(1-e*c)*255),f=er(r*(1-e*(1-c))*255);switch(s){case 0:this.g=f,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=f;break;case 3:this.r=l,this.g=u;break;case 4:this.r=f,this.g=l;break;case 5:default:this.g=l,this.b=u;break}}fromHsvString(n){const e=py(n,YS);this.fromHsv({h:e[0],s:e[1],v:e[2],a:e[3]})}fromHslString(n){const e=py(n,YS);this.fromHsl({h:e[0],s:e[1],l:e[2],a:e[3]})}fromRgbString(n){const e=py(n,(r,i)=>i.includes("%")?er(r/100*255):r);this.r=e[0],this.g=e[1],this.b=e[2],this.a=e[3]}}var th=2,HS=.16,IG=.05,DG=.05,jG=.15,HP=5,VP=4,$G=[{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 VS(t,n,e){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=e?Math.round(t.h)-th*n:Math.round(t.h)+th*n:r=e?Math.round(t.h)+th*n:Math.round(t.h)-th*n,r<0?r+=360:r>=360&&(r-=360),r}function US(t,n,e){if(t.h===0&&t.s===0)return t.s;var r;return e?r=t.s-HS*n:n===VP?r=t.s+HS:r=t.s+IG*n,r>1&&(r=1),e&&n===HP&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function XS(t,n,e){var r;return e?r=t.v+DG*n:r=t.v-jG*n,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function FG(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[],r=new jc(t),i=r.toHsv(),a=HP;a>0;a-=1){var o=new jc({h:VS(i,a,!0),s:US(i,a,!0),v:XS(i,a,!0)});e.push(o)}e.push(r);for(var s=1;s<=VP;s+=1){var c=new jc({h:VS(i,s),s:US(i,s),v:XS(i,s)});e.push(c)}return n.theme==="dark"?$G.map(function(l){var u=l.index,f=l.amount;return new jc(n.backgroundColor||"#141414").mix(e[u],f).toHexString()}):e.map(function(l){return l.toHexString()})}var Z2t={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},qm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];qm.primary=qm[5];var Km=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Km.primary=Km[5];var Zm=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Zm.primary=Zm[5];var Qm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qm.primary=Qm[5];var Jm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Jm.primary=Jm[5];var t1=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];t1.primary=t1[5];var e1=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];e1.primary=e1[5];var n1=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];n1.primary=n1[5];var Op=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Op.primary=Op[5];var r1=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];r1.primary=r1[5];var i1=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];i1.primary=i1[5];var a1=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];a1.primary=a1[5];var o1=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];o1.primary=o1[5];var Q2t={red:qm,volcano:Km,orange:Zm,gold:Qm,yellow:Jm,lime:t1,green:e1,cyan:n1,blue:Op,geekblue:r1,purple:i1,magenta:a1,grey:o1},vy={exports:{}};/*!
|
|
20
19
|
Copyright (c) 2018 Jed Watson.
|
|
21
20
|
Licensed under the MIT License (MIT), see
|
|
22
21
|
http://jedwatson.github.io/classnames
|
|
@@ -236,7 +235,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
236
235
|
`)}function c(f){return f.map(l).join(`
|
|
237
236
|
`)}function l(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?Byt(f):n.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:c,formatRow:l,formatValue:u}}function Wyt(t){for(var n in t){var e=t[n].trim(),r,i;if(!e)e=null;else if(e==="true")e=!0;else if(e==="false")e=!1;else if(e==="NaN")e=NaN;else if(!isNaN(r=+e))e=r;else if(i=e.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))Gyt&&i[4]&&!i[7]&&(e=e.replace(/-/g,"/").replace(/T/," ")),e=new Date(e);else continue;t[n]=e}return t}const Gyt=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var Yyt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,n||[])).next())})};const RD=t=>{const{value:n,format:e=n.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>Yyt(void 0,void 0,void 0,function*(){const a=yield fetch(n);if(e==="csv"){const o=yield a.text();return zyt(r).parse(o,i?Wyt:Us)}if(e==="json")return yield a.json();throw new Error(`Unknown format: ${e}.`)})};RD.props={};function Hyt(t){return!t||Object.keys(t).length===0}const ID=t=>{const{fields:n,key:e="key",value:r="value"}=t;return i=>Hyt(n)?i:i.flatMap(a=>n.map(o=>Object.assign(Object.assign({},a),{[e]:o,[r]:a[o]})))};ID.props={};function Vyt(t){return t!=null&&!Number.isNaN(t)}const DD=t=>{const{callback:n=Vyt}=t;return e=>e.filter(n)};DD.props={};const jD=t=>{const{callback:n}=t;return e=>Array.isArray(e)?[...e].sort(n):e};jD.props={};function Uyt(t,n=[]){return n.reduce((e,r)=>(r in t&&(e[r]=t[r]),e),{})}const $D=t=>{const{fields:n}=t;return e=>e.map(r=>Uyt(r,n))};$D.props={};function Xyt(t){return Object.keys(t).length===0}const FD=t=>n=>{if(!t||Xyt(t))return n;const e=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return n.map(e)};FD.props={};function qyt(t,n){return t.map(e=>{if(Array.isArray(e)){const[r,i=n]=e;return[r,i]}return[e,n]})}const BD=t=>{const{fields:n=[]}=t,e=qyt(n,!0);return r=>{const i=(a,o)=>e.reduce((s,[c,l=!0])=>s!==0?s:l?a[c]<o[c]?-1:+(a[c]!==o[c]):a[c]>o[c]?-1:+(a[c]!==o[c]),0);return[...r].sort(i)}};BD.props={};const zD=t=>{const{value:n}=t;return()=>n};zD.props={};const WD=t=>{const{callback:n=Us}=t;return e=>n(e)};WD.props={};const GD=t=>{const{callback:n=Us}=t;return e=>Array.isArray(e)?e.map(n):e};GD.props={};var Kyt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,n||[])).next())})};function Zyt(t,n){return{set(e,r,i){if(n[e]===void 0)return this;const a=r?r.call(null,n[e]):n[e];return i?i.call(null,a):typeof t[e]=="function"?t[e](a):t[e]=a,this},setAsync(e,r,i){return Kyt(this,void 0,void 0,function*(){if(n[e]===void 0)return this;const a=r?yield r.call(null,n[e]):n[e];return i?i.call(null,a):typeof t[e]=="function"?t[e](a):t[e]=a,this})}}}const Cm=Math.PI/180,Cu=64,mp=2048;function Qyt(t){return t.text}function Jyt(){return"serif"}function cP(){return"normal"}function tmt(t){return t.value}function emt(){return~~(Math.random()*2)*90}function nmt(){return 1}function rmt(){}function imt(t,n,e,r){if(n.sprite)return;const i=t.context,a=t.ratio;i.clearRect(0,0,(Cu<<5)/a,mp/a);let o=0,s=0,c=0;const l=e.length;for(--r;++r<l;){n=e[r],i.save(),i.font=n.style+" "+n.weight+" "+~~((n.size+1)/a)+"px "+n.font;let d=i.measureText(n.text+"m").width*a,h=n.size<<1;if(n.rotate){const p=Math.sin(n.rotate*Cm),g=Math.cos(n.rotate*Cm),y=d*g,m=d*p,x=h*g,w=h*p;d=Math.max(Math.abs(y+w),Math.abs(y-w))+31>>5<<5,h=~~Math.max(Math.abs(m+x),Math.abs(m-x))}else d=d+31>>5<<5;if(h>c&&(c=h),o+d>=Cu<<5&&(o=0,s+=c,c=0),s+h>=mp)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),n.rotate&&i.rotate(n.rotate*Cm),i.fillText(n.text,0,0),n.padding&&(i.lineWidth=2*n.padding,i.strokeText(n.text,0,0)),i.restore(),n.width=d,n.height=h,n.xoff=o,n.yoff=s,n.x1=d>>1,n.y1=h>>1,n.x0=-n.x1,n.y0=-n.y1,n.hasText=!0,o+=d}const u=i.getImageData(0,0,(Cu<<5)/a,mp/a).data,f=[];for(;--r>=0;){if(n=e[r],!n.hasText)continue;const d=n.width,h=d>>5;let p=n.y1-n.y0;for(let m=0;m<p*h;m++)f[m]=0;if(o=n.xoff,o==null)return;s=n.yoff;let g=0,y=-1;for(let m=0;m<p;m++){for(let x=0;x<d;x++){const w=h*m+(x>>5),_=u[(s+m)*(Cu<<5)+(o+x)<<2]?1<<31-x%32:0;f[w]|=_,g|=_}g?y=m:(n.y0++,p--,m--,s++)}n.y1=n.y0+y,n.sprite=f.slice(0,(n.y1-n.y0)*h)}}function amt(t,n,e){e>>=5;const r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=a&127,s=32-o,c=t.y1-t.y0;let l=(t.y+t.y0)*e+(a>>5),u;for(let f=0;f<c;f++){u=0;for(let d=0;d<=i;d++)if((u<<s|(d<i?(u=r[f*i+d])>>>o:0))&n[l+d])return!0;l+=e}return!1}function omt(t,n){const e=t[0],r=t[1];n.x+n.x0<e.x&&(e.x=n.x+n.x0),n.y+n.y0<e.y&&(e.y=n.y+n.y0),n.x+n.x1>r.x&&(r.x=n.x+n.x1),n.y+n.y1>r.y&&(r.y=n.y+n.y1)}function smt(t,n){return t.x+t.x1>n[0].x&&t.x+t.x0<n[1].x&&t.y+t.y1>n[0].y&&t.y+t.y0<n[1].y}function YD(t){const n=t[0]/t[1];return function(e){return[n*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function cmt(t){const e=4*t[0]/t[1];let r=0,i=0;return function(a){const o=a<0?-1:1;switch(Math.sqrt(1+4*o*a)-o&3){case 0:r+=e;break;case 1:i+=4;break;case 2:r-=e;break;default:i-=4;break}return[r,i]}}function lP(t){const n=[];let e=-1;for(;++e<t;)n[e]=0;return n}function lmt(){return document.createElement("canvas")}function Ga(t){return typeof t=="function"?t:function(){return t}}const umt={archimedean:YD,rectangular:cmt};function fmt(){let t=[256,256],n=Qyt,e=Jyt,r=tmt,i=cP,a=emt,o=nmt,s=YD,c=Math.random,l=rmt,u=[],f=null,d=1/0,h=lmt;const p=cP,g={};g.start=function(){const[x,w]=t,_=y(h()),O=g.board?g.board:lP((t[0]>>5)*t[1]),S=u.length,E=[],A=u.map(function(L,C,R){return L.text=n.call(this,L,C,R),L.font=e.call(this,L,C,R),L.style=p.call(this,L,C,R),L.weight=i.call(this,L,C,R),L.rotate=a.call(this,L,C,R),L.size=~~r.call(this,L,C,R),L.padding=o.call(this,L,C,R),L}).sort(function(L,C){return C.size-L.size});let M=-1,T=g.board?[{x:0,y:0},{x,y:w}]:void 0;f&&clearInterval(f),f=setInterval(P,0),P();function P(){const L=Date.now();for(;Date.now()-L<d&&++M<S;){const C=A[M];C.x=x*(c()+.5)>>1,C.y=w*(c()+.5)>>1,imt(_,C,A,M),C.hasText&&m(O,C,T)&&(l.call(null,"word",{cloud:g,word:C}),E.push(C),T?g.hasImage||omt(T,C):T=[{x:C.x+C.x0,y:C.y+C.y0},{x:C.x+C.x1,y:C.y+C.y1}],C.x-=t[0]>>1,C.y-=t[1]>>1)}g._tags=E,g._bounds=T,M>=S&&(g.stop(),l.call(null,"end",{cloud:g,words:E,bounds:T}))}return g},g.stop=function(){return f&&(clearInterval(f),f=null),g};function y(x){x.width=x.height=1;const w=Math.sqrt(x.getContext("2d").getImageData(0,0,1,1).data.length>>2);x.width=(Cu<<5)/w,x.height=mp/w;const _=x.getContext("2d");return _.fillStyle=_.strokeStyle="red",_.textAlign="center",_.textBaseline="middle",{context:_,ratio:w}}function m(x,w,_){const O=w.x,S=w.y,E=Math.sqrt(t[0]*t[0]+t[1]*t[1]),A=s(t),M=c()<.5?1:-1;let T,P=-M,L,C;for(;(T=A(P+=M))&&(L=~~T[0],C=~~T[1],!(Math.min(Math.abs(L),Math.abs(C))>=E));)if(w.x=O+L,w.y=S+C,!(w.x+w.x0<0||w.y+w.y0<0||w.x+w.x1>t[0]||w.y+w.y1>t[1])&&(!_||!amt(w,x,t[0]))&&(!_||smt(w,_))){const R=w.sprite,D=w.width>>5,F=t[0]>>5,j=w.x-(D<<4),I=j&127,$=32-I,z=w.y1-w.y0;let Y,H=(w.y+w.y0)*F+(j>>5);for(let U=0;U<z;U++){Y=0;for(let Z=0;Z<=D;Z++)x[H+Z]|=Y<<$|(Z<D?(Y=R[U*D+Z])>>>I:0);H+=F}return delete w.sprite,!0}return!1}return g.createMask=x=>{const w=document.createElement("canvas"),[_,O]=t;if(!_||!O)return;const S=_>>5,E=lP((_>>5)*O);w.width=_,w.height=O;const A=w.getContext("2d");A.drawImage(x,0,0,x.width,x.height,0,0,_,O);const M=A.getImageData(0,0,_,O).data;for(let T=0;T<O;T++)for(let P=0;P<_;P++){const L=S*T+(P>>5),C=T*_+P<<2,D=M[C]>=250&&M[C+1]>=250&&M[C+2]>=250?1<<31-P%32:0;E[L]|=D}g.board=E,g.hasImage=!0},g.timeInterval=function(x){d=x??1/0},g.words=function(x){u=x},g.size=function(x=[]){t=[+x[0],+x[1]]},g.text=function(x){n=Ga(x)},g.font=function(x){e=Ga(x)},g.fontWeight=function(x){i=Ga(x)},g.rotate=function(x){a=Ga(x)},g.canvas=function(x){h=Ga(x)},g.spiral=function(x){s=umt[x]||x},g.fontSize=function(x){r=Ga(x)},g.padding=function(x){o=Ga(x)},g.random=function(x){c=Ga(x)},g.on=function(x){l=Ga(x)},g}var dmt=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,n||[])).next())})},hmt=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const pmt={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return(~~(Math.random()*6)-3)*30}};function vmt(t){return new Promise((n,e)=>{if(t instanceof HTMLImageElement){n(t);return}if(typeof t=="string"){const r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>n(r),r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),e()};return}e()})}function gmt(t,n){if(typeof t=="function")return t;if(Array.isArray(t)){const[e,r]=t;if(!n)return()=>(r+e)/2;const[i,a]=n;return a===i?()=>(r+e)/2:({value:o})=>(r-e)/(a-i)*(o-i)+e}return()=>t}const HD=(t,n)=>e=>dmt(void 0,void 0,void 0,function*(){const r=Object.assign({},pmt,t,{canvas:n.createCanvas}),i=fmt();yield Zyt(i,r).set("fontSize",x=>{const w=e.map(_=>_.value);return gmt(x,[ri(w),Re(w)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").set("canvas").setAsync("imageMask",vmt,i.createMask),i.words([...e]);const a=i.start(),[o,s]=r.size,c=[{x:0,y:0},{x:o,y:s}],{_bounds:l=c,_tags:u,hasImage:f}=a,d=u.map(x=>{var{x:w,y:_,font:O}=x,S=hmt(x,["x","y","font"]);return Object.assign(Object.assign({},S),{x:w+o/2,y:_+s/2,fontFamily:O})}),[{x:h,y:p},{x:g,y}]=l,m={text:"",value:0,opacity:0,fontSize:0};return d.push(Object.assign(Object.assign({},m),{x:f?0:h,y:f?0:p}),Object.assign(Object.assign({},m),{x:f?o:g,y:f?s:y})),d});HD.props={};function uP(t){return typeof t=="string"?n=>n[t]:t}const VD=t=>{const{join:n,on:e,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=e,c=uP(s),l=uP(o),u=vx(n,([f])=>f,f=>c(f));return f=>f.map(d=>{const h=u.get(l(d));return Object.assign(Object.assign({},d),r.reduce((p,g,y)=>(p[i[y]]=h?h[g]:a,p),{}))})};VD.props={};const UD=t=>{const{start:n,end:e}=t;return r=>r.slice(n,e)};UD.props={};var Lm={exports:{}},Nm={exports:{}},fP;function ymt(){return fP||(fP=1,(function(t){var n=t.exports;t.exports.isNumber=function(e){return typeof e=="number"},t.exports.findMin=function(e){if(e.length===0)return 1/0;for(var r=e[0],i=1;i<e.length;i++)r=Math.min(r,e[i]);return r},t.exports.findMax=function(e){if(e.length===0)return-1/0;for(var r=e[0],i=1;i<e.length;i++)r=Math.max(r,e[i]);return r},t.exports.findMinMulti=function(e){for(var r=n.findMin(e[0]),i=1;i<e.length;i++)r=Math.min(r,n.findMin(e[i]));return r},t.exports.findMaxMulti=function(e){for(var r=n.findMax(e[0]),i=1;i<e.length;i++)r=Math.max(r,n.findMax(e[i]));return r},t.exports.inside=function(e,r,i){return e<=i&&i<=r}})(Nm)),Nm.exports}var dP;function mmt(){return dP||(dP=1,(function(t){var n=50,e=2,r=Math.log(2),i=t.exports,a=ymt();function o(c){return 1-Math.abs(c)}t.exports.getUnifiedMinMax=function(c,l){return i.getUnifiedMinMaxMulti([c],l)},t.exports.getUnifiedMinMaxMulti=function(c,l){l=l||{};var u=!1,f=!1,d=a.isNumber(l.width)?l.width:e,h=a.isNumber(l.size)?l.size:n,p=a.isNumber(l.min)?l.min:(u=!0,a.findMinMulti(c)),g=a.isNumber(l.max)?l.max:(f=!0,a.findMaxMulti(c)),y=g-p,m=y/(h-1);return u&&(p=p-2*d*m),f&&(g=g+2*d*m),{min:p,max:g}},t.exports.create=function(c,l){if(l=l||{},!c||c.length===0)return[];var u=a.isNumber(l.size)?l.size:n,f=a.isNumber(l.width)?l.width:e,d=i.getUnifiedMinMax(c,{size:u,width:f,min:l.min,max:l.max}),h=d.min,p=d.max,g=p-h,y=g/(u-1);if(g===0)return[{x:h,y:1}];for(var m=[],x=0;x<u;x++)m.push({x:h+x*y,y:0});var w=function(P){return Math.floor((P-h)/y)},_=s(o,f),O=_[f],S=_[f-1]-_[f-2],E=0;c.forEach(function(P){var L=w(P);if(!(L+f<0||L-f>=m.length)){var C=Math.max(L-f,0),R=L,D=Math.min(L+f,m.length-1),F=C-(L-f),j=L+f-D,I=_[-f-1+F]||0,$=_[-f-1+j]||0,z=O/(O-I-$);F>0&&(E+=z*(F-1)*S);var Y=Math.max(0,L-f+1);a.inside(0,m.length-1,Y)&&(m[Y].y+=z*1*S),a.inside(0,m.length-1,R+1)&&(m[R+1].y-=z*2*S),a.inside(0,m.length-1,D+1)&&(m[D+1].y+=z*1*S)}});var A=E,M=0,T=0;return m.forEach(function(P){M+=P.y,A+=M,P.y=A,T+=A}),T>0&&m.forEach(function(P){P.y/=T}),m};function s(c,l){for(var u={},f=0,d=-l;d<=l;d++)f+=c(d/l),u[d]=f;return u}t.exports.getExpectedValueFromPdf=function(c){if(!(!c||c.length===0)){var l=0;return c.forEach(function(u){l+=u.x*u.y}),l}},t.exports.getXWithLeftTailArea=function(c,l){if(!(!c||c.length===0)){for(var u=0,f=0,d=0;d<c.length&&(f=d,u+=c[d].y,!(u>=l));d++);return c[f].x}},t.exports.getPerplexity=function(c){if(!(!c||c.length===0)){var l=0;return c.forEach(function(u){var f=Math.log(u.y);isFinite(f)&&(l+=u.y*f)}),l=-l/r,Math.pow(2,l)}}})(Lm)),Lm.exports}var bmt=mmt();const xmt=Hv(bmt),XD=t=>{const{field:n,groupBy:e,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(Ve(u,d=>e.map(h=>d[h]).join("-")).values()).map(d=>{const h=xmt.create(d.map(y=>y[n]),{min:i,max:a,size:o,width:s}),p=h.map(y=>y.x),g=h.map(y=>y.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:g})})};XD.props={};function wmt(t,n,e,r){r=r||{};const i=r.maxIterations||100,a=r.tolerance||1e-10,o=t(n),s=t(e);let c=e-n;if(o*s>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(s===0)return e;for(let l=0;l<i;++l){c/=2;const u=n+c,f=t(u);if(f*o>=0&&(n=u),Math.abs(c)<a||f===0)return u}return n+c}function Db(t){const n=new Array(t);for(let e=0;e<t;++e)n[e]=0;return n}function hP(t,n){return Db(t).map(()=>Db(n))}function tl(t,n){let e=0;for(let r=0;r<t.length;++r)e+=t[r]*n[r];return e}function jb(t){return Math.sqrt(tl(t,t))}function $b(t,n,e){for(let r=0;r<n.length;++r)t[r]=n[r]*e}function qa(t,n,e,r,i){for(let a=0;a<t.length;++a)t[a]=n*e[a]+r*i[a]}function _mt(t,n,e){e=e||{};const r=e.maxIterations||n.length*200,i=e.nonZeroDelta||1.05,a=e.zeroDelta||.001,o=e.minErrorDelta||1e-6,s=e.minErrorDelta||1e-5,c=e.rho!==void 0?e.rho:1,l=e.chi!==void 0?e.chi:2,u=e.psi!==void 0?e.psi:-.5,f=e.sigma!==void 0?e.sigma:.5;let d;const h=n.length,p=new Array(h+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let O=0;O<h;++O){const S=n.slice();S[O]=S[O]?S[O]*i:a,p[O+1]=S,p[O+1].fx=t(S),p[O+1].id=O+1}function g(O){for(let S=0;S<O.length;S++)p[h][S]=O[S];p[h].fx=O.fx}const y=(O,S)=>O.fx-S.fx,m=n.slice(),x=n.slice(),w=n.slice(),_=n.slice();for(let O=0;O<r;++O){if(p.sort(y),e.history){const E=p.map(A=>{const M=A.slice();return M.fx=A.fx,M.id=A.id,M});E.sort((A,M)=>A.id-M.id),e.history.push({x:p[0].slice(),fx:p[0].fx,simplex:E})}d=0;for(let E=0;E<h;++E)d=Math.max(d,Math.abs(p[0][E]-p[1][E]));if(Math.abs(p[0].fx-p[h].fx)<o&&d<s)break;for(let E=0;E<h;++E){m[E]=0;for(let A=0;A<h;++A)m[E]+=p[A][E];m[E]/=h}const S=p[h];if(qa(x,1+c,m,-c,S),x.fx=t(x),x.fx<p[0].fx)qa(_,1+l,m,-l,S),_.fx=t(_),_.fx<x.fx?g(_):g(x);else if(x.fx>=p[h-1].fx){let E=!1;if(x.fx>S.fx?(qa(w,1+u,m,-u,S),w.fx=t(w),w.fx<S.fx?g(w):E=!0):(qa(w,1-u*c,m,u*c,S),w.fx=t(w),w.fx<x.fx?g(w):E=!0),E){if(f>=1)break;for(let A=1;A<p.length;++A)qa(p[A],1-f,p[0],f,p[A]),p[A].fx=t(p[A])}}else g(x)}return p.sort(y),{fx:p[0].fx,x:p[0]}}function Omt(t,n,e,r,i,a,o){const s=e.fx,c=tl(e.fxprime,n);let l=s,u=s,f=c,d=0;i=i||1,a=a||1e-6,o=o||.1;function h(p,g,y){for(let m=0;m<16;++m)if(i=(p+g)/2,qa(r.x,1,e.x,i,n),l=r.fx=t(r.x,r.fxprime),f=tl(r.fxprime,n),l>s+a*i*c||l>=y)g=i;else{if(Math.abs(f)<=-o*c)return i;f*(g-p)>=0&&(g=p),p=i,y=l}return 0}for(let p=0;p<10;++p){if(qa(r.x,1,e.x,i,n),l=r.fx=t(r.x,r.fxprime),f=tl(r.fxprime,n),l>s+a*i*c||p&&l>=u)return h(d,i,u);if(Math.abs(f)<=-o*c)return i;if(f>=0)return h(i,d,l);u=l,d=i,i*=2}return i}function Smt(t,n,e){let r={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const a=n.slice();let o,s=1;e=e||{};const c=e.maxIterations||n.length*20;r.fx=t(r.x,r.fxprime);const l=r.fxprime.slice();$b(l,r.fxprime,-1);for(let u=0;u<c;++u){if(s=Omt(t,l,r,i,s),e.history&&e.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),!s)$b(l,r.fxprime,-1);else{qa(a,1,i.fxprime,-1,r.fxprime);const f=tl(r.fxprime,r.fxprime),d=Math.max(0,tl(a,i.fxprime)/f);qa(l,d,l,-1,i.fxprime),o=r,r=i,i=o}if(jb(r.fxprime)<=1e-5)break}return e.history&&e.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),r}const qD=1e-10;function KD(t,n){const e=kmt(t),r=e.filter(function(c){return Emt(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=Amt(r);for(o=0;o<r.length;++o){const u=r[o];u.angle=Math.atan2(u.x-c.x,u.y-c.y)}r.sort(function(u,f){return f.angle-u.angle});let l=r[r.length-1];for(o=0;o<r.length;++o){const u=r[o];a+=(l.x+u.x)*(u.y-l.y);const f={x:(u.x+l.x)/2,y:(u.y+l.y)/2};let d=null;for(let h=0;h<u.parentIndex.length;++h)if(l.parentIndex.indexOf(u.parentIndex[h])>-1){const p=t[u.parentIndex[h]],g=Math.atan2(u.x-p.x,u.y-p.y),y=Math.atan2(l.x-p.x,l.y-p.y);let m=y-g;m<0&&(m+=2*Math.PI);const x=y-m/2;let w=Rf(f,{x:p.x+p.radius*Math.sin(x),y:p.y+p.radius*Math.cos(x)});w>p.radius*2&&(w=p.radius*2),(d===null||d.width>w)&&(d={circle:p,width:w,p1:u,p2:l})}d!==null&&(s.push(d),i+=Fb(d.circle.radius,d.width),l=u)}}else{let c=t[0];for(o=1;o<t.length;++o)t[o].radius<c.radius&&(c=t[o]);let l=!1;for(o=0;o<t.length;++o)if(Rf(t[o],c)>Math.abs(c.radius-t[o].radius)){l=!0;break}l?i=a=0:(i=c.radius*c.radius*Math.PI,s.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-qD,y:c.y+c.radius},width:c.radius*2}))}return a/=2,n&&(n.area=i+a,n.arcArea=i,n.polygonArea=a,n.arcs=s,n.innerPoints=r,n.intersectionPoints=e),i+a}function Emt(t,n){for(let e=0;e<n.length;++e)if(Rf(t,n[e])>n[e].radius+qD)return!1;return!0}function kmt(t){const n=[];for(let e=0;e<t.length;++e)for(let r=e+1;r<t.length;++r){const i=QD(t[e],t[r]);for(let a=0;a<i.length;++a){const o=i[a];o.parentIndex=[e,r],n.push(o)}}return n}function Fb(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function Rf(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function ZD(t,n,e){if(e>=t+n)return 0;if(e<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const r=t-(e*e-n*n+t*t)/(2*e),i=n-(e*e-t*t+n*n)/(2*e);return Fb(t,r)+Fb(n,i)}function QD(t,n){const e=Rf(t,n),r=t.radius,i=n.radius;if(e>=r+i||e<=Math.abs(r-i))return[];const a=(r*r-i*i+e*e)/(2*e),o=Math.sqrt(r*r-a*a),s=t.x+a*(n.x-t.x)/e,c=t.y+a*(n.y-t.y)/e,l=-(n.y-t.y)*(o/e),u=-(n.x-t.x)*(o/e);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function Amt(t){const n={x:0,y:0};for(let e=0;e<t.length;++e)n.x+=t[e].x,n.y+=t[e].y;return n.x/=t.length,n.y/=t.length,n}function Mmt(t,n){n=n||{},n.maxIterations=n.maxIterations||500;const e=n.initialLayout||Lmt,r=n.lossFunction||s_;t=Tmt(t);const i=e(t,n),a=[],o=[];let s;for(s in i)i.hasOwnProperty(s)&&(a.push(i[s].x),a.push(i[s].y),o.push(s));const l=_mt(function(u){const f={};for(let d=0;d<o.length;++d){const h=o[d];f[h]={x:u[2*d],y:u[2*d+1],radius:i[h].radius}}return r(f,t)},a,n).x;for(let u=0;u<o.length;++u)s=o[u],i[s].x=l[2*u],i[s].y=l[2*u+1];return i}const JD=1e-10;function Bb(t,n,e){return Math.min(t,n)*Math.min(t,n)*Math.PI<=e+JD?Math.abs(t-n):wmt(function(r){return ZD(t,n,r)-e},0,t+n)}function Tmt(t){t=t.slice();const n=[],e={};let r,i,a,o;for(r=0;r<t.length;++r){const s=t[r];s.sets.length==1?n.push(s.sets[0]):s.sets.length==2&&(a=s.sets[0],o=s.sets[1],e[[a,o]]=!0,e[[o,a]]=!0)}for(n.sort((s,c)=>s>c?1:-1),r=0;r<n.length;++r)for(a=n[r],i=r+1;i<n.length;++i)o=n[i],[a,o]in e||t.push({sets:[a,o],size:0});return t}function Pmt(t,n,e){const r=hP(n.length,n.length),i=hP(n.length,n.length);return t.filter(function(a){return a.sets.length==2}).map(function(a){const o=e[a.sets[0]],s=e[a.sets[1]],c=Math.sqrt(n[o].size/Math.PI),l=Math.sqrt(n[s].size/Math.PI),u=Bb(c,l,a.size);r[o][s]=r[s][o]=u;let f=0;a.size+1e-10>=Math.min(n[o].size,n[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}function Cmt(t,n,e,r){let i=0,a;for(a=0;a<n.length;++a)n[a]=0;for(a=0;a<e.length;++a){const o=t[2*a],s=t[2*a+1];for(let c=a+1;c<e.length;++c){const l=t[2*c],u=t[2*c+1],f=e[a][c],d=r[a][c],h=(l-o)*(l-o)+(u-s)*(u-s),p=Math.sqrt(h),g=h-f*f;d>0&&p<=f||d<0&&p>=f||(i+=2*g*g,n[2*a]+=4*g*(o-l),n[2*a+1]+=4*g*(s-u),n[2*c]+=4*g*(l-o),n[2*c+1]+=4*g*(u-s))}}return i}function Lmt(t,n){let e=Rmt(t,n);const r=n.lossFunction||s_;if(t.length>=8){const i=Nmt(t,n),a=r(i,t),o=r(e,t);a+1e-8<o&&(e=i)}return e}function Nmt(t,n){n=n||{};const e=n.restarts||10,r=[],i={};let a;for(a=0;a<t.length;++a){const g=t[a];g.sets.length==1&&(i[g.sets[0]]=r.length,r.push(g))}const o=Pmt(t,r,i);let s=o.distances;const c=o.constraints,l=jb(s.map(jb))/s.length;s=s.map(function(g){return g.map(function(y){return y/l})});const u=function(g,y){return Cmt(g,y,s,c)};let f,d;for(a=0;a<e;++a){const g=Db(s.length*2).map(Math.random);d=Smt(u,g,n),(!f||d.fx<f.fx)&&(f=d)}const h=f.x,p={};for(a=0;a<r.length;++a){const g=r[a];p[g.sets[0]]={x:h[2*a]*l,y:h[2*a+1]*l,radius:Math.sqrt(g.size/Math.PI)}}if(n.history)for(a=0;a<n.history.length;++a)$b(n.history[a].x,l);return p}function Rmt(t,n){const e=n&&n.lossFunction?n.lossFunction:s_,r={},i={};let a;for(let f=0;f<t.length;++f){const d=t[f];d.sets.length==1&&(a=d.sets[0],r[a]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:d.size,radius:Math.sqrt(d.size/Math.PI)},i[a]=[])}t=t.filter(function(f){return f.sets.length==2});for(let f=0;f<t.length;++f){const d=t[f];let h=d.hasOwnProperty("weight")?d.weight:1;const p=d.sets[0],g=d.sets[1];d.size+JD>=Math.min(r[p].size,r[g].size)&&(h=0),i[p].push({set:g,size:d.size,weight:h}),i[g].push({set:p,size:d.size,weight:h})}const o=[];for(a in i)if(i.hasOwnProperty(a)){let f=0;for(let d=0;d<i[a].length;++d)f+=i[a][d].size*i[a][d].weight;o.push({set:a,size:f})}function s(f,d){return d.size-f.size}o.sort(s);const c={};function l(f){return f.set in c}function u(f,d){r[d].x=f.x,r[d].y=f.y,c[d]=!0}u({x:0,y:0},o[0].set);for(let f=1;f<o.length;++f){const d=o[f].set,h=i[d].filter(l);if(a=r[d],h.sort(s),h.length===0)throw"ERROR: missing pairwise overlap information";const p=[];for(let m=0;m<h.length;++m){const x=r[h[m].set],w=Bb(a.radius,x.radius,h[m].size);p.push({x:x.x+w,y:x.y}),p.push({x:x.x-w,y:x.y}),p.push({y:x.y+w,x:x.x}),p.push({y:x.y-w,x:x.x});for(let _=m+1;_<h.length;++_){const O=r[h[_].set],S=Bb(a.radius,O.radius,h[_].size),E=QD({x:x.x,y:x.y,radius:w},{x:O.x,y:O.y,radius:S});for(let A=0;A<E.length;++A)p.push(E[A])}}let g=1e50,y=p[0];for(let m=0;m<p.length;++m){r[d].x=p[m].x,r[d].y=p[m].y;const x=e(r,t);x<g&&(g=x,y=p[m])}u(y,d)}return r}function s_(t,n){let e=0;function r(i){return i.map(function(a){return t[a]})}for(let i=0;i<n.length;++i){const a=n[i];let o;if(a.sets.length==1)continue;if(a.sets.length==2){const c=t[a.sets[0]],l=t[a.sets[1]];o=ZD(c.radius,l.radius,Rf(c,l))}else o=KD(r(a.sets));const s=a.hasOwnProperty("weight")?a.weight:1;e+=s*(o-a.size)*(o-a.size)}return e}function Imt(t){const n=function(e){const r=Math.max.apply(null,t.map(function(a){return a[e]+a.radius})),i=Math.min.apply(null,t.map(function(a){return a[e]-a.radius}));return{max:r,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dmt(t,n,e,r){const i=[],a=[];for(const g in t)t.hasOwnProperty(g)&&(a.push(g),i.push(t[g]));n-=2*r,e-=2*r;const o=Imt(i),s=o.xRange,c=o.yRange;if(s.max==s.min||c.max==c.min)return console.log("not scaling solution: zero size detected"),t;const l=n/(s.max-s.min),u=e/(c.max-c.min),f=Math.min(u,l),d=(n-(s.max-s.min)*f)/2,h=(e-(c.max-c.min)*f)/2,p={};for(let g=0;g<i.length;++g){const y=i[g];p[a[g]]={radius:f*y.radius,x:r+d+(y.x-s.min)*f,y:r+h+(y.y-c.min)*f}}return p}function jmt(t,n,e){const r=[],i=t-e,a=n;return r.push("M",i,a),r.push("A",e,e,0,1,0,i+2*e,a),r.push("A",e,e,0,1,0,i,a),r.join(" ")}function $mt(t){const n={};KD(t,n);const e=n.arcs;if(e.length===0)return"M 0 0";if(e.length==1){const r=e[0].circle;return jmt(r.x,r.y,r.radius)}else{const r=[`
|
|
238
237
|
M`,e[0].p2.x,e[0].p2.y];for(let i=0;i<e.length;++i){const a=e[i],o=a.circle.radius,s=a.width>o;r.push(`
|
|
239
|
-
A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const tj=t=>{const{sets:n="sets",size:e="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[n],size:f[e],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Mmt(c);let u;return c.map(f=>{const d=f[n],h=({width:p,height:g})=>{u=u||Dmt(l,p,g,i);const y=d.map(x=>u[x]);let m=$mt(y);return/[zZ]$/.test(m)||(m+=" Z"),m};return Object.assign(Object.assign({},f),{[o]:h})})}};tj.props={};const ej=()=>t=>(console.log("G2 data section:",t),t);ej.props={};function Fmt(t,n){if(n<0||n>1)throw new Error("alpha must be between 0 and 1.");if(t.length===0)return[];let e=t[0];const r=[];for(const i of t){if(i==null){r.push(i),console.warn("EMA\uFF1AThe value is null or undefined",t);continue}e==null&&(e=i);const a=e*n+(1-n)*i;r.push(a),e=a}return r}const nj=t=>{const{field:n="y",alpha:e=.6,as:r=n}=t;return i=>{const a=i.map(s=>s[n]),o=Fmt(a,e);return i.map((s,c)=>Object.assign(Object.assign({},s),{[r]:o[c]}))}};nj.props={};const rj=.01;function If(t){const{min:n,max:e}=t;return[[n[0],n[1]],[e[0],e[1]]]}function pP(t,n,e=rj){const[r,i]=t,[a,o]=n;return r>=a[0]-e&&r<=o[0]+e&&i>=a[1]-e&&i<=o[1]+e}function ij(t,n,e=rj){const[r,i]=t;return!(pP(r,n,e)&&pP(i,n,e))}function Bmt(t,n){const[e,r]=t,[i,a]=n;return e[0]<a[0]&&r[0]>i[0]&&e[1]<a[1]&&r[1]>i[1]}const zmt=t=>{const{priority:n}=t;return e=>{const r=[];return n&&e.sort(n),e.forEach(i=>{V0(i);const a=i.getLocalBounds();r.some(s=>Bmt(If(a),If(s.getLocalBounds())))?Gw(i):r.push(i)}),e}};function Wmt([t,n],[e,r]){return r>t&&n>e}function ep(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function Gmt(t){const n=t.cloneNode(!0),e=n.getElementById("connector");e&&n.removeChild(e);const{min:r,max:i}=n.getRenderBounds();return n.destroy(),{min:r,max:i}}const Ymt=t=>{const{maxIterations:n=10,maxError:e=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=ep(),[c,l]=ep(),[u,f]=ep(),[d,h]=ep();for(const p of i){const{min:g,max:y}=Gmt(p),[m,x]=g,[w,_]=y;s(p,x),l(p,x),f(p,_-x),h(p,[m,w])}for(let p=0;p<n;p++){i.sort((y,m)=>wn(c(y),c(m)));let g=0;for(let y=0;y<a-1;y++){const m=i[y];let x=y+1,w;for(;(w=i[x])&&!Wmt(d(m),d(w));)x+=1;if(w){const _=c(m),O=u(m),S=c(w),E=S-(_+O);if(E<r){const A=(r-E)/2;g=Math.max(g,A),l(m,_-A),l(w,S+A)}}}if(g<e)break}for(const p of i)p.style.y+=c(p)-o(p);return i}};function aj(t){return typeof t=="object"?t:zo(t)}function Rm(t){let n=t/255;return n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),n}function vP(t,n,e){return .2126*Rm(t)+.7152*Rm(n)+.0722*Rm(e)}function oj(t,n){if(!t||!n||t===n)return 1;const{r:e,g:r,b:i}=t,{r:a,g:o,b:s}=n,c=vP(e,r,i),l=vP(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function sj(t,n){const e=Ml(n,r=>oj(t,aj(r)));return n[e]}const Hmt=t=>{const{threshold:n=4.5,palette:e=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;oj(o,a)<n&&i.attr("fill",sj(a,e))}),r)},Vmt=()=>t=>(t.forEach(n=>{V0(n);const e=n.attr("bounds"),r=n.getLocalBounds();ij(If(r),e)&&Gw(n)}),t),Umt=(t,n)=>{const[[e,r],[i,a]]=n,[[o,s],[c,l]]=t;let u=0,f=0;return o<e?u=e-o:c>i&&(u=i-c),s<r?f=r-s:l>a&&(f=a-l),[u,f]},Xmt=(t,n)=>!t||!t.min||!t.max?!n||!n.min||!n.max?{min:[0,0],max:[0,0]}:n:!n||!n.min||!n.max?t:{min:[Math.min(t.min[0],n.min[0]),Math.min(t.min[1],n.min[1])],max:[Math.max(t.max[0],n.max[0]),Math.max(t.max[1],n.max[1])]},qmt=(t={})=>(n,{canvas:e,layout:r})=>{const{bounds:i="view",offsetX:a=0,offsetY:o=0}=t,c=(()=>{if(i==="main"){const{x:l=0,y:u=0,width:f=0,height:d=0,marginLeft:h=0,marginRight:p=0,marginTop:g=0,marginBottom:y=0,paddingLeft:m=0,paddingRight:x=0,paddingTop:w=0,paddingBottom:_=0}=r;return[[l+h+m+a,u+g+w+o],[l+f-p-x-a,u+d-y-_-o]]}else{const{x:l=0,y:u=0,width:f=0,height:d=0}=r;return[[l+a,u+o],[l+f-a,u+d-o]]}})();return n.forEach(l=>{V0(l);const{max:u,min:f}=Xmt(l.getRenderBounds(),l.getBounds());if(!u||!f||u[0]===0&&u[1]===0&&f[0]===0&&f[1]===0)return;const[d,h]=u,[p,g]=f,y=Umt([[p,g],[d,h]],c);l.style.connector&&l.style.connectorPoints&&(l.style.connectorPoints[0][0]-=y[0],l.style.connectorPoints[0][1]-=y[1]),l.style.x+=y[0],l.style.y+=y[1]}),n};function gP(t){var n;const e=t.getAnimations();if(!e||e.length===0)return Lf(t);const r=t.cloneNode(!0);r.style.visibility="hidden",e.forEach(a=>{const o=a.effect.getKeyframes();o&&o.length>0&&r.attr(o[o.length-1])}),(n=t.parentNode)===null||n===void 0||n.appendChild(r);const i=Lf(r);return r.destroy(),i}const Kmt=t=>{const{palette:n=["#000","#fff"],threshold:e=2}=t;return r=>(r.forEach(i=>{var a,o;const s=i.attr("dependentElement"),c=(o=(a=i.attributes.fill)!==null&&a!==void 0?a:i.parsedStyle.fill)!==null&&o!==void 0?o:"#fff",l=If(gP(i)),u=If(gP(s));if(ij(l,u,e)){const f=sj(aj(c),n);i.attr("stroke",f)}else i.removeAttribute("stroke")}),r)};function Zmt(){return{"data.fetch":RD,"data.inline":zD,"data.sortBy":BD,"data.sort":jD,"data.filter":DD,"data.pick":$D,"data.rename":FD,"data.fold":ID,"data.slice":UD,"data.custom":WD,"data.map":GD,"data.join":VD,"data.kde":XD,"data.log":ej,"data.wordCloud":HD,"data.ema":nj,"transform.stackY":B3,"transform.binX":g5,"transform.bin":Nx,"transform.dodgeX":K3,"transform.jitter":J3,"transform.jitterX":t5,"transform.jitterY":e5,"transform.symmetryY":n5,"transform.diffY":r5,"transform.stackEnter":Z3,"transform.normalizeY":Q3,"transform.select":s0,"transform.selectX":i5,"transform.selectY":a5,"transform.groupX":o5,"transform.groupY":s5,"transform.groupColor":c5,"transform.group":Xf,"transform.sortX":l5,"transform.sortY":f5,"transform.sortColor":u5,"transform.flexX":d5,"transform.pack":v5,"transform.sample":y5,"transform.filter":m5,"coordinate.cartesian":rC,"coordinate.polar":jf,"coordinate.transpose":ix,"coordinate.theta":oC,"coordinate.parallel":ox,"coordinate.fisheye":cC,"coordinate.radial":ax,"coordinate.radar":lC,"coordinate.helix":aC,"encode.constant":uC,"encode.field":dC,"encode.transform":fC,"encode.column":hC,"mark.interval":jR,"mark.rect":$R,"mark.line":FR,"mark.point":BR,"mark.text":zR,"mark.cell":WR,"mark.area":GR,"mark.link":U2,"mark.image":YR,"mark.polygon":HR,"mark.box":VR,"mark.vector":UR,"mark.lineX":qR,"mark.lineY":XR,"mark.connector":KR,"mark.range":ZR,"mark.rangeX":QR,"mark.rangeY":JR,"mark.path":i4,"mark.shape":w4,"mark.density":j4,"mark.heatmap":$4,"mark.wordCloud":tw,"mark.beeswarm":B4,"palette.category10":G4,"palette.category20":Y4,"scale.linear":V4,"scale.ordinal":U4,"scale.band":H4,"scale.identity":X4,"scale.point":q4,"scale.time":K4,"scale.log":Z4,"scale.pow":Q4,"scale.sqrt":nI,"scale.threshold":J4,"scale.quantile":tI,"scale.quantize":eI,"scale.sequential":rI,"scale.constant":iI,"theme.classic":aI,"theme.classicDark":sI,"theme.academy":cI,"theme.light":aw,"theme.dark":oI,"component.axisX":bI,"component.axisY":xI,"component.legendCategory":Xw,"component.legendContinuous":os,"component.legends":Z8,"component.title":V8,"component.sliderX":U8,"component.sliderY":X8,"component.scrollbarX":q8,"component.scrollbarY":K8,"animation.scaleInX":Kw,"animation.scaleOutX":K0t,"animation.scaleInY":Q8,"animation.scaleOutY":Z0t,"animation.waveIn":rD,"animation.fadeIn":J8,"animation.fadeOut":tD,"animation.zoomIn":cgt,"animation.zoomOut":lgt,"animation.pathIn":iD,"animation.morphing":nD,"animation.growInX":aD,"animation.growInY":oD,"interaction.elementHighlight":X0,"interaction.elementHighlightByX":sD,"interaction.elementHighlightByColor":cD,"interaction.elementHoverScale":lD,"interaction.elementSelect":q0,"interaction.elementSelectByX":uD,"interaction.elementSelectByColor":fD,"interaction.fisheye":wgt,"interaction.chartIndex":dD,"interaction.tooltip":wD,"interaction.legendFilter":E0t,"interaction.legendHighlight":Igt,"interaction.brushHighlight":K0,"interaction.brushXHighlight":zgt,"interaction.brushYHighlight":Wgt,"interaction.brushAxisHighlight":Zgt,"interaction.brushFilter":a_,"interaction.brushXFilter":eyt,"interaction.brushYFilter":nyt,"interaction.sliderFilter":PD,"interaction.sliderWheel":CD,"interaction.scrollbarFilter":myt,"interaction.poptip":LD,"interaction.treemapDrillDown":kyt,"interaction.drillDown":Cyt,"interaction.elementPointMove":jyt,"composition.spaceLayer":YI,"composition.spaceFlex":HI,"composition.facetRect":KI,"composition.repeatMatrix":Qut,"composition.facetCircle":ift,"composition.timingKeyframe":ZI,"labelTransform.overlapHide":zmt,"labelTransform.overlapDodgeY":Ymt,"labelTransform.overflowHide":Vmt,"labelTransform.contrastReverse":Hmt,"labelTransform.overflowStroke":Kmt,"labelTransform.exceedAdjust":qmt}}function Qmt(){return{"composition.geoView":k6,"composition.geoPath":QI}}function Jmt(){return{"data.arc":q2,"data.cluster":N4,"mark.forceGraph":C4,"mark.tree":I4,"mark.pack":y4,"mark.sankey":n4,"mark.chord":r4,"mark.treemap":g4,"mark.partition":W4}}function t1t(){return{"data.venn":tj,"mark.boxplot":x4,"mark.gauge":D4,"mark.wordCloud":tw,"mark.liquid":F4}}function cj(){return Object.assign(Object.assign(Object.assign(Object.assign({},Qmt()),Jmt()),t1t()),Zmt())}function e1t(t,n){class e extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:n}))}}return e}const lj={};function uj(t,n){t.startsWith("symbol.")?_tt(t.split(".").pop(),n):Object.assign(lj,{[t]:n})}const Rc=t=>t?parseInt(t):0;function n1t(t){const n=getComputedStyle(t),e=t.clientWidth||Rc(n.width),r=t.clientHeight||Rc(n.height),i=Rc(n.paddingLeft)+Rc(n.paddingRight),a=Rc(n.paddingTop)+Rc(n.paddingBottom);return{width:e-i,height:r-a}}function Im(t,n){const e=[t];for(;e.length;){const r=e.shift();n&&n(r);const i=r.children||[];for(const a of i)e.push(a)}}class c_{constructor(n={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=n}map(n=e=>e){const e=n(this.value);return this.value=e,this}attr(n,e){return arguments.length===1?this.value[n]:this.map(r=>(r[n]=e,r))}append(n){const e=new n({});return e.children=[],this.push(e),e}push(n){return n.parentNode=this,n.index=this.children.length,this.children.push(n),this}remove(){const n=this.parentNode;if(n){const{children:e}=n,r=e.findIndex(i=>i===this);e.splice(r,1)}return this}getNodeByKey(n){let e=null;return Im(this,i=>{n===i.attr("key")&&(e=i)}),e}getNodesByType(n){const e=[];return Im(this,i=>{n===i.type&&e.push(i)}),e}getNodeByType(n){let e=null;return Im(this,r=>{e||n===r.type&&(e=r)}),e}call(n,...e){return n(this.map(),...e),this}getRoot(){let n=this;for(;n&&n.parentNode;)n=n.parentNode;return n}}var fj=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const zb=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],dj="__remove__",hj="__callback__",yP=1,mP=1;function r1t(t){if(t===void 0){const n=document.createElement("div");return n[dj]=!0,n}return typeof t=="string"?document.getElementById(t):t}function i1t(t){const n=t.parentNode;n&&n.removeChild(t)}function a1t(t){if(t.type!==null)return t;const n=t.children[t.children.length-1];for(const e of zb)n.attr(e,t.attr(e));return n}function bP(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function Dm(t,n){const{width:e,height:r,autoFit:i,depth:a=0}=t;let o=640,s=480;if(i){const{width:c,height:l}=n1t(n);o=c||o,s=l||s}return o=e||o,s=r||s,{width:Math.max(Qe(o)?o:yP,yP),height:Math.max(Qe(s)?s:mP,mP),depth:a}}function o1t(t){const n=a1t(t),e=[n],r=new Map;for(r.set(n,bP(n));e.length;){const i=e.pop(),a=r.get(i),{children:o=[]}=i;for(const s of o)if(s.type===hj)a.children=s.value;else{const c=bP(s),{children:l=[]}=a;l.push(c),e.push(s),r.set(s,c),a.children=l}}return r.get(n)}function s1t(t,n){return typeof t=="function"?!0:new Set(Object.keys(n)).has(t)}function c1t(t,n){return typeof t!="function"&&new Set(Object.keys(n)).has(t)}function l1t(t,n,e,r,i){const{type:a}=t,{type:o=e||a}=n;if(c1t(o,i)){for(const s of zb)t.attr(s)!==void 0&&n[s]===void 0&&(n[s]=t.attr(s));return n}if(s1t(o,r)){const s={type:"view"},c=Object.assign({},n);for(const l of zb)c[l]!==void 0&&(s[l]=c[l],delete c[l]);return Object.assign(Object.assign({},s),{children:[c]})}return n}function u1t(t,n,e){if(typeof t=="function")return n.mark;const i=Object.assign(Object.assign({},n),e)[t];if(!i)throw new Error(`Unknown mark: ${t}.`);return i}function f1t(t,n,e){if(typeof t=="function"){const c=new c_;return c.value=t,c.type=hj,c}const{type:r,children:i}=t,a=fj(t,["type","children"]),o=u1t(r,n,e),s=new o;return s.value=a,s.type=r,s}function d1t(t,n){const{type:e,children:r}=n,i=fj(n,["type","children"]);t.type===e||e===void 0?N3(t.value,i):typeof e=="string"&&(t.type=e,t.value=i)}function h1t(t,n,e,r){if(!t)return;const i=[[t,n]];for(;i.length;){const[a,o]=i.shift(),s=f1t(o,e,r);Array.isArray(a.children)&&a.push(s);const{children:c}=o;if(Array.isArray(c))for(const l of c)i.push([s,l]);else typeof c=="function"&&i.push([s,c])}}function p1t(t,n,e,r,i){const a=l1t(t,n,e,r,i),o=[[null,t,a]];for(;o.length;){const[s,c,l]=o.shift();if(!c)h1t(s,l,r,i);else if(!l)c.remove();else{d1t(c,l);const{children:u}=l,{children:f}=c;if(Array.isArray(u)&&Array.isArray(f)){const d=Math.max(u.length,f.length);for(let h=0;h<d;h++){const p=u[h],g=f[h];o.push([c,g,p])}}else typeof u=="function"&&o.push([c,null,u])}}}function v1t(){let t,n;return[new Promise((r,i)=>{n=r,t=i}),n,t]}function g1t(t,n,{key:e=n}){t.prototype[n]=function(r){return arguments.length===0?this.attr(e):this.attr(e,r)}}function y1t(t,n,{key:e=n}){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,r);const i=[...this.attr(e)||[],r];return this.attr(e,i)}}function m1t(t,n,{key:e=n}){t.prototype[n]=function(r,i){if(arguments.length===0)return this.attr(e);if(arguments.length===1&&typeof r!="string")return this.attr(e,r);const a=this.attr(e)||{};return a[r]=arguments.length===1?!0:i,this.attr(e,a)}}function b1t(t,n,e){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,{items:r});if(ul(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(n,r);if(r===null||r===!1)return this.attr(n,r);const i=this.attr(n)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(n,i)}}function x1t(t,n,{ctor:e}){t.prototype[n]=function(r){const i=this.append(e);return n==="mark"&&(i.type=r),i}}function w1t(t,n,{ctor:e}){t.prototype[n]=function(){return this.type=null,this.append(e)}}function Nv(t){return n=>{for(const[e,r]of Object.entries(t)){const{type:i}=r;i==="value"?g1t(n,e,r):i==="array"?y1t(n,e,r):i==="object"?m1t(n,e,r):i==="node"?x1t(n,e,r):i==="container"?w1t(n,e,r):i==="mix"&&b1t(n,e)}return n}}function xP(t){return Object.fromEntries(Object.entries(t).map(([n,e])=>[n,{type:"node",ctor:e}]))}const pj={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},_1t=Object.assign(Object.assign({},pj),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),O1t=Object.assign(Object.assign({},pj),{labelTransform:{type:"array"}});var S1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Rv=class extends c_{changeData(n){var e;const r=this.getRoot();if(r)return this.attr("data",n),!((e=this.children)===null||e===void 0)&&e.length&&this.children.forEach(i=>{i.attr("data",n)}),r==null?void 0:r.render()}getView(){const n=this.getRoot(),{views:e}=n.getContext();if(e!=null&&e.length)return e.find(r=>r.key===this._key)}getScale(){var n;return(n=this.getView())===null||n===void 0?void 0:n.scale}getScaleByChannel(n){const e=this.getScale();if(e)return e[n]}getCoordinate(){var n;return(n=this.getView())===null||n===void 0?void 0:n.coordinate}getTheme(){var n;return(n=this.getView())===null||n===void 0?void 0:n.theme}getGroup(){const n=this._key;return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}show(){const n=this.getGroup();n&&!n.isVisible()&&V0(n)}hide(){const n=this.getGroup();n&&n.isVisible()&&Gw(n)}};Rv=S1t([Nv(O1t)],Rv);var E1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Wb=class extends c_{changeData(n){const e=this.getRoot();if(e)return this.attr("data",n),e==null?void 0:e.render()}getMark(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(!e)return;const{markState:r}=e,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(e)return e==null?void 0:e.scale}getScaleByChannel(n){var e,r;const i=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[n]}getGroup(){const n=this.attr("key");return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}};Wb=E1t([Nv(_1t)],Wb);var k1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a},A1t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const M1t="G2_CHART_KEY";class T1t extends Rv{constructor(n){const{container:e,canvas:r,renderer:i,plugins:a,lib:o,createCanvas:s}=n,c=A1t(n,["container","canvas","renderer","plugins","lib","createCanvas"]);super(c,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailingClear=null,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=_C(()=>{this.forceFit()},300),this._renderer=i||new PI,this._plugins=a||[],this._container=r1t(e),this._emitter=new lw,this._context={library:Object.assign(Object.assign({},o),lj),emitter:this._emitter,canvas:r,createCanvas:s},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;const n=new Promise((a,o)=>Qvt(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[e,r,i]=v1t();return n.then(r).then(()=>{if(this._trailingClear){const a=this.options();this._trailingClear(),this._trailing&&this.options(a)}}).catch(i).then(()=>{this._trailingClear=null,this._renderTrailing()}),e}options(n){if(arguments.length===0)return o1t(this);const{type:e}=n;return e&&(this._previousDefinedType=e),p1t(this,n,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(n,e,r){return this._emitter.on(n,e,r),this}once(n,e){return this._emitter.once(n,e),this}emit(n,...e){return this._emitter.emit(n,...e),this}off(n,e){return this._emitter.off(n,e),this}clear(n=!0){if(this._rendering){this._trailingClear=()=>{this.clear(n)},this._reset();return}const e=this.options();this.emit(Me.BEFORE_CLEAR),this._reset(),DT(e,this._context,!1,n),this.emit(Me.AFTER_CLEAR)}destroy(){const n=this.options();this.emit(Me.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),DT(n,this._context,!0),this._container[dj]&&i1t(this._container),this.emit(Me.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:n,height:e}=Dm(this.options(),this._container);if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}changeSize(n,e){if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE),this.attr("width",n),this.attr("height",e);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}getDataByXY(n,e={}){const{shared:r=!1,series:i,facet:a=!1,startX:o=0,startY:s=0}=e,{canvas:c,views:l}=this._context,{document:u}=c,{x:f,y:d}=n,{coordinate:h,scale:p,markState:g,data:y,key:m}=l[0],x=u.getElementsByClassName(la),w=r?P=>P.__data__.x:P=>P,_=Ve(x,w),O=u.getElementsByClassName(rv)[0],S=Ii(O),E=P=>Array.from(P.values()).some(L=>{var C,R;return((C=L.interaction)===null||C===void 0?void 0:C.seriesTooltip)||((R=L.channels)===null||R===void 0?void 0:R.some(D=>D.name==="series"&&D.values!==void 0))}),A=ca(i,E(g)),M=P=>Wt(P,"__data__.data",null),T=P=>P.map(M);try{if(A&&E(g)&&!a){const{selectedData:R}=xD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,startX:o,startY:s}),D=y.get(`${m}-0`);return R.map(({index:F})=>D[F])}const P=bD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,shared:r});if(e0(P))return Ex(P,y.get(m));const L=w(P),C=_.get(L);return C?T(C):[]}catch{const L=c.document.elementFromPointSync(f,d);return L?M(L):[]}}_create(){const{library:n}=this._context,e=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(n).filter(e)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends Wb{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(n).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends Rv{constructor(){super({},o)}};return s=k1t([Nv(xP(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))Nv(xP(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const n=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([e])=>e.startsWith("margin")||e.startsWith("padding")||e.startsWith("inset")||n.includes(e))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const n=this._trailingResolve.bind(this);this._trailingResolve=null,n(this)}).catch(n=>{const e=this._trailingReject.bind(this);this._trailingReject=null,e(n)}))}_createResolve(n){return()=>{this._rendering=!1,n(this)}}_createReject(n){return e=>{this._rendering=!1,n(e)}}_computedOptions(){const n=this.options(),{key:e=M1t}=n,{width:r,height:i,depth:a}=Dm(n,this._container);return this._width=r,this._height=i,this._key=e,Object.assign(Object.assign({key:this._key},n),{width:r,height:i,depth:a})}_createCanvas(){var n,e;const{width:r,height:i}=Dm(this.options(),this._container);this._plugins.push(new LI),this._plugins.forEach(o=>this._renderer.registerPlugin(o)),this._context.canvas=new kL({container:this._container,width:r,height:i,renderer:this._renderer});const a=(e=(n=this._context.canvas)===null||n===void 0?void 0:n.getContextService())===null||e===void 0?void 0:e.getDomElement();a&&(a.style.display="block")}_addToTrailing(){var n;return(n=this._trailingResolve)===null||n===void 0||n.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const n=this.options(),{autoFit:e}=n;if(this._hasBindAutoFit){e||this._unbindAutoFit();return}e&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}Object.assign({},cj());const P1t="modulepreload",C1t=function(t,n){return new URL(t,n).href},wP={},_P=function(n,e,r){let i=Promise.resolve();if(e&&e.length>0){let o=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=o(e.map(u=>{if(u=C1t(u,r),u in wP)return;wP[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const y=s[g];if(y.href===u&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":P1t,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return n().catch(a)})};var vj=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,n||[])).next())})},gj=function(t,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){e.label=l[1];break}if(l[0]===6&&e.label<a[1]){e.label=a[1],a=l;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(l);break}a[2]&&e.ops.pop(),e.trys.pop();continue}l=n.call(t,e)}catch(u){l=[6,u],i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},jm="__rc_react_root__",l_,Gb,OP=!1;function L1t(){return vj(this,void 0,void 0,function(){var t,n,e,r,i;return gj(this,function(a){switch(a.label){case 0:if(OP)return[2];OP=!0,a.label=1;case 1:return a.trys.push([1,6,,7]),t=Gr.version||"",n=parseInt(t.split(".")[0],10),n>=18?[4,_P(()=>import("./client-ClH9pVlh.js").then(o=>o.c),__vite__mapDeps([0,1]),import.meta.url)]:[3,3];case 2:return e=a.sent(),l_=e.createRoot,[3,5];case 3:return[4,_P(()=>import("react-dom"),[],import.meta.url)];case 4:r=a.sent(),Gb=r.render,r.unmountComponentAtNode,a.label=5;case 5:return[3,7];case 6:return i=a.sent(),console.warn("[react-render] Failed to load ReactDOM API:",i),[3,7];case 7:return[2]}})})}function N1t(t,n){n[jm]||(n[jm]=l_(n)),n[jm].render(t)}function R1t(t,n){if(!Gb)throw new Error("ReactDOM.render not available");Gb(t,n)}function I1t(t,n){return vj(this,void 0,void 0,function(){return gj(this,function(e){switch(e.label){case 0:return[4,L1t()];case 1:return e.sent(),l_?N1t(t,n):R1t(t,n),[2]}})})}var bp=new Map;typeof document<"u"&&bp.set("tooltip",document.createElement("div"));var D1t=function(t,n){n===void 0&&(n=!1);var e=null;if(n)e=bp.get("tooltip");else if(e=document.createElement("div"),t!=null&&t.key){var r=bp.get(t.key);r?e=r:bp.set(t.key,e)}return I1t(t,e),e},Yb=function(){return Yb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Yb.apply(this,arguments)},j1t=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return"loading";var e="";n&&Object.keys(n).forEach(function(o){e+="".concat(o,": ").concat(n[o],`;
|
|
238
|
+
A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const tj=t=>{const{sets:n="sets",size:e="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[n],size:f[e],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Mmt(c);let u;return c.map(f=>{const d=f[n],h=({width:p,height:g})=>{u=u||Dmt(l,p,g,i);const y=d.map(x=>u[x]);let m=$mt(y);return/[zZ]$/.test(m)||(m+=" Z"),m};return Object.assign(Object.assign({},f),{[o]:h})})}};tj.props={};const ej=()=>t=>(console.log("G2 data section:",t),t);ej.props={};function Fmt(t,n){if(n<0||n>1)throw new Error("alpha must be between 0 and 1.");if(t.length===0)return[];let e=t[0];const r=[];for(const i of t){if(i==null){r.push(i),console.warn("EMA\uFF1AThe value is null or undefined",t);continue}e==null&&(e=i);const a=e*n+(1-n)*i;r.push(a),e=a}return r}const nj=t=>{const{field:n="y",alpha:e=.6,as:r=n}=t;return i=>{const a=i.map(s=>s[n]),o=Fmt(a,e);return i.map((s,c)=>Object.assign(Object.assign({},s),{[r]:o[c]}))}};nj.props={};const rj=.01;function If(t){const{min:n,max:e}=t;return[[n[0],n[1]],[e[0],e[1]]]}function pP(t,n,e=rj){const[r,i]=t,[a,o]=n;return r>=a[0]-e&&r<=o[0]+e&&i>=a[1]-e&&i<=o[1]+e}function ij(t,n,e=rj){const[r,i]=t;return!(pP(r,n,e)&&pP(i,n,e))}function Bmt(t,n){const[e,r]=t,[i,a]=n;return e[0]<a[0]&&r[0]>i[0]&&e[1]<a[1]&&r[1]>i[1]}const zmt=t=>{const{priority:n}=t;return e=>{const r=[];return n&&e.sort(n),e.forEach(i=>{V0(i);const a=i.getLocalBounds();r.some(s=>Bmt(If(a),If(s.getLocalBounds())))?Gw(i):r.push(i)}),e}};function Wmt([t,n],[e,r]){return r>t&&n>e}function ep(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function Gmt(t){const n=t.cloneNode(!0),e=n.getElementById("connector");e&&n.removeChild(e);const{min:r,max:i}=n.getRenderBounds();return n.destroy(),{min:r,max:i}}const Ymt=t=>{const{maxIterations:n=10,maxError:e=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=ep(),[c,l]=ep(),[u,f]=ep(),[d,h]=ep();for(const p of i){const{min:g,max:y}=Gmt(p),[m,x]=g,[w,_]=y;s(p,x),l(p,x),f(p,_-x),h(p,[m,w])}for(let p=0;p<n;p++){i.sort((y,m)=>wn(c(y),c(m)));let g=0;for(let y=0;y<a-1;y++){const m=i[y];let x=y+1,w;for(;(w=i[x])&&!Wmt(d(m),d(w));)x+=1;if(w){const _=c(m),O=u(m),S=c(w),E=S-(_+O);if(E<r){const A=(r-E)/2;g=Math.max(g,A),l(m,_-A),l(w,S+A)}}}if(g<e)break}for(const p of i)p.style.y+=c(p)-o(p);return i}};function aj(t){return typeof t=="object"?t:zo(t)}function Rm(t){let n=t/255;return n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),n}function vP(t,n,e){return .2126*Rm(t)+.7152*Rm(n)+.0722*Rm(e)}function oj(t,n){if(!t||!n||t===n)return 1;const{r:e,g:r,b:i}=t,{r:a,g:o,b:s}=n,c=vP(e,r,i),l=vP(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function sj(t,n){const e=Ml(n,r=>oj(t,aj(r)));return n[e]}const Hmt=t=>{const{threshold:n=4.5,palette:e=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;oj(o,a)<n&&i.attr("fill",sj(a,e))}),r)},Vmt=()=>t=>(t.forEach(n=>{V0(n);const e=n.attr("bounds"),r=n.getLocalBounds();ij(If(r),e)&&Gw(n)}),t),Umt=(t,n)=>{const[[e,r],[i,a]]=n,[[o,s],[c,l]]=t;let u=0,f=0;return o<e?u=e-o:c>i&&(u=i-c),s<r?f=r-s:l>a&&(f=a-l),[u,f]},Xmt=(t,n)=>!t||!t.min||!t.max?!n||!n.min||!n.max?{min:[0,0],max:[0,0]}:n:!n||!n.min||!n.max?t:{min:[Math.min(t.min[0],n.min[0]),Math.min(t.min[1],n.min[1])],max:[Math.max(t.max[0],n.max[0]),Math.max(t.max[1],n.max[1])]},qmt=(t={})=>(n,{canvas:e,layout:r})=>{const{bounds:i="view",offsetX:a=0,offsetY:o=0}=t,c=(()=>{if(i==="main"){const{x:l=0,y:u=0,width:f=0,height:d=0,marginLeft:h=0,marginRight:p=0,marginTop:g=0,marginBottom:y=0,paddingLeft:m=0,paddingRight:x=0,paddingTop:w=0,paddingBottom:_=0}=r;return[[l+h+m+a,u+g+w+o],[l+f-p-x-a,u+d-y-_-o]]}else{const{x:l=0,y:u=0,width:f=0,height:d=0}=r;return[[l+a,u+o],[l+f-a,u+d-o]]}})();return n.forEach(l=>{V0(l);const{max:u,min:f}=Xmt(l.getRenderBounds(),l.getBounds());if(!u||!f||u[0]===0&&u[1]===0&&f[0]===0&&f[1]===0)return;const[d,h]=u,[p,g]=f,y=Umt([[p,g],[d,h]],c);l.style.connector&&l.style.connectorPoints&&(l.style.connectorPoints[0][0]-=y[0],l.style.connectorPoints[0][1]-=y[1]),l.style.x+=y[0],l.style.y+=y[1]}),n};function gP(t){var n;const e=t.getAnimations();if(!e||e.length===0)return Lf(t);const r=t.cloneNode(!0);r.style.visibility="hidden",e.forEach(a=>{const o=a.effect.getKeyframes();o&&o.length>0&&r.attr(o[o.length-1])}),(n=t.parentNode)===null||n===void 0||n.appendChild(r);const i=Lf(r);return r.destroy(),i}const Kmt=t=>{const{palette:n=["#000","#fff"],threshold:e=2}=t;return r=>(r.forEach(i=>{var a,o;const s=i.attr("dependentElement"),c=(o=(a=i.attributes.fill)!==null&&a!==void 0?a:i.parsedStyle.fill)!==null&&o!==void 0?o:"#fff",l=If(gP(i)),u=If(gP(s));if(ij(l,u,e)){const f=sj(aj(c),n);i.attr("stroke",f)}else i.removeAttribute("stroke")}),r)};function Zmt(){return{"data.fetch":RD,"data.inline":zD,"data.sortBy":BD,"data.sort":jD,"data.filter":DD,"data.pick":$D,"data.rename":FD,"data.fold":ID,"data.slice":UD,"data.custom":WD,"data.map":GD,"data.join":VD,"data.kde":XD,"data.log":ej,"data.wordCloud":HD,"data.ema":nj,"transform.stackY":B3,"transform.binX":g5,"transform.bin":Nx,"transform.dodgeX":K3,"transform.jitter":J3,"transform.jitterX":t5,"transform.jitterY":e5,"transform.symmetryY":n5,"transform.diffY":r5,"transform.stackEnter":Z3,"transform.normalizeY":Q3,"transform.select":s0,"transform.selectX":i5,"transform.selectY":a5,"transform.groupX":o5,"transform.groupY":s5,"transform.groupColor":c5,"transform.group":Xf,"transform.sortX":l5,"transform.sortY":f5,"transform.sortColor":u5,"transform.flexX":d5,"transform.pack":v5,"transform.sample":y5,"transform.filter":m5,"coordinate.cartesian":rC,"coordinate.polar":jf,"coordinate.transpose":ix,"coordinate.theta":oC,"coordinate.parallel":ox,"coordinate.fisheye":cC,"coordinate.radial":ax,"coordinate.radar":lC,"coordinate.helix":aC,"encode.constant":uC,"encode.field":dC,"encode.transform":fC,"encode.column":hC,"mark.interval":jR,"mark.rect":$R,"mark.line":FR,"mark.point":BR,"mark.text":zR,"mark.cell":WR,"mark.area":GR,"mark.link":U2,"mark.image":YR,"mark.polygon":HR,"mark.box":VR,"mark.vector":UR,"mark.lineX":qR,"mark.lineY":XR,"mark.connector":KR,"mark.range":ZR,"mark.rangeX":QR,"mark.rangeY":JR,"mark.path":i4,"mark.shape":w4,"mark.density":j4,"mark.heatmap":$4,"mark.wordCloud":tw,"mark.beeswarm":B4,"palette.category10":G4,"palette.category20":Y4,"scale.linear":V4,"scale.ordinal":U4,"scale.band":H4,"scale.identity":X4,"scale.point":q4,"scale.time":K4,"scale.log":Z4,"scale.pow":Q4,"scale.sqrt":nI,"scale.threshold":J4,"scale.quantile":tI,"scale.quantize":eI,"scale.sequential":rI,"scale.constant":iI,"theme.classic":aI,"theme.classicDark":sI,"theme.academy":cI,"theme.light":aw,"theme.dark":oI,"component.axisX":bI,"component.axisY":xI,"component.legendCategory":Xw,"component.legendContinuous":os,"component.legends":Z8,"component.title":V8,"component.sliderX":U8,"component.sliderY":X8,"component.scrollbarX":q8,"component.scrollbarY":K8,"animation.scaleInX":Kw,"animation.scaleOutX":K0t,"animation.scaleInY":Q8,"animation.scaleOutY":Z0t,"animation.waveIn":rD,"animation.fadeIn":J8,"animation.fadeOut":tD,"animation.zoomIn":cgt,"animation.zoomOut":lgt,"animation.pathIn":iD,"animation.morphing":nD,"animation.growInX":aD,"animation.growInY":oD,"interaction.elementHighlight":X0,"interaction.elementHighlightByX":sD,"interaction.elementHighlightByColor":cD,"interaction.elementHoverScale":lD,"interaction.elementSelect":q0,"interaction.elementSelectByX":uD,"interaction.elementSelectByColor":fD,"interaction.fisheye":wgt,"interaction.chartIndex":dD,"interaction.tooltip":wD,"interaction.legendFilter":E0t,"interaction.legendHighlight":Igt,"interaction.brushHighlight":K0,"interaction.brushXHighlight":zgt,"interaction.brushYHighlight":Wgt,"interaction.brushAxisHighlight":Zgt,"interaction.brushFilter":a_,"interaction.brushXFilter":eyt,"interaction.brushYFilter":nyt,"interaction.sliderFilter":PD,"interaction.sliderWheel":CD,"interaction.scrollbarFilter":myt,"interaction.poptip":LD,"interaction.treemapDrillDown":kyt,"interaction.drillDown":Cyt,"interaction.elementPointMove":jyt,"composition.spaceLayer":YI,"composition.spaceFlex":HI,"composition.facetRect":KI,"composition.repeatMatrix":Qut,"composition.facetCircle":ift,"composition.timingKeyframe":ZI,"labelTransform.overlapHide":zmt,"labelTransform.overlapDodgeY":Ymt,"labelTransform.overflowHide":Vmt,"labelTransform.contrastReverse":Hmt,"labelTransform.overflowStroke":Kmt,"labelTransform.exceedAdjust":qmt}}function Qmt(){return{"composition.geoView":k6,"composition.geoPath":QI}}function Jmt(){return{"data.arc":q2,"data.cluster":N4,"mark.forceGraph":C4,"mark.tree":I4,"mark.pack":y4,"mark.sankey":n4,"mark.chord":r4,"mark.treemap":g4,"mark.partition":W4}}function t1t(){return{"data.venn":tj,"mark.boxplot":x4,"mark.gauge":D4,"mark.wordCloud":tw,"mark.liquid":F4}}function cj(){return Object.assign(Object.assign(Object.assign(Object.assign({},Qmt()),Jmt()),t1t()),Zmt())}function e1t(t,n){class e extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:n}))}}return e}const lj={};function uj(t,n){t.startsWith("symbol.")?_tt(t.split(".").pop(),n):Object.assign(lj,{[t]:n})}const Rc=t=>t?parseInt(t):0;function n1t(t){const n=getComputedStyle(t),e=t.clientWidth||Rc(n.width),r=t.clientHeight||Rc(n.height),i=Rc(n.paddingLeft)+Rc(n.paddingRight),a=Rc(n.paddingTop)+Rc(n.paddingBottom);return{width:e-i,height:r-a}}function Im(t,n){const e=[t];for(;e.length;){const r=e.shift();n&&n(r);const i=r.children||[];for(const a of i)e.push(a)}}class c_{constructor(n={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=n}map(n=e=>e){const e=n(this.value);return this.value=e,this}attr(n,e){return arguments.length===1?this.value[n]:this.map(r=>(r[n]=e,r))}append(n){const e=new n({});return e.children=[],this.push(e),e}push(n){return n.parentNode=this,n.index=this.children.length,this.children.push(n),this}remove(){const n=this.parentNode;if(n){const{children:e}=n,r=e.findIndex(i=>i===this);e.splice(r,1)}return this}getNodeByKey(n){let e=null;return Im(this,i=>{n===i.attr("key")&&(e=i)}),e}getNodesByType(n){const e=[];return Im(this,i=>{n===i.type&&e.push(i)}),e}getNodeByType(n){let e=null;return Im(this,r=>{e||n===r.type&&(e=r)}),e}call(n,...e){return n(this.map(),...e),this}getRoot(){let n=this;for(;n&&n.parentNode;)n=n.parentNode;return n}}var fj=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const zb=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],dj="__remove__",hj="__callback__",yP=1,mP=1;function r1t(t){if(t===void 0){const n=document.createElement("div");return n[dj]=!0,n}return typeof t=="string"?document.getElementById(t):t}function i1t(t){const n=t.parentNode;n&&n.removeChild(t)}function a1t(t){if(t.type!==null)return t;const n=t.children[t.children.length-1];for(const e of zb)n.attr(e,t.attr(e));return n}function bP(t){return Object.assign(Object.assign({},t.value),{type:t.type})}function Dm(t,n){const{width:e,height:r,autoFit:i,depth:a=0}=t;let o=640,s=480;if(i){const{width:c,height:l}=n1t(n);o=c||o,s=l||s}return o=e||o,s=r||s,{width:Math.max(Qe(o)?o:yP,yP),height:Math.max(Qe(s)?s:mP,mP),depth:a}}function o1t(t){const n=a1t(t),e=[n],r=new Map;for(r.set(n,bP(n));e.length;){const i=e.pop(),a=r.get(i),{children:o=[]}=i;for(const s of o)if(s.type===hj)a.children=s.value;else{const c=bP(s),{children:l=[]}=a;l.push(c),e.push(s),r.set(s,c),a.children=l}}return r.get(n)}function s1t(t,n){return typeof t=="function"?!0:new Set(Object.keys(n)).has(t)}function c1t(t,n){return typeof t!="function"&&new Set(Object.keys(n)).has(t)}function l1t(t,n,e,r,i){const{type:a}=t,{type:o=e||a}=n;if(c1t(o,i)){for(const s of zb)t.attr(s)!==void 0&&n[s]===void 0&&(n[s]=t.attr(s));return n}if(s1t(o,r)){const s={type:"view"},c=Object.assign({},n);for(const l of zb)c[l]!==void 0&&(s[l]=c[l],delete c[l]);return Object.assign(Object.assign({},s),{children:[c]})}return n}function u1t(t,n,e){if(typeof t=="function")return n.mark;const i=Object.assign(Object.assign({},n),e)[t];if(!i)throw new Error(`Unknown mark: ${t}.`);return i}function f1t(t,n,e){if(typeof t=="function"){const c=new c_;return c.value=t,c.type=hj,c}const{type:r,children:i}=t,a=fj(t,["type","children"]),o=u1t(r,n,e),s=new o;return s.value=a,s.type=r,s}function d1t(t,n){const{type:e,children:r}=n,i=fj(n,["type","children"]);t.type===e||e===void 0?N3(t.value,i):typeof e=="string"&&(t.type=e,t.value=i)}function h1t(t,n,e,r){if(!t)return;const i=[[t,n]];for(;i.length;){const[a,o]=i.shift(),s=f1t(o,e,r);Array.isArray(a.children)&&a.push(s);const{children:c}=o;if(Array.isArray(c))for(const l of c)i.push([s,l]);else typeof c=="function"&&i.push([s,c])}}function p1t(t,n,e,r,i){const a=l1t(t,n,e,r,i),o=[[null,t,a]];for(;o.length;){const[s,c,l]=o.shift();if(!c)h1t(s,l,r,i);else if(!l)c.remove();else{d1t(c,l);const{children:u}=l,{children:f}=c;if(Array.isArray(u)&&Array.isArray(f)){const d=Math.max(u.length,f.length);for(let h=0;h<d;h++){const p=u[h],g=f[h];o.push([c,g,p])}}else typeof u=="function"&&o.push([c,null,u])}}}function v1t(){let t,n;return[new Promise((r,i)=>{n=r,t=i}),n,t]}function g1t(t,n,{key:e=n}){t.prototype[n]=function(r){return arguments.length===0?this.attr(e):this.attr(e,r)}}function y1t(t,n,{key:e=n}){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,r);const i=[...this.attr(e)||[],r];return this.attr(e,i)}}function m1t(t,n,{key:e=n}){t.prototype[n]=function(r,i){if(arguments.length===0)return this.attr(e);if(arguments.length===1&&typeof r!="string")return this.attr(e,r);const a=this.attr(e)||{};return a[r]=arguments.length===1?!0:i,this.attr(e,a)}}function b1t(t,n,e){t.prototype[n]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,{items:r});if(ul(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(n,r);if(r===null||r===!1)return this.attr(n,r);const i=this.attr(n)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(n,i)}}function x1t(t,n,{ctor:e}){t.prototype[n]=function(r){const i=this.append(e);return n==="mark"&&(i.type=r),i}}function w1t(t,n,{ctor:e}){t.prototype[n]=function(){return this.type=null,this.append(e)}}function Nv(t){return n=>{for(const[e,r]of Object.entries(t)){const{type:i}=r;i==="value"?g1t(n,e,r):i==="array"?y1t(n,e,r):i==="object"?m1t(n,e,r):i==="node"?x1t(n,e,r):i==="container"?w1t(n,e,r):i==="mix"&&b1t(n,e)}return n}}function xP(t){return Object.fromEntries(Object.entries(t).map(([n,e])=>[n,{type:"node",ctor:e}]))}const pj={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},_1t=Object.assign(Object.assign({},pj),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),O1t=Object.assign(Object.assign({},pj),{labelTransform:{type:"array"}});var S1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Rv=class extends c_{changeData(n){var e;const r=this.getRoot();if(r)return this.attr("data",n),!((e=this.children)===null||e===void 0)&&e.length&&this.children.forEach(i=>{i.attr("data",n)}),r==null?void 0:r.render()}getView(){const n=this.getRoot(),{views:e}=n.getContext();if(e!=null&&e.length)return e.find(r=>r.key===this._key)}getScale(){var n;return(n=this.getView())===null||n===void 0?void 0:n.scale}getScaleByChannel(n){const e=this.getScale();if(e)return e[n]}getCoordinate(){var n;return(n=this.getView())===null||n===void 0?void 0:n.coordinate}getTheme(){var n;return(n=this.getView())===null||n===void 0?void 0:n.theme}getGroup(){const n=this._key;return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}show(){const n=this.getGroup();n&&!n.isVisible()&&V0(n)}hide(){const n=this.getGroup();n&&n.isVisible()&&Gw(n)}};Rv=S1t([Nv(O1t)],Rv);var E1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a};let Wb=class extends c_{changeData(n){const e=this.getRoot();if(e)return this.attr("data",n),e==null?void 0:e.render()}getMark(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(!e)return;const{markState:r}=e,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var n;const e=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(e)return e==null?void 0:e.scale}getScaleByChannel(n){var e,r;const i=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[n]}getGroup(){const n=this.attr("key");return n?this.getRoot().getContext().canvas.getRoot().getElementById(n):void 0}};Wb=E1t([Nv(_1t)],Wb);var k1t=function(t,n,e,r){var i=arguments.length,a=i<3?n:r===null?r=Object.getOwnPropertyDescriptor(n,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a},A1t=function(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(e[r[i]]=t[r[i]]);return e};const M1t="G2_CHART_KEY";class T1t extends Rv{constructor(n){const{container:e,canvas:r,renderer:i,plugins:a,lib:o,createCanvas:s}=n,c=A1t(n,["container","canvas","renderer","plugins","lib","createCanvas"]);super(c,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailingClear=null,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=_C(()=>{this.forceFit()},300),this._renderer=i||new PI,this._plugins=a||[],this._container=r1t(e),this._emitter=new lw,this._context={library:Object.assign(Object.assign({},o),lj),emitter:this._emitter,canvas:r,createCanvas:s},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;const n=new Promise((a,o)=>Qvt(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[e,r,i]=v1t();return n.then(r).then(()=>{if(this._trailingClear){const a=this.options();this._trailingClear(),this._trailing&&this.options(a)}}).catch(i).then(()=>{this._trailingClear=null,this._renderTrailing()}),e}options(n){if(arguments.length===0)return o1t(this);const{type:e}=n;return e&&(this._previousDefinedType=e),p1t(this,n,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(n,e,r){return this._emitter.on(n,e,r),this}once(n,e){return this._emitter.once(n,e),this}emit(n,...e){return this._emitter.emit(n,...e),this}off(n,e){return this._emitter.off(n,e),this}clear(n=!0){if(this._rendering){this._trailingClear=()=>{this.clear(n)},this._reset();return}const e=this.options();this.emit(Me.BEFORE_CLEAR),this._reset(),DT(e,this._context,!1,n),this.emit(Me.AFTER_CLEAR)}destroy(){const n=this.options();this.emit(Me.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),DT(n,this._context,!0),this._container[dj]&&i1t(this._container),this.emit(Me.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:n,height:e}=Dm(this.options(),this._container);if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}changeSize(n,e){if(n===this._width&&e===this._height)return Promise.resolve(this);this.emit(Me.BEFORE_CHANGE_SIZE),this.attr("width",n),this.attr("height",e);const r=this.render();return r.then(()=>{this.emit(Me.AFTER_CHANGE_SIZE)}),r}getDataByXY(n,e={}){const{shared:r=!1,series:i,facet:a=!1,startX:o=0,startY:s=0}=e,{canvas:c,views:l}=this._context,{document:u}=c,{x:f,y:d}=n,{coordinate:h,scale:p,markState:g,data:y,key:m}=l[0],x=u.getElementsByClassName(la),w=r?P=>P.__data__.x:P=>P,_=Ve(x,w),O=u.getElementsByClassName(rv)[0],S=Ii(O),E=P=>Array.from(P.values()).some(L=>{var C,R;return((C=L.interaction)===null||C===void 0?void 0:C.seriesTooltip)||((R=L.channels)===null||R===void 0?void 0:R.some(D=>D.name==="series"&&D.values!==void 0))}),A=ca(i,E(g)),M=P=>Wt(P,"__data__.data",null),T=P=>P.map(M);try{if(A&&E(g)&&!a){const{selectedData:R}=xD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,startX:o,startY:s}),D=y.get(`${m}-0`);return R.map(({index:F})=>D[F])}const P=bD({root:S,event:{offsetX:f,offsetY:d},elements:x,coordinate:h,scale:p,shared:r});if(e0(P))return Ex(P,y.get(m));const L=w(P),C=_.get(L);return C?T(C):[]}catch{const L=c.document.elementFromPointSync(f,d);return L?M(L):[]}}_create(){const{library:n}=this._context,e=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(n).filter(e)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends Wb{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(n).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends Rv{constructor(){super({},o)}};return s=k1t([Nv(xP(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))Nv(xP(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const n=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([e])=>e.startsWith("margin")||e.startsWith("padding")||e.startsWith("inset")||n.includes(e))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const n=this._trailingResolve.bind(this);this._trailingResolve=null,n(this)}).catch(n=>{const e=this._trailingReject.bind(this);this._trailingReject=null,e(n)}))}_createResolve(n){return()=>{this._rendering=!1,n(this)}}_createReject(n){return e=>{this._rendering=!1,n(e)}}_computedOptions(){const n=this.options(),{key:e=M1t}=n,{width:r,height:i,depth:a}=Dm(n,this._container);return this._width=r,this._height=i,this._key=e,Object.assign(Object.assign({key:this._key},n),{width:r,height:i,depth:a})}_createCanvas(){var n,e;const{width:r,height:i}=Dm(this.options(),this._container);this._plugins.push(new LI),this._plugins.forEach(o=>this._renderer.registerPlugin(o)),this._context.canvas=new kL({container:this._container,width:r,height:i,renderer:this._renderer});const a=(e=(n=this._context.canvas)===null||n===void 0?void 0:n.getContextService())===null||e===void 0?void 0:e.getDomElement();a&&(a.style.display="block")}_addToTrailing(){var n;return(n=this._trailingResolve)===null||n===void 0||n.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const n=this.options(),{autoFit:e}=n;if(this._hasBindAutoFit){e||this._unbindAutoFit();return}e&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}Object.assign({},cj());const P1t="modulepreload",C1t=function(t,n){return new URL(t,n).href},wP={},_P=function(n,e,r){let i=Promise.resolve();if(e&&e.length>0){let o=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),l=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=o(e.map(u=>{if(u=C1t(u,r),u in wP)return;wP[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const y=s[g];if(y.href===u&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":P1t,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return n().catch(a)})};var vj=function(t,n,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,n||[])).next())})},gj=function(t,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){e.label=l[1];break}if(l[0]===6&&e.label<a[1]){e.label=a[1],a=l;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(l);break}a[2]&&e.ops.pop(),e.trys.pop();continue}l=n.call(t,e)}catch(u){l=[6,u],i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},jm="__rc_react_root__",l_,Gb,OP=!1;function L1t(){return vj(this,void 0,void 0,function(){var t,n,e,r,i;return gj(this,function(a){switch(a.label){case 0:if(OP)return[2];OP=!0,a.label=1;case 1:return a.trys.push([1,6,,7]),t=Gr.version||"",n=parseInt(t.split(".")[0],10),n>=18?[4,_P(()=>import("./client-ClqOT00H.js").then(o=>o.c),[],import.meta.url)]:[3,3];case 2:return e=a.sent(),l_=e.createRoot,[3,5];case 3:return[4,_P(()=>import("react-dom"),[],import.meta.url)];case 4:r=a.sent(),Gb=r.render,r.unmountComponentAtNode,a.label=5;case 5:return[3,7];case 6:return i=a.sent(),console.warn("[react-render] Failed to load ReactDOM API:",i),[3,7];case 7:return[2]}})})}function N1t(t,n){n[jm]||(n[jm]=l_(n)),n[jm].render(t)}function R1t(t,n){if(!Gb)throw new Error("ReactDOM.render not available");Gb(t,n)}function I1t(t,n){return vj(this,void 0,void 0,function(){return gj(this,function(e){switch(e.label){case 0:return[4,L1t()];case 1:return e.sent(),l_?N1t(t,n):R1t(t,n),[2]}})})}var bp=new Map;typeof document<"u"&&bp.set("tooltip",document.createElement("div"));var D1t=function(t,n){n===void 0&&(n=!1);var e=null;if(n)e=bp.get("tooltip");else if(e=document.createElement("div"),t!=null&&t.key){var r=bp.get(t.key);r?e=r:bp.set(t.key,e)}return I1t(t,e),e},Yb=function(){return Yb=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++){n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Yb.apply(this,arguments)},j1t=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return"loading";var e="";n&&Object.keys(n).forEach(function(o){e+="".concat(o,": ").concat(n[o],`;
|
|
240
239
|
`)});var r=t.attachShadow({mode:"open"}),i=document.createElement("div"),a=document.createElement("style");a.innerHTML=`.loading {
|
|
241
240
|
display: inline-block;
|
|
242
241
|
position: relative;
|
|
@@ -342,4 +341,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
342
341
|
align-items: center;
|
|
343
342
|
gap: 12px;
|
|
344
343
|
flex-wrap: wrap;
|
|
345
|
-
`;function F2t(t){const{url:n="http://127.0.0.1:2230",token:e,role:r,eventsEmit:i}=t,{getMessage:a}=oY(),o=300,[s,c]=oa(!1),[l,u]=oa(null),[f,d]=oa("timeline"),[h,p]=oa({username:"",dateRange:[np().subtract(3,"month"),np()]}),[g,y]=oa(""),{getTimelineOperateRecords:m,getStatisticsOperateRecords:x}=_p(()=>cY({url:n,token:e,role:r,eventsEmit:i,getMessage:a}),[]),w=Nu({timeline:null,statistics:null});Qu(()=>{var H,U,Z,q;console.log(" paramsCache.current",w.current);const F=h.username||void 0,j=(U=(H=h.dateRange)==null?void 0:H[0])==null?void 0:U.format("YYYY-MM-DD"),I=(q=(Z=h.dateRange)==null?void 0:Z[1])==null?void 0:q.format("YYYY-MM-DD"),$=w.current[f],z=JSON.stringify({fuzzy:F,start:j,end:I});($==null?void 0:$.key)!==z&&(f=="timeline"?(M(1),L(1,!1)):R())},[h,f]);const[_,O]=oa(!0),[S,E]=oa([]),[A,M]=oa(1),[T,P]=oa(),L=async(F=1,j=!1)=>{var I,$,z,Y;try{c(!0);const H={pageNo:F,pageSize:o,fuzzy:h.username||void 0,start:($=(I=h.dateRange)==null?void 0:I[0])==null?void 0:$.format("YYYY-MM-DD"),end:(Y=(z=h.dateRange)==null?void 0:z[1])==null?void 0:Y.format("YYYY-MM-DD")},U=await m(H);if(w.current.timeline={key:JSON.stringify({fuzzy:H.fuzzy,start:H.start,end:H.end,pageSize:o})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",U),U!=null&&U.records){const Z=U.records.map(J=>({id:J.id,endTime:J.endTime,gmtCreated:J.gmtCreated,gmtModified:J.gmtModified,ip:J.ip,name:J.name||"",params:J.params,startTime:J.startTime,success:J.success||0,url:J.url||"",userId:J.userId,userName:J.userName}));E(J=>j?[...J,...Z]:Z);const q=U.total||0;O(F*o<q),M(F)}}catch(H){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",H)}finally{c(!1)}},C=()=>{!s&&_&&L(A+1,!0)},R=async()=>{var F,j,I,$;try{c(!0);const z={fuzzy:h.username||void 0,start:(j=(F=h.dateRange)==null?void 0:F[0])==null?void 0:j.format("YYYY-MM-DD"),end:($=(I=h.dateRange)==null?void 0:I[1])==null?void 0:$.format("YYYY-MM-DD")},Y=await x({...z});w.current.statistics={key:JSON.stringify({fuzzy:z.fuzzy,start:z.start,end:z.end})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",Y),P(Y)}catch(z){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",z)}finally{c(!1)}},D=(F,{from:j})=>{if(!F)return!1;const I=np().endOf("day");if(F.isAfter(I,"day"))return!0;if(!j)return!1;const $=j.subtract(3,"month").startOf("day"),z=j.add(3,"month").startOf("day");return F.isBefore($,"day")||F.isAfter(z,"day")};return It(lG,{title:a("dashboard.title"),description:a("dashboard.description"),children:Zn(I2t,{children:[Zn(D2t,{children:[Zn(j2t,{children:[It(cG,{value:g,onChange:F=>{y(F.target.value)},onPressEnter:()=>{p(F=>({...F,username:g}))},placeholder:a("toolbar.keywordPlaceholder"),style:{width:240},suffix:It(fG,{size:14,onClick:()=>{p(F=>({...F,username:g}))}})}),It(R2t,{value:h==null?void 0:h.dateRange,allowClear:!1,onChange:F=>{F&&F[0]&&F[1]&&p(j=>({...j,dateRange:[F[0],F[1]]}))},disabledDate:D})]}),It($2t,{children:Zn(hy.Group,{value:f,onChange:F=>{d(F.target.value)},children:[Zn(hy.Button,{value:"timeline",children:[It(hG,{size:14,className:"inline"})," \u65F6\u95F4\u8F74"]}),Zn(hy.Button,{value:"statistics",children:[It(dG,{size:14,className:"inline"})," \u7EDF\u8BA1\u56FE"]})]})})]}),s?It("div",{style:{padding:24,display:"flex",justifyContent:"center"},children:It(DP,{})}):l?It("div",{style:{padding:16,color:"#cf1322"},children:l}):It(eG,{children:f==="statistics"?It(N2t,{statistics:T,viewMode:f}):It(EY,{records:S,loadMore:C,hasMore:_})})]})})}function
|
|
344
|
+
`;function F2t(t){const{url:n="http://127.0.0.1:2230",token:e,role:r,eventsEmit:i}=t,{getMessage:a}=oY(),o=300,[s,c]=oa(!1),[l,u]=oa(null),[f,d]=oa("timeline"),[h,p]=oa({username:"",dateRange:[np().subtract(3,"month"),np()]}),[g,y]=oa(""),{getTimelineOperateRecords:m,getStatisticsOperateRecords:x}=_p(()=>cY({url:n,token:e,role:r,eventsEmit:i,getMessage:a}),[]),w=Nu({timeline:null,statistics:null});Qu(()=>{var H,U,Z,q;console.log(" paramsCache.current",w.current);const F=h.username||void 0,j=(U=(H=h.dateRange)==null?void 0:H[0])==null?void 0:U.format("YYYY-MM-DD"),I=(q=(Z=h.dateRange)==null?void 0:Z[1])==null?void 0:q.format("YYYY-MM-DD"),$=w.current[f],z=JSON.stringify({fuzzy:F,start:j,end:I});($==null?void 0:$.key)!==z&&(f=="timeline"?(M(1),L(1,!1)):R())},[h,f]);const[_,O]=oa(!0),[S,E]=oa([]),[A,M]=oa(1),[T,P]=oa(),L=async(F=1,j=!1)=>{var I,$,z,Y;try{c(!0);const H={pageNo:F,pageSize:o,fuzzy:h.username||void 0,start:($=(I=h.dateRange)==null?void 0:I[0])==null?void 0:$.format("YYYY-MM-DD"),end:(Y=(z=h.dateRange)==null?void 0:z[1])==null?void 0:Y.format("YYYY-MM-DD")},U=await m(H);if(w.current.timeline={key:JSON.stringify({fuzzy:H.fuzzy,start:H.start,end:H.end,pageSize:o})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",U),U!=null&&U.records){const Z=U.records.map(J=>({id:J.id,endTime:J.endTime,gmtCreated:J.gmtCreated,gmtModified:J.gmtModified,ip:J.ip,name:J.name||"",params:J.params,startTime:J.startTime,success:J.success||0,url:J.url||"",userId:J.userId,userName:J.userName}));E(J=>j?[...J,...Z]:Z);const q=U.total||0;O(F*o<q),M(F)}}catch(H){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",H)}finally{c(!1)}},C=()=>{!s&&_&&L(A+1,!0)},R=async()=>{var F,j,I,$;try{c(!0);const z={fuzzy:h.username||void 0,start:(j=(F=h.dateRange)==null?void 0:F[0])==null?void 0:j.format("YYYY-MM-DD"),end:($=(I=h.dateRange)==null?void 0:I[1])==null?void 0:$.format("YYYY-MM-DD")},Y=await x({...z});w.current.statistics={key:JSON.stringify({fuzzy:z.fuzzy,start:z.start,end:z.end})},console.log("\u64CD\u4F5C\u8BB0\u5F55\u6570\u636E:",Y),P(Y)}catch(z){console.error("\u83B7\u53D6\u64CD\u4F5C\u8BB0\u5F55\u5931\u8D25:",z)}finally{c(!1)}},D=(F,{from:j})=>{if(!F)return!1;const I=np().endOf("day");if(F.isAfter(I,"day"))return!0;if(!j)return!1;const $=j.subtract(3,"month").startOf("day"),z=j.add(3,"month").startOf("day");return F.isBefore($,"day")||F.isAfter(z,"day")};return It(lG,{title:a("dashboard.title"),description:a("dashboard.description"),children:Zn(I2t,{children:[Zn(D2t,{children:[Zn(j2t,{children:[It(cG,{value:g,onChange:F=>{y(F.target.value)},onPressEnter:()=>{p(F=>({...F,username:g}))},placeholder:a("toolbar.keywordPlaceholder"),style:{width:240},suffix:It(fG,{size:14,onClick:()=>{p(F=>({...F,username:g}))}})}),It(R2t,{value:h==null?void 0:h.dateRange,allowClear:!1,onChange:F=>{F&&F[0]&&F[1]&&p(j=>({...j,dateRange:[F[0],F[1]]}))},disabledDate:D})]}),It($2t,{children:Zn(hy.Group,{value:f,onChange:F=>{d(F.target.value)},children:[Zn(hy.Button,{value:"timeline",children:[It(hG,{size:14,className:"inline"})," \u65F6\u95F4\u8F74"]}),Zn(hy.Button,{value:"statistics",children:[It(dG,{size:14,className:"inline"})," \u7EDF\u8BA1\u56FE"]})]})})]}),s?It("div",{style:{padding:24,display:"flex",justifyContent:"center"},children:It(DP,{})}):l?It("div",{style:{padding:16,color:"#cf1322"},children:l}):It(eG,{children:f==="statistics"?It(N2t,{statistics:T,viewMode:f}):It(EY,{records:S,loadMore:C,hasMore:_})})]})})}function uwt({locale:t="zh",messages:n,...e}){return It(sY,{locale:t,messages:n,children:It(F2t,{...e})})}export{lo as A,WG as B,Go as C,rr as D,nc as E,jc as F,q2t as G,Jd as H,YP as I,uwt as O,Hm as _,Ws as a,pG as b,no as c,pt as d,ht as e,wt as f,Hv as g,GP as h,rl as i,RG as j,Vt as k,PG as l,OG as m,Dt as n,le as o,bG as p,yG as q,K2t as r,ex as s,wG as t,MG as u,FG as v,Uv as w,Z2t as x,Q2t as y,te as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as O,jsxs as ne,Fragment as Nn}from"react/jsx-runtime";import*as L from"react";import ve,{createElement as hi,PureComponent as Gu,useState as fe,useMemo as Ke,createContext as ti,Children as Ku,cloneElement as Xu,Component as Yu,useRef as je,useEffect as Ie,useContext as vr,version as Qu,isValidElement as Zu,useLayoutEffect as Ju,useCallback as jn}from"react";import Tt from"axios";import{AiChat as el,validateFileUpload as tl,showValidationErrors as rl}from"@mxmweb/aichat";import{mergeLiveChunkToNodes as nl,ChatMessageAdapter as Go}from"@mxmweb/rtext";import{Dropdown as al,Input as Y0,Popover as il,message as Et,Skeleton as Un,Button as dn,ConfigProvider as ri,Modal as Q0,Form as Ko,Table as ol,Pagination as sl,Empty as cl,Tooltip as Dn,Drawer as Z0}from"antd";import{u as hr}from"./index-CpW6Dhpp.js";import{Icon as ul,defaultTheme as wo,useTheme as ll,deepMergeTheme as Xo}from"@mxmweb/zui";import{_ as Bo,a as kt,b as we,w as Cr,c as _e,d as Pt,e as It,f as q,
|
|
1
|
+
import{jsx as O,jsxs as ne,Fragment as Nn}from"react/jsx-runtime";import*as L from"react";import ve,{createElement as hi,PureComponent as Gu,useState as fe,useMemo as Ke,createContext as ti,Children as Ku,cloneElement as Xu,Component as Yu,useRef as je,useEffect as Ie,useContext as vr,version as Qu,isValidElement as Zu,useLayoutEffect as Ju,useCallback as jn}from"react";import Tt from"axios";import{AiChat as el,validateFileUpload as tl,showValidationErrors as rl}from"@mxmweb/aichat";import{mergeLiveChunkToNodes as nl,ChatMessageAdapter as Go}from"@mxmweb/rtext";import{Dropdown as al,Input as Y0,Popover as il,message as Et,Skeleton as Un,Button as dn,ConfigProvider as ri,Modal as Q0,Form as Ko,Table as ol,Pagination as sl,Empty as cl,Tooltip as Dn,Drawer as Z0}from"antd";import{u as hr}from"./index-CpW6Dhpp.js";import{Icon as ul,defaultTheme as wo,useTheme as ll,deepMergeTheme as Xo}from"@mxmweb/zui";import{_ as Bo,a as kt,b as we,w as Cr,c as _e,d as Pt,e as It,f as q,h as J0,i as Li,j as fl,k as le,l as dl,m as Tr,n as Y,o as de,u as cn,r as ec,p as pl,q as hl,s as xl,t as vl,F as Dt,v as Ka,x as xi,y as vi,z as gn,A as Rr,B as xr,I as gl,C as Vr,D as Ot,E as mn,g as tc,G as ml,H as gi}from"./index-CmltVl0j.js";import Yo from"dayjs";import{c as yn}from"./createLucideIcon-Bj5DlX2s.js";import{P as yl}from"./plus-B679mjyt.js";import{S as $i}from"./search-CEuIa9-_.js";import{X as rc}from"./x-CdZQbi--.js";import*as Cl from"react-dom";import Qo,{createPortal as bl}from"react-dom";import{f as Fl,r as El,a as Al,c as wl,B as Bl,z as Sl,d as nc,g as ac,b as ic,e as zi,h as So,i as qi,D as _l,j as Dl,T as Hi,k as mi,l as kl,m as Pl,N as Il,n as Rl,G as Tl,o as Ol,W as Nl,p as oc,q as Ml,s as Ll,u as $l,F as zl,t as Zo,v as yi,w as ql,x as Hl,y as Vl,A as jl,E as Ul}from"./index-BrQsYGxa.js";import{a as Wl,C as Gl,G as sc}from"./GientechStreamReader-_ih9ja1B.js";/* empty css *//* empty css */import"@mxmweb/fviewer";import"../database.js";import"../databaseId.js";import"../databaseTable.js";import"../modelManage.js";import"../sensitive.js";import"./index-CVBBj_Pf.js";/**
|
|
2
2
|
* @license lucide-react v0.456.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/chat.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react/jsx-runtime";import"react";import"axios";import"@mxmweb/aichat";import"@mxmweb/rtext";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import{D as B,w as C}from"./assets/style-
|
|
1
|
+
import"react/jsx-runtime";import"react";import"axios";import"@mxmweb/aichat";import"@mxmweb/rtext";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import{D as B,w as C}from"./assets/style-CtNhFE2h.js";import"./assets/index-BrQsYGxa.js";/* empty css *//* empty css */import{registerPDFWorker as G}from"@mxmweb/fviewer";import"./assets/index-CmltVl0j.js";import"styled-components";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/search-CEuIa9-_.js";import"./assets/plus-B679mjyt.js";import"./assets/x-CdZQbi--.js";import"react-dom";import"./assets/GientechStreamReader-_ih9ja1B.js";import"./database.js";import"@mxmweb/xviewer";import"./databaseId.js";import"./assets/triangle-alert-LqO4u4ts.js";import"./assets/loader-circle-C1Oa97Sz.js";import"./databaseTable.js";import"./modelManage.js";import"./sensitive.js";import"./assets/circle-plus-RlDPoPkb.js";import"./assets/index-CVBBj_Pf.js";export{B as DrawerType,C as default,G as registerPDFWorker};
|
package/chatCompare.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react/jsx-runtime";import{C as c,C as g}from"./assets/index-
|
|
1
|
+
import"react/jsx-runtime";import{C as c,C as g}from"./assets/index-BrQsYGxa.js";import"react";import"@mxmweb/zui";import"antd";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/aichat";import"./assets/circle-plus-RlDPoPkb.js";import"@mxmweb/rtext";import"dayjs";import"axios";import"./assets/GientechStreamReader-_ih9ja1B.js";import"styled-components";import"@mxmweb/fviewer";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/x-CdZQbi--.js";import"./assets/loader-circle-C1Oa97Sz.js";export{c as ChatCompareComponent,g as default};
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as h,a as G,L as T,g as c,u as k}from"./assets/style-
|
|
1
|
+
import{D as h,a as G,L as T,g as c,u as k}from"./assets/style-CtNhFE2h.js";import{C as y}from"./assets/index-BrQsYGxa.js";import"./database.js";import{DatabaseIdI18nContext as R,DatabaseIdI18nProvider as W,getDatabaseIdMessages as j,useDatabaseIdI18n as q}from"./databaseId.js";import"./databaseTable.js";import"react/jsx-runtime";import"antd";import"react";import"axios";import{ModelManageI18nContext as B,ModelManageI18nProvider as E,getModelManageMessages as H,interpolateModelManage as J,useModelManageI18n as K}from"./modelManage.js";import{SensitiveI18nContext as O,SensitiveI18nProvider as Q,getSensitiveMessages as U,interpolate as V,useSensitiveI18n as X}from"./sensitive.js";import"./assets/index-CmltVl0j.js";import{G as Z}from"./assets/GientechStreamReader-_ih9ja1B.js";import{a as $,A as ee,p as te,g as oe,u as re}from"./assets/index-CVBBj_Pf.js";import{registerPDFWorker as ie}from"@mxmweb/fviewer";import"@mxmweb/aichat";import"@mxmweb/rtext";import"./assets/index-CpW6Dhpp.js";import"@mxmweb/zui";import"dayjs";import"./assets/createLucideIcon-Bj5DlX2s.js";import"./assets/plus-B679mjyt.js";import"./assets/search-CEuIa9-_.js";import"./assets/x-CdZQbi--.js";import"react-dom";/* empty css *//* empty css */import"./assets/loader-circle-C1Oa97Sz.js";import"./assets/circle-plus-RlDPoPkb.js";import"styled-components";import"@mxmweb/xviewer";import"./assets/triangle-alert-LqO4u4ts.js";export{$ as AssistantConfigI18nContext,ee as AssistantConfigI18nProvider,y as ChatCompareComponent,R as DatabaseIdI18nContext,W as DatabaseIdI18nProvider,h as DrawerType,Z as GientechStreamReader,G as LoginI18nContext,T as LoginI18nProvider,B as ModelManageI18nContext,E as ModelManageI18nProvider,O as SensitiveI18nContext,Q as SensitiveI18nProvider,te as defaultTheme,oe as getAssistantConfigMessages,j as getDatabaseIdMessages,c as getLoginMessages,H as getModelManageMessages,U as getSensitiveMessages,V as interpolate,J as interpolateModelManage,ie as registerPDFWorker,re as useAssistantConfigI18n,q as useDatabaseIdI18n,k as useLoginI18n,K as useModelManageI18n,X as useSensitiveI18n};
|
package/oprecords.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react/jsx-runtime";import"react";import"styled-components";import"antd";import"
|
|
1
|
+
import"react/jsx-runtime";import"react";import"styled-components";import"antd";import"dayjs";import"@mxmweb/zui";import{O as s}from"./assets/index-CmltVl0j.js";import"./assets/search-CEuIa9-_.js";import"axios";import"./assets/createLucideIcon-Bj5DlX2s.js";export{s as default};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"style": "assets/style.css",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.
|
|
6
|
+
"version": "2.2.34",
|
|
7
7
|
"author": "hanfeng_Zhang",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "index.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"@mxmweb/zui": "^1.3.9",
|
|
21
21
|
"antd": "^5.18.0",
|
|
22
22
|
"axios": "^1.7.2",
|
|
23
|
+
"dayjs": "^1.11.19",
|
|
23
24
|
"react": ">=18",
|
|
24
25
|
"react-dom": ">=18"
|
|
25
26
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as l}from"./dayjs.min-9C0uSO6x.js";import u from"react-dom";function s(e,i){for(var n=0;n<i.length;n++){const t=i[n];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(t,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o={},c;function p(){if(c)return o;c=1;var e=u;return o.createRoot=e.createRoot,o.hydrateRoot=e.hydrateRoot,o}var f=p();const d=l(f),y=s({__proto__:null,default:d},[f]);export{y as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function nt(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var x=l.default;if(typeof x=="function"){var g=function p(){return this instanceof p?Reflect.construct(x,arguments,this.constructor):x.apply(this,arguments)};g.prototype=x.prototype}else g={};return Object.defineProperty(g,"__esModule",{value:!0}),Object.keys(l).forEach(function(p){var Y=Object.getOwnPropertyDescriptor(l,p);Object.defineProperty(g,p,Y.get?Y:{enumerable:!0,get:function(){return l[p]}})}),g}var P={exports:{}},X=P.exports,V;function tt(){return V||(V=1,(function(l,x){(function(g,p){l.exports=p()})(X,(function(){var g=1e3,p=6e4,Y=36e5,F="millisecond",b="second",_="minute",j="hour",v="day",W="week",m="month",J="quarter",M="year",k="date",Z="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|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,G={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(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},U=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},Q={s:U,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+U(n,2,"0")+":"+U(e,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var n=12*(t.year()-r.year())+(t.month()-r.month()),e=r.clone().add(n,m),i=t-e<0,u=r.clone().add(n+(i?-1:1),m);return+(-(n+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:m,y:M,w:W,d:v,D:k,h:j,m:_,s:b,ms:F,Q:J}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",w={};w[H]=G;var q="$isDayjsObject",E=function(s){return s instanceof I||!(!s||!s[q])},A=function s(r,t,n){var e;if(!r)return H;if(typeof r=="string"){var i=r.toLowerCase();w[i]&&(e=i),t&&(w[i]=t,e=i);var u=r.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=r.name;w[o]=r,e=o}return!n&&e&&(H=e),e||!n&&H},f=function(s,r){if(E(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new I(t)},a=Q;a.l=A,a.i=E,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var I=(function(){function s(t){this.$L=A(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var r=s.prototype;return r.parse=function(t){this.$d=(function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(R);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)})(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==Z},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)<this.startOf(n)},r.isBefore=function(t,n){return this.endOf(n)<f(t)},r.$g=function(t,n,e){return a.u(t)?this[n]:this.set(e,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,n){var e=this,i=!!a.u(n)||n,u=a.p(t),o=function(O,$){var D=a.w(e.$u?Date.UTC(e.$y,$,O):new Date(e.$y,$,O),e);return i?D:D.endOf(v)},c=function(O,$){return a.w(e.toDate()[O].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,y=this.$D,T="set"+(this.$u?"UTC":"");switch(u){case M:return i?o(1,0):o(31,11);case m:return i?o(1,d):o(0,d+1);case W:var S=this.$locale().weekStart||0,C=(h<S?h+7:h)-S;return o(i?y-C:y+(6-C),d);case v:case k:return c(T+"Hours",0);case j:return c(T+"Minutes",1);case _:return c(T+"Seconds",2);case b:return c(T+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,n){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[v]=u+"Date",e[k]=u+"Date",e[m]=u+"Month",e[M]=u+"FullYear",e[j]=u+"Hours",e[_]=u+"Minutes",e[b]=u+"Seconds",e[F]=u+"Milliseconds",e)[i],c=i===v?this.$D+(n-this.$W):n;if(i===m||i===M){var h=this.clone().set(k,1);h.$d[o](c),h.init(),this.$d=h.set(k,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},r.set=function(t,n){return this.clone().$set(t,n)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,n){var e,i=this;t=Number(t);var u=a.p(n),o=function(d){var y=f(i);return a.w(y.date(y.date()+Math.round(d*t)),i)};if(u===m)return this.set(m,this.$M+t);if(u===M)return this.set(M,this.$y+t);if(u===v)return o(1);if(u===W)return o(7);var c=(e={},e[_]=p,e[j]=Y,e[b]=g,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},r.subtract=function(t,n){return this.add(-1*t,n)},r.format=function(t){var n=this,e=this.$locale();if(!this.isValid())return e.invalidDate||Z;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,y=e.months,T=e.meridiem,S=function($,D,L,N){return $&&($[D]||$(n,i))||L[D].slice(0,N)},C=function($){return a.s(o%12||12,$,"0")},O=T||function($,D,L){var N=$<12?"AM":"PM";return L?N.toLowerCase():N};return i.replace(B,(function($,D){return D||(function(L){switch(L){case"YY":return String(n.$y).slice(-2);case"YYYY":return a.s(n.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return S(e.monthsShort,h,y,3);case"MMMM":return S(y,h);case"D":return n.$D;case"DD":return a.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return S(e.weekdaysMin,n.$W,d,2);case"ddd":return S(e.weekdaysShort,n.$W,d,3);case"dddd":return d[n.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return C(1);case"hh":return C(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(n.$s);case"ss":return a.s(n.$s,2,"0");case"SSS":return a.s(n.$ms,3,"0");case"Z":return u}return null})($)||u.replace(":","")}))},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,n,e){var i,u=this,o=a.p(n),c=f(t),h=(c.utcOffset()-this.utcOffset())*p,d=this-c,y=function(){return a.m(u,c)};switch(o){case M:i=y()/12;break;case m:i=y();break;case J:i=y()/3;break;case W:i=(d-h)/6048e5;break;case v:i=(d-h)/864e5;break;case j:i=d/Y;break;case _:i=d/p;break;case b:i=d/g;break;default:i=d}return e?i:a.a(i)},r.daysInMonth=function(){return this.endOf(m).$D},r.$locale=function(){return w[this.$L]},r.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),i=A(t,n,!0);return i&&(e.$L=i),e},r.clone=function(){return a.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},s})(),z=I.prototype;return f.prototype=z,[["$ms",F],["$s",b],["$m",_],["$H",j],["$W",v],["$M",m],["$y",M],["$D",k]].forEach((function(s){z[s[1]]=function(r){return this.$g(r,s[0],s[1])}})),f.extend=function(s,r){return s.$i||(s(r,I,f),s.$i=!0),f},f.locale=A,f.isDayjs=E,f.unix=function(s){return f(1e3*s)},f.en=w[H],f.Ls=w,f.p={},f}))})(P)),P.exports}var et=tt();const st=K(et);export{nt as a,rt as c,st as d,K as g};
|