UNPKG

k-view-vue

Version:

Wei Design - A Vue.js 3 UI library, web3-vue-demo

14 lines (12 loc) 542 kB
(function(be,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],B):(be=typeof globalThis<"u"?globalThis:be||self,B(be.WebVue={},be.Vue))})(this,function(be,B){"use strict";const Js="K",V1=B.defineComponent({name:"Box"}),si=B.defineComponent({...V1,setup(e){return(t,r)=>(B.openBlock(),B.createElementBlock("div",null,"\u6211\u662FKBox\u7EC4\u4EF6"))}});si.install=function(e){return e.component(`${Js}${si.name}`,si),e};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var tu=function(e,t){return tu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},tu(e,t)};function N(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var z1=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),G1=function(){function e(){this.browser=new z1,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}(),_r=new G1;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(_r.wxa=!0,_r.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?_r.worker=!0:typeof navigator>"u"?(_r.node=!0,_r.svgSupported=!0):H1(navigator.userAgent,_r);function H1(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),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),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const q=_r;var eu=12,dc="sans-serif",er=eu+"px "+dc,W1=20,U1=100,Y1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function X1(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-W1)/U1;t[n]=i}return t}var j1=X1(Y1),mr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=mr.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||er),e.measureText(r);r=r||"",n=n||er;var a=/^([0-9]*?)px$/.exec(n),o=+(a&&a[1])||eu,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=j1[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},pc=hn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),gc=hn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),fn=Object.prototype.toString,La=Array.prototype,q1=La.forEach,Z1=La.filter,ru=La.slice,K1=La.map,yc=function(){}.constructor,Oa=yc?yc.prototype:null,nu="__proto__",Q1=2311;function _c(){return Q1++}function Fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Q(e){if(e==null||typeof e!="object")return e;var t=e,r=fn.call(e);if(r==="[object Array]"){if(!fi(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Q(e[n])}}else if(gc[r]){if(!fi(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!pc[r]&&!fi(e)&&!ui(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==nu&&(t[o]=Q(e[o]))}return t}function tt(e,t,r){if(!z(t)||!z(e))return r?Q(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==nu){var i=e[n],a=t[n];z(a)&&z(i)&&!k(a)&&!k(i)&&!ui(a)&&!ui(i)&&!mc(a)&&!mc(i)&&!fi(a)&&!fi(i)?tt(i,a,r):(r||!(n in e))&&(e[n]=Q(t[n]))}return e}function R(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==nu&&(e[r]=t[r]);return e}function ot(e,t,r){for(var n=J(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}mr.createCanvas;function it(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 J1(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function xe(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),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ot(e,t,r)}function Ft(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function T(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===q1)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function V(e,t,r){if(!e)return[];if(!t)return iu(e);if(e.map&&e.map===K1)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function hn(e,t,r,n){if(!!(e&&t)){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Rt(e,t,r){if(!e)return[];if(!t)return iu(e);if(e.filter&&e.filter===Z1)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function J(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 tw(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(ru.call(arguments)))}}var ct=Oa&&U(Oa.bind)?Oa.call.bind(Oa.bind):tw;function yt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(ru.call(arguments)))}}function k(e){return Array.isArray?Array.isArray(e):fn.call(e)==="[object Array]"}function U(e){return typeof e=="function"}function F(e){return typeof e=="string"}function Ra(e){return fn.call(e)==="[object String]"}function vt(e){return typeof e=="number"}function z(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function mc(e){return!!pc[fn.call(e)]}function Vt(e){return!!gc[fn.call(e)]}function ui(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Na(e){return e.colorStops!=null}function ew(e){return e.image!=null}function rw(e){return fn.call(e)==="[object RegExp]"}function li(e){return e!==e}function wr(){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 K(e,t){return e!=null?e:t}function cn(e,t,r){return e!=null?e:t!=null?t:r}function iu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ru.apply(e,t)}function wc(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 Y(e,t){if(!e)throw new Error(t)}function Te(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Sc="__ec_primitive__";function ka(e){e[Sc]=!0}function fi(e){return e[Sc]}var nw=function(){function e(t){this.data={};var r=k(t);this.data={};var n=this;t instanceof e?t.each(i):t&&T(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},e.prototype.set=function(t,r){return this.data[t]=r},e.prototype.each=function(t,r){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(r,this.data[n],n)},e.prototype.keys=function(){return J(this.data)},e.prototype.removeKey=function(t){delete this.data[t]},e}();function j(e){return new nw(e)}function iw(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Ba(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&R(r,t),r}function bc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function vn(e,t){return e.hasOwnProperty(t)}function zt(){}var $a=180/Math.PI;function dn(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function aw(e){return[e[0],e[1]]}function xc(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function ow(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function sw(e){return Math.sqrt(uw(e))}function uw(e){return e[0]*e[0]+e[1]*e[1]}function au(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function lw(e,t){var r=sw(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function ou(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var fw=ou;function hw(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var pn=hw;function Kt(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function gn(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function yn(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var _n=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),cw=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 _n(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new _n(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new _n(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new _n(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new _n(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new _n(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const vw=cw;var dw=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),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 i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}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 i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.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 i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const Ce=dw;var pw=Math.log(2);function su(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/pw);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*e[r][v]*su(e,t-1,f,l,i|d,a),c++)}return a[o]=h,h}function Tc(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={},i=su(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*su(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var Cc="___zrEVENTSAVED",uu=[];function gw(e,t,r,n,i){return lu(uu,t,n,i,!0)&&lu(e,r,uu[0],uu[1])}function lu(e,t,r,n,i){if(t.getBoundingClientRect&&q.domSupported&&!Dc(t)){var a=t[Cc]||(t[Cc]={}),o=yw(t,a),s=_w(o,a,i);if(s)return s(e,r,n),!0}return!1}function yw(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function _w(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,v=f.left,c=f.top;o.push(v,c),u=u&&a&&v===a[h]&&c===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?Tc(s,o):Tc(o,s))}function Dc(e){return e.nodeName.toUpperCase()==="CANVAS"}var mw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fu=[],ww=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function hu(e,t,r,n){return r=r||{},n?Ac(e,t,r):ww&&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):Ac(e,t,r),r}function Ac(e,t,r){if(q.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Dc(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(lu(fu,e,n,i)){r.zrX=fu[0],r.zrY=fu[1];return}}r.zrX=r.zrY=0}function cu(e){return e||window.event}function Qt(e,t,r){if(t=cu(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&hu(e,o,t,r)}else{hu(e,t,t,r);var a=Sw(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&mw.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Sw(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function bw(e,t,r,n){e.addEventListener(t,r,n)}function xw(e,t,r,n){e.removeEventListener(t,r,n)}var Mc=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Tw=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 i=t.touches;if(!!i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=hu(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in vu)if(vu.hasOwnProperty(r)){var n=vu[r](this._track,t);if(n)return n}},e}();function Ec(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Cw(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var vu={pinch:function(e,t){var r=e.length;if(!!r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Ec(n)/Ec(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Cw(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},Pc="silent";function Dw(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:Aw}}function Aw(){Mc(this.event)}var Mw=function(e){N(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}(Ce),hi=function(){function e(t,r){this.x=t,this.y=r}return e}(),Ew=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ic=function(e){N(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o._hovered=new hi(0,0),o.storage=r,o.painter=n,o.painterRoot=a,i=i||new Mw,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new vw(o),o}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(Ew,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,i=r.zrY,a=Lc(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new hi(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"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 hi(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.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,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Dw(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){for(var a=this.storage.getDisplayList(),o=new hi(r,n),s=a.length-1;s>=0;s--){var u=void 0;if(a[s]!==i&&!a[s].ignore&&(u=Pw(a[s],r,n))&&(!o.topTarget&&(o.topTarget=a[s]),u!==Pc)){o.target=a[s];break}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Tw);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new hi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Ce);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Ic.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Lc(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.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||fw(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Pw(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?Pc:!0}return!1}function Lc(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Iw=Ic;var Oc=32,ci=7;function Lw(e){for(var t=0;e>=Oc;)t|=e&1,e>>=1;return e+t}function Rc(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;Ow(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Ow(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Nc(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){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(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function du(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u<s&&a(e,t[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(e,t[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function pu(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;u<s&&a(e,t[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(e,t[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function Rw(e,t){var r=ci,n,i,a=0;e.length;var o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function u(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function l(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],g=i[c],p=n[c+1],y=i[c+1];i[c]=g+y,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var _=pu(e[p],e,d,g,0,t);d+=_,g-=_,g!==0&&(y=du(e[d+g-1],e,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):v(d,g,p,y)))}function h(c,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=e[c+y];var _=0,m=g,w=c;if(e[w++]=e[m++],--p===0){for(y=0;y<d;y++)e[w+y]=o[_+y];return}if(d===1){for(y=0;y<p;y++)e[w+y]=e[m+y];e[w+p]=o[_];return}for(var b=r,S,x,C;;){S=0,x=0,C=!1;do if(t(e[m],o[_])<0){if(e[w++]=e[m++],x++,S=0,--p===0){C=!0;break}}else if(e[w++]=o[_++],S++,x=0,--d===1){C=!0;break}while((S|x)<b);if(C)break;do{if(S=pu(e[m],o,_,d,0,t),S!==0){for(y=0;y<S;y++)e[w+y]=o[_+y];if(w+=S,_+=S,d-=S,d<=1){C=!0;break}}if(e[w++]=e[m++],--p===0){C=!0;break}if(x=du(o[_],e,m,p,0,t),x!==0){for(y=0;y<x;y++)e[w+y]=e[m+y];if(w+=x,m+=x,p-=x,p===0){C=!0;break}}if(e[w++]=o[_++],--d===1){C=!0;break}b--}while(S>=ci||x>=ci);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(y=0;y<p;y++)e[w+y]=e[m+y];e[w+p]=o[_]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[w+y]=o[_+y]}}function v(c,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=e[g+y];var _=c+d-1,m=p-1,w=g+p-1,b=0,S=0;if(e[w--]=e[_--],--d===0){for(b=w-(p-1),y=0;y<p;y++)e[b+y]=o[y];return}if(p===1){for(w-=d,_-=d,S=w+1,b=_+1,y=d-1;y>=0;y--)e[S+y]=e[b+y];e[w]=o[m];return}for(var x=r;;){var C=0,A=0,M=!1;do if(t(o[m],e[_])<0){if(e[w--]=e[_--],C++,A=0,--d===0){M=!0;break}}else if(e[w--]=o[m--],A++,C=0,--p===1){M=!0;break}while((C|A)<x);if(M)break;do{if(C=d-pu(o[m],e,c,d,d-1,t),C!==0){for(w-=C,_-=C,d-=C,S=w+1,b=_+1,y=C-1;y>=0;y--)e[S+y]=e[b+y];if(d===0){M=!0;break}}if(e[w--]=o[m--],--p===1){M=!0;break}if(A=p-du(e[_],o,0,p,p-1,t),A!==0){for(w-=A,m-=A,p-=A,S=w+1,b=m+1,y=0;y<A;y++)e[S+y]=o[b+y];if(p<=1){M=!0;break}}if(e[w--]=e[_--],--d===0){M=!0;break}x--}while(C>=ci||A>=ci);if(M)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(w-=d,_-=d,S=w+1,b=_+1,y=d-1;y>=0;y--)e[S+y]=e[b+y];e[w]=o[m]}else{if(p===0)throw new Error;for(b=w-(p-1),y=0;y<p;y++)e[b+y]=o[y]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Fa(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<Oc){a=Rc(e,r,n,t),Nc(e,r,n,r+a,t);return}var o=Rw(e,t),s=Lw(i);do{if(a=Rc(e,r,n,t),a<s){var u=i;u>s&&(u=s),Nc(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Xt=1,vi=2,mn=4,kc=!1;function gu(){kc||(kc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bc(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Nw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bc}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,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Fa(n,Bc)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=Xt),this._updateAndAddDisplayable(l,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(gu(),f.z=0),isNaN(f.z2)&&(gu(),f.z2=0),isNaN(f.zlevel)&&(gu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,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 i=it(this._roots,t);i>=0&&this._roots.splice(i,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}();const kw=Nw;var $c;$c=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const yu=$c;var Va={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-Va.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?Va.bounceIn(e*2)*.5:Va.bounceOut(e*2-1)*.5+.5}};const Fc=Va;var za=Math.pow,rr=Math.sqrt,Ga=1e-8,Vc=1e-4,zc=rr(3),Ha=1/3,De=dn(),Jt=dn(),wn=dn();function nr(e){return e>-Ga&&e<Ga}function Gc(e){return e>Ga||e<-Ga}function Dt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Hc(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Wc(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,v=u*u-3*s*l,c=0;if(nr(f)&&nr(h))if(nr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[c++]=d)}else{var g=h*h-4*f*v;if(nr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y)}else if(g>0){var _=rr(g),m=f*s+1.5*o*(-h+_),w=f*s+1.5*o*(-h-_);m<0?m=-za(-m,Ha):m=za(m,Ha),w<0?w=-za(-w,Ha):w=za(w,Ha);var d=(-s-(m+w))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*rr(f*f*f)),S=Math.acos(b)/3,x=rr(f),C=Math.cos(S),d=(-s-2*x*C)/(3*o),y=(-s+x*(C+zc*Math.sin(S)))/(3*o),A=(-s+x*(C-zc*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y),A>=0&&A<=1&&(a[c++]=A)}}return c}function Uc(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(nr(o)){if(Gc(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(nr(f))i[0]=-a/(2*o);else if(f>0){var h=rr(f),l=(-a+h)/(2*o),v=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}function Wa(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Bw(e,t,r,n,i,a,o,s,u,l,f){var h,v=.005,c=1/0,d,g,p,y;De[0]=u,De[1]=l;for(var _=0;_<1;_+=.05)Jt[0]=Dt(e,r,i,o,_),Jt[1]=Dt(t,n,a,s,_),p=pn(De,Jt),p<c&&(h=_,c=p);c=1/0;for(var m=0;m<32&&!(v<Vc);m++)d=h-v,g=h+v,Jt[0]=Dt(e,r,i,o,d),Jt[1]=Dt(t,n,a,s,d),p=pn(Jt,De),d>=0&&p<c?(h=d,c=p):(wn[0]=Dt(e,r,i,o,g),wn[1]=Dt(t,n,a,s,g),y=pn(wn,De),g<=1&&y<c?(h=g,c=y):v*=.5);return f&&(f[0]=Dt(e,r,i,o,h),f[1]=Dt(t,n,a,s,h)),rr(c)}function $w(e,t,r,n,i,a,o,s,u){for(var l=e,f=t,h=0,v=1/u,c=1;c<=u;c++){var d=c*v,g=Dt(e,r,i,o,d),p=Dt(t,n,a,s,d),y=g-l,_=p-f;h+=Math.sqrt(y*y+_*_),l=g,f=p}return h}function At(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Yc(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Fw(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(nr(a)){if(Gc(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(nr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=rr(f),l=(-o+h)/(2*a),v=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}function Xc(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Ua(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Vw(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;De[0]=o,De[1]=s;for(var v=0;v<1;v+=.05){Jt[0]=At(e,r,i,v),Jt[1]=At(t,n,a,v);var c=pn(De,Jt);c<h&&(l=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Vc);d++){var g=l-f,p=l+f;Jt[0]=At(e,r,i,g),Jt[1]=At(t,n,a,g);var c=pn(Jt,De);if(g>=0&&c<h)l=g,h=c;else{wn[0]=At(e,r,i,p),wn[1]=At(t,n,a,p);var y=pn(wn,De);p<=1&&y<h?(l=p,h=y):f*=.5}}return u&&(u[0]=At(e,r,i,l),u[1]=At(t,n,a,l)),rr(h)}function zw(e,t,r,n,i,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=At(e,r,i,v),d=At(t,n,a,v),g=c-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=c,u=d}return l}var Gw=/cubic-bezier\(([0-9,\.e ]+)\)/;function _u(e){var t=e&&Gw.exec(e);if(t){var r=t[1].split(","),n=+Te(r[0]),i=+Te(r[1]),a=+Te(r[2]),o=+Te(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Wc(0,n,a,1,u,s)&&Dt(0,i,o,1,s[0])}}}var Hw=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||zt,this.ondestroy=t.ondestroy||zt,this.onrestart=t.onrestart||zt,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,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,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=U(t)?t:Fc[t]||_u(t)},e}();const Ww=Hw;var jc=function(){function e(t){this.value=t}return e}(),Uw=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new jc(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}(),Yw=function(){function e(t){this._list=new Uw,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new jc(r),s.key=t,n.insertEntry(s),i[t]=s}return a},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}();const di=Yw;var qc={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 pi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Zc(e){return e<0?0:e>1?1:e}function mu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?pi(parseFloat(t)/100*255):pi(parseInt(t,10))}function Ya(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Zc(parseFloat(t)/100):Zc(parseFloat(t))}function wu(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 te(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Su(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Kc=new di(20),Xa=null;function Sn(e,t){Xa&&Su(Xa,t),Xa=Kc.put(e,Xa||t.slice())}function ir(e,t){if(!!e){t=t||[];var r=Kc.get(e);if(r)return Su(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in qc)return Su(t,qc[n]),Sn(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){te(t,0,0,0,1);return}return te(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Sn(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){te(t,0,0,0,1);return}return te(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Sn(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?te(t,+l[0],+l[1],+l[2],1):te(t,0,0,0,1);f=Ya(l.pop());case"rgb":if(l.length!==3){te(t,0,0,0,1);return}return te(t,mu(l[0]),mu(l[1]),mu(l[2]),f),Sn(e,t),t;case"hsla":if(l.length!==4){te(t,0,0,0,1);return}return l[3]=Ya(l[3]),Qc(l,t),Sn(e,t),t;case"hsl":if(l.length!==3){te(t,0,0,0,1);return}return Qc(l,t),Sn(e,t),t;default:return}}te(t,0,0,0,1)}}function Qc(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Ya(e[1]),i=Ya(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],te(t,pi(wu(o,a,r+1/3)*255),pi(wu(o,a,r)*255),pi(wu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Jc(e,t){var r=ir(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 bu(r,r.length===4?"rgba":"rgb")}}function bu(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 ja(e,t){var r=ir(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var qa=Math.round;function bn(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ir(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t==null?1:t}}var tv=1e-4;function ar(e){return e<tv&&e>-tv}function Za(e){return qa(e*1e3)/1e3}function xu(e){return qa(e*1e4)/1e4}function Xw(e){return"matrix("+Za(e[0])+","+Za(e[1])+","+Za(e[2])+","+Za(e[3])+","+xu(e[4])+","+xu(e[5])+")"}var jw={left:"start",right:"end",center:"middle",middle:"middle"};function qw(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Zw(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Kw(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 ev(e){return e&&!!e.image}function Qw(e){return e&&!!e.svgElement}function Jw(e){return ev(e)||Qw(e)}function rv(e){return e.type==="linear"}function nv(e){return e.type==="radial"}function tS(e){return e&&(e.type==="linear"||e.type==="radial")}function Ka(e){return"url(#"+e+")"}function iv(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 av(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*$a,i=K(e.scaleX,1),a=K(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+qa(o*$a)+"deg, "+qa(s*$a)+"deg)"),u.join(" ")}var eS=function(){return q.hasGlobalWindow&&U(window.btoa)?function(e){return window.btoa(unescape(e))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&Fe("Base64 isn't natively supported in the current environment."),null}}(),Tu=Array.prototype.slice;function Ve(e,t,r){return(t-e)*r+e}function Cu(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Ve(t[a],r[a],n);return e}function rS(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ve(t[o][s],r[o][s],n)}return e}function Qa(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function ov(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function nS(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function iS(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:Tu.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function Ja(e){if(Ft(e)){var t=e.length;if(Ft(e[0])){for(var r=[],n=0;n<t;n++)r.push(Tu.call(e[n]));return r}return Tu.call(e)}return e}function to(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 aS(e){return Ft(e&&e[0])?2:1}var eo=0,ro=1,sv=2,gi=3,Du=4,Au=5,uv=6;function lv(e){return e===Du||e===Au}function no(e){return e===ro||e===sv}var yi=[0,0,0,0],oS=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 i=this.keyframes,a=i.length,o=!1,s=uv,u=r;if(Ft(r)){var l=aS(r);s=l,(l===1&&!vt(r[0])||l===2&&!vt(r[0][0]))&&(o=!0)}else if(vt(r)&&!li(r))s=eo;else if(F(r))if(!isNaN(+r))s=eo;else{var f=ir(r);f&&(u=f,s=gi)}else if(Na(r)){var h=R({},u);h.colorStops=V(r.colorStops,function(c){return{offset:c.offset,color:ir(c.color)}}),rv(r)?s=Du:nv(r)&&(s=Au),u=h}a===0?this.valType=s:(s!==this.valType||s===uv)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:u,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=U(n)?n:Fc[n]||_u(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=no(i),l=lv(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/t,s||(u&&f!==a-1?iS(v,c,i):l&&nS(v.colorStops,c.colorStops))}if(!s&&i!==Au&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===eo?n[f].additiveValue=n[f].value-d:i===gi?n[f].additiveValue=Qa([],n[f].value,d,-1):no(i)&&(n[f].additiveValue=i===ro?Qa([],n[f].value,d,-1):ov([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===gi,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=v(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(!!(c&&d)){this._lastFr=f,this._lastFrP=r;var p=d.percent-c.percent,y=p===0?1:v((r-c.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var _=n?this._additiveValue:l?yi:t[u];if((no(a)||l)&&!_&&(_=this._additiveValue=[]),this.discrete)t[u]=y<1?c.rawValue:d.rawValue;else if(no(a))a===ro?Cu(_,c[i],d[i],y):rS(_,c[i],d[i],y);else if(lv(a)){var m=c[i],w=d[i],b=a===Du;t[u]={type:b?"linear":"radial",x:Ve(m.x,w.x,y),y:Ve(m.y,w.y,y),colorStops:V(m.colorStops,function(x,C){var A=w.colorStops[C];return{offset:Ve(x.offset,A.offset,y),color:to(Cu([],x.color,A.color,y))}}),global:w.global},b?(t[u].x2=Ve(m.x2,w.x2,y),t[u].y2=Ve(m.y2,w.y2,y)):t[u].r=Ve(m.r,w.r,y)}else if(l)Cu(_,c[i],d[i],y),n||(t[u]=to(_));else{var S=Ve(c[i],d[i],y);n?this._additiveValue=S:t[u]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===eo?t[n]=t[n]+i:r===gi?(ir(t[n],yi),Qa(yi,yi,i,1),t[n]=to(yi)):r===ro?Qa(t[n],t[n],i,1):r===sv&&ov(t[n],t[n],i,1)},e}(),sS=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Fe("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,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,J(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new oS(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];l=v&&v.value,f.valType===gi&&l&&(l=to(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Ja(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Ja(r[s]),i)}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=nul