szld-libs 0.0.6 → 0.0.7
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/@types/components/SearchTable/index.d.ts +10 -3
- package/dist/index.js +4 -3
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/readme.md +21 -0
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TableProps } from
|
|
3
|
-
import {
|
|
2
|
+
import { TableProps } from "antd";
|
|
3
|
+
import { ColumnType } from "antd/es/table";
|
|
4
|
+
import { CreateFormProps } from "../CreateForm";
|
|
5
|
+
export interface TableColumnProps<T> extends ColumnType<T> {
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface MTableProps<T> extends Omit<TableProps<T>, "columns"> {
|
|
9
|
+
columns?: TableColumnProps<T>[];
|
|
10
|
+
}
|
|
4
11
|
export interface SearchTableProps<RecordType> {
|
|
5
12
|
searchProps?: CreateFormProps;
|
|
6
|
-
tableProps?:
|
|
13
|
+
tableProps?: MTableProps<RecordType>;
|
|
7
14
|
}
|
|
8
15
|
declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): JSX.Element;
|
|
9
16
|
export default SearchTable;
|
package/dist/index.js
CHANGED
|
@@ -20866,20 +20866,21 @@ const Hz = /* @__PURE__ */ xG(Uz.exports), vk = [Rd.jpeg, Rd.jpg, Rd.png], W$ =
|
|
|
20866
20866
|
search: i9
|
|
20867
20867
|
};
|
|
20868
20868
|
function Are(t) {
|
|
20869
|
-
const { tableProps: e, searchProps: n } = t;
|
|
20869
|
+
const { tableProps: e = {}, searchProps: n } = t, { columns: r = [], ...a } = e;
|
|
20870
20870
|
return /* @__PURE__ */ Gr("div", { className: hk.main, children: [
|
|
20871
20871
|
n && /* @__PURE__ */ Fe(t9, { hiddenTitle: !0, ...n, items: n.items }),
|
|
20872
20872
|
/* @__PURE__ */ Fe(
|
|
20873
20873
|
eM,
|
|
20874
20874
|
{
|
|
20875
|
-
|
|
20875
|
+
columns: r.filter((l) => !l.hidden),
|
|
20876
|
+
...a,
|
|
20876
20877
|
className: Sp(hk.table, e == null ? void 0 : e.className),
|
|
20877
20878
|
pagination: {
|
|
20878
20879
|
hideOnSinglePage: !0,
|
|
20879
20880
|
showPrevNextJumpers: !0,
|
|
20880
20881
|
showQuickJumper: !0,
|
|
20881
20882
|
showSizeChanger: !0,
|
|
20882
|
-
showTotal: (
|
|
20883
|
+
showTotal: (l) => `共 ${l} 条`,
|
|
20883
20884
|
...e == null ? void 0 : e.pagination
|
|
20884
20885
|
}
|
|
20885
20886
|
}
|
package/dist/index.umd.cjs
CHANGED
|
@@ -188,7 +188,7 @@ Check the render method of %s.`,dt(Kn)||"Unknown"));var N=gs(T,R);N.payload={ele
|
|
|
188
188
|
|
|
189
189
|
let root = createRoot(domContainer);
|
|
190
190
|
root.render(<App />);`),o.unstable_strictMode===!0&&(v=!0),o.identifierPrefix!==void 0&&(C=o.identifierPrefix),o.onRecoverableError!==void 0&&(T=o.onRecoverableError),o.transitionCallbacks!==void 0&&o.transitionCallbacks);var R=I3(i,dC,null,v,g,C,T);aC(R.current,i);var k=i.nodeType===Jn?i.parentNode:i;return yy(k),new tA(R)}function mw(i){this._internalRoot=i}function sne(i){i&&kS(i)}mw.prototype.unstable_scheduleHydration=sne;function fne(i,o,v){if(!yw(i))throw new Error("hydrateRoot(...): Target container is not a DOM element.");iU(i),o===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=v??null,C=v!=null&&v.hydratedSources||null,T=!1,R=!1,k="",N=rU;v!=null&&(v.unstable_strictMode===!0&&(T=!0),v.identifierPrefix!==void 0&&(k=v.identifierPrefix),v.onRecoverableError!==void 0&&(N=v.onRecoverableError));var B=z3(o,null,i,dC,g,T,R,k,N);if(aC(B.current,i),yy(i),C)for(var V=0;V<C.length;V++){var K=C[V];yJ(B,K)}return new mw(B)}function yw(i){return!!(i&&(i.nodeType===gi||i.nodeType===ja||i.nodeType===zu||!Ge))}function c0(i){return!!(i&&(i.nodeType===gi||i.nodeType===ja||i.nodeType===zu||i.nodeType===Jn&&i.nodeValue===" react-mount-point-unstable "))}function iU(i){i.nodeType===gi&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Ry(i)&&(i._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var cne=n.ReactCurrentOwner,aU;aU=function(i){if(i._reactRootContainer&&i.nodeType!==Jn){var o=B3(i._reactRootContainer.current);o&&o.parentNode!==i&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var v=!!i._reactRootContainer,g=nA(i),C=!!(g&&Ef(g));C&&!v&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),i.nodeType===gi&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function nA(i){return i?i.nodeType===ja?i.documentElement:i.firstChild:null}function oU(){}function dne(i,o,v,g,C){if(C){if(typeof g=="function"){var T=g;g=function(){var Q=gw(R);T.call(Q)}}var R=z3(o,g,i,Mf,null,!1,!1,"",oU);i._reactRootContainer=R,aC(R.current,i);var k=i.nodeType===Jn?i.parentNode:i;return yy(k),Ss(),R}else{for(var N;N=i.lastChild;)i.removeChild(N);if(typeof g=="function"){var B=g;g=function(){var Q=gw(V);B.call(Q)}}var V=I3(i,Mf,null,!1,!1,"",oU);i._reactRootContainer=V,aC(V.current,i);var K=i.nodeType===Jn?i.parentNode:i;return yy(K),Ss(function(){f0(o,V,v,g)}),V}}function vne(i,o){i!==null&&typeof i!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,i)}function _w(i,o,v,g,C){aU(v),vne(C===void 0?null:C,"render");var T=v._reactRootContainer,R;if(!T)R=dne(v,o,i,C,g);else{if(R=T,typeof C=="function"){var k=C;C=function(){var N=gw(R);k.call(N)}}f0(o,R,i,C)}return gw(R)}function hne(i){{var o=cne.current;if(o!==null&&o.stateNode!==null){var v=o.stateNode._warnedAboutRefsInRender;v||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",hn(o.type)||"A component"),o.stateNode._warnedAboutRefsInRender=!0}}return i==null?null:i.nodeType===gi?i:Kte(i,"findDOMNode")}function pne(i,o,v){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!c0(o))throw new Error("Target container is not a DOM element.");{var g=Ry(o)&&o._reactRootContainer===void 0;g&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return _w(null,i,o,!0,v)}function gne(i,o,v){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!c0(o))throw new Error("Target container is not a DOM element.");{var g=Ry(o)&&o._reactRootContainer===void 0;g&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return _w(null,i,o,!1,v)}function mne(i,o,v,g){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!c0(v))throw new Error("Target container is not a DOM element.");if(i==null||!nd(i))throw new Error("parentComponent must be a valid React Component");return _w(i,o,v,!1,g)}function yne(i){if(!c0(i))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var o=Ry(i)&&i._reactRootContainer===void 0;o&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(i._reactRootContainer){{var v=nA(i),g=v&&!Ef(v);g&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ss(function(){_w(null,null,i,!1,function(){i._reactRootContainer=null,n5(i)})}),!0}else{{var C=nA(i),T=!!(C&&Ef(C)),R=i.nodeType===gi&&c0(i.parentNode)&&!!i.parentNode._reactRootContainer;T&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",R?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}ze(Jte),DS(ene),md(tne),ey(Sa),RS(hd),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),lS(CZ),oh(kR,fte,Ss);function _ne(i,o){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!yw(o))throw new Error("Target container is not a DOM element.");return Zte(i,o,null,v)}function Sne(i,o,v,g){return mne(i,o,v,g)}var rA={usingClientEntryPoint:!1,Events:[Ef,up,oC,ah,Jc,kR]};function Cne(i,o){return rA.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),une(i,o)}function wne(i,o,v){return rA.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),fne(i,o,v)}function xne(i){return p3()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Ss(i)}var Tne=lne({findFiberByHostInstance:Dd,bundleType:1,version:QR,rendererPackageName:"react-dom"});if(!Tne&&Zt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var lU=window.location.protocol;/^(https?|file):$/.test(lU)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(lU==="file:"?`
|
|
191
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ji.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rA,Ji.createPortal=_ne,Ji.createRoot=Cne,Ji.findDOMNode=hne,Ji.flushSync=xne,Ji.hydrate=pne,Ji.hydrateRoot=wne,Ji.render=gne,Ji.unmountComponentAtNode=yne,Ji.unstable_batchedUpdates=kR,Ji.unstable_renderSubtreeIntoContainer=Sne,Ji.version=QR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ji}(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(e(),t.exports=PV()):t.exports=IV()})(VA);const XA=vU(VA.exports),qA=[Hf.jpeg,Hf.jpg,Hf.png],QA=t=>{const{maxCount:e=1,listType:n="picture-card",fileList:r=[],maxSize:a=2,accept:l=qA.join(",")}=t,[u,f]=ft.useState(!1),[d,h]=ft.useState(""),p=()=>n!=="text"?zr("div",{children:[Fe(vV,{}),Fe("div",{style:{marginTop:8},children:"上传"})]}):Fe(gt.Button,{icon:Fe(_V,{}),children:"上传"}),m=w=>{const E=l.split(",");if(!E.includes(w.type)){const D=E.map(A=>{var O;return(O=Gd.find(Array.from(_0),P=>P[1]===A))==null?void 0:O[0]});return gt.message.error(`只允许上传 ${D.join(", ")} 文件`),gt.Upload.LIST_IGNORE}return w.size/1024/1024<a?!0:(gt.message.error(`文件必须小于${a}MB`),gt.Upload.LIST_IGNORE)},S=w=>{t.onChange&&t.onChange(w)},_=async w=>{if(w.type||(w.type=UA(w.name||w.url)),w.type===Hf.pdf)return gt.Modal.info({title:"PDF",width:"60%",content:Fe("iframe",{title:"PDF预览",src:w.url||w.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});qA.includes(w.type)&&(!w.url&&!w.thumbUrl&&!w.preview&&(w.preview=await BA(w.originFileObj)),h(w.url||w.thumbUrl||w.preview),f(!0))};return zr(oA,{children:[Fe(gt.Upload,{...t,onPreview:_,beforeUpload:m,onChange:S,listType:n,children:r.length>=e?null:p()}),Fe(zV,{visible:u,src:d,onVisibleChange:()=>{f(!1),h("")}})]})},zV=t=>{const{visible:e,src:n,onVisibleChange:r}=t;return XA.createPortal(Fe(gt.Image,{style:{display:"none"},src:n,preview:{visible:e,src:n,onVisibleChange:r}}),document.body)},S0={fieldModal:"_fieldModal_1comf_1",content:"_content_1comf_22",suffix:"_suffix_1comf_25",placeholder:"_placeholder_1comf_36"},FV={labelCol:{span:4},wrapperCol:{span:20}},BV=t=>{switch(t){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},ZA=t=>{const{items:e,rowProps:n,formProps:r,readonly:a=!1,hiddenTitle:l=!1}=t,u=(d,h)=>{var p,m;if(h.btnType==="submit"){(p=r==null?void 0:r.form)==null||p.validateFields().then(S=>{h.onClick&&h.onClick(S)});return}if(h.btnType==="reset"){(m=r==null?void 0:r.form)==null||m.resetFields(),h.onClick&&h.onClick(d);return}h.btnType==="cancel"&&h.onClick&&h.onClick(d)},f=d=>Array.isArray(d)?d:d&&d.fileList;return Fe(gt.Form,{layout:"horizontal",form:r==null?void 0:r.form,...FV,...r||{},children:Fe(gt.Row,{gutter:16,...n,children:e.filter(d=>!d.hidden).map(d=>{var h,p;return Fe(gt.Col,{...d.colProps||{span:24},children:Fe(gt.Form.Item,{...d.valueType==="upload"?{getValueFromEvent:f}:{},label:l?"":d.title,name:d.valueType==="btns"?void 0:d.dataIndex,...d.formItemProps,children:d.readonly?Fe("div",{children:d.value||((h=r==null?void 0:r.initialValues)==null?void 0:h[d.dataIndex])}):d.readonly===void 0&&a?Fe("div",{children:d.value||((p=r==null?void 0:r.initialValues)==null?void 0:p[d.dataIndex])}):Fe(KA,{onChange:m=>{var S;return(S=d==null?void 0:d.onChange)==null?void 0:S.call(d,m)},valueType:d.valueType,onBtnClick:u,valueProps:d.valueProps})})},d.dataIndex)})})})},KA=t=>{const{valueType:e,valueProps:n,value:r,onChange:a,onBtnClick:l,inputRef:u}=t,f=ft.useMemo(()=>{let d=Fe(gt.Input,{placeholder:"请输入",...n,allowClear:!0});switch(e){case"modal":d=Fe(UV,{...n});break;case"checkbox":d=Fe(gt.Checkbox.Group,{...n});break;case"select":d=Fe(gt.Select,{placeholder:"请选择",...n,allowClear:!0});break;case"inputNumber":d=Fe(gt.InputNumber,{style:{width:"100%"},placeholder:"请输入",...n});break;case"textarea":d=Fe(gt.Input.TextArea,{placeholder:"请输入",...n,allowClear:!0});break;case"radio":d=Fe(gt.Radio.Group,{...n});break;case"switch":d=Fe(gt.Switch,{...n});break;case"datePicker":d=Fe(gt.DatePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"rangePicker":d=Fe(gt.DatePicker.RangePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"timePicker":d=Fe(gt.TimePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"cascader":d=Fe(gt.Cascader,{...n,allowClear:!0});break;case"upload":d=Fe(QA,{...n});break;case"btns":d=Fe(gt.Space,{children:n==null?void 0:n.map(h=>ft.createElement(gt.Button,{type:h.btnType==="submit"?"primary":"default",...Gd.omit(h,["btnType"]),key:h.btnType,onClick:p=>{l==null||l(p,h)}},h.title))});break}return d},[e,n,a,r]);return ft.cloneElement(f,{[BV(e||"input")]:r,onChange:a,ref:u})},UV=t=>{const{placeholder:e,labelKey:n,onToggle:r,value:a,onClear:l}=t;return zr("div",{className:S0.fieldModal,children:[Fe("div",{className:S0.content,onClick:()=>r(!0),children:a?Fe("span",{children:a[n]}):Fe("span",{className:S0.placeholder,children:e})}),Fe("span",{className:S0.suffix,onClick:l,children:a&&Fe(lV,{})})]})},JA={main:"_main_1xnte_1",search:"_search_1xnte_4"};function VV(t){const{tableProps:e,searchProps:n}=t;return zr("div",{className:JA.main,children:[n&&Fe(ZA,{hiddenTitle:!0,...n,items:n.items}),Fe(gt.Table,{...e,className:$d(JA.table,e==null?void 0:e.className),pagination:{hideOnSinglePage:!0,showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:r=>`共 ${r} 条`,...e==null?void 0:e.pagination}})]})}var Bw=function(t,e){return Bw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Bw(t,e)};function Pt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bw(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var HV=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),GV=function(){function t(){this.browser=new HV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Gf=new GV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Gf.wxa=!0,Gf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Gf.worker=!0:typeof navigator>"u"?(Gf.node=!0,Gf.svgSupported=!0):$V(navigator.userAgent,Gf);function $V(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),l=t.match(/Edge?\/([\d.]+)/),u=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),l&&(n.edge=!0,n.version=l[1],n.newEdge=+l[1].split(".")[0]>18),u&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var f=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in f||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Tt=Gf;var Uw=12,jV="sans-serif",$f=Uw+"px "+jV,YV=20,WV=100,XV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function qV(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-YV)/WV;e[r]=a}return e}var QV=qV(XV),jf={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=jf.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||$f),t.measureText(n);n=n||"",r=r||$f;var l=/(\d+)px/.exec(r),u=l&&+l[1]||Uw,f=0;if(r.indexOf("mono")>=0)f=u*n.length;else for(var d=0;d<n.length;d++){var h=QV[n[d]];f+=h==null?u:h*u}return{width:f}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},eL=Wd(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),tL=Wd(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Yd=Object.prototype.toString,C0=Array.prototype,ZV=C0.forEach,KV=C0.filter,Vw=C0.slice,JV=C0.map,nL=function(){}.constructor,w0=nL?nL.prototype:null,Hw="__proto__",eH=2311;function rL(){return eH++}function Yf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Qt(t){if(t==null||typeof t!="object")return t;var e=t,n=Yd.call(t);if(n==="[object Array]"){if(!Bp(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Qt(t[r])}}else if(tL[n]){if(!Bp(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!eL[n]&&!Bp(t)&&!zp(t)){e={};for(var u in t)t.hasOwnProperty(u)&&u!==Hw&&(e[u]=Qt(t[u]))}return e}function cn(t,e,n){if(!it(e)||!it(t))return n?Qt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==Hw){var a=t[r],l=e[r];it(l)&&it(a)&&!Be(l)&&!Be(a)&&!zp(l)&&!zp(a)&&!iL(l)&&!iL(a)&&!Bp(l)&&!Bp(a)?cn(a,l,n):(n||!(r in t))&&(t[r]=Qt(e[r]))}return t}function Re(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Hw&&(t[n]=e[n]);return t}function Vt(t,e,n){for(var r=kn(e),a=0;a<r.length;a++){var l=r[a];(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}return t}jf.createCanvas;function dn(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function tH(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function ml(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var l=r[a];l!=="constructor"&&(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}else Vt(t,e,n)}function Ai(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function W(t,e,n){if(t&&e)if(t.forEach&&t.forEach===ZV)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var l in t)t.hasOwnProperty(l)&&e.call(n,t[l],l,t)}function ot(t,e,n){if(!t)return[];if(!e)return Gw(t);if(t.map&&t.map===JV)return t.map(e,n);for(var r=[],a=0,l=t.length;a<l;a++)r.push(e.call(n,t[a],a,t));return r}function Wd(t,e,n,r){if(t&&e){for(var a=0,l=t.length;a<l;a++)n=e.call(r,n,t[a],a,t);return n}}function Tr(t,e,n){if(!t)return[];if(!e)return Gw(t);if(t.filter&&t.filter===KV)return t.filter(e,n);for(var r=[],a=0,l=t.length;a<l;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function kn(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function nH(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(Vw.call(arguments)))}}var Qn=w0&&_t(w0.bind)?w0.call.bind(w0.bind):nH;function Aa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Vw.call(arguments)))}}function Be(t){return Array.isArray?Array.isArray(t):Yd.call(t)==="[object Array]"}function _t(t){return typeof t=="function"}function et(t){return typeof t=="string"}function x0(t){return Yd.call(t)==="[object String]"}function Nn(t){return typeof t=="number"}function it(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function iL(t){return!!eL[Yd.call(t)]}function ea(t){return!!tL[Yd.call(t)]}function zp(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function T0(t){return t.colorStops!=null}function rH(t){return t.image!=null}function aL(t){return Yd.call(t)==="[object RegExp]"}function Fp(t){return t!==t}function Wf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function kt(t,e){return t??e}function Xd(t,e,n){return t??e??n}function Gw(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Vw.apply(t,e)}function oL(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function bt(t,e){if(!t)throw new Error(e)}function yl(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lL="__ec_primitive__";function b0(t){t[lL]=!0}function Bp(t){return t[lL]}var iH=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return kn(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),uL=typeof Map=="function";function aH(){return uL?new Map:new iH}var oH=function(){function t(e){var n=Be(e);this.data=aH();var r=this;e instanceof t?e.each(a):e&&W(e,a);function a(l,u){n?r.set(l,u):r.set(u,l)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return uL?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function xt(t){return new oH(t)}function lH(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function E0(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Re(n,e),n}function sL(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function yu(t,e){return t.hasOwnProperty(e)}function ta(){}var uH=180/Math.PI;var $w=function(t,e){return $w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},$w(t,e)};function mn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$w(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function qd(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function sH(t){return[t[0],t[1]]}function fL(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function fH(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function cH(t){return Math.sqrt(dH(t))}function dH(t){return t[0]*t[0]+t[1]*t[1]}function jw(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function vH(t,e){var n=cH(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Yw(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Ww=Yw;function hH(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Qd=hH;function D0(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function eo(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function Zd(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Kd(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Jd=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),pH=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Jd(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,l=r-this._x,u=a-this._y;this._x=r,this._y=a,n.drift(l,u,e),this.handler.dispatchToElement(new Jd(n,e),"drag",e.event);var f=this.handler.findHover(r,a,n).target,d=this._dropTarget;this._dropTarget=f,n!==f&&(d&&f!==d&&this.handler.dispatchToElement(new Jd(d,e),"dragleave",e.event),f&&f!==d&&this.handler.dispatchToElement(new Jd(f,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Jd(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Jd(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const gH=pH;var mH=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var l=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var u=this._$eventProcessor;n!=null&&u&&u.normalizeQuery&&(n=u.normalizeQuery(n)),l[e]||(l[e]=[]);for(var f=0;f<l[e].length;f++)if(l[e][f].h===r)return this;var d={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},h=l[e].length-1,p=l[e][h];return p&&p.callAtLast?l[e].splice(h,0,d):l[e].push(d),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],l=0,u=r[e].length;l<u;l++)r[e][l].h!==n&&a.push(r[e][l]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=a.length,d=0;d<f;d++){var h=a[d];if(!(l&&l.filter&&h.query!=null&&!l.filter(e,h.query)))switch(u){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,n[0]);break;case 2:h.h.call(h.ctx,n[0],n[1]);break;default:h.h.apply(h.ctx,n);break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=n[u-1],d=a.length,h=0;h<d;h++){var p=a[h];if(!(l&&l.filter&&p.query!=null&&!l.filter(e,p.query)))switch(u){case 0:p.h.call(f);break;case 1:p.h.call(f,n[0]);break;case 2:p.h.call(f,n[0],n[1]);break;default:p.h.apply(f,n.slice(1,u-1));break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t}();const _l=mH;var yH=Math.log(2);function Xw(t,e,n,r,a,l){var u=r+"-"+a,f=t.length;if(l.hasOwnProperty(u))return l[u];if(e===1){var d=Math.round(Math.log((1<<f)-1&~a)/yH);return t[n][d]}for(var h=r|1<<n,p=n+1;r&1<<p;)p++;for(var m=0,S=0,_=0;S<f;S++){var w=1<<S;w&a||(m+=(_%2?-1:1)*t[n][S]*Xw(t,e-1,p,h,a|w,l),_++)}return l[u]=m,m}function cL(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=Xw(n,8,0,0,0,r);if(a!==0){for(var l=[],u=0;u<8;u++)for(var f=0;f<8;f++)l[f]==null&&(l[f]=0),l[f]+=((u+f)%2?-1:1)*Xw(n,7,u===0?1:0,1<<u,1<<f,r)/a*e[u];return function(d,h,p){var m=h*l[6]+p*l[7]+1;d[0]=(h*l[0]+p*l[1]+l[2])/m,d[1]=(h*l[3]+p*l[4]+l[5])/m}}}var dL="___zrEVENTSAVED",qw=[];function _H(t,e,n,r,a){return Qw(qw,e,r,a,!0)&&Qw(t,n,qw[0],qw[1])}function Qw(t,e,n,r,a){if(e.getBoundingClientRect&&Tt.domSupported&&!vL(e)){var l=e[dL]||(e[dL]={}),u=SH(e,l),f=CH(u,l,a);if(f)return f(t,n,r),!0}return!1}function SH(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],l=0;l<4;l++){var u=document.createElement("div"),f=u.style,d=l%2,h=(l>>1)%2;f.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[d]+":0",a[h]+":0",r[1-d]+":auto",a[1-h]+":auto",""].join("!important;"),t.appendChild(u),n.push(u)}return n}function CH(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],l=e.srcCoords,u=[],f=[],d=!0,h=0;h<4;h++){var p=t[h].getBoundingClientRect(),m=2*h,S=p.left,_=p.top;u.push(S,_),d=d&&l&&S===l[m]&&_===l[m+1],f.push(t[h].offsetLeft,t[h].offsetTop)}return d&&a?a:(e.srcCoords=u,e[r]=n?cL(f,u):cL(u,f))}function vL(t){return t.nodeName.toUpperCase()==="CANVAS"}var wH=/([&<>"'])/g,xH={"&":"&","<":"<",">":">",'"':""","'":"'"};function to(t){return t==null?"":(t+"").replace(wH,function(e,n){return xH[n]})}var TH=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zw=[],bH=Tt.browser.firefox&&+Tt.browser.version.split(".")[0]<39;function Kw(t,e,n,r){return n=n||{},r?hL(t,e,n):bH&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):hL(t,e,n),n}function hL(t,e,n){if(Tt.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(vL(t)){var l=t.getBoundingClientRect();n.zrX=r-l.left,n.zrY=a-l.top;return}else if(Qw(Zw,t,r,a)){n.zrX=Zw[0],n.zrY=Zw[1];return}}n.zrX=n.zrY=0}function Jw(t){return t||window.event}function no(t,e,n){if(e=Jw(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var u=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];u&&Kw(t,u,e,n)}else{Kw(t,e,e,n);var l=EH(e);e.zrDelta=l?l/120:-(e.detail||0)/3}var f=e.button;return e.which==null&&f!==void 0&&TH.test(e.type)&&(e.which=f&1?1:f&2?3:f&4?2:0),e}function EH(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),l=r>0?-1:r<0?1:n>0?-1:1;return 3*a*l}function DH(t,e,n,r){t.addEventListener(e,n,r)}function MH(t,e,n,r){t.removeEventListener(e,n,r)}var pL=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},RH=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var l={points:[],touches:[],target:n,event:e},u=0,f=a.length;u<f;u++){var d=a[u],h=Kw(r,d,{});l.points.push([h.zrX,h.zrY]),l.touches.push(d)}this._track.push(l)}},t.prototype._recognize=function(e){for(var n in ex)if(ex.hasOwnProperty(n)){var r=ex[n](this._track,e);if(r)return r}},t}();function gL(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function AH(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ex={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var l=gL(r)/gL(a);!isFinite(l)&&(l=1),e.pinchScale=l;var u=AH(r);return e.pinchX=u[0],e.pinchY=u[1],{type:"pinch",target:t[0].target,event:e}}}}};function Up(){return[1,0,0,1,0,0]}function tx(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function LH(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ev(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],l=e[0]*n[2]+e[2]*n[3],u=e[1]*n[2]+e[3]*n[3],f=e[0]*n[4]+e[2]*n[5]+e[4],d=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=l,t[3]=u,t[4]=f,t[5]=d,t}function nx(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function rx(t,e,n){var r=e[0],a=e[2],l=e[4],u=e[1],f=e[3],d=e[5],h=Math.sin(n),p=Math.cos(n);return t[0]=r*p+u*h,t[1]=-r*h+u*p,t[2]=a*p+f*h,t[3]=-a*h+p*f,t[4]=p*l+h*d,t[5]=p*d-h*l,t}function OH(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function M0(t,e){var n=e[0],r=e[2],a=e[4],l=e[1],u=e[3],f=e[5],d=n*u-l*r;return d?(d=1/d,t[0]=u*d,t[1]=-l*d,t[2]=-r*d,t[3]=n*d,t[4]=(r*f-u*a)*d,t[5]=(l*a-n*f)*d,t):null}var kH=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var l=1-a;e.x=l*n.x+a*r.x,e.y=l*n.y+a*r.y},t}();const vt=kH;var R0=Math.min,A0=Math.max,Xf=new vt,qf=new vt,Qf=new vt,Zf=new vt,Vp=new vt,Hp=new vt,NH=function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=R0(e.x,this.x),r=R0(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=A0(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=A0(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,l=Up();return nx(l,l,[-n.x,-n.y]),OH(l,l,[r,a]),nx(l,l,[e.x,e.y]),l},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,l=r.x+r.width,u=r.y,f=r.y+r.height,d=e.x,h=e.x+e.width,p=e.y,m=e.y+e.height,S=!(l<d||h<a||f<p||m<u);if(n){var _=1/0,w=0,E=Math.abs(l-d),b=Math.abs(h-a),D=Math.abs(f-p),A=Math.abs(m-u),O=Math.min(E,b),P=Math.min(D,A);l<d||h<a?O>w&&(w=O,E<b?vt.set(Hp,-E,0):vt.set(Hp,b,0)):O<_&&(_=O,E<b?vt.set(Vp,E,0):vt.set(Vp,-b,0)),f<p||m<u?P>w&&(w=P,D<A?vt.set(Hp,0,-D):vt.set(Hp,0,A)):O<_&&(_=O,D<A?vt.set(Vp,0,D):vt.set(Vp,0,-A))}return n&&vt.copy(n,S?Vp:Hp),S},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],l=r[3],u=r[4],f=r[5];e.x=n.x*a+u,e.y=n.y*l+f,e.width=n.width*a,e.height=n.height*l,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xf.x=Qf.x=n.x,Xf.y=Zf.y=n.y,qf.x=Zf.x=n.x+n.width,qf.y=Qf.y=n.y+n.height,Xf.transform(r),Zf.transform(r),qf.transform(r),Qf.transform(r),e.x=R0(Xf.x,qf.x,Qf.x,Zf.x),e.y=R0(Xf.y,qf.y,Qf.y,Zf.y);var d=A0(Xf.x,qf.x,Qf.x,Zf.x),h=A0(Xf.y,qf.y,Qf.y,Zf.y);e.width=d-e.x,e.height=h-e.y},t}();const Wt=NH;var mL="silent";function PH(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:IH}}function IH(){pL(this.event)}var zH=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_l),Gp=function(){function t(e,n){this.x=e,this.y=n}return t}(),FH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ix=new Wt(0,0,0,0),yL=function(t){mn(e,t);function e(n,r,a,l,u){var f=t.call(this)||this;return f._hovered=new Gp(0,0),f.storage=n,f.painter=r,f.painterRoot=l,f._pointerSize=u,a=a||new zH,f.proxy=null,f.setHandlerProxy(a),f._draggingMgr=new gH(f),f}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(W(FH,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,l=SL(this,r,a),u=this._hovered,f=u.target;f&&!f.__zr&&(u=this.findHover(u.x,u.y),f=u.target);var d=this._hovered=l?new Gp(r,a):this.findHover(r,a),h=d.target,p=this.proxy;p.setCursor&&p.setCursor(h?h.cursor:"default"),f&&h!==f&&this.dispatchToElement(u,"mouseout",n),this.dispatchToElement(d,"mousemove",n),h&&h!==f&&this.dispatchToElement(d,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Gp(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var l=n.target;if(!(l&&l.silent)){for(var u="on"+r,f=PH(r,n,a);l&&(l[u]&&(f.cancelBubble=!!l[u].call(l,f)),l.trigger(r,f),l=l.__hostTarget?l.__hostTarget:l.parent,!f.cancelBubble););f.cancelBubble||(this.trigger(r,f),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(d){typeof d[u]=="function"&&d[u].call(d,f),d.trigger&&d.trigger(r,f)}))}},e.prototype.findHover=function(n,r,a){var l=this.storage.getDisplayList(),u=new Gp(n,r);if(_L(l,u,n,r,a),this._pointerSize&&!u.target){for(var f=[],d=this._pointerSize,h=d/2,p=new Wt(n-h,r-h,d,d),m=l.length-1;m>=0;m--){var S=l[m];S!==a&&!S.ignore&&!S.ignoreCoarsePointer&&(!S.parent||!S.parent.ignoreCoarsePointer)&&(ix.copy(S.getBoundingRect()),S.transform&&ix.applyTransform(S.transform),ix.intersect(p)&&f.push(S))}if(f.length)for(var _=4,w=Math.PI/12,E=Math.PI*2,b=0;b<h;b+=_)for(var D=0;D<E;D+=w){var A=n+b*Math.cos(D),O=r+b*Math.sin(D);if(_L(f,u,A,O,a),u.target)return u}}return u},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new RH);var a=this._gestureMgr;r==="start"&&a.clear();var l=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),l){var u=l.type;n.gestureEvent=u;var f=new Gp;f.target=l.target,this.dispatchToElement(f,u,l.event)}},e}(_l);W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){yL.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=SL(this,n,r),l,u;if((t!=="mouseup"||!a)&&(l=this.findHover(n,r),u=l.target),t==="mousedown")this._downEl=u,this._downPoint=[e.zrX,e.zrY],this._upEl=u;else if(t==="mouseup")this._upEl=u;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ww(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(l,t,e)}});function BH(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,l=!1;r;){if(r.ignoreClip&&(l=!0),!l){var u=r.getClipPath();if(u&&!u.contain(e,n))return!1;r.silent&&(a=!0)}var f=r.__hostTarget;r=f||r.parent}return a?mL:!0}return!1}function _L(t,e,n,r,a){for(var l=t.length-1;l>=0;l--){var u=t[l],f=void 0;if(u!==a&&!u.ignore&&(f=BH(u,n,r))&&(!e.topTarget&&(e.topTarget=u),f!==mL)){e.target=u;break}}}function SL(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const UH=yL;var CL=32,$p=7;function VH(t){for(var e=0;t>=CL;)e|=t&1,t>>=1;return t+e}function wL(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;HH(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function HH(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function xL(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var l=t[r],u=e,f=r,d;u<f;)d=u+f>>>1,a(l,t[d])<0?f=d:u=d+1;var h=r-u;switch(h){case 3:t[u+3]=t[u+2];case 2:t[u+2]=t[u+1];case 1:t[u+1]=t[u];break;default:for(;h>0;)t[u+h]=t[u+h-1],h--}t[u]=l}}function ax(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])>0){for(f=r-a;d<f&&l(t,e[n+a+d])>0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}else{for(f=a+1;d<f&&l(t,e[n+a-d])<=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])>0?u=p+1:d=p}return d}function ox(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])<0){for(f=a+1;d<f&&l(t,e[n+a-d])<0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}else{for(f=r-a;d<f&&l(t,e[n+a+d])>=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])<0?d=p:u=p+1}return d}function GH(t,e){var n=$p,r,a,l=0;t.length;var u=[];r=[],a=[];function f(_,w){r[l]=_,a[l]=w,l+=1}function d(){for(;l>1;){var _=l-2;if(_>=1&&a[_-1]<=a[_]+a[_+1]||_>=2&&a[_-2]<=a[_]+a[_-1])a[_-1]<a[_+1]&&_--;else if(a[_]>a[_+1])break;p(_)}}function h(){for(;l>1;){var _=l-2;_>0&&a[_-1]<a[_+1]&&_--,p(_)}}function p(_){var w=r[_],E=a[_],b=r[_+1],D=a[_+1];a[_]=E+D,_===l-3&&(r[_+1]=r[_+2],a[_+1]=a[_+2]),l--;var A=ox(t[b],t,w,E,0,e);w+=A,E-=A,E!==0&&(D=ax(t[w+E-1],t,b,D,D-1,e),D!==0&&(E<=D?m(w,E,b,D):S(w,E,b,D)))}function m(_,w,E,b){var D=0;for(D=0;D<w;D++)u[D]=t[_+D];var A=0,O=E,P=_;if(t[P++]=t[O++],--b===0){for(D=0;D<w;D++)t[P+D]=u[A+D];return}if(w===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A];return}for(var I=n,F,U,H;;){F=0,U=0,H=!1;do if(e(t[O],u[A])<0){if(t[P++]=t[O++],U++,F=0,--b===0){H=!0;break}}else if(t[P++]=u[A++],F++,U=0,--w===1){H=!0;break}while((F|U)<I);if(H)break;do{if(F=ox(t[O],u,A,w,0,e),F!==0){for(D=0;D<F;D++)t[P+D]=u[A+D];if(P+=F,A+=F,w-=F,w<=1){H=!0;break}}if(t[P++]=t[O++],--b===0){H=!0;break}if(U=ax(u[A],t,O,b,0,e),U!==0){for(D=0;D<U;D++)t[P+D]=t[O+D];if(P+=U,O+=U,b-=U,b===0){H=!0;break}}if(t[P++]=u[A++],--w===1){H=!0;break}I--}while(F>=$p||U>=$p);if(H)break;I<0&&(I=0),I+=2}if(n=I,n<1&&(n=1),w===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A]}else{if(w===0)throw new Error;for(D=0;D<w;D++)t[P+D]=u[A+D]}}function S(_,w,E,b){var D=0;for(D=0;D<b;D++)u[D]=t[E+D];var A=_+w-1,O=b-1,P=E+b-1,I=0,F=0;if(t[P--]=t[A--],--w===0){for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D];return}if(b===1){for(P-=w,A-=w,F=P+1,I=A+1,D=w-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O];return}for(var U=n;;){var H=0,j=0,X=!1;do if(e(u[O],t[A])<0){if(t[P--]=t[A--],H++,j=0,--w===0){X=!0;break}}else if(t[P--]=u[O--],j++,H=0,--b===1){X=!0;break}while((H|j)<U);if(X)break;do{if(H=w-ox(u[O],t,_,w,w-1,e),H!==0){for(P-=H,A-=H,w-=H,F=P+1,I=A+1,D=H-1;D>=0;D--)t[F+D]=t[I+D];if(w===0){X=!0;break}}if(t[P--]=u[O--],--b===1){X=!0;break}if(j=b-ax(t[A],u,0,b,b-1,e),j!==0){for(P-=j,O-=j,b-=j,F=P+1,I=O+1,D=0;D<j;D++)t[F+D]=u[I+D];if(b<=1){X=!0;break}}if(t[P--]=t[A--],--w===0){X=!0;break}U--}while(H>=$p||j>=$p);if(X)break;U<0&&(U=0),U+=2}if(n=U,n<1&&(n=1),b===1){for(P-=w,A-=w,F=P+1,I=A+1,D=w-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O]}else{if(b===0)throw new Error;for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D]}}return{mergeRuns:d,forceMergeRuns:h,pushRun:f}}function L0(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var l=0;if(a<CL){l=wL(t,n,r,e),xL(t,n,r,n+l,e);return}var u=GH(t,e),f=VH(a);do{if(l=wL(t,n,r,e),l<f){var d=a;d>f&&(d=f),xL(t,n,n+d,n+l,e),l=d}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(a!==0);u.forceMergeRuns()}}var La=1,jp=2,tv=4,TL=!1;function lx(){TL||(TL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bL(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var $H=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bL}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,l=n.length;a<l;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,L0(r,bL)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var l=a,u=e;l;)l.parent=u,l.updateTransform(),n.push(l),u=l,l=l.getClipPath()}if(e.childrenRef){for(var f=e.childrenRef(),d=0;d<f.length;d++){var h=f[d];e.__dirty&&(h.__dirty|=La),this._updateAndAddDisplayable(h,n,r)}e.__dirty=0}else{var p=e;n&&n.length?p.__clipPaths=n:p.__clipPaths&&p.__clipPaths.length>0&&(p.__clipPaths=[]),isNaN(p.z)&&(lx(),p.z=0),isNaN(p.z2)&&(lx(),p.z2=0),isNaN(p.zlevel)&&(lx(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,n,r);var S=e.getTextGuideLine();S&&this._updateAndAddDisplayable(S,n,r);var _=e.getTextContent();_&&this._updateAndAddDisplayable(_,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=dn(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const jH=$H;var EL;EL=Tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const ux=EL;var O0={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-O0.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?O0.bounceIn(t*2)*.5:O0.bounceOut(t*2-1)*.5+.5}};const DL=O0;var k0=Math.pow,Ts=Math.sqrt,N0=1e-8,ML=1e-4,RL=Ts(3),P0=1/3,Sl=qd(),ro=qd(),nv=qd();function bs(t){return t>-N0&&t<N0}function AL(t){return t>N0||t<-N0}function Qr(t,e,n,r,a){var l=1-a;return l*l*(l*t+3*a*e)+a*a*(a*r+3*l*n)}function LL(t,e,n,r,a){var l=1-a;return 3*(((e-t)*l+2*(n-e)*a)*l+(r-n)*a*a)}function OL(t,e,n,r,a,l){var u=r+3*(e-n)-t,f=3*(n-e*2+t),d=3*(e-t),h=t-a,p=f*f-3*u*d,m=f*d-9*u*h,S=d*d-3*f*h,_=0;if(bs(p)&&bs(m))if(bs(f))l[0]=0;else{var w=-d/f;w>=0&&w<=1&&(l[_++]=w)}else{var E=m*m-4*p*S;if(bs(E)){var b=m/p,w=-f/u+b,D=-b/2;w>=0&&w<=1&&(l[_++]=w),D>=0&&D<=1&&(l[_++]=D)}else if(E>0){var A=Ts(E),O=p*f+1.5*u*(-m+A),P=p*f+1.5*u*(-m-A);O<0?O=-k0(-O,P0):O=k0(O,P0),P<0?P=-k0(-P,P0):P=k0(P,P0);var w=(-f-(O+P))/(3*u);w>=0&&w<=1&&(l[_++]=w)}else{var I=(2*p*f-3*u*m)/(2*Ts(p*p*p)),F=Math.acos(I)/3,U=Ts(p),H=Math.cos(F),w=(-f-2*U*H)/(3*u),D=(-f+U*(H+RL*Math.sin(F)))/(3*u),j=(-f+U*(H-RL*Math.sin(F)))/(3*u);w>=0&&w<=1&&(l[_++]=w),D>=0&&D<=1&&(l[_++]=D),j>=0&&j<=1&&(l[_++]=j)}}return _}function kL(t,e,n,r,a){var l=6*n-12*e+6*t,u=9*e+3*r-3*t-9*n,f=3*e-3*t,d=0;if(bs(u)){if(AL(l)){var h=-f/l;h>=0&&h<=1&&(a[d++]=h)}}else{var p=l*l-4*u*f;if(bs(p))a[0]=-l/(2*u);else if(p>0){var m=Ts(p),h=(-l+m)/(2*u),S=(-l-m)/(2*u);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function Es(t,e,n,r,a,l){var u=(e-t)*a+t,f=(n-e)*a+e,d=(r-n)*a+n,h=(f-u)*a+u,p=(d-f)*a+f,m=(p-h)*a+h;l[0]=t,l[1]=u,l[2]=h,l[3]=m,l[4]=m,l[5]=p,l[6]=d,l[7]=r}function NL(t,e,n,r,a,l,u,f,d,h,p){var m,S=.005,_=1/0,w,E,b,D;Sl[0]=d,Sl[1]=h;for(var A=0;A<1;A+=.05)ro[0]=Qr(t,n,a,u,A),ro[1]=Qr(e,r,l,f,A),b=Qd(Sl,ro),b<_&&(m=A,_=b);_=1/0;for(var O=0;O<32&&!(S<ML);O++)w=m-S,E=m+S,ro[0]=Qr(t,n,a,u,w),ro[1]=Qr(e,r,l,f,w),b=Qd(ro,Sl),w>=0&&b<_?(m=w,_=b):(nv[0]=Qr(t,n,a,u,E),nv[1]=Qr(e,r,l,f,E),D=Qd(nv,Sl),E<=1&&D<_?(m=E,_=D):S*=.5);return p&&(p[0]=Qr(t,n,a,u,m),p[1]=Qr(e,r,l,f,m)),Ts(_)}function YH(t,e,n,r,a,l,u,f,d){for(var h=t,p=e,m=0,S=1/d,_=1;_<=d;_++){var w=_*S,E=Qr(t,n,a,u,w),b=Qr(e,r,l,f,w),D=E-h,A=b-p;m+=Math.sqrt(D*D+A*A),h=E,p=b}return m}function fi(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function PL(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function WH(t,e,n,r,a){var l=t-2*e+n,u=2*(e-t),f=t-r,d=0;if(bs(l)){if(AL(u)){var h=-f/u;h>=0&&h<=1&&(a[d++]=h)}}else{var p=u*u-4*l*f;if(bs(p)){var h=-u/(2*l);h>=0&&h<=1&&(a[d++]=h)}else if(p>0){var m=Ts(p),h=(-u+m)/(2*l),S=(-u-m)/(2*l);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function IL(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function I0(t,e,n,r,a){var l=(e-t)*r+t,u=(n-e)*r+e,f=(u-l)*r+l;a[0]=t,a[1]=l,a[2]=f,a[3]=f,a[4]=u,a[5]=n}function zL(t,e,n,r,a,l,u,f,d){var h,p=.005,m=1/0;Sl[0]=u,Sl[1]=f;for(var S=0;S<1;S+=.05){ro[0]=fi(t,n,a,S),ro[1]=fi(e,r,l,S);var _=Qd(Sl,ro);_<m&&(h=S,m=_)}m=1/0;for(var w=0;w<32&&!(p<ML);w++){var E=h-p,b=h+p;ro[0]=fi(t,n,a,E),ro[1]=fi(e,r,l,E);var _=Qd(ro,Sl);if(E>=0&&_<m)h=E,m=_;else{nv[0]=fi(t,n,a,b),nv[1]=fi(e,r,l,b);var D=Qd(nv,Sl);b<=1&&D<m?(h=b,m=D):p*=.5}}return d&&(d[0]=fi(t,n,a,h),d[1]=fi(e,r,l,h)),Ts(m)}function XH(t,e,n,r,a,l,u){for(var f=t,d=e,h=0,p=1/u,m=1;m<=u;m++){var S=m*p,_=fi(t,n,a,S),w=fi(e,r,l,S),E=_-f,b=w-d;h+=Math.sqrt(E*E+b*b),f=_,d=w}return h}var qH=/cubic-bezier\(([0-9,\.e ]+)\)/;function FL(t){var e=t&&qH.exec(t);if(e){var n=e[1].split(","),r=+yl(n[0]),a=+yl(n[1]),l=+yl(n[2]),u=+yl(n[3]);if(isNaN(r+a+l+u))return;var f=[];return function(d){return d<=0?0:d>=1?1:OL(0,r,l,1,d,f)&&Qr(0,a,u,1,f[0])}}}var QH=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ta,this.ondestroy=e.ondestroy||ta,this.onrestart=e.onrestart||ta,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,l=a/r;l<0&&(l=0),l=Math.min(l,1);var u=this.easingFunc,f=u?u(l):l;if(this.onframe(f),l===1)if(this.loop){var d=a%r;this._startTime=e-d,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=_t(e)?e:DL[e]||FL(e)},t}();const ZH=QH;var BL=function(){function t(e){this.value=e}return t}(),KH=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new BL(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),JH=function(){function t(e){this._list=new KH,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,l=null;if(a[e]==null){var u=r.len(),f=this._lastRemovedEntry;if(u>=this._maxSize&&u>0){var d=r.head;r.remove(d),delete a[d.key],l=d.value,this._lastRemovedEntry=d}f?f.value=n:f=new BL(n),f.key=e,r.insertEntry(f),a[e]=f}return l},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Yp=JH;var UL={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Wp(t){return t=Math.round(t),t<0?0:t>255?255:t}function VL(t){return t<0?0:t>1?1:t}function sx(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Wp(parseFloat(e)/100*255):Wp(parseInt(e,10))}function Xp(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?VL(parseFloat(e)/100):VL(parseFloat(e))}function fx(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function io(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function cx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var HL=new Yp(20),z0=null;function rv(t,e){z0&&cx(z0,e),z0=HL.put(t,z0||e.slice())}function iv(t,e){if(t){e=e||[];var n=HL.get(t);if(n)return cx(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in UL)return cx(e,UL[r]),rv(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var l=parseInt(r.slice(1,4),16);if(!(l>=0&&l<=4095)){io(e,0,0,0,1);return}return io(e,(l&3840)>>4|(l&3840)>>8,l&240|(l&240)>>4,l&15|(l&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),rv(t,e),e}else if(a===7||a===9){var l=parseInt(r.slice(1,7),16);if(!(l>=0&&l<=16777215)){io(e,0,0,0,1);return}return io(e,(l&16711680)>>16,(l&65280)>>8,l&255,a===9?parseInt(r.slice(7),16)/255:1),rv(t,e),e}return}var u=r.indexOf("("),f=r.indexOf(")");if(u!==-1&&f+1===a){var d=r.substr(0,u),h=r.substr(u+1,f-(u+1)).split(","),p=1;switch(d){case"rgba":if(h.length!==4)return h.length===3?io(e,+h[0],+h[1],+h[2],1):io(e,0,0,0,1);p=Xp(h.pop());case"rgb":if(h.length>=3)return io(e,sx(h[0]),sx(h[1]),sx(h[2]),h.length===3?p:Xp(h[3])),rv(t,e),e;io(e,0,0,0,1);return;case"hsla":if(h.length!==4){io(e,0,0,0,1);return}return h[3]=Xp(h[3]),GL(h,e),rv(t,e),e;case"hsl":if(h.length!==3){io(e,0,0,0,1);return}return GL(h,e),rv(t,e),e;default:return}}io(e,0,0,0,1)}}function GL(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Xp(t[1]),a=Xp(t[2]),l=a<=.5?a*(r+1):a+r-a*r,u=a*2-l;return e=e||[],io(e,Wp(fx(u,l,n+1/3)*255),Wp(fx(u,l,n)*255),Wp(fx(u,l,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function $L(t,e){var n=iv(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return jL(n,n.length===4?"rgba":"rgb")}}function jL(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function F0(t,e){var n=iv(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function e4(t){return t.type==="linear"}function t4(t){return t.type==="radial"}(function(){return Tt.hasGlobalWindow&&_t(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&Yf("Base64 isn't natively supported in the current environment."),null}})();var dx=Array.prototype.slice;function _u(t,e,n){return(e-t)*n+t}function vx(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=_u(e[l],n[l],r);return t}function n4(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=_u(e[u][f],n[u][f],r)}return t}function B0(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=e[l]+n[l]*r;return t}function YL(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=e[u][f]+n[u][f]*r}return t}function r4(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,l=Math.min(n,r),u=a[l-1]||{color:[0,0,0,0],offset:0},f=l;f<Math.max(n,r);f++)a.push({offset:u.offset,color:u.color.slice()})}function i4(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var l=r.length,u=a.length;if(l!==u){var f=l>u;if(f)r.length=u;else for(var d=l;d<u;d++)r.push(n===1?a[d]:dx.call(a[d]))}for(var h=r[0]&&r[0].length,d=0;d<r.length;d++)if(n===1)isNaN(r[d])&&(r[d]=a[d]);else for(var p=0;p<h;p++)isNaN(r[d][p])&&(r[d][p]=a[d][p])}}function U0(t){if(Ai(t)){var e=t.length;if(Ai(t[0])){for(var n=[],r=0;r<e;r++)n.push(dx.call(t[r]));return n}return dx.call(t)}return t}function V0(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function a4(t){return Ai(t&&t[0])?2:1}var H0=0,G0=1,WL=2,qp=3,hx=4,px=5,XL=6;function qL(t){return t===hx||t===px}function $0(t){return t===G0||t===WL}var Qp=[0,0,0,0],o4=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,l=a.length,u=!1,f=XL,d=n;if(Ai(n)){var h=a4(n);f=h,(h===1&&!Nn(n[0])||h===2&&!Nn(n[0][0]))&&(u=!0)}else if(Nn(n)&&!Fp(n))f=H0;else if(et(n))if(!isNaN(+n))f=H0;else{var p=iv(n);p&&(d=p,f=qp)}else if(T0(n)){var m=Re({},d);m.colorStops=ot(n.colorStops,function(_){return{offset:_.offset,color:iv(_.color)}}),e4(n)?f=hx:t4(n)&&(f=px),d=m}l===0?this.valType=f:(f!==this.valType||f===XL)&&(u=!0),this.discrete=this.discrete||u;var S={time:e,value:d,rawValue:n,percent:0};return r&&(S.easing=r,S.easingFunc=_t(r)?r:DL[r]||FL(r)),a.push(S),S},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(E,b){return E.time-b.time});for(var a=this.valType,l=r.length,u=r[l-1],f=this.discrete,d=$0(a),h=qL(a),p=0;p<l;p++){var m=r[p],S=m.value,_=u.value;m.percent=m.time/e,f||(d&&p!==l-1?i4(S,_,a):h&&r4(S.colorStops,_.colorStops))}if(!f&&a!==px&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var w=r[0].value,p=0;p<l;p++)a===H0?r[p].additiveValue=r[p].value-w:a===qp?r[p].additiveValue=B0([],r[p].value,w,-1):$0(a)&&(r[p].additiveValue=a===G0?B0([],r[p].value,w,-1):YL([],r[p].value,w,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",l=this.valType,u=this.keyframes,f=u.length,d=this.propName,h=l===qp,p,m=this._lastFr,S=Math.min,_,w;if(f===1)_=w=u[0];else{if(n<0)p=0;else if(n<this._lastFrP){var E=S(m+1,f-1);for(p=E;p>=0&&!(u[p].percent<=n);p--);p=S(p,f-2)}else{for(p=m;p<f&&!(u[p].percent>n);p++);p=S(p-1,f-2)}w=u[p+1],_=u[p]}if(_&&w){this._lastFr=p,this._lastFrP=n;var b=w.percent-_.percent,D=b===0?1:S((n-_.percent)/b,1);w.easingFunc&&(D=w.easingFunc(D));var A=r?this._additiveValue:h?Qp:e[d];if(($0(l)||h)&&!A&&(A=this._additiveValue=[]),this.discrete)e[d]=D<1?_.rawValue:w.rawValue;else if($0(l))l===G0?vx(A,_[a],w[a],D):n4(A,_[a],w[a],D);else if(qL(l)){var O=_[a],P=w[a],I=l===hx;e[d]={type:I?"linear":"radial",x:_u(O.x,P.x,D),y:_u(O.y,P.y,D),colorStops:ot(O.colorStops,function(U,H){var j=P.colorStops[H];return{offset:_u(U.offset,j.offset,D),color:V0(vx([],U.color,j.color,D))}}),global:P.global},I?(e[d].x2=_u(O.x2,P.x2,D),e[d].y2=_u(O.y2,P.y2,D)):e[d].r=_u(O.r,P.r,D)}else if(h)vx(A,_[a],w[a],D),r||(e[d]=V0(A));else{var F=_u(_[a],w[a],D);r?this._additiveValue=F:e[d]=F}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===H0?e[r]=e[r]+a:n===qp?(iv(e[r],Qp),B0(Qp,Qp,a,1),e[r]=V0(Qp)):n===G0?B0(e[r],e[r],a,1):n===WL&&YL(e[r],e[r],a,1)},t}(),l4=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){Yf("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,kn(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var l=this._tracks,u=0;u<r.length;u++){var f=r[u],d=l[f];if(!d){d=l[f]=new o4(f);var h=void 0,p=this._getAdditiveTrack(f);if(p){var m=p.keyframes,S=m[m.length-1];h=S&&S.value,p.valType===qp&&h&&(h=V0(h))}else h=this._target[f];if(h==null)continue;e>0&&d.addKeyframe(0,U0(h),a),this._trackKeys.push(f)}d.addKeyframe(e,U0(n[f]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var l=r[a].getTrack(e);l&&(n=l)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,l=0;l<this._trackKeys.length;l++){var u=this._trackKeys[l],f=this._tracks[u],d=this._getAdditiveTrack(u),h=f.keyframes,p=h.length;if(f.prepare(a,d),f.needsAnimate())if(!this._allowDiscrete&&f.discrete){var m=h[p-1];m&&(n._target[f.propName]=m.rawValue),f.setFinished()}else r.push(f)}if(r.length||this._force){var S=new ZH({life:a,loop:this._loop,delay:this._delay||0,onframe:function(_){n._started=2;var w=n._additiveAnimators;if(w){for(var E=!1,b=0;b<w.length;b++)if(w[b]._clip){E=!0;break}E||(n._additiveAnimators=null)}for(var b=0;b<r.length;b++)r[b].step(n._target,_);var D=n._onframeCbs;if(D)for(var b=0;b<D.length;b++)D[b](n._target,_)},ondestroy:function(){n._doneCallback()}});this._clip=S,this.animation&&this.animation.addClip(S),e&&S.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ot(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,l=0;l<e.length;l++){var u=r[e[l]];u&&!u.isFinished()&&(n?u.step(this._target,1):this._started===1&&u.step(this._target,0),u.setFinished())}for(var f=!0,l=0;l<a.length;l++)if(!r[a[l]].isFinished()){f=!1;break}return f&&this._abortedCallback(),f},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var l=n[a],u=this._tracks[l];if(!(!u||u.isFinished())){var f=u.keyframes,d=f[r?0:f.length-1];d&&(e[l]=U0(d.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||kn(e);for(var r=0;r<n.length;r++){var a=n[r],l=this._tracks[a];if(l){var u=l.keyframes;if(u.length>1){var f=u.pop();l.addKeyframe(f.time,e[a]),l.prepare(this._maxTime,l.getAdditiveTrack())}}}},t}();const gx=l4;function av(){return new Date().getTime()}var u4=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=av()-this._pausedTime,a=r-this._time,l=this._head;l;){var u=l.next,f=l.step(r,a);f&&(l.ondestroy(),this.removeClip(l)),l=u}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(ux(r),!n._paused&&n.update())}ux(r)},e.prototype.start=function(){this._running||(this._time=av(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=av(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=av()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new gx(n,r.loop);return this.addAnimator(a),a},e}(_l);const s4=u4;var f4=300,mx=Tt.domSupported,yx=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ot(t,function(a){var l=a.replace("mouse","pointer");return n.hasOwnProperty(l)?l:a});return{mouse:t,touch:e,pointer:r}}(),QL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ZL=!1;function _x(t){var e=t.pointerType;return e==="pen"||e==="touch"}function c4(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Sx(t){t&&(t.zrByTouch=!0)}function d4(t,e){return no(t.dom,new v4(t,e),!0)}function KL(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var v4=function(){function t(e,n){this.stopPropagation=ta,this.stopImmediatePropagation=ta,this.preventDefault=ta,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Lo={mousedown:function(t){t=no(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=no(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=no(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=no(this.dom,t);var e=t.toElement||t.relatedTarget;KL(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ZL=!0,t=no(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ZL||(t=no(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=no(this.dom,t),Sx(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lo.mousemove.call(this,t),Lo.mousedown.call(this,t)},touchmove:function(t){t=no(this.dom,t),Sx(t),this.handler.processGesture(t,"change"),Lo.mousemove.call(this,t)},touchend:function(t){t=no(this.dom,t),Sx(t),this.handler.processGesture(t,"end"),Lo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<f4&&Lo.click.call(this,t)},pointerdown:function(t){Lo.mousedown.call(this,t)},pointermove:function(t){_x(t)||Lo.mousemove.call(this,t)},pointerup:function(t){Lo.mouseup.call(this,t)},pointerout:function(t){_x(t)||Lo.mouseout.call(this,t)}};W(["click","dblclick","contextmenu"],function(t){Lo[t]=function(e){e=no(this.dom,e),this.trigger(t,e)}});var Cx={pointermove:function(t){_x(t)||Cx.mousemove.call(this,t)},pointerup:function(t){Cx.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function h4(t,e){var n=e.domHandlers;Tt.pointerEventsSupported?W(yx.pointer,function(r){j0(e,r,function(a){n[r].call(t,a)})}):(Tt.touchEventsSupported&&W(yx.touch,function(r){j0(e,r,function(a){n[r].call(t,a),c4(e)})}),W(yx.mouse,function(r){j0(e,r,function(a){a=Jw(a),e.touching||n[r].call(t,a)})}))}function p4(t,e){Tt.pointerEventsSupported?W(QL.pointer,n):Tt.touchEventsSupported||W(QL.mouse,n);function n(r){function a(l){l=Jw(l),KL(t,l.target)||(l=d4(t,l),e.domHandlers[r].call(t,l))}j0(e,r,a,{capture:!0})}}function j0(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,DH(t.domTarget,e,n,r)}function xx(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&MH(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var JL=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),g4=function(t){mn(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new JL(n,Lo),mx&&(a._globalHandlerScope=new JL(document,Cx)),h4(a,a._localHandlerScope),a}return e.prototype.dispose=function(){xx(this._localHandlerScope),mx&&xx(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,mx&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?p4(this,r):xx(r)}},e}(_l);const m4=g4;var eO=1;Tt.hasGlobalWindow&&(eO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Y0=eO,Tx=.4,bx="#333",Ex="#ccc",y4="#eee",tO=tx,nO=5e-5;function Kf(t){return t>nO||t<-nO}var Jf=[],ov=[],Dx=Up(),Mx=Math.abs,_4=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Kf(this.rotation)||Kf(this.x)||Kf(this.y)||Kf(this.scaleX-1)||Kf(this.scaleY-1)||Kf(this.skewX)||Kf(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&tO(r);return}r=r||Up(),n?this.getLocalTransform(r):tO(r),e&&(n?ev(r,e,r):LH(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Jf);var r=Jf[0]<0?-1:1,a=Jf[1]<0?-1:1,l=((Jf[0]-r)*n+r)/Jf[0]||0,u=((Jf[1]-a)*n+a)/Jf[1]||0;e[0]*=l,e[1]*=l,e[2]*=u,e[3]*=u}this.invTransform=this.invTransform||Up(),M0(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),l=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(l),n=Math.sqrt(n),this.skewX=l,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(ev(ov,e.invTransform,n),n=ov);var r=this.originX,a=this.originY;(r||a)&&(Dx[4]=r,Dx[5]=a,ev(ov,n,Dx),ov[4]-=r,ov[5]-=a,n=ov),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&eo(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&eo(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&Mx(e[0]-1)>1e-10&&Mx(e[3]-1)>1e-10?Math.sqrt(Mx(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){S4(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,l=e.scaleX,u=e.scaleY,f=e.anchorX,d=e.anchorY,h=e.rotation||0,p=e.x,m=e.y,S=e.skewX?Math.tan(e.skewX):0,_=e.skewY?Math.tan(-e.skewY):0;if(r||a||f||d){var w=r+f,E=a+d;n[4]=-w*l-S*E*u,n[5]=-E*u-_*w*l}else n[4]=n[5]=0;return n[0]=l,n[3]=u,n[1]=_*l,n[2]=S*u,h&&rx(n,n,h),n[4]+=r+p,n[5]+=a+m,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Zp=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function S4(t,e){for(var n=0;n<Zp.length;n++){var r=Zp[n];t[r]=e[r]}}const Kp=_4;var rO={};function Oa(t,e){e=e||$f;var n=rO[e];n||(n=rO[e]=new Yp(500));var r=n.get(t);return r==null&&(r=jf.measureText(t,e).width,n.put(t,r)),r}function iO(t,e,n,r){var a=Oa(t,e),l=Ax(e),u=Jp(0,a,n),f=lv(0,l,r),d=new Wt(u,f,a,l);return d}function Rx(t,e,n,r){var a=((t||"")+"").split(`
|
|
191
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ji.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rA,Ji.createPortal=_ne,Ji.createRoot=Cne,Ji.findDOMNode=hne,Ji.flushSync=xne,Ji.hydrate=pne,Ji.hydrateRoot=wne,Ji.render=gne,Ji.unmountComponentAtNode=yne,Ji.unstable_batchedUpdates=kR,Ji.unstable_renderSubtreeIntoContainer=Sne,Ji.version=QR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ji}(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(e(),t.exports=PV()):t.exports=IV()})(VA);const XA=vU(VA.exports),qA=[Hf.jpeg,Hf.jpg,Hf.png],QA=t=>{const{maxCount:e=1,listType:n="picture-card",fileList:r=[],maxSize:a=2,accept:l=qA.join(",")}=t,[u,f]=ft.useState(!1),[d,h]=ft.useState(""),p=()=>n!=="text"?zr("div",{children:[Fe(vV,{}),Fe("div",{style:{marginTop:8},children:"上传"})]}):Fe(gt.Button,{icon:Fe(_V,{}),children:"上传"}),m=w=>{const E=l.split(",");if(!E.includes(w.type)){const D=E.map(A=>{var O;return(O=Gd.find(Array.from(_0),P=>P[1]===A))==null?void 0:O[0]});return gt.message.error(`只允许上传 ${D.join(", ")} 文件`),gt.Upload.LIST_IGNORE}return w.size/1024/1024<a?!0:(gt.message.error(`文件必须小于${a}MB`),gt.Upload.LIST_IGNORE)},S=w=>{t.onChange&&t.onChange(w)},_=async w=>{if(w.type||(w.type=UA(w.name||w.url)),w.type===Hf.pdf)return gt.Modal.info({title:"PDF",width:"60%",content:Fe("iframe",{title:"PDF预览",src:w.url||w.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});qA.includes(w.type)&&(!w.url&&!w.thumbUrl&&!w.preview&&(w.preview=await BA(w.originFileObj)),h(w.url||w.thumbUrl||w.preview),f(!0))};return zr(oA,{children:[Fe(gt.Upload,{...t,onPreview:_,beforeUpload:m,onChange:S,listType:n,children:r.length>=e?null:p()}),Fe(zV,{visible:u,src:d,onVisibleChange:()=>{f(!1),h("")}})]})},zV=t=>{const{visible:e,src:n,onVisibleChange:r}=t;return XA.createPortal(Fe(gt.Image,{style:{display:"none"},src:n,preview:{visible:e,src:n,onVisibleChange:r}}),document.body)},S0={fieldModal:"_fieldModal_1comf_1",content:"_content_1comf_22",suffix:"_suffix_1comf_25",placeholder:"_placeholder_1comf_36"},FV={labelCol:{span:4},wrapperCol:{span:20}},BV=t=>{switch(t){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},ZA=t=>{const{items:e,rowProps:n,formProps:r,readonly:a=!1,hiddenTitle:l=!1}=t,u=(d,h)=>{var p,m;if(h.btnType==="submit"){(p=r==null?void 0:r.form)==null||p.validateFields().then(S=>{h.onClick&&h.onClick(S)});return}if(h.btnType==="reset"){(m=r==null?void 0:r.form)==null||m.resetFields(),h.onClick&&h.onClick(d);return}h.btnType==="cancel"&&h.onClick&&h.onClick(d)},f=d=>Array.isArray(d)?d:d&&d.fileList;return Fe(gt.Form,{layout:"horizontal",form:r==null?void 0:r.form,...FV,...r||{},children:Fe(gt.Row,{gutter:16,...n,children:e.filter(d=>!d.hidden).map(d=>{var h,p;return Fe(gt.Col,{...d.colProps||{span:24},children:Fe(gt.Form.Item,{...d.valueType==="upload"?{getValueFromEvent:f}:{},label:l?"":d.title,name:d.valueType==="btns"?void 0:d.dataIndex,...d.formItemProps,children:d.readonly?Fe("div",{children:d.value||((h=r==null?void 0:r.initialValues)==null?void 0:h[d.dataIndex])}):d.readonly===void 0&&a?Fe("div",{children:d.value||((p=r==null?void 0:r.initialValues)==null?void 0:p[d.dataIndex])}):Fe(KA,{onChange:m=>{var S;return(S=d==null?void 0:d.onChange)==null?void 0:S.call(d,m)},valueType:d.valueType,onBtnClick:u,valueProps:d.valueProps})})},d.dataIndex)})})})},KA=t=>{const{valueType:e,valueProps:n,value:r,onChange:a,onBtnClick:l,inputRef:u}=t,f=ft.useMemo(()=>{let d=Fe(gt.Input,{placeholder:"请输入",...n,allowClear:!0});switch(e){case"modal":d=Fe(UV,{...n});break;case"checkbox":d=Fe(gt.Checkbox.Group,{...n});break;case"select":d=Fe(gt.Select,{placeholder:"请选择",...n,allowClear:!0});break;case"inputNumber":d=Fe(gt.InputNumber,{style:{width:"100%"},placeholder:"请输入",...n});break;case"textarea":d=Fe(gt.Input.TextArea,{placeholder:"请输入",...n,allowClear:!0});break;case"radio":d=Fe(gt.Radio.Group,{...n});break;case"switch":d=Fe(gt.Switch,{...n});break;case"datePicker":d=Fe(gt.DatePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"rangePicker":d=Fe(gt.DatePicker.RangePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"timePicker":d=Fe(gt.TimePicker,{style:{width:"100%"},...n,allowClear:!0});break;case"cascader":d=Fe(gt.Cascader,{...n,allowClear:!0});break;case"upload":d=Fe(QA,{...n});break;case"btns":d=Fe(gt.Space,{children:n==null?void 0:n.map(h=>ft.createElement(gt.Button,{type:h.btnType==="submit"?"primary":"default",...Gd.omit(h,["btnType"]),key:h.btnType,onClick:p=>{l==null||l(p,h)}},h.title))});break}return d},[e,n,a,r]);return ft.cloneElement(f,{[BV(e||"input")]:r,onChange:a,ref:u})},UV=t=>{const{placeholder:e,labelKey:n,onToggle:r,value:a,onClear:l}=t;return zr("div",{className:S0.fieldModal,children:[Fe("div",{className:S0.content,onClick:()=>r(!0),children:a?Fe("span",{children:a[n]}):Fe("span",{className:S0.placeholder,children:e})}),Fe("span",{className:S0.suffix,onClick:l,children:a&&Fe(lV,{})})]})},JA={main:"_main_1xnte_1",search:"_search_1xnte_4"};function VV(t){const{tableProps:e={},searchProps:n}=t,{columns:r=[],...a}=e;return zr("div",{className:JA.main,children:[n&&Fe(ZA,{hiddenTitle:!0,...n,items:n.items}),Fe(gt.Table,{columns:r.filter(l=>!l.hidden),...a,className:$d(JA.table,e==null?void 0:e.className),pagination:{hideOnSinglePage:!0,showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:l=>`共 ${l} 条`,...e==null?void 0:e.pagination}})]})}var Bw=function(t,e){return Bw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Bw(t,e)};function Pt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bw(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var HV=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),GV=function(){function t(){this.browser=new HV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Gf=new GV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Gf.wxa=!0,Gf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Gf.worker=!0:typeof navigator>"u"?(Gf.node=!0,Gf.svgSupported=!0):$V(navigator.userAgent,Gf);function $V(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),l=t.match(/Edge?\/([\d.]+)/),u=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),l&&(n.edge=!0,n.version=l[1],n.newEdge=+l[1].split(".")[0]>18),u&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var f=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in f||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Tt=Gf;var Uw=12,jV="sans-serif",$f=Uw+"px "+jV,YV=20,WV=100,XV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function qV(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-YV)/WV;e[r]=a}return e}var QV=qV(XV),jf={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=jf.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||$f),t.measureText(n);n=n||"",r=r||$f;var l=/(\d+)px/.exec(r),u=l&&+l[1]||Uw,f=0;if(r.indexOf("mono")>=0)f=u*n.length;else for(var d=0;d<n.length;d++){var h=QV[n[d]];f+=h==null?u:h*u}return{width:f}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},eL=Wd(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),tL=Wd(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Yd=Object.prototype.toString,C0=Array.prototype,ZV=C0.forEach,KV=C0.filter,Vw=C0.slice,JV=C0.map,nL=function(){}.constructor,w0=nL?nL.prototype:null,Hw="__proto__",eH=2311;function rL(){return eH++}function Yf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Qt(t){if(t==null||typeof t!="object")return t;var e=t,n=Yd.call(t);if(n==="[object Array]"){if(!Bp(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Qt(t[r])}}else if(tL[n]){if(!Bp(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!eL[n]&&!Bp(t)&&!zp(t)){e={};for(var u in t)t.hasOwnProperty(u)&&u!==Hw&&(e[u]=Qt(t[u]))}return e}function cn(t,e,n){if(!it(e)||!it(t))return n?Qt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==Hw){var a=t[r],l=e[r];it(l)&&it(a)&&!Be(l)&&!Be(a)&&!zp(l)&&!zp(a)&&!iL(l)&&!iL(a)&&!Bp(l)&&!Bp(a)?cn(a,l,n):(n||!(r in t))&&(t[r]=Qt(e[r]))}return t}function Re(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Hw&&(t[n]=e[n]);return t}function Vt(t,e,n){for(var r=kn(e),a=0;a<r.length;a++){var l=r[a];(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}return t}jf.createCanvas;function dn(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function tH(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function ml(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var l=r[a];l!=="constructor"&&(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}else Vt(t,e,n)}function Ai(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function W(t,e,n){if(t&&e)if(t.forEach&&t.forEach===ZV)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var l in t)t.hasOwnProperty(l)&&e.call(n,t[l],l,t)}function ot(t,e,n){if(!t)return[];if(!e)return Gw(t);if(t.map&&t.map===JV)return t.map(e,n);for(var r=[],a=0,l=t.length;a<l;a++)r.push(e.call(n,t[a],a,t));return r}function Wd(t,e,n,r){if(t&&e){for(var a=0,l=t.length;a<l;a++)n=e.call(r,n,t[a],a,t);return n}}function Tr(t,e,n){if(!t)return[];if(!e)return Gw(t);if(t.filter&&t.filter===KV)return t.filter(e,n);for(var r=[],a=0,l=t.length;a<l;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function kn(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function nH(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(Vw.call(arguments)))}}var Qn=w0&&_t(w0.bind)?w0.call.bind(w0.bind):nH;function Aa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Vw.call(arguments)))}}function Be(t){return Array.isArray?Array.isArray(t):Yd.call(t)==="[object Array]"}function _t(t){return typeof t=="function"}function et(t){return typeof t=="string"}function x0(t){return Yd.call(t)==="[object String]"}function Nn(t){return typeof t=="number"}function it(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function iL(t){return!!eL[Yd.call(t)]}function ea(t){return!!tL[Yd.call(t)]}function zp(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function T0(t){return t.colorStops!=null}function rH(t){return t.image!=null}function aL(t){return Yd.call(t)==="[object RegExp]"}function Fp(t){return t!==t}function Wf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function kt(t,e){return t??e}function Xd(t,e,n){return t??e??n}function Gw(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Vw.apply(t,e)}function oL(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function bt(t,e){if(!t)throw new Error(e)}function yl(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lL="__ec_primitive__";function b0(t){t[lL]=!0}function Bp(t){return t[lL]}var iH=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return kn(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),uL=typeof Map=="function";function aH(){return uL?new Map:new iH}var oH=function(){function t(e){var n=Be(e);this.data=aH();var r=this;e instanceof t?e.each(a):e&&W(e,a);function a(l,u){n?r.set(l,u):r.set(u,l)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return uL?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function xt(t){return new oH(t)}function lH(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function E0(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Re(n,e),n}function sL(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function yu(t,e){return t.hasOwnProperty(e)}function ta(){}var uH=180/Math.PI;var $w=function(t,e){return $w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},$w(t,e)};function mn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$w(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function qd(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function sH(t){return[t[0],t[1]]}function fL(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function fH(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function cH(t){return Math.sqrt(dH(t))}function dH(t){return t[0]*t[0]+t[1]*t[1]}function jw(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function vH(t,e){var n=cH(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Yw(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Ww=Yw;function hH(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Qd=hH;function D0(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function eo(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function Zd(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Kd(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Jd=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),pH=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Jd(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,l=r-this._x,u=a-this._y;this._x=r,this._y=a,n.drift(l,u,e),this.handler.dispatchToElement(new Jd(n,e),"drag",e.event);var f=this.handler.findHover(r,a,n).target,d=this._dropTarget;this._dropTarget=f,n!==f&&(d&&f!==d&&this.handler.dispatchToElement(new Jd(d,e),"dragleave",e.event),f&&f!==d&&this.handler.dispatchToElement(new Jd(f,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Jd(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Jd(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const gH=pH;var mH=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var l=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var u=this._$eventProcessor;n!=null&&u&&u.normalizeQuery&&(n=u.normalizeQuery(n)),l[e]||(l[e]=[]);for(var f=0;f<l[e].length;f++)if(l[e][f].h===r)return this;var d={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},h=l[e].length-1,p=l[e][h];return p&&p.callAtLast?l[e].splice(h,0,d):l[e].push(d),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],l=0,u=r[e].length;l<u;l++)r[e][l].h!==n&&a.push(r[e][l]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=a.length,d=0;d<f;d++){var h=a[d];if(!(l&&l.filter&&h.query!=null&&!l.filter(e,h.query)))switch(u){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,n[0]);break;case 2:h.h.call(h.ctx,n[0],n[1]);break;default:h.h.apply(h.ctx,n);break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],l=this._$eventProcessor;if(a)for(var u=n.length,f=n[u-1],d=a.length,h=0;h<d;h++){var p=a[h];if(!(l&&l.filter&&p.query!=null&&!l.filter(e,p.query)))switch(u){case 0:p.h.call(f);break;case 1:p.h.call(f,n[0]);break;case 2:p.h.call(f,n[0],n[1]);break;default:p.h.apply(f,n.slice(1,u-1));break}}return l&&l.afterTrigger&&l.afterTrigger(e),this},t}();const _l=mH;var yH=Math.log(2);function Xw(t,e,n,r,a,l){var u=r+"-"+a,f=t.length;if(l.hasOwnProperty(u))return l[u];if(e===1){var d=Math.round(Math.log((1<<f)-1&~a)/yH);return t[n][d]}for(var h=r|1<<n,p=n+1;r&1<<p;)p++;for(var m=0,S=0,_=0;S<f;S++){var w=1<<S;w&a||(m+=(_%2?-1:1)*t[n][S]*Xw(t,e-1,p,h,a|w,l),_++)}return l[u]=m,m}function cL(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=Xw(n,8,0,0,0,r);if(a!==0){for(var l=[],u=0;u<8;u++)for(var f=0;f<8;f++)l[f]==null&&(l[f]=0),l[f]+=((u+f)%2?-1:1)*Xw(n,7,u===0?1:0,1<<u,1<<f,r)/a*e[u];return function(d,h,p){var m=h*l[6]+p*l[7]+1;d[0]=(h*l[0]+p*l[1]+l[2])/m,d[1]=(h*l[3]+p*l[4]+l[5])/m}}}var dL="___zrEVENTSAVED",qw=[];function _H(t,e,n,r,a){return Qw(qw,e,r,a,!0)&&Qw(t,n,qw[0],qw[1])}function Qw(t,e,n,r,a){if(e.getBoundingClientRect&&Tt.domSupported&&!vL(e)){var l=e[dL]||(e[dL]={}),u=SH(e,l),f=CH(u,l,a);if(f)return f(t,n,r),!0}return!1}function SH(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],l=0;l<4;l++){var u=document.createElement("div"),f=u.style,d=l%2,h=(l>>1)%2;f.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[d]+":0",a[h]+":0",r[1-d]+":auto",a[1-h]+":auto",""].join("!important;"),t.appendChild(u),n.push(u)}return n}function CH(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],l=e.srcCoords,u=[],f=[],d=!0,h=0;h<4;h++){var p=t[h].getBoundingClientRect(),m=2*h,S=p.left,_=p.top;u.push(S,_),d=d&&l&&S===l[m]&&_===l[m+1],f.push(t[h].offsetLeft,t[h].offsetTop)}return d&&a?a:(e.srcCoords=u,e[r]=n?cL(f,u):cL(u,f))}function vL(t){return t.nodeName.toUpperCase()==="CANVAS"}var wH=/([&<>"'])/g,xH={"&":"&","<":"<",">":">",'"':""","'":"'"};function to(t){return t==null?"":(t+"").replace(wH,function(e,n){return xH[n]})}var TH=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zw=[],bH=Tt.browser.firefox&&+Tt.browser.version.split(".")[0]<39;function Kw(t,e,n,r){return n=n||{},r?hL(t,e,n):bH&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):hL(t,e,n),n}function hL(t,e,n){if(Tt.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(vL(t)){var l=t.getBoundingClientRect();n.zrX=r-l.left,n.zrY=a-l.top;return}else if(Qw(Zw,t,r,a)){n.zrX=Zw[0],n.zrY=Zw[1];return}}n.zrX=n.zrY=0}function Jw(t){return t||window.event}function no(t,e,n){if(e=Jw(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var u=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];u&&Kw(t,u,e,n)}else{Kw(t,e,e,n);var l=EH(e);e.zrDelta=l?l/120:-(e.detail||0)/3}var f=e.button;return e.which==null&&f!==void 0&&TH.test(e.type)&&(e.which=f&1?1:f&2?3:f&4?2:0),e}function EH(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),l=r>0?-1:r<0?1:n>0?-1:1;return 3*a*l}function DH(t,e,n,r){t.addEventListener(e,n,r)}function MH(t,e,n,r){t.removeEventListener(e,n,r)}var pL=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},RH=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var l={points:[],touches:[],target:n,event:e},u=0,f=a.length;u<f;u++){var d=a[u],h=Kw(r,d,{});l.points.push([h.zrX,h.zrY]),l.touches.push(d)}this._track.push(l)}},t.prototype._recognize=function(e){for(var n in ex)if(ex.hasOwnProperty(n)){var r=ex[n](this._track,e);if(r)return r}},t}();function gL(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function AH(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ex={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var l=gL(r)/gL(a);!isFinite(l)&&(l=1),e.pinchScale=l;var u=AH(r);return e.pinchX=u[0],e.pinchY=u[1],{type:"pinch",target:t[0].target,event:e}}}}};function Up(){return[1,0,0,1,0,0]}function tx(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function LH(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ev(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],l=e[0]*n[2]+e[2]*n[3],u=e[1]*n[2]+e[3]*n[3],f=e[0]*n[4]+e[2]*n[5]+e[4],d=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=l,t[3]=u,t[4]=f,t[5]=d,t}function nx(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function rx(t,e,n){var r=e[0],a=e[2],l=e[4],u=e[1],f=e[3],d=e[5],h=Math.sin(n),p=Math.cos(n);return t[0]=r*p+u*h,t[1]=-r*h+u*p,t[2]=a*p+f*h,t[3]=-a*h+p*f,t[4]=p*l+h*d,t[5]=p*d-h*l,t}function OH(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function M0(t,e){var n=e[0],r=e[2],a=e[4],l=e[1],u=e[3],f=e[5],d=n*u-l*r;return d?(d=1/d,t[0]=u*d,t[1]=-l*d,t[2]=-r*d,t[3]=n*d,t[4]=(r*f-u*a)*d,t[5]=(l*a-n*f)*d,t):null}var kH=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var l=1-a;e.x=l*n.x+a*r.x,e.y=l*n.y+a*r.y},t}();const vt=kH;var R0=Math.min,A0=Math.max,Xf=new vt,qf=new vt,Qf=new vt,Zf=new vt,Vp=new vt,Hp=new vt,NH=function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=R0(e.x,this.x),r=R0(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=A0(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=A0(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,l=Up();return nx(l,l,[-n.x,-n.y]),OH(l,l,[r,a]),nx(l,l,[e.x,e.y]),l},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,l=r.x+r.width,u=r.y,f=r.y+r.height,d=e.x,h=e.x+e.width,p=e.y,m=e.y+e.height,S=!(l<d||h<a||f<p||m<u);if(n){var _=1/0,w=0,E=Math.abs(l-d),b=Math.abs(h-a),D=Math.abs(f-p),A=Math.abs(m-u),O=Math.min(E,b),P=Math.min(D,A);l<d||h<a?O>w&&(w=O,E<b?vt.set(Hp,-E,0):vt.set(Hp,b,0)):O<_&&(_=O,E<b?vt.set(Vp,E,0):vt.set(Vp,-b,0)),f<p||m<u?P>w&&(w=P,D<A?vt.set(Hp,0,-D):vt.set(Hp,0,A)):O<_&&(_=O,D<A?vt.set(Vp,0,D):vt.set(Vp,0,-A))}return n&&vt.copy(n,S?Vp:Hp),S},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],l=r[3],u=r[4],f=r[5];e.x=n.x*a+u,e.y=n.y*l+f,e.width=n.width*a,e.height=n.height*l,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Xf.x=Qf.x=n.x,Xf.y=Zf.y=n.y,qf.x=Zf.x=n.x+n.width,qf.y=Qf.y=n.y+n.height,Xf.transform(r),Zf.transform(r),qf.transform(r),Qf.transform(r),e.x=R0(Xf.x,qf.x,Qf.x,Zf.x),e.y=R0(Xf.y,qf.y,Qf.y,Zf.y);var d=A0(Xf.x,qf.x,Qf.x,Zf.x),h=A0(Xf.y,qf.y,Qf.y,Zf.y);e.width=d-e.x,e.height=h-e.y},t}();const Wt=NH;var mL="silent";function PH(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:IH}}function IH(){pL(this.event)}var zH=function(t){mn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_l),Gp=function(){function t(e,n){this.x=e,this.y=n}return t}(),FH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ix=new Wt(0,0,0,0),yL=function(t){mn(e,t);function e(n,r,a,l,u){var f=t.call(this)||this;return f._hovered=new Gp(0,0),f.storage=n,f.painter=r,f.painterRoot=l,f._pointerSize=u,a=a||new zH,f.proxy=null,f.setHandlerProxy(a),f._draggingMgr=new gH(f),f}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(W(FH,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,l=SL(this,r,a),u=this._hovered,f=u.target;f&&!f.__zr&&(u=this.findHover(u.x,u.y),f=u.target);var d=this._hovered=l?new Gp(r,a):this.findHover(r,a),h=d.target,p=this.proxy;p.setCursor&&p.setCursor(h?h.cursor:"default"),f&&h!==f&&this.dispatchToElement(u,"mouseout",n),this.dispatchToElement(d,"mousemove",n),h&&h!==f&&this.dispatchToElement(d,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Gp(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var l=n.target;if(!(l&&l.silent)){for(var u="on"+r,f=PH(r,n,a);l&&(l[u]&&(f.cancelBubble=!!l[u].call(l,f)),l.trigger(r,f),l=l.__hostTarget?l.__hostTarget:l.parent,!f.cancelBubble););f.cancelBubble||(this.trigger(r,f),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(d){typeof d[u]=="function"&&d[u].call(d,f),d.trigger&&d.trigger(r,f)}))}},e.prototype.findHover=function(n,r,a){var l=this.storage.getDisplayList(),u=new Gp(n,r);if(_L(l,u,n,r,a),this._pointerSize&&!u.target){for(var f=[],d=this._pointerSize,h=d/2,p=new Wt(n-h,r-h,d,d),m=l.length-1;m>=0;m--){var S=l[m];S!==a&&!S.ignore&&!S.ignoreCoarsePointer&&(!S.parent||!S.parent.ignoreCoarsePointer)&&(ix.copy(S.getBoundingRect()),S.transform&&ix.applyTransform(S.transform),ix.intersect(p)&&f.push(S))}if(f.length)for(var _=4,w=Math.PI/12,E=Math.PI*2,b=0;b<h;b+=_)for(var D=0;D<E;D+=w){var A=n+b*Math.cos(D),O=r+b*Math.sin(D);if(_L(f,u,A,O,a),u.target)return u}}return u},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new RH);var a=this._gestureMgr;r==="start"&&a.clear();var l=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),l){var u=l.type;n.gestureEvent=u;var f=new Gp;f.target=l.target,this.dispatchToElement(f,u,l.event)}},e}(_l);W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){yL.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=SL(this,n,r),l,u;if((t!=="mouseup"||!a)&&(l=this.findHover(n,r),u=l.target),t==="mousedown")this._downEl=u,this._downPoint=[e.zrX,e.zrY],this._upEl=u;else if(t==="mouseup")this._upEl=u;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ww(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(l,t,e)}});function BH(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,l=!1;r;){if(r.ignoreClip&&(l=!0),!l){var u=r.getClipPath();if(u&&!u.contain(e,n))return!1;r.silent&&(a=!0)}var f=r.__hostTarget;r=f||r.parent}return a?mL:!0}return!1}function _L(t,e,n,r,a){for(var l=t.length-1;l>=0;l--){var u=t[l],f=void 0;if(u!==a&&!u.ignore&&(f=BH(u,n,r))&&(!e.topTarget&&(e.topTarget=u),f!==mL)){e.target=u;break}}}function SL(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const UH=yL;var CL=32,$p=7;function VH(t){for(var e=0;t>=CL;)e|=t&1,t>>=1;return t+e}function wL(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;HH(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function HH(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function xL(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var l=t[r],u=e,f=r,d;u<f;)d=u+f>>>1,a(l,t[d])<0?f=d:u=d+1;var h=r-u;switch(h){case 3:t[u+3]=t[u+2];case 2:t[u+2]=t[u+1];case 1:t[u+1]=t[u];break;default:for(;h>0;)t[u+h]=t[u+h-1],h--}t[u]=l}}function ax(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])>0){for(f=r-a;d<f&&l(t,e[n+a+d])>0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}else{for(f=a+1;d<f&&l(t,e[n+a-d])<=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])>0?u=p+1:d=p}return d}function ox(t,e,n,r,a,l){var u=0,f=0,d=1;if(l(t,e[n+a])<0){for(f=a+1;d<f&&l(t,e[n+a-d])<0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f);var h=u;u=a-d,d=a-h}else{for(f=r-a;d<f&&l(t,e[n+a+d])>=0;)u=d,d=(d<<1)+1,d<=0&&(d=f);d>f&&(d=f),u+=a,d+=a}for(u++;u<d;){var p=u+(d-u>>>1);l(t,e[n+p])<0?d=p:u=p+1}return d}function GH(t,e){var n=$p,r,a,l=0;t.length;var u=[];r=[],a=[];function f(_,w){r[l]=_,a[l]=w,l+=1}function d(){for(;l>1;){var _=l-2;if(_>=1&&a[_-1]<=a[_]+a[_+1]||_>=2&&a[_-2]<=a[_]+a[_-1])a[_-1]<a[_+1]&&_--;else if(a[_]>a[_+1])break;p(_)}}function h(){for(;l>1;){var _=l-2;_>0&&a[_-1]<a[_+1]&&_--,p(_)}}function p(_){var w=r[_],E=a[_],b=r[_+1],D=a[_+1];a[_]=E+D,_===l-3&&(r[_+1]=r[_+2],a[_+1]=a[_+2]),l--;var A=ox(t[b],t,w,E,0,e);w+=A,E-=A,E!==0&&(D=ax(t[w+E-1],t,b,D,D-1,e),D!==0&&(E<=D?m(w,E,b,D):S(w,E,b,D)))}function m(_,w,E,b){var D=0;for(D=0;D<w;D++)u[D]=t[_+D];var A=0,O=E,P=_;if(t[P++]=t[O++],--b===0){for(D=0;D<w;D++)t[P+D]=u[A+D];return}if(w===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A];return}for(var I=n,F,U,H;;){F=0,U=0,H=!1;do if(e(t[O],u[A])<0){if(t[P++]=t[O++],U++,F=0,--b===0){H=!0;break}}else if(t[P++]=u[A++],F++,U=0,--w===1){H=!0;break}while((F|U)<I);if(H)break;do{if(F=ox(t[O],u,A,w,0,e),F!==0){for(D=0;D<F;D++)t[P+D]=u[A+D];if(P+=F,A+=F,w-=F,w<=1){H=!0;break}}if(t[P++]=t[O++],--b===0){H=!0;break}if(U=ax(u[A],t,O,b,0,e),U!==0){for(D=0;D<U;D++)t[P+D]=t[O+D];if(P+=U,O+=U,b-=U,b===0){H=!0;break}}if(t[P++]=u[A++],--w===1){H=!0;break}I--}while(F>=$p||U>=$p);if(H)break;I<0&&(I=0),I+=2}if(n=I,n<1&&(n=1),w===1){for(D=0;D<b;D++)t[P+D]=t[O+D];t[P+b]=u[A]}else{if(w===0)throw new Error;for(D=0;D<w;D++)t[P+D]=u[A+D]}}function S(_,w,E,b){var D=0;for(D=0;D<b;D++)u[D]=t[E+D];var A=_+w-1,O=b-1,P=E+b-1,I=0,F=0;if(t[P--]=t[A--],--w===0){for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D];return}if(b===1){for(P-=w,A-=w,F=P+1,I=A+1,D=w-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O];return}for(var U=n;;){var H=0,j=0,X=!1;do if(e(u[O],t[A])<0){if(t[P--]=t[A--],H++,j=0,--w===0){X=!0;break}}else if(t[P--]=u[O--],j++,H=0,--b===1){X=!0;break}while((H|j)<U);if(X)break;do{if(H=w-ox(u[O],t,_,w,w-1,e),H!==0){for(P-=H,A-=H,w-=H,F=P+1,I=A+1,D=H-1;D>=0;D--)t[F+D]=t[I+D];if(w===0){X=!0;break}}if(t[P--]=u[O--],--b===1){X=!0;break}if(j=b-ax(t[A],u,0,b,b-1,e),j!==0){for(P-=j,O-=j,b-=j,F=P+1,I=O+1,D=0;D<j;D++)t[F+D]=u[I+D];if(b<=1){X=!0;break}}if(t[P--]=t[A--],--w===0){X=!0;break}U--}while(H>=$p||j>=$p);if(X)break;U<0&&(U=0),U+=2}if(n=U,n<1&&(n=1),b===1){for(P-=w,A-=w,F=P+1,I=A+1,D=w-1;D>=0;D--)t[F+D]=t[I+D];t[P]=u[O]}else{if(b===0)throw new Error;for(I=P-(b-1),D=0;D<b;D++)t[I+D]=u[D]}}return{mergeRuns:d,forceMergeRuns:h,pushRun:f}}function L0(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var l=0;if(a<CL){l=wL(t,n,r,e),xL(t,n,r,n+l,e);return}var u=GH(t,e),f=VH(a);do{if(l=wL(t,n,r,e),l<f){var d=a;d>f&&(d=f),xL(t,n,n+d,n+l,e),l=d}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(a!==0);u.forceMergeRuns()}}var La=1,jp=2,tv=4,TL=!1;function lx(){TL||(TL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bL(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var $H=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bL}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,l=n.length;a<l;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,L0(r,bL)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var l=a,u=e;l;)l.parent=u,l.updateTransform(),n.push(l),u=l,l=l.getClipPath()}if(e.childrenRef){for(var f=e.childrenRef(),d=0;d<f.length;d++){var h=f[d];e.__dirty&&(h.__dirty|=La),this._updateAndAddDisplayable(h,n,r)}e.__dirty=0}else{var p=e;n&&n.length?p.__clipPaths=n:p.__clipPaths&&p.__clipPaths.length>0&&(p.__clipPaths=[]),isNaN(p.z)&&(lx(),p.z=0),isNaN(p.z2)&&(lx(),p.z2=0),isNaN(p.zlevel)&&(lx(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,n,r);var S=e.getTextGuideLine();S&&this._updateAndAddDisplayable(S,n,r);var _=e.getTextContent();_&&this._updateAndAddDisplayable(_,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=dn(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const jH=$H;var EL;EL=Tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const ux=EL;var O0={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-O0.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?O0.bounceIn(t*2)*.5:O0.bounceOut(t*2-1)*.5+.5}};const DL=O0;var k0=Math.pow,Ts=Math.sqrt,N0=1e-8,ML=1e-4,RL=Ts(3),P0=1/3,Sl=qd(),ro=qd(),nv=qd();function bs(t){return t>-N0&&t<N0}function AL(t){return t>N0||t<-N0}function Qr(t,e,n,r,a){var l=1-a;return l*l*(l*t+3*a*e)+a*a*(a*r+3*l*n)}function LL(t,e,n,r,a){var l=1-a;return 3*(((e-t)*l+2*(n-e)*a)*l+(r-n)*a*a)}function OL(t,e,n,r,a,l){var u=r+3*(e-n)-t,f=3*(n-e*2+t),d=3*(e-t),h=t-a,p=f*f-3*u*d,m=f*d-9*u*h,S=d*d-3*f*h,_=0;if(bs(p)&&bs(m))if(bs(f))l[0]=0;else{var w=-d/f;w>=0&&w<=1&&(l[_++]=w)}else{var E=m*m-4*p*S;if(bs(E)){var b=m/p,w=-f/u+b,D=-b/2;w>=0&&w<=1&&(l[_++]=w),D>=0&&D<=1&&(l[_++]=D)}else if(E>0){var A=Ts(E),O=p*f+1.5*u*(-m+A),P=p*f+1.5*u*(-m-A);O<0?O=-k0(-O,P0):O=k0(O,P0),P<0?P=-k0(-P,P0):P=k0(P,P0);var w=(-f-(O+P))/(3*u);w>=0&&w<=1&&(l[_++]=w)}else{var I=(2*p*f-3*u*m)/(2*Ts(p*p*p)),F=Math.acos(I)/3,U=Ts(p),H=Math.cos(F),w=(-f-2*U*H)/(3*u),D=(-f+U*(H+RL*Math.sin(F)))/(3*u),j=(-f+U*(H-RL*Math.sin(F)))/(3*u);w>=0&&w<=1&&(l[_++]=w),D>=0&&D<=1&&(l[_++]=D),j>=0&&j<=1&&(l[_++]=j)}}return _}function kL(t,e,n,r,a){var l=6*n-12*e+6*t,u=9*e+3*r-3*t-9*n,f=3*e-3*t,d=0;if(bs(u)){if(AL(l)){var h=-f/l;h>=0&&h<=1&&(a[d++]=h)}}else{var p=l*l-4*u*f;if(bs(p))a[0]=-l/(2*u);else if(p>0){var m=Ts(p),h=(-l+m)/(2*u),S=(-l-m)/(2*u);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function Es(t,e,n,r,a,l){var u=(e-t)*a+t,f=(n-e)*a+e,d=(r-n)*a+n,h=(f-u)*a+u,p=(d-f)*a+f,m=(p-h)*a+h;l[0]=t,l[1]=u,l[2]=h,l[3]=m,l[4]=m,l[5]=p,l[6]=d,l[7]=r}function NL(t,e,n,r,a,l,u,f,d,h,p){var m,S=.005,_=1/0,w,E,b,D;Sl[0]=d,Sl[1]=h;for(var A=0;A<1;A+=.05)ro[0]=Qr(t,n,a,u,A),ro[1]=Qr(e,r,l,f,A),b=Qd(Sl,ro),b<_&&(m=A,_=b);_=1/0;for(var O=0;O<32&&!(S<ML);O++)w=m-S,E=m+S,ro[0]=Qr(t,n,a,u,w),ro[1]=Qr(e,r,l,f,w),b=Qd(ro,Sl),w>=0&&b<_?(m=w,_=b):(nv[0]=Qr(t,n,a,u,E),nv[1]=Qr(e,r,l,f,E),D=Qd(nv,Sl),E<=1&&D<_?(m=E,_=D):S*=.5);return p&&(p[0]=Qr(t,n,a,u,m),p[1]=Qr(e,r,l,f,m)),Ts(_)}function YH(t,e,n,r,a,l,u,f,d){for(var h=t,p=e,m=0,S=1/d,_=1;_<=d;_++){var w=_*S,E=Qr(t,n,a,u,w),b=Qr(e,r,l,f,w),D=E-h,A=b-p;m+=Math.sqrt(D*D+A*A),h=E,p=b}return m}function fi(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function PL(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function WH(t,e,n,r,a){var l=t-2*e+n,u=2*(e-t),f=t-r,d=0;if(bs(l)){if(AL(u)){var h=-f/u;h>=0&&h<=1&&(a[d++]=h)}}else{var p=u*u-4*l*f;if(bs(p)){var h=-u/(2*l);h>=0&&h<=1&&(a[d++]=h)}else if(p>0){var m=Ts(p),h=(-u+m)/(2*l),S=(-u-m)/(2*l);h>=0&&h<=1&&(a[d++]=h),S>=0&&S<=1&&(a[d++]=S)}}return d}function IL(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function I0(t,e,n,r,a){var l=(e-t)*r+t,u=(n-e)*r+e,f=(u-l)*r+l;a[0]=t,a[1]=l,a[2]=f,a[3]=f,a[4]=u,a[5]=n}function zL(t,e,n,r,a,l,u,f,d){var h,p=.005,m=1/0;Sl[0]=u,Sl[1]=f;for(var S=0;S<1;S+=.05){ro[0]=fi(t,n,a,S),ro[1]=fi(e,r,l,S);var _=Qd(Sl,ro);_<m&&(h=S,m=_)}m=1/0;for(var w=0;w<32&&!(p<ML);w++){var E=h-p,b=h+p;ro[0]=fi(t,n,a,E),ro[1]=fi(e,r,l,E);var _=Qd(ro,Sl);if(E>=0&&_<m)h=E,m=_;else{nv[0]=fi(t,n,a,b),nv[1]=fi(e,r,l,b);var D=Qd(nv,Sl);b<=1&&D<m?(h=b,m=D):p*=.5}}return d&&(d[0]=fi(t,n,a,h),d[1]=fi(e,r,l,h)),Ts(m)}function XH(t,e,n,r,a,l,u){for(var f=t,d=e,h=0,p=1/u,m=1;m<=u;m++){var S=m*p,_=fi(t,n,a,S),w=fi(e,r,l,S),E=_-f,b=w-d;h+=Math.sqrt(E*E+b*b),f=_,d=w}return h}var qH=/cubic-bezier\(([0-9,\.e ]+)\)/;function FL(t){var e=t&&qH.exec(t);if(e){var n=e[1].split(","),r=+yl(n[0]),a=+yl(n[1]),l=+yl(n[2]),u=+yl(n[3]);if(isNaN(r+a+l+u))return;var f=[];return function(d){return d<=0?0:d>=1?1:OL(0,r,l,1,d,f)&&Qr(0,a,u,1,f[0])}}}var QH=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ta,this.ondestroy=e.ondestroy||ta,this.onrestart=e.onrestart||ta,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,l=a/r;l<0&&(l=0),l=Math.min(l,1);var u=this.easingFunc,f=u?u(l):l;if(this.onframe(f),l===1)if(this.loop){var d=a%r;this._startTime=e-d,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=_t(e)?e:DL[e]||FL(e)},t}();const ZH=QH;var BL=function(){function t(e){this.value=e}return t}(),KH=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new BL(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),JH=function(){function t(e){this._list=new KH,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,l=null;if(a[e]==null){var u=r.len(),f=this._lastRemovedEntry;if(u>=this._maxSize&&u>0){var d=r.head;r.remove(d),delete a[d.key],l=d.value,this._lastRemovedEntry=d}f?f.value=n:f=new BL(n),f.key=e,r.insertEntry(f),a[e]=f}return l},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Yp=JH;var UL={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Wp(t){return t=Math.round(t),t<0?0:t>255?255:t}function VL(t){return t<0?0:t>1?1:t}function sx(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Wp(parseFloat(e)/100*255):Wp(parseInt(e,10))}function Xp(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?VL(parseFloat(e)/100):VL(parseFloat(e))}function fx(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function io(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function cx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var HL=new Yp(20),z0=null;function rv(t,e){z0&&cx(z0,e),z0=HL.put(t,z0||e.slice())}function iv(t,e){if(t){e=e||[];var n=HL.get(t);if(n)return cx(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in UL)return cx(e,UL[r]),rv(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var l=parseInt(r.slice(1,4),16);if(!(l>=0&&l<=4095)){io(e,0,0,0,1);return}return io(e,(l&3840)>>4|(l&3840)>>8,l&240|(l&240)>>4,l&15|(l&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),rv(t,e),e}else if(a===7||a===9){var l=parseInt(r.slice(1,7),16);if(!(l>=0&&l<=16777215)){io(e,0,0,0,1);return}return io(e,(l&16711680)>>16,(l&65280)>>8,l&255,a===9?parseInt(r.slice(7),16)/255:1),rv(t,e),e}return}var u=r.indexOf("("),f=r.indexOf(")");if(u!==-1&&f+1===a){var d=r.substr(0,u),h=r.substr(u+1,f-(u+1)).split(","),p=1;switch(d){case"rgba":if(h.length!==4)return h.length===3?io(e,+h[0],+h[1],+h[2],1):io(e,0,0,0,1);p=Xp(h.pop());case"rgb":if(h.length>=3)return io(e,sx(h[0]),sx(h[1]),sx(h[2]),h.length===3?p:Xp(h[3])),rv(t,e),e;io(e,0,0,0,1);return;case"hsla":if(h.length!==4){io(e,0,0,0,1);return}return h[3]=Xp(h[3]),GL(h,e),rv(t,e),e;case"hsl":if(h.length!==3){io(e,0,0,0,1);return}return GL(h,e),rv(t,e),e;default:return}}io(e,0,0,0,1)}}function GL(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Xp(t[1]),a=Xp(t[2]),l=a<=.5?a*(r+1):a+r-a*r,u=a*2-l;return e=e||[],io(e,Wp(fx(u,l,n+1/3)*255),Wp(fx(u,l,n)*255),Wp(fx(u,l,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function $L(t,e){var n=iv(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return jL(n,n.length===4?"rgba":"rgb")}}function jL(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function F0(t,e){var n=iv(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function e4(t){return t.type==="linear"}function t4(t){return t.type==="radial"}(function(){return Tt.hasGlobalWindow&&_t(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&Yf("Base64 isn't natively supported in the current environment."),null}})();var dx=Array.prototype.slice;function _u(t,e,n){return(e-t)*n+t}function vx(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=_u(e[l],n[l],r);return t}function n4(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=_u(e[u][f],n[u][f],r)}return t}function B0(t,e,n,r){for(var a=e.length,l=0;l<a;l++)t[l]=e[l]+n[l]*r;return t}function YL(t,e,n,r){for(var a=e.length,l=a&&e[0].length,u=0;u<a;u++){t[u]||(t[u]=[]);for(var f=0;f<l;f++)t[u][f]=e[u][f]+n[u][f]*r}return t}function r4(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,l=Math.min(n,r),u=a[l-1]||{color:[0,0,0,0],offset:0},f=l;f<Math.max(n,r);f++)a.push({offset:u.offset,color:u.color.slice()})}function i4(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var l=r.length,u=a.length;if(l!==u){var f=l>u;if(f)r.length=u;else for(var d=l;d<u;d++)r.push(n===1?a[d]:dx.call(a[d]))}for(var h=r[0]&&r[0].length,d=0;d<r.length;d++)if(n===1)isNaN(r[d])&&(r[d]=a[d]);else for(var p=0;p<h;p++)isNaN(r[d][p])&&(r[d][p]=a[d][p])}}function U0(t){if(Ai(t)){var e=t.length;if(Ai(t[0])){for(var n=[],r=0;r<e;r++)n.push(dx.call(t[r]));return n}return dx.call(t)}return t}function V0(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function a4(t){return Ai(t&&t[0])?2:1}var H0=0,G0=1,WL=2,qp=3,hx=4,px=5,XL=6;function qL(t){return t===hx||t===px}function $0(t){return t===G0||t===WL}var Qp=[0,0,0,0],o4=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,l=a.length,u=!1,f=XL,d=n;if(Ai(n)){var h=a4(n);f=h,(h===1&&!Nn(n[0])||h===2&&!Nn(n[0][0]))&&(u=!0)}else if(Nn(n)&&!Fp(n))f=H0;else if(et(n))if(!isNaN(+n))f=H0;else{var p=iv(n);p&&(d=p,f=qp)}else if(T0(n)){var m=Re({},d);m.colorStops=ot(n.colorStops,function(_){return{offset:_.offset,color:iv(_.color)}}),e4(n)?f=hx:t4(n)&&(f=px),d=m}l===0?this.valType=f:(f!==this.valType||f===XL)&&(u=!0),this.discrete=this.discrete||u;var S={time:e,value:d,rawValue:n,percent:0};return r&&(S.easing=r,S.easingFunc=_t(r)?r:DL[r]||FL(r)),a.push(S),S},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(E,b){return E.time-b.time});for(var a=this.valType,l=r.length,u=r[l-1],f=this.discrete,d=$0(a),h=qL(a),p=0;p<l;p++){var m=r[p],S=m.value,_=u.value;m.percent=m.time/e,f||(d&&p!==l-1?i4(S,_,a):h&&r4(S.colorStops,_.colorStops))}if(!f&&a!==px&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var w=r[0].value,p=0;p<l;p++)a===H0?r[p].additiveValue=r[p].value-w:a===qp?r[p].additiveValue=B0([],r[p].value,w,-1):$0(a)&&(r[p].additiveValue=a===G0?B0([],r[p].value,w,-1):YL([],r[p].value,w,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",l=this.valType,u=this.keyframes,f=u.length,d=this.propName,h=l===qp,p,m=this._lastFr,S=Math.min,_,w;if(f===1)_=w=u[0];else{if(n<0)p=0;else if(n<this._lastFrP){var E=S(m+1,f-1);for(p=E;p>=0&&!(u[p].percent<=n);p--);p=S(p,f-2)}else{for(p=m;p<f&&!(u[p].percent>n);p++);p=S(p-1,f-2)}w=u[p+1],_=u[p]}if(_&&w){this._lastFr=p,this._lastFrP=n;var b=w.percent-_.percent,D=b===0?1:S((n-_.percent)/b,1);w.easingFunc&&(D=w.easingFunc(D));var A=r?this._additiveValue:h?Qp:e[d];if(($0(l)||h)&&!A&&(A=this._additiveValue=[]),this.discrete)e[d]=D<1?_.rawValue:w.rawValue;else if($0(l))l===G0?vx(A,_[a],w[a],D):n4(A,_[a],w[a],D);else if(qL(l)){var O=_[a],P=w[a],I=l===hx;e[d]={type:I?"linear":"radial",x:_u(O.x,P.x,D),y:_u(O.y,P.y,D),colorStops:ot(O.colorStops,function(U,H){var j=P.colorStops[H];return{offset:_u(U.offset,j.offset,D),color:V0(vx([],U.color,j.color,D))}}),global:P.global},I?(e[d].x2=_u(O.x2,P.x2,D),e[d].y2=_u(O.y2,P.y2,D)):e[d].r=_u(O.r,P.r,D)}else if(h)vx(A,_[a],w[a],D),r||(e[d]=V0(A));else{var F=_u(_[a],w[a],D);r?this._additiveValue=F:e[d]=F}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===H0?e[r]=e[r]+a:n===qp?(iv(e[r],Qp),B0(Qp,Qp,a,1),e[r]=V0(Qp)):n===G0?B0(e[r],e[r],a,1):n===WL&&YL(e[r],e[r],a,1)},t}(),l4=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){Yf("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,kn(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var l=this._tracks,u=0;u<r.length;u++){var f=r[u],d=l[f];if(!d){d=l[f]=new o4(f);var h=void 0,p=this._getAdditiveTrack(f);if(p){var m=p.keyframes,S=m[m.length-1];h=S&&S.value,p.valType===qp&&h&&(h=V0(h))}else h=this._target[f];if(h==null)continue;e>0&&d.addKeyframe(0,U0(h),a),this._trackKeys.push(f)}d.addKeyframe(e,U0(n[f]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var l=r[a].getTrack(e);l&&(n=l)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,l=0;l<this._trackKeys.length;l++){var u=this._trackKeys[l],f=this._tracks[u],d=this._getAdditiveTrack(u),h=f.keyframes,p=h.length;if(f.prepare(a,d),f.needsAnimate())if(!this._allowDiscrete&&f.discrete){var m=h[p-1];m&&(n._target[f.propName]=m.rawValue),f.setFinished()}else r.push(f)}if(r.length||this._force){var S=new ZH({life:a,loop:this._loop,delay:this._delay||0,onframe:function(_){n._started=2;var w=n._additiveAnimators;if(w){for(var E=!1,b=0;b<w.length;b++)if(w[b]._clip){E=!0;break}E||(n._additiveAnimators=null)}for(var b=0;b<r.length;b++)r[b].step(n._target,_);var D=n._onframeCbs;if(D)for(var b=0;b<D.length;b++)D[b](n._target,_)},ondestroy:function(){n._doneCallback()}});this._clip=S,this.animation&&this.animation.addClip(S),e&&S.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ot(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,l=0;l<e.length;l++){var u=r[e[l]];u&&!u.isFinished()&&(n?u.step(this._target,1):this._started===1&&u.step(this._target,0),u.setFinished())}for(var f=!0,l=0;l<a.length;l++)if(!r[a[l]].isFinished()){f=!1;break}return f&&this._abortedCallback(),f},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var l=n[a],u=this._tracks[l];if(!(!u||u.isFinished())){var f=u.keyframes,d=f[r?0:f.length-1];d&&(e[l]=U0(d.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||kn(e);for(var r=0;r<n.length;r++){var a=n[r],l=this._tracks[a];if(l){var u=l.keyframes;if(u.length>1){var f=u.pop();l.addKeyframe(f.time,e[a]),l.prepare(this._maxTime,l.getAdditiveTrack())}}}},t}();const gx=l4;function av(){return new Date().getTime()}var u4=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=av()-this._pausedTime,a=r-this._time,l=this._head;l;){var u=l.next,f=l.step(r,a);f&&(l.ondestroy(),this.removeClip(l)),l=u}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(ux(r),!n._paused&&n.update())}ux(r)},e.prototype.start=function(){this._running||(this._time=av(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=av(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=av()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new gx(n,r.loop);return this.addAnimator(a),a},e}(_l);const s4=u4;var f4=300,mx=Tt.domSupported,yx=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ot(t,function(a){var l=a.replace("mouse","pointer");return n.hasOwnProperty(l)?l:a});return{mouse:t,touch:e,pointer:r}}(),QL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ZL=!1;function _x(t){var e=t.pointerType;return e==="pen"||e==="touch"}function c4(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Sx(t){t&&(t.zrByTouch=!0)}function d4(t,e){return no(t.dom,new v4(t,e),!0)}function KL(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var v4=function(){function t(e,n){this.stopPropagation=ta,this.stopImmediatePropagation=ta,this.preventDefault=ta,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Lo={mousedown:function(t){t=no(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=no(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=no(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=no(this.dom,t);var e=t.toElement||t.relatedTarget;KL(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ZL=!0,t=no(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ZL||(t=no(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=no(this.dom,t),Sx(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lo.mousemove.call(this,t),Lo.mousedown.call(this,t)},touchmove:function(t){t=no(this.dom,t),Sx(t),this.handler.processGesture(t,"change"),Lo.mousemove.call(this,t)},touchend:function(t){t=no(this.dom,t),Sx(t),this.handler.processGesture(t,"end"),Lo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<f4&&Lo.click.call(this,t)},pointerdown:function(t){Lo.mousedown.call(this,t)},pointermove:function(t){_x(t)||Lo.mousemove.call(this,t)},pointerup:function(t){Lo.mouseup.call(this,t)},pointerout:function(t){_x(t)||Lo.mouseout.call(this,t)}};W(["click","dblclick","contextmenu"],function(t){Lo[t]=function(e){e=no(this.dom,e),this.trigger(t,e)}});var Cx={pointermove:function(t){_x(t)||Cx.mousemove.call(this,t)},pointerup:function(t){Cx.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function h4(t,e){var n=e.domHandlers;Tt.pointerEventsSupported?W(yx.pointer,function(r){j0(e,r,function(a){n[r].call(t,a)})}):(Tt.touchEventsSupported&&W(yx.touch,function(r){j0(e,r,function(a){n[r].call(t,a),c4(e)})}),W(yx.mouse,function(r){j0(e,r,function(a){a=Jw(a),e.touching||n[r].call(t,a)})}))}function p4(t,e){Tt.pointerEventsSupported?W(QL.pointer,n):Tt.touchEventsSupported||W(QL.mouse,n);function n(r){function a(l){l=Jw(l),KL(t,l.target)||(l=d4(t,l),e.domHandlers[r].call(t,l))}j0(e,r,a,{capture:!0})}}function j0(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,DH(t.domTarget,e,n,r)}function xx(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&MH(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var JL=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),g4=function(t){mn(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new JL(n,Lo),mx&&(a._globalHandlerScope=new JL(document,Cx)),h4(a,a._localHandlerScope),a}return e.prototype.dispose=function(){xx(this._localHandlerScope),mx&&xx(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,mx&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?p4(this,r):xx(r)}},e}(_l);const m4=g4;var eO=1;Tt.hasGlobalWindow&&(eO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Y0=eO,Tx=.4,bx="#333",Ex="#ccc",y4="#eee",tO=tx,nO=5e-5;function Kf(t){return t>nO||t<-nO}var Jf=[],ov=[],Dx=Up(),Mx=Math.abs,_4=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Kf(this.rotation)||Kf(this.x)||Kf(this.y)||Kf(this.scaleX-1)||Kf(this.scaleY-1)||Kf(this.skewX)||Kf(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&tO(r);return}r=r||Up(),n?this.getLocalTransform(r):tO(r),e&&(n?ev(r,e,r):LH(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Jf);var r=Jf[0]<0?-1:1,a=Jf[1]<0?-1:1,l=((Jf[0]-r)*n+r)/Jf[0]||0,u=((Jf[1]-a)*n+a)/Jf[1]||0;e[0]*=l,e[1]*=l,e[2]*=u,e[3]*=u}this.invTransform=this.invTransform||Up(),M0(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),l=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(l),n=Math.sqrt(n),this.skewX=l,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(ev(ov,e.invTransform,n),n=ov);var r=this.originX,a=this.originY;(r||a)&&(Dx[4]=r,Dx[5]=a,ev(ov,n,Dx),ov[4]-=r,ov[5]-=a,n=ov),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&eo(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&eo(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&Mx(e[0]-1)>1e-10&&Mx(e[3]-1)>1e-10?Math.sqrt(Mx(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){S4(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,l=e.scaleX,u=e.scaleY,f=e.anchorX,d=e.anchorY,h=e.rotation||0,p=e.x,m=e.y,S=e.skewX?Math.tan(e.skewX):0,_=e.skewY?Math.tan(-e.skewY):0;if(r||a||f||d){var w=r+f,E=a+d;n[4]=-w*l-S*E*u,n[5]=-E*u-_*w*l}else n[4]=n[5]=0;return n[0]=l,n[3]=u,n[1]=_*l,n[2]=S*u,h&&rx(n,n,h),n[4]+=r+p,n[5]+=a+m,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Zp=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function S4(t,e){for(var n=0;n<Zp.length;n++){var r=Zp[n];t[r]=e[r]}}const Kp=_4;var rO={};function Oa(t,e){e=e||$f;var n=rO[e];n||(n=rO[e]=new Yp(500));var r=n.get(t);return r==null&&(r=jf.measureText(t,e).width,n.put(t,r)),r}function iO(t,e,n,r){var a=Oa(t,e),l=Ax(e),u=Jp(0,a,n),f=lv(0,l,r),d=new Wt(u,f,a,l);return d}function Rx(t,e,n,r){var a=((t||"")+"").split(`
|
|
192
192
|
`),l=a.length;if(l===1)return iO(a[0],e,n,r);for(var u=new Wt(0,0,0,0),f=0;f<a.length;f++){var d=iO(a[f],e,n,r);f===0?u.copy(d):u.union(d)}return u}function Jp(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function lv(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function Ax(t){return Oa("国",t)}function ec(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function W0(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,l=n.height,u=n.width,f=l/2,d=n.x,h=n.y,p="left",m="top";if(r instanceof Array)d+=ec(r[0],n.width),h+=ec(r[1],n.height),p=null,m=null;else switch(r){case"left":d-=a,h+=f,p="right",m="middle";break;case"right":d+=a+u,h+=f,m="middle";break;case"top":d+=u/2,h-=a,p="center",m="bottom";break;case"bottom":d+=u/2,h+=l+a,p="center";break;case"inside":d+=u/2,h+=f,p="center",m="middle";break;case"insideLeft":d+=a,h+=f,m="middle";break;case"insideRight":d+=u-a,h+=f,p="right",m="middle";break;case"insideTop":d+=u/2,h+=a,p="center";break;case"insideBottom":d+=u/2,h+=l-a,p="center",m="bottom";break;case"insideTopLeft":d+=a,h+=a;break;case"insideTopRight":d+=u-a,h+=a,p="right";break;case"insideBottomLeft":d+=a,h+=l-a,m="bottom";break;case"insideBottomRight":d+=u-a,h+=l-a,p="right",m="bottom";break}return t=t||{},t.x=d,t.y=h,t.align=p,t.verticalAlign=m,t}var Lx="__zr_normal__",Ox=Zp.concat(["ignore"]),C4=Wd(Zp,function(t,e){return t[e]=!0,t},{ignore:!1}),uv={},w4=new Wt(0,0,0,0),kx=function(){function t(e){this.id=rL(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,l=n.innerTransformable,u=void 0,f=void 0,d=!1;l.parent=a?this:null;var h=!1;if(l.copyTransform(n),r.position!=null){var p=w4;r.layoutRect?p.copy(r.layoutRect):p.copy(this.getBoundingRect()),a||p.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(uv,r,p):W0(uv,r,p),l.x=uv.x,l.y=uv.y,u=uv.align,f=uv.verticalAlign;var m=r.origin;if(m&&r.rotation!=null){var S=void 0,_=void 0;m==="center"?(S=p.width*.5,_=p.height*.5):(S=ec(m[0],p.width),_=ec(m[1],p.height)),h=!0,l.originX=-l.x+S+(a?0:p.x),l.originY=-l.y+_+(a?0:p.y)}}r.rotation!=null&&(l.rotation=r.rotation);var w=r.offset;w&&(l.x+=w[0],l.y+=w[1],h||(l.originX=-w[0],l.originY=-w[1]));var E=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),D=void 0,A=void 0,O=void 0;E&&this.canBeInsideText()?(D=r.insideFill,A=r.insideStroke,(D==null||D==="auto")&&(D=this.getInsideTextFill()),(A==null||A==="auto")&&(A=this.getInsideTextStroke(D),O=!0)):(D=r.outsideFill,A=r.outsideStroke,(D==null||D==="auto")&&(D=this.getOutsideFill()),(A==null||A==="auto")&&(A=this.getOutsideStroke(D),O=!0)),D=D||"#000",(D!==b.fill||A!==b.stroke||O!==b.autoStroke||u!==b.align||f!==b.verticalAlign)&&(d=!0,b.fill=D,b.stroke=A,b.autoStroke=O,b.align=u,b.verticalAlign=f,n.setDefaultTextStyle(b)),n.__dirty|=La,d&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ex:bx},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&iv(n);r||(r=[255,255,255,1]);for(var a=r[3],l=this.__zr.isDarkMode(),u=0;u<3;u++)r[u]=r[u]*a+(l?0:255)*(1-a);return r[3]=1,jL(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},Re(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(it(e))for(var r=e,a=kn(r),l=0;l<a.length;l++){var u=a[l];this.attrKV(u,e[u])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],l=a.__fromStateTransition;if(!(a.getLoop()||l&&l!==Lx)){var u=a.targetName,f=u?n[u]:n;a.saveTo(f)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,Ox)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var l=r[a];e[l]!=null&&!(l in n)&&(n[l]=this[l])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(Lx,!1,e)},t.prototype.useState=function(e,n,r,a){var l=e===Lx,u=this.hasState();if(!(!u&&l)){var f=this.currentStates,d=this.stateTransition;if(!(dn(f,e)>=0&&(n||f.length===1))){var h;if(this.stateProxy&&!l&&(h=this.stateProxy(e)),h||(h=this.states&&this.states[e]),!h&&!l){Yf("State "+e+" not exists.");return}l||this.saveCurrentToNormalState(h);var p=!!(h&&h.hoverLayer||a);p&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,h,this._normalState,n,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,S=this._textGuide;return m&&m.useState(e,n,r,p),S&&S.useState(e,n,r,p),l?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~La),h}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],l=this.currentStates,u=e.length,f=u===l.length;if(f){for(var d=0;d<u;d++)if(e[d]!==l[d]){f=!1;break}}if(f)return;for(var d=0;d<u;d++){var h=e[d],p=void 0;this.stateProxy&&(p=this.stateProxy(h,e)),p||(p=this.states[h]),p&&a.push(p)}var m=a[u-1],S=!!(m&&m.hoverLayer||r);S&&this._toggleHoverLayerFlag(!0);var _=this._mergeStates(a),w=this.stateTransition;this.saveCurrentToNormalState(_),this._applyStateObj(e.join(","),_,this._normalState,!1,!n&&!this.__inHover&&w&&w.duration>0,w);var E=this._textContent,b=this._textGuide;E&&E.useStates(e,n,S),b&&b.useStates(e,n,S),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!S&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~La)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=dn(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),l=dn(a,e),u=dn(a,n)>=0;l>=0?u?a.splice(l,1):a[l]=n:r&&!u&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var l=e[a];Re(n,l),l.textConfig&&(r=r||{},Re(r,l.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,l,u){var f=!(n&&a);n&&n.textConfig?(this.textConfig=Re({},a?this.textConfig:r.textConfig),Re(this.textConfig,n.textConfig)):f&&r.textConfig&&(this.textConfig=r.textConfig);for(var d={},h=!1,p=0;p<Ox.length;p++){var m=Ox[p],S=l&&C4[m];n&&n[m]!=null?S?(h=!0,d[m]=n[m]):this[m]=n[m]:f&&r[m]!=null&&(S?(h=!0,d[m]=r[m]):this[m]=r[m])}if(!l)for(var p=0;p<this.animators.length;p++){var _=this.animators[p],w=_.targetName;_.getLoop()||_.__changeFinalValue(w?(n||r)[w]:n||r)}h&&this._transitionState(e,d,u)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;if(n!==e){if(n&&n!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Kp,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Re(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=La;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!a){Yf('Property "'+e+'" is not existed in element '+this.id);return}var l=new gx(a,n,r);return e&&(l.targetName=e),this.addAnimator(l,e),l},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var l=a.animators,u=dn(l,e);u>=0&&l.splice(u,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,l=[],u=0;u<a;u++){var f=r[u];!e||e===f.scope?f.stop(n):l.push(f)}return this.animators=l,this},t.prototype.animateTo=function(e,n,r){Nx(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){Nx(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var l=Nx(this,n,r,a),u=0;u<l.length;u++)l[u].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=La;var n={};function r(l,u,f){n[l+u+f]||(console.warn("DEPRECATED: '"+l+"' has been deprecated. use '"+u+"', '"+f+"' instead"),n[l+u+f]=!0)}function a(l,u,f,d){Object.defineProperty(e,l,{get:function(){if(process.env.NODE_ENV!=="production"&&r(l,f,d),!this[u]){var p=this[u]=[];h(this,p)}return this[u]},set:function(p){process.env.NODE_ENV!=="production"&&r(l,f,d),this[f]=p[0],this[d]=p[1],this[u]=p,h(this,p)}});function h(p,m){Object.defineProperty(m,0,{get:function(){return p[f]},set:function(S){p[f]=S}}),Object.defineProperty(m,1,{get:function(){return p[d]},set:function(S){p[d]=S}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();ml(kx,_l),ml(kx,Kp);function Nx(t,e,n,r,a){n=n||{};var l=[];aO(t,"",t,e,n,r,l,a);var u=l.length,f=!1,d=n.done,h=n.aborted,p=function(){f=!0,u--,u<=0&&(f?d&&d():h&&h())},m=function(){u--,u<=0&&(f?d&&d():h&&h())};u||d&&d(),l.length>0&&n.during&&l[0].during(function(w,E){n.during(E)});for(var S=0;S<l.length;S++){var _=l[S];p&&_.done(p),m&&_.aborted(m),n.force&&_.duration(n.duration),_.start(n.easing)}return l}function Px(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function x4(t){return Ai(t[0])}function T4(t,e,n){if(Ai(e[n]))if(Ai(t[n])||(t[n]=[]),ea(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Px(t[n],e[n],r))}else{var a=e[n],l=t[n],u=a.length;if(x4(a))for(var f=a[0].length,d=0;d<u;d++)l[d]?Px(l[d],a[d],f):l[d]=Array.prototype.slice.call(a[d]);else Px(l,a,u);l.length=a.length}else t[n]=e[n]}function b4(t,e){return t===e||Ai(t)&&Ai(e)&&E4(t,e)}function E4(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function aO(t,e,n,r,a,l,u,f){for(var d=kn(r),h=a.duration,p=a.delay,m=a.additive,S=a.setToFinal,_=!it(l),w=t.animators,E=[],b=0;b<d.length;b++){var D=d[b],A=r[D];if(A!=null&&n[D]!=null&&(_||l[D]))if(it(A)&&!Ai(A)&&!T0(A)){if(e){f||(n[D]=A,t.updateDuringAnimation(e));continue}aO(t,D,n[D],A,a,l&&l[D],u,f)}else E.push(D);else f||(n[D]=A,t.updateDuringAnimation(e),E.push(D))}var O=E.length;if(!m&&O)for(var P=0;P<w.length;P++){var I=w[P];if(I.targetName===e){var F=I.stopTracks(E);if(F){var U=dn(w,I);w.splice(U,1)}}}if(a.force||(E=Tr(E,function(G){return!b4(r[G],n[G])}),O=E.length),O>0||a.force&&!u.length){var H=void 0,j=void 0,X=void 0;if(f){j={},S&&(H={});for(var P=0;P<O;P++){var D=E[P];j[D]=n[D],S?H[D]=r[D]:n[D]=r[D]}}else if(S){X={};for(var P=0;P<O;P++){var D=E[P];X[D]=U0(n[D]),T4(n,r,D)}}var I=new gx(n,!1,!1,m?Tr(w,function(ee){return ee.targetName===e}):null);I.targetName=e,a.scope&&(I.scope=a.scope),S&&H&&I.whenWithKeys(0,H,E),X&&I.whenWithKeys(0,X,E),I.whenWithKeys(h??500,f?j:r,E).delay(p||0),t.addAnimator(I,e),u.push(I)}}const oO=kx;var lO=function(t){mn(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){if(n&&(n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),process.env.NODE_ENV!=="production"&&n.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,l=a.indexOf(r);l>=0&&(a.splice(l,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=dn(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,l=a[r];if(n&&n!==this&&n.parent!==this&&n!==l){a[r]=n,l.parent=null;var u=this.__zr;u&&l.removeSelfFromZr(u),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,l=dn(a,n);return l<0?this:(a.splice(l,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var l=n[a];r&&l.removeSelfFromZr(r),l.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,l=0;l<a.length;l++){var u=a[l];n.call(r,u,l)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var l=this._children[a],u=n.call(r,l);l.isGroup&&!u&&l.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Wt(0,0,0,0),a=n||this._children,l=[],u=null,f=0;f<a.length;f++){var d=a[f];if(!(d.ignore||d.invisible)){var h=d.getBoundingRect(),p=d.getLocalTransform(l);p?(Wt.applyTransform(r,h,p),u=u||r.clone(),u.union(r)):(u=u||h.clone(),u.union(h))}}return u||r},e}(oO);lO.prototype.type="group";const Cl=lO;var eg={},uO={};function D4(t){delete uO[t]}function M4(t){if(!t)return!1;if(typeof t=="string")return F0(t,1)<Tx;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=F0(e[a].color,1);return n/=r,n<Tx}return!1}var R4=function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var l=new jH,u=r.renderer||"canvas";if(eg[u]||(u=kn(eg)[0]),process.env.NODE_ENV!=="production"&&!eg[u])throw new Error("Renderer '"+u+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var f=new eg[u](n,l,r,e),d=r.ssr||f.ssrOnly;this.storage=l,this.painter=f;var h=!Tt.node&&!Tt.worker&&!d?new m4(f.getViewportRoot(),f.root):null,p=r.useCoarsePointer,m=p==null||p==="auto"?Tt.touchEventsSupported:!!p,S=44,_;m&&(_=kt(r.pointerSize,S)),this.handler=new UH(l,f,h,f.root,_),this.animation=new s4({stage:{update:d?null:function(){return a._flush(!0)}}}),d||this.animation.start()}return t.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh()},t.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=M4(e)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(e){var n,r=av();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=av();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this.handler.off(e,n)},t.prototype.trigger=function(e,n){this.handler.trigger(e,n)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof Cl&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,D4(this.id)},t}();function sO(t,e){var n=new R4(rL(),t,e);return uO[n.id]=n,n}function A4(t,e){eg[t]=e}var fO=1e-4,cO=20;function L4(t){return t.replace(/^\s+|\s+$/g,"")}function dO(t,e,n,r){var a=e[0],l=e[1],u=n[0],f=n[1],d=l-a,h=f-u;if(d===0)return h===0?u:(u+f)/2;if(r)if(d>0){if(t<=a)return u;if(t>=l)return f}else{if(t>=a)return u;if(t<=l)return f}else{if(t===a)return u;if(t===l)return f}return(t-a)/d*h+u}function Zr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return et(t)?L4(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function vr(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),cO),t=(+t).toFixed(e),n?t:+t}function Su(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return Ix(t)}function Ix(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,l=e.indexOf("."),u=l<0?0:a-1-l;return Math.max(0,u-r)}function O4(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),l=Math.round(n(Math.abs(e[1]-e[0]))/r),u=Math.min(Math.max(-a+l,0),20);return isFinite(u)?u:20}function k4(t,e){var n=Math.max(Su(t),Su(e)),r=t+e;return n>cO?r:vr(r,n)}function vO(t){var e=Math.PI*2;return(t%e+e)%e}function X0(t){return t>-fO&&t<fO}var N4=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Cu(t){if(t instanceof Date)return t;if(et(t)){var e=N4.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function P4(t){return Math.pow(10,q0(t))}function q0(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function hO(t,e){var n=q0(t),r=Math.pow(10,n),a=t/r,l;return e?a<1.5?l=1:a<2.5?l=2:a<4?l=3:a<7?l=5:l=10:a<1?l=1:a<2?l=2:a<3?l=3:a<5?l=5:l=10,t=l*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Ds(t){var e=parseFloat(t);return e==t&&(e!==0||!et(t)||t.indexOf("x")<=0)?e:NaN}function pO(t){return!isNaN(Ds(t))}function gO(){return Math.round(Math.random()*9)}function mO(t,e){return e===0?t:mO(e,t%e)}function yO(t,e){return t==null?e:e==null?t:t*e/mO(t,e)}var I4="[ECharts] ",_O={},z4=typeof console<"u"&&console.warn&&console.log;function Q0(t,e,n){if(z4){if(n){if(_O[e])return;_O[e]=!0}console[t](I4+e)}}function F4(t,e){Q0("log",t,e)}function Fr(t,e){Q0("warn",t,e)}function ci(t,e){Q0("error",t,e)}function wl(t){process.env.NODE_ENV!=="production"&&Q0("warn","DEPRECATED: "+t,!0)}function Br(t,e,n){process.env.NODE_ENV!=="production"&&wl((n?"["+n+"]":"")+(t+" is deprecated, use "+e+" instead."))}function na(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if(process.env.NODE_ENV!=="production"){var r=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":Fp(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":_t(a)?"function () { ... }":aL(a)?a+"":null};n=ot(t,function(a){if(et(a))return a;var l=r(a);if(l!=null)return l;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(u,f){var d=r(f);return d??f})}catch{return"?"}else return"?"}).join(" ")}return n}function Ht(t){throw new Error(t)}function SO(t,e,n){return(e-t)*n+t}var CO="series\0",B4="\0_ec_\0";function rr(t){return t instanceof Array?t:t==null?[]:[t]}function wO(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var l=n[r];!t.emphasis[e].hasOwnProperty(l)&&t[e].hasOwnProperty(l)&&(t.emphasis[e][l]=t[e][l])}}}var xO=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function tg(t){return it(t)&&!Be(t)&&!(t instanceof Date)?t.value:t}function U4(t){return it(t)&&!(t instanceof Array)}function V4(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",l=n==="replaceAll";t=t||[],e=(e||[]).slice();var u=xt();W(e,function(d,h){if(!it(d)){e[h]=null;return}process.env.NODE_ENV!=="production"&&(d.id!=null&&!EO(d.id)&&bO(d.id),d.name!=null&&!EO(d.name)&&bO(d.name))});var f=H4(t,u,n);return(r||a)&&G4(f,t,u,e),r&&$4(f,e),r||a?j4(f,e,a):l&&Y4(f,e),W4(f),f}function H4(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var l=t[a];l&&l.id!=null&&e.set(l.id,a),r.push({existing:n==="replaceMerge"||sv(l)?null:l,newOption:null,keyInfo:null,brandNew:null})}return r}function G4(t,e,n,r){W(r,function(a,l){if(!(!a||a.id==null)){var u=ng(a.id),f=n.get(u);if(f!=null){var d=t[f];bt(!d.newOption,'Duplicated option on id "'+u+'".'),d.newOption=a,d.existing=e[f],r[l]=null}}})}function $4(t,e){W(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var l=t[a].existing;if(!t[a].newOption&&l&&(l.id==null||n.id==null)&&!sv(n)&&!sv(l)&&TO("name",l,n)){t[a].newOption=n,e[r]=null;return}}})}function j4(t,e,n){W(e,function(r){if(r){for(var a,l=0;(a=t[l])&&(a.newOption||sv(a.existing)||a.existing&&r.id!=null&&!TO("id",r,a.existing));)l++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),l++}})}function Y4(t,e){W(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function W4(t){var e=xt();W(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),W(t,function(n){var r=n.newOption;bt(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),W(t,function(n,r){var a=n.existing,l=n.newOption,u=n.keyInfo;if(it(l)){if(u.name=l.name!=null?ng(l.name):a?a.name:CO+r,a)u.id=ng(a.id);else if(l.id!=null)u.id=ng(l.id);else{var f=0;do u.id="\0"+u.name+"\0"+f++;while(e.get(u.id))}e.set(u.id,n)}})}function TO(t,e,n){var r=xl(e[t],null),a=xl(n[t],null);return r!=null&&a!=null&&r===a}function ng(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return xl(t,"")}function xl(t,e){return t==null?e:et(t)?t:Nn(t)||x0(t)?t+"":e}function bO(t){process.env.NODE_ENV!=="production"&&Fr("`"+t+"` is invalid id or name. Must be a string or number.")}function EO(t){return x0(t)||pO(t)}function DO(t){var e=t.name;return!!(e&&e.indexOf(CO))}function sv(t){return t&&t.id!=null&&ng(t.id).indexOf(B4)===0}function X4(t,e,n){W(t,function(r){var a=r.newOption;it(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=q4(e,a,r.existing,n))})}function q4(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function rg(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Be(e.dataIndex)?ot(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Be(e.name)?ot(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function jn(){var t="__ec_inner_"+Q4++;return function(e){return e[t]||(e[t]={})}}var Q4=gO();function zx(t,e,n){var r=Fx(e,n),a=r.mainTypeSpecified,l=r.queryOptionMap,u=r.others,f=u,d=n?n.defaultMainType:null;return!a&&d&&l.set(d,{}),l.each(function(h,p){var m=ig(t,p,h,{useDefault:d===p,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});f[p+"Models"]=m.models,f[p+"Model"]=m.models[0]}),f}function Fx(t,e){var n;if(et(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=xt(),l={},u=!1;return W(n,function(f,d){if(d==="dataIndex"||d==="dataIndexInside"){l[d]=f;return}var h=d.match(/^(\w+)(Index|Id|Name)$/)||[],p=h[1],m=(h[2]||"").toLowerCase();if(!(!p||!m||e&&e.includeMainTypes&&dn(e.includeMainTypes,p)<0)){u=u||!!p;var S=a.get(p)||a.set(p,{});S[m]=f}}),{mainTypeSpecified:u,queryOptionMap:a,others:l}}var Oo={useDefault:!0,enableAll:!1,enableNone:!1};function ig(t,e,n,r){r=r||Oo;var a=n.index,l=n.id,u=n.name,f={models:null,specified:a!=null||l!=null||u!=null};if(!f.specified){var d=void 0;return f.models=r.useDefault&&(d=t.getComponent(e))?[d]:[],f}return a==="none"||a===!1?(bt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),f.models=[],f):(a==="all"&&(bt(r.enableAll,'`"all"` is not a valid value on index option.'),a=l=u=null),f.models=t.queryComponents({mainType:e,index:a,id:l,name:u}),f)}function MO(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Z4(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function K4(t){return t==="auto"?Tt.domSupported?"html":"richText":t||"html"}function J4(t,e,n,r,a){var l=e==null||e==="auto";if(r==null)return r;if(Nn(r)){var u=SO(n||0,r,a);return vr(u,l?Math.max(Su(n||0),Su(r)):e)}else{if(et(r))return a<1?n:r;for(var f=[],d=n,h=r,p=Math.max(d?d.length:0,h.length),m=0;m<p;++m){var S=t.getDimensionInfo(m);if(S&&S.type==="ordinal")f[m]=(a<1&&d?d:h)[m];else{var _=d&&d[m]?d[m]:0,w=h[m],u=SO(_,w,a);f[m]=vr(u,l?Math.max(Su(_),Su(w)):e)}}return f}}var e6=".",tc="___EC__COMPONENT__CONTAINER___",RO="___EC__EXTENDED_CLASS___";function Tl(t){var e={main:"",sub:""};if(t){var n=t.split(e6);e.main=n[0]||"",e.sub=n[1]||""}return e}function t6(t){bt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function n6(t){return!!(t&&t[RO])}function Bx(t,e){t.$constructor=t,t.extend=function(n){process.env.NODE_ENV!=="production"&&W(e,function(l){n[l]||console.warn("Method `"+l+"` should be implemented"+(n.type?" in "+n.type:"")+".")});var r=this,a;return r6(r)?a=function(l){Pt(u,l);function u(){return l.apply(this,arguments)||this}return u}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},tH(a,this)),Re(a.prototype,n),a[RO]=!0,a.extend=this.extend,a.superCall=o6,a.superApply=l6,a.superClass=r,a}}function r6(t){return _t(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function AO(t,e){t.extend=e.extend}var i6=Math.round(Math.random()*10);function a6(t){var e=["__\0is_clz",i6++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&bt(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(n){return!!(n&&n[e])}}function o6(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function l6(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Z0(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){t6(a),r.prototype.type=a;var l=Tl(a);if(!l.sub)process.env.NODE_ENV!=="production"&&e[l.main]&&console.warn(l.main+" exists."),e[l.main]=r;else if(l.sub!==tc){var u=n(l);u[l.sub]=r}}return r},t.getClass=function(r,a,l){var u=e[r];if(u&&u[tc]&&(u=a?u[a]:null),l&&!u)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return u},t.getClassesByMainType=function(r){var a=Tl(r),l=[],u=e[a.main];return u&&u[tc]?W(u,function(f,d){d!==tc&&l.push(f)}):l.push(u),l},t.hasClass=function(r){var a=Tl(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return W(e,function(a,l){r.push(l)}),r},t.hasSubTypes=function(r){var a=Tl(r),l=e[a.main];return l&&l[tc]};function n(r){var a=e[r.main];return(!a||!a[tc])&&(a=e[r.main]={},a[tc]=!0),a}}function ag(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,l){for(var u={},f=0;f<t.length;f++){var d=t[f][1];if(!(a&&dn(a,d)>=0||l&&dn(l,d)<0)){var h=r.getShallow(d,e);h!=null&&(u[t[f][0]]=h)}}return u}}var u6=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s6=ag(u6),f6=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return s6(this,e,n)},t}(),Ux=new Yp(50);function c6(t){if(typeof t=="string"){var e=Ux.get(t);return e&&e.image}else return t}function LO(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var l=Ux.get(t),u={hostEl:n,cb:r,cbPayload:a};return l?(e=l.image,!K0(e)&&l.pending.push(u)):(e=jf.loadImage(t,OO,OO),e.__zrImageSrc=t,Ux.put(t,e.__cachedImgObj={image:e,pending:[u]})),e}else return t;else return e}function OO(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function K0(t){return t&&t.width&&t.height}var Vx=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function d6(t,e,n,r,a){if(!e)return"";var l=(t+"").split(`
|
|
193
193
|
`);a=kO(e,n,r,a);for(var u=0,f=l.length;u<f;u++)l[u]=NO(l[u],a);return l.join(`
|
|
194
194
|
`)}function kO(t,e,n,r){r=r||{};var a=Re({},r);a.font=e,n=kt(n,"..."),a.maxIterations=kt(r.maxIterations,2);var l=a.minChar=kt(r.minChar,0);a.cnCharWidth=Oa("国",e);var u=a.ascCharWidth=Oa("a",e);a.placeholder=kt(r.placeholder,"");for(var f=t=Math.max(0,t-1),d=0;d<l&&f>=u;d++)f-=u;var h=Oa(n,e);return h>f&&(n="",h=0),f=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=f,a.containerWidth=t,a}function NO(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var l=Oa(t,r);if(l<=n)return t;for(var u=0;;u++){if(l<=a||u>=e.maxIterations){t+=e.ellipsis;break}var f=u===0?v6(t,a,e.ascCharWidth,e.cnCharWidth):l>0?Math.floor(t.length*a/l):0;t=t.substr(0,f),l=Oa(t,r)}return t===""&&(t=e.placeholder),t}function v6(t,e,n,r){for(var a=0,l=0,u=t.length;l<u&&a<e;l++){var f=t.charCodeAt(l);a+=0<=f&&f<=127?n:r}return l}function h6(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,l=n==="truncate",u=Ax(a),f=kt(e.lineHeight,u),d=!!e.backgroundColor,h=e.lineOverflow==="truncate",p=e.width,m;p!=null&&(n==="break"||n==="breakAll")?m=t?IO(t,e.font,p,n==="breakAll",0).lines:[]:m=t?t.split(`
|
package/package.json
CHANGED
package/readme.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 前端组件库-基于antd的二次封装
|
|
2
|
+
|
|
3
|
+
## 组件列表
|
|
4
|
+
|
|
5
|
+
### 1. BackHeader - 带返回按钮的页面头
|
|
6
|
+
|
|
7
|
+
### 2. CreateForm - 配置化生成表单
|
|
8
|
+
|
|
9
|
+
### 3. Echarts
|
|
10
|
+
|
|
11
|
+
### 4. EditTable - 可编辑表格
|
|
12
|
+
|
|
13
|
+
### 5. SearchTable - 带筛选项的表格(筛选项基于CreateForm)
|
|
14
|
+
|
|
15
|
+
### 6. Upload - 上传
|
|
16
|
+
|
|
17
|
+
### 7. VirtualTable - 虚拟列表
|
|
18
|
+
|
|
19
|
+
### 8. WorkFlowNode - 流程节点
|
|
20
|
+
|
|
21
|
+
## utils
|