@sciol/xyzen 0.3.13 → 0.3.14
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/README.md +3 -18
- package/dist/xyzen.css +1 -0
- package/dist/xyzen.umd.js +22 -22
- package/package.json +2 -3
- package/dist/style.css +0 -1
package/dist/xyzen.umd.js
CHANGED
|
@@ -170,32 +170,32 @@ Defaulting to \`null\`.`}var Oke=k$,Pke=I$,r1="Tabs",[Fke]=Mc(r1,[Xb]),L$=Xb(),[
|
|
|
170
170
|
hover:bg-neutral-100 dark:hover:bg-neutral-800
|
|
171
171
|
text-neutral-400 hover:text-neutral-600 dark:hover:text-neutral-300
|
|
172
172
|
`,title:"编辑标题",children:b.jsx(d9e,{className:"h-3.5 w-3.5"})})]})}const AX=({isOpen:e,onClose:t,title:r,message:n,type:a="info",actionLabel:i,onAction:o})=>{const s=()=>{switch(a){case"warning":return{icon:Em,bgColor:"bg-yellow-100",iconColor:"text-yellow-600",buttonColor:"bg-yellow-600 data-[hover]:bg-yellow-500 dark:bg-yellow-500 dark:data-[hover]:bg-yellow-400"};case"error":return{icon:h3e,bgColor:"bg-red-100",iconColor:"text-red-600",buttonColor:"bg-red-600 data-[hover]:bg-red-500 dark:bg-red-500 dark:data-[hover]:bg-red-400"};case"success":return{icon:gh,bgColor:"bg-green-100",iconColor:"text-green-600",buttonColor:"bg-green-600 data-[hover]:bg-green-500 dark:bg-green-500 dark:data-[hover]:bg-green-400"};default:return{icon:lH,bgColor:"bg-blue-100",iconColor:"text-blue-600",buttonColor:"bg-blue-600 data-[hover]:bg-blue-500 dark:bg-blue-500 dark:data-[hover]:bg-blue-400"}}},{icon:l,bgColor:u,iconColor:c,buttonColor:d}=s();return b.jsxs(ol,{isOpen:e,onClose:t,title:r,maxWidth:"max-w-md",children:[b.jsx("div",{className:"mt-4",children:b.jsxs("div",{className:"flex items-start",children:[b.jsx("div",{className:`mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full ${u} sm:mx-0 sm:h-10 sm:w-10`,children:b.jsx(l,{className:`h-6 w-6 ${c}`,"aria-hidden":"true"})}),b.jsx("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:b.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:n})})]})}),b.jsx("div",{className:"mt-6 flex justify-end gap-4",children:i&&o?b.jsxs(b.Fragment,{children:[b.jsx(rn,{type:"button",onClick:t,className:"inline-flex items-center gap-2 rounded-sm bg-neutral-100 py-1.5 px-3 text-sm/6 font-semibold text-neutral-700 shadow-sm focus:outline-none data-[hover]:bg-neutral-200 dark:bg-neutral-800 dark:text-neutral-200 dark:data-[hover]:bg-neutral-700",children:"Close"}),b.jsx(rn,{type:"button",onClick:()=>{o(),t()},className:`inline-flex items-center gap-2 rounded-sm py-1.5 px-3 text-sm/6 font-semibold text-white shadow-inner shadow-white/10 focus:outline-none ${d}`,children:i})]}):b.jsx(rn,{type:"button",onClick:t,className:`inline-flex items-center gap-2 rounded-sm py-1.5 px-3 text-sm/6 font-semibold text-white shadow-inner shadow-white/10 focus:outline-none ${d}`,children:"OK"})})]})};function f9e(e){const{activeWorkshopChannel:t,workshopChannels:r,agents:n,systemAgents:a,sendWorkshopMessage:i,connectToWorkshopChannel:o,updateWorkshopTopicName:s,fetchMyProviders:l,fetchSystemAgents:u,fetchWorkshopHistory:c,createDefaultWorkshopChannel:d,activateWorkshopChannel:f,llmProviders:h,notification:p,closeNotification:m,pendingInput:g,setPendingInput:v}=St(),y=N.useRef(null),x=N.useRef(null),[S,E]=N.useState(!0),[w,T]=N.useState(!1),[_,A]=N.useState(()=>e.storageKeys.historyPinned?localStorage.getItem(e.storageKeys.historyPinned)==="true":!1),[C,I]=N.useState(()=>{const ue=localStorage.getItem(e.storageKeys.inputHeight);return ue?parseInt(ue,10):80}),[R,D]=N.useState(!1),F=t?r[t]:null,z=F?.agentId?n.find(ue=>ue.id===F.agentId)||a.find(ue=>ue.id===F.agentId):null,j=F?.messages||[],H=F?.connected||!1,U=F?.error||null,G=F?.responding||!1,L=N.useCallback((ue=!1)=>{!S&&!ue||setTimeout(()=>{x.current?.scrollTo({top:x.current.scrollHeight,behavior:ue?"auto":"smooth"})},50)},[S]),W=N.useCallback(()=>{if(x.current){const{scrollTop:ue,scrollHeight:ve,clientHeight:ge}=x.current,_e=ve-ue-ge<80;E(_e)}},[]),X=N.useCallback(ue=>{if(!(!ue.trim()||!t)){if(G){D(!0),window.setTimeout(()=>D(!1),2e3);return}i(ue),g&&v(""),E(!0),setTimeout(()=>L(!0),100)}},[t,G,i,g,v,L]),$=N.useCallback(()=>{const ue=!_;A(ue),e.storageKeys.historyPinned&&localStorage.setItem(e.storageKeys.historyPinned,ue.toString())},[_,e.storageKeys.historyPinned]),Z=N.useCallback(()=>{A(!1),e.storageKeys.historyPinned&&localStorage.setItem(e.storageKeys.historyPinned,"false")},[e.storageKeys.historyPinned]),ne=N.useCallback(ue=>{},[]),pe=N.useCallback(ue=>{I(ue),localStorage.setItem(e.storageKeys.inputHeight,ue.toString())},[e.storageKeys.inputHeight]),ce=N.useCallback(()=>{F&&(T(!0),o(F.sessionId,F.id),setTimeout(()=>{T(!1)},2e3))},[F,o]),ie=N.useCallback(()=>{E(!0),L(!0)},[L]);return N.useEffect(()=>{S&&L()},[j.length,S,L]),N.useEffect(()=>{h.length===0&&l().catch(ue=>{console.error("Failed to fetch providers:",ue)})},[h.length,l]),N.useEffect(()=>{a.length===0&&u().catch(ue=>{console.error("Failed to fetch system agents:",ue)})},[a.length,u]),N.useEffect(()=>{c().catch(ue=>{console.error("Failed to fetch workshop history:",ue)})},[c]),N.useEffect(()=>{if(a.length>0&&a.find(ve=>ve.id===e.systemAgentId)&&(!t||F&&F.agentId!==e.systemAgentId&&(F.agentId==="00000000-0000-0000-0000-000000000001"||F.agentId==="00000000-0000-0000-0000-000000000002"))){const ge=Object.values(r).find(_e=>_e.agentId===e.systemAgentId);ge?(console.log(`Switching to existing channel for system agent: ${e.systemAgentId}`),f(ge.id).catch(_e=>{console.error("Failed to activate existing channel:",_e)})):(console.log(`Creating new workshop channel for system agent: ${e.systemAgentId}`),d(e.systemAgentId).catch(_e=>{console.error("Failed to create default workshop channel with system agent:",_e)}))}},[a,e.systemAgentId,d,t,F,r,f]),N.useEffect(()=>{const ue=x.current;if(ue)return E(!0),setTimeout(()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight)},50),ue.addEventListener("scroll",W,{passive:!0}),()=>ue.removeEventListener("scroll",W)},[t,W]),{autoScroll:S,isRetrying:w,showHistory:_,inputHeight:C,sendBlocked:R,currentChannel:F,currentAgent:z,messages:j,connected:H,error:U,responding:G,messagesEndRef:y,messagesContainerRef:x,handleSendMessage:X,handleToggleHistory:$,handleCloseHistory:Z,handleSelectTopic:ne,handleInputHeightChange:pe,handleRetryConnection:ce,handleScrollToBottom:ie,handleScroll:W,activeChatChannel:t,notification:p,closeNotification:m,pendingInput:g,updateTopicName:s}}const h9e=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})});/*! *****************************************************************************
|
|
173
|
-
|
|
173
|
+
Copyright (c) Microsoft Corporation.
|
|
174
174
|
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
176
|
+
purpose with or without fee is hereby granted.
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
***************************************************************************** */var m4=function(e,t){return m4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},m4(e,t)};function ae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");m4(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var p9e=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),m9e=function(){function e(){this.browser=new p9e,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 e}(),yt=new m9e;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:!yt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(yt.node=!0,yt.svgSupported=!0):g9e(navigator.userAgent,yt);function g9e(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var g4=12,CX="sans-serif",sl=g4+"px "+CX,v9e=20,y9e=100,b9e="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function x9e(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-v9e)/y9e;t[n]=a}return t}var S9e=x9e(b9e),$a={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=$a.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||sl),e.measureText(r);r=r||"",n=n||sl;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||g4,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=S9e[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function kX(e){for(var t in $a)e[t]&&($a[t]=e[t])}var NX=Bi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),IX=Bi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),jh=Object.prototype.toString,mx=Array.prototype,w9e=mx.forEach,E9e=mx.filter,v4=mx.slice,T9e=mx.map,DX=(function(){}).constructor,gx=DX?DX.prototype:null,y4="__proto__",_9e=2311;function b4(){return _9e++}function Fi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Fe(e){if(e==null||typeof e!="object")return e;var t=e,r=jh.call(e);if(r==="[object Array]"){if(!Uh(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=Fe(e[n])}}else if(IX[r]){if(!Uh(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!NX[r]&&!Uh(e)&&!Eu(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==y4&&(t[o]=Fe(e[o]))}return t}function rt(e,t,r){if(!Be(t)||!Be(e))return r?Fe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==y4){var a=e[n],i=t[n];Be(i)&&Be(a)&&!de(i)&&!de(a)&&!Eu(i)&&!Eu(a)&&!S4(i)&&!S4(a)&&!Uh(i)&&!Uh(a)?rt(a,i,r):(r||!(n in e))&&(e[n]=Fe(t[n]))}return e}function vx(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=rt(r,e[n],t);return r}function le(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==y4&&(e[r]=t[r]);return e}function Ue(e,t,r){for(var n=bt(t),a=0,i=n.length;a<i;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var A9e=$a.createCanvas;function tt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function x4(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Er(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else Ue(e,t,r)}function Hn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function B(e,t,r){if(e&&t)if(e.forEach&&e.forEach===w9e)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function fe(e,t,r){if(!e)return[];if(!t)return yx(e);if(e.map&&e.map===T9e)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function Bi(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Dt(e,t,r){if(!e)return[];if(!t)return yx(e);if(e.filter&&e.filter===E9e)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function wu(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function bt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function C9e(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(v4.call(arguments)))}}var Te=gx&&Pe(gx.bind)?gx.call.bind(gx.bind):C9e;function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(v4.call(arguments)))}}function de(e){return Array.isArray?Array.isArray(e):jh.call(e)==="[object Array]"}function Pe(e){return typeof e=="function"}function xe(e){return typeof e=="string"}function cg(e){return jh.call(e)==="[object String]"}function wt(e){return typeof e=="number"}function Be(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function S4(e){return!!NX[jh.call(e)]}function na(e){return!!IX[jh.call(e)]}function Eu(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function dg(e){return e.colorStops!=null}function MX(e){return e.image!=null}function w4(e){return jh.call(e)==="[object RegExp]"}function mn(e){return e!==e}function Gr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Re(e,t){return e??t}function aa(e,t,r){return e??t??r}function yx(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return v4.apply(e,t)}function fg(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Me(e,t){if(!e)throw new Error(t)}function li(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var RX="__ec_primitive__";function hg(e){e[RX]=!0}function Uh(e){return e[RX]}var k9e=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return bt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),LX=typeof Map=="function";function N9e(){return LX?new Map:new k9e}var OX=function(){function e(t){var r=de(t);this.data=N9e();var n=this;t instanceof e?t.each(a):t&&B(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return LX?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Le(e){return new OX(e)}function zh(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function pg(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&le(r,t),r}function E4(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ke(e,t){return e.hasOwnProperty(t)}function Tr(){}var mg=180/Math.PI,I9e=Number.EPSILON||Math.pow(2,-52);const D9e=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:I9e,HashMap:OX,RADIAN_TO_DEGREE:mg,assert:Me,bind:Te,clone:Fe,concatArray:zh,createCanvas:A9e,createHashMap:Le,createObject:pg,curry:Je,defaults:Ue,disableUserSelect:E4,each:B,eqNaN:mn,extend:le,filter:Dt,find:wu,guid:b4,hasOwn:ke,indexOf:tt,inherits:x4,isArray:de,isArrayLike:Hn,isBuiltInObject:S4,isDom:Eu,isFunction:Pe,isGradientObject:dg,isImagePatternObject:MX,isNumber:wt,isObject:Be,isPrimitive:Uh,isRegExp:w4,isString:xe,isStringSafe:cg,isTypedArray:na,keys:bt,logError:Fi,map:fe,merge:rt,mergeAll:vx,mixin:Er,noop:Tr,normalizeCssArray:fg,reduce:Bi,retrieve:Gr,retrieve2:Re,retrieve3:aa,setAsPrimitive:hg,slice:yx,trim:li},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
|
186
|
-
|
|
178
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
179
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
180
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
181
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
182
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
183
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
184
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
185
|
+
***************************************************************************** */var m4=function(e,t){return m4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},m4(e,t)};function ae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");m4(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var p9e=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),m9e=function(){function e(){this.browser=new p9e,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 e}(),yt=new m9e;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:!yt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(yt.node=!0,yt.svgSupported=!0):g9e(navigator.userAgent,yt);function g9e(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var g4=12,CX="sans-serif",sl=g4+"px "+CX,v9e=20,y9e=100,b9e="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function x9e(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-v9e)/y9e;t[n]=a}return t}var S9e=x9e(b9e),$a={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=$a.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||sl),e.measureText(r);r=r||"",n=n||sl;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||g4,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=S9e[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function kX(e){for(var t in $a)e[t]&&($a[t]=e[t])}var NX=Bi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),IX=Bi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),jh=Object.prototype.toString,mx=Array.prototype,w9e=mx.forEach,E9e=mx.filter,v4=mx.slice,T9e=mx.map,DX=(function(){}).constructor,gx=DX?DX.prototype:null,y4="__proto__",_9e=2311;function b4(){return _9e++}function Fi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Fe(e){if(e==null||typeof e!="object")return e;var t=e,r=jh.call(e);if(r==="[object Array]"){if(!Uh(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=Fe(e[n])}}else if(IX[r]){if(!Uh(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!NX[r]&&!Uh(e)&&!Eu(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==y4&&(t[o]=Fe(e[o]))}return t}function rt(e,t,r){if(!Be(t)||!Be(e))return r?Fe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==y4){var a=e[n],i=t[n];Be(i)&&Be(a)&&!de(i)&&!de(a)&&!Eu(i)&&!Eu(a)&&!S4(i)&&!S4(a)&&!Uh(i)&&!Uh(a)?rt(a,i,r):(r||!(n in e))&&(e[n]=Fe(t[n]))}return e}function vx(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=rt(r,e[n],t);return r}function le(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==y4&&(e[r]=t[r]);return e}function Ue(e,t,r){for(var n=bt(t),a=0,i=n.length;a<i;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var A9e=$a.createCanvas;function tt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function x4(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Er(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else Ue(e,t,r)}function Hn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function B(e,t,r){if(e&&t)if(e.forEach&&e.forEach===w9e)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function fe(e,t,r){if(!e)return[];if(!t)return yx(e);if(e.map&&e.map===T9e)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function Bi(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Dt(e,t,r){if(!e)return[];if(!t)return yx(e);if(e.filter&&e.filter===E9e)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function wu(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function bt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function C9e(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(v4.call(arguments)))}}var Te=gx&&Pe(gx.bind)?gx.call.bind(gx.bind):C9e;function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(v4.call(arguments)))}}function de(e){return Array.isArray?Array.isArray(e):jh.call(e)==="[object Array]"}function Pe(e){return typeof e=="function"}function xe(e){return typeof e=="string"}function cg(e){return jh.call(e)==="[object String]"}function wt(e){return typeof e=="number"}function Be(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function S4(e){return!!NX[jh.call(e)]}function na(e){return!!IX[jh.call(e)]}function Eu(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function dg(e){return e.colorStops!=null}function MX(e){return e.image!=null}function w4(e){return jh.call(e)==="[object RegExp]"}function mn(e){return e!==e}function Gr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Re(e,t){return e??t}function aa(e,t,r){return e??t??r}function yx(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return v4.apply(e,t)}function fg(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Me(e,t){if(!e)throw new Error(t)}function li(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var RX="__ec_primitive__";function hg(e){e[RX]=!0}function Uh(e){return e[RX]}var k9e=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return bt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),LX=typeof Map=="function";function N9e(){return LX?new Map:new k9e}var OX=function(){function e(t){var r=de(t);this.data=N9e();var n=this;t instanceof e?t.each(a):t&&B(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return LX?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Le(e){return new OX(e)}function zh(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function pg(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&le(r,t),r}function E4(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ke(e,t){return e.hasOwnProperty(t)}function Tr(){}var mg=180/Math.PI,I9e=Number.EPSILON||Math.pow(2,-52);const D9e=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:I9e,HashMap:OX,RADIAN_TO_DEGREE:mg,assert:Me,bind:Te,clone:Fe,concatArray:zh,createCanvas:A9e,createHashMap:Le,createObject:pg,curry:Je,defaults:Ue,disableUserSelect:E4,each:B,eqNaN:mn,extend:le,filter:Dt,find:wu,guid:b4,hasOwn:ke,indexOf:tt,inherits:x4,isArray:de,isArrayLike:Hn,isBuiltInObject:S4,isDom:Eu,isFunction:Pe,isGradientObject:dg,isImagePatternObject:MX,isNumber:wt,isObject:Be,isPrimitive:Uh,isRegExp:w4,isString:xe,isStringSafe:cg,isTypedArray:na,keys:bt,logError:Fi,map:fe,merge:rt,mergeAll:vx,mixin:Er,noop:Tr,normalizeCssArray:fg,reduce:Bi,retrieve:Gr,retrieve2:Re,retrieve3:aa,setAsPrimitive:hg,slice:yx,trim:li},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
|
186
|
+
Copyright (c) Microsoft Corporation.
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
189
|
+
purpose with or without fee is hereby granted.
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
***************************************************************************** */var T4=function(e,t){return T4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},T4(e,t)};function tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");T4(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Tu(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function ia(e,t){return e[0]=t[0],e[1]=t[1],e}function as(e){return[e[0],e[1]]}function bx(e,t,r){return e[0]=t,e[1]=r,e}function _4(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function xx(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function _u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function gg(e){return Math.sqrt(A4(e))}var M9e=gg;function A4(e){return e[0]*e[0]+e[1]*e[1]}var R9e=A4;function L9e(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function O9e(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function P9e(e,t){return e[0]*t[0]+e[1]*t[1]}function vg(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ld(e,t){var r=gg(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Sx(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ll=Sx;function PX(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Au=PX;function F9e(e,t){return e[0]=-t[0],e[1]=-t[1],e}function yg(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function _r(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function ul(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function cl(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const B9e=Object.freeze(Object.defineProperty({__proto__:null,add:_4,applyTransform:_r,clone:as,copy:ia,create:Tu,dist:ll,distSquare:Au,distance:Sx,distanceSquare:PX,div:O9e,dot:P9e,len:gg,lenSquare:A4,length:M9e,lengthSquare:R9e,lerp:yg,max:cl,min:ul,mul:L9e,negate:F9e,normalize:ld,scale:vg,scaleAndAdd:xx,set:bx,sub:_u},Symbol.toStringTag,{value:"Module"}));var $h=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),j9e=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $h(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new $h(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new $h(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new $h(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new $h(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $h(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),ji=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),U9e=Math.log(2);function C4(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/U9e);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var d=0,f=0,h=0;f<s;f++){var p=1<<f;p&a||(d+=(h%2?-1:1)*e[r][f]*C4(e,t-1,c,u,a|p,i),h++)}return i[o]=d,d}function FX(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=C4(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*C4(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var d=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/d,l[1]=(u*i[3]+c*i[4]+i[5])/d}}}var Ex="___zrEVENTSAVED",k4=[];function z9e(e,t,r,n,a){return N4(k4,t,n,a,!0)&&N4(e,r,k4[0],k4[1])}function $9e(e,t){e&&r(e),t&&r(t);function r(n){var a=n[Ex];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Ex])}}function N4(e,t,r,n,a){if(t.getBoundingClientRect&&yt.domSupported&&!BX(t)){var i=t[Ex]||(t[Ex]={}),o=V9e(t,i),s=H9e(o,i,a);if(s)return s(e,r,n),!0}return!1}function V9e(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){B(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function H9e(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?FX(s,o):FX(o,s))}function BX(e){return e.nodeName.toUpperCase()==="CANVAS"}var G9e=/([&<>"'])/g,q9e={"&":"&","<":"<",">":">",'"':""","'":"'"};function oa(e){return e==null?"":(e+"").replace(G9e,function(t,r){return q9e[r]})}var W9e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,I4=[],Y9e=yt.browser.firefox&&+yt.browser.version.split(".")[0]<39;function D4(e,t,r,n){return r=r||{},n?jX(e,t,r):Y9e&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):jX(e,t,r),r}function jX(e,t,r){if(yt.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(BX(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(N4(I4,e,n,a)){r.zrX=I4[0],r.zrY=I4[1];return}}r.zrX=r.zrY=0}function M4(e){return e||window.event}function Ui(e,t,r){if(t=M4(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&D4(e,o,t,r)}else{D4(e,t,t,r);var i=X9e(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&W9e.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function X9e(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function R4(e,t,r,n){e.addEventListener(t,r,n)}function K9e(e,t,r,n){e.removeEventListener(t,r,n)}var dl=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function UX(e){return e.which===2||e.which===3}var Z9e=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=D4(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in L4)if(L4.hasOwnProperty(r)){var n=L4[r](this._track,t);if(n)return n}},e}();function zX(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Q9e(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var L4={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=zX(n)/zX(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Q9e(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function gn(){return[1,0,0,1,0,0]}function bg(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function xg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function _o(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Ao(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function fl(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),d=Math.cos(r);return e[0]=a*d+s*c,e[1]=-a*c+s*d,e[2]=i*d+l*c,e[3]=-i*c+d*l,e[4]=d*(o-n[0])+c*(u-n[1])+n[0],e[5]=d*(u-n[1])-c*(o-n[0])+n[1],e}function Tx(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function zi(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function $X(e){var t=gn();return xg(t,e),t}const J9e=Object.freeze(Object.defineProperty({__proto__:null,clone:$X,copy:xg,create:gn,identity:bg,invert:zi,mul:_o,rotate:fl,scale:Tx,translate:Ao},Symbol.toStringTag,{value:"Module"}));var $e=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),ud=Math.min,Vh=Math.max,O4=Math.abs,VX=["x","y"],eFe=["width","height"],cd=new $e,dd=new $e,fd=new $e,hd=new $e,ui=GX(),Sg=ui.minTv,P4=ui.maxTv,wg=[0,0],Ve=function(){function e(t,r,n,a){e.set(this,t,r,n,a)}return e.set=function(t,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),t.x=r,t.y=n,t.width=a,t.height=i,t},e.prototype.union=function(t){var r=ud(t.x,this.x),n=ud(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Vh(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Vh(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=gn();return Ao(i,i,[-r.x,-r.y]),Tx(i,i,[n,a]),Ao(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,a){n&&$e.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(tFe,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(rFe,r.x,r.y,r.width,r.height));var s=!!n;ui.reset(a,s);var l=ui.touchThreshold,u=t.x+l,c=t.x+t.width-l,d=t.y+l,f=t.y+t.height-l,h=r.x+l,p=r.x+r.width-l,m=r.y+l,g=r.y+r.height-l;if(u>c||d>f||h>p||m>g)return!1;var v=!(c<h||p<u||f<m||g<d);return(s||i)&&(wg[0]=1/0,wg[1]=0,HX(u,c,h,p,0,s,i,o),HX(d,f,m,g,1,s,i,o),s&&$e.copy(n,v?ui.useDir?ui.dirMinTv:Sg:P4)),v},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}cd.x=fd.x=r.x,cd.y=hd.y=r.y,dd.x=hd.x=r.x+r.width,dd.y=fd.y=r.y+r.height,cd.transform(n),hd.transform(n),dd.transform(n),fd.transform(n),t.x=ud(cd.x,dd.x,fd.x,hd.x),t.y=ud(cd.y,dd.y,fd.y,hd.y);var l=Vh(cd.x,dd.x,fd.x,hd.x),u=Vh(cd.y,dd.y,fd.y,hd.y);t.width=l-t.x,t.height=u-t.y},e}(),tFe=new Ve(0,0,0,0),rFe=new Ve(0,0,0,0);function HX(e,t,r,n,a,i,o,s){var l=O4(t-r),u=O4(n-e),c=ud(l,u),d=VX[a],f=VX[1-a],h=eFe[a];t<r||n<e?l<u?(i&&(P4[d]=-l),s&&(o[d]=t,o[h]=0)):(i&&(P4[d]=u),s&&(o[d]=e,o[h]=0)):(o&&(o[d]=Vh(e,r),o[h]=ud(t,n)-o[d]),i&&(c<wg[0]||ui.useDir)&&(wg[0]=ud(c,wg[0]),(l<u||!ui.bidirectional)&&(Sg[d]=l,Sg[f]=0,ui.useDir&&ui.calcDirMTV()),(l>=u||!ui.bidirectional)&&(Sg[d]=-u,Sg[f]=0,ui.useDir&&ui.calcDirMTV())))}function GX(){var e=0,t=new $e,r=new $e,n={minTv:new $e,maxTv:new $e,useDir:!1,dirMinTv:new $e,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=Vh(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(e),u=Math.cos(e),c=l*i.y+u*i.x;if(a(c)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*u/c,r.y=s*l/c,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return O4(i)<1e-10}return n}var qX="silent";function nFe(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:aFe}}function aFe(){dl(this.event)}var iFe=function(e){tr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ji),Eg=function(){function e(t,r){this.x=t,this.y=r}return e}(),oFe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],F4=new Ve(0,0,0,0),WX=function(e){tr(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new Eg(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new iFe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new j9e(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(B(oFe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=XX(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Eg(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Eg(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=nFe(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Eg(r,n);if(YX(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ve(r-u,n-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(F4.copy(f.getBoundingRect()),f.transform&&F4.applyTransform(f.transform),F4.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var v=0;v<m;v+=p){var y=r+g*Math.cos(v),x=n+g*Math.sin(v);if(YX(s,o,y,x,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Z9e);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new Eg;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(ji);B(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){WX.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=XX(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||ll(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function sFe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?qX:!0}return!1}function YX(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=sFe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==qX)){t.target=o;break}}}function XX(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var KX=32,Tg=7;function lFe(e){for(var t=0;e>=KX;)t|=e&1,e>>=1;return e+t}function ZX(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;uFe(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function uFe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function QX(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function B4(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function j4(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function cFe(e,t){var r=Tg,n,a,i=0,o=[];n=[],a=[];function s(h,p){n[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var p=n[h],m=a[h],g=n[h+1],v=a[h+1];a[h]=m+v,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var y=j4(e[g],e,p,m,0,t);p+=y,m-=y,m!==0&&(v=B4(e[p+m-1],e,g,v,v-1,t),v!==0&&(m<=v?d(p,m,g,v):f(p,m,g,v)))}function d(h,p,m,g){var v=0;for(v=0;v<p;v++)o[v]=e[h+v];var y=0,x=m,S=h;if(e[S++]=e[x++],--g===0){for(v=0;v<p;v++)e[S+v]=o[y+v];return}if(p===1){for(v=0;v<g;v++)e[S+v]=e[x+v];e[S+g]=o[y];return}for(var E=r,w,T,_;;){w=0,T=0,_=!1;do if(t(e[x],o[y])<0){if(e[S++]=e[x++],T++,w=0,--g===0){_=!0;break}}else if(e[S++]=o[y++],w++,T=0,--p===1){_=!0;break}while((w|T)<E);if(_)break;do{if(w=j4(e[x],o,y,p,0,t),w!==0){for(v=0;v<w;v++)e[S+v]=o[y+v];if(S+=w,y+=w,p-=w,p<=1){_=!0;break}}if(e[S++]=e[x++],--g===0){_=!0;break}if(T=B4(o[y],e,x,g,0,t),T!==0){for(v=0;v<T;v++)e[S+v]=e[x+v];if(S+=T,x+=T,g-=T,g===0){_=!0;break}}if(e[S++]=o[y++],--p===1){_=!0;break}E--}while(w>=Tg||T>=Tg);if(_)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),p===1){for(v=0;v<g;v++)e[S+v]=e[x+v];e[S+g]=o[y]}else{if(p===0)throw new Error;for(v=0;v<p;v++)e[S+v]=o[y+v]}}function f(h,p,m,g){var v=0;for(v=0;v<g;v++)o[v]=e[m+v];var y=h+p-1,x=g-1,S=m+g-1,E=0,w=0;if(e[S--]=e[y--],--p===0){for(E=S-(g-1),v=0;v<g;v++)e[E+v]=o[v];return}if(g===1){for(S-=p,y-=p,w=S+1,E=y+1,v=p-1;v>=0;v--)e[w+v]=e[E+v];e[S]=o[x];return}for(var T=r;;){var _=0,A=0,C=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],_++,A=0,--p===0){C=!0;break}}else if(e[S--]=o[x--],A++,_=0,--g===1){C=!0;break}while((_|A)<T);if(C)break;do{if(_=p-j4(o[x],e,h,p,p-1,t),_!==0){for(S-=_,y-=_,p-=_,w=S+1,E=y+1,v=_-1;v>=0;v--)e[w+v]=e[E+v];if(p===0){C=!0;break}}if(e[S--]=o[x--],--g===1){C=!0;break}if(A=g-B4(e[y],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,w=S+1,E=x+1,v=0;v<A;v++)e[w+v]=o[E+v];if(g<=1){C=!0;break}}if(e[S--]=e[y--],--p===0){C=!0;break}T--}while(_>=Tg||A>=Tg);if(C)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=p,y-=p,w=S+1,E=y+1,v=p-1;v>=0;v--)e[w+v]=e[E+v];e[S]=o[x]}else{if(g===0)throw new Error;for(E=S-(g-1),v=0;v<g;v++)e[E+v]=o[v]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _x(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<KX){i=ZX(e,r,n,t),QX(e,r,n,r+i,t);return}var o=cFe(e,t),s=lFe(a);do{if(i=ZX(e,r,n,t),i<s){var l=a;l>s&&(l=s),QX(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var ci=1,_g=2,Hh=4,JX=!1;function U4(){JX||(JX=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function eK(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var dFe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=eK}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,_x(n,eK)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,c=t;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var d=t.childrenRef(),f=0;f<d.length;f++){var h=d[f];t.__dirty&&(h.__dirty|=ci),this._updateAndAddDisplayable(h,s,n)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(U4(),p.z=0),isNaN(p.z2)&&(U4(),p.z2=0),isNaN(p.zlevel)&&(U4(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=t.getDecalElement&&t.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=tt(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Ax;Ax=yt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ag={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ag.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ag.bounceIn(e*2)*.5:Ag.bounceOut(e*2-1)*.5+.5}},Cx=Math.pow,Cu=Math.sqrt,kx=1e-8,tK=1e-4,rK=Cu(3),Nx=1/3,is=Tu(),$i=Tu(),Gh=Tu();function ku(e){return e>-kx&&e<kx}function nK(e){return e>kx||e<-kx}function vn(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function aK(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function Ix(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ku(c)&&ku(d))if(ku(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var m=d*d-4*c*f;if(ku(m)){var g=d/c,p=-s/o+g,v=-g/2;p>=0&&p<=1&&(i[h++]=p),v>=0&&v<=1&&(i[h++]=v)}else if(m>0){var y=Cu(m),x=c*s+1.5*o*(-d+y),S=c*s+1.5*o*(-d-y);x<0?x=-Cx(-x,Nx):x=Cx(x,Nx),S<0?S=-Cx(-S,Nx):S=Cx(S,Nx);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var E=(2*c*s-3*o*d)/(2*Cu(c*c*c)),w=Math.acos(E)/3,T=Cu(c),_=Math.cos(w),p=(-s-2*T*_)/(3*o),v=(-s+T*(_+rK*Math.sin(w)))/(3*o),A=(-s+T*(_-rK*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),v>=0&&v<=1&&(i[h++]=v),A>=0&&A<=1&&(i[h++]=A)}}return h}function iK(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(ku(o)){if(nK(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ku(c))a[0]=-i/(2*o);else if(c>0){var d=Cu(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Nu(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=n}function oK(e,t,r,n,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,m,g,v;is[0]=l,is[1]=u;for(var y=0;y<1;y+=.05)$i[0]=vn(e,r,a,o,y),$i[1]=vn(t,n,i,s,y),g=Au(is,$i),g<h&&(d=y,h=g);h=1/0;for(var x=0;x<32&&!(f<tK);x++)p=d-f,m=d+f,$i[0]=vn(e,r,a,o,p),$i[1]=vn(t,n,i,s,p),g=Au($i,is),p>=0&&g<h?(d=p,h=g):(Gh[0]=vn(e,r,a,o,m),Gh[1]=vn(t,n,i,s,m),v=Au(Gh,is),m<=1&&v<h?(d=m,h=v):f*=.5);return c&&(c[0]=vn(e,r,a,o,d),c[1]=vn(t,n,i,s,d)),Cu(h)}function fFe(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,d=0,f=1/l,h=1;h<=l;h++){var p=h*f,m=vn(e,r,a,o,p),g=vn(t,n,i,s,p),v=m-u,y=g-c;d+=Math.sqrt(v*v+y*y),u=m,c=g}return d}function In(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function z4(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function hFe(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(ku(i)){if(nK(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ku(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Cu(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function sK(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Cg(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function lK(e,t,r,n,a,i,o,s,l){var u,c=.005,d=1/0;is[0]=o,is[1]=s;for(var f=0;f<1;f+=.05){$i[0]=In(e,r,a,f),$i[1]=In(t,n,i,f);var h=Au(is,$i);h<d&&(u=f,d=h)}d=1/0;for(var p=0;p<32&&!(c<tK);p++){var m=u-c,g=u+c;$i[0]=In(e,r,a,m),$i[1]=In(t,n,i,m);var h=Au($i,is);if(m>=0&&h<d)u=m,d=h;else{Gh[0]=In(e,r,a,g),Gh[1]=In(t,n,i,g);var v=Au(Gh,is);g<=1&&v<d?(u=g,d=v):c*=.5}}return l&&(l[0]=In(e,r,a,u),l[1]=In(t,n,i,u)),Cu(d)}function pFe(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,d=1;d<=o;d++){var f=d*c,h=In(e,r,a,f),p=In(t,n,i,f),m=h-s,g=p-l;u+=Math.sqrt(m*m+g*g),s=h,l=p}return u}var mFe=/cubic-bezier\(([0-9,\.e ]+)\)/;function $4(e){var t=e&&mFe.exec(e);if(t){var r=t[1].split(","),n=+li(r[0]),a=+li(r[1]),i=+li(r[2]),o=+li(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ix(0,n,i,1,l,s)&&vn(0,a,o,1,s[0])}}}var gFe=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Tr,this.ondestroy=t.ondestroy||Tr,this.onrestart=t.onrestart||Tr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Pe(t)?t:Ag[t]||$4(t)},e}(),uK=function(){function e(t){this.value=t}return e}(),vFe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new uK(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),qh=function(){function e(t){this._list=new vFe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new uK(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),cK={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 Co(e){return e=Math.round(e),e<0?0:e>255?255:e}function yFe(e){return e=Math.round(e),e<0?0:e>360?360:e}function kg(e){return e<0?0:e>1?1:e}function Dx(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Co(parseFloat(t)/100*255):Co(parseInt(t,10))}function hl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?kg(parseFloat(t)/100):kg(parseFloat(t))}function V4(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Iu(e,t,r){return e+(t-e)*r}function Vi(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function H4(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var dK=new qh(20),Mx=null;function Wh(e,t){Mx&&H4(Mx,t),Mx=dK.put(e,Mx||t.slice())}function sa(e,t){if(e){t=t||[];var r=dK.get(e);if(r)return H4(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in cK)return H4(t,cK[n]),Wh(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Vi(t,0,0,0,1);return}return Vi(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Wh(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Vi(t,0,0,0,1);return}return Vi(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Wh(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Vi(t,+u[0],+u[1],+u[2],1):Vi(t,0,0,0,1);c=hl(u.pop());case"rgb":if(u.length>=3)return Vi(t,Dx(u[0]),Dx(u[1]),Dx(u[2]),u.length===3?c:hl(u[3])),Wh(e,t),t;Vi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Vi(t,0,0,0,1);return}return u[3]=hl(u[3]),G4(u,t),Wh(e,t),t;case"hsl":if(u.length!==3){Vi(t,0,0,0,1);return}return G4(u,t),Wh(e,t),t;default:return}}Vi(t,0,0,0,1)}}function G4(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=hl(e[1]),a=hl(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Vi(t,Co(V4(o,i,r+1/3)*255),Co(V4(o,i,r)*255),Co(V4(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function bFe(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,d=((i-r)/6+o/2)/o,f=((i-n)/6+o/2)/o;t===i?l=f-d:r===i?l=1/3+c-f:n===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function Rx(e,t){var r=sa(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Hi(r,r.length===4?"rgba":"rgb")}}function xFe(e){var t=sa(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ng(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=Co(Iu(o[0],s[0],l)),r[1]=Co(Iu(o[1],s[1],l)),r[2]=Co(Iu(o[2],s[2],l)),r[3]=kg(Iu(o[3],s[3],l)),r}}var SFe=Ng;function q4(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=sa(t[a]),s=sa(t[i]),l=n-a,u=Hi([Co(Iu(o[0],s[0],l)),Co(Iu(o[1],s[1],l)),Co(Iu(o[2],s[2],l)),kg(Iu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var wFe=q4;function pl(e,t,r,n){var a=sa(e);if(e)return a=bFe(a),t!=null&&(a[0]=yFe(Pe(t)?t(a[0]):t)),r!=null&&(a[1]=hl(Pe(r)?r(a[1]):r)),n!=null&&(a[2]=hl(Pe(n)?n(a[2]):n)),Hi(G4(a),"rgba")}function Ig(e,t){var r=sa(e);if(r&&t!=null)return r[3]=kg(t),Hi(r,"rgba")}function Hi(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Dg(e,t){var r=sa(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function EFe(){return Hi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var fK=new qh(100);function Lx(e){if(xe(e)){var t=fK.get(e);return t||(t=Rx(e,-.1),fK.put(e,t)),t}else if(dg(e)){var r=le({},e);return r.colorStops=fe(e.colorStops,function(n){return{offset:n.offset,color:Rx(n.color,-.1)}}),r}return e}const TFe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ng,fastMapToColor:SFe,lerp:q4,lift:Rx,liftColor:Lx,lum:Dg,mapToColor:wFe,modifyAlpha:Ig,modifyHSL:pl,parse:sa,parseCssFloat:hl,parseCssInt:Dx,random:EFe,stringify:Hi,toHex:xFe},Symbol.toStringTag,{value:"Module"}));var Ox=Math.round;function Mg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=sa(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var hK=1e-4;function Du(e){return e<hK&&e>-hK}function Px(e){return Ox(e*1e3)/1e3}function W4(e){return Ox(e*1e4)/1e4}function _Fe(e){return"matrix("+Px(e[0])+","+Px(e[1])+","+Px(e[2])+","+Px(e[3])+","+W4(e[4])+","+W4(e[5])+")"}var AFe={left:"start",right:"end",center:"middle",middle:"middle"};function CFe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function kFe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function NFe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function pK(e){return e&&!!e.image}function IFe(e){return e&&!!e.svgElement}function Y4(e){return pK(e)||IFe(e)}function mK(e){return e.type==="linear"}function gK(e){return e.type==="radial"}function vK(e){return e&&(e.type==="linear"||e.type==="radial")}function Fx(e){return"url(#"+e+")"}function yK(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function bK(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*mg,a=Re(e.scaleX,1),i=Re(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Ox(o*mg)+"deg, "+Ox(s*mg)+"deg)"),l.join(" ")}var DFe=function(){return yt.hasGlobalWindow&&Pe(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&Fi("Base64 isn't natively supported in the current environment."),null}}(),X4=Array.prototype.slice;function ml(e,t,r){return(t-e)*r+e}function K4(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=ml(t[i],r[i],n);return e}function MFe(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=ml(t[o][s],r[o][s],n)}return e}function Bx(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function xK(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function RFe(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function LFe(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:X4.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Rg(e){if(Hn(e)){var t=e.length;if(Hn(e[0])){for(var r=[],n=0;n<t;n++)r.push(X4.call(e[n]));return r}return X4.call(e)}return e}function jx(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function OFe(e){return Hn(e&&e[0])?2:1}var Ux=0,zx=1,SK=2,Lg=3,Z4=4,Q4=5,wK=6;function EK(e){return e===Z4||e===Q4}function $x(e){return e===zx||e===SK}var Og=[0,0,0,0],PFe=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=wK,l=r;if(Hn(r)){var u=OFe(r);s=u,(u===1&&!wt(r[0])||u===2&&!wt(r[0][0]))&&(o=!0)}else if(wt(r)&&!mn(r))s=Ux;else if(xe(r))if(!isNaN(+r))s=Ux;else{var c=sa(r);c&&(l=c,s=Lg)}else if(dg(r)){var d=le({},l);d.colorStops=fe(r.colorStops,function(h){return{offset:h.offset,color:sa(h.color)}}),mK(r)?s=Z4:gK(r)&&(s=Q4),l=d}i===0?this.valType=s:(s!==this.valType||s===wK)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=Pe(n)?n:Ag[n]||$4(n)),a.push(f),f},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=$x(a),u=EK(a),c=0;c<i;c++){var d=n[c],f=d.value,h=o.value;d.percent=d.time/t,s||(l&&c!==i-1?LFe(f,h,a):u&&RFe(f.colorStops,h.colorStops))}if(!s&&a!==Q4&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<i;c++)a===Ux?n[c].additiveValue=n[c].value-p:a===Lg?n[c].additiveValue=Bx([],n[c].value,p,-1):$x(a)&&(n[c].additiveValue=a===zx?Bx([],n[c].value,p,-1):xK([],n[c].value,p,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Lg,c,d=this._lastFr,f=Math.min,h,p;if(s===1)h=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=f(d+1,s-1);for(c=m;c>=0&&!(o[c].percent<=r);c--);c=f(c,s-2)}else{for(c=d;c<s&&!(o[c].percent>r);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,v=g===0?1:f((r-h.percent)/g,1);p.easingFunc&&(v=p.easingFunc(v));var y=n?this._additiveValue:u?Og:t[l];if(($x(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=v<1?h.rawValue:p.rawValue;else if($x(i))i===zx?K4(y,h[a],p[a],v):MFe(y,h[a],p[a],v);else if(EK(i)){var x=h[a],S=p[a],E=i===Z4;t[l]={type:E?"linear":"radial",x:ml(x.x,S.x,v),y:ml(x.y,S.y,v),colorStops:fe(x.colorStops,function(T,_){var A=S.colorStops[_];return{offset:ml(T.offset,A.offset,v),color:jx(K4([],T.color,A.color,v))}}),global:S.global},E?(t[l].x2=ml(x.x2,S.x2,v),t[l].y2=ml(x.y2,S.y2,v)):t[l].r=ml(x.r,S.r,v)}else if(u)K4(y,h[a],p[a],v),n||(t[l]=jx(y));else{var w=ml(h[a],p[a],v);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Ux?t[n]=t[n]+a:r===Lg?(sa(t[n],Og),Bx(Og,Og,a,1),t[n]=jx(Og)):r===zx?Bx(t[n],t[n],a,1):r===SK&&xK(t[n],t[n],a,1)},e}(),J4=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){Fi("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,bt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new PFe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,f=d[d.length-1];u=f&&f.value,c.valType===Lg&&u&&(u=jx(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Rg(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Rg(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(r._target[s.propName]=d.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var f=new gFe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var p=r._additiveAnimators;if(p){for(var m=!1,g=0;g<p.length;g++)if(p[g]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var v=r._onframeCbs;if(v)for(var g=0;g<v.length;g++)v[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return fe(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Rg(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||bt(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Yh(){return new Date().getTime()}var FFe=function(e){tr(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Yh()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ax(n),!r._paused&&r.update())}Ax(n)},t.prototype.start=function(){this._running||(this._time=Yh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yh()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new J4(r,n.loop);return this.addAnimator(a),a},t}(ji),BFe=300,eN=yt.domSupported,tN=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=fe(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),TK={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_K=!1;function rN(e){var t=e.pointerType;return t==="pen"||t==="touch"}function jFe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function nN(e){e&&(e.zrByTouch=!0)}function UFe(e,t){return Ui(e.dom,new zFe(e,t),!0)}function AK(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var zFe=function(){function e(t,r){this.stopPropagation=Tr,this.stopImmediatePropagation=Tr,this.preventDefault=Tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ko={mousedown:function(e){e=Ui(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ui(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Ui(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ui(this.dom,e);var t=e.toElement||e.relatedTarget;AK(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){_K=!0,e=Ui(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){_K||(e=Ui(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ui(this.dom,e),nN(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ko.mousemove.call(this,e),ko.mousedown.call(this,e)},touchmove:function(e){e=Ui(this.dom,e),nN(e),this.handler.processGesture(e,"change"),ko.mousemove.call(this,e)},touchend:function(e){e=Ui(this.dom,e),nN(e),this.handler.processGesture(e,"end"),ko.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<BFe&&ko.click.call(this,e)},pointerdown:function(e){ko.mousedown.call(this,e)},pointermove:function(e){rN(e)||ko.mousemove.call(this,e)},pointerup:function(e){ko.mouseup.call(this,e)},pointerout:function(e){rN(e)||ko.mouseout.call(this,e)}};B(["click","dblclick","contextmenu"],function(e){ko[e]=function(t){t=Ui(this.dom,t),this.trigger(e,t)}});var aN={pointermove:function(e){rN(e)||aN.mousemove.call(this,e)},pointerup:function(e){aN.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function $Fe(e,t){var r=t.domHandlers;yt.pointerEventsSupported?B(tN.pointer,function(n){Vx(t,n,function(a){r[n].call(e,a)})}):(yt.touchEventsSupported&&B(tN.touch,function(n){Vx(t,n,function(a){r[n].call(e,a),jFe(t)})}),B(tN.mouse,function(n){Vx(t,n,function(a){a=M4(a),t.touching||r[n].call(e,a)})}))}function VFe(e,t){yt.pointerEventsSupported?B(TK.pointer,r):yt.touchEventsSupported||B(TK.mouse,r);function r(n){function a(i){i=M4(i),AK(e,i.target)||(i=UFe(e,i),t.domHandlers[n].call(e,i))}Vx(t,n,a,{capture:!0})}}function Vx(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,R4(e.domTarget,t,r,n)}function iN(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&K9e(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var CK=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),HFe=function(e){tr(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new CK(r,ko),eN&&(a._globalHandlerScope=new CK(document,aN)),$Fe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){iN(this._localHandlerScope),eN&&iN(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,eN&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?VFe(this,n):iN(n)}},t}(ji),kK=1;yt.hasGlobalWindow&&(kK=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hx=kK,oN=.4,sN="#333",lN="#ccc",GFe="#eee",NK=bg,IK=5e-5;function pd(e){return e>IK||e<-IK}var md=[],Xh=[],uN=gn(),cN=Math.abs,gl=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return pd(this.rotation)||pd(this.x)||pd(this.y)||pd(this.scaleX-1)||pd(this.scaleY-1)||pd(this.skewX)||pd(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(NK(n),this.invTransform=null);return}n=n||gn(),r?this.getLocalTransform(n):NK(n),t&&(r?_o(n,t,n):xg(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(md);var n=md[0]<0?-1:1,a=md[1]<0?-1:1,i=((md[0]-n)*r+n)/md[0]||0,o=((md[1]-a)*r+a)/md[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||gn(),zi(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||gn(),_o(Xh,t.invTransform,r),r=Xh);var n=this.originX,a=this.originY;(n||a)&&(uN[4]=n,uN[5]=a,_o(Xh,r,uN),Xh[4]-=n,Xh[5]-=a,r=Xh),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&_r(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&_r(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&cN(t[0]-1)>1e-10&&cN(t[3]-1)>1e-10?Math.sqrt(cN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Gx(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,d=t.y,f=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var p=n+s,m=a+l;r[4]=-p*i-f*m*o,r[5]=-m*o-h*p*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=f*o,u&&fl(r,r,u),r[4]+=n+c,r[5]+=a+d,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),os=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Gx(e,t){for(var r=0;r<os.length;r++){var n=os[r];e[n]=t[n]}}function ss(e){qx||(qx=new qh(100)),e=e||sl;var t=qx.get(e);return t||(t={font:e,strWidthCache:new qh(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$a.measureText("国",e).width,asciiCharWidth:$a.measureText("a",e).width},qx.put(e,t)),t}var qx;function qFe(e){if(!(dN>=DK)){e=e||sl;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=$a.measureText(String.fromCharCode(n),e).width;var a=+new Date-r;return a>16?dN=DK:a>2&&dN++,t}}var dN=0,DK=5;function MK(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=qFe(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function ls(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=$a.measureText(t,e.font).width,r.put(t,n)),n}function RK(e,t,r,n){var a=ls(ss(t),e),i=Pg(t),o=Kh(0,a,r),s=gd(0,i,n),l=new Ve(o,s,a,i);return l}function Wx(e,t,r,n){var a=((e||"")+"").split(`
|
|
191
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
192
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
193
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
194
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
195
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
196
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
197
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
198
|
+
***************************************************************************** */var T4=function(e,t){return T4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},T4(e,t)};function tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");T4(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Tu(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function ia(e,t){return e[0]=t[0],e[1]=t[1],e}function as(e){return[e[0],e[1]]}function bx(e,t,r){return e[0]=t,e[1]=r,e}function _4(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function xx(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function _u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function gg(e){return Math.sqrt(A4(e))}var M9e=gg;function A4(e){return e[0]*e[0]+e[1]*e[1]}var R9e=A4;function L9e(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function O9e(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function P9e(e,t){return e[0]*t[0]+e[1]*t[1]}function vg(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ld(e,t){var r=gg(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Sx(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ll=Sx;function PX(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Au=PX;function F9e(e,t){return e[0]=-t[0],e[1]=-t[1],e}function yg(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function _r(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function ul(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function cl(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const B9e=Object.freeze(Object.defineProperty({__proto__:null,add:_4,applyTransform:_r,clone:as,copy:ia,create:Tu,dist:ll,distSquare:Au,distance:Sx,distanceSquare:PX,div:O9e,dot:P9e,len:gg,lenSquare:A4,length:M9e,lengthSquare:R9e,lerp:yg,max:cl,min:ul,mul:L9e,negate:F9e,normalize:ld,scale:vg,scaleAndAdd:xx,set:bx,sub:_u},Symbol.toStringTag,{value:"Module"}));var $h=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),j9e=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $h(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new $h(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new $h(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new $h(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new $h(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $h(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),ji=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),U9e=Math.log(2);function C4(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/U9e);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var d=0,f=0,h=0;f<s;f++){var p=1<<f;p&a||(d+=(h%2?-1:1)*e[r][f]*C4(e,t-1,c,u,a|p,i),h++)}return i[o]=d,d}function FX(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=C4(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*C4(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var d=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/d,l[1]=(u*i[3]+c*i[4]+i[5])/d}}}var Ex="___zrEVENTSAVED",k4=[];function z9e(e,t,r,n,a){return N4(k4,t,n,a,!0)&&N4(e,r,k4[0],k4[1])}function $9e(e,t){e&&r(e),t&&r(t);function r(n){var a=n[Ex];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Ex])}}function N4(e,t,r,n,a){if(t.getBoundingClientRect&&yt.domSupported&&!BX(t)){var i=t[Ex]||(t[Ex]={}),o=V9e(t,i),s=H9e(o,i,a);if(s)return s(e,r,n),!0}return!1}function V9e(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){B(r,function(c){c.parentNode&&c.parentNode.removeChild(c)})},r}function H9e(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?FX(s,o):FX(o,s))}function BX(e){return e.nodeName.toUpperCase()==="CANVAS"}var G9e=/([&<>"'])/g,q9e={"&":"&","<":"<",">":">",'"':""","'":"'"};function oa(e){return e==null?"":(e+"").replace(G9e,function(t,r){return q9e[r]})}var W9e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,I4=[],Y9e=yt.browser.firefox&&+yt.browser.version.split(".")[0]<39;function D4(e,t,r,n){return r=r||{},n?jX(e,t,r):Y9e&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):jX(e,t,r),r}function jX(e,t,r){if(yt.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(BX(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(N4(I4,e,n,a)){r.zrX=I4[0],r.zrY=I4[1];return}}r.zrX=r.zrY=0}function M4(e){return e||window.event}function Ui(e,t,r){if(t=M4(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&D4(e,o,t,r)}else{D4(e,t,t,r);var i=X9e(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&W9e.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function X9e(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function R4(e,t,r,n){e.addEventListener(t,r,n)}function K9e(e,t,r,n){e.removeEventListener(t,r,n)}var dl=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function UX(e){return e.which===2||e.which===3}var Z9e=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=D4(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in L4)if(L4.hasOwnProperty(r)){var n=L4[r](this._track,t);if(n)return n}},e}();function zX(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Q9e(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var L4={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=zX(n)/zX(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Q9e(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function gn(){return[1,0,0,1,0,0]}function bg(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function xg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function _o(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Ao(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function fl(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),d=Math.cos(r);return e[0]=a*d+s*c,e[1]=-a*c+s*d,e[2]=i*d+l*c,e[3]=-i*c+d*l,e[4]=d*(o-n[0])+c*(u-n[1])+n[0],e[5]=d*(u-n[1])-c*(o-n[0])+n[1],e}function Tx(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function zi(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function $X(e){var t=gn();return xg(t,e),t}const J9e=Object.freeze(Object.defineProperty({__proto__:null,clone:$X,copy:xg,create:gn,identity:bg,invert:zi,mul:_o,rotate:fl,scale:Tx,translate:Ao},Symbol.toStringTag,{value:"Module"}));var $e=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),ud=Math.min,Vh=Math.max,O4=Math.abs,VX=["x","y"],eFe=["width","height"],cd=new $e,dd=new $e,fd=new $e,hd=new $e,ui=GX(),Sg=ui.minTv,P4=ui.maxTv,wg=[0,0],Ve=function(){function e(t,r,n,a){e.set(this,t,r,n,a)}return e.set=function(t,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),t.x=r,t.y=n,t.width=a,t.height=i,t},e.prototype.union=function(t){var r=ud(t.x,this.x),n=ud(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Vh(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Vh(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=gn();return Ao(i,i,[-r.x,-r.y]),Tx(i,i,[n,a]),Ao(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,a){n&&$e.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(tFe,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(rFe,r.x,r.y,r.width,r.height));var s=!!n;ui.reset(a,s);var l=ui.touchThreshold,u=t.x+l,c=t.x+t.width-l,d=t.y+l,f=t.y+t.height-l,h=r.x+l,p=r.x+r.width-l,m=r.y+l,g=r.y+r.height-l;if(u>c||d>f||h>p||m>g)return!1;var v=!(c<h||p<u||f<m||g<d);return(s||i)&&(wg[0]=1/0,wg[1]=0,HX(u,c,h,p,0,s,i,o),HX(d,f,m,g,1,s,i,o),s&&$e.copy(n,v?ui.useDir?ui.dirMinTv:Sg:P4)),v},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}cd.x=fd.x=r.x,cd.y=hd.y=r.y,dd.x=hd.x=r.x+r.width,dd.y=fd.y=r.y+r.height,cd.transform(n),hd.transform(n),dd.transform(n),fd.transform(n),t.x=ud(cd.x,dd.x,fd.x,hd.x),t.y=ud(cd.y,dd.y,fd.y,hd.y);var l=Vh(cd.x,dd.x,fd.x,hd.x),u=Vh(cd.y,dd.y,fd.y,hd.y);t.width=l-t.x,t.height=u-t.y},e}(),tFe=new Ve(0,0,0,0),rFe=new Ve(0,0,0,0);function HX(e,t,r,n,a,i,o,s){var l=O4(t-r),u=O4(n-e),c=ud(l,u),d=VX[a],f=VX[1-a],h=eFe[a];t<r||n<e?l<u?(i&&(P4[d]=-l),s&&(o[d]=t,o[h]=0)):(i&&(P4[d]=u),s&&(o[d]=e,o[h]=0)):(o&&(o[d]=Vh(e,r),o[h]=ud(t,n)-o[d]),i&&(c<wg[0]||ui.useDir)&&(wg[0]=ud(c,wg[0]),(l<u||!ui.bidirectional)&&(Sg[d]=l,Sg[f]=0,ui.useDir&&ui.calcDirMTV()),(l>=u||!ui.bidirectional)&&(Sg[d]=-u,Sg[f]=0,ui.useDir&&ui.calcDirMTV())))}function GX(){var e=0,t=new $e,r=new $e,n={minTv:new $e,maxTv:new $e,useDir:!1,dirMinTv:new $e,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=Vh(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(e),u=Math.cos(e),c=l*i.y+u*i.x;if(a(c)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*u/c,r.y=s*l/c,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return O4(i)<1e-10}return n}var qX="silent";function nFe(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:aFe}}function aFe(){dl(this.event)}var iFe=function(e){tr(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ji),Eg=function(){function e(t,r){this.x=t,this.y=r}return e}(),oFe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],F4=new Ve(0,0,0,0),WX=function(e){tr(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new Eg(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new iFe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new j9e(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(B(oFe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=XX(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Eg(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Eg(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=nFe(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Eg(r,n);if(YX(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ve(r-u,n-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(F4.copy(f.getBoundingRect()),f.transform&&F4.applyTransform(f.transform),F4.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var v=0;v<m;v+=p){var y=r+g*Math.cos(v),x=n+g*Math.sin(v);if(YX(s,o,y,x,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Z9e);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new Eg;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(ji);B(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){WX.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=XX(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||ll(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function sFe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?qX:!0}return!1}function YX(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=sFe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==qX)){t.target=o;break}}}function XX(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var KX=32,Tg=7;function lFe(e){for(var t=0;e>=KX;)t|=e&1,e>>=1;return e+t}function ZX(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;uFe(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function uFe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function QX(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function B4(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function j4(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function cFe(e,t){var r=Tg,n,a,i=0,o=[];n=[],a=[];function s(h,p){n[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var p=n[h],m=a[h],g=n[h+1],v=a[h+1];a[h]=m+v,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var y=j4(e[g],e,p,m,0,t);p+=y,m-=y,m!==0&&(v=B4(e[p+m-1],e,g,v,v-1,t),v!==0&&(m<=v?d(p,m,g,v):f(p,m,g,v)))}function d(h,p,m,g){var v=0;for(v=0;v<p;v++)o[v]=e[h+v];var y=0,x=m,S=h;if(e[S++]=e[x++],--g===0){for(v=0;v<p;v++)e[S+v]=o[y+v];return}if(p===1){for(v=0;v<g;v++)e[S+v]=e[x+v];e[S+g]=o[y];return}for(var E=r,w,T,_;;){w=0,T=0,_=!1;do if(t(e[x],o[y])<0){if(e[S++]=e[x++],T++,w=0,--g===0){_=!0;break}}else if(e[S++]=o[y++],w++,T=0,--p===1){_=!0;break}while((w|T)<E);if(_)break;do{if(w=j4(e[x],o,y,p,0,t),w!==0){for(v=0;v<w;v++)e[S+v]=o[y+v];if(S+=w,y+=w,p-=w,p<=1){_=!0;break}}if(e[S++]=e[x++],--g===0){_=!0;break}if(T=B4(o[y],e,x,g,0,t),T!==0){for(v=0;v<T;v++)e[S+v]=e[x+v];if(S+=T,x+=T,g-=T,g===0){_=!0;break}}if(e[S++]=o[y++],--p===1){_=!0;break}E--}while(w>=Tg||T>=Tg);if(_)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),p===1){for(v=0;v<g;v++)e[S+v]=e[x+v];e[S+g]=o[y]}else{if(p===0)throw new Error;for(v=0;v<p;v++)e[S+v]=o[y+v]}}function f(h,p,m,g){var v=0;for(v=0;v<g;v++)o[v]=e[m+v];var y=h+p-1,x=g-1,S=m+g-1,E=0,w=0;if(e[S--]=e[y--],--p===0){for(E=S-(g-1),v=0;v<g;v++)e[E+v]=o[v];return}if(g===1){for(S-=p,y-=p,w=S+1,E=y+1,v=p-1;v>=0;v--)e[w+v]=e[E+v];e[S]=o[x];return}for(var T=r;;){var _=0,A=0,C=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],_++,A=0,--p===0){C=!0;break}}else if(e[S--]=o[x--],A++,_=0,--g===1){C=!0;break}while((_|A)<T);if(C)break;do{if(_=p-j4(o[x],e,h,p,p-1,t),_!==0){for(S-=_,y-=_,p-=_,w=S+1,E=y+1,v=_-1;v>=0;v--)e[w+v]=e[E+v];if(p===0){C=!0;break}}if(e[S--]=o[x--],--g===1){C=!0;break}if(A=g-B4(e[y],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,w=S+1,E=x+1,v=0;v<A;v++)e[w+v]=o[E+v];if(g<=1){C=!0;break}}if(e[S--]=e[y--],--p===0){C=!0;break}T--}while(_>=Tg||A>=Tg);if(C)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=p,y-=p,w=S+1,E=y+1,v=p-1;v>=0;v--)e[w+v]=e[E+v];e[S]=o[x]}else{if(g===0)throw new Error;for(E=S-(g-1),v=0;v<g;v++)e[E+v]=o[v]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _x(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<KX){i=ZX(e,r,n,t),QX(e,r,n,r+i,t);return}var o=cFe(e,t),s=lFe(a);do{if(i=ZX(e,r,n,t),i<s){var l=a;l>s&&(l=s),QX(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var ci=1,_g=2,Hh=4,JX=!1;function U4(){JX||(JX=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function eK(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var dFe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=eK}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,_x(n,eK)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,c=t;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var d=t.childrenRef(),f=0;f<d.length;f++){var h=d[f];t.__dirty&&(h.__dirty|=ci),this._updateAndAddDisplayable(h,s,n)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(U4(),p.z=0),isNaN(p.z2)&&(U4(),p.z2=0),isNaN(p.zlevel)&&(U4(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=t.getDecalElement&&t.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=tt(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Ax;Ax=yt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ag={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ag.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Ag.bounceIn(e*2)*.5:Ag.bounceOut(e*2-1)*.5+.5}},Cx=Math.pow,Cu=Math.sqrt,kx=1e-8,tK=1e-4,rK=Cu(3),Nx=1/3,is=Tu(),$i=Tu(),Gh=Tu();function ku(e){return e>-kx&&e<kx}function nK(e){return e>kx||e<-kx}function vn(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function aK(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function Ix(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ku(c)&&ku(d))if(ku(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var m=d*d-4*c*f;if(ku(m)){var g=d/c,p=-s/o+g,v=-g/2;p>=0&&p<=1&&(i[h++]=p),v>=0&&v<=1&&(i[h++]=v)}else if(m>0){var y=Cu(m),x=c*s+1.5*o*(-d+y),S=c*s+1.5*o*(-d-y);x<0?x=-Cx(-x,Nx):x=Cx(x,Nx),S<0?S=-Cx(-S,Nx):S=Cx(S,Nx);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var E=(2*c*s-3*o*d)/(2*Cu(c*c*c)),w=Math.acos(E)/3,T=Cu(c),_=Math.cos(w),p=(-s-2*T*_)/(3*o),v=(-s+T*(_+rK*Math.sin(w)))/(3*o),A=(-s+T*(_-rK*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),v>=0&&v<=1&&(i[h++]=v),A>=0&&A<=1&&(i[h++]=A)}}return h}function iK(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(ku(o)){if(nK(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ku(c))a[0]=-i/(2*o);else if(c>0){var d=Cu(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Nu(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=n}function oK(e,t,r,n,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,m,g,v;is[0]=l,is[1]=u;for(var y=0;y<1;y+=.05)$i[0]=vn(e,r,a,o,y),$i[1]=vn(t,n,i,s,y),g=Au(is,$i),g<h&&(d=y,h=g);h=1/0;for(var x=0;x<32&&!(f<tK);x++)p=d-f,m=d+f,$i[0]=vn(e,r,a,o,p),$i[1]=vn(t,n,i,s,p),g=Au($i,is),p>=0&&g<h?(d=p,h=g):(Gh[0]=vn(e,r,a,o,m),Gh[1]=vn(t,n,i,s,m),v=Au(Gh,is),m<=1&&v<h?(d=m,h=v):f*=.5);return c&&(c[0]=vn(e,r,a,o,d),c[1]=vn(t,n,i,s,d)),Cu(h)}function fFe(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,d=0,f=1/l,h=1;h<=l;h++){var p=h*f,m=vn(e,r,a,o,p),g=vn(t,n,i,s,p),v=m-u,y=g-c;d+=Math.sqrt(v*v+y*y),u=m,c=g}return d}function In(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function z4(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function hFe(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(ku(i)){if(nK(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ku(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Cu(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function sK(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Cg(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function lK(e,t,r,n,a,i,o,s,l){var u,c=.005,d=1/0;is[0]=o,is[1]=s;for(var f=0;f<1;f+=.05){$i[0]=In(e,r,a,f),$i[1]=In(t,n,i,f);var h=Au(is,$i);h<d&&(u=f,d=h)}d=1/0;for(var p=0;p<32&&!(c<tK);p++){var m=u-c,g=u+c;$i[0]=In(e,r,a,m),$i[1]=In(t,n,i,m);var h=Au($i,is);if(m>=0&&h<d)u=m,d=h;else{Gh[0]=In(e,r,a,g),Gh[1]=In(t,n,i,g);var v=Au(Gh,is);g<=1&&v<d?(u=g,d=v):c*=.5}}return l&&(l[0]=In(e,r,a,u),l[1]=In(t,n,i,u)),Cu(d)}function pFe(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,d=1;d<=o;d++){var f=d*c,h=In(e,r,a,f),p=In(t,n,i,f),m=h-s,g=p-l;u+=Math.sqrt(m*m+g*g),s=h,l=p}return u}var mFe=/cubic-bezier\(([0-9,\.e ]+)\)/;function $4(e){var t=e&&mFe.exec(e);if(t){var r=t[1].split(","),n=+li(r[0]),a=+li(r[1]),i=+li(r[2]),o=+li(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ix(0,n,i,1,l,s)&&vn(0,a,o,1,s[0])}}}var gFe=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Tr,this.ondestroy=t.ondestroy||Tr,this.onrestart=t.onrestart||Tr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Pe(t)?t:Ag[t]||$4(t)},e}(),uK=function(){function e(t){this.value=t}return e}(),vFe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new uK(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),qh=function(){function e(t){this._list=new vFe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new uK(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),cK={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 Co(e){return e=Math.round(e),e<0?0:e>255?255:e}function yFe(e){return e=Math.round(e),e<0?0:e>360?360:e}function kg(e){return e<0?0:e>1?1:e}function Dx(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Co(parseFloat(t)/100*255):Co(parseInt(t,10))}function hl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?kg(parseFloat(t)/100):kg(parseFloat(t))}function V4(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Iu(e,t,r){return e+(t-e)*r}function Vi(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function H4(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var dK=new qh(20),Mx=null;function Wh(e,t){Mx&&H4(Mx,t),Mx=dK.put(e,Mx||t.slice())}function sa(e,t){if(e){t=t||[];var r=dK.get(e);if(r)return H4(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in cK)return H4(t,cK[n]),Wh(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Vi(t,0,0,0,1);return}return Vi(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Wh(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Vi(t,0,0,0,1);return}return Vi(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Wh(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Vi(t,+u[0],+u[1],+u[2],1):Vi(t,0,0,0,1);c=hl(u.pop());case"rgb":if(u.length>=3)return Vi(t,Dx(u[0]),Dx(u[1]),Dx(u[2]),u.length===3?c:hl(u[3])),Wh(e,t),t;Vi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Vi(t,0,0,0,1);return}return u[3]=hl(u[3]),G4(u,t),Wh(e,t),t;case"hsl":if(u.length!==3){Vi(t,0,0,0,1);return}return G4(u,t),Wh(e,t),t;default:return}}Vi(t,0,0,0,1)}}function G4(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=hl(e[1]),a=hl(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Vi(t,Co(V4(o,i,r+1/3)*255),Co(V4(o,i,r)*255),Co(V4(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function bFe(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,d=((i-r)/6+o/2)/o,f=((i-n)/6+o/2)/o;t===i?l=f-d:r===i?l=1/3+c-f:n===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function Rx(e,t){var r=sa(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Hi(r,r.length===4?"rgba":"rgb")}}function xFe(e){var t=sa(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ng(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=Co(Iu(o[0],s[0],l)),r[1]=Co(Iu(o[1],s[1],l)),r[2]=Co(Iu(o[2],s[2],l)),r[3]=kg(Iu(o[3],s[3],l)),r}}var SFe=Ng;function q4(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=sa(t[a]),s=sa(t[i]),l=n-a,u=Hi([Co(Iu(o[0],s[0],l)),Co(Iu(o[1],s[1],l)),Co(Iu(o[2],s[2],l)),kg(Iu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var wFe=q4;function pl(e,t,r,n){var a=sa(e);if(e)return a=bFe(a),t!=null&&(a[0]=yFe(Pe(t)?t(a[0]):t)),r!=null&&(a[1]=hl(Pe(r)?r(a[1]):r)),n!=null&&(a[2]=hl(Pe(n)?n(a[2]):n)),Hi(G4(a),"rgba")}function Ig(e,t){var r=sa(e);if(r&&t!=null)return r[3]=kg(t),Hi(r,"rgba")}function Hi(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Dg(e,t){var r=sa(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function EFe(){return Hi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var fK=new qh(100);function Lx(e){if(xe(e)){var t=fK.get(e);return t||(t=Rx(e,-.1),fK.put(e,t)),t}else if(dg(e)){var r=le({},e);return r.colorStops=fe(e.colorStops,function(n){return{offset:n.offset,color:Rx(n.color,-.1)}}),r}return e}const TFe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ng,fastMapToColor:SFe,lerp:q4,lift:Rx,liftColor:Lx,lum:Dg,mapToColor:wFe,modifyAlpha:Ig,modifyHSL:pl,parse:sa,parseCssFloat:hl,parseCssInt:Dx,random:EFe,stringify:Hi,toHex:xFe},Symbol.toStringTag,{value:"Module"}));var Ox=Math.round;function Mg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=sa(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var hK=1e-4;function Du(e){return e<hK&&e>-hK}function Px(e){return Ox(e*1e3)/1e3}function W4(e){return Ox(e*1e4)/1e4}function _Fe(e){return"matrix("+Px(e[0])+","+Px(e[1])+","+Px(e[2])+","+Px(e[3])+","+W4(e[4])+","+W4(e[5])+")"}var AFe={left:"start",right:"end",center:"middle",middle:"middle"};function CFe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function kFe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function NFe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function pK(e){return e&&!!e.image}function IFe(e){return e&&!!e.svgElement}function Y4(e){return pK(e)||IFe(e)}function mK(e){return e.type==="linear"}function gK(e){return e.type==="radial"}function vK(e){return e&&(e.type==="linear"||e.type==="radial")}function Fx(e){return"url(#"+e+")"}function yK(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function bK(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*mg,a=Re(e.scaleX,1),i=Re(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Ox(o*mg)+"deg, "+Ox(s*mg)+"deg)"),l.join(" ")}var DFe=function(){return yt.hasGlobalWindow&&Pe(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&Fi("Base64 isn't natively supported in the current environment."),null}}(),X4=Array.prototype.slice;function ml(e,t,r){return(t-e)*r+e}function K4(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=ml(t[i],r[i],n);return e}function MFe(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=ml(t[o][s],r[o][s],n)}return e}function Bx(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function xK(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function RFe(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function LFe(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:X4.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Rg(e){if(Hn(e)){var t=e.length;if(Hn(e[0])){for(var r=[],n=0;n<t;n++)r.push(X4.call(e[n]));return r}return X4.call(e)}return e}function jx(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function OFe(e){return Hn(e&&e[0])?2:1}var Ux=0,zx=1,SK=2,Lg=3,Z4=4,Q4=5,wK=6;function EK(e){return e===Z4||e===Q4}function $x(e){return e===zx||e===SK}var Og=[0,0,0,0],PFe=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=wK,l=r;if(Hn(r)){var u=OFe(r);s=u,(u===1&&!wt(r[0])||u===2&&!wt(r[0][0]))&&(o=!0)}else if(wt(r)&&!mn(r))s=Ux;else if(xe(r))if(!isNaN(+r))s=Ux;else{var c=sa(r);c&&(l=c,s=Lg)}else if(dg(r)){var d=le({},l);d.colorStops=fe(r.colorStops,function(h){return{offset:h.offset,color:sa(h.color)}}),mK(r)?s=Z4:gK(r)&&(s=Q4),l=d}i===0?this.valType=s:(s!==this.valType||s===wK)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=Pe(n)?n:Ag[n]||$4(n)),a.push(f),f},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=$x(a),u=EK(a),c=0;c<i;c++){var d=n[c],f=d.value,h=o.value;d.percent=d.time/t,s||(l&&c!==i-1?LFe(f,h,a):u&&RFe(f.colorStops,h.colorStops))}if(!s&&a!==Q4&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<i;c++)a===Ux?n[c].additiveValue=n[c].value-p:a===Lg?n[c].additiveValue=Bx([],n[c].value,p,-1):$x(a)&&(n[c].additiveValue=a===zx?Bx([],n[c].value,p,-1):xK([],n[c].value,p,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Lg,c,d=this._lastFr,f=Math.min,h,p;if(s===1)h=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=f(d+1,s-1);for(c=m;c>=0&&!(o[c].percent<=r);c--);c=f(c,s-2)}else{for(c=d;c<s&&!(o[c].percent>r);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,v=g===0?1:f((r-h.percent)/g,1);p.easingFunc&&(v=p.easingFunc(v));var y=n?this._additiveValue:u?Og:t[l];if(($x(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=v<1?h.rawValue:p.rawValue;else if($x(i))i===zx?K4(y,h[a],p[a],v):MFe(y,h[a],p[a],v);else if(EK(i)){var x=h[a],S=p[a],E=i===Z4;t[l]={type:E?"linear":"radial",x:ml(x.x,S.x,v),y:ml(x.y,S.y,v),colorStops:fe(x.colorStops,function(T,_){var A=S.colorStops[_];return{offset:ml(T.offset,A.offset,v),color:jx(K4([],T.color,A.color,v))}}),global:S.global},E?(t[l].x2=ml(x.x2,S.x2,v),t[l].y2=ml(x.y2,S.y2,v)):t[l].r=ml(x.r,S.r,v)}else if(u)K4(y,h[a],p[a],v),n||(t[l]=jx(y));else{var w=ml(h[a],p[a],v);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Ux?t[n]=t[n]+a:r===Lg?(sa(t[n],Og),Bx(Og,Og,a,1),t[n]=jx(Og)):r===zx?Bx(t[n],t[n],a,1):r===SK&&xK(t[n],t[n],a,1)},e}(),J4=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){Fi("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,bt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new PFe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,f=d[d.length-1];u=f&&f.value,c.valType===Lg&&u&&(u=jx(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Rg(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Rg(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(r._target[s.propName]=d.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var f=new gFe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var p=r._additiveAnimators;if(p){for(var m=!1,g=0;g<p.length;g++)if(p[g]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var v=r._onframeCbs;if(v)for(var g=0;g<v.length;g++)v[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return fe(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Rg(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||bt(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Yh(){return new Date().getTime()}var FFe=function(e){tr(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Yh()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ax(n),!r._paused&&r.update())}Ax(n)},t.prototype.start=function(){this._running||(this._time=Yh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yh()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new J4(r,n.loop);return this.addAnimator(a),a},t}(ji),BFe=300,eN=yt.domSupported,tN=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=fe(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),TK={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_K=!1;function rN(e){var t=e.pointerType;return t==="pen"||t==="touch"}function jFe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function nN(e){e&&(e.zrByTouch=!0)}function UFe(e,t){return Ui(e.dom,new zFe(e,t),!0)}function AK(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var zFe=function(){function e(t,r){this.stopPropagation=Tr,this.stopImmediatePropagation=Tr,this.preventDefault=Tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ko={mousedown:function(e){e=Ui(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ui(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Ui(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ui(this.dom,e);var t=e.toElement||e.relatedTarget;AK(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){_K=!0,e=Ui(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){_K||(e=Ui(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ui(this.dom,e),nN(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ko.mousemove.call(this,e),ko.mousedown.call(this,e)},touchmove:function(e){e=Ui(this.dom,e),nN(e),this.handler.processGesture(e,"change"),ko.mousemove.call(this,e)},touchend:function(e){e=Ui(this.dom,e),nN(e),this.handler.processGesture(e,"end"),ko.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<BFe&&ko.click.call(this,e)},pointerdown:function(e){ko.mousedown.call(this,e)},pointermove:function(e){rN(e)||ko.mousemove.call(this,e)},pointerup:function(e){ko.mouseup.call(this,e)},pointerout:function(e){rN(e)||ko.mouseout.call(this,e)}};B(["click","dblclick","contextmenu"],function(e){ko[e]=function(t){t=Ui(this.dom,t),this.trigger(e,t)}});var aN={pointermove:function(e){rN(e)||aN.mousemove.call(this,e)},pointerup:function(e){aN.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function $Fe(e,t){var r=t.domHandlers;yt.pointerEventsSupported?B(tN.pointer,function(n){Vx(t,n,function(a){r[n].call(e,a)})}):(yt.touchEventsSupported&&B(tN.touch,function(n){Vx(t,n,function(a){r[n].call(e,a),jFe(t)})}),B(tN.mouse,function(n){Vx(t,n,function(a){a=M4(a),t.touching||r[n].call(e,a)})}))}function VFe(e,t){yt.pointerEventsSupported?B(TK.pointer,r):yt.touchEventsSupported||B(TK.mouse,r);function r(n){function a(i){i=M4(i),AK(e,i.target)||(i=UFe(e,i),t.domHandlers[n].call(e,i))}Vx(t,n,a,{capture:!0})}}function Vx(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,R4(e.domTarget,t,r,n)}function iN(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&K9e(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var CK=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),HFe=function(e){tr(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new CK(r,ko),eN&&(a._globalHandlerScope=new CK(document,aN)),$Fe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){iN(this._localHandlerScope),eN&&iN(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,eN&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?VFe(this,n):iN(n)}},t}(ji),kK=1;yt.hasGlobalWindow&&(kK=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hx=kK,oN=.4,sN="#333",lN="#ccc",GFe="#eee",NK=bg,IK=5e-5;function pd(e){return e>IK||e<-IK}var md=[],Xh=[],uN=gn(),cN=Math.abs,gl=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return pd(this.rotation)||pd(this.x)||pd(this.y)||pd(this.scaleX-1)||pd(this.scaleY-1)||pd(this.skewX)||pd(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(NK(n),this.invTransform=null);return}n=n||gn(),r?this.getLocalTransform(n):NK(n),t&&(r?_o(n,t,n):xg(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(md);var n=md[0]<0?-1:1,a=md[1]<0?-1:1,i=((md[0]-n)*r+n)/md[0]||0,o=((md[1]-a)*r+a)/md[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||gn(),zi(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||gn(),_o(Xh,t.invTransform,r),r=Xh);var n=this.originX,a=this.originY;(n||a)&&(uN[4]=n,uN[5]=a,_o(Xh,r,uN),Xh[4]-=n,Xh[5]-=a,r=Xh),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&_r(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&_r(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&cN(t[0]-1)>1e-10&&cN(t[3]-1)>1e-10?Math.sqrt(cN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Gx(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,d=t.y,f=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var p=n+s,m=a+l;r[4]=-p*i-f*m*o,r[5]=-m*o-h*p*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=f*o,u&&fl(r,r,u),r[4]+=n+c,r[5]+=a+d,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),os=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Gx(e,t){for(var r=0;r<os.length;r++){var n=os[r];e[n]=t[n]}}function ss(e){qx||(qx=new qh(100)),e=e||sl;var t=qx.get(e);return t||(t={font:e,strWidthCache:new qh(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$a.measureText("国",e).width,asciiCharWidth:$a.measureText("a",e).width},qx.put(e,t)),t}var qx;function qFe(e){if(!(dN>=DK)){e=e||sl;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=$a.measureText(String.fromCharCode(n),e).width;var a=+new Date-r;return a>16?dN=DK:a>2&&dN++,t}}var dN=0,DK=5;function MK(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=qFe(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function ls(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=$a.measureText(t,e.font).width,r.put(t,n)),n}function RK(e,t,r,n){var a=ls(ss(t),e),i=Pg(t),o=Kh(0,a,r),s=gd(0,i,n),l=new Ve(o,s,a,i);return l}function Wx(e,t,r,n){var a=((e||"")+"").split(`
|
|
199
199
|
`),i=a.length;if(i===1)return RK(a[0],t,r,n);for(var o=new Ve(0,0,0,0),s=0;s<a.length;s++){var l=RK(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Kh(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function gd(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function Pg(e){return ss(e).stWideCharWidth}function No(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Yx(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",d="top";if(n instanceof Array)l+=No(n[0],r.width),u+=No(n[1],r.height),c=null,d=null;else switch(n){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var fN="__zr_normal__",hN=os.concat(["ignore"]),WFe=Bi(os,function(e,t){return e[t]=!0,e},{ignore:!1}),Zh={},YFe=new Ve(0,0,0,0),Xx=[],Kx=function(){function e(t){this.id=b4(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(r);var c=n.position!=null,d=n.autoOverflowArea,f=void 0;if((d||c)&&(f=YFe,n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Zh,n,f):Yx(Zh,n,f),i.x=Zh.x,i.y=Zh.y,o=Zh.align,s=Zh.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var p=void 0,m=void 0;h==="center"?(p=f.width*.5,m=f.height*.5):(p=No(h[0],f.width),m=No(h[1],f.height)),u=!0,i.originX=-i.x+p+(a?0:f.x),i.originY=-i.y+m+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(d){var y=v.overflowRect=v.overflowRect||new Ve(0,0,0,0);i.getLocalTransform(Xx),zi(Xx,Xx),Ve.copy(y,f),y.applyTransform(Xx)}else v.overflowRect=null;var x=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,E=void 0,w=void 0;x&&this.canBeInsideText()?(S=n.insideFill,E=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(E==null||E==="auto")&&(E=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,E=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(E==null||E==="auto")&&(E=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==v.fill||E!==v.stroke||w!==v.autoStroke||o!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=S,v.stroke=E,v.autoStroke=w,v.align=o,v.verticalAlign=s,r.setDefaultTextStyle(v)),r.__dirty|=ci,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?lN:sN},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&sa(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Hi(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},le(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Be(t))for(var n=t,a=bt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==fN)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,hN)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(fN,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===fN,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(tt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Fi("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(t,r,n,c),f&&f.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ci),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var d=a[o-1],f=!!(d&&d.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,r,f),g&&g.useStates(t,r,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ci)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=tt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=tt(a,t),o=tt(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];le(r,i),i.textConfig&&(n=n||{},le(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=le({},a?this.textConfig:n.textConfig),le(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<hN.length;c++){var d=hN[c],f=i&&WFe[d];r&&r[d]!=null?f?(u=!0,l[d]=r[d]):this[d]=r[d]:s&&n[d]!=null&&(f?(u=!0,l[d]=n[d]):this[d]=n[d])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(r||n)[p]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new gl,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),le(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=ci;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!a){Fi('Property "'+t+'" is not existed in element '+this.id);return}var i=new J4(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=tt(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){pN(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){pN(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=pN(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ci;var r={};function n(i,o,s){r[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(t,i,{get:function(){if(process.env.NODE_ENV!=="production"&&n(i,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(i,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,d){Object.defineProperty(d,0,{get:function(){return c[s]},set:function(f){c[s]=f}}),Object.defineProperty(d,1,{get:function(){return c[l]},set:function(f){c[l]=f}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),e}();Er(Kx,ji),Er(Kx,gl);function pN(e,t,r,n,a){r=r||{};var i=[];LK(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},d=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(p,m){r.during(m)});for(var f=0;f<i.length;f++){var h=i[f];c&&h.done(c),d&&h.aborted(d),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function mN(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function XFe(e){return Hn(e[0])}function KFe(e,t,r){if(Hn(t[r]))if(Hn(e[r])||(e[r]=[]),na(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),mN(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(XFe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?mN(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else mN(i,a,o);i.length=a.length}else e[r]=t[r]}function ZFe(e,t){return e===t||Hn(e)&&Hn(t)&&QFe(e,t)}function QFe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function LK(e,t,r,n,a,i,o,s){for(var l=bt(n),u=a.duration,c=a.delay,d=a.additive,f=a.setToFinal,h=!Be(i),p=e.animators,m=[],g=0;g<l.length;g++){var v=l[g],y=n[v];if(y!=null&&r[v]!=null&&(h||i[v]))if(Be(y)&&!Hn(y)&&!dg(y)){if(t){s||(r[v]=y,e.updateDuringAnimation(t));continue}LK(e,v,r[v],y,a,i&&i[v],o,s)}else m.push(v);else s||(r[v]=y,e.updateDuringAnimation(t),m.push(v))}var x=m.length;if(!d&&x)for(var S=0;S<p.length;S++){var E=p[S];if(E.targetName===t){var w=E.stopTracks(m);if(w){var T=tt(p,E);p.splice(T,1)}}}if(a.force||(m=Dt(m,function(I){return!ZFe(n[I],r[I])}),x=m.length),x>0||a.force&&!o.length){var _=void 0,A=void 0,C=void 0;if(s){A={},f&&(_={});for(var S=0;S<x;S++){var v=m[S];A[v]=r[v],f?_[v]=n[v]:r[v]=n[v]}}else if(f){C={};for(var S=0;S<x;S++){var v=m[S];C[v]=Rg(r[v]),KFe(r,n,v)}}var E=new J4(r,!1,!1,d?Dt(p,function(R){return R.targetName===t}):null);E.targetName=t,a.scope&&(E.scope=a.scope),f&&_&&E.whenWithKeys(0,_,m),C&&E.whenWithKeys(0,C,m),E.whenWithKeys(u??500,s?A:n,m).delay(c||0),e.addAnimator(E,t),o.push(E)}}var je=function(e){tr(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=tt(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=tt(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new Ve(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Ve.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Kx);je.prototype.type="group";/*!
|
|
200
200
|
* ZRender, a high performance 2d drawing library.
|
|
201
201
|
*
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sciol/xyzen",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"packageManager": "yarn@4.9.2",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.14",
|
|
6
6
|
"description": "A modern, lightweight, and extensible chat component for React.",
|
|
7
7
|
"author": "Haohui <harveyque@outlook.com>",
|
|
8
8
|
"license": "GPL-3.0-only",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
26
|
"import": "./dist/xyzen.es.js",
|
|
27
27
|
"require": "./dist/xyzen.umd.js"
|
|
28
|
-
}
|
|
29
|
-
"./style.css": "./dist/style.css"
|
|
28
|
+
}
|
|
30
29
|
},
|
|
31
30
|
"publishConfig": {
|
|
32
31
|
"access": "public"
|