UNPKG

@senx/discovery-widgets

Version:

Discovery Widgets Elements

29 lines (25 loc) 2.86 MB
import{r as t,c as i,h as e,H as r,g as n}from"./p-4fe26fdd.js";import{P as a,_ as s,U as o,i as A,b as u,e as l,v as h,k as f,l as c,a as v,J as d,m,n as p,o as w,p as g,q as y,r as b,g as _,s as M,j as B}from"./p-4e6d968f.js";import{L as k}from"./p-8dac2055.js";const x=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{}; /*! ***************************************************************************** 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 S=function(t,i){S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return S(t,i)};function C(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");S(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var F=function(){function t(){this.firefox=false;this.ie=false;this.edge=false;this.newEdge=false;this.weChat=false}return t}();var Q=function(){function t(){this.browser=new F;this.node=false;this.wxa=false;this.worker=false;this.svgSupported=false;this.touchEventsSupported=false;this.pointerEventsSupported=false;this.domSupported=false;this.transformSupported=false;this.transform3dSupported=false;this.hasGlobalWindow=typeof window!=="undefined"}return t}();var U=new Q;if(typeof wx==="object"&&typeof wx.getSystemInfoSync==="function"){U.wxa=true;U.touchEventsSupported=true}else if(typeof document==="undefined"&&typeof self!=="undefined"){U.worker=true}else if(!U.hasGlobalWindow||"Deno"in window){U.node=true;U.svgSupported=true}else{D(navigator.userAgent,U)}function D(t,i){var e=i.browser;var r=t.match(/Firefox\/([\d.]+)/);var n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/);var a=t.match(/Edge?\/([\d.]+)/);var s=/micromessenger/i.test(t);if(r){e.firefox=true;e.version=r[1]}if(n){e.ie=true;e.version=n[1]}if(a){e.edge=true;e.version=a[1];e.newEdge=+a[1].split(".")[0]>18}if(s){e.weChat=true}i.svgSupported=typeof SVGRect!=="undefined";i.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge;i.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);i.domSupported=typeof document!=="undefined";var o=document.documentElement.style;i.transform3dSupported=(e.ie&&"transition"in o||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o);i.transformSupported=i.transform3dSupported||e.ie&&+e.version>=9}const Y=U;var T=12;var H="sans-serif";var I=T+"px "+H;var N=20;var E=100;var O="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function j(t){var i={};if(typeof JSON==="undefined"){return i}for(var e=0;e<t.length;e++){var r=String.fromCharCode(e+32);var n=(t.charCodeAt(e)-N)/E;i[r]=n}return i}var z=j(O);var P={createCanvas:function(){return typeof document!=="undefined"&&document.createElement("canvas")},measureText:function(){var t;var i;return function(e,r){if(!t){var n=P.createCanvas();t=n&&n.getContext("2d")}if(t){if(i!==r){i=t.font=r||I}return t.measureText(e)}else{e=e||"";r=r||I;var a=/((?:\d+)?\.?\d*)px/.exec(r);var s=a&&+a[1]||T;var o=0;if(r.indexOf("mono")>=0){o=s*e.length}else{for(var A=0;A<e.length;A++){var u=z[e[A]];o+=u==null?s:u*s}}return{width:o}}}}(),loadImage:function(t,i,e){var r=new Image;r.onload=i;r.onerror=e;r.src=t;return r}};var R=dt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,i){t["[object "+i+"]"]=true;return t}),{});var K=dt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,i){t["[object "+i+"Array]"]=true;return t}),{});var W=Object.prototype.toString;var V=Array.prototype;var G=V.forEach;var q=V.filter;var J=V.slice;var X=V.map;var Z=function(){}.constructor;var $=Z?Z.prototype:null;var tt="__proto__";var it=2311;function et(){return it++}function rt(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}if(typeof console!=="undefined"){console.error.apply(console,t)}}function nt(t){if(t==null||typeof t!=="object"){return t}var i=t;var e=W.call(t);if(e==="[object Array]"){if(!Rt(t)){i=[];for(var r=0,n=t.length;r<n;r++){i[r]=nt(t[r])}}}else if(K[e]){if(!Rt(t)){var a=t.constructor;if(a.from){i=a.from(t)}else{i=new a(t.length);for(var r=0,n=t.length;r<n;r++){i[r]=t[r]}}}}else if(!R[e]&&!Rt(t)&&!Ft(t)){i={};for(var s in t){if(t.hasOwnProperty(s)&&s!==tt){i[s]=nt(t[s])}}}return i}function at(t,i,e){if(!xt(i)||!xt(t)){return e?nt(i):t}for(var r in i){if(i.hasOwnProperty(r)&&r!==tt){var n=t[r];var a=i[r];if(xt(a)&&xt(n)&&!_t(a)&&!_t(n)&&!Ft(a)&&!Ft(n)&&!St(a)&&!St(n)&&!Rt(a)&&!Rt(n)){at(n,a,e)}else if(e||!(r in t)){t[r]=nt(i[r])}}}return t}function st(t,i){var e=t[0];for(var r=1,n=t.length;r<n;r++){e=at(e,t[r],i)}return e}function ot(t,i){if(Object.assign){Object.assign(t,i)}else{for(var e in i){if(i.hasOwnProperty(e)&&e!==tt){t[e]=i[e]}}}return t}function At(t,i,e){var r=wt(i);for(var n=0,a=r.length;n<a;n++){var s=r[n];if(e?i[s]!=null:t[s]==null){t[s]=i[s]}}return t}function ut(t,i){if(t){if(t.indexOf){return t.indexOf(i)}for(var e=0,r=t.length;e<r;e++){if(t[e]===i){return e}}}return-1}function lt(t,i){var e=t.prototype;function r(){}r.prototype=i.prototype;t.prototype=new r;for(var n in e){if(e.hasOwnProperty(n)){t.prototype[n]=e[n]}}t.prototype.constructor=t;t.superClass=i}function ht(t,i,e){t="prototype"in t?t.prototype:t;i="prototype"in i?i.prototype:i;if(Object.getOwnPropertyNames){var r=Object.getOwnPropertyNames(i);for(var n=0;n<r.length;n++){var a=r[n];if(a!=="constructor"){if(e?i[a]!=null:t[a]==null){t[a]=i[a]}}}}else{At(t,i,e)}}function ft(t){if(!t){return false}if(typeof t==="string"){return false}return typeof t.length==="number"}function ct(t,i,e){if(!(t&&i)){return}if(t.forEach&&t.forEach===G){t.forEach(i,e)}else if(t.length===+t.length){for(var r=0,n=t.length;r<n;r++){i.call(e,t[r],r,t)}}else{for(var a in t){if(t.hasOwnProperty(a)){i.call(e,t[a],a,t)}}}}function vt(t,i,e){if(!t){return[]}if(!i){return Nt(t)}if(t.map&&t.map===X){return t.map(i,e)}else{var r=[];for(var n=0,a=t.length;n<a;n++){r.push(i.call(e,t[n],n,t))}return r}}function dt(t,i,e,r){if(!(t&&i)){return}for(var n=0,a=t.length;n<a;n++){e=i.call(r,e,t[n],n,t)}return e}function mt(t,i,e){if(!t){return[]}if(!i){return Nt(t)}if(t.filter&&t.filter===q){return t.filter(i,e)}else{var r=[];for(var n=0,a=t.length;n<a;n++){if(i.call(e,t[n],n,t)){r.push(t[n])}}return r}}function pt(t,i,e){if(!(t&&i)){return}for(var r=0,n=t.length;r<n;r++){if(i.call(e,t[r],r,t)){return t[r]}}}function wt(t){if(!t){return[]}if(Object.keys){return Object.keys(t)}var i=[];for(var e in t){if(t.hasOwnProperty(e)){i.push(e)}}return i}function gt(t,i){var e=[];for(var r=2;r<arguments.length;r++){e[r-2]=arguments[r]}return function(){return t.apply(i,e.concat(J.call(arguments)))}}var yt=$&&Mt($.bind)?$.call.bind($.bind):gt;function bt(t){var i=[];for(var e=1;e<arguments.length;e++){i[e-1]=arguments[e]}return function(){return t.apply(this,i.concat(J.call(arguments)))}}function _t(t){if(Array.isArray){return Array.isArray(t)}return W.call(t)==="[object Array]"}function Mt(t){return typeof t==="function"}function Bt(t){return typeof t==="string"}function Lt(t){return W.call(t)==="[object String]"}function kt(t){return typeof t==="number"}function xt(t){var i=typeof t;return i==="function"||!!t&&i==="object"}function St(t){return!!R[W.call(t)]}function Ct(t){return!!K[W.call(t)]}function Ft(t){return typeof t==="object"&&typeof t.nodeType==="number"&&typeof t.ownerDocument==="object"}function Qt(t){return t.colorStops!=null}function Ut(t){return t.image!=null}function Dt(t){return W.call(t)==="[object RegExp]"}function Yt(t){return t!==t}function Tt(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}for(var e=0,r=t.length;e<r;e++){if(t[e]!=null){return t[e]}}}function Ht(t,i){return t!=null?t:i}function It(t,i,e){return t!=null?t:i!=null?i:e}function Nt(t){var i=[];for(var e=1;e<arguments.length;e++){i[e-1]=arguments[e]}return J.apply(t,i)}function Et(t){if(typeof t==="number"){return[t,t,t,t]}var i=t.length;if(i===2){return[t[0],t[1],t[0],t[1]]}else if(i===3){return[t[0],t[1],t[2],t[1]]}return t}function Ot(t,i){if(!t){throw new Error(i)}}function jt(t){if(t==null){return null}else if(typeof t.trim==="function"){return t.trim()}else{return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}var zt="__ec_primitive__";function Pt(t){t[zt]=true}function Rt(t){return t[zt]}var Kt=function(){function t(){this.data={}}t.prototype["delete"]=function(t){var i=this.has(t);if(i){delete this.data[t]}return i};t.prototype.has=function(t){return this.data.hasOwnProperty(t)};t.prototype.get=function(t){return this.data[t]};t.prototype.set=function(t,i){this.data[t]=i;return this};t.prototype.keys=function(){return wt(this.data)};t.prototype.forEach=function(t){var i=this.data;for(var e in i){if(i.hasOwnProperty(e)){t(i[e],e)}}};return t}();var Wt=typeof Map==="function";function Vt(){return Wt?new Map:new Kt}var Gt=function(){function t(i){var e=_t(i);this.data=Vt();var r=this;i instanceof t?i.each(n):i&&ct(i,n);function n(t,i){e?r.set(t,i):r.set(i,t)}}t.prototype.hasKey=function(t){return this.data.has(t)};t.prototype.get=function(t){return this.data.get(t)};t.prototype.set=function(t,i){this.data.set(t,i);return i};t.prototype.each=function(t,i){this.data.forEach((function(e,r){t.call(i,e,r)}))};t.prototype.keys=function(){var t=this.data.keys();return Wt?Array.from(t):t};t.prototype.removeKey=function(t){this.data["delete"](t)};return t}();function qt(t){return new Gt(t)}function Jt(t,i){var e=new t.constructor(t.length+i.length);for(var r=0;r<t.length;r++){e[r]=t[r]}var n=t.length;for(var r=0;r<i.length;r++){e[r+n]=i[r]}return e}function Xt(t,i){var e;if(Object.create){e=Object.create(t)}else{var r=function(){};r.prototype=t;e=new r}if(i){ot(e,i)}return e}function Zt(t){var i=t.style;i.webkitUserSelect="none";i.userSelect="none";i.webkitTapHighlightColor="rgba(0,0,0,0)";i["-webkit-touch-callout"]="none"}function $t(t,i){return t.hasOwnProperty(i)}function ti(){}var ii=180/Math.PI; /*! ***************************************************************************** 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 ei=function(t,i){ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return ei(t,i)};function ri(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");ei(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}function ni(t,i){if(t==null){t=0}if(i==null){i=0}return[t,i]}function ai(t,i){t[0]=i[0];t[1]=i[1];return t}function si(t){return[t[0],t[1]]}function oi(t,i,e){t[0]=i;t[1]=e;return t}function Ai(t,i,e){t[0]=i[0]+e[0];t[1]=i[1]+e[1];return t}function ui(t,i,e,r){t[0]=i[0]+e[0]*r;t[1]=i[1]+e[1]*r;return t}function li(t,i,e){t[0]=i[0]-e[0];t[1]=i[1]-e[1];return t}function hi(t){return Math.sqrt(fi(t))}function fi(t){return t[0]*t[0]+t[1]*t[1]}function ci(t,i,e){t[0]=i[0]*e;t[1]=i[1]*e;return t}function vi(t,i){var e=hi(i);if(e===0){t[0]=0;t[1]=0}else{t[0]=i[0]/e;t[1]=i[1]/e}return t}function di(t,i){return Math.sqrt((t[0]-i[0])*(t[0]-i[0])+(t[1]-i[1])*(t[1]-i[1]))}var mi=di;function pi(t,i){return(t[0]-i[0])*(t[0]-i[0])+(t[1]-i[1])*(t[1]-i[1])}var wi=pi;function gi(t,i,e,r){t[0]=i[0]+r*(e[0]-i[0]);t[1]=i[1]+r*(e[1]-i[1]);return t}function yi(t,i,e){var r=i[0];var n=i[1];t[0]=e[0]*r+e[2]*n+e[4];t[1]=e[1]*r+e[3]*n+e[5];return t}function bi(t,i,e){t[0]=Math.min(i[0],e[0]);t[1]=Math.min(i[1],e[1]);return t}function _i(t,i,e){t[0]=Math.max(i[0],e[0]);t[1]=Math.max(i[1],e[1]);return t}var Mi=function(){function t(t,i){this.target=t;this.topTarget=i&&i.topTarget}return t}();var Bi=function(){function t(t){this.handler=t;t.on("mousedown",this._dragStart,this);t.on("mousemove",this._drag,this);t.on("mouseup",this._dragEnd,this)}t.prototype._dragStart=function(t){var i=t.target;while(i&&!i.draggable){i=i.parent||i.__hostTarget}if(i){this._draggingTarget=i;i.dragging=true;this._x=t.offsetX;this._y=t.offsetY;this.handler.dispatchToElement(new Mi(i,t),"dragstart",t.event)}};t.prototype._drag=function(t){var i=this._draggingTarget;if(i){var e=t.offsetX;var r=t.offsetY;var n=e-this._x;var a=r-this._y;this._x=e;this._y=r;i.drift(n,a,t);this.handler.dispatchToElement(new Mi(i,t),"drag",t.event);var s=this.handler.findHover(e,r,i).target;var o=this._dropTarget;this._dropTarget=s;if(i!==s){if(o&&s!==o){this.handler.dispatchToElement(new Mi(o,t),"dragleave",t.event)}if(s&&s!==o){this.handler.dispatchToElement(new Mi(s,t),"dragenter",t.event)}}}};t.prototype._dragEnd=function(t){var i=this._draggingTarget;if(i){i.dragging=false}this.handler.dispatchToElement(new Mi(i,t),"dragend",t.event);if(this._dropTarget){this.handler.dispatchToElement(new Mi(this._dropTarget,t),"drop",t.event)}this._draggingTarget=null;this._dropTarget=null};return t}();const Li=Bi;var ki=function(){function t(t){if(t){this._$eventProcessor=t}}t.prototype.on=function(t,i,e,r){if(!this._$handlers){this._$handlers={}}var n=this._$handlers;if(typeof i==="function"){r=e;e=i;i=null}if(!e||!t){return this}var a=this._$eventProcessor;if(i!=null&&a&&a.normalizeQuery){i=a.normalizeQuery(i)}if(!n[t]){n[t]=[]}for(var s=0;s<n[t].length;s++){if(n[t][s].h===e){return this}}var o={h:e,query:i,ctx:r||this,callAtLast:e.zrEventfulCallAtLast};var A=n[t].length-1;var u=n[t][A];u&&u.callAtLast?n[t].splice(A,0,o):n[t].push(o);return this};t.prototype.isSilent=function(t){var i=this._$handlers;return!i||!i[t]||!i[t].length};t.prototype.off=function(t,i){var e=this._$handlers;if(!e){return this}if(!t){this._$handlers={};return this}if(i){if(e[t]){var r=[];for(var n=0,a=e[t].length;n<a;n++){if(e[t][n].h!==i){r.push(e[t][n])}}e[t]=r}if(e[t]&&e[t].length===0){delete e[t]}}else{delete e[t]}return this};t.prototype.trigger=function(t){var i=[];for(var e=1;e<arguments.length;e++){i[e-1]=arguments[e]}if(!this._$handlers){return this}var r=this._$handlers[t];var n=this._$eventProcessor;if(r){var a=i.length;var s=r.length;for(var o=0;o<s;o++){var A=r[o];if(n&&n.filter&&A.query!=null&&!n.filter(t,A.query)){continue}switch(a){case 0:A.h.call(A.ctx);break;case 1:A.h.call(A.ctx,i[0]);break;case 2:A.h.call(A.ctx,i[0],i[1]);break;default:A.h.apply(A.ctx,i);break}}}n&&n.afterTrigger&&n.afterTrigger(t);return this};t.prototype.triggerWithContext=function(t){var i=[];for(var e=1;e<arguments.length;e++){i[e-1]=arguments[e]}if(!this._$handlers){return this}var r=this._$handlers[t];var n=this._$eventProcessor;if(r){var a=i.length;var s=i[a-1];var o=r.length;for(var A=0;A<o;A++){var u=r[A];if(n&&n.filter&&u.query!=null&&!n.filter(t,u.query)){continue}switch(a){case 0:u.h.call(s);break;case 1:u.h.call(s,i[0]);break;case 2:u.h.call(s,i[0],i[1]);break;default:u.h.apply(s,i.slice(1,a-1));break}}}n&&n.afterTrigger&&n.afterTrigger(t);return this};return t}();const xi=ki;var Si=Math.log(2);function Ci(t,i,e,r,n,a){var s=r+"-"+n;var o=t.length;if(a.hasOwnProperty(s)){return a[s]}if(i===1){var A=Math.round(Math.log((1<<o)-1&~n)/Si);return t[e][A]}var u=r|1<<e;var l=e+1;while(r&1<<l){l++}var h=0;for(var f=0,c=0;f<o;f++){var v=1<<f;if(!(v&n)){h+=(c%2?-1:1)*t[e][f]*Ci(t,i-1,l,u,n|v,a);c++}}a[s]=h;return h}function Fi(t,i){var e=[[t[0],t[1],1,0,0,0,-i[0]*t[0],-i[0]*t[1]],[0,0,0,t[0],t[1],1,-i[1]*t[0],-i[1]*t[1]],[t[2],t[3],1,0,0,0,-i[2]*t[2],-i[2]*t[3]],[0,0,0,t[2],t[3],1,-i[3]*t[2],-i[3]*t[3]],[t[4],t[5],1,0,0,0,-i[4]*t[4],-i[4]*t[5]],[0,0,0,t[4],t[5],1,-i[5]*t[4],-i[5]*t[5]],[t[6],t[7],1,0,0,0,-i[6]*t[6],-i[6]*t[7]],[0,0,0,t[6],t[7],1,-i[7]*t[6],-i[7]*t[7]]];var r={};var n=Ci(e,8,0,0,0,r);if(n===0){return}var a=[];for(var s=0;s<8;s++){for(var o=0;o<8;o++){a[o]==null&&(a[o]=0);a[o]+=((s+o)%2?-1:1)*Ci(e,7,s===0?1:0,1<<s,1<<o,r)/n*i[s]}}return function(t,i,e){var r=i*a[6]+e*a[7]+1;t[0]=(i*a[0]+e*a[1]+a[2])/r;t[1]=(i*a[3]+e*a[4]+a[5])/r}}var Qi="___zrEVENTSAVED";var Ui=[];function Di(t,i,e,r,n){return Yi(Ui,i,r,n,true)&&Yi(t,e,Ui[0],Ui[1])}function Yi(t,i,e,r,n){if(i.getBoundingClientRect&&Y.domSupported&&!Ii(i)){var a=i[Qi]||(i[Qi]={});var s=Ti(i,a);var o=Hi(s,a,n);if(o){o(t,e,r);return true}}return false}function Ti(t,i){var e=i.markers;if(e){return e}e=i.markers=[];var r=["left","right"];var n=["top","bottom"];for(var a=0;a<4;a++){var s=document.createElement("div");var o=s.style;var A=a%2;var u=(a>>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[A]+":0",n[u]+":0",r[1-A]+":auto",n[1-u]+":auto",""].join("!important;");t.appendChild(s);e.push(s)}return e}function Hi(t,i,e){var r=e?"invTrans":"trans";var n=i[r];var a=i.srcCoords;var s=[];var o=[];var A=true;for(var u=0;u<4;u++){var l=t[u].getBoundingClientRect();var h=2*u;var f=l.left;var c=l.top;s.push(f,c);A=A&&a&&f===a[h]&&c===a[h+1];o.push(t[u].offsetLeft,t[u].offsetTop)}return A&&n?n:(i.srcCoords=s,i[r]=e?Fi(o,s):Fi(s,o))}function Ii(t){return t.nodeName.toUpperCase()==="CANVAS"}var Ni=/([&<>"'])/g;var Ei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Oi(t){return t==null?"":(t+"").replace(Ni,(function(t,i){return Ei[i]}))}var ji=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;var zi=[];var Pi=Y.browser.firefox&&+Y.browser.version.split(".")[0]<39;function Ri(t,i,e,r){e=e||{};if(r){Ki(t,i,e)}else if(Pi&&i.layerX!=null&&i.layerX!==i.offsetX){e.zrX=i.layerX;e.zrY=i.layerY}else if(i.offsetX!=null){e.zrX=i.offsetX;e.zrY=i.offsetY}else{Ki(t,i,e)}return e}function Ki(t,i,e){if(Y.domSupported&&t.getBoundingClientRect){var r=i.clientX;var n=i.clientY;if(Ii(t)){var a=t.getBoundingClientRect();e.zrX=r-a.left;e.zrY=n-a.top;return}else{if(Yi(zi,t,r,n)){e.zrX=zi[0];e.zrY=zi[1];return}}}e.zrX=e.zrY=0}function Wi(t){return t||window.event}function Vi(t,i,e){i=Wi(i);if(i.zrX!=null){return i}var r=i.type;var n=r&&r.indexOf("touch")>=0;if(!n){Ri(t,i,i,e);var a=Gi(i);i.zrDelta=a?a/120:-(i.detail||0)/3}else{var s=r!=="touchend"?i.targetTouches[0]:i.changedTouches[0];s&&Ri(t,s,i,e)}var o=i.button;if(i.which==null&&o!==undefined&&ji.test(i.type)){i.which=o&1?1:o&2?3:o&4?2:0}return i}function Gi(t){var i=t.wheelDelta;if(i){return i}var e=t.deltaX;var r=t.deltaY;if(e==null||r==null){return i}var n=r!==0?Math.abs(r):Math.abs(e);var a=r>0?-1:r<0?1:e>0?-1:1;return 3*n*a}function qi(t,i,e,r){t.addEventListener(i,e,r)}function Ji(t,i,e,r){t.removeEventListener(i,e,r)}var Xi=function(t){t.preventDefault();t.stopPropagation();t.cancelBubble=true};function Zi(t){return t.which===2||t.which===3}var $i=function(){function t(){this._track=[]}t.prototype.recognize=function(t,i,e){this._doTrack(t,i,e);return this._recognize(t)};t.prototype.clear=function(){this._track.length=0;return this};t.prototype._doTrack=function(t,i,e){var r=t.touches;if(!r){return}var n={points:[],touches:[],target:i,event:t};for(var a=0,s=r.length;a<s;a++){var o=r[a];var A=Ri(e,o,{});n.points.push([A.zrX,A.zrY]);n.touches.push(o)}this._track.push(n)};t.prototype._recognize=function(t){for(var i in ee){if(ee.hasOwnProperty(i)){var e=ee[i](this._track,t);if(e){return e}}}};return t}();function te(t){var i=t[1][0]-t[0][0];var e=t[1][1]-t[0][1];return Math.sqrt(i*i+e*e)}function ie(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ee={pinch:function(t,i){var e=t.length;if(!e){return}var r=(t[e-1]||{}).points;var n=(t[e-2]||{}).points||r;if(n&&n.length>1&&r&&r.length>1){var a=te(r)/te(n);!isFinite(a)&&(a=1);i.pinchScale=a;var s=ie(r);i.pinchX=s[0];i.pinchY=s[1];return{type:"pinch",target:t[0].target,event:i}}}};function re(){return[1,0,0,1,0,0]}function ne(t){t[0]=1;t[1]=0;t[2]=0;t[3]=1;t[4]=0;t[5]=0;return t}function ae(t,i){t[0]=i[0];t[1]=i[1];t[2]=i[2];t[3]=i[3];t[4]=i[4];t[5]=i[5];return t}function se(t,i,e){var r=i[0]*e[0]+i[2]*e[1];var n=i[1]*e[0]+i[3]*e[1];var a=i[0]*e[2]+i[2]*e[3];var s=i[1]*e[2]+i[3]*e[3];var o=i[0]*e[4]+i[2]*e[5]+i[4];var A=i[1]*e[4]+i[3]*e[5]+i[5];t[0]=r;t[1]=n;t[2]=a;t[3]=s;t[4]=o;t[5]=A;return t}function oe(t,i,e){t[0]=i[0];t[1]=i[1];t[2]=i[2];t[3]=i[3];t[4]=i[4]+e[0];t[5]=i[5]+e[1];return t}function Ae(t,i,e,r){if(r===void 0){r=[0,0]}var n=i[0];var a=i[2];var s=i[4];var o=i[1];var A=i[3];var u=i[5];var l=Math.sin(e);var h=Math.cos(e);t[0]=n*h+o*l;t[1]=-n*l+o*h;t[2]=a*h+A*l;t[3]=-a*l+h*A;t[4]=h*(s-r[0])+l*(u-r[1])+r[0];t[5]=h*(u-r[1])-l*(s-r[0])+r[1];return t}function ue(t,i,e){var r=e[0];var n=e[1];t[0]=i[0]*r;t[1]=i[1]*n;t[2]=i[2]*r;t[3]=i[3]*n;t[4]=i[4]*r;t[5]=i[5]*n;return t}function le(t,i){var e=i[0];var r=i[2];var n=i[4];var a=i[1];var s=i[3];var o=i[5];var A=e*s-a*r;if(!A){return null}A=1/A;t[0]=s*A;t[1]=-a*A;t[2]=-r*A;t[3]=e*A;t[4]=(r*o-s*n)*A;t[5]=(a*n-e*o)*A;return t}function he(t){var i=re();ae(i,t);return i}var fe=function(){function t(t,i){this.x=t||0;this.y=i||0}t.prototype.copy=function(t){this.x=t.x;this.y=t.y;return this};t.prototype.clone=function(){return new t(this.x,this.y)};t.prototype.set=function(t,i){this.x=t;this.y=i;return this};t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y};t.prototype.add=function(t){this.x+=t.x;this.y+=t.y;return this};t.prototype.scale=function(t){this.x*=t;this.y*=t};t.prototype.scaleAndAdd=function(t,i){this.x+=t.x*i;this.y+=t.y*i};t.prototype.sub=function(t){this.x-=t.x;this.y-=t.y;return this};t.prototype.dot=function(t){return this.x*t.x+this.y*t.y};t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y};t.prototype.normalize=function(){var t=this.len();this.x/=t;this.y/=t;return this};t.prototype.distance=function(t){var i=this.x-t.x;var e=this.y-t.y;return Math.sqrt(i*i+e*e)};t.prototype.distanceSquare=function(t){var i=this.x-t.x;var e=this.y-t.y;return i*i+e*e};t.prototype.negate=function(){this.x=-this.x;this.y=-this.y;return this};t.prototype.transform=function(t){if(!t){return}var i=this.x;var e=this.y;this.x=t[0]*i+t[2]*e+t[4];this.y=t[1]*i+t[3]*e+t[5];return this};t.prototype.toArray=function(t){t[0]=this.x;t[1]=this.y;return t};t.prototype.fromArray=function(t){this.x=t[0];this.y=t[1]};t.set=function(t,i,e){t.x=i;t.y=e};t.copy=function(t,i){t.x=i.x;t.y=i.y};t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)};t.lenSquare=function(t){return t.x*t.x+t.y*t.y};t.dot=function(t,i){return t.x*i.x+t.y*i.y};t.add=function(t,i,e){t.x=i.x+e.x;t.y=i.y+e.y};t.sub=function(t,i,e){t.x=i.x-e.x;t.y=i.y-e.y};t.scale=function(t,i,e){t.x=i.x*e;t.y=i.y*e};t.scaleAndAdd=function(t,i,e,r){t.x=i.x+e.x*r;t.y=i.y+e.y*r};t.lerp=function(t,i,e,r){var n=1-r;t.x=n*i.x+r*e.x;t.y=n*i.y+r*e.y};return t}();const ce=fe;var ve=Math.min;var de=Math.max;var me=new ce;var pe=new ce;var we=new ce;var ge=new ce;var ye=new ce;var be=new ce;var _e=function(){function t(t,i,e,r){if(e<0){t=t+e;e=-e}if(r<0){i=i+r;r=-r}this.x=t;this.y=i;this.width=e;this.height=r}t.prototype.union=function(t){var i=ve(t.x,this.x);var e=ve(t.y,this.y);if(isFinite(this.x)&&isFinite(this.width)){this.width=de(t.x+t.width,this.x+this.width)-i}else{this.width=t.width}if(isFinite(this.y)&&isFinite(this.height)){this.height=de(t.y+t.height,this.y+this.height)-e}else{this.height=t.height}this.x=i;this.y=e};t.prototype.applyTransform=function(i){t.applyTransform(this,this,i)};t.prototype.calculateTransform=function(t){var i=this;var e=t.width/i.width;var r=t.height/i.height;var n=re();oe(n,n,[-i.x,-i.y]);ue(n,n,[e,r]);oe(n,n,[t.x,t.y]);return n};t.prototype.intersect=function(i,e){if(!i){return false}if(!(i instanceof t)){i=t.create(i)}var r=this;var n=r.x;var a=r.x+r.width;var s=r.y;var o=r.y+r.height;var A=i.x;var u=i.x+i.width;var l=i.y;var h=i.y+i.height;var f=!(a<A||u<n||o<l||h<s);if(e){var c=Infinity;var v=0;var d=Math.abs(a-A);var m=Math.abs(u-n);var p=Math.abs(o-l);var w=Math.abs(h-s);var g=Math.min(d,m);var y=Math.min(p,w);if(a<A||u<n){if(g>v){v=g;if(d<m){ce.set(be,-d,0)}else{ce.set(be,m,0)}}}else{if(g<c){c=g;if(d<m){ce.set(ye,d,0)}else{ce.set(ye,-m,0)}}}if(o<l||h<s){if(y>v){v=y;if(p<w){ce.set(be,0,-p)}else{ce.set(be,0,w)}}}else{if(g<c){c=g;if(p<w){ce.set(ye,0,p)}else{ce.set(ye,0,-w)}}}}if(e){ce.copy(e,f?ye:be)}return f};t.prototype.contain=function(t,i){var e=this;return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height};t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)};t.prototype.copy=function(i){t.copy(this,i)};t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}};t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)};t.prototype.isZero=function(){return this.width===0||this.height===0};t.create=function(i){return new t(i.x,i.y,i.width,i.height)};t.copy=function(t,i){t.x=i.x;t.y=i.y;t.width=i.width;t.height=i.height};t.applyTransform=function(i,e,r){if(!r){if(i!==e){t.copy(i,e)}return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var n=r[0];var a=r[3];var s=r[4];var o=r[5];i.x=e.x*n+s;i.y=e.y*a+o;i.width=e.width*n;i.height=e.height*a;if(i.width<0){i.x+=i.width;i.width=-i.width}if(i.height<0){i.y+=i.height;i.height=-i.height}return}me.x=we.x=e.x;me.y=ge.y=e.y;pe.x=ge.x=e.x+e.width;pe.y=we.y=e.y+e.height;me.transform(r);ge.transform(r);pe.transform(r);we.transform(r);i.x=ve(me.x,pe.x,we.x,ge.x);i.y=ve(me.y,pe.y,we.y,ge.y);var A=de(me.x,pe.x,we.x,ge.x);var u=de(me.y,pe.y,we.y,ge.y);i.width=A-i.x;i.height=u-i.y};return t}();const Me=_e;var Be="silent";function Le(t,i,e){return{type:t,event:e,target:i.target,topTarget:i.topTarget,cancelBubble:false,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:ke}}function ke(){Xi(this.event)}var xe=function(t){ri(i,t);function i(){var i=t!==null&&t.apply(this,arguments)||this;i.handler=null;return i}i.prototype.dispose=function(){};i.prototype.setCursor=function(){};return i}(xi);var Se=function(){function t(t,i){this.x=t;this.y=i}return t}();var Ce=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"];var Fe=new Me(0,0,0,0);var Qe=function(t){ri(i,t);function i(i,e,r,n,a){var s=t.call(this)||this;s._hovered=new Se(0,0);s.storage=i;s.painter=e;s.painterRoot=n;s._pointerSize=a;r=r||new xe;s.proxy=null;s.setHandlerProxy(r);s._draggingMgr=new Li(s);return s}i.prototype.setHandlerProxy=function(t){if(this.proxy){this.proxy.dispose()}if(t){ct(Ce,(function(i){t.on&&t.on(i,this[i],this)}),this);t.handler=this}this.proxy=t};i.prototype.mousemove=function(t){var i=t.zrX;var e=t.zrY;var r=Ye(this,i,e);var n=this._hovered;var a=n.target;if(a&&!a.__zr){n=this.findHover(n.x,n.y);a=n.target}var s=this._hovered=r?new Se(i,e):this.findHover(i,e);var o=s.target;var A=this.proxy;A.setCursor&&A.setCursor(o?o.cursor:"default");if(a&&o!==a){this.dispatchToElement(n,"mouseout",t)}this.dispatchToElement(s,"mousemove",t);if(o&&o!==a){this.dispatchToElement(s,"mouseover",t)}};i.prototype.mouseout=function(t){var i=t.zrEventControl;if(i!=="only_globalout"){this.dispatchToElement(this._hovered,"mouseout",t)}if(i!=="no_globalout"){this.trigger("globalout",{type:"globalout",event:t})}};i.prototype.resize=function(){this._hovered=new Se(0,0)};i.prototype.dispatch=function(t,i){var e=this[t];e&&e.call(this,i)};i.prototype.dispose=function(){this.proxy.dispose();this.storage=null;this.proxy=null;this.painter=null};i.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)};i.prototype.dispatchToElement=function(t,i,e){t=t||{};var r=t.target;if(r&&r.silent){return}var n="on"+i;var a=Le(i,t,e);while(r){r[n]&&(a.cancelBubble=!!r[n].call(r,a));r.trigger(i,a);r=r.__hostTarget?r.__hostTarget:r.parent;if(a.cancelBubble){break}}if(!a.cancelBubble){this.trigger(i,a);if(this.painter&&this.painter.eachOtherLayer){this.painter.eachOtherLayer((function(t){if(typeof t[n]==="function"){t[n].call(t,a)}if(t.trigger){t.trigger(i,a)}}))}}};i.prototype.findHover=function(t,i,e){var r=this.storage.getDisplayList();var n=new Se(t,i);De(r,n,t,i,e);if(this._pointerSize&&!n.target){var a=[];var s=this._pointerSize;var o=s/2;var A=new Me(t-o,i-o,s,s);for(var u=r.length-1;u>=0;u--){var l=r[u];if(l!==e&&!l.ignore&&!l.ignoreCoarsePointer&&(!l.parent||!l.parent.ignoreCoarsePointer)){Fe.copy(l.getBoundingRect());if(l.transform){Fe.applyTransform(l.transform)}if(Fe.intersect(A)){a.push(l)}}}if(a.length){var h=4;var f=Math.PI/12;var c=Math.PI*2;for(var v=0;v<o;v+=h){for(var d=0;d<c;d+=f){var m=t+v*Math.cos(d);var p=i+v*Math.sin(d);De(a,n,m,p,e);if(n.target){return n}}}}}return n};i.prototype.processGesture=function(t,i){if(!this._gestureMgr){this._gestureMgr=new $i}var e=this._gestureMgr;i==="start"&&e.clear();var r=e.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);i==="end"&&e.clear();if(r){var n=r.type;t.gestureEvent=n;var a=new Se;a.target=r.target;this.dispatchToElement(a,n,r.event)}};return i}(xi);ct(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Qe.prototype[t]=function(i){var e=i.zrX;var r=i.zrY;var n=Ye(this,e,r);var a;var s;if(t!=="mouseup"||!n){a=this.findHover(e,r);s=a.target}if(t==="mousedown"){this._downEl=s;this._downPoint=[i.zrX,i.zrY];this._upEl=s}else if(t==="mouseup"){this._upEl=s}else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||mi(this._downPoint,[i.zrX,i.zrY])>4){return}this._downPoint=null}this.dispatchToElement(a,t,i)}}));function Ue(t,i,e){if(t[t.rectHover?"rectContain":"contain"](i,e)){var r=t;var n=void 0;var a=false;while(r){if(r.ignoreClip){a=true}if(!a){var s=r.getClipPath();if(s&&!s.contain(i,e)){return false}}if(r.silent){n=true}var o=r.__hostTarget;r=o?o:r.parent}return n?Be:true}return false}function De(t,i,e,r,n){for(var a=t.length-1;a>=0;a--){var s=t[a];var o=void 0;if(s!==n&&!s.ignore&&(o=Ue(s,e,r))){!i.topTarget&&(i.topTarget=s);if(o!==Be){i.target=s;break}}}}function Ye(t,i,e){var r=t.painter;return i<0||i>r.getWidth()||e<0||e>r.getHeight()}const Te=Qe;var He=32;var Ie=7;function Ne(t){var i=0;while(t>=He){i|=t&1;t>>=1}return t+i}function Ee(t,i,e,r){var n=i+1;if(n===e){return 1}if(r(t[n++],t[i])<0){while(n<e&&r(t[n],t[n-1])<0){n++}Oe(t,i,n)}else{while(n<e&&r(t[n],t[n-1])>=0){n++}}return n-i}function Oe(t,i,e){e--;while(i<e){var r=t[i];t[i++]=t[e];t[e--]=r}}function je(t,i,e,r,n){if(r===i){r++}for(;r<e;r++){var a=t[r];var s=i;var o=r;var A;while(s<o){A=s+o>>>1;if(n(a,t[A])<0){o=A}else{s=A+1}}var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0){t[s+u]=t[s+u-1];u--}}t[s]=a}}function ze(t,i,e,r,n,a){var s=0;var o=0;var A=1;if(a(t,i[e+n])>0){o=r-n;while(A<o&&a(t,i[e+n+A])>0){s=A;A=(A<<1)+1;if(A<=0){A=o}}if(A>o){A=o}s+=n;A+=n}else{o=n+1;while(A<o&&a(t,i[e+n-A])<=0){s=A;A=(A<<1)+1;if(A<=0){A=o}}if(A>o){A=o}var u=s;s=n-A;A=n-u}s++;while(s<A){var l=s+(A-s>>>1);if(a(t,i[e+l])>0){s=l+1}else{A=l}}return A}function Pe(t,i,e,r,n,a){var s=0;var o=0;var A=1;if(a(t,i[e+n])<0){o=n+1;while(A<o&&a(t,i[e+n-A])<0){s=A;A=(A<<1)+1;if(A<=0){A=o}}if(A>o){A=o}var u=s;s=n-A;A=n-u}else{o=r-n;while(A<o&&a(t,i[e+n+A])>=0){s=A;A=(A<<1)+1;if(A<=0){A=o}}if(A>o){A=o}s+=n;A+=n}s++;while(s<A){var l=s+(A-s>>>1);if(a(t,i[e+l])<0){A=l}else{s=l+1}}return A}function Re(t,i){var e=Ie;var r;var n;var a=0;var s=[];r=[];n=[];function o(t,i){r[a]=t;n[a]=i;a+=1}function A(){while(a>1){var t=a-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1]){if(n[t-1]<n[t+1]){t--}}else if(n[t]>n[t+1]){break}l(t)}}function u(){while(a>1){var t=a-2;if(t>0&&n[t-1]<n[t+1]){t--}l(t)}}function l(e){var s=r[e];var o=n[e];var A=r[e+1];var u=n[e+1];n[e]=o+u;if(e===a-3){r[e+1]=r[e+2];n[e+1]=n[e+2]}a--;var l=Pe(t[A],t,s,o,0,i);s+=l;o-=l;if(o===0){return}u=ze(t[s+o-1],t,A,u,u-1,i);if(u===0){return}if(o<=u){h(s,o,A,u)}else{f(s,o,A,u)}}function h(r,n,a,o){var A=0;for(A=0;A<n;A++){s[A]=t[r+A]}var u=0;var l=a;var h=r;t[h++]=t[l++];if(--o===0){for(A=0;A<n;A++){t[h+A]=s[u+A]}return}if(n===1){for(A=0;A<o;A++){t[h+A]=t[l+A]}t[h+o]=s[u];return}var f=e;var c;var v;var d;while(1){c=0;v=0;d=false;do{if(i(t[l],s[u])<0){t[h++]=t[l++];v++;c=0;if(--o===0){d=true;break}}else{t[h++]=s[u++];c++;v=0;if(--n===1){d=true;break}}}while((c|v)<f);if(d){break}do{c=Pe(t[l],s,u,n,0,i);if(c!==0){for(A=0;A<c;A++){t[h+A]=s[u+A]}h+=c;u+=c;n-=c;if(n<=1){d=true;break}}t[h++]=t[l++];if(--o===0){d=true;break}v=ze(s[u],t,l,o,0,i);if(v!==0){for(A=0;A<v;A++){t[h+A]=t[l+A]}h+=v;l+=v;o-=v;if(o===0){d=true;break}}t[h++]=s[u++];if(--n===1){d=true;break}f--}while(c>=Ie||v>=Ie);if(d){break}if(f<0){f=0}f+=2}e=f;e<1&&(e=1);if(n===1){for(A=0;A<o;A++){t[h+A]=t[l+A]}t[h+o]=s[u]}else if(n===0){throw new Error}else{for(A=0;A<n;A++){t[h+A]=s[u+A]}}}function f(r,n,a,o){var A=0;for(A=0;A<o;A++){s[A]=t[a+A]}var u=r+n-1;var l=o-1;var h=a+o-1;var f=0;var c=0;t[h--]=t[u--];if(--n===0){f=h-(o-1);for(A=0;A<o;A++){t[f+A]=s[A]}return}if(o===1){h-=n;u-=n;c=h+1;f=u+1;for(A=n-1;A>=0;A--){t[c+A]=t[f+A]}t[h]=s[l];return}var v=e;while(true){var d=0;var m=0;var p=false;do{if(i(s[l],t[u])<0){t[h--]=t[u--];d++;m=0;if(--n===0){p=true;break}}else{t[h--]=s[l--];m++;d=0;if(--o===1){p=true;break}}}while((d|m)<v);if(p){break}do{d=n-Pe(s[l],t,r,n,n-1,i);if(d!==0){h-=d;u-=d;n-=d;c=h+1;f=u+1;for(A=d-1;A>=0;A--){t[c+A]=t[f+A]}if(n===0){p=true;break}}t[h--]=s[l--];if(--o===1){p=true;break}m=o-ze(t[u],s,0,o,o-1,i);if(m!==0){h-=m;l-=m;o-=m;c=h+1;f=l+1;for(A=0;A<m;A++){t[c+A]=s[f+A]}if(o<=1){p=true;break}}t[h--]=t[u--];if(--n===0){p=true;break}v--}while(d>=Ie||m>=Ie);if(p){break}if(v<0){v=0}v+=2}e=v;if(e<1){e=1}if(o===1){h-=n;u-=n;c=h+1;f=u+1;for(A=n-1;A>=0;A--){t[c+A]=t[f+A]}t[h]=s[l]}else if(o===0){throw new Error}else{f=h-(o-1);for(A=0;A<o;A++){t[f+A]=s[A]}}}return{mergeRuns:A,forceMergeRuns:u,pushRun:o}}function Ke(t,i,e,r){if(!e){e=0}if(!r){r=t.length}var n=r-e;if(n<2){return}var a=0;if(n<He){a=Ee(t,e,r,i);je(t,e,r,e+a,i);return}var s=Re(t,i);var o=Ne(n);do{a=Ee(t,e,r,i);if(a<o){var A=n;if(A>o){A=o}je(t,e,e+A,e+a,i);a=A}s.pushRun(e,a);s.mergeRuns();n-=a;e+=a}while(n!==0);s.forceMergeRuns()}var We=1;var Ve=2;var Ge=4;var qe=false;function Je(){if(qe){return}qe=true;console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")}function Xe(t,i){if(t.zlevel===i.zlevel){if(t.z===i.z){return t.z2-i.z2}return t.z-i.z}return t.zlevel-i.zlevel}var Ze=function(){function t(){this._roots=[];this._displayList=[];this._displayListLen=0;this.displayableSortFunc=Xe}t.prototype.traverse=function(t,i){for(var e=0;e<this._roots.length;e++){this._roots[e].traverse(t,i)}};t.prototype.getDisplayList=function(t,i){i=i||false;var e=this._displayList;if(t||!e.length){this.updateDisplayList(i)}return e};t.prototype.updateDisplayList=function(t){this._displayListLen=0;var i=this._roots;var e=this._displayList;for(var r=0,n=i.length;r<n;r++){this._updateAndAddDisplayable(i[r],null,t)}e.length=this._displayListLen;Ke(e,Xe)};t.prototype._updateAndAddDisplayable=function(t,i,e){if(t.ignore&&!e){return}t.beforeUpdate();t.update();t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip){i=null}else if(r){if(i){i=i.slice()}else{i=[]}var n=r;var a=t;while(n){n.parent=a;n.updateTransform();i.push(n);a=n;n=n.getClipPath()}}if(t.childrenRef){var s=t.childrenRef();for(var o=0;o<s.length;o++){var A=s[o];if(t.__dirty){A.__dirty|=We}this._updateAndAddDisplayable(A,i,e)}t.__dirty=0}else{var u=t;if(i&&i.length){u.__clipPaths=i}else if(u.__clipPaths&&u.__clipPaths.length>0){u.__clipPaths=[]}if(isNaN(u.z)){Je();u.z=0}if(isNaN(u.z2)){Je();u.z2=0}if(isNaN(u.zlevel)){Je();u.zlevel=0}this._displayList[this._displayListLen++]=u}var l=t.getDecalElement&&t.getDecalElement();if(l){this._updateAndAddDisplayable(l,i,e)}var h=t.getTextGuideLine();if(h){this._updateAndAddDisplayable(h,i,e)}var f=t.getTextContent();if(f){this._updateAndAddDisplayable(f,i,e)}};t.prototype.addRoot=function(t){if(t.__zr&&t.__zr.storage===this){return}this._roots.push(t)};t.prototype.delRoot=function(t){if(t instanceof Array){for(var i=0,e=t.length;i<e;i++){this.delRoot(t[i])}return}var r=ut(this._roots,t);if(r>=0){this._roots.splice(r,1)}};t.prototype.delAllRoots=function(){this._roots=[];this._displayList=[];this._displayListLen=0;return};t.prototype.getRoots=function(){return this._roots};t.prototype.dispose=function(){this._displayList=null;this._roots=null};return t}();const $e=Ze;var tr;tr=Y.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const ir=tr;var er={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){if((t*=2)<1){return.5*t*t}return-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){if((t*=2)<1){return.5*t*t*t}return.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){if((t*=2)<1){return.5*t*t*t*t}return-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){if((t*=2)<1){return.5*t*t*t*t*t}return.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){if(t===0){return 0}if(t===1){return 1}if((t*=2)<1){return.5*Math.pow(1024,t-1)}return.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){if((t*=2)<1){return-.5*(Math.sqrt(1-t*t)-1)}return.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var i;var e=.1;var r=.4;if(t===0){return 0}if(t===1){return 1}if(!e||e<1){e=1;i=r/4}else{i=r*Math.asin(1/e)/(2*Math.PI)}return-(e*Math.pow(2,10*(t-=1))*Math.sin((t-i)*(2*Math.PI)/r))},elasticOut:function(t){var i;var e=.1;var r=.4;if(t===0){return 0}if(t===1){return 1}if(!e||e<1){e=1;i=r/4}else{i=r*Math.asin(1/e)/(2*Math.PI)}return e*Math.pow(2,-10*t)*Math.sin((t-i)*(2*Math.PI)/r)+1},elasticInOut:function(t){var i;var e=.1;var r=.4;if(t===0){return 0}if(t===1){return 1}if(!e||e<1){e=1;i=r/4}else{i=r*Math.asin(1/e)/(2*Math.PI)}if((t*=2)<1){return-.5*(e*Math.pow(2,10*(t-=1))*Math.sin((t-i)*(2*Math.PI)/r))}return e*Math.pow(2,-10*(t-=1))*Math.sin((t-i)*(2*Math.PI)/r)*.5+1},backIn:function(t){var i=1.70158;return t*t*((i+1)*t-i)},backOut:function(t){var i=1.70158;return--t*t*((i+1)*t+i)+1},backInOut:function(t){var i=1.70158*1.525;if((t*=2)<1){return.5*(t*t*((i+1)*t-i))}return.5*((t-=2)*t*((i+1)*t+i)+2)},bounceIn:function(t){return 1-er.bounceOut(1-t)},bounceOut:function(t){if(t<1/2.75){return 7.5625*t*t}else if(t<2/2.75){return 7.5625*(t-=1.5/2.75)*t+.75}else if(t<2.5/2.75){return 7.5625*(t-=2.25/2.75)*t+.9375}else{return 7.5625*(t-=2.625/2.75)*t+.984375}},bounceInOut:function(t){if(t<.5){return er.bounceIn(t*2)*.5}return er.bounceOut(t*2-1)*.5+.5}};const rr=er;var nr=Math.pow;var ar=Math.sqrt;var sr=1e-8;var or=1e-4;var Ar=ar(3);var ur=1/3;var lr=ni();var hr=ni();var fr=ni();function cr(t){return t>-sr&&t<sr}function vr(t){return t>sr||t<-sr}function dr(t,i,e,r,n){var a=1-n;return a*a*(a*t+3*n*i)+n*n*(n*r+3*a*e)}function mr(t,i,e,r,n){var a=1-n;return 3*(((i-t)*a+2*(e-i)*n)*a+(r-e)*n*n)}function pr(t,i,e,r,n,a){var s=r+3*(i-e)-t;var o=3*(e-i*2+t);var A=3*(i-t);var u=t-n;var l=o*o-3*s*A;var h=o*A-9*s*u;var f=A*A-3*o*u;var c=0;if(cr(l)&&cr(h)){if(cr(o)){a[0]=0}else{var v=-A/o;if(v>=0&&v<=1){a[c++]=v}}}else{var d=h*h-4*l*f;if(cr(d)){var m=h/l;var v=-o/s+m;var p=-m/2;if(v>=0&&v<=1){a[c++]=v}if(p>=0&&p<=1){a[c++]=p}}else if(d>0){var w=ar(d);var g=l*o+1.5*s*(-h+w);var y=l*o+1.5*s*(-h-w);if(g<0){g=-nr(-g,ur)}else{g=nr(g,ur)}if(y<0){y=-nr(-y,ur)}else{y=nr(y,ur)}var v=(-o-(g+y))/(3*s);if(v>=0&&v<=1){a[c++]=v}}else{var b=(2*l*o-3*s*h)/(2*ar(l*l*l));var _=Math.acos(b)/3;var M=ar(l);var B=Math.cos(_);var v=(-o-2*M*B)/(3*s);var p=(-o+M*(B+Ar*Math.sin(_)))/(3*s);var L=(-o+M*(B-Ar*Math.sin(_)))/(3*s);if(v>=0&&v<=1){a[c++]=v}if(p>=0&&p<=1){a[c++]=p}if(L>=0&&L<=1){a[c++]=L}}}return c}function wr(t,i,e,r,n){var a=6*e-12*i+6*t;var s=9*i+3*r-3*t-9*e;var o=3*i-3*t;var A=0;if(cr(s)){if(vr(a)){var u=-o/a;if(u>=0&&u<=1){n[A++]=u}}}else{var l=a*a-4*s*o;if(cr(l)){n[0]=-a/(2*s)}else if(l>0){var h=ar(l);var u=(-a+h)/(2*s);var f=(-a-h)/(2*s);if(u>=0&&u<=1){n[A++]=u}if(f>=0&&f<=1){n[A++]=f}}}return A}function gr(t,i,e,r,n,a){var s=(i-t)*n+t;var o=(e-i)*n+i;var A=(r-e)*n+e;var u=(o-s)*n+s;var l=(A-o)*n+o;var h=(l-u)*n+u;a[0]=t;a[1]=s;a[2]=u;a[3]=h;a[4]=h;a[5]=l;a[6]=A;a[7]=r}function yr(t,i,e,r,n,a,s,o,A,u,l){var h;var f=.005;var c=Infinity;var v;var d;var m;var p;lr[0]=A;lr[1]=u;for(var w=0;w<1;w+=.05){hr[0]=dr(t,e,n,s,w);hr[1]=dr(i,r,a,o,w);m=wi(lr,hr);if(m<c){h=w;c=m}}c=Infinity;for(var g=0;g<32;g++){if(f<or){break}v=h-f;d=h+f;hr[0]=dr(t,e,n,s,v);hr[1]=dr(i,r,a,o,v);m=wi(hr,lr);if(v>=0&&m<c){h=v;c=m}else{fr[0]=dr(t,e,n,s,d);fr[1]=dr(i,r,a,o,d);p=wi(fr,lr);if(d<=1&&p<c){h=d;c=p}else{f*=.5}}}if(l){l[0]=dr(t,e,n,s,h);l[1]=dr(i,r,a,o,h)}return ar(c)}function br(t,i,e,r,n,a,s,o,A){var u=t;var l=i;var h=0;var f=1/A;for(var c=1;c<=A;c++){var v=c*f;var d=dr(t,e,n,s,v);var m=dr(i,r,a,o,v);var p=d-u;var w=m-l;h+=Math.sqrt(p*p+w*w);u=d;l=m}return h}function _r(t,i,e,r){var n=1-r;return n*(n*t+2*r*i)+r*r*e}function Mr(t,i,e,r){return 2*((1-r)*(i-t)+r*(e-i))}function Br(t,i,e,r,n){var a=t-2*i+e;var s=2*(i-t);var o=t-r;var A=0;if(cr(a)){if(vr(s)){var u=-o/s;if(u>=0&&u<=1){n[A++]=u}}}else{var l=s*s-4*a*o;if(cr(l)){var u=-s/(2*a);if(u>=0&&u<=1){n[A++]=u}}else if(l>0){var h=ar(l);var u=(-s+h)/(2*a);var f=(-s-h)/(2*a);if(u>=0&&u<=1){n[A++]=u}if(f>=0&&f<=1){n[A++]=f}}}return A}function Lr(t,i,e){var r=t+e-2*i;if(r===0){return.5}else{return(t-i)/r}}function kr(t,i,e,r,n){var a=(i-t)*r+t;var s=(e-i)*r+i;var o=(s-a)*r+a;n[0]=t;n[1]=a;n[2]=o;n[3]=o;n[4]=s;n[5]=e}function xr(t,i,e,r,n,a,s,o,A){var u;var l=.005;var h=Infinity;lr[0]=s;lr[1]=o;for(var f=0;f<1;f+=.05){hr[0]=_r(t,e,n,f);hr[1]=_r(i,r,a,f);var c=wi(lr,hr);if(c<h){u=f;h=c}}h=Infinity;for(var v=0;v<32;v++){if(l<or){break}var d=u-l;var m=u+l;hr[0]=_r(t,e,n,d);hr[1]=_r(i,r,a,d);var c=wi(hr,lr);if(d>=0&&c<h){u=d;h=c}else{fr[0]=_r(t,e,n,m);fr[1]=_r(i,r,a,m);var p=wi(fr,lr);if(m<=1&&p<h){u=m;h=p}else{l*=.5}}}if(A){A[0]=_r(t,e,n,u);A[1]=_r(i,r,a,u)}return ar(h)}function Sr(t,i,e,r,n,a,s){var o=t;var A=i;var u=0;var l=1/s;for(var h=1;h<=s;h++){var f=h*l;var c=_r(t,e,n,f);var v=_r(i,r,a,f);var d=c-o;var m=v-A;u+=Math.sqrt(d*d+m*m);o=c;A=v}return u}var Cr=/cubic-bezier\(([0-9,\.e ]+)\)/;function Fr(t){var i=t&&Cr.exec(t);if(i){var e=i[1].split(",");var r=+jt(e[0]);var n=+jt(e[1]);var a=+jt(e[2]);var s=+jt(e[3]);if(isNaN(r+n+a+s)){return}var o=[];return function(t){return t<=0?0:t>=1?1:pr(0,r,a,1,t,o)&&dr(0,n,s,1,o[0])}}}var Qr=function(){function t(t){this._inited=false;this._startTime=0;this._pausedTime=0;this._paused=false;this._life=t.life||1e3;this._delay=t.delay||0;this.loop=t.loop||false;this.onframe=t.onframe||ti;this.ondestroy=t.ondestroy||ti;this.onrestart=t.onrestart||ti;t.easing&&this.setEasing(t.easing)}t.prototype.step=function(t,i){if(!this._inited){this._startTime=t+this._delay;this._inited=true}if(this._paused){this._pausedTime+=i;return}var e=this._life;var r=t-this._startTime-this._pausedTime;var n=r/e;if(n<0){n=0}n=Math.min(n,1);var a=this.easingFunc;var s=a?a(n):n;this.onframe(s);if(n===1){if(this.loop){var o=r%e;this._startTime=t-o;this._pausedTime=0;this.onrestart()}else{return true}}return false};t.prototype.pause=function(){this._paused=true};t.prototype.resume=function(){this._paused=false};t.prototype.setEasing=function(t){this.easing=t;this.easingFunc=Mt(t)?t:rr[t]||Fr(t)};return t}();const Ur=Qr;var Dr=function(){function t(t){this.value=t}return t}();var Yr=function(){function t(){this._len=0}t.prototype.insert=function(t){var i=new Dr(t);this.insertEntry(i);return i};t.prototype.insertEntry=function(t){if(!this.head){this.head=this.tail=t}else{this.tail.next=t;t.prev=this.tail;t.next=null;this.tail=t}this._len++};t.prototype.remove=function(t){var i=t.prev;var e=t.next;if(i){i.next=e}else{this.head=e}if(e){e.prev=i}else{this.tail=i}t.next=t.prev=null;this._len--};t.prototype.len=function(){return this._len};t.prototype.clear=function(){this.head=this.tail=null;this._len=0};return t}();var Tr=function(){function t(t){this._list=new Yr;this._maxSize=10;this._map={};this._maxSize=t}t.prototype.put=function(t,i){var e=this._list;var r=this._map;var n=null;if(r[t]==null){var a=e.len();var s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var o=e.head;e.remove(o);delete r[o.key];n=o.value;this._lastRemovedEntry=o}if(s){s.value=i}else{s=new Dr(i)}s.key=t;e.insertEntry(s);r[t]=s}return n};t.prototype.get=function(t){var i=this._map[t];var e=this._list;if(i!=null){if(i!==e.tail){e.remove(i);e.insertEntry(i)}return i.value}};t.prototype.clear=function(){this._list.clear();this._map={}};t.prototype.len=function(){return this._list.len()};return t}();const Hr=Tr;var Ir={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:[4