HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //var/packages/UniversalViewer/target/dist/assets/index-YsLqbi67.js
import{I as bh,a9 as Ls,d as _0,c as A0,o as vh,u as Yt,r as w0,l as Mb,m as _b,n as Ab,C as Sb}from"../uv.main.XdP33zSa.js";import{b as Cb,u as Ib}from"./usePaperFloat-QHga-gfl.js";import"./ZoomFloatingBar.vue_vue_type_script_setup_true_lang-DOYCzXq-.js";import{D as Pb,U as Tb}from"./store-oqsAjqik.js";import{c as kb}from"./handler-hB-BTHEZ.js";import{c as Lb,u as Db,a as Rb}from"./store-Cp9cHOFm.js";import{P as Ob}from"./handler-Z295YBgO.js";import{M as Nb}from"./item-DBlKVj6T.js";import{a as jb,u as Eb}from"./usePageComponent-vUPIKFpG.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./item-B5SDe0MM.js";import"./handler-CIFn3Nrq.js";import"./officeItem-DyDugwZR.js";import"./blockComponent-eH9nLfFc.js";const{useComponentStore:Zn,useZoomableStore:wh,usePageStore:Mh}=kb("docx"),S0=Lb("docx-password");class ew extends Pb{static itemType=bh.DOCX;_passwordValidator;constructor(qt){super(qt),this._passwordValidator=new Ob(S0)}getInitDataConfig(qt,xr){return{...super.getInitDataConfig(qt,xr),requestImageUrl:Mr=>qt.getImageHandler(Mr)}}getComponentStore(){return Zn()}getZoomableStore(){return wh()}getPageStore(){return Mh()}_switchStateIdle(qt,xr){return this._passwordValidator.switchStateIdle(),super._switchStateIdle(qt,xr)}loadPreview(qt,xr){return this._passwordValidator.validatePassword(xr).then(Mr=>Mr&&this.isIdActive(qt)?xr.handlePreview():null)}}class tw extends Nb{static type=bh.DOCX;static previewableSize=50*1024*1024;static previewableExtensions=["docx","odt"]}var $n={exports:{}};$n.exports;var M0;function Vb(){return M0||(M0=1,function(wr,qt){(()=>{var xr={64806:function(U,C){(function(b){var p=typeof Uint8Array<"u"?Uint8Array:Array;function T(w){var e=w.charCodeAt(0);return e===43||e===45?62:e===47||e===95?63:e<48?-1:e<58?e-48+26+26:e<91?e-65:e<123?e-97+26:void 0}b.toByteArray=function(w){if(w.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e,h,n,t,f,a,y=w.length;f=w.charAt(y-2)==="="?2:+(w.charAt(y-1)==="="),a=new p(3*w.length/4-f),n=f>0?w.length-4:w.length;var g=0;function c(o){a[g++]=o}for(e=0,h=0;e<n;e+=4,h+=3)c((16711680&(t=T(w.charAt(e))<<18|T(w.charAt(e+1))<<12|T(w.charAt(e+2))<<6|T(w.charAt(e+3))))>>16),c((65280&t)>>8),c(255&t);return f===2?c(255&(t=T(w.charAt(e))<<2|T(w.charAt(e+1))>>4)):f===1&&(c((t=T(w.charAt(e))<<10|T(w.charAt(e+1))<<4|T(w.charAt(e+2))>>2)>>8&255),c(255&t)),a},b.fromByteArray=function(w){var e,h,n,t,f=w.length%3,a="";function y(g){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g)}for(h=0,t=w.length-f;h<t;h+=3)a+=y((e=n=(w[h]<<16)+(w[h+1]<<8)+w[h+2])>>18&63)+y(e>>12&63)+y(e>>6&63)+y(63&e);switch(f){case 1:a+=y((n=w[w.length-1])>>2),a+=y(n<<4&63),a+="==";break;case 2:a+=y((n=(w[w.length-2]<<8)+w[w.length-1])>>10),a+=y(n>>4&63),a+=y(n<<2&63),a+="="}return a}})(C)},28548:function(U,C,b){var p=b(98129),T={};for(var w in p)p.hasOwnProperty(w)&&(T[p[w]]=w);var e=U.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var h in e)if(e.hasOwnProperty(h)){if(!("channels"in e[h]))throw Error("missing channels property: "+h);if(!("labels"in e[h]))throw Error("missing channel labels property: "+h);if(e[h].labels.length!==e[h].channels)throw Error("channel and label counts mismatch: "+h);var n=e[h].channels,t=e[h].labels;delete e[h].channels,delete e[h].labels,Object.defineProperty(e[h],"channels",{value:n}),Object.defineProperty(e[h],"labels",{value:t})}e.rgb.hsl=function(f){var a,y,g=f[0]/255,c=f[1]/255,o=f[2]/255,d=Math.min(g,c,o),m=Math.max(g,c,o),_=m-d;return m===d?a=0:g===m?a=(c-o)/_:c===m?a=2+(o-g)/_:o===m&&(a=4+(g-c)/_),(a=Math.min(60*a,360))<0&&(a+=360),y=(d+m)/2,[a,100*(m===d?0:y<=.5?_/(m+d):_/(2-m-d)),100*y]},e.rgb.hsv=function(f){var a,y,g,c,o,d=f[0]/255,m=f[1]/255,_=f[2]/255,M=Math.max(d,m,_),S=M-Math.min(d,m,_),A=function(I){return(M-I)/6/S+.5};return S===0?c=o=0:(o=S/M,a=A(d),y=A(m),g=A(_),d===M?c=g-y:m===M?c=.3333333333333333+a-g:_===M&&(c=.6666666666666666+y-a),c<0?c+=1:c>1&&(c-=1)),[360*c,100*o,100*M]},e.rgb.hwb=function(f){var a=f[0],y=f[1],g=f[2];return[e.rgb.hsl(f)[0],.00392156862745098*Math.min(a,Math.min(y,g))*100,100*(g=1-.00392156862745098*Math.max(a,Math.max(y,g)))]},e.rgb.cmyk=function(f){var a,y=f[0]/255,g=f[1]/255,c=f[2]/255;return a=Math.min(1-y,1-g,1-c),[100*((1-y-a)/(1-a)||0),100*((1-g-a)/(1-a)||0),100*((1-c-a)/(1-a)||0),100*a]},e.rgb.keyword=function(f){var a,y=T[f];if(y)return y;var g=1/0;for(var c in p)if(p.hasOwnProperty(c)){var o=p[c],d=Math.pow(f[0]-o[0],2)+Math.pow(f[1]-o[1],2)+Math.pow(f[2]-o[2],2);d<g&&(g=d,a=c)}return a},e.keyword.rgb=function(f){return p[f]},e.rgb.xyz=function(f){var a=f[0]/255,y=f[1]/255,g=f[2]/255;return[100*(.4124*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.3576*(y=y>.04045?Math.pow((y+.055)/1.055,2.4):y/12.92)+.1805*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)),100*(.2126*a+.7152*y+.0722*g),100*(.0193*a+.1192*y+.9505*g)]},e.rgb.lab=function(f){var a=e.rgb.xyz(f),y=a[0],g=a[1],c=a[2];return y/=95.047,g/=100,c/=108.883,y=y>.008856?Math.pow(y,.3333333333333333):7.787*y+.13793103448275862,[116*(g=g>.008856?Math.pow(g,.3333333333333333):7.787*g+.13793103448275862)-16,500*(y-g),200*(g-(c=c>.008856?Math.pow(c,.3333333333333333):7.787*c+.13793103448275862))]},e.hsl.rgb=function(f){var a,y,g,c,o,d=f[0]/360,m=f[1]/100,_=f[2]/100;if(m===0)return[o=255*_,o,o];y=_<.5?_*(1+m):_+m-_*m,a=2*_-y,c=[0,0,0];for(var M=0;M<3;M++)(g=d+-(.3333333333333333*(M-1)))<0&&g++,g>1&&g--,o=6*g<1?a+(y-a)*6*g:2*g<1?y:3*g<2?a+(y-a)*(.6666666666666666-g)*6:a,c[M]=255*o;return c},e.hsl.hsv=function(f){var a,y=f[0],g=f[1]/100,c=f[2]/100,o=g,d=Math.max(c,.01);return c*=2,g*=c<=1?c:2-c,o*=d<=1?d:2-d,a=(c+g)/2,[y,100*(c===0?2*o/(d+o):2*g/(c+g)),100*a]},e.hsv.rgb=function(f){var a=f[0]/60,y=f[1]/100,g=f[2]/100,c=Math.floor(a)%6,o=a-Math.floor(a),d=255*g*(1-y),m=255*g*(1-y*o),_=255*g*(1-y*(1-o));switch(g*=255,c){case 0:return[g,_,d];case 1:return[m,g,d];case 2:return[d,g,_];case 3:return[d,m,g];case 4:return[_,d,g];case 5:return[g,d,m]}},e.hsv.hsl=function(f){var a,y,g=f[0],c=f[1]/100,o=f[2]/100,d=Math.max(o,.01);return y=(2-c)*o,a=(2-c)*d,[g,100*(c*d/(a<=1?a:2-a)||0),100*(y/=2)]},e.hwb.rgb=function(f){var a,y,g,c,o,d,m,_=f[0]/360,M=f[1]/100,S=f[2]/100,A=M+S;switch(A>1&&(M/=A,S/=A),a=Math.floor(6*_),y=1-S,g=6*_-a,(1&a)!=0&&(g=1-g),c=M+g*(y-M),a){default:case 6:case 0:o=y,d=c,m=M;break;case 1:o=c,d=y,m=M;break;case 2:o=M,d=y,m=c;break;case 3:o=M,d=c,m=y;break;case 4:o=c,d=M,m=y;break;case 5:o=y,d=M,m=c}return[255*o,255*d,255*m]},e.cmyk.rgb=function(f){var a=f[0]/100,y=f[1]/100,g=f[2]/100,c=f[3]/100;return[255*(1-Math.min(1,a*(1-c)+c)),255*(1-Math.min(1,y*(1-c)+c)),255*(1-Math.min(1,g*(1-c)+c))]},e.xyz.rgb=function(f){var a,y,g,c=f[0]/100,o=f[1]/100,d=f[2]/100;return a=3.2406*c+-1.5372*o+-.4986*d,y=-.9689*c+1.8758*o+.0415*d,g=.0557*c+-.204*o+1.057*d,a=a>.0031308?1.055*Math.pow(a,.4166666666666667)-.055:12.92*a,y=y>.0031308?1.055*Math.pow(y,.4166666666666667)-.055:12.92*y,g=g>.0031308?1.055*Math.pow(g,.4166666666666667)-.055:12.92*g,[255*(a=Math.min(Math.max(0,a),1)),255*(y=Math.min(Math.max(0,y),1)),255*(g=Math.min(Math.max(0,g),1))]},e.xyz.lab=function(f){var a=f[0],y=f[1],g=f[2];return a/=95.047,y/=100,g/=108.883,a=a>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862,[116*(y=y>.008856?Math.pow(y,.3333333333333333):7.787*y+.13793103448275862)-16,500*(a-y),200*(y-(g=g>.008856?Math.pow(g,.3333333333333333):7.787*g+.13793103448275862))]},e.lab.xyz=function(f){var a,y,g,c=f[0],o=f[1],d=f[2];a=o/500+(y=(c+16)/116),g=y-d/200;var m=Math.pow(y,3),_=Math.pow(a,3),M=Math.pow(g,3);return y=(m>.008856?m:(y-.13793103448275862)/7.787)*100,[a=(_>.008856?_:(a-.13793103448275862)/7.787)*95.047,y,g=(M>.008856?M:(g-.13793103448275862)/7.787)*108.883]},e.lab.lch=function(f){var a,y=f[0],g=f[1],c=f[2];return(a=360*Math.atan2(c,g)/2/Math.PI)<0&&(a+=360),[y,Math.sqrt(g*g+c*c),a]},e.lch.lab=function(f){var a,y=f[0],g=f[1];return[y,g*Math.cos(a=f[2]/360*2*Math.PI),g*Math.sin(a)]},e.rgb.ansi16=function(f){var a=f[0],y=f[1],g=f[2],c=1 in arguments?arguments[1]:e.rgb.hsv(f)[2];if((c=Math.round(c/50))===0)return 30;var o=30+(Math.round(g/255)<<2|Math.round(y/255)<<1|Math.round(a/255));return c===2&&(o+=60),o},e.hsv.ansi16=function(f){return e.rgb.ansi16(e.hsv.rgb(f),f[2])},e.rgb.ansi256=function(f){var a=f[0],y=f[1],g=f[2];return a===y&&y===g?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(y/255*5)+Math.round(g/255*5)},e.ansi16.rgb=function(f){var a=f%10;if(a===0||a===7)return f>50&&(a+=3.5),[a=a/10.5*255,a,a];var y=(~~(f>50)+1)*.5;return[(1&a)*y*255,(a>>1&1)*y*255,(a>>2&1)*y*255]},e.ansi256.rgb=function(f){if(f>=232){var a,y=(f-232)*10+8;return[y,y,y]}return[Math.floor((f-=16)/36)/5*255,Math.floor((a=f%36)/6)/5*255,a%6/5*255]},e.rgb.hex=function(f){var a=(((255&Math.round(f[0]))<<16)+((255&Math.round(f[1]))<<8)+(255&Math.round(f[2]))).toString(16).toUpperCase();return"000000".substring(a.length)+a},e.hex.rgb=function(f){var a=f.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!a)return[0,0,0];var y=a[0];a[0].length===3&&(y=y.split("").map(function(c){return c+c}).join(""));var g=parseInt(y,16);return[g>>16&255,g>>8&255,255&g]},e.rgb.hcg=function(f){var a,y=f[0]/255,g=f[1]/255,c=f[2]/255,o=Math.max(Math.max(y,g),c),d=Math.min(Math.min(y,g),c),m=o-d;return a=m<1?d/(1-m):0,[360*((m<=0?0:o===y?(g-c)/m%6:o===g?2+(c-y)/m:4+(y-g)/m+4)/6%1),100*m,100*a]},e.hsl.hcg=function(f){var a=f[1]/100,y=f[2]/100,g=1,c=0;return(g=y<.5?2*a*y:2*a*(1-y))<1&&(c=(y-.5*g)/(1-g)),[f[0],100*g,100*c]},e.hsv.hcg=function(f){var a=f[1]/100,y=f[2]/100,g=a*y,c=0;return g<1&&(c=(y-g)/(1-g)),[f[0],100*g,100*c]},e.hcg.rgb=function(f){var a=f[0]/360,y=f[1]/100,g=f[2]/100;if(y===0)return[255*g,255*g,255*g];var c=[0,0,0],o=a%1*6,d=o%1,m=1-d,_=0;switch(Math.floor(o)){case 0:c[0]=1,c[1]=d,c[2]=0;break;case 1:c[0]=m,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=d;break;case 3:c[0]=0,c[1]=m,c[2]=1;break;case 4:c[0]=d,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=m}return _=(1-y)*g,[(y*c[0]+_)*255,(y*c[1]+_)*255,(y*c[2]+_)*255]},e.hcg.hsv=function(f){var a=f[1]/100,y=a+f[2]/100*(1-a),g=0;return y>0&&(g=a/y),[f[0],100*g,100*y]},e.hcg.hsl=function(f){var a=f[1]/100,y=f[2]/100*(1-a)+.5*a,g=0;return y>0&&y<.5?g=a/(2*y):y>=.5&&y<1&&(g=a/(2*(1-y))),[f[0],100*g,100*y]},e.hcg.hwb=function(f){var a=f[1]/100,y=a+f[2]/100*(1-a);return[f[0],(y-a)*100,(1-y)*100]},e.hwb.hcg=function(f){var a=f[1]/100,y=1-f[2]/100,g=y-a,c=0;return g<1&&(c=(y-g)/(1-g)),[f[0],100*g,100*c]},e.apple.rgb=function(f){return[f[0]/65535*255,f[1]/65535*255,f[2]/65535*255]},e.rgb.apple=function(f){return[f[0]/255*65535,f[1]/255*65535,f[2]/255*65535]},e.gray.rgb=function(f){return[f[0]/100*255,f[0]/100*255,f[0]/100*255]},e.gray.hsl=e.gray.hsv=function(f){return[0,0,f[0]]},e.gray.hwb=function(f){return[0,100,f[0]]},e.gray.cmyk=function(f){return[0,0,0,f[0]]},e.gray.lab=function(f){return[f[0],0,0]},e.gray.hex=function(f){var a=255&Math.round(f[0]/100*255),y=((a<<16)+(a<<8)+a).toString(16).toUpperCase();return"000000".substring(y.length)+y},e.rgb.gray=function(f){return[(f[0]+f[1]+f[2])/3/255*100]}},54790:function(U,C,b){var p=b(28548),T=b(47071),w={};Object.keys(p).forEach(function(e){w[e]={},Object.defineProperty(w[e],"channels",{value:p[e].channels}),Object.defineProperty(w[e],"labels",{value:p[e].labels});var h=T(e);Object.keys(h).forEach(function(n){var t,f,a=h[n];w[e][n]=(t=function(y){if(y==null)return y;arguments.length>1&&(y=Array.prototype.slice.call(arguments));var g=a(y);if(typeof g=="object")for(var c=g.length,o=0;o<c;o++)g[o]=Math.round(g[o]);return g},"conversion"in a&&(t.conversion=a.conversion),t),w[e][n].raw=(f=function(y){return y==null?y:(arguments.length>1&&(y=Array.prototype.slice.call(arguments)),a(y))},"conversion"in a&&(f.conversion=a.conversion),f)})}),U.exports=w},47071:function(U,C,b){var p=b(28548);U.exports=function(T){for(var w=function(a){var y=function(){for(var S={},A=Object.keys(p),I=A.length,k=0;k<I;k++)S[A[k]]={distance:-1,parent:null};return S}(),g=[a];for(y[a].distance=0;g.length;)for(var c=g.pop(),o=Object.keys(p[c]),d=o.length,m=0;m<d;m++){var _=o[m],M=y[_];M.distance===-1&&(M.distance=y[c].distance+1,M.parent=c,g.unshift(_))}return y}(T),e={},h=Object.keys(w),n=h.length,t=0;t<n;t++){var f=h[t];w[f].parent!==null&&(e[f]=function(a,y){for(var g=[y[a].parent,a],c=p[y[a].parent][a],o=y[a].parent;y[o].parent;)g.unshift(y[o].parent),c=function(d,m){return function(_){return m(d(_))}}(p[y[o].parent][o],c),o=y[o].parent;return c.conversion=g,c}(f,w))}return e}},98129:function(U){U.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},66011:function(U){U.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},63711:function(U,C,b){var p=b(66011),T=b(6890),w=Object.hasOwnProperty,e=Object.create(null);for(var h in p)w.call(p,h)&&(e[p[h]]=h);var n=U.exports={to:{},get:{}};function t(a,y,g){return Math.min(Math.max(y,a),g)}function f(a){var y=Math.round(a).toString(16).toUpperCase();return y.length<2?"0"+y:y}n.get=function(a){var y,g;switch(a.substring(0,3).toLowerCase()){case"hsl":y=n.get.hsl(a),g="hsl";break;case"hwb":y=n.get.hwb(a),g="hwb";break;default:y=n.get.rgb(a),g="rgb"}return y?{model:g,value:y}:null},n.get.rgb=function(a){if(!a)return null;var y,g,c,o=[0,0,0,1];if(y=a.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(g=0,c=y[2],y=y[1];g<3;g++){var d=2*g;o[g]=parseInt(y.slice(d,d+2),16)}c&&(o[3]=parseInt(c,16)/255)}else if(y=a.match(/^#([a-f0-9]{3,4})$/i)){for(g=0,c=(y=y[1])[3];g<3;g++)o[g]=parseInt(y[g]+y[g],16);c&&(o[3]=parseInt(c+c,16)/255)}else if(y=a.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(g=0;g<3;g++)o[g]=parseInt(y[g+1],0);y[4]&&(y[5]?o[3]=.01*parseFloat(y[4]):o[3]=parseFloat(y[4]))}else if(y=a.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(g=0;g<3;g++)o[g]=Math.round(2.55*parseFloat(y[g+1]));y[4]&&(y[5]?o[3]=.01*parseFloat(y[4]):o[3]=parseFloat(y[4]))}else return(y=a.match(/^(\w+)$/))?y[1]==="transparent"?[0,0,0,0]:w.call(p,y[1])?((o=p[y[1]])[3]=1,o):null:null;for(g=0;g<3;g++)o[g]=t(o[g],0,255);return o[3]=t(o[3],0,1),o},n.get.hsl=function(a){if(!a)return null;var y=a.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(y){var g=parseFloat(y[4]);return[(parseFloat(y[1])%360+360)%360,t(parseFloat(y[2]),0,100),t(parseFloat(y[3]),0,100),t(isNaN(g)?1:g,0,1)]}return null},n.get.hwb=function(a){if(!a)return null;var y=a.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(y){var g=parseFloat(y[4]);return[(parseFloat(y[1])%360+360)%360,t(parseFloat(y[2]),0,100),t(parseFloat(y[3]),0,100),t(isNaN(g)?1:g,0,1)]}return null},n.to.hex=function(){var a=T(arguments);return"#"+f(a[0])+f(a[1])+f(a[2])+(a[3]<1?f(Math.round(255*a[3])):"")},n.to.rgb=function(){var a=T(arguments);return a.length<4||a[3]===1?"rgb("+Math.round(a[0])+", "+Math.round(a[1])+", "+Math.round(a[2])+")":"rgba("+Math.round(a[0])+", "+Math.round(a[1])+", "+Math.round(a[2])+", "+a[3]+")"},n.to.rgb.percent=function(){var a=T(arguments),y=Math.round(a[0]/255*100),g=Math.round(a[1]/255*100),c=Math.round(a[2]/255*100);return a.length<4||a[3]===1?"rgb("+y+"%, "+g+"%, "+c+"%)":"rgba("+y+"%, "+g+"%, "+c+"%, "+a[3]+")"},n.to.hsl=function(){var a=T(arguments);return a.length<4||a[3]===1?"hsl("+a[0]+", "+a[1]+"%, "+a[2]+"%)":"hsla("+a[0]+", "+a[1]+"%, "+a[2]+"%, "+a[3]+")"},n.to.hwb=function(){var a=T(arguments),y="";return a.length>=4&&a[3]!==1&&(y=", "+a[3]),"hwb("+a[0]+", "+a[1]+"%, "+a[2]+"%"+y+")"},n.to.keyword=function(a){return e[a.slice(0,3)]}},52250:function(U,C,b){var p=b(63711),T=b(54790),w=[].slice,e=["keyword","gray","hex"],h={};Object.keys(T).forEach(function(g){h[w.call(T[g].labels).sort().join("")]=g});var n={};function t(g,c){if(!(this instanceof t))return new t(g,c);if(c&&c in e&&(c=null),c&&!(c in T))throw Error("Unknown model: "+c);if(g==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(g instanceof t)this.model=g.model,this.color=g.color.slice(),this.valpha=g.valpha;else if(typeof g=="string"){var o,d,m=p.get(g);if(m===null)throw Error("Unable to parse color from string: "+g);this.model=m.model,d=T[this.model].channels,this.color=m.value.slice(0,d),this.valpha=typeof m.value[d]=="number"?m.value[d]:1}else if(g.length){this.model=c||"rgb",d=T[this.model].channels;var _=w.call(g,0,d);this.color=y(_,d),this.valpha=typeof g[d]=="number"?g[d]:1}else if(typeof g=="number")g&=16777215,this.model="rgb",this.color=[g>>16&255,g>>8&255,255&g],this.valpha=1;else{this.valpha=1;var M=Object.keys(g);"alpha"in g&&(M.splice(M.indexOf("alpha"),1),this.valpha=typeof g.alpha=="number"?g.alpha:0);var S=M.sort().join("");if(!(S in h))throw Error("Unable to parse color from object: "+JSON.stringify(g));this.model=h[S];var A=T[this.model].labels,I=[];for(o=0;o<A.length;o++)I.push(g[A[o]]);this.color=y(I)}if(n[this.model])for(o=0,d=T[this.model].channels;o<d;o++){var k=n[this.model][o];k&&(this.color[o]=k(this.color[o]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function f(g,c,o){return(g=Array.isArray(g)?g:[g]).forEach(function(d){(n[d]||(n[d]=[]))[c]=o}),g=g[0],function(d){var m;return arguments.length?(o&&(d=o(d)),(m=this[g]()).color[c]=d):(m=this[g]().color[c],o&&(m=o(m))),m}}function a(g){return function(c){return Math.max(0,Math.min(g,c))}}function y(g,c){for(var o=0;o<c;o++)typeof g[o]!="number"&&(g[o]=0);return g}t.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(g){var c=this.model in p.to?this:this.rgb(),o=(c=c.round(typeof g=="number"?g:1)).valpha===1?c.color:c.color.concat(this.valpha);return p.to[c.model](o)},percentString:function(g){var c=this.rgb().round(typeof g=="number"?g:1),o=c.valpha===1?c.color:c.color.concat(this.valpha);return p.to.rgb.percent(o)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var g={},c=T[this.model].channels,o=T[this.model].labels,d=0;d<c;d++)g[o[d]]=this.color[d];return this.valpha!==1&&(g.alpha=this.valpha),g},unitArray:function(){var g=this.rgb().color;return g[0]/=255,g[1]/=255,g[2]/=255,this.valpha!==1&&g.push(this.valpha),g},unitObject:function(){var g=this.rgb().object();return g.r/=255,g.g/=255,g.b/=255,this.valpha!==1&&(g.alpha=this.valpha),g},round:function(g){var c;return g=Math.max(g||0,0),new t(this.color.map((c=g,function(o){return Number(o.toFixed(c))})).concat(this.valpha),this.model)},alpha:function(g){return arguments.length?new t(this.color.concat(Math.max(0,Math.min(1,g))),this.model):this.valpha},red:f("rgb",0,a(255)),green:f("rgb",1,a(255)),blue:f("rgb",2,a(255)),hue:f(["hsl","hsv","hsl","hwb","hcg"],0,function(g){return(g%360+360)%360}),saturationl:f("hsl",1,a(100)),lightness:f("hsl",2,a(100)),saturationv:f("hsv",1,a(100)),value:f("hsv",2,a(100)),chroma:f("hcg",1,a(100)),gray:f("hcg",2,a(100)),white:f("hwb",1,a(100)),wblack:f("hwb",2,a(100)),cyan:f("cmyk",0,a(100)),magenta:f("cmyk",1,a(100)),yellow:f("cmyk",2,a(100)),black:f("cmyk",3,a(100)),x:f("xyz",0,a(100)),y:f("xyz",1,a(100)),z:f("xyz",2,a(100)),l:f("lab",0,a(100)),a:f("lab",1),b:f("lab",2),keyword:function(g){return arguments.length?new t(g):T[this.model].keyword(this.color)},hex:function(g){return arguments.length?new t(g):p.to.hex(this.rgb().round().color)},rgbNumber:function(){var g=this.rgb().color;return(255&g[0])<<16|(255&g[1])<<8|255&g[2]},luminosity:function(){for(var g=this.rgb().color,c=[],o=0;o<g.length;o++){var d=g[o]/255;c[o]=d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)}return .2126*c[0]+.7152*c[1]+.0722*c[2]},contrast:function(g){var c=this.luminosity(),o=g.luminosity();return c>o?(c+.05)/(o+.05):(o+.05)/(c+.05)},level:function(g){var c=this.contrast(g);return c>=7.1?"AAA":c>=4.5?"AA":""},isDark:function(){var g=this.rgb().color;return(299*g[0]+587*g[1]+114*g[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var g=this.rgb(),c=0;c<3;c++)g.color[c]=255-g.color[c];return g},lighten:function(g){var c=this.hsl();return c.color[2]+=c.color[2]*g,c},darken:function(g){var c=this.hsl();return c.color[2]-=c.color[2]*g,c},saturate:function(g){var c=this.hsl();return c.color[1]+=c.color[1]*g,c},desaturate:function(g){var c=this.hsl();return c.color[1]-=c.color[1]*g,c},whiten:function(g){var c=this.hwb();return c.color[1]+=c.color[1]*g,c},blacken:function(g){var c=this.hwb();return c.color[2]+=c.color[2]*g,c},grayscale:function(){var g=this.rgb().color,c=.3*g[0]+.59*g[1]+.11*g[2];return t.rgb(c,c,c)},fade:function(g){return this.alpha(this.valpha-this.valpha*g)},opaquer:function(g){return this.alpha(this.valpha+this.valpha*g)},rotate:function(g){var c=this.hsl(),o=c.color[0];return o=(o=(o+g)%360)<0?360+o:o,c.color[0]=o,c},mix:function(g,c){if(!g||!g.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof g);var o=g.rgb(),d=this.rgb(),m=c===void 0?.5:c,_=2*m-1,M=o.alpha()-d.alpha(),S=((_*M==-1?_:(_+M)/(1+_*M))+1)/2,A=1-S;return t.rgb(S*o.red()+A*d.red(),S*o.green()+A*d.green(),S*o.blue()+A*d.blue(),o.alpha()*m+d.alpha()*(1-m))}},Object.keys(T).forEach(function(g){if(e.indexOf(g)===-1){var c=T[g].channels;t.prototype[g]=function(){if(this.model===g)return new t(this);if(arguments.length)return new t(arguments,g);var o,d=typeof arguments[c]=="number"?c:this.valpha;return new t((Array.isArray(o=T[this.model][g].raw(this.color))?o:[o]).concat(d),g)},t[g]=function(o){return typeof o=="number"&&(o=y(w.call(arguments),c)),new t(o,g)}}}),U.exports=t},13546:function(U,C,b){var p=b(87930);(function(){for(var w in p){if(p==null||!p.hasOwnProperty(w)||w==="default"||w==="__esModule")return;C[w]=p[w]}})();var T=b(20297);(function(){for(var w in T){if(T==null||!T.hasOwnProperty(w)||w==="default"||w==="__esModule")return;C[w]=T[w]}})(),b(22253),b(5921),b(31474),b(25997),b(37679),b(99264),b(78645),b(80942),b(64219),b(62147),b(59060),b(53514),b(91066),b(55666),b(43732),b(69963),b(97215),b(12810),b(67881),b(13875),b(4380),b(76954),b(35979),b(92576),b(93754),b(28838),b(14723),b(81819),b(30196),b(50682),b(52420),b(11818),b(17447),b(72017),b(67215),b(41473),b(96307),b(20361),b(36570),b(84290),b(56910),b(21836),b(50837),b(38801)},17234:function(U,C,b){var p=b(23405),T={};function w(){this._coordinateSystems=[]}w.prototype={constructor:w,create:function(e,h){var n=[];p.each(T,function(t,f){var a=t.create(e,h);n=n.concat(a||[])}),this._coordinateSystems=n},update:function(e,h){p.each(this._coordinateSystems,function(n){n.update&&n.update(e,h)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},w.register=function(e,h){T[e]=h},w.get=function(e){return T[e]},U.exports=w},60089:function(U,C,b){var p=b(23405),T=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];U.exports=function(w){p.each(T,function(e){this[e]=p.bind(w[e],w)},this)}},60461:function(U,C,b){var p=b(87930),T=b(23405);U.exports=function(w,e){T.each(e,function(h){h.update="updateView",p.registerAction(h,function(n,t){var f={};return t.eachComponent({mainType:"series",subType:w,query:n},function(a){a[h.method]&&a[h.method](n.name,n.dataIndex);var y=a.getData();y.each(function(g){var c=y.getName(g);f[c]=a.isSelected(c)||!1})}),{name:n.name,selected:f}})})}},65981:function(U,C,b){var p=b(87930),T=b(23405),w=b(7207).updateCenterAndZoom;p.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,h){var n=e.componentType||"series";h.eachComponent({mainType:n,query:e},function(t){var f=t.coordinateSystem;if(f.type==="geo"){var a=w(f,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),n==="series"&&T.each(t.seriesGroup,function(y){y.setCenter(a.center),y.setZoom(a.zoom)})}})})},7207:function(U,C){C.updateCenterAndZoom=function(b,p,T){var w=b.getZoom(),e=b.getCenter(),h=p.zoom,n=b.dataToPoint(e);if(p.dx!=null&&p.dy!=null){n[0]-=p.dx,n[1]-=p.dy;var e=b.pointToData(n);b.setCenter(e)}if(h!=null){if(T){var t=T.min||0;h=Math.max(Math.min(w*h,T.max||1/0),t)/w}b.scale[0]*=h,b.scale[1]*=h;var f=b.position,a=(p.originX-f[0])*(h-1),y=(p.originY-f[1])*(h-1);f[0]-=a,f[1]-=y,b.updateTransform();var e=b.pointToData(n);b.setCenter(e),b.setZoom(h*w)}return{center:b.getCenter(),zoom:b.getZoom()}}},31474:function(U,C,b){var p=b(87930),T=b(23405),w=b(76918),e=w.layout,h=w.largeLayout;b(72768),b(3704),b(72627),b(97035),p.registerLayout(T.curry(e,"bar")),p.registerLayout(h),p.registerVisual({seriesType:"bar",reset:function(n){n.getData().setVisual("legendSymbol","roundRect")}})},3704:function(U,C,b){U.exports=b(95512).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var p=this.get("progressiveThreshold"),T=this.get("largeThreshold");return T>p&&(p=T),p}})},72627:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(51747),e=b(31535).setLabel,h=b(46082),n=b(36096),t=b(74582),f=["itemStyle","barBorderWidth"];T.extend(h.prototype,n);var a=p.extendChartView({type:"bar",render:function(M,S,A){this._updateDrawMode(M);var I=M.get("coordinateSystem");return(I==="cartesian2d"||I==="polar")&&(this._isLargeDraw?this._renderLarge(M,S,A):this._renderNormal(M,S,A)),this.group},incrementalPrepareRender:function(M,S,A){this._clear(),this._updateDrawMode(M)},incrementalRender:function(M,S,A,I){this._incrementalRenderLarge(M,S)},_updateDrawMode:function(M){var S=M.pipelineContext.large;(this._isLargeDraw==null||S^this._isLargeDraw)&&(this._isLargeDraw=S,this._clear())},_renderNormal:function(M,S,A){var I,k=this.group,D=M.getData(),L=this._data,R=M.coordinateSystem,O=R.getBaseAxis();R.type==="cartesian2d"?I=O.isHorizontal():R.type==="polar"&&(I=O.dim==="angle");var N=M.isAnimationEnabled()?M:null;D.diff(L).add(function(z){if(D.hasValue(z)){var V=D.getItemModel(z),B=o[R.type](D,z,V),G=y[R.type](D,z,V,B,I,N);D.setItemGraphicEl(z,G),k.add(G),d(G,D,z,V,B,M,I,R.type==="polar")}}).update(function(z,V){var B=L.getItemGraphicEl(V);if(!D.hasValue(z))return void k.remove(B);var G=D.getItemModel(z),E=o[R.type](D,z,G);B?w.updateProps(B,{shape:E},N,z):B=y[R.type](D,z,G,E,I,N,!0),D.setItemGraphicEl(z,B),k.add(B),d(B,D,z,G,E,M,I,R.type==="polar")}).remove(function(z){var V=L.getItemGraphicEl(z);R.type==="cartesian2d"?V&&g(z,N,V):V&&c(z,N,V)}).execute(),this._data=D},_renderLarge:function(M,S,A){this._clear(),_(M,this.group)},_incrementalRenderLarge:function(M,S){_(S,this.group,!0)},dispose:T.noop,remove:function(M){this._clear(M)},_clear:function(M){var S=this.group,A=this._data;M&&M.get("animation")&&A&&!this._isLargeDraw?A.eachItemGraphicEl(function(I){I.type==="sector"?c(I.dataIndex,M,I):g(I.dataIndex,M,I)}):S.removeAll(),this._data=null}}),y={cartesian2d:function(M,S,A,I,k,D,L){var R=new w.Rect({shape:T.extend({},I)});if(D){var O=R.shape,N=k?"height":"width",z={};O[N]=0,z[N]=I[N],w[L?"updateProps":"initProps"](R,{shape:z},D,S)}return R},polar:function(M,S,A,I,k,D,L){var R=I.startAngle<I.endAngle,O=new w.Sector({shape:T.defaults({clockwise:R},I)});if(D){var N=O.shape,z=k?"r":"endAngle",V={};N[z]=k?0:I.startAngle,V[z]=I[z],w[L?"updateProps":"initProps"](O,{shape:V},D,S)}return O}};function g(M,S,A){A.style.text=null,w.updateProps(A,{shape:{width:0}},S,M,function(){A.parent&&A.parent.remove(A)})}function c(M,S,A){A.style.text=null,w.updateProps(A,{shape:{r:A.shape.r0}},S,M,function(){A.parent&&A.parent.remove(A)})}var o={cartesian2d:function(M,S,A){var I,k,D=M.getItemLayout(S),L=(I=A,k=D,Math.min(I.get(f)||0,Math.abs(k.width),Math.abs(k.height))),R=D.width>0?1:-1,O=D.height>0?1:-1;return{x:D.x+R*L/2,y:D.y+O*L/2,width:D.width-R*L,height:D.height-O*L}},polar:function(M,S,A){var I=M.getItemLayout(S);return{cx:I.cx,cy:I.cy,r0:I.r0,r:I.r,startAngle:I.startAngle,endAngle:I.endAngle}}};function d(M,S,A,I,k,D,L,R){var O=S.getItemVisual(A,"color"),N=S.getItemVisual(A,"opacity"),z=I.getModel("itemStyle"),V=I.getModel("emphasis.itemStyle").getBarItemStyle();R||M.setShape("r",z.get("barBorderRadius")||0),M.useStyle(T.defaults({fill:O,opacity:N},z.getBarItemStyle()));var B=I.getShallow("cursor");B&&M.attr("cursor",B);var G=L?k.height>0?"bottom":"top":k.width>0?"left":"right";R||e(M.style,V,I,O,D,A,G),w.setHoverStyle(M,V)}var m=t.extend({type:"largeBar",shape:{points:[]},buildPath:function(M,S){for(var A=S.points,I=this.__startPoint,k=this.__valueIdx,D=0;D<A.length;D+=2)I[this.__valueIdx]=A[D+k],M.moveTo(I[0],I[1]),M.lineTo(A[D],A[D+1])}});function _(M,S,A){var I,k,D,L,R,O=M.getData(),N=[],z=+!!O.getLayout("valueAxisHorizontal");N[1-z]=O.getLayout("valueAxisStart");var V=new m({shape:{points:O.getLayout("largePoints")},incremental:!!A,__startPoint:N,__valueIdx:z});S.add(V),I=V,k=M,L=(D=O).getVisual("borderColor")||D.getVisual("color"),R=k.getModel("itemStyle").getItemStyle(["color","borderColor"]),I.useStyle(R),I.style.fill=null,I.style.stroke=L,I.style.lineWidth=D.getLayout("barWidth")}U.exports=a},95512:function(U,C,b){var p=b(95166),T=b(74107);U.exports=p.extend({type:"series.__base_bar__",getInitialData:function(w,e){return T(this.getSource(),this)},getMarkerPosition:function(w){var e=this.coordinateSystem;if(e){var h=e.dataToPoint(e.clampData(w)),n=this.getData(),t=n.getLayout("offset"),f=n.getLayout("size"),a=+!e.getBaseAxis().isHorizontal();return h[a]+=t+f/2,h}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}})},73202:function(U,C,b){var p=b(95512).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(T){return T.stack=null,p.superApply(this,"getInitialData",arguments)}});U.exports=p},16044:function(U,C,b){var p=b(87930),T=b(23405),w=b(51747),e=b(30696).createSymbol,h=b(54684),n=h.parsePercent,t=h.isNumeric,f=b(31535).setLabel,a=["itemStyle","borderWidth"],y=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],g=new w.Circle;function c(G,E,H,W){var $,Z,Q,Y,K,ne,X,ee,ae,oe,se,ge,fe,le,ue,he,pe,ye,ve,Ae,_e=G.getItemLayout(E),Pe=H.get("symbolRepeat"),Oe=H.get("symbolClip"),ke=H.get("symbolPosition")||"start",De=(H.get("symbolRotate")||0)*Math.PI/180||0,Ce=H.get("symbolPatternSize")||2,Le=H.isAnimationEnabled(),Ve={dataIndex:E,layout:_e,itemModel:H,symbolType:G.getItemVisual(E,"symbol")||"circle",color:G.getItemVisual(E,"color"),symbolClip:Oe,symbolRepeat:Pe,symbolRepeatDirection:H.get("symbolRepeatDirection"),symbolPatternSize:Ce,rotation:De,animationModel:Le?H:null,hoverAnimation:Le&&H.get("hoverAnimation"),z2:H.getShallow("z",!0)||0};(function(rt,it,mt,ct,et){var Ke,ft=ct.valueDim,at=rt.get("symbolBoundingData"),nt=ct.coordSys.getOtherAxis(ct.coordSys.getBaseAxis()),yt=nt.toGlobalCoord(nt.dataToCoord(0)),dt=1-+(mt[ft.wh]<=0);if(T.isArray(at)){var bt=[o(nt,at[0])-yt,o(nt,at[1])-yt];bt[1]<bt[0]&&bt.reverse(),Ke=bt[dt]}else Ke=at!=null?o(nt,at)-yt:it?ct.coordSysExtent[ft.index][dt]-yt:mt[ft.wh];et.boundingLength=Ke,it&&(et.repeatCutLength=mt[ft.wh]),et.pxSign=Ke>0?1:Ke<0?-1:0})(H,Pe,_e,W,Ve),$=G,Z=E,Q=_e,Y=Pe,K=Ve.boundingLength,ne=Ve.pxSign,X=Ce,ee=W,ae=Ve,oe=ee.valueDim,ge=Math.abs(Q[(se=ee.categoryDim).wh]),fe=$.getItemVisual(Z,"symbolSize"),T.isArray(fe)?fe=fe.slice():(fe==null&&(fe="100%"),fe=[fe,fe]),fe[se.index]=n(fe[se.index],ge),fe[oe.index]=n(fe[oe.index],Y?ge:Math.abs(K)),ae.symbolSize=fe,le=ae.symbolScale=[fe[0]/X,fe[1]/X],le[oe.index]*=(ee.isHorizontal?-1:1)*ne,ue=H,he=Ve.symbolScale,pe=De,ye=W,ve=Ve,(Ae=ue.get(a)||0)&&(g.attr({scale:he.slice(),rotation:pe}),g.updateTransform(),Ae/=g.getLineScale(),Ae*=he[ye.valueDim.index]),ve.valueLineWidth=Ae;var Ge=Ve.symbolSize,Je=H.get("symbolOffset");return T.isArray(Je)&&(Je=[n(Je[0],Ge[0]),n(Je[1],Ge[1])]),function(rt,it,mt,ct,et,Ke,ft,at,nt,yt,dt,bt){var vt=dt.categoryDim,me=dt.valueDim,Ie=bt.pxSign,Ee=Math.max(it[me.index]+at,0),je=Ee;if(ct){var ze=Math.abs(nt),Fe=T.retrieve(rt.get("symbolMargin"),"15%")+"",He=!1;Fe.lastIndexOf("!")===Fe.length-1&&(He=!0,Fe=Fe.slice(0,Fe.length-1));var $e=Math.max(Ee+2*(Fe=n(Fe,it[me.index])),0),We=He?0:2*Fe,qe=t(ct),Ye=qe?ct:B((ze+We)/$e);Fe=(ze-Ye*Ee)/2/(He?Ye:Ye-1),$e=Ee+2*Fe,We=He?0:2*Fe,qe||ct==="fixed"||(Ye=yt?B((Math.abs(yt)+We)/$e):0),je=Ye*$e-We,bt.repeatTimes=Ye,bt.symbolMargin=Fe}var st=je/2*Ie,pt=bt.pathPosition=[];pt[vt.index]=mt[vt.wh]/2,pt[me.index]=ft==="start"?st:ft==="end"?nt-st:nt/2,Ke&&(pt[0]+=Ke[0],pt[1]+=Ke[1]);var _t=bt.bundlePosition=[];_t[vt.index]=mt[vt.xy],_t[me.index]=mt[me.xy];var Ot=bt.barRectShape=T.extend({},mt);Ot[me.wh]=Ie*Math.max(Math.abs(mt[me.wh]),Math.abs(pt[me.index]+st)),Ot[vt.wh]=mt[vt.wh];var Nt=bt.clipShape={};Nt[vt.xy]=-mt[vt.xy],Nt[vt.wh]=dt.ecSize[vt.wh],Nt[me.xy]=0,Nt[me.wh]=mt[me.wh]}(H,Ge,_e,Pe,0,Je,ke,Ve.valueLineWidth,Ve.boundingLength,Ve.repeatCutLength,W,Ve),Ve}function o(G,E){return G.toGlobalCoord(G.dataToCoord(G.scale.parse(E)))}function d(G){var E=G.symbolPatternSize,H=e(G.symbolType,-E/2,-E/2,E,E,G.color);return H.attr({culling:!0}),H.type!=="image"&&H.setStyle({strokeNoScale:!0}),H}function m(G,E,H,W){var $=G.__pictorialBundle,Z=H.symbolSize,Q=H.valueLineWidth,Y=H.pathPosition,K=E.valueDim,ne=H.repeatTimes||0,X=0,ee=Z[E.valueDim.index]+Q+2*H.symbolMargin;for(N(G,function(le){le.__pictorialAnimationIndex=X,le.__pictorialRepeatTimes=ne,X<ne?z(le,null,se(X),H,W):z(le,null,{scale:[0,0]},H,W,function(){$.remove(le)}),D(le,H),X++});X<ne;X++){var ae=d(H);ae.__pictorialAnimationIndex=X,ae.__pictorialRepeatTimes=ne,$.add(ae);var oe=se(X);z(ae,{position:oe.position,scale:[0,0]},{scale:oe.scale,rotation:oe.rotation},H,W),ae.on("mouseover",ge).on("mouseout",fe),D(ae,H)}function se(le){var ue=Y.slice(),he=H.pxSign,pe=le;return(H.symbolRepeatDirection==="start"?he>0:he<0)&&(pe=ne-1-le),ue[K.index]=ee*(pe-ne/2+.5)+Y[K.index],{position:ue,scale:H.symbolScale.slice(),rotation:H.rotation}}function ge(){N(G,function(le){le.trigger("emphasis")})}function fe(){N(G,function(le){le.trigger("normal")})}}function _(G,E,H,W){var $=G.__pictorialBundle,Z=G.__pictorialMainPath;Z?z(Z,null,{position:H.pathPosition.slice(),scale:H.symbolScale.slice(),rotation:H.rotation},H,W):(Z=G.__pictorialMainPath=d(H),$.add(Z),z(Z,{position:H.pathPosition.slice(),scale:[0,0],rotation:H.rotation},{scale:H.symbolScale.slice()},H,W),Z.on("mouseover",function(){this.trigger("emphasis")}).on("mouseout",function(){this.trigger("normal")})),D(Z,H)}function M(G,E,H){var W=T.extend({},E.barRectShape),$=G.__pictorialBarRect;$?z($,null,{shape:W},E,H):($=G.__pictorialBarRect=new w.Rect({z2:2,shape:W,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),G.add($))}function S(G,E,H,W){if(H.symbolClip){var $=G.__pictorialClipPath,Z=T.extend({},H.clipShape),Q=E.valueDim,Y=H.animationModel,K=H.dataIndex;if($)w.updateProps($,{shape:Z},Y,K);else{Z[Q.wh]=0,$=new w.Rect({shape:Z}),G.__pictorialBundle.setClipPath($),G.__pictorialClipPath=$;var ne={};ne[Q.wh]=H.clipShape[Q.wh],w[W?"updateProps":"initProps"]($,{shape:ne},Y,K)}}}function A(G,E){var H=G.getItemModel(E);return H.getAnimationDelayParams=I,H.isAnimationEnabled=k,H}function I(G){return{index:G.__pictorialAnimationIndex,count:G.__pictorialRepeatTimes}}function k(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function D(G,E){G.off("emphasis").off("normal");var H=E.symbolScale.slice();E.hoverAnimation&&G.on("emphasis",function(){this.animateTo({scale:[1.1*H[0],1.1*H[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:H.slice()},400,"elasticOut")})}function L(G,E,H,W){var $=new w.Group,Z=new w.Group;return $.add(Z),$.__pictorialBundle=Z,Z.attr("position",H.bundlePosition.slice()),H.symbolRepeat?m($,E,H):_($,E,H),M($,H,W),S($,E,H,W),$.__pictorialShapeStr=O(G,H),$.__pictorialSymbolMeta=H,$}function R(G,E,H,W){var $=W.__pictorialBarRect;$&&($.style.text=null);var Z=[];N(W,function(Q){Z.push(Q)}),W.__pictorialMainPath&&Z.push(W.__pictorialMainPath),W.__pictorialClipPath&&(H=null),T.each(Z,function(Q){w.updateProps(Q,{scale:[0,0]},H,E,function(){W.parent&&W.parent.remove(W)})}),G.setItemGraphicEl(E,null)}function O(G,E){return[G.getItemVisual(E.dataIndex,"symbol")||"none",!!E.symbolRepeat,!!E.symbolClip].join(":")}function N(G,E,H){T.each(G.__pictorialBundle.children(),function(W){W!==G.__pictorialBarRect&&E.call(H,W)})}function z(G,E,H,W,$,Z){E&&G.attr(E),W.symbolClip&&!$?H&&G.attr(H):H&&w[$?"updateProps":"initProps"](G,H,W.animationModel,W.dataIndex,Z)}function V(G,E,H){var W=H.color,$=H.dataIndex,Z=H.itemModel,Q=Z.getModel("itemStyle").getItemStyle(["color"]),Y=Z.getModel("emphasis.itemStyle").getItemStyle(),K=Z.getShallow("cursor");N(G,function(ae){ae.setColor(W),ae.setStyle(T.defaults({fill:W,opacity:H.opacity},Q)),w.setHoverStyle(ae,Y),K&&(ae.cursor=K),ae.z2=H.z2});var ne={},X=E.valueDim.posDesc[+(H.boundingLength>0)],ee=G.__pictorialBarRect;f(ee.style,ne,Z,W,E.seriesModel,$,X),w.setHoverStyle(ee,ne)}function B(G){var E=Math.round(G);return 1e-4>Math.abs(G-E)?E:Math.ceil(G)}U.exports=p.extendChartView({type:"pictorialBar",render:function(G,E,H){var W=this.group,$=G.getData(),Z=this._data,Q=G.coordinateSystem,Y=!!Q.getBaseAxis().isHorizontal(),K=Q.grid.getRect(),ne={ecSize:{width:H.getWidth(),height:H.getHeight()},seriesModel:G,coordSys:Q,coordSysExtent:[[K.x,K.x+K.width],[K.y,K.y+K.height]],isHorizontal:Y,valueDim:y[+Y],categoryDim:y[1-Y]};return $.diff(Z).add(function(X){if($.hasValue(X)){var ee=A($,X),ae=c($,X,ee,ne),oe=L($,ne,ae);$.setItemGraphicEl(X,oe),W.add(oe),V(oe,ne,ae)}}).update(function(X,ee){var ae,oe,se,ge,fe,le,ue=Z.getItemGraphicEl(ee);if(!$.hasValue(X))return void W.remove(ue);var he=A($,X),pe=c($,X,he,ne),ye=O($,pe);ue&&ye!==ue.__pictorialShapeStr&&(W.remove(ue),$.setItemGraphicEl(X,null),ue=null),ue?(ae=ue,oe=ne,ge=(se=pe).animationModel,fe=se.dataIndex,le=ae.__pictorialBundle,w.updateProps(le,{position:se.bundlePosition.slice()},ge,fe),se.symbolRepeat?m(ae,oe,se,!0):_(ae,oe,se,!0),M(ae,se,!0),S(ae,oe,se,!0)):ue=L($,ne,pe,!0),$.setItemGraphicEl(X,ue),ue.__pictorialSymbolMeta=pe,W.add(ue),V(ue,ne,pe)}).remove(function(X){var ee=Z.getItemGraphicEl(X);ee&&R(Z,X,ee.__pictorialSymbolMeta.animationModel,ee)}).execute(),this._data=$,this.group},dispose:T.noop,remove:function(G,E){var H=this.group,W=this._data;G.get("animation")?W&&W.eachItemGraphicEl(function($){R(W,$.dataIndex,G,$)}):H.removeAll()}})},36096:function(U,C,b){var p=b(74106)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);U.exports={getBarItemStyle:function(T){var w=p(this,T);if(this.getBorderLineDash){var e=this.getBorderLineDash();e&&(w.lineDash=e)}return w}}},31535:function(U,C,b){var p=b(51747),T=b(73444).getDefaultLabel;function w(e,h){e.textPosition==="outside"&&(e.textPosition=h)}C.setLabel=function(e,h,n,t,f,a,y){var g=n.getModel("label"),c=n.getModel("emphasis.label");p.setLabelStyle(e,h,g,c,{labelFetcher:f,labelDataIndex:a,defaultText:T(f.getData(),a),isRectText:!0,autoColor:t}),w(e),w(h)}},43732:function(U,C,b){var p=b(87930);b(76149),b(21687);var T=b(58185),w=b(93891);p.registerVisual(T),p.registerLayout(w)},76149:function(U,C,b){var p=b(23405),T=b(95166),w=b(67783).seriesModelMixin,e=T.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});p.mixin(e,w,!0),U.exports=e},21687:function(U,C,b){var p=b(23405),T=b(4695),w=b(51747),e=b(74582),h=["itemStyle"],n=["emphasis","itemStyle"],t=T.extend({type:"boxplot",render:function(g,c,o){var d=g.getData(),m=this.group,_=this._data;this._data||m.removeAll();var M=+(g.get("layout")==="horizontal");d.diff(_).add(function(S){if(d.hasValue(S)){var A=a(d.getItemLayout(S),d,S,M,!0);d.setItemGraphicEl(S,A),m.add(A)}}).update(function(S,A){var I=_.getItemGraphicEl(A);if(!d.hasValue(S))return void m.remove(I);var k=d.getItemLayout(S);I?y(k,I,d,S):I=a(k,d,S,M),m.add(I),d.setItemGraphicEl(S,I)}).remove(function(S){var A=_.getItemGraphicEl(S);A&&m.remove(A)}).execute(),this._data=d},remove:function(g){var c=this.group,o=this._data;this._data=null,o&&o.eachItemGraphicEl(function(d){d&&c.remove(d)})},dispose:p.noop}),f=e.extend({type:"boxplotBoxPath",shape:{},buildPath:function(g,c){var o=c.points,d=0;for(g.moveTo(o[d][0],o[d][1]),d++;d<4;d++)g.lineTo(o[d][0],o[d][1]);for(g.closePath();d<o.length;d++)g.moveTo(o[d][0],o[d][1]),d++,g.lineTo(o[d][0],o[d][1])}});function a(g,c,o,d,m){var _,M,S,A=g.ends,I=new f({shape:{points:m?(_=A,M=d,S=g,p.map(_,function(k){return(k=k.slice())[M]=S.initBaseline,k})):A}});return y(g,I,c,o,m),I}function y(g,c,o,d,m){var _=o.hostModel;(0,w[m?"initProps":"updateProps"])(c,{shape:{points:g.ends}},_,d);var M=o.getItemModel(d),S=M.getModel(h),A=o.getItemVisual(d,"color"),I=S.getItemStyle(["borderColor"]);I.stroke=A,I.strokeNoScale=!0,c.useStyle(I),c.z2=100;var k=M.getModel(n).getItemStyle();w.setHoverStyle(c,k)}U.exports=t},93891:function(U,C,b){var p=b(23405),T=b(54684).parsePercent,w=p.each;U.exports=function(e){var h,n;w((h=[],n=[],e.eachSeriesByType("boxplot",function(t){var f=t.getBaseAxis(),a=p.indexOf(n,f);a<0&&(a=n.length,n[a]=f,h[a]={axis:f,seriesModels:[]}),h[a].seriesModels.push(t)}),h),function(t){var f=t.seriesModels;f.length&&(function(a){var y,g,c=a.axis,o=a.seriesModels,d=o.length,m=a.boxWidthList=[],_=a.boxOffsetList=[],M=[];if(c.type==="category")g=c.getBandWidth();else{var S=0;w(o,function(L){S=Math.max(S,L.getData().count())}),(y=c.getExtent())[1],y[0]}w(o,function(L){var R=L.get("boxWidth");p.isArray(R)||(R=[R,R]),M.push([T(R[0],g)||0,T(R[1],g)||0])});var A=.8*g-2,I=A/d*.3,k=(A-I*(d-1))/d,D=k/2-A/2;w(o,function(L,R){_.push(D),D+=I+k,m.push(Math.min(Math.max(k,M[R][0]),M[R][1]))})}(t),w(f,function(a,y){(function(g,c,o){var d=g.coordinateSystem,m=g.getData(),_=o/2,M=+(g.get("layout")!=="horizontal"),S=1-M,A=["x","y"],I=m.mapDimension(A[M]),k=m.mapDimension(A[S],!0);if(I!=null&&!(k.length<5))for(var D=0;D<m.count();D++){var L=m.get(I,D),R=G(L,k[2],D),O=G(L,k[0],D),N=G(L,k[1],D),z=G(L,k[3],D),V=G(L,k[4],D),B=[];E(B,N,0),E(B,z,1),B.push(O,N,V,z),H(B,O),H(B,V),H(B,R),m.setItemLayout(D,{initBaseline:R[S],ends:B})}function G(W,$,Z){var Q,Y=m.get($,Z),K=[];return K[M]=W,K[S]=Y,isNaN(W)||isNaN(Y)?Q=[NaN,NaN]:(Q=d.dataToPoint(K),Q[M]+=c),Q}function E(W,$,Z){var Q=$.slice(),Y=$.slice();Q[M]+=_,Y[M]-=_,Z?W.push(Q,Y):W.push(Y,Q)}function H(W,$){var Z=$.slice(),Q=$.slice();Z[M]-=_,Q[M]+=_,W.push(Z,Q)}})(a,t.boxOffsetList[y],t.boxWidthList[y])}))})}},58185:function(U){var C=["itemStyle","borderColor"];U.exports=function(b,p){var T=b.get("color");b.eachRawSeriesByType("boxplot",function(w){var e=T[w.seriesIndex%T.length],h=w.getData();h.setVisual({legendSymbol:"roundRect",color:w.get(C)||e}),b.isSeriesFiltered(w)||h.each(function(n){var t=h.getItemModel(n);h.setItemVisual(n,{color:t.get(C,!0)})})})}},69963:function(U,C,b){var p=b(87930);b(84433),b(16175);var T=b(15931),w=b(42255),e=b(41187);p.registerPreprocessor(T),p.registerVisual(w),p.registerLayout(e)},84433:function(U,C,b){var p=b(23405),T=b(95166),w=b(67783).seriesModelMixin,e=T.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(h,n,t){var f=n.getItemLayout(h);return f&&t.rect(f.brushRect)}});p.mixin(e,w,!0),U.exports=e},16175:function(U,C,b){var p=b(23405),T=b(4695),w=b(51747),e=b(74582),h=["itemStyle"],n=["emphasis","itemStyle"],t=["color","color0","borderColor","borderColor0"],f=T.extend({type:"candlestick",render:function(m,_,M){this._updateDrawMode(m),this._isLargeDraw?this._renderLarge(m):this._renderNormal(m)},incrementalPrepareRender:function(m,_,M){this._clear(),this._updateDrawMode(m)},incrementalRender:function(m,_,M,S){this._isLargeDraw?this._incrementalRenderLarge(m,_):this._incrementalRenderNormal(m,_)},_updateDrawMode:function(m){var _=m.pipelineContext.large;(this._isLargeDraw==null||_^this._isLargeDraw)&&(this._isLargeDraw=_,this._clear())},_renderNormal:function(m){var _=m.getData(),M=this._data,S=this.group,A=_.getLayout("isSimpleBox");this._data||S.removeAll(),_.diff(M).add(function(I){if(_.hasValue(I)){var k,D=_.getItemLayout(I);k=y(D,I,!0),w.initProps(k,{shape:{points:D.ends}},m,I),g(k,_,I,A),S.add(k),_.setItemGraphicEl(I,k)}}).update(function(I,k){var D=M.getItemGraphicEl(k);if(!_.hasValue(I))return void S.remove(D);var L=_.getItemLayout(I);D?w.updateProps(D,{shape:{points:L.ends}},m,I):D=y(L),g(D,_,I,A),S.add(D),_.setItemGraphicEl(I,D)}).remove(function(I){var k=M.getItemGraphicEl(I);k&&S.remove(k)}).execute(),this._data=_},_renderLarge:function(m){this._clear(),o(m,this.group)},_incrementalRenderNormal:function(m,_){for(var M,S,A=_.getData(),I=A.getLayout("isSimpleBox");(M=m.next())!=null;)g(S=y(A.getItemLayout(M)),A,M,I),S.incremental=!0,this.group.add(S)},_incrementalRenderLarge:function(m,_){o(_,this.group,!0)},remove:function(m){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:p.noop}),a=e.extend({type:"normalCandlestickBox",shape:{},buildPath:function(m,_){var M=_.points;this.__simpleBox?(m.moveTo(M[4][0],M[4][1]),m.lineTo(M[6][0],M[6][1])):(m.moveTo(M[0][0],M[0][1]),m.lineTo(M[1][0],M[1][1]),m.lineTo(M[2][0],M[2][1]),m.lineTo(M[3][0],M[3][1]),m.closePath(),m.moveTo(M[4][0],M[4][1]),m.lineTo(M[5][0],M[5][1]),m.moveTo(M[6][0],M[6][1]),m.lineTo(M[7][0],M[7][1]))}});function y(m,_,M){var S,A,I=m.ends;return new a({shape:{points:M?(S=I,A=m,p.map(S,function(k){return(k=k.slice())[1]=A.initBaseline,k})):I},z2:100})}function g(m,_,M,S){var A=_.getItemModel(M),I=A.getModel(h),k=_.getItemVisual(M,"color"),D=_.getItemVisual(M,"borderColor")||k,L=I.getItemStyle(t);m.useStyle(L),m.style.strokeNoScale=!0,m.style.fill=k,m.style.stroke=D,m.__simpleBox=S;var R=A.getModel(n).getItemStyle();w.setHoverStyle(m,R)}var c=e.extend({type:"largeCandlestickBox",shape:{},buildPath:function(m,_){for(var M=_.points,S=0;S<M.length;)if(this.__sign===M[S++]){var A=M[S++];m.moveTo(A,M[S++]),m.lineTo(A,M[S++])}else S+=3}});function o(m,_,M){var S=m.getData(),A=S.getLayout("largePoints"),I=new c({shape:{points:A},__sign:1});_.add(I);var k=new c({shape:{points:A},__sign:-1});_.add(k),d(1,I,m,S),d(-1,k,m,S),M&&(I.incremental=!0,k.incremental=!0)}function d(m,_,M,S){var A=m>0?"P":"N",I=S.getVisual("borderColor"+A)||S.getVisual("color"+A),k=M.getModel(h).getItemStyle(t);_.useStyle(k),_.style.fill=null,_.style.stroke=I}U.exports=f},41187:function(U,C,b){var p=b(51747).subPixelOptimize,T=b(52227),w=b(54684).parsePercent,e=b(23405).retrieve2,h=typeof Float32Array<"u"?Float32Array:Array;function n(t,f,a,y,g){return a>y?-1:a<y?1:f>0?t.get(g,f-1)<=y?1:-1:1}U.exports={seriesType:"candlestick",plan:T(),reset:function(t){var f,a,y,g,c,o,d,m,_=t.coordinateSystem,M=t.getData(),S=(f=t,a=M,c=(g=f.getBaseAxis()).type==="category"?g.getBandWidth():Math.abs((y=g.getExtent())[1]-y[0])/a.count(),o=w(e(f.get("barMaxWidth"),c),c),d=w(e(f.get("barMinWidth"),1),c),(m=f.get("barWidth"))!=null?w(m,c):Math.max(Math.min(c/2,o),d)),A=M.mapDimension("x"),I=M.mapDimension("y",!0),k=I[0],D=I[1],L=I[2],R=I[3];if(M.setLayout({candleWidth:S,isSimpleBox:S<=1.3}),A!=null&&!(I.length<4))return{progress:t.pipelineContext.large?function(O,N){for(var z,V,B=new h(5*O.count),G=0,E=[],H=[];(V=O.next())!=null;){var W=N.get(A,V),$=N.get(k,V),Z=N.get(D,V),Q=N.get(L,V),Y=N.get(R,V);if(isNaN(W)||isNaN(Q)||isNaN(Y)){B[G++]=NaN,G+=4;continue}B[G++]=n(N,V,$,Z,D),E[0]=W,E[1]=Q,z=_.dataToPoint(E,null,H),B[G++]=z?z[0]:NaN,B[G++]=z?z[1]:NaN,E[1]=Y,z=_.dataToPoint(E,null,H),B[G++]=z?z[1]:NaN}N.setLayout("largePoints",B)}:function(O,N){for(var z;(z=O.next())!=null;){var V=N.get(A,z),B=N.get(k,z),G=N.get(D,z),E=N.get(L,z),H=N.get(R,z),W=Math.min(B,G),$=Math.max(B,G),Z=X(W,V),Q=X($,V),Y=X(E,V),K=X(H,V),ne=[];ee(ne,Q,0),ee(ne,Z,1),ne.push(ae(K),ae(Q),ae(Y),ae(Z)),N.setItemLayout(z,{sign:n(N,z,B,G,D),initBaseline:B>G?Q[1]:Z[1],ends:ne,brushRect:function(oe,se,ge){var fe=X(oe,ge),le=X(se,ge);return fe[0]-=S/2,le[0]-=S/2,{x:fe[0],y:fe[1],width:S,height:le[1]-fe[1]}}(E,H,V)})}function X(oe,se){var ge=[];return ge[0]=se,ge[1]=oe,isNaN(se)||isNaN(oe)?[NaN,NaN]:_.dataToPoint(ge)}function ee(oe,se,ge){var fe=se.slice(),le=se.slice();fe[0]=p(fe[0]+S/2,1,!1),le[0]=p(le[0]-S/2,1,!0),ge?oe.push(fe,le):oe.push(le,fe)}function ae(oe){return oe[0]=p(oe[0],1),oe}}}}}},42255:function(U,C,b){var p=b(52227),T=["itemStyle","borderColor"],w=["itemStyle","borderColor0"],e=["itemStyle","color"],h=["itemStyle","color0"];U.exports={seriesType:"candlestick",plan:p(),performRawSeries:!0,reset:function(n,t){var f=n.getData(),a=n.pipelineContext.large;if(f.setVisual({legendSymbol:"roundRect",colorP:y(1,n),colorN:y(-1,n),borderColorP:g(1,n),borderColorN:g(-1,n)}),!t.isSeriesFiltered(n))return!a&&{progress:function(c,o){for(var d;(d=c.next())!=null;){var m=o.getItemModel(d),_=o.getItemLayout(d).sign;o.setItemVisual(d,{color:y(_,m),borderColor:g(_,m)})}}};function y(c,o){return o.get(c>0?e:h)}function g(c,o){return o.get(c>0?T:w)}}}},15931:function(U,C,b){var p=b(23405);U.exports=function(T){T&&p.isArray(T.series)&&p.each(T.series,function(w){p.isObject(w)&&w.type==="k"&&(w.type="candlestick")})}},35979:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(51747),w=b(73444).getDefaultLabel,e=b(74107),h=b(76918).getLayoutOnAxis,n=b(99018),t=b(95166),f=b(4695),a=b(79090),y=b(44988),g=b(65596),c=b(78147),o=b(29952),d=["itemStyle"],m=["emphasis","itemStyle"],_=["label"],M=["emphasis","label"],S={cartesian2d:a,geo:y,singleAxis:g,polar:c,calendar:o};function A(V,B,G,E,H){G[V]==null||H||(B[V]=G[V],G[V]=E[V])}function I(V,B,G,E){var H,W,$,Z,Q,Y,K,ne=V.get("renderItem"),X=V.coordinateSystem,ee={};X&&(ee=X.prepareCustoms?X.prepareCustoms():S[X.type](X));var ae=p.defaults({getWidth:E.getWidth,getHeight:E.getHeight,getZr:E.getZr,getDevicePixelRatio:E.getDevicePixelRatio,value:function(fe,le){return le==null&&(le=$),B.get(B.getDimension(fe||0),le)},style:function(fe,le){le==null&&(le=$),ge(le);var ue=Z.getModel(d).getItemStyle();K!=null&&(ue.fill=K);var he=B.getItemVisual(le,"opacity");return he!=null&&(ue.opacity=he),T.setTextStyle(ue,Q,null,{autoColor:K,isRectText:!0}),ue.text=Q.getShallow("show")?p.retrieve2(V.getFormattedLabel(le,"normal"),w(B,le)):null,fe&&p.extend(ue,fe),ue},styleEmphasis:function(fe,le){le==null&&(le=$),ge(le);var ue=Z.getModel(m).getItemStyle();return T.setTextStyle(ue,Y,null,{isRectText:!0},!0),ue.text=Y.getShallow("show")?p.retrieve3(V.getFormattedLabel(le,"emphasis"),V.getFormattedLabel(le,"normal"),w(B,le)):null,fe&&p.extend(ue,fe),ue},visual:function(fe,le){return le==null&&(le=$),B.getItemVisual(le,fe)},barLayout:function(fe){if(X.getBaseAxis){var le=X.getBaseAxis();return h(p.defaults({axis:le},fe),E)}},currentSeriesIndices:function(){return G.getCurrentSeriesIndices()},font:function(fe){return T.getFont(fe,G)}},ee.api||{}),oe={context:{},seriesId:V.id,seriesName:V.name,seriesIndex:V.seriesIndex,coordSys:ee.coordSys,dataInsideLength:B.count(),encode:(H=V.getData(),W={},p.each(H.dimensions,function(fe,le){var ue=H.getDimensionInfo(fe);if(!ue.isExtraCoord){var he=ue.coordDim;(W[he]=W[he]||[])[ue.coordDimIndex]=le}}),W)},se=!0;return function(fe,le){return $=fe,se=!0,ne&&ne(p.defaults({dataIndexInside:fe,dataIndex:B.getRawIndex(fe),actionType:le?le.type:null},oe),ae)};function ge(fe){fe==null&&(fe=$),se&&(Q=(Z=B.getItemModel(fe)).getModel(_),Y=Z.getModel(M),K=B.getItemVisual(fe,"color"),se=!1)}}function k(V,B,G,E,H,W){return(V=D(V,B,G,E,H,W,!0))&&W.setItemGraphicEl(B,V),V}function D(V,B,G,E,H,W,$){var Z,Q=!G,Y=(G=G||{}).type,K=G.shape,ne=G.style;if(V&&(Q||Y!=null&&Y!==V.__customGraphicType||Y==="path"&&(Z=K)&&(Z.hasOwnProperty("pathData")||Z.hasOwnProperty("d"))&&N(K)!==V.__customPathData||Y==="image"&&z(ne,"image")&&ne.image!==V.__customImagePath||Y==="text"&&z(K,"text")&&ne.text!==V.__customText)&&(H.remove(V),V=null),!Q){var X=!V;return V||(V=function(ee){var ae,oe=ee.type;if(oe==="path"){var se=ee.shape,ge=se.width!=null&&se.height!=null?{x:se.x||0,y:se.y||0,width:se.width,height:se.height}:null,fe=N(se);(ae=T.makePath(fe,null,ge,se.layout||"center")).__customPathData=fe}else oe==="image"?(ae=new T.Image({})).__customImagePath=ee.style.image:oe==="text"?(ae=new T.Text({})).__customText=ee.style.text:ae=new T[oe.charAt(0).toUpperCase()+oe.slice(1)];return ae.__customGraphicType=oe,ae.name=ee.name,ae}(G)),function(ee,ae,oe,se,ge,fe,le){var ue={},he=oe.style||{};if(oe.shape&&(ue.shape=p.clone(oe.shape)),oe.position&&(ue.position=oe.position.slice()),oe.scale&&(ue.scale=oe.scale.slice()),oe.origin&&(ue.origin=oe.origin.slice()),oe.rotation&&(ue.rotation=oe.rotation),ee.type==="image"&&oe.style){var pe=ue.style={};p.each(["x","y","width","height"],function(_e){A(_e,pe,he,ee.style,fe)})}if(ee.type==="text"&&oe.style){var pe=ue.style={};p.each(["x","y"],function(Pe){A(Pe,pe,he,ee.style,fe)}),!he.hasOwnProperty("textFill")&&he.fill&&(he.textFill=he.fill),!he.hasOwnProperty("textStroke")&&he.stroke&&(he.textStroke=he.stroke)}if(ee.type!=="group"&&(ee.useStyle(he),fe)){ee.style.opacity=0;var ye=he.opacity;ye==null&&(ye=1),T.initProps(ee,{style:{opacity:ye}},se,ae)}fe?ee.attr(ue):T.updateProps(ee,ue,se,ae),oe.hasOwnProperty("z2")&&ee.attr("z2",oe.z2||0),oe.hasOwnProperty("silent")&&ee.attr("silent",oe.silent),oe.hasOwnProperty("invisible")&&ee.attr("invisible",oe.invisible),oe.hasOwnProperty("ignore")&&ee.attr("ignore",oe.ignore),oe.hasOwnProperty("info")&&ee.attr("info",oe.info);var ve=oe.styleEmphasis,Ae=ve===!1;ee.__cusHasEmphStl&&ve==null||!ee.__cusHasEmphStl&&Ae||(T.setElementHoverStyle(ee,ve),ee.__cusHasEmphStl=!Ae),le&&T.setAsHoverStyleTrigger(ee,!Ae)}(V,B,G,E,0,X,$),Y==="group"&&function(ee,ae,oe,se,ge){var fe,le=oe.children,ue=le?le.length:0,he=oe.$mergeChildren,pe=he==="byName"||oe.diffChildrenByName,ye=he===!1;if(ue||pe||ye){if(pe)return new n((fe={oldChildren:ee.children()||[],newChildren:le||[],dataIndex:ae,animatableModel:se,group:ee,data:ge}).oldChildren,fe.newChildren,L,L,fe).add(R).update(R).remove(O).execute();ye&&ee.removeAll();for(var ve=0;ve<ue;ve++)le[ve]&&D(ee.childAt(ve),ae,le[ve],se,ee,ge)}}(V,B,G,E,W),H.add(V),V}}function L(V,B){var G=V&&V.name;return G??"e\0\0"+B}function R(V,B){var G=this.context,E=V!=null?G.newChildren[V]:null;D(B!=null?G.oldChildren[B]:null,G.dataIndex,E,G.animatableModel,G.group,G.data)}function O(V){var B=this.context,G=B.oldChildren[V];G&&B.group.remove(G)}function N(V){return V&&(V.pathData||V.d)}function z(V,B){return V&&V.hasOwnProperty(B)}t.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0},getInitialData:function(V,B){return e(this.getSource(),this)},getDataParams:function(V,B,G){var E=t.prototype.getDataParams.apply(this,arguments);return G&&(E.info=G.info),E}}),f.extend({type:"custom",_data:null,render:function(V,B,G,E){var H=this._data,W=V.getData(),$=this.group,Z=I(V,W,B,G);W.diff(H).add(function(Q){k(null,Q,Z(Q,E),V,$,W)}).update(function(Q,Y){k(H.getItemGraphicEl(Y),Q,Z(Q,E),V,$,W)}).remove(function(Q){var Y=H.getItemGraphicEl(Q);Y&&$.remove(Y)}).execute(),this._data=W},incrementalPrepareRender:function(V,B,G){this.group.removeAll(),this._data=null},incrementalRender:function(V,B,G,E,H){var W=B.getData(),$=I(B,W,G,E);function Z(Y){Y.isGroup||(Y.incremental=!0,Y.useHoverLayer=!0)}for(var Q=V.start;Q<V.end;Q++)k(null,Q,$(Q,H),B,this.group,W).traverse(Z)},dispose:p.noop,filterForExposedEvent:function(V,B,G,E){var H=B.element;if(H==null||G.name===H)return!0;for(;(G=G.parent)&&G!==this.group;)if(G.name===H)return!0;return!1}})},97215:function(U,C,b){var p=b(87930);b(9309),b(87281);var T=b(53414),w=b(21188);p.registerVisual(T("effectScatter","circle")),p.registerLayout(w("effectScatter"))},9309:function(U,C,b){var p=b(74107);U.exports=b(95166).extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(T,w){return p(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},87281:function(U,C,b){var p=b(87930),T=b(83522),w=b(99939),e=b(79442),h=b(21188);U.exports=p.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new T(w)},render:function(n,t,f){var a=n.getData(),y=this._symbolDraw;y.updateData(a),this.group.add(y.group)},updateTransform:function(n,t,f){var a=n.getData();this.group.dirty();var y=h().reset(n);y.progress&&y.progress({start:0,end:a.count()},a),this._symbolDraw.updateLayout(a)},_updateGroupTransform:function(n){var t=n.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=e.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(n,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}})},53514:function(U,C,b){var p=b(87930);b(117),b(29278);var T=b(59448),w=b(82672),e=b(74278);p.registerVisual(T("funnel")),p.registerLayout(w),p.registerProcessor(e("funnel"))},117:function(U,C,b){var p=b(87930),T=b(59644),w=b(51064).defaultEmphasis,e=p.extendSeriesModel({type:"series.funnel",init:function(h){e.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(h)},getInitialData:function(h,n){return T(this,["value"])},_defaultLabelLine:function(h){w(h,"labelLine",["show"]);var n=h.labelLine,t=h.emphasis.labelLine;n.show=n.show&&h.label.show,t.show=t.show&&h.emphasis.label.show},getDataParams:function(h){var n=this.getData(),t=e.superCall(this,"getDataParams",h),f=n.mapDimension("value"),a=n.getSum(f);return t.percent=a?+(n.get(f,h)/a*100).toFixed(2):0,t.$vars.push("percent"),t},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});U.exports=e},29278:function(U,C,b){var p=b(51747),T=b(23405),w=b(4695);function e(t,f){p.Group.call(this);var a=new p.Polygon,y=new p.Polyline,g=new p.Text;function c(){y.ignore=y.hoverIgnore,g.ignore=g.hoverIgnore}function o(){y.ignore=y.normalIgnore,g.ignore=g.normalIgnore}this.add(a),this.add(y),this.add(g),this.updateData(t,f,!0),this.on("emphasis",c).on("normal",o).on("mouseover",c).on("mouseout",o)}var h=e.prototype,n=["itemStyle","opacity"];h.updateData=function(t,f,a){var y=this.childAt(0),g=t.hostModel,c=t.getItemModel(f),o=t.getItemLayout(f),d=t.getItemModel(f).get(n);d=d??1,y.useStyle({}),a?(y.setShape({points:o.points}),y.setStyle({opacity:0}),p.initProps(y,{style:{opacity:d}},g,f)):p.updateProps(y,{style:{opacity:d},shape:{points:o.points}},g,f);var m=c.getModel("itemStyle"),_=t.getItemVisual(f,"color");y.setStyle(T.defaults({lineJoin:"round",fill:_},m.getItemStyle(["opacity"]))),y.hoverStyle=m.getModel("emphasis").getItemStyle(),this._updateLabel(t,f),p.setHoverStyle(this)},h._updateLabel=function(t,f){var a=this.childAt(1),y=this.childAt(2),g=t.hostModel,c=t.getItemModel(f),o=t.getItemLayout(f).label,S=t.getItemVisual(f,"color");p.updateProps(a,{shape:{points:o.linePoints||o.linePoints}},g,f),p.updateProps(y,{style:{x:o.x,y:o.y}},g,f),y.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var d=c.getModel("label"),m=c.getModel("emphasis.label"),_=c.getModel("labelLine"),M=c.getModel("emphasis.labelLine"),S=t.getItemVisual(f,"color");p.setLabelStyle(y.style,y.hoverStyle={},d,m,{labelFetcher:t.hostModel,labelDataIndex:f,defaultText:t.getName(f),autoColor:S,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),y.ignore=y.normalIgnore=!d.get("show"),y.hoverIgnore=!m.get("show"),a.ignore=a.normalIgnore=!_.get("show"),a.hoverIgnore=!M.get("show"),a.setStyle({stroke:S}),a.setStyle(_.getModel("lineStyle").getLineStyle()),a.hoverStyle=M.getModel("lineStyle").getLineStyle()},T.inherits(e,p.Group),U.exports=w.extend({type:"funnel",render:function(t,f,a){var y=t.getData(),g=this._data,c=this.group;y.diff(g).add(function(o){var d=new e(y,o);y.setItemGraphicEl(o,d),c.add(d)}).update(function(o,d){var m=g.getItemGraphicEl(d);m.updateData(y,o),c.add(m),y.setItemGraphicEl(o,m)}).remove(function(o){var d=g.getItemGraphicEl(o);c.remove(d)}).execute(),this._data=y},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}})},82672:function(U,C,b){var p=b(62751),T=b(54684),w=T.parsePercent,e=T.linearMap;U.exports=function(h,n,t){h.eachSeriesByType("funnel",function(f){var a=f.getData(),y=a.mapDimension("value"),g=f.get("sort"),c=p.getLayoutRect(f.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),o=function(B,G){for(var E=B.mapDimension("value"),H=B.mapArray(E,function(Y){return Y}),W=[],$=G==="ascending",Z=0,Q=B.count();Z<Q;Z++)W[Z]=Z;return typeof G=="function"?W.sort(G):G!=="none"&&W.sort(function(Y,K){return $?H[Y]-H[K]:H[K]-H[Y]}),W}(a,g),d=[w(f.get("minSize"),c.width),w(f.get("maxSize"),c.width)],m=a.getDataExtent(y),_=f.get("min"),M=f.get("max");_==null&&(_=Math.min(m[0],0)),M==null&&(M=m[1]);var S=f.get("funnelAlign"),A=f.get("gap"),I=(c.height-A*(a.count()-1))/a.count(),k=c.y,D=function(B,G){var E,H=e(a.get(y,B)||0,[_,M],d,!0);switch(S){case"left":E=c.x;break;case"center":E=c.x+(c.width-H)/2;break;case"right":E=c.x+c.width-H}return[[E,G],[E+H,G]]};g==="ascending"&&(I=-I,A=-A,k+=c.height,o=o.reverse());for(var L=0;L<o.length;L++){var R=o[L],O=o[L+1],N=a.getItemModel(R).get("itemStyle.height");N==null?N=I:(N=w(N,c.height),g==="ascending"&&(N=-N));var z=D(R,k),V=D(O,k+N);k+=N+A,a.setItemLayout(R,{points:z.concat(V.slice().reverse())})}a.each(function(B){var G=a.getItemModel(B),E=G.getModel("label").get("position"),H=G.getModel("labelLine"),W=a.getItemLayout(B),$=W.points,Z=E==="inner"||E==="inside"||E==="center";if(Z)Y=($[0][0]+$[1][0]+$[2][0]+$[3][0])/4,K=($[0][1]+$[1][1]+$[2][1]+$[3][1])/4,Q="center",ne=[[Y,K],[Y,K]];else{var Q,Y,K,ne,X,ee,ae,oe=H.get("length");E==="left"?(X=($[3][0]+$[0][0])/2,ee=($[3][1]+$[0][1])/2,Y=(ae=X-oe)-5,Q="right"):(X=($[1][0]+$[2][0])/2,ee=($[1][1]+$[2][1])/2,Y=(ae=X+oe)+5,Q="left");var se=ee;ne=[[X,ee],[ae,se]],K=se}W.label={linePoints:ne,x:Y,y:K,verticalAlign:"middle",textAlign:Q,inside:Z}})})}},59060:function(U,C,b){b(24069),b(16734)},24069:function(U,C,b){var p=b(59644),T=b(95166),w=b(23405);U.exports=T.extend({type:"series.gauge",getInitialData:function(e,h){var n=e.data||[];return w.isArray(n)||(n=[n]),e.data=n,p(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}})},16734:function(U,C,b){var p=b(80169),T=b(51747),w=b(4695),e=b(54684),h=e.parsePercent,n=e.round,t=e.linearMap;function f(y,g){return g&&(typeof g=="string"?y=g.replace("{value}",y??""):typeof g=="function"&&(y=g(y))),y}var a=2*Math.PI;U.exports=w.extend({type:"gauge",render:function(y,g,c){this.group.removeAll();var o,d,m=y.get("axisLine.lineStyle.color"),_=(o=y.get("center"),d=Math.min(c.getWidth(),c.getHeight()),{cx:h(o[0],c.getWidth()),cy:h(o[1],c.getHeight()),r:h(y.get("radius"),d/2)});this._renderMain(y,g,c,m,_)},dispose:function(){},_renderMain:function(y,g,c,o,d){for(var m=this.group,_=y.getModel("axisLine").getModel("lineStyle"),M=y.get("clockwise"),S=-y.get("startAngle")/180*Math.PI,A=-y.get("endAngle")/180*Math.PI,I=(A-S)%a,k=S,D=_.get("width"),L=0;L<o.length;L++){var A=S+I*Math.min(Math.max(o[L][0],0),1),R=new T.Sector({shape:{startAngle:k,endAngle:A,cx:d.cx,cy:d.cy,clockwise:M,r0:d.r-D,r:d.r},silent:!0});R.setStyle({fill:o[L][1]}),R.setStyle(_.getLineStyle(["color","borderWidth","borderColor"])),m.add(R),k=A}var O=function(z){if(z<=0)return o[0][1];for(var V=0;V<o.length;V++)if(o[V][0]>=z&&(V===0?0:o[V-1][0])<z)return o[V][1];return o[V-1][1]};if(!M){var N=S;S=A,A=N}this._renderTicks(y,g,c,O,d,S,A,M),this._renderPointer(y,g,c,O,d,S,A,M),this._renderTitle(y,g,c,O,d),this._renderDetail(y,g,c,O,d)},_renderTicks:function(y,g,c,o,d,m,_,M){for(var S=this.group,A=d.cx,I=d.cy,k=d.r,D=+y.get("min"),L=+y.get("max"),R=y.getModel("splitLine"),O=y.getModel("axisTick"),N=y.getModel("axisLabel"),z=y.get("splitNumber"),V=O.get("splitNumber"),B=h(R.get("length"),k),G=h(O.get("length"),k),E=m,H=(_-m)/z,W=H/V,$=R.getModel("lineStyle").getLineStyle(),Z=O.getModel("lineStyle").getLineStyle(),Q=0;Q<=z;Q++){var Y=Math.cos(E),K=Math.sin(E);if(R.get("show")){var ne=new T.Line({shape:{x1:Y*k+A,y1:K*k+I,x2:Y*(k-B)+A,y2:K*(k-B)+I},style:$,silent:!0});$.stroke==="auto"&&ne.setStyle({stroke:o(Q/z)}),S.add(ne)}if(N.get("show")){var X=f(n(Q/z*(L-D)+D),N.get("formatter")),ee=N.get("distance"),ae=o(Q/z);S.add(new T.Text({style:T.setTextStyle({},N,{text:X,x:Y*(k-B-ee)+A,y:K*(k-B-ee)+I,textVerticalAlign:K<-.4?"top":K>.4?"bottom":"middle",textAlign:Y<-.4?"left":Y>.4?"right":"center"},{autoColor:ae}),silent:!0}))}if(O.get("show")&&Q!==z){for(var oe=0;oe<=V;oe++){var Y=Math.cos(E),K=Math.sin(E),se=new T.Line({shape:{x1:Y*k+A,y1:K*k+I,x2:Y*(k-G)+A,y2:K*(k-G)+I},silent:!0,style:Z});Z.stroke==="auto"&&se.setStyle({stroke:o((Q+oe/V)/z)}),S.add(se),E+=W}E-=W}else E+=H}},_renderPointer:function(y,g,c,o,d,m,_,M){var S=this.group,A=this._data;if(!y.get("pointer.show")){A&&A.eachItemGraphicEl(function(R){S.remove(R)});return}var I=[+y.get("min"),+y.get("max")],k=[m,_],D=y.getData(),L=D.mapDimension("value");D.diff(A).add(function(R){var O=new p({shape:{angle:m}});T.initProps(O,{shape:{angle:t(D.get(L,R),I,k,!0)}},y),S.add(O),D.setItemGraphicEl(R,O)}).update(function(R,O){var N=A.getItemGraphicEl(O);T.updateProps(N,{shape:{angle:t(D.get(L,R),I,k,!0)}},y),S.add(N),D.setItemGraphicEl(R,N)}).remove(function(R){var O=A.getItemGraphicEl(R);S.remove(O)}).execute(),D.eachItemGraphicEl(function(R,O){var N=D.getItemModel(O),z=N.getModel("pointer");R.setShape({x:d.cx,y:d.cy,width:h(z.get("width"),d.r),r:h(z.get("length"),d.r)}),R.useStyle(N.getModel("itemStyle").getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",o(t(D.get(L,O),I,[0,1],!0))),T.setHoverStyle(R,N.getModel("emphasis.itemStyle").getItemStyle())}),this._data=D},_renderTitle:function(y,g,c,o,d){var m=y.getData(),_=m.mapDimension("value"),M=y.getModel("title");if(M.get("show")){var S=M.get("offsetCenter"),A=d.cx+h(S[0],d.r),I=d.cy+h(S[1],d.r),k=+y.get("min"),D=+y.get("max"),L=o(t(y.getData().get(_,0),[k,D],[0,1],!0));this.group.add(new T.Text({silent:!0,style:T.setTextStyle({},M,{x:A,y:I,text:m.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:L,forceRich:!0})}))}},_renderDetail:function(y,g,c,o,d){var m=y.getModel("detail"),_=+y.get("min"),M=+y.get("max");if(m.get("show")){var S=m.get("offsetCenter"),A=d.cx+h(S[0],d.r),I=d.cy+h(S[1],d.r),k=h(m.get("width"),d.r),D=h(m.get("height"),d.r),L=y.getData(),R=L.get(L.mapDimension("value"),0),O=o(t(R,[_,M],[0,1],!0));this.group.add(new T.Text({silent:!0,style:T.setTextStyle({},m,{x:A,y:I,text:f(R,m.get("formatter")),textWidth:isNaN(k)?null:k,textHeight:isNaN(D)?null:D,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}})},80169:function(U,C,b){U.exports=b(74582).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(p,T){var w=Math.cos,e=Math.sin,h=T.r,n=T.width,t=T.angle,f=T.x-w(t)*n*(n>=h/3?1:2),a=T.y-e(t)*n*(n>=h/3?1:2);t=T.angle-Math.PI/2,p.moveTo(f,a),p.lineTo(T.x+w(t)*n,T.y+e(t)*n),p.lineTo(T.x+w(T.angle)*h,T.y+e(T.angle)*h),p.lineTo(T.x-w(t)*n,T.y-e(t)*n),p.lineTo(f,a)}})},62147:function(U,C,b){var p=b(87930);b(49294),b(90938),b(34877);var T=b(6388),w=b(53414),e=b(17573),h=b(17183),n=b(86759),t=b(38375),f=b(49490),a=b(96128);p.registerProcessor(T),p.registerVisual(w("graph","circle",null)),p.registerVisual(e),p.registerVisual(h),p.registerLayout(n),p.registerLayout(t),p.registerLayout(f),p.registerCoordinateSystem("graphView",{create:a})},49294:function(U,C,b){var p=b(87930),T=b(80023),w=b(23405),e=b(51064).defaultEmphasis,h=b(46082),n=b(60653).encodeHTML,t=b(64330),f=p.extendSeriesModel({type:"series.graph",init:function(a){f.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(a.edges||a.links),this._updateCategoriesData()},mergeOption:function(a){f.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(a.edges||a.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(a){f.superApply(this,"mergeDefaultAndTheme",arguments),e(a,["edgeLabel"],["show"])},getInitialData:function(a,y){var g=a.edges||a.links||[],c=a.data||a.nodes||[],o=this;if(c&&g)return t(c,g,this,!0,function(d,m){d.wrapMethod("getItemModel",function(k){var D=o._categoriesModels[k.getShallow("category")];return D&&(D.parentModel=k.parentModel,k.parentModel=D),k});var _=o.getModel("edgeLabel"),M=new h({label:_.option},_.parentModel,y),S=o.getModel("emphasis.edgeLabel"),A=new h({emphasis:{label:S.option}},S.parentModel,y);function I(k){return(k=this.parsePath(k))&&k[0]==="label"?M:k&&k[0]==="emphasis"&&k[1]==="label"?A:this.parentModel}m.wrapMethod("getItemModel",function(k){return k.customizeGetParent(I),k})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(a,y,g){if(g!=="edge")return f.superApply(this,"formatTooltip",arguments);var c=this.getData(),o=this.getDataParams(a,g),d=c.graph.getEdgeByIndex(a),m=c.getName(d.node1.dataIndex),_=c.getName(d.node2.dataIndex),M=[];return m!=null&&M.push(m),_!=null&&M.push(_),M=n(M.join(" > ")),o.value&&(M+=" : "+n(o.value)),M},_updateCategoriesData:function(){var a=w.map(this.option.categories||[],function(g){return g.value!=null?g:w.extend({value:0},g)}),y=new T(["value"],this);y.initData(a),this._categoriesData=y,this._categoriesModels=y.mapArray(function(g){return y.getItemModel(g,!0)})},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a},isAnimationEnabled:function(){return f.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}});U.exports=f},90938:function(U,C,b){var p=b(87930),T=b(23405),w=b(83522),e=b(61880),h=b(55104),n=b(6463),t=b(11731).onIrrelevantElement,f=b(51747),a=b(41147),y="__focusNodeAdjacency",g="__unfocusNodeAdjacency",c=["itemStyle","opacity"],o=["lineStyle","opacity"];function d(M,S){return M.getVisual("opacity")||M.getModel().get(S)}function m(M,S,A){var I=M.getGraphicEl(),k=d(M,S);A!=null&&(k==null&&(k=1),k*=A),I.downplay&&I.downplay(),I.traverse(function(D){if(D.type!=="group"){var L=D.lineLabelOriginalOpacity;(L==null||A!=null)&&(L=k),D.setStyle("opacity",L)}})}function _(M,S){var A=d(M,S),I=M.getGraphicEl();I.highlight&&I.highlight(),I.traverse(function(k){k.type!=="group"&&k.setStyle("opacity",A)})}U.exports=p.extendChartView({type:"graph",init:function(M,S){var A=new w,I=new e,k=this.group;this._controller=new h(S.getZr()),this._controllerHost={target:k},k.add(A.group),k.add(I.group),this._symbolDraw=A,this._lineDraw=I,this._firstRender=!0},render:function(M,S,A){var I=M.coordinateSystem;this._model=M,this._nodeScaleRatio=M.get("nodeScaleRatio");var k=this._symbolDraw,D=this._lineDraw,L=this.group;if(I.type==="view"){var R={position:I.position,scale:I.scale};this._firstRender?L.attr(R):f.updateProps(L,R,M)}a(M.getGraph(),this._getNodeGlobalScale(M));var O=M.getData();k.updateData(O);var N=M.getEdgeData();D.updateData(N),this._updateNodeAndLinkScale(),this._updateController(M,S,A),clearTimeout(this._layoutTimeout);var z=M.forceLayout,V=M.get("force.layoutAnimation");z&&this._startForceLayoutIteration(z,V),O.eachItemGraphicEl(function(H,W){var $=O.getItemModel(W);H.off("drag").off("dragend");var Z=$.get("draggable");Z&&H.on("drag",function(){z&&(z.warmUp(),this._layouting||this._startForceLayoutIteration(z,V),z.setFixed(W),O.setItemLayout(W,H.position))},this).on("dragend",function(){z&&z.setUnfixed(W)},this),H.setDraggable(Z&&z),H[y]&&H.off("mouseover",H[y]),H[g]&&H.off("mouseout",H[g]),$.get("focusNodeAdjacency")&&(H.on("mouseover",H[y]=function(){A.dispatchAction({type:"focusNodeAdjacency",seriesId:M.id,dataIndex:H.dataIndex})}),H.on("mouseout",H[g]=function(){A.dispatchAction({type:"unfocusNodeAdjacency",seriesId:M.id})}))},this),O.graph.eachEdge(function(H){var W=H.getGraphicEl();W[y]&&W.off("mouseover",W[y]),W[g]&&W.off("mouseout",W[g]),H.getModel().get("focusNodeAdjacency")&&(W.on("mouseover",W[y]=function(){A.dispatchAction({type:"focusNodeAdjacency",seriesId:M.id,edgeDataIndex:H.dataIndex})}),W.on("mouseout",W[g]=function(){A.dispatchAction({type:"unfocusNodeAdjacency",seriesId:M.id})}))});var B=M.get("layout")==="circular"&&M.get("circular.rotateLabel"),G=O.getLayout("cx"),E=O.getLayout("cy");O.eachItemGraphicEl(function(H,W){var $=H.getSymbolPath();if(B){var Z=O.getItemLayout(W),Q=Math.atan2(Z[1]-E,Z[0]-G);Q<0&&(Q=2*Math.PI+Q);var Y=Z[0]<G;Y&&(Q-=Math.PI);var K=Y?"left":"right";$.setStyle({textRotation:-Q,textPosition:K,textOrigin:"center"}),$.hoverStyle&&($.hoverStyle.textPosition=K)}else $.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(M,S,A,I){var k=this._model.getData().graph,D=I.dataIndex,L=I.edgeDataIndex,R=k.getNodeByIndex(D),O=k.getEdgeByIndex(L);(R||O)&&(k.eachNode(function(N){m(N,c,.1)}),k.eachEdge(function(N){m(N,o,.1)}),R&&(_(R,c),T.each(R.edges,function(N){N.dataIndex<0||(_(N,o),_(N.node1,c),_(N.node2,c))})),O&&(_(O,o),_(O.node1,c),_(O.node2,c)))},unfocusNodeAdjacency:function(M,S,A,I){var k=this._model.getData().graph;k.eachNode(function(D){m(D,c)}),k.eachEdge(function(D){m(D,o)})},_startForceLayoutIteration:function(M,S){var A=this;(function I(){M.step(function(k){A.updateLayout(A._model),(A._layouting=!k)&&(S?A._layoutTimeout=setTimeout(I,16):I())})})()},_updateController:function(M,S,A){var I=this._controller,k=this._controllerHost,D=this.group;if(I.setPointerChecker(function(L,R,O){var N=D.getBoundingRect();return N.applyTransform(D.transform),N.contain(R,O)&&!t(L,A,M)}),M.coordinateSystem.type!=="view")return void I.disable();I.enable(M.get("roam")),k.zoomLimit=M.get("scaleLimit"),k.zoom=M.coordinateSystem.getZoom(),I.off("pan").off("zoom").on("pan",function(L){n.updateViewOnPan(k,L.dx,L.dy),A.dispatchAction({seriesId:M.id,type:"graphRoam",dx:L.dx,dy:L.dy})}).on("zoom",function(L){n.updateViewOnZoom(k,L.scale,L.originX,L.originY),A.dispatchAction({seriesId:M.id,type:"graphRoam",zoom:L.scale,originX:L.originX,originY:L.originY}),this._updateNodeAndLinkScale(),a(M.getGraph(),this._getNodeGlobalScale(M)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var M=this._model,S=M.getData(),A=this._getNodeGlobalScale(M),I=[A,A];S.eachItemGraphicEl(function(k,D){k.attr("scale",I)})},_getNodeGlobalScale:function(M){var S=M.coordinateSystem;if(S.type!=="view")return 1;var A=this._nodeScaleRatio,I=S.scale,k=I&&I[0]||1;return((S.getZoom()-1)*A+1)/k},updateLayout:function(M){a(M.getGraph(),this._getNodeGlobalScale(M)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(M,S){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}})},41147:function(U,C,b){var p=b(14141),T=b(76414),w=[],e=[],h=[],n=p.quadraticAt,t=T.distSquare,f=Math.abs;function a(y,g,c){for(var o,d=y[0],m=y[1],_=y[2],M=1/0,S=c*c,A=.1,I=.1;I<=.9;I+=.1){w[0]=n(d[0],m[0],_[0],I),w[1]=n(d[1],m[1],_[1],I);var k=f(t(w,g)-S);k<M&&(M=k,o=I)}for(var D=0;D<32;D++){var L=o+A;e[0]=n(d[0],m[0],_[0],o),e[1]=n(d[1],m[1],_[1],o),h[0]=n(d[0],m[0],_[0],L),h[1]=n(d[1],m[1],_[1],L);var k=t(e,g)-S;if(.01>f(k))break;var R=t(h,g)-S;A/=2,k<0?R>=0?o+=A:o-=A:R>=0?o-=A:o+=A}return o}U.exports=function(y,g){var c=[],o=p.quadraticSubdivide,d=[[],[],[]],m=[[],[]],_=[];function M(S){var A=S.getVisual("symbolSize");return A instanceof Array&&(A=(A[0]+A[1])/2),A}g/=2,y.eachEdge(function(S,A){var I=S.getLayout(),k=S.getVisual("fromSymbol"),D=S.getVisual("toSymbol");!I.__original&&(I.__original=[T.clone(I[0]),T.clone(I[1])],I[2]&&I.__original.push(T.clone(I[2])));var L=I.__original;if(I[2]!=null){if(T.copy(d[0],L[0]),T.copy(d[1],L[2]),T.copy(d[2],L[1]),k&&k!=="none"){var R=M(S.node1),O=a(d,L[0],R*g);o(d[0][0],d[1][0],d[2][0],O,c),d[0][0]=c[3],d[1][0]=c[4],o(d[0][1],d[1][1],d[2][1],O,c),d[0][1]=c[3],d[1][1]=c[4]}if(D&&D!=="none"){var R=M(S.node2),O=a(d,L[1],R*g);o(d[0][0],d[1][0],d[2][0],O,c),d[1][0]=c[1],d[2][0]=c[2],o(d[0][1],d[1][1],d[2][1],O,c),d[1][1]=c[1],d[2][1]=c[2]}T.copy(I[0],d[0]),T.copy(I[1],d[2]),T.copy(I[2],d[1])}else{if(T.copy(m[0],L[0]),T.copy(m[1],L[1]),T.sub(_,m[1],m[0]),T.normalize(_,_),k&&k!=="none"){var R=M(S.node1);T.scaleAndAdd(m[0],m[0],_,R*g)}if(D&&D!=="none"){var R=M(S.node2);T.scaleAndAdd(m[1],m[1],_,-R*g)}T.copy(I[0],m[0]),T.copy(I[1],m[1])}})}},6388:function(U){U.exports=function(C){var b=C.findComponents({mainType:"legend"});b&&b.length&&C.eachSeriesByType("graph",function(p){var T=p.getCategoriesData(),w=p.getGraph().data,e=T.mapArray(T.getName);w.filterSelf(function(h){var n=w.getItemModel(h).getShallow("category");if(n!=null){typeof n=="number"&&(n=e[n]);for(var t=0;t<b.length;t++)if(!b[t].isSelected(n))return!1}return!0})},this)}},17573:function(U){U.exports=function(C){var b={};C.eachSeriesByType("graph",function(p){var T=p.getCategoriesData(),w=p.getData(),e={};T.each(function(h){var n=T.getName(h);e["ec-"+n]=h;var t=T.getItemModel(h).get("itemStyle.color")||p.getColorFromPalette(n,b);T.setItemVisual(h,"color",t)}),T.count()&&w.each(function(h){var n=w.getItemModel(h).getShallow("category");n!=null&&(typeof n=="string"&&(n=e["ec-"+n]),w.getItemVisual(h,"color",!0)||w.setItemVisual(h,"color",T.getItemVisual(n,"color")))})})}},38375:function(U,C,b){var p=b(57899).circularLayout;U.exports=function(T){T.eachSeriesByType("graph",function(w){w.get("layout")==="circular"&&p(w)})}},57899:function(U,C,b){var p=b(76414);C.circularLayout=function(T){var w=T.coordinateSystem;if(!w||w.type==="view"){var e=w.getBoundingRect(),h=T.getData(),n=h.graph,t=0,f=h.getSum("value"),a=2*Math.PI/(f||h.count()),y=e.width/2+e.x,g=e.height/2+e.y,c=Math.min(e.width,e.height)/2;n.eachNode(function(o){var d=o.getValue("value");t+=a*(f?d:1)/2,o.setLayout([c*Math.cos(t)+y,c*Math.sin(t)+g]),t+=a*(f?d:1)/2}),h.setLayout({cx:y,cy:g}),n.eachEdge(function(o){var d,m=o.getModel().get("lineStyle.curveness")||0,_=p.clone(o.node1.getLayout()),M=p.clone(o.node2.getLayout()),S=(_[0]+M[0])/2,A=(_[1]+M[1])/2;+m&&(m*=3,d=[y*m+S*(1-m),g*m+A*(1-m)]),o.setLayout([_,M,d])})}}},96128:function(U,C,b){var p=b(42458),T=b(62751).getLayoutRect,w=b(6973);U.exports=function(e,h){var n=[];return e.eachSeriesByType("graph",function(t){var f=t.get("coordinateSystem");if(!f||f==="view"){var a,y=t.getData(),g=y.mapArray(function(k){var D=y.getItemModel(k);return[+D.get("x"),+D.get("y")]}),c=[],o=[];w.fromPoints(g,c,o),o[0]-c[0]==0&&(o[0]+=1,c[0]-=1),o[1]-c[1]==0&&(o[1]+=1,c[1]-=1);var d=(o[0]-c[0])/(o[1]-c[1]),m=((a=t.getBoxLayoutParams()).aspect=d,T(a,{width:h.getWidth(),height:h.getHeight()}));isNaN(d)&&(c=[m.x,m.y],o=[m.x+m.width,m.y+m.height]);var _=o[0]-c[0],M=o[1]-c[1],S=m.width,A=m.height,I=t.coordinateSystem=new p;I.zoomLimit=t.get("scaleLimit"),I.setBoundingRect(c[0],c[1],_,M),I.setViewRect(m.x,m.y,S,A),I.setCenter(t.get("center")),I.setZoom(t.get("zoom")),n.push(I)}}),n}},17183:function(U){function C(b){return b instanceof Array||(b=[b,b]),b}U.exports=function(b){b.eachSeriesByType("graph",function(p){var T=p.getGraph(),w=p.getEdgeData(),e=C(p.get("edgeSymbol")),h=C(p.get("edgeSymbolSize")),n="lineStyle.color".split("."),t="lineStyle.opacity".split(".");w.setVisual("fromSymbol",e&&e[0]),w.setVisual("toSymbol",e&&e[1]),w.setVisual("fromSymbolSize",h&&h[0]),w.setVisual("toSymbolSize",h&&h[1]),w.setVisual("color",p.get(n)),w.setVisual("opacity",p.get(t)),w.each(function(f){var a=w.getItemModel(f),y=T.getEdgeByIndex(f),g=C(a.getShallow("symbol",!0)),c=C(a.getShallow("symbolSize",!0)),o=a.get(n),d=a.get(t);switch(o){case"source":o=y.node1.getVisual("color");break;case"target":o=y.node2.getVisual("color")}g[0]&&y.setVisual("fromSymbol",g[0]),g[1]&&y.setVisual("toSymbol",g[1]),c[0]&&y.setVisual("fromSymbolSize",c[0]),c[1]&&y.setVisual("toSymbolSize",c[1]),y.setVisual("color",o),y.setVisual("opacity",d)})})}},87876:function(U,C,b){var p=b(76414),T=p.scaleAndAdd;C.forceLayout=function(w,e,h){for(var n=h.rect,t=n.width,f=n.height,a=[n.x+t/2,n.y+f/2],y=h.gravity==null?.1:h.gravity,g=0;g<w.length;g++){var c=w[g];c.p||(c.p=p.create(t*(Math.random()-.5)+a[0],f*(Math.random()-.5)+a[1])),c.pp=p.clone(c.p),c.edges=null}var o=.6;return{warmUp:function(){o=.5},setFixed:function(d){w[d].fixed=!0},setUnfixed:function(d){w[d].fixed=!1},step:function(d){for(var m=[],_=w.length,M=0;M<e.length;M++){var S=e[M],A=S.n1,I=S.n2;p.sub(m,I.p,A.p);var k=p.len(m)-S.d,D=I.w/(A.w+I.w);isNaN(D)&&(D=0),p.normalize(m,m),A.fixed||T(A.p,A.p,m,D*k*o),I.fixed||T(I.p,I.p,m,-(1-D)*k*o)}for(var M=0;M<_;M++){var L=w[M];L.fixed||(p.sub(m,a,L.p),T(L.p,L.p,m,y*o))}for(var M=0;M<_;M++)for(var A=w[M],R=M+1;R<_;R++){var I=w[R];p.sub(m,I.p,A.p);var k=p.len(m);k===0&&(p.set(m,Math.random()-.5,Math.random()-.5),k=1);var O=(A.rep+I.rep)/k/k;A.fixed||T(A.pp,A.pp,m,O),I.fixed||T(I.pp,I.pp,m,-O)}for(var N=[],M=0;M<_;M++){var L=w[M];L.fixed||(p.sub(N,L.p,L.pp),T(L.p,L.p,N,o),p.copy(L.pp,L.p))}o*=.992,d&&d(w,e,o<.01)}}}},49490:function(U,C,b){var p=b(87876).forceLayout,T=b(13021).simpleLayout,w=b(57899).circularLayout,e=b(54684).linearMap,h=b(76414),n=b(23405);U.exports=function(t){t.eachSeriesByType("graph",function(f){var a=f.coordinateSystem;if(!a||a.type==="view")if(f.get("layout")==="force"){var y=f.preservedPoints||{},g=f.getGraph(),c=g.data,o=g.edgeData,d=f.getModel("force"),m=d.get("initLayout");f.preservedPoints?c.each(function(O){var N=c.getId(O);c.setItemLayout(O,y[N]||[NaN,NaN])}):m&&m!=="none"?m==="circular"&&w(f):T(f);var _=c.getDataExtent("value"),M=o.getDataExtent("value"),S=d.get("repulsion"),A=d.get("edgeLength");n.isArray(S)||(S=[S,S]),n.isArray(A)||(A=[A,A]),A=[A[1],A[0]];var I=c.mapArray("value",function(O,N){var z=c.getItemLayout(N),V=e(O,_,S);return isNaN(V)&&(V=(S[0]+S[1])/2),{w:V,rep:V,fixed:c.getItemModel(N).get("fixed"),p:!z||isNaN(z[0])||isNaN(z[1])?null:z}}),k=o.mapArray("value",function(O,N){var z=g.getEdgeByIndex(N),V=e(O,M,A);return isNaN(V)&&(V=(A[0]+A[1])/2),{n1:I[z.node1.dataIndex],n2:I[z.node2.dataIndex],d:V,curveness:z.getModel().get("lineStyle.curveness")||0}}),a=f.coordinateSystem,D=p(I,k,{rect:a.getBoundingRect(),gravity:d.get("gravity")}),L=D.step;D.step=function(O){for(var N=0,z=I.length;N<z;N++)I[N].fixed&&h.copy(I[N].p,g.getNodeByIndex(N).getLayout());L(function(V,B,G){for(var E=0,H=V.length;E<H;E++)V[E].fixed||g.getNodeByIndex(E).setLayout(V[E].p),y[c.getId(E)]=V[E].p;for(var E=0,H=B.length;E<H;E++){var W=B[E],$=g.getEdgeByIndex(E),Z=W.n1.p,Q=W.n2.p,Y=$.getLayout();(Y=Y?Y.slice():[])[0]=Y[0]||[],Y[1]=Y[1]||[],h.copy(Y[0],Z),h.copy(Y[1],Q),+W.curveness&&(Y[2]=[(Z[0]+Q[0])/2-(Z[1]-Q[1])*W.curveness,(Z[1]+Q[1])/2-(Q[0]-Z[0])*W.curveness]),$.setLayout(Y)}O&&O(G)})},f.forceLayout=D,f.preservedPoints=y,D.step()}else f.forceLayout=null})}},34877:function(U,C,b){var p=b(87930),T=b(7207).updateCenterAndZoom;b(93191),p.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(w,e){e.eachComponent({mainType:"series",query:w},function(h){var n=T(h.coordinateSystem,w);h.setCenter&&h.setCenter(n.center),h.setZoom&&h.setZoom(n.zoom)})})},86759:function(U,C,b){var p=b(23405).each,T=b(13021),w=T.simpleLayout,e=T.simpleLayoutEdge;U.exports=function(h,n){h.eachSeriesByType("graph",function(t){var f=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var y=t.getData(),g=[];p(a.dimensions,function(M){g=g.concat(y.mapDimension(M,!0))});for(var c=0;c<y.count();c++){for(var o=[],d=!1,m=0;m<g.length;m++){var _=y.get(g[m],c);isNaN(_)||(d=!0),o.push(_)}d?y.setItemLayout(c,a.dataToPoint(o)):y.setItemLayout(c,[NaN,NaN])}e(y.graph)}else f&&f!=="none"||w(t)})}},13021:function(U,C,b){var p=b(76414);function T(w){w.eachEdge(function(e){var h=e.getModel().get("lineStyle.curveness")||0,n=p.clone(e.node1.getLayout()),t=p.clone(e.node2.getLayout()),f=[n,t];+h&&f.push([(n[0]+t[0])/2-(n[1]-t[1])*h,(n[1]+t[1])/2-(t[0]-n[0])*h]),e.setLayout(f)})}C.simpleLayout=function(w){var e=w.coordinateSystem;if(!e||e.type==="view"){var h=w.getGraph();h.eachNode(function(n){var t=n.getModel();n.setLayout([+t.get("x"),+t.get("y")])}),T(h)}},C.simpleLayoutEdge=T},67881:function(U,C,b){b(45227),b(41024)},80415:function(U,C,b){var p=b(23405);function T(){var w=p.createCanvas();this.canvas=w,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}T.prototype={update:function(w,e,h,n,t,f){var a=this._getBrush(),y=this._getGradient(w,t,"inRange"),g=this._getGradient(w,t,"outOfRange"),c=this.pointSize+this.blurSize,o=this.canvas,d=o.getContext("2d"),m=w.length;o.width=e,o.height=h;for(var _=0;_<m;++_){var M=w[_],S=M[0],A=M[1],I=n(M[2]);d.globalAlpha=I,d.drawImage(a,S-c,A-c)}if(!o.width||!o.height)return o;for(var k=d.getImageData(0,0,o.width,o.height),D=k.data,L=0,R=D.length,O=this.minOpacity,N=this.maxOpacity-O;L<R;){var I=D[L+3]/256,z=4*Math.floor(255*I);if(I>0){var V=f(I)?y:g;I>0&&(I=I*N+O),D[L++]=V[z],D[L++]=V[z+1],D[L++]=V[z+2],D[L++]=V[z+3]*I*256}else L+=4}return d.putImageData(k,0,0),o},_getBrush:function(){var w=this._brushCanvas||(this._brushCanvas=p.createCanvas()),e=this.pointSize+this.blurSize,h=2*e;w.width=h,w.height=h;var n=w.getContext("2d");return n.clearRect(0,0,h,h),n.shadowOffsetX=h,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),w},_getGradient:function(w,e,h){for(var n=this._gradientPixels,t=n[h]||(n[h]=new Uint8ClampedArray(1024)),f=[0,0,0,0],a=0,y=0;y<256;y++)e[h](y/255,!0,f),t[a++]=f[0],t[a++]=f[1],t[a++]=f[2],t[a++]=f[3];return t}},U.exports=T},45227:function(U,C,b){var p=b(95166),T=b(74107),w=b(17234);U.exports=p.extend({type:"series.heatmap",getInitialData:function(e,h){return T(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=w.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},41024:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(51747),w=b(80415),e=b(23405);U.exports=p.extendChartView({type:"heatmap",render:function(h,n,t){n.eachComponent("visualMap",function(g){g.eachTargetSeries(function(c){c===h&&(a=g)})}),this.group.removeAll(),this._incrementalDisplayable=null;var f,a,y=h.coordinateSystem;y.type==="cartesian2d"||y.type==="calendar"?this._renderOnCartesianAndCalendar(h,t,0,h.getData().count()):(f=y.dimensions)[0]==="lng"&&f[1]==="lat"&&this._renderOnGeo(y,h,a,t)},incrementalPrepareRender:function(h,n,t){this.group.removeAll()},incrementalRender:function(h,n,t,f){n.coordinateSystem&&this._renderOnCartesianAndCalendar(n,f,h.start,h.end,!0)},_renderOnCartesianAndCalendar:function(h,n,t,f,a){var y=h.coordinateSystem;if(y.type==="cartesian2d"){var g=y.getAxis("x"),c=y.getAxis("y");N=g.getBandWidth(),z=c.getBandWidth()}for(var o=this.group,d=h.getData(),m="itemStyle",_="emphasis.itemStyle",M="label",S="emphasis.label",A=h.getModel(m).getItemStyle(["color"]),I=h.getModel(_).getItemStyle(),k=h.getModel(M),D=h.getModel(S),L=y.type,R=L==="cartesian2d"?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],O=t;O<f;O++){if(L==="cartesian2d"){if(isNaN(d.get(R[2],O)))continue;var N,z,V,B=y.dataToPoint([d.get(R[0],O),d.get(R[1],O)]);V=new T.Rect({shape:{x:B[0]-N/2,y:B[1]-z/2,width:N,height:z},style:{fill:d.getItemVisual(O,"color"),opacity:d.getItemVisual(O,"opacity")}})}else{if(isNaN(d.get(R[1],O)))continue;V=new T.Rect({z2:1,shape:y.dataToRect([d.get(R[0],O)]).contentShape,style:{fill:d.getItemVisual(O,"color"),opacity:d.getItemVisual(O,"opacity")}})}var G=d.getItemModel(O);d.hasItemOption&&(A=G.getModel(m).getItemStyle(["color"]),I=G.getModel(_).getItemStyle(),k=G.getModel(M),D=G.getModel(S));var E=h.getRawValue(O),H="-";E&&E[2]!=null&&(H=E[2]),T.setLabelStyle(A,I,k,D,{labelFetcher:h,labelDataIndex:O,defaultText:H,isRectText:!0}),V.setStyle(A),T.setHoverStyle(V,d.hasItemOption?I:e.extend({},I)),V.incremental=a,a&&(V.useHoverLayer=!0),o.add(V),d.setItemGraphicEl(O,V)}},_renderOnGeo:function(h,n,t,f){var a,y,g,c,o,d,m,_=t.targetVisuals.inRange,M=t.targetVisuals.outOfRange,S=n.getData(),A=this._hmLayer||this._hmLayer||new w;A.blurSize=n.get("blurSize"),A.pointSize=n.get("pointSize"),A.minOpacity=n.get("minOpacity"),A.maxOpacity=n.get("maxOpacity");var I=h.getViewRect().clone(),k=h.getRoamTransform();I.applyTransform(k);var D=Math.max(I.x,0),L=Math.max(I.y,0),R=Math.min(I.width+I.x,f.getWidth()),O=Math.min(I.height+I.y,f.getHeight()),N=R-D,z=O-L,V=[S.mapDimension("lng"),S.mapDimension("lat"),S.mapDimension("value")],B=S.mapArray(V,function(W,$,Z){var Q=h.dataToPoint([W,$]);return Q[0]-=D,Q[1]-=L,Q.push(Z),Q}),G=t.getExtent(),E=t.type==="visualMap.continuous"?(a=t.option.range,y=G[1]-G[0],a=[(a[0]-G[0])/y,(a[1]-G[0])/y],function(W){return W>=a[0]&&W<=a[1]}):(g=t.getPieceList(),c=t.option.selected,o=G[1]-G[0],d=(g=e.map(g,function(W){return{interval:[(W.interval[0]-G[0])/o,(W.interval[1]-G[0])/o]}})).length,m=0,function(W){for(var $=m;$<d;$++){var Z=g[$].interval;if(Z[0]<=W&&W<=Z[1]){m=$;break}}if($===d)for(var $=m-1;$>=0;$--){var Z=g[$].interval;if(Z[0]<=W&&W<=Z[1]){m=$;break}}return $>=0&&$<d&&c[$]});A.update(B,N,z,_.color.getNormalizer(),{inRange:_.color.getColorMapper(),outOfRange:M.color.getColorMapper()},E);var H=new T.Image({style:{width:N,height:z,x:D,y:L,image:A.canvas},silent:!0});this.group.add(H)},dispose:function(){}})},91413:function(U,C,b){var p=b(51747),T=b(36399),w=b(23405),e=b(30696).createSymbol,h=b(76414),n=b(14141);function t(a,y,g){p.Group.call(this),this.add(this.createLine(a,y,g)),this._updateEffectSymbol(a,y)}var f=t.prototype;f.createLine=function(a,y,g){return new T(a,y,g)},f._updateEffectSymbol=function(a,y){var g=a.getItemModel(y).getModel("effect"),c=g.get("symbolSize"),o=g.get("symbol");w.isArray(c)||(c=[c,c]);var d=g.get("color")||a.getItemVisual(y,"color"),m=this.childAt(1);this._symbolType!==o&&(this.remove(m),(m=e(o,-.5,-.5,1,1,d)).z2=100,m.culling=!0,this.add(m)),m&&(m.setStyle("shadowColor",d),m.setStyle(g.getItemStyle(["color"])),m.attr("scale",c),m.setColor(d),m.attr("scale",c),this._symbolType=o,this._updateEffectAnimation(a,g,y))},f._updateEffectAnimation=function(a,y,g){var c=this.childAt(1);if(c){var o=this,d=a.getItemLayout(g),m=1e3*y.get("period"),_=y.get("loop"),M=y.get("constantSpeed"),S=w.retrieve(y.get("delay"),function(D){return D/a.count()*m/3}),A=typeof S=="function";if(c.ignore=!0,this.updateAnimationPoints(c,d),M>0&&(m=this.getLineLength(c)/M*1e3),m!==this._period||_!==this._loop){c.stopAnimation();var I=S;A&&(I=S(g)),c.__t>0&&(I=-m*c.__t),c.__t=0;var k=c.animate("",_).when(m,{__t:1}).delay(I).during(function(){o.updateSymbolPosition(c)});_||k.done(function(){o.remove(c)}),k.start()}this._period=m,this._loop=_}},f.getLineLength=function(a){return h.dist(a.__p1,a.__cp1)+h.dist(a.__cp1,a.__p2)},f.updateAnimationPoints=function(a,y){a.__p1=y[0],a.__p2=y[1],a.__cp1=y[2]||[(y[0][0]+y[1][0])/2,(y[0][1]+y[1][1])/2]},f.updateData=function(a,y,g){this.childAt(0).updateData(a,y,g),this._updateEffectSymbol(a,y)},f.updateSymbolPosition=function(a){var y=a.__p1,g=a.__p2,c=a.__cp1,o=a.__t,d=a.position,m=n.quadraticAt,_=n.quadraticDerivativeAt;d[0]=m(y[0],c[0],g[0],o),d[1]=m(y[1],c[1],g[1],o);var M=_(y[0],c[0],g[0],o);a.rotation=-Math.atan2(_(y[1],c[1],g[1],o),M)-Math.PI/2,a.ignore=!1},f.updateLayout=function(a,y){this.childAt(0).updateLayout(a,y);var g=a.getItemModel(y).getModel("effect");this._updateEffectAnimation(a,g,y)},w.inherits(t,p.Group),U.exports=t},2095:function(U,C,b){var p=b(6137),T=b(23405),w=b(91413),e=b(76414);function h(t,f,a){w.call(this,t,f,a),this._lastFrame=0,this._lastFramePercent=0}var n=h.prototype;n.createLine=function(t,f,a){return new p(t,f,a)},n.updateAnimationPoints=function(t,f){this._points=f;for(var a=[0],y=0,g=1;g<f.length;g++){var c=f[g-1],o=f[g];y+=e.dist(c,o),a.push(y)}if(y!==0){for(var g=0;g<a.length;g++)a[g]/=y;this._offsets=a,this._length=y}},n.getLineLength=function(t){return this._length},n.updateSymbolPosition=function(t){var f,a=t.__t,y=this._points,g=this._offsets,c=y.length;if(g){var o=this._lastFrame;if(a<this._lastFramePercent){for(f=Math.min(o+1,c-1);f>=0&&!(g[f]<=a);f--);f=Math.min(f,c-2)}else{for(var f=o;f<c&&!(g[f]>a);f++);f=Math.min(f-1,c-2)}e.lerp(t.position,y[f],y[f+1],(a-g[f])/(g[f+1]-g[f]));var d=y[f+1][0]-y[f][0];t.rotation=-Math.atan2(y[f+1][1]-y[f][1],d)-Math.PI/2,this._lastFrame=f,this._lastFramePercent=a,t.ignore=!1}},T.inherits(h,w),U.exports=h},99939:function(U,C,b){var p=b(23405),T=b(30696).createSymbol,w=b(51747).Group,e=b(54684).parsePercent,h=b(59470);function n(a,y){a.eachChild(function(g){g.attr({z:y.z,zlevel:y.zlevel,style:{stroke:y.brushType==="stroke"?y.color:null,fill:y.brushType==="fill"?y.color:null}})})}function t(a,y){w.call(this);var g=new h(a,y),c=new w;this.add(g),this.add(c),c.beforeUpdate=function(){this.attr(g.getScale())},this.updateData(a,y)}var f=t.prototype;f.stopEffectAnimation=function(){this.childAt(1).removeAll()},f.startEffectAnimation=function(a){for(var y=a.symbolType,g=a.color,c=this.childAt(1),o=0;o<3;o++){var d=T(y,-1,-1,2,2,g);d.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var m=-o/3*a.period+a.effectOffset;d.animate("",!0).when(a.period,{scale:[a.rippleScale/2,a.rippleScale/2]}).delay(m).start(),d.animateStyle(!0).when(a.period,{opacity:0}).delay(m).start(),c.add(d)}n(c,a)},f.updateEffectAnimation=function(a){for(var y=this._effectCfg,g=this.childAt(1),c=["symbolType","period","rippleScale"],o=0;o<c.length;o++){var d=c[o];if(y[d]!==a[d]){this.stopEffectAnimation(),this.startEffectAnimation(a);return}}n(g,a)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){this.trigger("normal")},f.updateData=function(a,y){var g,c=a.hostModel;this.childAt(0).updateData(a,y);var o=this.childAt(1),d=a.getItemModel(y),m=a.getItemVisual(y,"symbol"),_=(g=a.getItemVisual(y,"symbolSize"),p.isArray(g)||(g=[+g,+g]),g),M=a.getItemVisual(y,"color");o.attr("scale",_),o.traverse(function(R){R.attr({fill:M})});var S=d.getShallow("symbolOffset");if(S){var A=o.position;A[0]=e(S[0],_[0]),A[1]=e(S[1],_[1])}o.rotation=(d.getShallow("symbolRotate")||0)*Math.PI/180||0;var I={};if(I.showEffectOn=c.get("showEffectOn"),I.rippleScale=d.get("rippleEffect.scale"),I.brushType=d.get("rippleEffect.brushType"),I.period=1e3*d.get("rippleEffect.period"),I.effectOffset=y/a.count(),I.z=d.getShallow("z")||0,I.zlevel=d.getShallow("zlevel")||0,I.symbolType=m,I.color=M,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),I.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(I):this.startEffectAnimation(I),this._effectCfg=I;else{this._effectCfg=null,this.stopEffectAnimation();var k=this.childAt(0),D=function(){k.highlight(),I.showEffectOn!=="render"&&this.startEffectAnimation(I)},L=function(){k.downplay(),I.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",D,this).on("mouseout",L,this).on("emphasis",D,this).on("normal",L,this)}this._effectCfg=I},f.fadeOut=function(a){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),a&&a()},p.inherits(t,w),U.exports=t},45738:function(U,C,b){var p=b(51747),T=b(95028),w=b(41814),e=b(87697),h=p.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(f,a){var y=a.segs,g=a.curveness;if(a.polyline)for(var c=0;c<y.length;){var o=y[c++];if(o>0){f.moveTo(y[c++],y[c++]);for(var d=1;d<o;d++)f.lineTo(y[c++],y[c++])}}else for(var c=0;c<y.length;){var m=y[c++],_=y[c++],M=y[c++],S=y[c++];if(f.moveTo(m,_),g>0){var A=(m+M)/2-(_-S)*g,I=(_+S)/2-(M-m)*g;f.quadraticCurveTo(A,I,M,S)}else f.lineTo(M,S)}},findDataIndex:function(f,a){var y=this.shape,g=y.segs,c=y.curveness;if(y.polyline)for(var o=0,d=0;d<g.length;){var m=g[d++];if(m>0)for(var _=g[d++],M=g[d++],S=1;S<m;S++){var A=g[d++],I=g[d++];if(w.containStroke(_,M,A,I))return o}o++}else for(var o=0,d=0;d<g.length;){var _=g[d++],M=g[d++],A=g[d++],I=g[d++];if(c>0){var k=(_+A)/2-(M-I)*c,D=(M+I)/2-(A-_)*c;if(e.containStroke(_,M,k,D,A,I))return o}else if(w.containStroke(_,M,A,I))return o;o++}return-1}});function n(){this.group=new p.Group}var t=n.prototype;t.isPersistent=function(){return!this._incremental},t.updateData=function(f){this.group.removeAll();var a=new h({rectHover:!0,cursor:"default"});a.setShape({segs:f.getLayout("linesPoints")}),this._setCommon(a,f),this.group.add(a),this._incremental=null},t.incrementalPrepareUpdate=function(f){this.group.removeAll(),this._clearIncremental(),f.count()>5e5?(this._incremental||(this._incremental=new T({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.incrementalUpdate=function(f,a){var y=new h;y.setShape({segs:a.getLayout("linesPoints")}),this._setCommon(y,a,!!this._incremental),this._incremental?this._incremental.addDisplayable(y,!0):(y.rectHover=!0,y.cursor="default",y.__startIndex=f.start,this.group.add(y))},t.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t._setCommon=function(f,a,y){var g=a.hostModel;f.setShape({polyline:g.get("polyline"),curveness:g.get("lineStyle.curveness")}),f.useStyle(g.getModel("lineStyle").getLineStyle()),f.style.strokeNoScale=!0;var c=a.getVisual("color");c&&f.setStyle("stroke",c),f.setStyle("fill"),y||(f.seriesIndex=g.seriesIndex,f.on("mousemove",function(o){f.dataIndex=null;var d=f.findDataIndex(o.offsetX,o.offsetY);d>0&&(f.dataIndex=d+f.__startIndex)}))},t._clearIncremental=function(){var f=this._incremental;f&&f.clearDisplaybles()},U.exports=n},72631:function(U,C,b){var p=b(51747),T=b(30696).createSymbol,w=b(95028),e=p.extendShape({shape:{points:null},symbolProxy:null,buildPath:function(t,f){var a=f.points,y=f.size,g=this.symbolProxy,c=g.shape;if(!((t.getContext?t.getContext():t)&&y[0]<4))for(var o=0;o<a.length;){var d=a[o++],m=a[o++];isNaN(d)||isNaN(m)||(c.x=d-y[0]/2,c.y=m-y[1]/2,c.width=y[0],c.height=y[1],g.buildPath(t,c,!0))}},afterBrush:function(t){var f=this.shape,a=f.points,y=f.size;if(y[0]<4){this.setTransform(t);for(var g=0;g<a.length;){var c=a[g++],o=a[g++];isNaN(c)||isNaN(o)||t.fillRect(c-y[0]/2,o-y[1]/2,y[0],y[1])}this.restoreTransform(t)}},findDataIndex:function(t,f){for(var a=this.shape,y=a.points,g=a.size,c=Math.max(g[0],4),o=Math.max(g[1],4),d=y.length/2-1;d>=0;d--){var m=2*d,_=y[m]-c/2,M=y[m+1]-o/2;if(t>=_&&f>=M&&t<=_+c&&f<=M+o)return d}return-1}});function h(){this.group=new p.Group}var n=h.prototype;n.isPersistent=function(){return!this._incremental},n.updateData=function(t){this.group.removeAll();var f=new e({rectHover:!0,cursor:"default"});f.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(f,t),this.group.add(f),this._incremental=null},n.updateLayout=function(t){if(!this._incremental){var f=t.getLayout("symbolPoints");this.group.eachChild(function(a){if(a.startIndex!=null){var y=(a.endIndex-a.startIndex)*2,g=4*a.startIndex*2;f=new Float32Array(f.buffer,g,y)}a.setShape("points",f)})}},n.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new w({silent:!0})),this.group.add(this._incremental)):this._incremental=null},n.incrementalUpdate=function(t,f){var a;this._incremental?(a=new e,this._incremental.addDisplayable(a,!0)):((a=new e({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(a)),a.setShape({points:f.getLayout("symbolPoints")}),this._setCommon(a,f,!!this._incremental)},n._setCommon=function(t,f,a){var y=f.hostModel,g=f.getVisual("symbolSize");t.setShape("size",g instanceof Array?g:[g,g]),t.symbolProxy=T(f.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var c=t.shape.size[0]<4;t.useStyle(y.getModel("itemStyle").getItemStyle(c?["color","shadowBlur","shadowColor"]:["color"]));var o=f.getVisual("color");o&&t.setColor(o),a||(t.seriesIndex=y.seriesIndex,t.on("mousemove",function(d){t.dataIndex=null;var m=t.findDataIndex(d.offsetX,d.offsetY);m>=0&&(t.dataIndex=m+(t.startIndex||0))}))},n.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},n._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},U.exports=h},36399:function(U,C,b){var p=b(23405),T=b(76414),w=b(30696),e=b(70262),h=b(51747),n=b(54684).round,t=["fromSymbol","toSymbol"];function f(o){return"_"+o+"Type"}function a(o,d,m){var _=d.getItemVisual(m,"color"),M=d.getItemVisual(m,o),S=d.getItemVisual(m,o+"Size");if(M&&M!=="none"){p.isArray(S)||(S=[S,S]);var A=w.createSymbol(M,-S[0]/2,-S[1]/2,S[0],S[1],_);return A.name=o,A}}function y(o,d){var m=d[0],_=d[1],M=d[2];o.x1=m[0],o.y1=m[1],o.x2=_[0],o.y2=_[1],o.percent=1,M?(o.cpx1=M[0],o.cpy1=M[1]):(o.cpx1=NaN,o.cpy1=NaN)}function g(o,d,m){h.Group.call(this),this._createLine(o,d,m)}var c=g.prototype;c.beforeUpdate=function(){var o=this.childOfName("fromSymbol"),d=this.childOfName("toSymbol"),m=this.childOfName("label");if(o||d||!m.ignore){for(var _=1,M=this.parent;M;)M.scale&&(_/=M.scale[0]),M=M.parent;var S=this.childOfName("line");if(this.__dirty||S.__dirty){var A=S.shape.percent,I=S.pointAt(0),k=S.pointAt(A),D=T.sub([],k,I);if(T.normalize(D,D),o){o.attr("position",I);var L=S.tangentAt(0);o.attr("rotation",Math.PI/2-Math.atan2(L[1],L[0])),o.attr("scale",[_*A,_*A])}if(d){d.attr("position",k);var L=S.tangentAt(1);d.attr("rotation",-Math.PI/2-Math.atan2(L[1],L[0])),d.attr("scale",[_*A,_*A])}if(!m.ignore){m.attr("position",k);var R,O,N,z=5*_;if(m.__position==="end")R=[D[0]*z+k[0],D[1]*z+k[1]],O=D[0]>.8?"left":D[0]<-.8?"right":"center",N=D[1]>.8?"top":D[1]<-.8?"bottom":"middle";else if(m.__position==="middle"){var V=A/2,L=S.tangentAt(V),B=[L[1],-L[0]],G=S.pointAt(V);B[1]>0&&(B[0]=-B[0],B[1]=-B[1]),R=[G[0]+B[0]*z,G[1]+B[1]*z],O="center",N="bottom";var E=-Math.atan2(L[1],L[0]);k[0]<I[0]&&(E=Math.PI+E),m.attr("rotation",E)}else R=[-D[0]*z+I[0],-D[1]*z+I[1]],O=D[0]>.8?"right":D[0]<-.8?"left":"center",N=D[1]>.8?"bottom":D[1]<-.8?"top":"middle";m.attr({style:{textVerticalAlign:m.__verticalAlign||N,textAlign:m.__textAlign||O},position:R,scale:[_,_]})}}}},c._createLine=function(o,d,m){var _,M,S=o.hostModel,A=(_=o.getItemLayout(d),y((M=new e({name:"line"})).shape,_),M);A.shape.percent=0,h.initProps(A,{shape:{percent:1}},S,d),this.add(A);var I=new h.Text({name:"label",lineLabelOriginalOpacity:1});this.add(I),p.each(t,function(k){var D=a(k,o,d);this.add(D),this[f(k)]=o.getItemVisual(d,k)},this),this._updateCommonStl(o,d,m)},c.updateData=function(o,d,m){var _=o.hostModel,M=this.childOfName("line"),S=o.getItemLayout(d),A={shape:{}};y(A.shape,S),h.updateProps(M,A,_,d),p.each(t,function(I){var k=o.getItemVisual(d,I),D=f(I);if(this[D]!==k){this.remove(this.childOfName(I));var L=a(I,o,d);this.add(L)}this[D]=k},this),this._updateCommonStl(o,d,m)},c._updateCommonStl=function(o,d,m){var _,M,S=o.hostModel,A=this.childOfName("line"),I=m&&m.lineStyle,k=m&&m.hoverLineStyle,D=m&&m.labelModel,L=m&&m.hoverLabelModel;if(!m||o.hasItemOption){var R=o.getItemModel(d);I=R.getModel("lineStyle").getLineStyle(),k=R.getModel("emphasis.lineStyle").getLineStyle(),D=R.getModel("label"),L=R.getModel("emphasis.label")}var O=o.getItemVisual(d,"color"),N=p.retrieve3(o.getItemVisual(d,"opacity"),I.opacity,1);A.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:O,opacity:N},I)),A.hoverStyle=k,p.each(t,function($){var Z=this.childOfName($);Z&&(Z.setColor(O),Z.setStyle({opacity:N}))},this);var z=D.getShallow("show"),V=L.getShallow("show"),B=this.childOfName("label");if((z||V)&&(_=O||"#000",(M=S.getFormattedLabel(d,"normal",o.dataType))==null)){var G=S.getRawValue(d);M=G==null?o.getName(d):isFinite(G)?n(G):G}var E=z?M:null,H=V?p.retrieve2(S.getFormattedLabel(d,"emphasis",o.dataType),M):null,W=B.style;(E!=null||H!=null)&&(h.setTextStyle(B.style,D,{text:E},{autoColor:_}),B.__textAlign=W.textAlign,B.__verticalAlign=W.textVerticalAlign,B.__position=D.get("position")||"middle"),H!=null?B.hoverStyle={text:H,textFill:L.getTextColor(!0),fontStyle:L.getShallow("fontStyle"),fontWeight:L.getShallow("fontWeight"),fontSize:L.getShallow("fontSize"),fontFamily:L.getShallow("fontFamily")}:B.hoverStyle={text:null},B.ignore=!z&&!V,h.setHoverStyle(this)},c.highlight=function(){this.trigger("emphasis")},c.downplay=function(){this.trigger("normal")},c.updateLayout=function(o,d){this.setLinePoints(o.getItemLayout(d))},c.setLinePoints=function(o){var d=this.childOfName("line");y(d.shape,o),d.dirty()},p.inherits(g,h.Group),U.exports=g},61880:function(U,C,b){var p=b(51747),T=b(36399);function w(f){this._ctor=f||T,this.group=new p.Group}var e=w.prototype;function h(f){var a=f.hostModel;return{lineStyle:a.getModel("lineStyle").getLineStyle(),hoverLineStyle:a.getModel("emphasis.lineStyle").getLineStyle(),labelModel:a.getModel("label"),hoverLabelModel:a.getModel("emphasis.label")}}function n(f){return isNaN(f[0])||isNaN(f[1])}function t(f){return!n(f[0])&&!n(f[1])}e.isPersistent=function(){return!0},e.updateData=function(f){var a=this,y=a.group,g=a._lineData;a._lineData=f,g||y.removeAll();var c=h(f);f.diff(g).add(function(o){var d=a,m=f,_=o,M=c;if(t(m.getItemLayout(_))){var S=new d._ctor(m,_,M);m.setItemGraphicEl(_,S),d.group.add(S)}}).update(function(o,d){(function(m,_,M,S,A,I){var k=_.getItemGraphicEl(S);if(!t(M.getItemLayout(A)))return m.group.remove(k);k?k.updateData(M,A,I):k=new m._ctor(M,A,I),M.setItemGraphicEl(A,k),m.group.add(k)})(a,g,f,d,o,c)}).remove(function(o){y.remove(g.getItemGraphicEl(o))}).execute()},e.updateLayout=function(){var f=this._lineData;f&&f.eachItemGraphicEl(function(a,y){a.updateLayout(f,y)},this)},e.incrementalPrepareUpdate=function(f){this._seriesScope=h(f),this._lineData=null,this.group.removeAll()},e.incrementalUpdate=function(f,a){function y(o){o.isGroup||(o.incremental=o.useHoverLayer=!0)}for(var g=f.start;g<f.end;g++)if(t(a.getItemLayout(g))){var c=new this._ctor(a,g,this._seriesScope);c.traverse(y),this.group.add(c),a.setItemGraphicEl(g,c)}},e.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e._clearIncremental=function(){var f=this._incremental;f&&f.clearDisplaybles()},U.exports=w},70262:function(U,C,b){var p=b(51747),T=b(76414),w=p.Line.prototype,e=p.BezierCurve.prototype;function h(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}U.exports=p.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(n,t){(h(t)?w:e).buildPath(n,t)},pointAt:function(n){return h(this.shape)?w.pointAt.call(this,n):e.pointAt.call(this,n)},tangentAt:function(n){var t=this.shape,f=h(t)?[t.x2-t.x1,t.y2-t.y1]:e.tangentAt.call(this,n);return T.normalize(f,f)}})},6137:function(U,C,b){var p=b(51747),T=b(23405);function w(h,n,t){p.Group.call(this),this._createPolyline(h,n,t)}var e=w.prototype;e._createPolyline=function(h,n,t){var f=h.getItemLayout(n),a=new p.Polyline({shape:{points:f}});this.add(a),this._updateCommonStl(h,n,t)},e.updateData=function(h,n,t){var f=h.hostModel,a=this.childAt(0),y={shape:{points:h.getItemLayout(n)}};p.updateProps(a,y,f,n),this._updateCommonStl(h,n,t)},e._updateCommonStl=function(h,n,t){var f=this.childAt(0),a=h.getItemModel(n),y=h.getItemVisual(n,"color"),g=t&&t.lineStyle,c=t&&t.hoverLineStyle;(!t||h.hasItemOption)&&(g=a.getModel("lineStyle").getLineStyle(),c=a.getModel("emphasis.lineStyle").getLineStyle()),f.useStyle(T.defaults({strokeNoScale:!0,fill:"none",stroke:y},g)),f.hoverStyle=c,p.setHoverStyle(this)},e.updateLayout=function(h,n){this.childAt(0).setShape("points",h.getItemLayout(n))},T.inherits(w,p.Group),U.exports=w},59470:function(U,C,b){var p=b(23405),T=b(30696).createSymbol,w=b(51747),e=b(54684).parsePercent,h=b(73444).getDefaultLabel;function n(A,I,k){w.Group.call(this),this.updateData(A,I,k)}var t=n.prototype,f=n.getSymbolSize=function(A,I){var k=A.getItemVisual(I,"symbolSize");return k instanceof Array?k.slice():[+k,+k]};function a(A){return[A[0]/2,A[1]/2]}function y(A,I){this.parent.drift(A,I)}t._createSymbol=function(A,I,k,D,L){this.removeAll();var R=T(A,-1,-1,2,2,I.getItemVisual(k,"color"),L);R.attr({z2:100,culling:!0,scale:a(D)}),R.drift=y,this._symbolType=A,this.add(R)},t.stopSymbolAnimation=function(A){this.childAt(0).stopAnimation(A)},t.getSymbolPath=function(){return this.childAt(0)},t.getScale=function(){return this.childAt(0).scale},t.highlight=function(){this.childAt(0).trigger("emphasis")},t.downplay=function(){this.childAt(0).trigger("normal")},t.setZ=function(A,I){var k=this.childAt(0);k.zlevel=A,k.z=I},t.setDraggable=function(A){var I=this.childAt(0);I.draggable=A,I.cursor=A?"move":"pointer"},t.updateData=function(A,I,k){this.silent=!1;var D=A.getItemVisual(I,"symbol")||"circle",L=A.hostModel,R=f(A,I),O=D!==this._symbolType;if(O){var N=A.getItemVisual(I,"symbolKeepAspect");this._createSymbol(D,A,I,R,N)}else{var z=this.childAt(0);z.silent=!1,w.updateProps(z,{scale:a(R)},L,I)}if(this._updateCommon(A,I,R,k),O){var z=this.childAt(0),V=k&&k.fadeIn,B={scale:z.scale.slice()};V&&(B.style={opacity:z.style.opacity}),z.scale=[0,0],V&&(z.style.opacity=0),w.initProps(z,B,L,I)}this._seriesModel=L};var g=["itemStyle"],c=["emphasis","itemStyle"],o=["label"],d=["emphasis","label"];function m(){w.isInEmphasis(this)||M.call(this)}function _(){w.isInEmphasis(this)||S.call(this)}function M(){if(!this.incremental&&!this.useHoverLayer){var A=this.__symbolOriginalScale,I=A[1]/A[0];this.animateTo({scale:[Math.max(1.1*A[0],A[0]+3),Math.max(1.1*A[1],A[1]+3*I)]},400,"elasticOut")}}function S(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}t._updateCommon=function(A,I,k,D){var L=this.childAt(0),R=A.hostModel,O=A.getItemVisual(I,"color");L.type!=="image"&&L.useStyle({strokeNoScale:!0});var N=D&&D.itemStyle,z=D&&D.hoverItemStyle,V=D&&D.symbolRotate,B=D&&D.symbolOffset,G=D&&D.labelModel,E=D&&D.hoverLabelModel,H=D&&D.hoverAnimation,W=D&&D.cursorStyle;if(!D||A.hasItemOption){var $=D&&D.itemModel?D.itemModel:A.getItemModel(I);N=$.getModel(g).getItemStyle(["color"]),z=$.getModel(c).getItemStyle(),V=$.getShallow("symbolRotate"),B=$.getShallow("symbolOffset"),G=$.getModel(o),E=$.getModel(d),H=$.getShallow("hoverAnimation"),W=$.getShallow("cursor")}else z=p.extend({},z);var Z=L.style;L.attr("rotation",(V||0)*Math.PI/180||0),B&&L.attr("position",[e(B[0],k[0]),e(B[1],k[1])]),W&&L.attr("cursor",W),L.setColor(O,D&&D.symbolInnerColor),L.setStyle(N);var Q=A.getItemVisual(I,"opacity");Q!=null&&(Z.opacity=Q);var Y=A.getItemVisual(I,"liftZ"),K=L.__z2Origin;Y!=null?K==null&&(L.__z2Origin=L.z2,L.z2+=Y):K!=null&&(L.z2=K,L.__z2Origin=null);var ne=D&&D.useNameLabel;w.setLabelStyle(Z,z,G,E,{labelFetcher:R,labelDataIndex:I,defaultText:function(X,ee){return ne?A.getName(X):h(A,X)},isRectText:!0,autoColor:O}),L.off("mouseover").off("mouseout").off("emphasis").off("normal"),L.hoverStyle=z,w.setHoverStyle(L),L.__symbolOriginalScale=a(k),H&&R.isAnimationEnabled()&&L.on("mouseover",m).on("mouseout",_).on("emphasis",M).on("normal",S)},t.fadeOut=function(A,I){var k=this.childAt(0);this.silent=k.silent=!0,I&&I.keepLabel||(k.style.text=null),w.updateProps(k,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,A)},p.inherits(n,w.Group),U.exports=n},83522:function(U,C,b){var p=b(51747),T=b(59470),w=b(23405).isObject;function e(a){this.group=new p.Group,this._symbolCtor=a||T}var h=e.prototype;function n(a,y,g,c){return y&&!isNaN(y[0])&&!isNaN(y[1])&&!(c.isIgnore&&c.isIgnore(g))&&!(c.clipShape&&!c.clipShape.contain(y[0],y[1]))&&a.getItemVisual(g,"symbol")!=="none"}function t(a){return a==null||w(a)||(a={isIgnore:a}),a||{}}function f(a){var y=a.hostModel;return{itemStyle:y.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:y.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:y.get("symbolRotate"),symbolOffset:y.get("symbolOffset"),hoverAnimation:y.get("hoverAnimation"),labelModel:y.getModel("label"),hoverLabelModel:y.getModel("emphasis.label"),cursorStyle:y.get("cursor")}}h.updateData=function(a,y){y=t(y);var g=this.group,c=a.hostModel,o=this._data,d=this._symbolCtor,m=f(a);o||g.removeAll(),a.diff(o).add(function(_){var M=a.getItemLayout(_);if(n(a,M,_,y)){var S=new d(a,_,m);S.attr("position",M),a.setItemGraphicEl(_,S),g.add(S)}}).update(function(_,M){var S=o.getItemGraphicEl(M),A=a.getItemLayout(_);if(!n(a,A,_,y))return void g.remove(S);S?(S.updateData(a,_,m),p.updateProps(S,{position:A},c)):(S=new d(a,_)).attr("position",A),g.add(S),a.setItemGraphicEl(_,S)}).remove(function(_){var M=o.getItemGraphicEl(_);M&&M.fadeOut(function(){g.remove(M)})}).execute(),this._data=a},h.isPersistent=function(){return!0},h.updateLayout=function(){var a=this._data;a&&a.eachItemGraphicEl(function(y,g){var c=a.getItemLayout(g);y.attr("position",c)})},h.incrementalPrepareUpdate=function(a){this._seriesScope=f(a),this._data=null,this.group.removeAll()},h.incrementalUpdate=function(a,y,g){function c(_){_.isGroup||(_.incremental=_.useHoverLayer=!0)}g=t(g);for(var o=a.start;o<a.end;o++){var d=y.getItemLayout(o);if(n(y,d,o,g)){var m=new this._symbolCtor(y,o,this._seriesScope);m.traverse(c),m.attr("position",d),this.group.add(m),y.setItemGraphicEl(o,m)}}},h.remove=function(a){var y=this.group,g=this._data;g&&a?g.eachItemGraphicEl(function(c){c.fadeOut(function(){y.remove(c)})}):y.removeAll()},U.exports=e},64330:function(U,C,b){var p=b(23405),T=b(80023),w=b(58772),e=b(82576),h=b(61554),n=b(17234),t=b(74107);U.exports=function(f,a,y,g,c){for(var o,d=new w(g),m=0;m<f.length;m++)d.addNode(p.retrieve(f[m].id,f[m].name,m),m);for(var _=[],M=[],S=0,m=0;m<a.length;m++){var A=a[m],I=A.source,k=A.target;d.addEdge(I,k,S)&&(M.push(A),_.push(p.retrieve(A.id,I+" > "+k)),S++)}var D=y.get("coordinateSystem");if(D==="cartesian2d"||D==="polar")o=t(f,y);else{var L=n.get(D),R=L&&L.type!=="view"&&L.dimensions||[];0>p.indexOf(R,"value")&&R.concat(["value"]),(o=new T(h(f,{coordDimensions:R}),y)).initData(f)}var O=new T(["value"],y);return O.initData(M,_),c&&c(o,O),e({mainData:o,struct:d,structAttr:"graph",datas:{node:o,edge:O},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},74107:function(U,C,b){var p=b(23405),T=b(80023),w=b(61554),e=b(24659).SOURCE_FORMAT_ORIGINAL,h=b(30186).getDimensionTypeByAxis,n=b(51064).getDataItemValue,t=b(17234),f=b(83813).getCoordSysDefineBySeries,a=b(42480),y=b(91968).enableDataStack;U.exports=function(g,c,o){o=o||{},a.isInstance(g)||(g=a.seriesDataToSource(g));var d,m,_,M=c.get("coordinateSystem"),S=t.get(M),A=f(c);A&&(d=p.map(A.coordSysDims,function(R){var O={name:R},N=A.axisMap.get(R);return N&&(O.type=h(N.get("type"))),O})),d||(d=S&&(S.getDimensionsInfo?S.getDimensionsInfo():S.dimensions.slice())||["x","y"]);var I=w(g,{coordDimensions:d,generateCoord:o.generateCoord});A&&p.each(I,function(R,O){var N=R.coordDim,z=A.categoryAxisMap.get(N);z&&(m==null&&(m=O),R.ordinalMeta=z.getOrdinalMeta()),R.otherDims.itemName!=null&&(_=!0)}),_||m==null||(I[m].otherDims.itemName=0);var k=y(c,I),D=new T(I,c);D.setCalculationInfo(k);var L=m!=null&&function(R){if(R.sourceFormat===e){var O=function(N){for(var z=0;z<N.length&&N[z]==null;)z++;return N[z]}(R.data||[]);return O!=null&&!p.isArray(n(O))}}(g)?function(R,O,N,z){return z===m?N:this.defaultDimValueGetter(R,O,N,z)}:null;return D.hasItemOption=!1,D.initData(g,null,L),D}},59644:function(U,C,b){var p=b(61554),T=b(80023),w=b(23405),e=w.extend,h=w.isArray;U.exports=function(n,t,f){t=h(t)&&{coordDimensions:t}||e({},t);var a=n.getSource(),y=new T(p(a,t),n);return y.initData(a,f),y}},52227:function(U,C,b){var p=b(51064).makeInner;U.exports=function(){var T=p();return function(w){var e=T(w),h=w.pipelineContext,n=e.large,t=e.progressiveRender,f=e.large=h.large,a=e.progressiveRender=h.progressiveRender;return!!(n^f||t^a)&&"reset"}}},93191:function(U,C,b){var p=b(87930);p.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),p.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},73444:function(U,C,b){var p=b(45435).retrieveRawValue;C.getDefaultLabel=function(T,w){var e=T.mapDimension("defaultedLabel",!0),h=e.length;if(h===1)return p(T,w,e[0]);if(h){for(var n=[],t=0;t<e.length;t++){var f=p(T,w,e[t]);n.push(f)}return n.join(" ")}}},75445:function(U,C,b){var p=b(23405);function T(w){for(var e=[];w;)(w=w.parentNode)&&e.push(w);return e.reverse()}C.retrieveTargetInfo=function(w,e,h){if(w&&p.indexOf(e,w.type)>=0){var n=h.getData().tree.root,t=w.targetNode;if(typeof t=="string"&&(t=n.getNodeById(t)),t&&n.contains(t))return{node:t};var f=w.targetNodeId;if(f!=null&&(t=n.getNodeById(f)))return{node:t}}},C.getPathToRoot=T,C.aboveViewRoot=function(w,e){var h=T(w);return p.indexOf(h,e)>=0},C.wrapTreePathInfo=function(w,e){for(var h=[];w;){var n=w.dataIndex;h.push({name:w.name,dataIndex:n,value:e.getRawValue(n)}),w=w.parentNode}return h.reverse(),h}},67783:function(U,C,b){var p=b(59644),T=b(23405),w=b(30186).getDimensionTypeByAxis;C.seriesModelMixin={_baseAxisDim:null,getInitialData:function(e,h){var n,t,f=h.getComponent("xAxis",this.get("xAxisIndex")),a=h.getComponent("yAxis",this.get("yAxisIndex")),y=f.get("type"),g=a.get("type");y==="category"?(e.layout="horizontal",n=f.getOrdinalMeta(),t=!0):g==="category"?(e.layout="vertical",n=a.getOrdinalMeta(),t=!0):e.layout=e.layout||"horizontal";var c=["x","y"],o=+(e.layout!=="horizontal"),d=this._baseAxisDim=c[o],m=c[1-o],_=[f,a],M=_[o].get("type"),S=_[1-o].get("type"),A=e.data;if(A&&t){var I=[];T.each(A,function(D,L){var R;D.value&&T.isArray(D.value)?(R=D.value.slice(),D.value.unshift(L)):T.isArray(D)?(R=D.slice(),D.unshift(L)):R=D,I.push(R)}),e.data=I}var k=this.defaultValueDimensions;return p(this,{coordDimensions:[{name:d,type:w(M),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:m,type:w(S),dimsDef:k.slice()}],dimensionsCount:k.length+1})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}}},5921:function(U,C,b){var p=b(87930);b(85489),b(21123);var T=b(53414),w=b(21188),e=b(29772);b(97035),p.registerVisual(T("line","circle","line")),p.registerLayout(w("line")),p.registerProcessor(p.PRIORITY.PROCESSOR.STATISTIC,e("line"))},85489:function(U,C,b){b(9129).__DEV__;var p=b(74107);U.exports=b(95166).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(T,w){return p(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},21123:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(83522),w=b(59470),e=b(13386),h=b(51747),n=b(51064),t=b(10930),f=t.Polyline,a=t.Polygon,y=b(4695),g=b(54684).round,c=b(89995),o=c.prepareDataCoordInfo,d=c.getStackedOnPoint;function m(I,k){if(I.length===k.length){for(var D=0;D<I.length;D++){var L=I[D],R=k[D];if(L[0]!==R[0]||L[1]!==R[1])return}return!0}}function _(I){return typeof I=="number"?I:.5*!!I}function M(I){var k=I.getGlobalExtent();if(I.onBand){var D=I.getBandWidth()/2-1,L=k[1]>k[0]?1:-1;k[0]+=L*D,k[1]-=L*D}return k}function S(I,k,D,L){var R,O,N,z,V;return I.type==="polar"?(R=I.getAngleAxis(),(O=I.getRadiusAxis().getExtent().slice())[0]>O[1]&&O.reverse(),N=R.getExtent(),z=Math.PI/180,D&&(O[0]-=.5,O[1]+=.5),V=new h.Sector({shape:{cx:g(I.cx,1),cy:g(I.cy,1),r0:g(O[0],1),r:g(O[1],1),startAngle:-N[0]*z,endAngle:-N[1]*z,clockwise:R.inverse}}),k&&(V.shape.endAngle=-N[0]*z,h.initProps(V,{shape:{endAngle:-N[1]*z}},L)),V):function(B,G,E,H){var W=M(B.getAxis("x")),$=M(B.getAxis("y")),Z=B.getBaseAxis().isHorizontal(),Q=Math.min(W[0],W[1]),Y=Math.min($[0],$[1]),K=Math.max(W[0],W[1])-Q,ne=Math.max($[0],$[1])-Y;if(E)Q-=.5,K+=.5,Y-=.5,ne+=.5;else{var X=H.get("lineStyle.width")||2,ee=H.get("clipOverflow")?X/2:Math.max(K,ne);Z?(Y-=ee,ne+=2*ee):(Q-=ee,K+=2*ee)}var ae=new h.Rect({shape:{x:Q,y:Y,width:K,height:ne}});return G&&(ae.shape[Z?"width":"height"]=0,h.initProps(ae,{shape:{width:K,height:ne}},H)),ae}(I,k,D,L)}function A(I,k,D){for(var L=k.getBaseAxis(),R=+(L.dim!=="x"&&L.dim!=="radius"),O=[],N=0;N<I.length-1;N++){var z=I[N+1],V=I[N];O.push(V);var B=[];switch(D){case"end":B[R]=z[R],B[1-R]=V[1-R],O.push(B);break;case"middle":var G=(V[R]+z[R])/2,E=[];B[R]=E[R]=G,B[1-R]=V[1-R],E[1-R]=z[1-R],O.push(B),O.push(E);break;default:B[R]=V[R],B[1-R]=z[1-R],O.push(B)}}return I[N]&&O.push(I[N]),O}U.exports=y.extend({type:"line",init:function(){var I=new h.Group,k=new T;this.group.add(k.group),this._symbolDraw=k,this._lineGroup=I},render:function(I,k,D){var L=I.coordinateSystem,R=this.group,O=I.getData(),N=I.getModel("lineStyle"),z=I.getModel("areaStyle"),V=O.mapArray(O.getItemLayout),B=L.type==="polar",G=this._coordSys,E=this._symbolDraw,H=this._polyline,W=this._polygon,$=this._lineGroup,Z=I.get("animation"),Q=!z.isEmpty(),Y=z.get("origin"),K=o(L,O,Y),ne=function(ue,he,pe){if(!pe.valueDim)return[];for(var ye=[],ve=0,Ae=he.count();ve<Ae;ve++)ye.push(d(pe,ue,he,ve));return ye}(L,O,K),X=I.get("showSymbol"),ee=X&&!B&&function(ue,he,pe){var ye=ue.get("showAllSymbol"),ve=ye==="auto";if(!ye||ve){var Ae=pe.getAxesByScale("ordinal")[0];if(Ae&&!(ve&&function(Oe,ke){var De=Oe.getExtent(),Ce=Math.abs(De[1]-De[0])/Oe.scale.count();isNaN(Ce)&&(Ce=0);for(var Le=ke.count(),Ve=Math.max(1,Math.round(Le/5)),Ge=0;Ge<Le;Ge+=Ve)if(1.5*w.getSymbolSize(ke,Ge)[+!!Oe.isHorizontal()]>Ce)return!1;return!0}(Ae,he))){var _e=he.mapDimension(Ae.dim),Pe={};return p.each(Ae.getViewLabels(),function(Oe){Pe[Oe.tickValue]=1}),function(Oe){return!Pe.hasOwnProperty(he.get(_e,Oe))}}}}(I,O,L),ae=this._data;ae&&ae.eachItemGraphicEl(function(ue,he){ue.__temp&&(R.remove(ue),ae.setItemGraphicEl(he,null))}),X||E.remove(),R.add($);var oe=!B&&I.get("step");H&&G.type===L.type&&oe===this._step?(Q&&!W?W=this._newPolygon(V,ne,L,Z):W&&!Q&&($.remove(W),W=this._polygon=null),$.setClipPath(S(L,!1,!1,I)),X&&E.updateData(O,{isIgnore:ee,clipShape:S(L,!1,!0,I)}),O.eachItemGraphicEl(function(ue){ue.stopAnimation(!0)}),m(this._stackedOnPoints,ne)&&m(this._points,V)||(Z?this._updateAnimation(O,ne,L,D,oe,Y):(oe&&(V=A(V,L,oe),ne=A(ne,L,oe)),H.setShape({points:V}),W&&W.setShape({points:V,stackedOnPoints:ne})))):(X&&E.updateData(O,{isIgnore:ee,clipShape:S(L,!1,!0,I)}),oe&&(V=A(V,L,oe),ne=A(ne,L,oe)),H=this._newPolyline(V,L,Z),Q&&(W=this._newPolygon(V,ne,L,Z)),$.setClipPath(S(L,!0,!1,I)));var se=function(ue,he){var pe,ye,ve=ue.getVisual("visualMeta");if(ve&&ve.length&&ue.count()&&he.type==="cartesian2d"){for(var Ae=ve.length-1;Ae>=0;Ae--){var _e=ve[Ae].dimension,Pe=ue.dimensions[_e],Oe=ue.getDimensionInfo(Pe);if((pe=Oe&&Oe.coordDim)==="x"||pe==="y"){ye=ve[Ae];break}}if(ye){var ke=he.getAxis(pe),De=p.map(ye.stops,function(it){return{coord:ke.toGlobalCoord(ke.dataToCoord(it.value)),color:it.color}}),Ce=De.length,Le=ye.outerColors.slice();Ce&&De[0].coord>De[Ce-1].coord&&(De.reverse(),Le.reverse());var Ve=De[0].coord-10,Ge=De[Ce-1].coord+10,Je=Ge-Ve;if(Je<.001)return"transparent";p.each(De,function(it){it.offset=(it.coord-Ve)/Je}),De.push({offset:Ce?De[Ce-1].offset:.5,color:Le[1]||"transparent"}),De.unshift({offset:Ce?De[0].offset:.5,color:Le[0]||"transparent"});var rt=new h.LinearGradient(0,0,0,0,De,!0);return rt[pe]=Ve,rt[pe+"2"]=Ge,rt}}}(O,L)||O.getVisual("color");H.useStyle(p.defaults(N.getLineStyle(),{fill:"none",stroke:se,lineJoin:"bevel"}));var ge=I.get("smooth");if(ge=_(I.get("smooth")),H.setShape({smooth:ge,smoothMonotone:I.get("smoothMonotone"),connectNulls:I.get("connectNulls")}),W){var fe=O.getCalculationInfo("stackedOnSeries"),le=0;W.useStyle(p.defaults(z.getAreaStyle(),{fill:se,opacity:.7,lineJoin:"bevel"})),fe&&(le=_(fe.get("smooth"))),W.setShape({smooth:ge,stackedOnSmooth:le,smoothMonotone:I.get("smoothMonotone"),connectNulls:I.get("connectNulls")})}this._data=O,this._coordSys=L,this._stackedOnPoints=ne,this._points=V,this._step=oe,this._valueOrigin=Y},dispose:function(){},highlight:function(I,k,D,L){var R=I.getData(),O=n.queryDataIndex(R,L);if(O instanceof Array||O==null||!(O>=0))y.prototype.highlight.call(this,I,k,D,L);else{var N=R.getItemGraphicEl(O);if(!N){var z=R.getItemLayout(O);if(!z)return;(N=new w(R,O)).position=z,N.setZ(I.get("zlevel"),I.get("z")),N.ignore=isNaN(z[0])||isNaN(z[1]),N.__temp=!0,R.setItemGraphicEl(O,N),N.stopSymbolAnimation(!0),this.group.add(N)}N.highlight()}},downplay:function(I,k,D,L){var R=I.getData(),O=n.queryDataIndex(R,L);if(O!=null&&O>=0){var N=R.getItemGraphicEl(O);N&&(N.__temp?(R.setItemGraphicEl(O,null),this.group.remove(N)):N.downplay())}else y.prototype.downplay.call(this,I,k,D,L)},_newPolyline:function(I){var k=this._polyline;return k&&this._lineGroup.remove(k),k=new f({shape:{points:I},silent:!0,z2:10}),this._lineGroup.add(k),this._polyline=k,k},_newPolygon:function(I,k){var D=this._polygon;return D&&this._lineGroup.remove(D),D=new a({shape:{points:I,stackedOnPoints:k},silent:!0}),this._lineGroup.add(D),this._polygon=D,D},_updateAnimation:function(I,k,D,L,R,O){var N=this._polyline,z=this._polygon,V=I.hostModel,B=e(this._data,I,this._stackedOnPoints,k,this._coordSys,D,this._valueOrigin,O),G=B.current,E=B.stackedOnCurrent,H=B.next,W=B.stackedOnNext;R&&(G=A(B.current,D,R),E=A(B.stackedOnCurrent,D,R),H=A(B.next,D,R),W=A(B.stackedOnNext,D,R)),N.shape.__points=B.current,N.shape.points=G,h.updateProps(N,{shape:{points:H}},V),z&&(z.setShape({points:G,stackedOnPoints:E}),h.updateProps(z,{shape:{points:H,stackedOnPoints:W}},V));for(var $=[],Z=B.status,Q=0;Q<Z.length;Q++)if(Z[Q].cmd==="="){var Y=I.getItemGraphicEl(Z[Q].idx1);Y&&$.push({el:Y,ptIdx:Q})}N.animators&&N.animators.length&&N.animators[0].during(function(){for(var K=0;K<$.length;K++)$[K].el.attr("position",N.shape.__points[$[K].ptIdx])})},remove:function(I){var k=this.group,D=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),D&&D.eachItemGraphicEl(function(L,R){L.__temp&&(k.remove(L),D.setItemGraphicEl(R,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})},89995:function(U,C,b){var p=b(91968).isDimensionStacked,T=b(23405).map;C.prepareDataCoordInfo=function(w,e,h){var n,t,f,a,y,g=w.getBaseAxis(),c=w.getOtherAxis(g),o=(n=c,t=h,f=0,a=n.scale.getExtent(),t==="start"?f=a[0]:t==="end"?f=a[1]:a[0]>0?f=a[0]:a[1]<0&&(f=a[1]),f),d=g.dim,m=c.dim,_=e.mapDimension(m),M=e.mapDimension(d),S=+(m==="x"||m==="radius"),A=T(w.dimensions,function(k){return e.mapDimension(k)}),I=e.getCalculationInfo("stackResultDimension");return(y|=p(e,A[0]))&&(A[0]=I),(y|=p(e,A[1]))&&(A[1]=I),{dataDimsForPoint:A,valueStart:o,valueAxisDim:m,baseAxisDim:d,stacked:!!y,valueDim:_,baseDim:M,baseDataOffset:S,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},C.getStackedOnPoint=function(w,e,h,n){var t=NaN;w.stacked&&(t=h.get(h.getCalculationInfo("stackedOverDimension"),n)),isNaN(t)&&(t=w.valueStart);var f=w.baseDataOffset,a=[];return a[f]=h.get(w.baseDim,n),a[1-f]=t,e.dataToPoint(a)}},13386:function(U,C,b){var p=b(89995),T=p.prepareDataCoordInfo,w=p.getStackedOnPoint;U.exports=function(e,h,n,t,f,a,y,g){for(var c,o=(c=[],h.diff(e).add(function(Z){c.push({cmd:"+",idx:Z})}).update(function(Z,Q){c.push({cmd:"=",idx:Q,idx1:Z})}).remove(function(Z){c.push({cmd:"-",idx:Z})}).execute(),c),d=[],m=[],_=[],M=[],S=[],A=[],I=[],k=T(f,h,y),D=T(a,e,g),L=0;L<o.length;L++){var R=o[L],O=!0;switch(R.cmd){case"=":var N=e.getItemLayout(R.idx),z=h.getItemLayout(R.idx1);(isNaN(N[0])||isNaN(N[1]))&&(N=z.slice()),d.push(N),m.push(z),_.push(n[R.idx]),M.push(t[R.idx1]),I.push(h.getRawIndex(R.idx1));break;case"+":var V=R.idx;d.push(f.dataToPoint([h.get(k.dataDimsForPoint[0],V),h.get(k.dataDimsForPoint[1],V)])),m.push(h.getItemLayout(V).slice()),_.push(w(k,f,h,V)),M.push(t[V]),I.push(h.getRawIndex(V));break;case"-":var V=R.idx,B=e.getRawIndex(V);B!==V?(d.push(e.getItemLayout(V)),m.push(a.dataToPoint([e.get(D.dataDimsForPoint[0],V),e.get(D.dataDimsForPoint[1],V)])),_.push(n[V]),M.push(w(D,a,e,V)),I.push(B)):O=!1}O&&(S.push(R),A.push(A.length))}A.sort(function(Z,Q){return I[Z]-I[Q]});for(var G=[],E=[],H=[],W=[],$=[],L=0;L<A.length;L++){var V=A[L];G[L]=d[V],E[L]=m[V],H[L]=_[V],W[L]=M[V],$[L]=S[V]}return{current:G,next:E,stackedOnCurrent:H,stackedOnNext:W,status:$}}},10930:function(U,C,b){var p=b(74582),T=b(76414),w=b(24280),e=T.min,h=T.max,n=T.scaleAndAdd,t=T.copy,f=[],a=[],y=[];function g(S){return isNaN(S[0])||isNaN(S[1])}function c(S,A,I,k,D,L,R,O,N,z,V){return z!=="none"&&z?o.apply(this,arguments):d.apply(this,arguments)}function o(S,A,I,k,D,L,R,O,N,z,V){for(var B=0,G=I,E=0;E<k;E++){var H=A[G];if(G>=D||G<0)break;if(g(H)){if(V){G+=L;continue}break}if(G===I)S[L>0?"moveTo":"lineTo"](H[0],H[1]);else if(N>0){var W=A[B],$=+(z==="y"),Z=(H[$]-W[$])*N;t(a,W),a[$]=W[$]+Z,t(y,H),y[$]=H[$]-Z,S.bezierCurveTo(a[0],a[1],y[0],y[1],H[0],H[1])}else S.lineTo(H[0],H[1]);B=G,G+=L}return E}function d(S,A,I,k,D,L,R,O,N,z,V){for(var B=0,G=I,E=0;E<k;E++){var H=A[G];if(G>=D||G<0)break;if(g(H)){if(V){G+=L;continue}break}if(G===I)S[L>0?"moveTo":"lineTo"](H[0],H[1]),t(a,H);else if(N>0){var W=G+L,Q=A[W];if(V)for(;Q&&g(A[W]);)W+=L,Q=A[W];var $=.5,Z=A[B],Q=A[W];if(!Q||g(Q))t(y,H);else{if(g(Q)&&!V&&(Q=H),T.sub(f,Q,Z),z==="x"||z==="y"){var Y,K,ne=+(z!=="x");Y=Math.abs(H[ne]-Z[ne]),K=Math.abs(H[ne]-Q[ne])}else Y=T.dist(H,Z),K=T.dist(H,Q);n(y,H,f,-N*(1-($=K/(K+Y))))}e(a,a,O),h(a,a,R),e(y,y,O),h(y,y,R),S.bezierCurveTo(a[0],a[1],y[0],y[1],H[0],H[1]),n(a,H,f,N*$)}else S.lineTo(H[0],H[1]);B=G,G+=L}return E}function m(S,A){var I=[1/0,1/0],k=[-1/0,-1/0];if(A)for(var D=0;D<S.length;D++){var L=S[D];L[0]<I[0]&&(I[0]=L[0]),L[1]<I[1]&&(I[1]=L[1]),L[0]>k[0]&&(k[0]=L[0]),L[1]>k[1]&&(k[1]=L[1])}return{min:A?I:k,max:A?k:I}}var _=p.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:w(p.prototype.brush),buildPath:function(S,A){var I=A.points,k=0,D=I.length,L=m(I,A.smoothConstraint);if(A.connectNulls){for(;D>0&&g(I[D-1]);D--);for(;k<D&&g(I[k]);k++);}for(;k<D;)k+=c(S,I,k,D,D,1,L.min,L.max,A.smooth,A.smoothMonotone,A.connectNulls)+1}}),M=p.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:w(p.prototype.brush),buildPath:function(S,A){var I=A.points,k=A.stackedOnPoints,D=0,L=I.length,R=A.smoothMonotone,O=m(I,A.smoothConstraint),N=m(k,A.smoothConstraint);if(A.connectNulls){for(;L>0&&g(I[L-1]);L--);for(;D<L&&g(I[D]);D++);}for(;D<L;){var z=c(S,I,D,L,L,1,O.min,O.max,A.smooth,R,A.connectNulls);c(S,k,D+z-1,z,L,-1,N.min,N.max,A.stackedOnSmooth,R,A.connectNulls),D+=z+1,S.closePath()}}});C.Polyline=_,C.Polygon=M},12810:function(U,C,b){var p=b(87930);b(41497),b(8366);var T=b(16234),w=b(1642);p.registerLayout(T),p.registerVisual(w)},41497:function(U,C,b){b(9129).__DEV__;var p=b(95166),T=b(80023),w=b(23405),e=w.concatArray,h=w.mergeAll,n=w.map,t=b(60653).encodeHTML;b(17234);var f=typeof Uint32Array>"u"?Array:Uint32Array,a=typeof Float64Array>"u"?Array:Float64Array;function y(c){var o=c.data;o&&o[0]&&o[0][0]&&o[0][0].coord&&(c.data=n(o,function(d){var m={coords:[d[0].coord,d[1].coord]};return d[0].name&&(m.fromName=d[0].name),d[1].name&&(m.toName=d[1].name),h([m,d[0],d[1]])}))}var g=p.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(c){c.data=c.data||[],y(c);var o=this._processFlatCoordsArray(c.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(c.data=new Float32Array(o.count)),g.superApply(this,"init",arguments)},mergeOption:function(c){if(c.data=c.data||[],y(c),c.data){var o=this._processFlatCoordsArray(c.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(c.data=new Float32Array(o.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(c){var o=this._processFlatCoordsArray(c.data);o.flatCoords&&(this._flatCoords?(this._flatCoords=e(this._flatCoords,o.flatCoords),this._flatCoordsOffset=e(this._flatCoordsOffset,o.flatCoordsOffset)):(this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset),c.data=new Float32Array(o.count)),this.getRawData().appendData(c.data)},_getCoordsFromItemModel:function(c){var o=this.getData().getItemModel(c);return o.option instanceof Array?o.option:o.getShallow("coords")},getLineCoordsCount:function(c){return this._flatCoordsOffset?this._flatCoordsOffset[2*c+1]:this._getCoordsFromItemModel(c).length},getLineCoords:function(c,o){if(this._flatCoordsOffset){for(var d=this._flatCoordsOffset[2*c],m=this._flatCoordsOffset[2*c+1],_=0;_<m;_++)o[_]=o[_]||[],o[_][0]=this._flatCoords[d+2*_],o[_][1]=this._flatCoords[d+2*_+1];return m}for(var M=this._getCoordsFromItemModel(c),_=0;_<M.length;_++)o[_]=o[_]||[],o[_][0]=M[_][0],o[_][1]=M[_][1];return M.length},_processFlatCoordsArray:function(c){var o=0;if(this._flatCoords&&(o=this._flatCoords.length),typeof c[0]=="number"){for(var d=c.length,m=new f(d),_=new a(d),M=0,S=0,A=0,I=0;I<d;){A++;var k=c[I++];m[S++]=M+o,m[S++]=k;for(var D=0;D<k;D++){var L=c[I++],R=c[I++];_[M++]=L,_[M++]=R}}return{flatCoordsOffset:new Uint32Array(m.buffer,0,S),flatCoords:_,count:A}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,o){var d=new T(["value"],this);return d.hasItemOption=!1,d.initData(c.data,[],function(m,_,M,S){if(m instanceof Array)return NaN;d.hasItemOption=!0;var A=m.value;if(A!=null)return A instanceof Array?A[S]:A}),d},formatTooltip:function(c){var o=this.getData().getItemModel(c),d=o.get("name");if(d)return d;var m=o.get("fromName"),_=o.get("toName"),M=[];return m!=null&&M.push(m),_!=null&&M.push(_),t(M.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c??(this.option.large?1e4:this.get("progressive"))},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c??(this.option.large?2e4:this.get("progressiveThreshold"))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});U.exports=g},8366:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(61880),w=b(91413),e=b(36399),h=b(6137),n=b(2095),t=b(45738),f=b(16234);U.exports=p.extendChartView({type:"lines",init:function(){},render:function(a,y,g){var c=a.getData(),o=this._updateLineDraw(c,a),d=a.get("zlevel"),m=a.get("effect.trailLength"),_=g.getZr(),M=_.painter.getType()==="svg";M||_.painter.getLayer(d).clear(!0),this._lastZlevel==null||M||_.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(a)&&m&&!M&&_.configLayer(d,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(m/10+.9,1),0)}),o.updateData(c),this._lastZlevel=d,this._finished=!0},incrementalPrepareRender:function(a,y,g){var c=a.getData();this._updateLineDraw(c,a).incrementalPrepareUpdate(c),this._clearLayer(g),this._finished=!1},incrementalRender:function(a,y,g){this._lineDraw.incrementalUpdate(a,y.getData()),this._finished=a.end===y.getData().count()},updateTransform:function(a,y,g){var c=a.getData(),o=a.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var d=f.reset(a);d.progress&&d.progress({start:0,end:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(g)},_updateLineDraw:function(a,y){var g=this._lineDraw,c=this._showEffect(y),o=!!y.get("polyline"),d=y.pipelineContext.large;return g&&c===this._hasEffet&&o===this._isPolyline&&d===this._isLargeDraw||(g&&g.remove(),g=this._lineDraw=d?new t:new T(o?c?n:h:c?w:e),this._hasEffet=c,this._isPolyline=o,this._isLargeDraw=d,this.group.removeAll()),this.group.add(g.group),g},_showEffect:function(a){return!!a.get("effect.show")},_clearLayer:function(a){var y=a.getZr();y.painter.getType()!=="svg"&&this._lastZlevel!=null&&y.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(a,y){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(y)},dispose:function(){}})},16234:function(U,C,b){U.exports={seriesType:"lines",plan:b(52227)(),reset:function(p){var T=p.coordinateSystem,w=p.get("polyline"),e=p.pipelineContext.large;return{progress:function(h,n){var t=[];if(e){var f,a=h.end-h.start;if(w){for(var y=0,g=h.start;g<h.end;g++)y+=p.getLineCoordsCount(g);f=new Float32Array(a+2*y)}else f=new Float32Array(4*a);for(var c=0,o=[],g=h.start;g<h.end;g++){var d=p.getLineCoords(g,t);w&&(f[c++]=d);for(var m=0;m<d;m++)o=T.dataToPoint(t[m],!1,o),f[c++]=o[0],f[c++]=o[1]}n.setLayout("linesPoints",f)}else for(var g=h.start;g<h.end;g++){var _=n.getItemModel(g),d=p.getLineCoords(g,t),M=[];if(w)for(var S=0;S<d;S++)M.push(T.dataToPoint(t[S]));else{M[0]=T.dataToPoint(t[0]),M[1]=T.dataToPoint(t[1]);var A=_.get("lineStyle.curveness");+A&&(M[2]=[(M[0][0]+M[1][0])/2-(M[0][1]-M[1][1])*A,(M[0][1]+M[1][1])/2-(M[1][0]-M[0][0])*A])}n.setItemLayout(g,M)}}}}}},1642:function(U){function C(p){return p instanceof Array||(p=[p,p]),p}var b="lineStyle.opacity".split(".");U.exports={seriesType:"lines",reset:function(p,T,w){var e=C(p.get("symbol")),h=C(p.get("symbolSize")),n=p.getData();return n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",h&&h[0]),n.setVisual("toSymbolSize",h&&h[1]),n.setVisual("opacity",p.get(b)),{dataEach:n.hasItemOption?function(t,f){var a=t.getItemModel(f),y=C(a.getShallow("symbol",!0)),g=C(a.getShallow("symbolSize",!0)),c=a.get(b);y[0]&&t.setItemVisual(f,"fromSymbol",y[0]),y[1]&&t.setItemVisual(f,"toSymbol",y[1]),g[0]&&t.setItemVisual(f,"fromSymbolSize",g[0]),g[1]&&t.setItemVisual(f,"toSymbolSize",g[1]),t.setItemVisual(f,"opacity",c)}:null}}}},78645:function(U,C,b){var p=b(87930);b(87854),b(31018),b(65981),b(87673);var T=b(47804),w=b(21273),e=b(28314),h=b(81945),n=b(60461);p.registerLayout(T),p.registerVisual(w),p.registerProcessor(p.PRIORITY.PROCESSOR.STATISTIC,e),p.registerPreprocessor(h),n("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},87854:function(U,C,b){var p=b(23405),T=b(59644),w=b(95166),e=b(60653),h=e.encodeHTML,n=e.addCommas,t=b(49214),f=b(45435).retrieveRawAttr,a=b(96518),y=w.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(g){for(var c=T(this,["value"]),o=c.mapDimension("value"),d=p.createHashMap(),m=[],_=[],M=0,S=c.count();M<S;M++){var A=c.getName(M);d.set(A,!0),m.push({name:A,value:c.get(o,M),selected:f(c,M,"selected")})}var I=a.load(this.getMapType(),this.option.nameMap);return p.each(I.regions,function(k){var D=k.name;d.get(D)||(m.push({name:D}),_.push(D))}),this.updateSelectedMap(m),c.appendValues([],_),c},getHostGeoModel:function(){var g=this.option.geoIndex;return g!=null?this.dependentModels.geo[g]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(g){var c=this.getData();return c.get(c.mapDimension("value"),g)},getRegionModel:function(g){var c=this.getData();return c.getItemModel(c.indexOfName(g))},formatTooltip:function(g){for(var c=this.getData(),o=n(this.getRawValue(g)),d=c.getName(g),m=this.seriesGroup,_=[],M=0;M<m.length;M++){var S=m[M].originalData.indexOfName(d),A=c.mapDimension("value");isNaN(m[M].originalData.get(A,S))||_.push(h(m[M].name))}return _.join(", ")+"<br />"+h(d+" : "+o)},getTooltipPosition:function(g){if(g!=null){var c=this.getData().getName(g),o=this.coordinateSystem,d=o.getRegion(c);return d&&o.dataToPoint(d.center)}},setZoom:function(g){this.option.zoom=g},setCenter:function(g){this.option.center=g},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});p.mixin(y,t),U.exports=y},31018:function(U,C,b){var p=b(87930),T=b(23405),w=b(51747),e=b(90229),h="__seriesMapHighDown",n="__seriesMapCallKey";function t(a){var y=this[h];y&&y.recordVersion===this[n]&&f(y,a)}function f(a,y){var g=a.circle,c=a.labelModel,o=a.hoverLabelModel,d=a.emphasisText,m=a.normalText;y?(g.style.extendFrom(w.setTextStyle({},o,{text:o.get("show")?d:null},{isRectText:!0,useInsideStyle:!1},!0)),g.__mapOriginalZ2=g.z2,g.z2+=w.Z2_EMPHASIS_LIFT):(w.setTextStyle(g.style,c,{text:c.get("show")?m:null,textPosition:c.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),g.dirty(!1),g.__mapOriginalZ2!=null&&(g.z2=g.__mapOriginalZ2,g.__mapOriginalZ2=null))}U.exports=p.extendChartView({type:"map",render:function(a,y,g,c){if(!c||c.type!=="mapToggleSelect"||c.from!==this.uid){var o=this.group;if(o.removeAll(),!a.getHostGeoModel()){if(c&&c.type==="geoRoam"&&c.componentType==="series"&&c.seriesId===a.id){var d=this._mapDraw;d&&o.add(d.group)}else if(a.needsDrawMap){var d=this._mapDraw||new e(g,!0);o.add(d.group),d.draw(a,y,g,this,c),this._mapDraw=d}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;a.get("showLegendSymbol")&&y.getComponent("legend")&&this._renderSymbols(a,y,g)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(a,y,g){var c=a.originalData,o=this.group;c.each(c.mapDimension("value"),function(d,m){if(!isNaN(d)){var _=c.getItemLayout(m);if(_&&_.point){var M=_.point,S=_.offset,A=new w.Circle({style:{fill:a.getData().getVisual("color")},shape:{cx:M[0]+9*S,cy:M[1],r:3},silent:!0,z2:8+(S?0:w.Z2_EMPHASIS_LIFT+1)});if(!S){var I=a.mainSeries.getData(),k=c.getName(m),D=I.indexOfName(k),L=c.getItemModel(m),R=L.getModel("label"),O=L.getModel("emphasis.label"),N=I.getItemGraphicEl(D),z=T.retrieve2(a.getFormattedLabel(D,"normal"),k),V=T.retrieve2(a.getFormattedLabel(D,"emphasis"),z),B=N[h],G=Math.random();if(!B){B=N[h]={};var E=T.curry(t,!0),H=T.curry(t,!1);N.on("mouseover",E).on("mouseout",H).on("emphasis",E).on("normal",H)}N[n]=G,T.extend(B,{recordVersion:G,circle:A,labelModel:R,hoverLabelModel:O,emphasisText:V,normalText:z}),f(B,!1)}o.add(A)}}})}})},81945:function(U,C,b){var p=b(23405);U.exports=function(T){p.each(T.series,function(w){w&&w.type==="map"&&(w.map=w.map||w.mapType,p.defaults(w,w.mapLocation))})}},28314:function(U,C,b){var p=b(23405);U.exports=function(T){var w={};T.eachSeriesByType("map",function(e){var h=e.getHostGeoModel(),n=h?"o"+h.id:"i"+e.getMapType();(w[n]=w[n]||[]).push(e)}),p.each(w,function(e,h){for(var n,t,f,a=(n=p.map(e,function(g){return g.getData()}),t=e[0].get("mapValueCalculation"),f={},p.each(n,function(g){g.each(g.mapDimension("value"),function(c,o){var d="ec-"+g.getName(o);f[d]=f[d]||[],isNaN(c)||f[d].push(c)})}),n[0].map(n[0].mapDimension("value"),function(g,c){for(var o,d="ec-"+n[0].getName(c),m=0,_=1/0,M=-1/0,S=f[d].length,A=0;A<S;A++)_=Math.min(_,f[d][A]),M=Math.max(M,f[d][A]),m+=f[d][A];return o=t==="min"?_:t==="max"?M:t==="average"?m/S:m,S===0?NaN:o})),y=0;y<e.length;y++)e[y].originalData=e[y].getData();for(var y=0;y<e.length;y++)e[y].seriesGroup=e,e[y].needsDrawMap=y===0&&!e[y].getHostGeoModel(),e[y].setData(a.cloneShallow()),e[y].mainSeries=e[0]})}},47804:function(U,C,b){var p=b(23405);U.exports=function(T){var w={};T.eachSeriesByType("map",function(e){var h=e.getMapType();if(!e.getHostGeoModel()&&!w[h]){var n={};p.each(e.seriesGroup,function(f){var a=f.coordinateSystem,y=f.originalData;f.get("showLegendSymbol")&&T.getComponent("legend")&&y.each(y.mapDimension("value"),function(g,c){var o=y.getName(c),d=a.getRegion(o);if(!(!d||isNaN(g))){var m=n[o]||0,_=a.dataToPoint(d.center);n[o]=m+1,y.setItemLayout(c,{point:_,offset:m})}})});var t=e.getData();t.each(function(f){var a=t.getName(f),y=t.getItemLayout(f)||{};y.showLabel=!n[a],t.setItemLayout(f,y)}),w[h]=!0}})}},21273:function(U){U.exports=function(C){C.eachSeriesByType("map",function(b){var p=b.get("color"),T=b.getModel("itemStyle"),w=T.get("areaColor"),e=T.get("color")||p[b.seriesIndex%p.length];b.getData().setVisual({areaColor:w,color:e})})}},91066:function(U,C,b){var p=b(87930);b(52420),b(22031),b(40106);var T=b(16072);p.registerVisual(T)},22031:function(U,C,b){var p=b(23405),T=p.each,w=p.createHashMap,e=b(95166),h=b(74107);U.exports=e.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(n,t){var f=this.getSource();return function(a,y){if(!a.encodeDefine){var g=y.ecModel.getComponent("parallel",y.get("parallelIndex"));if(g){var c=a.encodeDefine=w();T(g.dimensions,function(o){var d=+o.replace("dim","");c.set(o,d)})}}}(f,this),h(f,this)},getRawIndicesByActiveState:function(n){var t=this.coordinateSystem,f=this.getData(),a=[];return t.eachActiveState(f,function(y,g){n===y&&a.push(f.getRawIndex(g))}),a},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}})},40106:function(U,C,b){var p=b(51747);function T(n,t,f,a){for(var y=[],g=0;g<f.length;g++){var c,o=f[g],d=n.get(n.mapDimension(o),t);c=d,(a.getAxis(o).type==="category"?c==null:c==null||isNaN(c))||y.push(a.dataToPoint(d,o))}return y}function w(n,t,f,a,y){var g=T(n,f,a,y),c=new p.Polyline({shape:{points:g},silent:!0,z2:10});return t.add(c),n.setItemGraphicEl(f,c),c}function e(n){var t=n.get("smooth",!0);return t===!0&&(t=.3),{lineStyle:n.getModel("lineStyle").getLineStyle(),smooth:t??.3}}function h(n,t,f,a){var y=a.lineStyle;t.hasItemOption&&(y=t.getItemModel(f).getModel("lineStyle").getLineStyle()),n.useStyle(y);var g=n.style;g.fill=null,g.stroke=t.getItemVisual(f,"color"),g.opacity=t.getItemVisual(f,"opacity"),a.smooth&&(n.shape.smooth=a.smooth)}U.exports=b(4695).extend({type:"parallel",init:function(){this._dataGroup=new p.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,t,f,a){var y=this._dataGroup,g=n.getData(),c=this._data,o=n.coordinateSystem,d=o.dimensions,m=e(n);if(g.diff(c).add(function(R){h(w(g,y,R,d,o),g,R,m)}).update(function(R,O){var N=c.getItemGraphicEl(O),z=T(g,R,d,o);g.setItemGraphicEl(R,N);var V=a&&a.animation===!1?null:n;p.updateProps(N,{shape:{points:z}},V,R),h(N,g,R,m)}).remove(function(R){var O=c.getItemGraphicEl(R);y.remove(O)}).execute(),!this._initialized){this._initialized=!0;var _,M,S,A,I,k,D,L=(_=o,M=n,S=function(){setTimeout(function(){y.removeClipPath()})},A=_.model,I=_.getRect(),k=new p.Rect({shape:{x:I.x,y:I.y,width:I.width,height:I.height}}),D=A.get("layout")==="horizontal"?"width":"height",k.setShape(D,0),p.initProps(k,{shape:{width:I.width,height:I.height}},M,S),k);y.setClipPath(L)}this._data=g},incrementalPrepareRender:function(n,t,f){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,t,f){for(var a=t.getData(),y=t.coordinateSystem,g=y.dimensions,c=e(t),o=n.start;o<n.end;o++){var d=w(a,this._dataGroup,o,g,y);d.incremental=!0,h(d,a,o,c)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}})},16072:function(U){var C=["lineStyle","normal","opacity"];U.exports={seriesType:"parallel",reset:function(b,p,T){var w=b.getModel("itemStyle"),e=b.getModel("lineStyle"),h=p.get("color"),n=e.get("color")||w.get("color")||h[b.seriesIndex%h.length],t=b.get("inactiveOpacity"),f=b.get("activeOpacity"),a=b.getModel("lineStyle").getLineStyle(),y=b.coordinateSystem,g=b.getData(),c={normal:a.opacity,active:f,inactive:t};return g.setVisual("color",n),{progress:function(o,d){y.eachActiveState(d,function(m,_){var M=c[m];if(m==="normal"&&d.hasItemOption){var S=d.getItemModel(_).get(C,!0);S!=null&&(M=S)}d.setItemVisual(_,"opacity",M)},o.start,o.end)}}}}},13875:function(U,C,b){var p=b(87930),T=b(23405);b(72768),b(73202),b(16044);var w=b(76918).layout,e=b(53414);b(97035),p.registerLayout(T.curry(w,"pictorialBar")),p.registerVisual(e("pictorialBar","roundRect"))},25997:function(U,C,b){var p=b(87930),T=b(23405);b(29921),b(97684);var w=b(60461),e=b(59448),h=b(1363),n=b(74278);w("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),p.registerVisual(e("pie")),p.registerLayout(T.curry(h,"pie")),p.registerProcessor(n("pie"))},29921:function(U,C,b){var p=b(87930),T=b(59644),w=b(23405),e=b(51064),h=b(54684).getPercentWithPrecision,n=b(49214),t=b(45435).retrieveRawAttr,f=p.extendSeriesModel({type:"series.pie",init:function(a){f.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(a)},mergeOption:function(a){f.superCall(this,"mergeOption",a),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(a,y){return T(this,["value"])},_createSelectableList:function(){for(var a=this.getRawData(),y=a.mapDimension("value"),g=[],c=0,o=a.count();c<o;c++)g.push({name:a.getName(c),value:a.get(y,c),selected:t(a,c,"selected")});return g},getDataParams:function(a){var y=this.getData(),g=f.superCall(this,"getDataParams",a),c=[];return y.each(y.mapDimension("value"),function(o){c.push(o)}),g.percent=h(c,a,y.hostModel.get("percentPrecision")),g.$vars.push("percent"),g},_defaultLabelLine:function(a){e.defaultEmphasis(a,"labelLine",["show"]);var y=a.labelLine,g=a.emphasis.labelLine;y.show=y.show&&a.label.show,g.show=g.show&&a.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationEasing:"cubicOut"}});w.mixin(f,n),U.exports=f},97684:function(U,C,b){var p=b(23405),T=b(51747),w=b(4695);function e(f,a,y,g){var c=a.getData(),o=this.dataIndex,d=c.getName(o),m=a.get("selectedOffset");g.dispatchAction({type:"pieToggleSelect",from:f,name:d,seriesId:a.id}),c.each(function(_){h(c.getItemGraphicEl(_),c.getItemLayout(_),a.isSelected(c.getName(_)),m,y)})}function h(f,a,y,g,c){var o=(a.startAngle+a.endAngle)/2,d=y?g:0,m=[Math.cos(o)*d,Math.sin(o)*d];c?f.animate().when(200,{position:m}).start("bounceOut"):f.attr("position",m)}function n(f,a){T.Group.call(this);var y=new T.Sector({z2:2}),g=new T.Polyline,c=new T.Text;function o(){g.ignore=g.hoverIgnore,c.ignore=c.hoverIgnore}function d(){g.ignore=g.normalIgnore,c.ignore=c.normalIgnore}this.add(y),this.add(g),this.add(c),this.updateData(f,a,!0),this.on("emphasis",o).on("normal",d).on("mouseover",o).on("mouseout",d)}var t=n.prototype;t.updateData=function(f,a,y){var g=this.childAt(0),c=f.hostModel,o=f.getItemModel(a),d=f.getItemLayout(a),m=p.extend({},d);m.label=null,y?(g.setShape(m),c.getShallow("animationType")==="scale"?(g.shape.r=d.r0,T.initProps(g,{shape:{r:d.r}},c,a)):(g.shape.endAngle=d.startAngle,T.updateProps(g,{shape:{endAngle:d.endAngle}},c,a))):T.updateProps(g,{shape:m},c,a);var _=f.getItemVisual(a,"color");g.useStyle(p.defaults({lineJoin:"bevel",fill:_},o.getModel("itemStyle").getItemStyle())),g.hoverStyle=o.getModel("emphasis.itemStyle").getItemStyle();var M=o.getShallow("cursor");function S(){g.stopAnimation(!0),g.animateTo({shape:{r:d.r+c.get("hoverOffset")}},300,"elasticOut")}function A(){g.stopAnimation(!0),g.animateTo({shape:{r:d.r}},300,"elasticOut")}M&&g.attr("cursor",M),h(this,f.getItemLayout(a),c.isSelected(null,a),c.get("selectedOffset"),c.get("animation")),g.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.get("hoverAnimation")&&c.isAnimationEnabled()&&g.on("mouseover",S).on("mouseout",A).on("emphasis",S).on("normal",A),this._updateLabel(f,a),T.setHoverStyle(this)},t._updateLabel=function(f,a){var y=this.childAt(1),g=this.childAt(2),c=f.hostModel,o=f.getItemModel(a),d=f.getItemLayout(a).label,A=f.getItemVisual(a,"color");T.updateProps(y,{shape:{points:d.linePoints||[[d.x,d.y],[d.x,d.y],[d.x,d.y]]}},c,a),T.updateProps(g,{style:{x:d.x,y:d.y}},c,a),g.attr({rotation:d.rotation,origin:[d.x,d.y],z2:10});var m=o.getModel("label"),_=o.getModel("emphasis.label"),M=o.getModel("labelLine"),S=o.getModel("emphasis.labelLine"),A=f.getItemVisual(a,"color");T.setLabelStyle(g.style,g.hoverStyle={},m,_,{labelFetcher:f.hostModel,labelDataIndex:a,defaultText:f.getName(a),autoColor:A,useInsideStyle:!!d.inside},{textAlign:d.textAlign,textVerticalAlign:d.verticalAlign,opacity:f.getItemVisual(a,"opacity")}),g.ignore=g.normalIgnore=!m.get("show"),g.hoverIgnore=!_.get("show"),y.ignore=y.normalIgnore=!M.get("show"),y.hoverIgnore=!S.get("show"),y.setStyle({stroke:A,opacity:f.getItemVisual(a,"opacity")}),y.setStyle(M.getModel("lineStyle").getLineStyle()),y.hoverStyle=S.getModel("lineStyle").getLineStyle();var I=M.get("smooth");I&&I===!0&&(I=.4),y.setShape({smooth:I})},p.inherits(n,T.Group),U.exports=w.extend({type:"pie",init:function(){var f=new T.Group;this._sectorGroup=f},render:function(f,a,y,g){if(!g||g.from!==this.uid){var c=f.getData(),o=this._data,d=this.group,m=a.get("animation"),_=!o,M=f.get("animationType"),S=p.curry(e,this.uid,f,m,y),A=f.get("selectedMode");if(c.diff(o).add(function(L){var R=new n(c,L);_&&M!=="scale"&&R.eachChild(function(O){O.stopAnimation(!0)}),A&&R.on("click",S),c.setItemGraphicEl(L,R),d.add(R)}).update(function(L,R){var O=o.getItemGraphicEl(R);O.updateData(c,L),O.off("click"),A&&O.on("click",S),d.add(O),c.setItemGraphicEl(L,O)}).remove(function(L){var R=o.getItemGraphicEl(L);d.remove(R)}).execute(),m&&_&&c.count()>0&&M!=="scale"){var I=c.getItemLayout(0),k=Math.max(y.getWidth(),y.getHeight())/2,D=p.bind(d.removeClipPath,d);d.setClipPath(this._createClipPath(I.cx,I.cy,k,I.startAngle,I.clockwise,D,f))}else d.removeClipPath();this._data=c}},dispose:function(){},_createClipPath:function(f,a,y,g,c,o,d){var m=new T.Sector({shape:{cx:f,cy:a,r0:0,r:y,startAngle:g,endAngle:g,clockwise:c}});return T.initProps(m,{shape:{endAngle:g+(c?1:-1)*Math.PI*2}},d,o),m},containPoint:function(f,a){var y=a.getData().getItemLayout(0);if(y){var g=f[0]-y.cx,c=f[1]-y.cy,o=Math.sqrt(g*g+c*c);return o<=y.r&&o>=y.r0}}})},46581:function(U,C,b){var p=b(24570);function T(e,h,n,t,f,a,y){function g(A,I){for(var k=A;k>=0&&(e[k].y-=I,!(k>0)||!(e[k].y>e[k-1].y+e[k-1].height));k--);}function c(A,I,k,D,L,R){for(var O=I?Number.MAX_VALUE:0,N=0,z=A.length;N<z;N++){var V=Math.abs(A[N].y-D),B=A[N].len,G=A[N].len2,E=V<L+B?Math.sqrt((L+B+G)*(L+B+G)-V*V):Math.abs(A[N].x-k);I&&E>=O&&(E=O-10),!I&&E<=O&&(E=O+10),A[N].x=k+E*R,O=E}}e.sort(function(A,I){return A.y-I.y});for(var o,d=0,m=e.length,_=[],M=[],S=0;S<m;S++)(o=e[S].y-d)<0&&function(A,I,k,D){for(var L=A;L<I;L++)if(e[L].y+=k,L>A&&L+1<I&&e[L+1].y>e[L].y+e[L].height)return void g(L,k/2);g(I-1,k/2)}(S,m,-o),d=e[S].y+e[S].height;y-d<0&&g(m-1,d-y);for(var S=0;S<m;S++)e[S].y>=n?M.push(e[S]):_.push(e[S]);c(_,!1,h,n,t,f),c(M,!0,h,n,t,f)}function w(e){return e.position==="center"}U.exports=function(e,h,n,t){var f,a,y=e.getData(),g=[],c=!1;y.each(function(o){var d,m,_,M,S=y.getItemLayout(o),A=y.getItemModel(o),I=A.getModel("label"),k=I.get("position")||A.get("emphasis.label.position"),D=A.getModel("labelLine"),L=D.get("length"),R=D.get("length2"),O=(S.startAngle+S.endAngle)/2,N=Math.cos(O),z=Math.sin(O);f=S.cx,a=S.cy;var V=k==="inside"||k==="inner";if(k==="center")d=S.cx,m=S.cy,M="center";else{var B=(V?(S.r+S.r0)/2*N:S.r*N)+f,G=(V?(S.r+S.r0)/2*z:S.r*z)+a;if(d=B+3*N,m=G+3*z,!V){var E=B+N*(L+h-S.r),H=G+z*(L+h-S.r),W=E+(N<0?-1:1)*R;d=W+(N<0?-5:5),m=H,_=[[B,G],[E,H],[W,H]]}M=V?"center":N>0?"left":"right"}var $=I.getFont(),Z=I.get("rotate")?N<0?-O+Math.PI:-O:0,Q=e.getFormattedLabel(o,"normal")||y.getName(o),Y=p.getBoundingRect(Q,$,M,"top");c=!!Z,S.label={x:d,y:m,position:k,height:Y.height,len:L,len2:R,linePoints:_,textAlign:M,verticalAlign:"middle",rotation:Z,inside:V},V||g.push(S.label)}),!c&&e.get("avoidLabelOverlap")&&function(o,d,m,_,M,S){for(var A=[],I=[],k=0;k<o.length;k++)w(o[k])||(o[k].x<d?A.push(o[k]):I.push(o[k]));T(I,d,m,_,1,M,S),T(A,d,m,_,-1,M,S);for(var k=0;k<o.length;k++)if(!w(o[k])){var D=o[k].linePoints;if(D){var L=D[1][0]-D[2][0];o[k].x<d?D[2][0]=o[k].x+3:D[2][0]=o[k].x-3,D[1][1]=D[2][1]=o[k].y,D[1][0]=D[2][0]+L}}}(g,f,a,h,n,t)}},1363:function(U,C,b){var p=b(54684),T=p.parsePercent,w=p.linearMap,e=b(46581),h=b(23405),n=2*Math.PI,t=Math.PI/180;U.exports=function(f,a,y,g){a.eachSeriesByType(f,function(c){var o=c.getData(),d=o.mapDimension("value"),m=c.get("center"),_=c.get("radius");h.isArray(_)||(_=[0,_]),h.isArray(m)||(m=[m,m]);var M=y.getWidth(),S=y.getHeight(),A=Math.min(M,S),I=T(m[0],M),k=T(m[1],S),D=T(_[0],A/2),L=T(_[1],A/2),R=-c.get("startAngle")*t,O=c.get("minAngle")*t,N=0;o.each(d,function(K){!isNaN(K)&&N++});var z=o.getSum(d),V=Math.PI/(z||N)*2,B=c.get("clockwise"),G=c.get("roseType"),E=c.get("stillShowZeroSum"),H=o.getDataExtent(d);H[0]=0;var W=n,$=0,Z=R,Q=B?1:-1;if(o.each(d,function(K,ne){if(isNaN(K))return void o.setItemLayout(ne,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:B,cx:I,cy:k,r0:D,r:G?NaN:L});(X=G!=="area"?z===0&&E?V:K*V:n/N)<O?(X=O,W-=O):$+=K;var X,ee=Z+Q*X;o.setItemLayout(ne,{angle:X,startAngle:Z,endAngle:ee,clockwise:B,cx:I,cy:k,r0:D,r:G?w(K,H,[D,L]):L}),Z=ee}),W<n&&N)if(W<=.001){var Y=n/N;o.each(d,function(K,ne){if(!isNaN(K)){var X=o.getItemLayout(ne);X.angle=Y,X.startAngle=R+Q*ne*Y,X.endAngle=R+Q*(ne+1)*Y}})}else V=W/$,Z=R,o.each(d,function(K,ne){if(!isNaN(K)){var X=o.getItemLayout(ne),ee=X.angle===O?O:K*V;X.startAngle=Z,X.endAngle=Z+Q*ee,Z+=Q*ee}});e(c,L,M,S)})}},99264:function(U,C,b){var p=b(87930);b(27614),b(62673),b(51387);var T=b(59448),w=b(53414),e=b(95838),h=b(74278),n=b(24639);p.registerVisual(T("radar")),p.registerVisual(w("radar","circle")),p.registerLayout(e),p.registerProcessor(h("radar")),p.registerPreprocessor(n)},62673:function(U,C,b){var p=b(95166),T=b(59644),w=b(23405),e=b(60653).encodeHTML,h=p.extend({type:"series.radar",dependencies:["radar"],init:function(n){h.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(n,t){return T(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(n){var t=this.getData(),f=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(n);return e(a===""?this.name:a)+"<br/>"+w.map(f,function(y,g){var c=t.get(t.mapDimension(y.dim),n);return e(y.name+" : "+c)}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});U.exports=h},51387:function(U,C,b){var p=b(87930),T=b(51747),w=b(23405),e=b(30696);U.exports=p.extendChartView({type:"radar",render:function(h,n,t){var f=h.coordinateSystem,a=this.group,y=h.getData(),g=this._data;function c(d,m,_,M,S,A){_.removeAll();for(var I=0;I<m.length-1;I++){var k=function(D,L){var R=D.getItemVisual(L,"symbol")||"circle",O=D.getItemVisual(L,"color");if(R!=="none"){var N,z=(N=D.getItemVisual(L,"symbolSize"),w.isArray(N)||(N=[+N,+N]),N),V=e.createSymbol(R,-1,-1,2,2,O);return V.attr({style:{strokeNoScale:!0},z2:100,scale:[z[0]/2,z[1]/2]}),V}}(M,S);k&&(k.__dimIdx=I,d[I]?(k.attr("position",d[I]),T[A?"initProps":"updateProps"](k,{position:m[I]},h,S)):k.attr("position",m[I]),_.add(k))}}function o(d){return w.map(d,function(m){return[f.cx,f.cy]})}y.diff(g).add(function(d){var m=y.getItemLayout(d);if(m){var _=new T.Polygon,M=new T.Polyline,S={shape:{points:m}};_.shape.points=o(m),M.shape.points=o(m),T.initProps(_,S,h,d),T.initProps(M,S,h,d);var A=new T.Group,I=new T.Group;A.add(M),A.add(_),A.add(I),c(M.shape.points,m,I,y,d,!0),y.setItemGraphicEl(d,A)}}).update(function(d,m){var _=g.getItemGraphicEl(m),M=_.childAt(0),S=_.childAt(1),A=_.childAt(2),I={shape:{points:y.getItemLayout(d)}};I.shape.points&&(c(M.shape.points,I.shape.points,A,y,d,!1),T.updateProps(M,I,h),T.updateProps(S,I,h),y.setItemGraphicEl(d,_))}).remove(function(d){a.remove(g.getItemGraphicEl(d))}).execute(),y.eachItemGraphicEl(function(d,m){var _=y.getItemModel(m),M=d.childAt(0),S=d.childAt(1),A=d.childAt(2),I=y.getItemVisual(m,"color");a.add(d),M.useStyle(w.defaults(_.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:I})),M.hoverStyle=_.getModel("emphasis.lineStyle").getLineStyle();var k=_.getModel("areaStyle"),D=_.getModel("emphasis.areaStyle"),L=k.isEmpty()&&k.parentModel.isEmpty(),R=D.isEmpty()&&D.parentModel.isEmpty();R=R&&L,S.ignore=L,S.useStyle(w.defaults(k.getAreaStyle(),{fill:I,opacity:.7})),S.hoverStyle=D.getAreaStyle();var O=_.getModel("itemStyle").getItemStyle(["color"]),N=_.getModel("emphasis.itemStyle").getItemStyle(),z=_.getModel("label"),V=_.getModel("emphasis.label");function B(){S.attr("ignore",R)}function G(){S.attr("ignore",L)}A.eachChild(function(E){E.setStyle(O),E.hoverStyle=w.clone(N),T.setLabelStyle(E.style,E.hoverStyle,z,V,{labelFetcher:y.hostModel,labelDataIndex:m,labelDimIndex:E.__dimIdx,defaultText:y.get(y.dimensions[E.__dimIdx],m),autoColor:I,isRectText:!0})}),d.off("mouseover").off("mouseout").off("normal").off("emphasis"),d.on("emphasis",B).on("mouseover",B).on("normal",G).on("mouseout",G),T.setHoverStyle(d)}),this._data=y},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}})},24639:function(U,C,b){var p=b(23405);U.exports=function(T){var w=T.polar;if(w){p.isArray(w)||(w=[w]);var e=[];p.each(w,function(h,n){h.indicator?(h.type&&!h.shape&&(h.shape=h.type),T.radar=T.radar||[],p.isArray(T.radar)||(T.radar=[T.radar]),T.radar.push(h)):e.push(h)}),T.polar=e}p.each(T.series,function(h){h&&h.type==="radar"&&h.polarIndex&&(h.radarIndex=h.polarIndex)})}},95838:function(U){U.exports=function(C){C.eachSeriesByType("radar",function(b){var p=b.getData(),T=[],w=b.coordinateSystem;if(w){for(var e=w.getIndicatorAxes(),h=0;h<e.length;h++)p.each(p.mapDimension(e[h].dim),n);p.each(function(t){T[t][0]&&T[t].push(T[t][0].slice()),p.setItemLayout(t,T[t])})}function n(t,f){T[f]=T[f]||[],T[f][h]=w.dataToPoint(t,h)}})}},55666:function(U,C,b){var p=b(87930);b(33264),b(76002),b(71874);var T=b(39992),w=b(9885);p.registerLayout(T),p.registerVisual(w)},33264:function(U,C,b){var p=b(95166),T=b(64330),w=b(60653).encodeHTML,e=p.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(h){var n=h.edges||h.links,t=h.data||h.nodes;if(t&&n)return T(t,n,this,!0).data},setNodePosition:function(h,n){var t=this.option.data[h];t.localX=n[0],t.localY=n[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(h,n,t){if(t==="edge"){var f=this.getDataParams(h,t),a=f.data,y=a.source+" -- "+a.target;return f.value&&(y+=" : "+f.value),w(y)}return e.superCall(this,"formatTooltip",h,n)},optionUpdated:function(){var h=this.option;h.focusNodeAdjacency===!0&&(h.focusNodeAdjacency="allEdges")},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}});U.exports=e},76002:function(U,C,b){var p=b(51747),T=b(87930),w=b(23405),e=["itemStyle","opacity"],h=["lineStyle","opacity"];function n(y,g){return y.getVisual("opacity")||y.getModel().get(g)}function t(y,g,c){var o=y.getGraphicEl(),d=n(y,g);c!=null&&(d==null&&(d=1),d*=c),o.downplay&&o.downplay(),o.traverse(function(m){m.type!=="group"&&m.setStyle("opacity",d)})}function f(y,g){var c=n(y,g),o=y.getGraphicEl();o.highlight&&o.highlight(),o.traverse(function(d){d.type!=="group"&&d.setStyle("opacity",c)})}var a=p.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(y,g){var c=g.extent;g.orient==="vertical"?(y.moveTo(g.x1,g.y1),y.bezierCurveTo(g.cpx1,g.cpy1,g.cpx2,g.cpy2,g.x2,g.y2),y.lineTo(g.x2+c,g.y2),y.bezierCurveTo(g.cpx2+c,g.cpy2,g.cpx1+c,g.cpy1,g.x1+c,g.y1)):(y.moveTo(g.x1,g.y1),y.bezierCurveTo(g.cpx1,g.cpy1,g.cpx2,g.cpy2,g.x2,g.y2),y.lineTo(g.x2,g.y2+c),y.bezierCurveTo(g.cpx2,g.cpy2+c,g.cpx1,g.cpy1+c,g.x1,g.y1+c)),y.closePath()}});U.exports=T.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(y,g,c){var o,d,m,_,M=this,S=y.getGraph(),A=this.group,I=y.layoutInfo,k=I.width,D=I.height,L=y.getData(),R=y.getData("edge"),O=y.get("orient");this._model=y,A.removeAll(),A.attr("position",[I.x,I.y]),S.eachEdge(function(N){var z,V,B,G,E,H,W,$,Z=new a;Z.dataIndex=N.dataIndex,Z.seriesIndex=y.seriesIndex,Z.dataType="edge";var Q=N.getModel("lineStyle"),Y=Q.get("curveness"),K=N.node1.getLayout(),ne=N.node1.getModel(),X=ne.get("localX"),ee=ne.get("localY"),ae=N.node2.getLayout(),oe=N.node2.getModel(),se=oe.get("localX"),ge=oe.get("localY"),fe=N.getLayout();switch(Z.shape.extent=Math.max(1,fe.dy),Z.shape.orient=O,O==="vertical"?(z=(X!=null?X*k:K.x)+fe.sy,V=(ee!=null?ee*D:K.y)+K.dy,B=(se!=null?se*k:ae.x)+fe.ty,G=ge!=null?ge*D:ae.y,E=z,H=V*(1-Y)+G*Y,W=B,$=V*Y+G*(1-Y)):(z=(X!=null?X*k:K.x)+K.dx,V=(ee!=null?ee*D:K.y)+fe.sy,B=se!=null?se*k:ae.x,G=(ge!=null?ge*D:ae.y)+fe.ty,E=z*(1-Y)+B*Y,H=V,W=z*Y+B*(1-Y),$=G),Z.setShape({x1:z,y1:V,x2:B,y2:G,cpx1:E,cpy1:H,cpx2:W,cpy2:$}),Z.setStyle(Q.getItemStyle()),Z.style.fill){case"source":Z.style.fill=N.node1.getVisual("color");break;case"target":Z.style.fill=N.node2.getVisual("color")}p.setHoverStyle(Z,N.getModel("emphasis.lineStyle").getItemStyle()),A.add(Z),R.setItemGraphicEl(N.dataIndex,Z)}),S.eachNode(function(N){var z=N.getLayout(),V=N.getModel(),B=V.get("localX"),G=V.get("localY"),E=V.getModel("label"),H=V.getModel("emphasis.label"),W=new p.Rect({shape:{x:B!=null?B*k:z.x,y:G!=null?G*D:z.y,width:z.dx,height:z.dy},style:V.getModel("itemStyle").getItemStyle()}),$=N.getModel("emphasis.itemStyle").getItemStyle();p.setLabelStyle(W.style,$,E,H,{labelFetcher:y,labelDataIndex:N.dataIndex,defaultText:N.id,isRectText:!0}),W.setStyle("fill",N.getVisual("color")),p.setHoverStyle(W,$),A.add(W),L.setItemGraphicEl(N.dataIndex,W),W.dataType="node"}),L.eachItemGraphicEl(function(N,z){var V=L.getItemModel(z);V.get("draggable")&&(N.drift=function(B,G){M._focusAdjacencyDisabled=!0,this.shape.x+=B,this.shape.y+=G,this.dirty(),c.dispatchAction({type:"dragNode",seriesId:y.id,dataIndex:L.getRawIndex(z),localX:this.shape.x/k,localY:this.shape.y/D})},N.ondragend=function(){M._focusAdjacencyDisabled=!1},N.draggable=!0,N.cursor="move"),V.get("focusNodeAdjacency")&&(N.off("mouseover").on("mouseover",function(){M._focusAdjacencyDisabled||c.dispatchAction({type:"focusNodeAdjacency",seriesId:y.id,dataIndex:N.dataIndex})}),N.off("mouseout").on("mouseout",function(){M._focusAdjacencyDisabled||c.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y.id})}))}),R.eachItemGraphicEl(function(N,z){R.getItemModel(z).get("focusNodeAdjacency")&&(N.off("mouseover").on("mouseover",function(){M._focusAdjacencyDisabled||c.dispatchAction({type:"focusNodeAdjacency",seriesId:y.id,edgeDataIndex:N.dataIndex})}),N.off("mouseout").on("mouseout",function(){M._focusAdjacencyDisabled||c.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y.id})}))}),!this._data&&y.get("animation")&&A.setClipPath((o=A.getBoundingRect(),d=y,m=function(){A.removeClipPath()},_=new p.Rect({shape:{x:o.x-10,y:o.y-10,width:0,height:o.height+20}}),p.initProps(_,{shape:{width:o.width+20,height:o.height+20}},d,m),_)),this._data=y.getData()},dispose:function(){},focusNodeAdjacency:function(y,g,c,o){var d=this._model.getData(),m=d.graph,_=o.dataIndex,M=d.getItemModel(_),S=o.edgeDataIndex;if(_!=null||S!=null){var A=m.getNodeByIndex(_),I=m.getEdgeByIndex(S);if(m.eachNode(function(D){t(D,e,.1)}),m.eachEdge(function(D){t(D,h,.1)}),A){f(A,e);var k=M.get("focusNodeAdjacency");k==="outEdges"?w.each(A.outEdges,function(D){D.dataIndex<0||(f(D,h),f(D.node2,e))}):k==="inEdges"?w.each(A.inEdges,function(D){D.dataIndex<0||(f(D,h),f(D.node1,e))}):k==="allEdges"&&w.each(A.edges,function(D){D.dataIndex<0||(f(D,h),f(D.node1,e),f(D.node2,e))})}I&&(f(I,h),f(I.node1,e),f(I.node2,e))}},unfocusNodeAdjacency:function(y,g,c,o){var d=this._model.getGraph();d.eachNode(function(m){t(m,e)}),d.eachEdge(function(m){t(m,h)})}})},71874:function(U,C,b){var p=b(87930);b(93191),p.registerAction({type:"dragNode",event:"dragNode",update:"update"},function(T,w){w.eachComponent({mainType:"series",subType:"sankey",query:T},function(e){e.setNodePosition(T.dataIndex,[T.localX,T.localY])})})},39992:function(U,C,b){var p=b(62751),T=b(23405),w=b(51064).groupData;function e(y,g,c,o,d){T.each(y,function(m){var _,M,S,A,I,k=0,D=m.length;if(d==="vertical"){for(m.sort(function(L,R){return L.getLayout().x-R.getLayout().x}),S=0;S<D;S++)(M=k-(_=m[S]).getLayout().x)>0&&(A=_.getLayout().x+M,_.setLayout({x:A},!0)),k=_.getLayout().x+_.getLayout().dx+g;if((M=k-g-o)>0)for(A=_.getLayout().x-M,_.setLayout({x:A},!0),k=A,S=D-2;S>=0;--S)(M=(_=m[S]).getLayout().x+_.getLayout().dx+g-k)>0&&(A=_.getLayout().x-M,_.setLayout({x:A},!0)),k=_.getLayout().x}else{for(m.sort(function(L,R){return L.getLayout().y-R.getLayout().y}),S=0;S<D;S++)(M=k-(_=m[S]).getLayout().y)>0&&(I=_.getLayout().y+M,_.setLayout({y:I},!0)),k=_.getLayout().y+_.getLayout().dy+g;if((M=k-g-c)>0)for(I=_.getLayout().y-M,_.setLayout({y:I},!0),k=I,S=D-2;S>=0;--S)(M=(_=m[S]).getLayout().y+_.getLayout().dy+g-k)>0&&(I=_.getLayout().y-M,_.setLayout({y:I},!0)),k=_.getLayout().y}})}function h(y,g){return t(y.node2,g)*y.getValue()}function n(y,g){return t(y.node1,g)*y.getValue()}function t(y,g){return g==="vertical"?y.getLayout().x+y.getLayout().dx/2:y.getLayout().y+y.getLayout().dy/2}function f(y){return y.getValue()}function a(y,g,c){for(var o=0,d=y.length,m=-1;++m<d;){var _=+g.call(y,y[m],c);isNaN(_)||(o+=_)}return o}b(9129).__DEV__,U.exports=function(y,g,c){y.eachSeriesByType("sankey",function(o){var d,m,_,M,S,A,I,k,D,L,R,O,N,z=o.get("nodeWidth"),V=o.get("nodeGap"),B=(d=o,m=g,p.getLayoutRect(d.getBoxLayoutParams(),{width:m.getWidth(),height:m.getHeight()}));o.layoutInfo=B;var G=B.width,E=B.height,H=o.getGraph(),W=H.nodes,$=H.edges;_=W,T.each(_,function(Q){var Y=Math.max(a(Q.outEdges,f),a(Q.inEdges,f));Q.setLayout({value:Y},!0)});var Z=T.filter(W,function(Q){return Q.getLayout().value===0}).length!==0?0:o.get("layoutIterations");M=W,S=$,A=z,I=V,k=G,D=E,L=Z,function(Q,Y,K,ne,X,ee){for(var ae,oe,se,ge,fe,le,ue=[],he=[],pe=[],ye=[],ve=0,Ae=0,_e=0;_e<Y.length;_e++)ue[_e]=1;for(_e=0;_e<Q.length;_e++)he[_e]=Q[_e].inEdges.length,he[_e]===0&&pe.push(Q[_e]);for(;pe.length;){for(var Pe=0;Pe<pe.length;Pe++){var Oe=pe[Pe];ee==="vertical"?(Oe.setLayout({y:ve},!0),Oe.setLayout({dy:K},!0)):(Oe.setLayout({x:ve},!0),Oe.setLayout({dx:K},!0));for(var ke=0;ke<Oe.outEdges.length;ke++){var De=Oe.outEdges[ke];ue[Y.indexOf(De)]=0;var Ce=De.node2,Le=Q.indexOf(Ce);--he[Le]==0&&ye.push(Ce)}}++ve,pe=ye,ye=[]}for(_e=0;_e<ue.length;_e++);ae=Q,oe=ve,se=ee,T.each(ae,function(Ve){Ve.outEdges.length||(se==="vertical"?Ve.setLayout({y:oe-1},!0):Ve.setLayout({x:oe-1},!0))}),ge=Q,fe=ee==="vertical"?(X-K)/(ve-1):(ne-K)/(ve-1),le=ee,T.each(ge,function(Ve){if(le==="vertical"){var Ge=Ve.getLayout().y*fe;Ve.setLayout({y:Ge},!0)}else{var Je=Ve.getLayout().x*fe;Ve.setLayout({x:Je},!0)}})}(M,S,A,k,D,R=o.get("orient")),function(Q,Y,K,ne,X,ee,ae){var oe,se,ge,fe,le,ue,he,pe,ye,ve,Ae,_e,Pe=(oe=Q,se=[],ge=ae==="vertical"?"y":"x",(fe=w(oe,function(ke){return ke.getLayout()[ge]})).keys.sort(function(ke,De){return ke-De}),T.each(fe.keys,function(ke){se.push(fe.buckets.get(ke))}),se);le=Pe,ue=Y,he=K,pe=ne,ye=X,ve=ae,Ae=[],T.each(le,function(ke){var De=ke.length,Ce=0,Le=0;T.each(ke,function(Ve){Ce+=Ve.getLayout().value}),Le=ve==="vertical"?(pe-(De-1)*ye)/Ce:(he-(De-1)*ye)/Ce,Ae.push(Le)}),Ae.sort(function(ke,De){return ke-De}),_e=Ae[0],T.each(le,function(ke){T.each(ke,function(De,Ce){var Le=De.getLayout().value*_e;ve==="vertical"?(De.setLayout({x:Ce},!0),De.setLayout({dx:Le},!0)):(De.setLayout({y:Ce},!0),De.setLayout({dy:Le},!0))})}),T.each(ue,function(ke){var De=+ke.getValue()*_e;ke.setLayout({dy:De},!0)}),e(Pe,X,K,ne,ae);for(var Oe=1;ee>0;ee--)(function(ke,De,Ce){T.each(ke.slice().reverse(),function(Le){T.each(Le,function(Ve){if(Ve.outEdges.length){var Ge=a(Ve.outEdges,h,Ce)/a(Ve.outEdges,f,Ce);if(Ce==="vertical"){var Je=Ve.getLayout().x+(Ge-t(Ve,Ce))*De;Ve.setLayout({x:Je},!0)}else{var rt=Ve.getLayout().y+(Ge-t(Ve,Ce))*De;Ve.setLayout({y:rt},!0)}}})})})(Pe,Oe*=.99,ae),e(Pe,X,K,ne,ae),function(ke,De,Ce){T.each(ke,function(Le){T.each(Le,function(Ve){if(Ve.inEdges.length){var Ge=a(Ve.inEdges,n,Ce)/a(Ve.inEdges,f,Ce);if(Ce==="vertical"){var Je=Ve.getLayout().x+(Ge-t(Ve,Ce))*De;Ve.setLayout({x:Je},!0)}else{var rt=Ve.getLayout().y+(Ge-t(Ve,Ce))*De;Ve.setLayout({y:rt},!0)}}})})}(Pe,Oe,ae),e(Pe,X,K,ne,ae)}(M,S,D,k,I,L,R),O=M,N=R,T.each(O,function(Q){N==="vertical"?(Q.outEdges.sort(function(Y,K){return Y.node2.getLayout().x-K.node2.getLayout().x}),Q.inEdges.sort(function(Y,K){return Y.node1.getLayout().x-K.node1.getLayout().x})):(Q.outEdges.sort(function(Y,K){return Y.node2.getLayout().y-K.node2.getLayout().y}),Q.inEdges.sort(function(Y,K){return Y.node1.getLayout().y-K.node1.getLayout().y}))}),T.each(O,function(Q){var Y=0,K=0;T.each(Q.outEdges,function(ne){ne.setLayout({sy:Y},!0),Y+=ne.getLayout().dy}),T.each(Q.inEdges,function(ne){ne.setLayout({ty:K},!0),K+=ne.getLayout().dy})})})}},9885:function(U,C,b){var p=b(32013),T=b(23405);U.exports=function(w,e){w.eachSeriesByType("sankey",function(h){var n=h.getGraph().nodes;if(n.length){var t=1/0,f=-1/0;T.each(n,function(a){var y=a.getLayout().value;y<t&&(t=y),y>f&&(f=y)}),T.each(n,function(a){var y=new p({type:"color",mappingMethod:"linear",dataExtent:[t,f],visual:h.get("color")}).mapValueToVisual(a.getLayout().value);a.setVisual("color",y);var g=a.getModel().get("itemStyle.color");g!=null&&a.setVisual("color",g)})}})}},37679:function(U,C,b){var p=b(87930);b(29114),b(83260);var T=b(53414),w=b(21188);b(97035),p.registerVisual(T("scatter","circle")),p.registerLayout(w("scatter"))},29114:function(U,C,b){var p=b(74107);U.exports=b(95166).extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(T,w){return p(this.getSource(),this)},brushSelector:"point",getProgressive:function(){var T=this.option.progressive;return T??(this.option.large?5e3:this.get("progressive"))},getProgressiveThreshold:function(){var T=this.option.progressiveThreshold;return T??(this.option.large?1e4:this.get("progressiveThreshold"))},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8}}})},83260:function(U,C,b){var p=b(87930),T=b(83522),w=b(72631),e=b(21188);p.extendChartView({type:"scatter",render:function(h,n,t){var f=h.getData();this._updateSymbolDraw(f,h).updateData(f),this._finished=!0},incrementalPrepareRender:function(h,n,t){var f=h.getData();this._updateSymbolDraw(f,h).incrementalPrepareUpdate(f),this._finished=!1},incrementalRender:function(h,n,t){this._symbolDraw.incrementalUpdate(h,n.getData()),this._finished=h.end===n.getData().count()},updateTransform:function(h,n,t){var f=h.getData();if(this.group.dirty(),!this._finished||f.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=e().reset(h);a.progress&&a.progress({start:0,end:f.count()},f),this._symbolDraw.updateLayout(f)},_updateSymbolDraw:function(h,n){var t=this._symbolDraw,f=n.pipelineContext.large;return t&&f===this._isLargeDraw||(t&&t.remove(),t=this._symbolDraw=f?new w:new T,this._isLargeDraw=f,this.group.removeAll()),this.group.add(t.group),t},remove:function(h,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},76954:function(U,C,b){var p=b(87930),T=b(23405);b(93761),b(91149),b(92426);var w=b(59448),e=b(62979),h=b(74278);p.registerVisual(T.curry(w,"sunburst")),p.registerLayout(T.curry(e,"sunburst")),p.registerProcessor(T.curry(h,"sunburst"))},70710:function(U,C,b){var p=b(23405),T=b(51747),w={NONE:"none",ANCESTOR:"ancestor",SELF:"self"};function e(n,t,f){T.Group.call(this);var a=new T.Sector({z2:2});a.seriesIndex=t.seriesIndex;var y=new T.Text({z2:4,silent:n.getModel("label").get("silent")});function g(){y.ignore=y.hoverIgnore}function c(){y.ignore=y.normalIgnore}this.add(a),this.add(y),this.updateData(!0,n,"normal",t,f),this.on("emphasis",g).on("normal",c).on("mouseover",g).on("mouseout",c)}var h=e.prototype;h.updateData=function(n,t,f,a,y){this.node=t,t.piece=this,a=a||this._seriesModel,y=y||this._ecModel;var g,c,o,d,m=this.childAt(0);m.dataIndex=t.dataIndex;var _=t.getModel(),M=t.getLayout(),S=p.extend({},M);S.label=null;var A=function(R,O,N){var z=R.getVisual("color"),V=R.getVisual("visualMeta");V&&V.length!==0||(z=null);var B=R.getModel("itemStyle").get("color");if(!B){if(z)return z;if(R.depth===0)return N.option.color[0];var G=N.option.color.length;B=N.option.color[function(E){for(var H=E;H.depth>1;)H=H.parentNode;var W=E.getAncestors()[0];return p.indexOf(W.children,H)}(R)%G]}return B}(t,0,y);g=t,c=a,o=A,c.getData().setItemVisual(g.dataIndex,"color",o);var I=_.getModel("itemStyle").getItemStyle();if(f==="normal")d=I;else{var k=_.getModel(f+".itemStyle").getItemStyle();d=p.merge(k,I)}d=p.defaults({lineJoin:"bevel",fill:d.fill||A},d),n?(m.setShape(S),m.shape.r=M.r0,T.updateProps(m,{shape:{r:M.r}},a,t.dataIndex),m.useStyle(d)):typeof d.fill=="object"&&d.fill.type||typeof m.style.fill=="object"&&m.style.fill.type?(T.updateProps(m,{shape:S},a),m.useStyle(d)):T.updateProps(m,{shape:S,style:d},a),this._updateLabel(a,A,f);var D=_.getShallow("cursor");if(D&&m.attr("cursor",D),n){var L=a.getShallow("highlightPolicy");this._initEvents(m,t,a,L)}this._seriesModel=a||this._seriesModel,this._ecModel=y||this._ecModel},h.onEmphasis=function(n){var t=this;this.node.hostTree.root.eachNode(function(f){var a,y,g;f.piece&&(t.node===f?f.piece.updateData(!1,f,"emphasis"):(a=f,y=t.node,(g=n)!==w.NONE&&(g===w.SELF?a===y:g===w.ANCESTOR?a===y||a.isAncestorOf(y):a===y||a.isDescendantOf(y))?f.piece.childAt(0).trigger("highlight"):n!==w.NONE&&f.piece.childAt(0).trigger("downplay")))})},h.onNormal=function(){this.node.hostTree.root.eachNode(function(n){n.piece&&n.piece.updateData(!1,n,"normal")})},h.onHighlight=function(){this.updateData(!1,this.node,"highlight")},h.onDownplay=function(){this.updateData(!1,this.node,"downplay")},h._updateLabel=function(n,t,f){var a,y=this.node.getModel(),g=y.getModel("label"),c=f==="normal"||f==="emphasis"?g:y.getModel(f+".label"),o=y.getModel("emphasis.label"),d=p.retrieve(n.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);B("show")===!1&&(d="");var m=this.node.getLayout(),_=c.get("minAngle");_==null&&(_=g.get("minAngle")),_=_/180*Math.PI;var M=m.endAngle-m.startAngle;_!=null&&Math.abs(M)<_&&(d="");var S=this.childAt(1);T.setLabelStyle(S.style,S.hoverStyle||{},g,o,{defaultText:c.getShallow("show")?d:null,autoColor:t,useInsideStyle:!0});var A=(m.startAngle+m.endAngle)/2,I=Math.cos(A),k=Math.sin(A),D=B("position"),L=B("distance")||0,R=B("align");D==="outside"?(a=m.r+L,R=A>Math.PI/2?"right":"left"):R&&R!=="center"?R==="left"?(a=m.r0+L,A>Math.PI/2&&(R="right")):R==="right"&&(a=m.r-L,A>Math.PI/2&&(R="left")):(a=(m.r+m.r0)/2,R="center"),S.attr("style",{text:d,textAlign:R,textVerticalAlign:B("verticalAlign")||"middle",opacity:B("opacity")});var O=a*I+m.cx,N=a*k+m.cy;S.attr("position",[O,N]);var z=B("rotate"),V=0;function B(G){var E=c.get(G);return E??g.get(G)}z==="radial"?(V=-A)<-Math.PI/2&&(V+=Math.PI):z==="tangential"?(V=Math.PI/2-A)>Math.PI/2?V-=Math.PI:V<-Math.PI/2&&(V+=Math.PI):typeof z=="number"&&(V=z*Math.PI/180),S.attr("rotation",V)},h._initEvents=function(n,t,f,a){n.off("mouseover").off("mouseout").off("emphasis").off("normal");var y=this,g=function(){y.onEmphasis(a)},c=function(){y.onNormal()};f.isAnimationEnabled()&&n.on("mouseover",g).on("mouseout",c).on("emphasis",g).on("normal",c).on("downplay",function(){y.onDownplay()}).on("highlight",function(){y.onHighlight()})},p.inherits(e,T.Group),U.exports=e},93761:function(U,C,b){var p=b(23405),T=b(95166),w=b(93455),e=b(75445).wrapTreePathInfo;U.exports=T.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(h,n){var t={name:h.name,children:h.data};(function y(g){var c=0;p.each(g.children,function(d){y(d);var m=d.value;p.isArray(m)&&(m=m[0]),c+=m});var o=g.value;p.isArray(o)&&(o=o[0]),(o==null||isNaN(o))&&(o=c),o<0&&(o=0),p.isArray(g.value)?g.value[0]=o:g.value=o})(t);var f=h.levels||[],a={};return a.levels=f,w.createTree(t,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(h){var n=T.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=e(this.getData().tree.getNodeByDataIndex(h),this),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(h){h?this._viewRoot=h:h=this._viewRoot;var n=this.getRawData().tree.root;h&&(h===n||n.contains(h))||(this._viewRoot=n)}})},91149:function(U,C,b){var p=b(23405),T=b(4695),w=b(70710),e=b(99018);U.exports=T.extend({type:"sunburst",init:function(){},render:function(h,n,t,f){var a=this;this.seriesModel=h,this.api=t,this.ecModel=n;var y=h.getData(),g=y.tree.root,c=h.getViewRoot(),o=this.group,d=h.get("renderLabelForZeroData"),m=[];if(c.eachNode(function(S){m.push(S)}),function(S,A){function I(D){return D.getId()}function k(D,L){(function(R,O){if(d||!R||R.getValue()||(R=null),R!==g&&O!==g){if(O&&O.piece){var N;R?(O.piece.updateData(!1,R,"normal",h,n),y.setItemGraphicEl(R.dataIndex,O.piece)):(N=O)&&N.piece&&(o.remove(N.piece),N.piece=null)}else if(R){var z=new w(R,h,n);o.add(z),y.setItemGraphicEl(R.dataIndex,z)}}})(D==null?null:S[D],L==null?null:A[L])}(S.length!==0||A.length!==0)&&new e(A,S,I,I).add(k).update(k).remove(p.curry(k,null)).execute()}(m,this._oldChildren||[]),function(S,A){if(A.depth>0){a.virtualPiece?a.virtualPiece.updateData(!1,S,"normal",h,n):(a.virtualPiece=new w(S,h,n),o.add(a.virtualPiece)),A.piece._onclickEvent&&A.piece.off("click",A.piece._onclickEvent);var I=function(k){a._rootToNode(A.parentNode)};A.piece._onclickEvent=I,a.virtualPiece.on("click",I)}else a.virtualPiece&&(o.remove(a.virtualPiece),a.virtualPiece=null)}(g,c),f&&f.highlight&&f.highlight.piece){var _=h.getShallow("highlightPolicy");f.highlight.piece.onEmphasis(_)}else if(f&&f.unhighlight){var M=this.virtualPiece;!M&&g.children.length&&(M=g.children[0].piece),M&&M.onNormal()}this._initEvents(),this._oldChildren=m},dispose:function(){},_initEvents:function(){var h=this,n=function(t){var f=!1;h.seriesModel.getViewRoot().eachNode(function(a){if(!f&&a.piece&&a.piece.childAt(0)===t.target){var y=a.getModel().get("nodeClick");if(y==="rootToNode")h._rootToNode(a);else if(y==="link"){var g=a.getModel(),c=g.get("link");if(c){var o=g.get("target",!0)||"_blank";window.open(c,o)}}f=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",n),this.group._onclickEvent=n},_rootToNode:function(h){h!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:h})},containPoint:function(h,n){var t=n.getData().getItemLayout(0);if(t){var f=h[0]-t.cx,a=h[1]-t.cy,y=Math.sqrt(f*f+a*a);return y<=t.r&&y>=t.r0}}})},92426:function(U,C,b){var p=b(87930),T=b(75445),w="sunburstRootToNode";p.registerAction({type:w,update:"updateView"},function(h,n){n.eachComponent({mainType:"series",subType:"sunburst",query:h},function(t,f){var a=T.retrieveTargetInfo(h,[w],t);if(a){var y=t.getViewRoot();y&&(h.direction=T.aboveViewRoot(y,a.node)?"rollUp":"drillDown"),t.resetViewRoot(a.node)}})});var e="sunburstHighlight";p.registerAction({type:e,update:"updateView"},function(h,n){n.eachComponent({mainType:"series",subType:"sunburst",query:h},function(t,f){var a=T.retrieveTargetInfo(h,[e],t);a&&(h.highlight=a.node)})}),p.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(h,n){n.eachComponent({mainType:"series",subType:"sunburst",query:h},function(t,f){h.unhighlight=!0})})},62979:function(U,C,b){var p=b(54684).parsePercent,T=b(23405),w=2*Math.PI,e=Math.PI/180;U.exports=function(h,n,t,f){n.eachSeriesByType(h,function(a){var y=a.get("center"),g=a.get("radius");T.isArray(g)||(g=[0,g]),T.isArray(y)||(y=[y,y]);var c=t.getWidth(),o=t.getHeight(),d=Math.min(c,o),m=p(y[0],c),_=p(y[1],o),M=p(g[0],d/2),S=p(g[1],d/2),A=-a.get("startAngle")*e,I=a.get("minAngle")*e,k=a.getData().tree.root,D=a.getViewRoot(),L=D.depth,R=a.get("sort");R!=null&&function Y(K,ne){var X=K.children||[];K.children=function(ee,ae){if(typeof ae=="function")return ee.sort(ae);var oe=ae==="asc";return ee.sort(function(se,ge){var fe=(se.getValue()-ge.getValue())*(oe?1:-1);return fe===0?(se.dataIndex-ge.dataIndex)*(oe?-1:1):fe})}(X,ne),X.length&&T.each(K.children,function(ee){Y(ee,ne)})}(D,R);var O=0;T.each(D.children,function(Y){!isNaN(Y.getValue())&&O++});var N=D.getValue(),z=Math.PI/(N||O)*2,V=D.depth>0,B=(S-M)/(D.height-(V?-1:1)||1),G=a.get("clockwise"),E=a.get("stillShowZeroSum"),H=w,W=0,$=G?1:-1,Z=function(Y,K){if(Y){var ne=K;if(Y!==k){var X=Y.getValue(),ee=N===0&&E?z:X*z;ee<I?(ee=I,H-=I):W+=X,ne=K+$*ee;var ae=Y.depth-L-(V?-1:1),oe=M+B*ae,se=M+B*(ae+1),ge=Y.getModel();ge.get("r0")!=null&&(oe=p(ge.get("r0"),d/2)),ge.get("r")!=null&&(se=p(ge.get("r"),d/2)),Y.setLayout({angle:ee,startAngle:K,endAngle:ne,clockwise:G,cx:m,cy:_,r0:oe,r:se})}if(Y.children&&Y.children.length){var fe=0;T.each(Y.children,function(le){fe+=Z(le,K+fe)})}return ne-K}};if(V){var Q=2*Math.PI;k.setLayout({angle:Q,startAngle:A,endAngle:A+Q,clockwise:G,cx:m,cy:_,r0:M,r:M+B})}Z(D,A)})}},4380:function(U,C,b){var p=b(87930);b(11818),b(2970),b(83826);var T=b(45362),w=b(94892),e=b(74278);p.registerLayout(T),p.registerVisual(w),p.registerProcessor(e("themeRiver"))},2970:function(U,C,b){var p=b(95166),T=b(61554),w=b(30186).getDimensionTypeByAxis,e=b(80023),h=b(23405),n=b(51064).groupData,t=b(60653).encodeHTML,f=p.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(a){f.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(a){var y=a.length,g=n(a,function(O){return O[2]}),c=[];g.buckets.each(function(O,N){c.push({name:N,dataList:O})});for(var o=c.length,d=-1,m=-1,_=0;_<o;++_){var M=c[_].dataList.length;M>d&&(d=M,m=_)}for(var S=0;S<o;++S)if(S!==m)for(var A=c[S].name,I=0;I<d;++I){for(var k=c[m].dataList[I][0],D=c[S].dataList.length,L=-1,R=0;R<D;++R)if(c[S].dataList[R][0]===k){L=R;break}L===-1&&(a[y]=[],a[y][0]=k,a[y][1]=0,a[y][2]=A,y++)}return a},getInitialData:function(a,y){for(var g=y.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),c=h.filter(a.data,function(A){return A[2]!==void 0}),o=this.fixData(c||[]),d=[],m=this.nameMap=h.createHashMap(),_=0,M=0;M<o.length;++M)d.push(o[M][2]),!m.get(o[M][2])&&(m.set(o[M][2],_),_++);var S=new e(T(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:w(g)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),this);return S.initData(o),S},getLayerSeries:function(){for(var a=this.getData(),y=a.count(),g=[],c=0;c<y;++c)g[c]=c;var o=a.mapDimension("single"),d=n(g,function(_){return a.get("name",_)}),m=[];return d.buckets.each(function(_,M){_.sort(function(S,A){return a.get(o,S)-a.get(o,A)}),m.push({name:M,indices:_})}),m},getAxisTooltipData:function(a,y,g){h.isArray(a)||(a=a?[a]:[]);for(var c,o=this.getData(),d=this.getLayerSeries(),m=[],_=d.length,M=0;M<_;++M){for(var S=Number.MAX_VALUE,A=-1,I=d[M].indices.length,k=0;k<I;++k){var D=o.get(a[0],d[M].indices[k]),L=Math.abs(D-y);L<=S&&(c=D,S=L,A=d[M].indices[k])}m.push(A)}return{dataIndices:m,nestestValue:c}},formatTooltip:function(a){var y=this.getData(),g=y.getName(a),c=y.get(y.mapDimension("value"),a);return(isNaN(c)||c==null)&&(c="-"),t(g+" : "+c)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});U.exports=f},83826:function(U,C,b){var p=b(87930),T=b(10930).Polygon,w=b(51747),e=b(23405),h=e.bind,n=e.extend,t=b(99018);U.exports=p.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(f,a,y){var g=f.getData(),c=this.group,o=f.getLayerSeries(),d=g.getLayout("layoutInfo"),m=d.rect,_=d.boundaryGap;function M(k){return k.name}c.attr("position",[0,m.y+_[0]]);var S=new t(this._layersSeries||[],o,M,M),A={};function I(k,D,L){var R,O,N,z=this._layers;if(k==="remove")return void c.remove(z[D]);for(var V=[],B=[],G=o[D].indices,E=0;E<G.length;E++){var H=g.getItemLayout(G[E]),W=H.x,$=H.y0,Z=H.y;V.push([W,$]),B.push([W,$+Z]),R=g.getItemVisual(G[E],"color")}var Q=g.getItemLayout(G[0]),Y=g.getItemModel(G[E-1]),K=Y.getModel("label"),ne=K.get("margin");if(k==="add"){var X,ee,ae,oe,se=A[D]=new w.Group;O=new T({shape:{points:V,stackedOnPoints:B,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N=new w.Text({style:{x:Q.x-ne,y:Q.y0+Q.y/2}}),se.add(O),se.add(N),c.add(se),O.setClipPath((X=O.getBoundingRect(),ee=f,ae=function(){O.removeClipPath()},oe=new w.Rect({shape:{x:X.x-10,y:X.y-10,width:0,height:X.height+20}}),w.initProps(oe,{shape:{width:X.width+20,height:X.height+20}},ee,ae),oe))}else{var se=z[L];O=se.childAt(0),N=se.childAt(1),c.add(se),A[D]=se,w.updateProps(O,{shape:{points:V,stackedOnPoints:B}},f),w.updateProps(N,{style:{x:Q.x-ne,y:Q.y0+Q.y/2}},f)}var ge=Y.getModel("emphasis.itemStyle"),fe=Y.getModel("itemStyle");w.setTextStyle(N.style,K,{text:K.get("show")?f.getFormattedLabel(G[E-1],"normal")||g.getName(G[E-1]):null,textVerticalAlign:"middle"}),O.setStyle(n({fill:R},fe.getItemStyle(["color"]))),w.setHoverStyle(O,ge.getItemStyle())}S.add(h(I,this,"add")).update(h(I,this,"update")).remove(h(I,this,"remove")).execute(),this._layersSeries=o,this._layers=A},dispose:function(){}})},45362:function(U,C,b){var p=b(23405),T=b(54684);function w(e,h,n){if(e.count())for(var t,f=h.coordinateSystem,a=h.getLayerSeries(),y=e.mapDimension("single"),g=e.mapDimension("value"),c=p.map(a,function(I){return p.map(I.indices,function(k){var D=f.dataToPoint(e.get(y,k));return D[1]=e.get(g,k),D})}),o=function(I){for(var k,D=I.length,L=I[0].length,R=[],O=[],N=0,z={},V=0;V<L;++V){for(var B=0,k=0;B<D;++B)k+=I[B][V][1];k>N&&(N=k),R.push(k)}for(var G=0;G<L;++G)O[G]=(N-R[G])/2;N=0;for(var E=0;E<L;++E){var H=R[E]+O[E];H>N&&(N=H)}return z.y0=O,z.max=N,z}(c),d=o.y0,m=n/o.max,_=a.length,M=a[0].indices.length,S=0;S<M;++S){t=d[S]*m,e.setItemLayout(a[0].indices[S],{layerIndex:0,x:c[0][S][0],y0:t,y:c[0][S][1]*m});for(var A=1;A<_;++A)t+=c[A-1][S][1]*m,e.setItemLayout(a[A].indices[S],{layerIndex:A,x:c[A][S][0],y0:t,y:c[A][S][1]*m})}}U.exports=function(e,h){e.eachSeriesByType("themeRiver",function(n){var t=n.getData(),f=n.coordinateSystem,a={},y=f.getRect();a.rect=y;var g=n.get("boundaryGap"),c=f.getAxis();a.boundaryGap=g,c.orient==="horizontal"?(g[0]=T.parsePercent(g[0],y.height),g[1]=T.parsePercent(g[1],y.height),w(t,n,y.height-g[0]-g[1])):(g[0]=T.parsePercent(g[0],y.width),g[1]=T.parsePercent(g[1],y.width),w(t,n,y.width-g[0]-g[1])),t.setLayout("layoutInfo",a)})}},94892:function(U,C,b){var p=b(23405).createHashMap;U.exports=function(T){T.eachSeriesByType("themeRiver",function(w){var e=w.getData(),h=w.getRawData(),n=w.get("color"),t=p();e.each(function(f){t.set(e.getRawIndex(f),f)}),h.each(function(f){var a=h.getName(f),y=n[(w.nameMap.get(a)-1)%n.length];h.setItemVisual(f,"color",y);var g=t.get(f);g!=null&&e.setItemVisual(g,"color",y)})})}},80942:function(U,C,b){var p=b(87930);b(83214),b(21585),b(23574);var T=b(53414),w=b(11307);p.registerVisual(T("tree","circle")),p.registerLayout(w)},83214:function(U,C,b){var p=b(95166),T=b(93455),w=b(60653).encodeHTML;U.exports=p.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var h={name:e.name,children:e.data},n=e.leaves||{},t={};t.leaves=n;var f=T.createTree(h,this,t),a=0;f.eachNode("preorder",function(g){g.depth>a&&(a=g.depth)});var y=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return f.root.eachNode("preorder",function(g){var c=g.hostTree.data.getRawDataItem(g.dataIndex);g.isExpand=c&&c.collapsed!=null?!c.collapsed:g.depth<=y}),f.data},getOrient:function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){for(var h=this.getData().tree,n=h.root.children[0],t=h.getNodeByDataIndex(e),f=t.getValue(),a=t.name;t&&t!==n;)a=t.parentNode.name+"."+a,t=t.parentNode;return w(a+(isNaN(f)||f==null?"":" : "+f))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}})},21585:function(U,C,b){var p=b(23405),T=b(51747),w=b(59470),e=b(87212).radialCoordinate,h=b(87930),n=b(6973),t=b(42458),f=b(6463),a=b(55104),y=b(11731).onIrrelevantElement;function g(_,M){var S=_.getItemLayout(M);return S&&!isNaN(S.x)&&!isNaN(S.y)&&_.getItemVisual(M,"symbol")!=="none"}function c(_,M,S){return S.itemModel=M,S.itemStyle=M.getModel("itemStyle").getItemStyle(),S.hoverItemStyle=M.getModel("emphasis.itemStyle").getItemStyle(),S.lineStyle=M.getModel("lineStyle").getLineStyle(),S.labelModel=M.getModel("label"),S.hoverLabelModel=M.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?S.symbolInnerColor=S.itemStyle.fill:S.symbolInnerColor="#fff",S}function o(_,M,S,A,I,O){var D=!S,L=_.tree.getNodeByDataIndex(M),R=L.getModel(),O=c(L,R,O),N=_.tree.root,z=L.parentNode===N?L:L.parentNode||L,V=_.getItemGraphicEl(z.dataIndex),B=z.getLayout(),G=V?{x:V.position[0],y:V.position[1],rawX:V.__radialOldRawX,rawY:V.__radialOldRawY}:B,E=L.getLayout();D?(S=new w(_,M,O)).attr("position",[G.x,G.y]):S.updateData(_,M,O),S.__radialOldRawX=S.__radialRawX,S.__radialOldRawY=S.__radialRawY,S.__radialRawX=E.rawX,S.__radialRawY=E.rawY,A.add(S),_.setItemGraphicEl(M,S),T.updateProps(S,{position:[E.x,E.y]},I);var H=S.getSymbolPath();if(O.layout==="radial"){var W,$,Z=N.children[0],Q=Z.getLayout(),Y=Z.children.length;if(E.x===Q.x&&L.isExpand===!0){var K={};K.x=(Z.children[0].getLayout().x+Z.children[Y-1].getLayout().x)/2,K.y=(Z.children[0].getLayout().y+Z.children[Y-1].getLayout().y)/2,(W=Math.atan2(K.y-Q.y,K.x-Q.x))<0&&(W=2*Math.PI+W),($=K.x<Q.x)&&(W-=Math.PI)}else(W=Math.atan2(E.y-Q.y,E.x-Q.x))<0&&(W=2*Math.PI+W),L.children.length===0||L.children.length!==0&&L.isExpand===!1?($=E.x<Q.x)&&(W-=Math.PI):($=E.x>Q.x)||(W-=Math.PI);var ne=$?"left":"right";H.setStyle({textPosition:ne,textRotation:-W,textOrigin:"center",verticalAlign:"middle"})}if(L.parentNode&&L.parentNode!==N){var X=S.__edge;X||(X=S.__edge=new T.BezierCurve({shape:m(O,G,G),style:p.defaults({opacity:0,strokeNoScale:!0},O.lineStyle)})),T.updateProps(X,{shape:m(O,B,E),style:{opacity:1}},I),A.add(X)}}function d(_,M,S,A,I,k){for(var D,L=_.tree.getNodeByDataIndex(M),R=_.tree.root,O=L.getModel(),k=c(L,O,k),N=L.parentNode===R?L:L.parentNode||L;(D=N.getLayout())==null;)N=N.parentNode===R?N:N.parentNode||N;T.updateProps(S,{position:[D.x+1,D.y+1]},I,function(){A.remove(S),_.setItemGraphicEl(M,null)}),S.fadeOut(null,{keepLabel:!0});var z=S.__edge;z&&T.updateProps(z,{shape:m(k,D,D),style:{opacity:0}},I,function(){A.remove(z)})}function m(_,M,S){var A,I,k,D,L,R,O,N,z=_.orient;if(_.layout==="radial"){L=M.rawX,O=M.rawY,R=S.rawX,N=S.rawY;var V=e(L,O),B=e(L,O+(N-O)*_.curvature),G=e(R,N+(O-N)*_.curvature),E=e(R,N);return{x1:V.x,y1:V.y,x2:E.x,y2:E.y,cpx1:B.x,cpy1:B.y,cpx2:G.x,cpy2:G.y}}return L=M.x,O=M.y,R=S.x,N=S.y,(z==="LR"||z==="RL")&&(A=L+(R-L)*_.curvature,I=O,k=R+(L-R)*_.curvature,D=N),(z==="TB"||z==="BT")&&(A=L,I=O+(N-O)*_.curvature,k=R,D=N+(O-N)*_.curvature),{x1:L,y1:O,x2:R,y2:N,cpx1:A,cpy1:I,cpx2:k,cpy2:D}}U.exports=h.extendChartView({type:"tree",init:function(_,M){this._oldTree,this._mainGroup=new T.Group,this._controller=new a(M.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,M,S,A){var I=_.getData(),k=_.layoutInfo,D=this._mainGroup,L=_.get("layout");L==="radial"?D.attr("position",[k.x+k.width/2,k.y+k.height/2]):D.attr("position",[k.x,k.y]),this._updateViewCoordSys(_),this._updateController(_,M,S);var R=this._data,O={expandAndCollapse:_.get("expandAndCollapse"),layout:L,orient:_.getOrient(),curvature:_.get("lineStyle.curveness"),symbolRotate:_.get("symbolRotate"),symbolOffset:_.get("symbolOffset"),hoverAnimation:_.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(R).add(function(N){g(I,N)&&o(I,N,null,D,_,O)}).update(function(N,z){var V=R.getItemGraphicEl(z);if(!g(I,N)){V&&d(R,z,V,D,_,O);return}o(I,N,V,D,_,O)}).remove(function(N){var z=R.getItemGraphicEl(N);z&&d(R,N,z,D,_,O)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),O.expandAndCollapse===!0&&I.eachItemGraphicEl(function(N,z){N.off("click").on("click",function(){S.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:z})})}),this._data=I},_updateViewCoordSys:function(_){var M=_.getData(),S=[];M.each(function(D){var L=M.getItemLayout(D);!L||isNaN(L.x)||isNaN(L.y)||S.push([+L.x,+L.y])});var A=[],I=[];n.fromPoints(S,A,I),I[0]-A[0]==0&&(I[0]+=1,A[0]-=1),I[1]-A[1]==0&&(I[1]+=1,A[1]-=1);var k=_.coordinateSystem=new t;k.zoomLimit=_.get("scaleLimit"),k.setBoundingRect(A[0],A[1],I[0]-A[0],I[1]-A[1]),k.setCenter(_.get("center")),k.setZoom(_.get("zoom")),this.group.attr({position:k.position,scale:k.scale}),this._viewCoordSys=k},_updateController:function(_,M,S){var A=this._controller,I=this._controllerHost,k=this.group;A.setPointerChecker(function(D,L,R){var O=k.getBoundingRect();return O.applyTransform(k.transform),O.contain(L,R)&&!y(D,S,_)}),A.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(D){f.updateViewOnPan(I,D.dx,D.dy),S.dispatchAction({seriesId:_.id,type:"treeRoam",dx:D.dx,dy:D.dy})},this).on("zoom",function(D){f.updateViewOnZoom(I,D.scale,D.originX,D.originY),S.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:D.scale,originX:D.originX,originY:D.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var M=_.getData(),S=this._getNodeGlobalScale(_),A=[S,S];M.eachItemGraphicEl(function(I,k){I.attr("scale",A)})},_getNodeGlobalScale:function(_){var M=_.coordinateSystem;if(M.type!=="view")return 1;var S=this._nodeScaleRatio,A=M.scale,I=A&&A[0]||1;return((M.getZoom()-1)*S+1)/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}})},87212:function(U,C,b){var p=b(62751);function T(h){var n=h.children;return n.length&&h.isExpand?n[n.length-1]:h.hierNode.thread}function w(h){var n=h.children;return n.length&&h.isExpand?n[0]:h.hierNode.thread}function e(h,n){return h.parentNode===n.parentNode?1:2}C.init=function(h){h.hierNode={defaultAncestor:null,ancestor:h,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,t,f=[h];n=f.pop();)if(t=n.children,n.isExpand&&t.length)for(var a=t.length,y=a-1;y>=0;y--){var g=t[y];g.hierNode={defaultAncestor:null,ancestor:g,prelim:0,modifier:0,change:0,shift:0,i:y,thread:null},f.push(g)}},C.firstWalk=function(h,n){var t=h.isExpand?h.children:[],f=h.parentNode.children,a=h.hierNode.i?f[h.hierNode.i-1]:null;if(t.length){(function(g){for(var c=g.children,o=c.length,d=0,m=0;--o>=0;){var _=c[o];_.hierNode.prelim+=d,_.hierNode.modifier+=d,m+=_.hierNode.change,d+=_.hierNode.shift+m}})(h);var y=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(h.hierNode.prelim=a.hierNode.prelim+n(h,a),h.hierNode.modifier=h.hierNode.prelim-y):h.hierNode.prelim=y}else a&&(h.hierNode.prelim=a.hierNode.prelim+n(h,a));h.parentNode.hierNode.defaultAncestor=function(g,c,o,d){if(c){for(var m=g,_=g,M=_.parentNode.children[0],S=c,A=m.hierNode.modifier,I=_.hierNode.modifier,k=M.hierNode.modifier,D=S.hierNode.modifier;S=T(S),_=w(_),S&&_;){m=T(m),M=w(M),m.hierNode.ancestor=g;var L,R,O,N=S.hierNode.prelim+D-_.hierNode.prelim-I+d(S,_);N>0&&(function(z,V,B){var G=B/(V.hierNode.i-z.hierNode.i);V.hierNode.change-=G,V.hierNode.shift+=B,V.hierNode.modifier+=B,V.hierNode.prelim+=B,z.hierNode.change+=G}((L=S,R=g,O=o,L.hierNode.ancestor.parentNode===R.parentNode?L.hierNode.ancestor:O),g,N),I+=N,A+=N),D+=S.hierNode.modifier,I+=_.hierNode.modifier,A+=m.hierNode.modifier,k+=M.hierNode.modifier}S&&!T(m)&&(m.hierNode.thread=S,m.hierNode.modifier+=D-A),_&&!w(M)&&(M.hierNode.thread=_,M.hierNode.modifier+=I-k,o=g)}return o}(h,a,h.parentNode.hierNode.defaultAncestor||f[0],n)},C.secondWalk=function(h){var n=h.hierNode.prelim+h.parentNode.hierNode.modifier;h.setLayout({x:n},!0),h.hierNode.modifier+=h.parentNode.hierNode.modifier},C.separation=function(h){return arguments.length?h:e},C.radialCoordinate=function(h,n){var t={};return t.x=n*Math.cos(h-=Math.PI/2),t.y=n*Math.sin(h),t},C.getViewRect=function(h,n){return p.getLayoutRect(h.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}},61850:function(U,C){C.eachAfter=function(b,p,T){for(var w,e=[b],h=[];w=e.pop();)if(h.push(w),w.isExpand){var n=w.children;if(n.length)for(var t=0;t<n.length;t++)e.push(n[t])}for(;w=h.pop();)p(w,T)},C.eachBefore=function(b,p){for(var T,w=[b];T=w.pop();)if(p(T),T.isExpand){var e=T.children;if(e.length)for(var h=e.length-1;h>=0;h--)w.push(e[h])}}},23574:function(U,C,b){var p=b(87930),T=b(7207).updateCenterAndZoom;p.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(w,e){e.eachComponent({mainType:"series",subType:"tree",query:w},function(h){var n=w.dataIndex,t=h.getData().tree.getNodeByDataIndex(n);t.isExpand=!t.isExpand})}),p.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(w,e){e.eachComponent({mainType:"series",subType:"tree",query:w},function(h){var n=T(h.coordinateSystem,w);h.setCenter&&h.setCenter(n.center),h.setZoom&&h.setZoom(n.zoom)})})},11307:function(U,C,b){var p=b(61850),T=p.eachAfter,w=p.eachBefore,e=b(87212),h=e.init,n=e.firstWalk,t=e.secondWalk,f=e.separation,a=e.radialCoordinate,y=e.getViewRect;U.exports=function(g,c){g.eachSeriesByType("tree",function(o){(function(d,m){var _=y(d,m);d.layoutInfo=_;var M=d.get("layout"),S=0,A=0,I=null;M==="radial"?(S=2*Math.PI,A=Math.min(_.height,_.width)/2,I=f(function(W,$){return(W.parentNode===$.parentNode?1:2)/W.depth})):(S=_.width,A=_.height,I=f());var k=d.getData().tree.root,D=k.children[0];if(D){h(k),T(D,n,I),k.hierNode.modifier=-D.hierNode.prelim,w(D,t);var L=D,R=D,O=D;w(D,function(W){var $=W.getLayout().x;$<L.getLayout().x&&(L=W),$>R.getLayout().x&&(R=W),W.depth>O.depth&&(O=W)});var N=L===R?1:I(L,R)/2,z=N-L.getLayout().x,V=0,B=0,G=0,E=0;if(M==="radial")V=S/(R.getLayout().x+N+z),B=A/(O.depth-1||1),w(D,function(W){G=(W.getLayout().x+z)*V,E=(W.depth-1)*B;var $=a(G,E);W.setLayout({x:$.x,y:$.y,rawX:G,rawY:E},!0)});else{var H=d.getOrient();H==="RL"||H==="LR"?(B=A/(R.getLayout().x+N+z),V=S/(O.depth-1||1),w(D,function(W){E=(W.getLayout().x+z)*B,G=H==="LR"?(W.depth-1)*V:S-(W.depth-1)*V,W.setLayout({x:G,y:E},!0)})):(H==="TB"||H==="BT")&&(V=S/(R.getLayout().x+N+z),B=A/(O.depth-1||1),w(D,function(W){G=(W.getLayout().x+z)*V,E=H==="TB"?(W.depth-1)*B:A-(W.depth-1)*B,W.setLayout({x:G,y:E},!0)}))}}})(o,c)})}},64219:function(U,C,b){var p=b(87930);b(72076),b(43300),b(92336);var T=b(10431),w=b(92795);p.registerVisual(T),p.registerLayout(w)},76402:function(U,C,b){var p=b(51747),T=b(62751),w=b(23405),e=b(75445).wrapTreePathInfo;function h(n){this.group=new p.Group,n.add(this.group)}h.prototype={constructor:h,render:function(n,t,f,a){var y=n.getModel("breadcrumb"),g=this.group;if(g.removeAll(),y.get("show")&&f){var c=y.getModel("itemStyle"),o=c.getModel("textStyle"),d={pos:{left:y.get("left"),right:y.get("right"),top:y.get("top"),bottom:y.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:y.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(f,d,o),this._renderContent(n,d,c,o,a),T.positionElement(g,d.pos,d.box)}},_prepare:function(n,t,f){for(var a=n;a;a=a.parentNode){var y=a.getModel().get("name"),g=Math.max(f.getTextRect(y).width+16,t.emptyItemWidth);t.totalWidth+=g+8,t.renderList.push({node:a,text:y,width:g})}},_renderContent:function(n,t,f,a,y){for(var g=0,c=t.emptyItemWidth,o=n.get("breadcrumb.height"),d=T.getAvailableSize(t.pos,t.box),m=t.totalWidth,_=t.renderList,M=_.length-1;M>=0;M--){var S,A,I,k=_[M],D=k.node,L=k.width,R=k.text;m>d.width&&(m-=L-c,L=c,R=null);var O=new p.Polygon({shape:{points:function(N,z,V,B,G,E){var H=[[G?N:N-5,0],[N+V,z],[N+V,z+B],[G?N:N-5,z+B]];return E||H.splice(2,0,[N+V+5,z+B/2]),G||H.push([N,z+B/2]),H}(g,0,L,o,M===_.length-1,M===0)},style:w.defaults(f.getItemStyle(),{lineJoin:"bevel",text:R,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:w.curry(y,D)});this.group.add(O),S=O,A=n,I=D,S.eventData={componentType:"series",componentSubType:"treemap",componentIndex:A.componentIndex,seriesIndex:A.componentIndex,seriesName:A.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:I&&I.dataIndex,name:I&&I.name},treePathInfo:I&&e(I,A)},g+=L+8}},remove:function(){this.group.removeAll()}},U.exports=h},72076:function(U,C,b){var p=b(23405),T=b(95166),w=b(93455),e=b(46082),h=b(60653),n=h.encodeHTML,t=h.addCommas,f=b(75445).wrapTreePathInfo;U.exports=T.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(a,y){var g={name:a.name,children:a.data};(function d(m){var _=0;p.each(m.children,function(S){d(S);var A=S.value;p.isArray(A)&&(A=A[0]),_+=A});var M=m.value;p.isArray(M)&&(M=M[0]),(M==null||isNaN(M))&&(M=_),M<0&&(M=0),p.isArray(m.value)?m.value[0]=M:m.value=M})(g);var c=a.levels||[];c=a.levels=function(d,m){var _,M=m.get("color");if(M)return d=d||[],p.each(d,function(S){var A=new e(S),I=A.get("color");(A.get("itemStyle.color")||I&&I!=="none")&&(_=!0)}),_||((d[0]||(d[0]={})).color=M.slice()),d}(c,y);var o={};return o.levels=c,w.createTree(g,this,o).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(a){var y=this.getData(),g=this.getRawValue(a),c=p.isArray(g)?t(g[0]):t(g);return n(y.getName(a)+": "+c)},getDataParams:function(a){var y=T.prototype.getDataParams.apply(this,arguments);return y.treePathInfo=f(this.getData().tree.getNodeByDataIndex(a),this),y},setLayoutInfo:function(a){this.layoutInfo=this.layoutInfo||{},p.extend(this.layoutInfo,a)},mapIdToIndex:function(a){var y=this._idIndexMap;y||(y=this._idIndexMap=p.createHashMap(),this._idIndexMapCount=0);var g=y.get(a);return g==null&&y.set(a,g=this._idIndexMapCount++),g},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(a){a?this._viewRoot=a:a=this._viewRoot;var y=this.getRawData().tree.root;a&&(a===y||y.contains(a))||(this._viewRoot=y)}})},43300:function(U,C,b){var p=b(87930),T=b(23405),w=b(51747),e=b(99018),h=b(75445),n=b(76402),t=b(55104),f=b(28761),a=b(79442),y=b(7762),g=b(74106),c=T.bind,o=w.Group,d=w.Rect,m=T.each,_=["label"],M=["emphasis","label"],S=["upperLabel"],A=["emphasis","upperLabel"],I=g([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),k=function(R){var O=I(R);return O.stroke=O.fill=O.lineWidth=null,O};function D(){return{nodeGroup:[],background:[],content:[]}}function L(R,O,N,z,V,B,G,E,H,W){if(G){var $=G.getLayout();if($&&$.isInView){var Z=$.width,Q=$.height,Y=$.borderWidth,K=$.invisible,ne=G.getRawIndex(),X=E&&E.getRawIndex(),ee=G.viewChildren,ae=$.upperHeight,oe=ee&&ee.length,se=G.getModel("itemStyle"),ge=G.getModel("emphasis.itemStyle"),fe=Ve("nodeGroup",o);if(fe){if(H.add(fe),fe.attr("position",[$.x||0,$.y||0]),fe.__tmNodeWidth=Z,fe.__tmNodeHeight=Q,$.isAboveViewRoot)return fe;var le=Ve("background",d,W,1);if(le&&(ue=fe,he=le,pe=oe&&$.upperHeight,he.dataIndex=G.dataIndex,he.seriesIndex=R.seriesIndex,he.setShape({x:0,y:0,width:Z,height:Q}),ye=G.getVisual("borderColor",!0),ve=ge.get("borderColor"),Ce(he,function(){var Ge=k(se);Ge.fill=ye;var Je=I(ge);if(Je.fill=ve,pe){var rt=Z-2*Y;Le(Ge,Je,ye,rt,ae,{x:Y,y:0,width:rt,height:ae})}else Ge.text=Je.text=null;he.setStyle(Ge),w.setHoverStyle(he,Je)}),ue.add(he)),!oe){var ue,he,pe,ye,ve,Ae,_e,Pe,Oe,ke,De=Ve("content",d,W,2);De&&(Ae=fe,(_e=De).dataIndex=G.dataIndex,_e.seriesIndex=R.seriesIndex,Pe=Math.max(Z-2*Y,0),Oe=Math.max(Q-2*Y,0),_e.culling=!0,_e.setShape({x:Y,y:Y,width:Pe,height:Oe}),ke=G.getVisual("color",!0),Ce(_e,function(){var Ge=k(se);Ge.fill=ke;var Je=I(ge);Le(Ge,Je,ke,Pe,Oe),_e.setStyle(Ge),w.setHoverStyle(_e,Je)}),Ae.add(_e))}return fe}}}function Ce(Ge,Je){K?Ge.invisible||B.push(Ge):(Je(),Ge.__tmWillVisible||(Ge.invisible=!1))}function Le(Ge,Je,rt,it,mt,ct){var et=G.getModel(),Ke=T.retrieve(R.getFormattedLabel(G.dataIndex,"normal",null,null,ct?"upperLabel":"label"),et.get("name"));if(!ct&&$.isLeafRoot){var ft=R.get("drillDownIcon",!0);Ke=ft?ft+" "+Ke:Ke}var at=et.getModel(ct?S:_),nt=et.getModel(ct?A:M),yt=at.getShallow("show");w.setLabelStyle(Ge,Je,at,nt,{defaultText:yt?Ke:null,autoColor:rt,isRectText:!0}),ct&&(Ge.textRect=T.clone(ct)),Ge.truncate=yt&&at.get("ellipsis")?{outerWidth:it,outerHeight:mt,minChar:2}:null}function Ve(Ge,Je,rt,it){var mt,ct,et,Ke,ft=X!=null&&N[Ge][X],at=V[Ge];return ft?(N[Ge][X]=null,mt=at,ct=ft,et=Ge,(mt[ne]={}).old=et==="nodeGroup"?ct.position.slice():T.extend({},ct.shape)):K||((ft=new Je({z:((Ke=10*rt+it)-1)/Ke})).__tmDepth=rt,ft.__tmStorageName=Ge,function(nt,yt,dt){var bt=nt[ne]={},vt=G.parentNode;if(vt&&(!z||z.direction==="drillDown")){var me=0,Ie=0,Ee=V.background[vt.getRawIndex()];!z&&Ee&&Ee.old&&(me=Ee.old.width,Ie=Ee.old.height),bt.old=dt==="nodeGroup"?[0,Ie]:{x:me,y:Ie,width:0,height:0}}bt.fadein=dt!=="nodeGroup"}(at,0,Ge)),O[Ge][ne]=ft}}U.exports=p.extendChartView({type:"treemap",init:function(R,O){this._containerGroup,this._storage=D(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(R,O,N,z){var V=O.findComponents({mainType:"series",subType:"treemap",query:z});if(!(0>T.indexOf(V,R))){this.seriesModel=R,this.api=N,this.ecModel=O;var B=h.retrieveTargetInfo(z,["treemapZoomToNode","treemapRootToNode"],R),G=z&&z.type,E=R.layoutInfo,H=!this._oldTree,W=this._storage,$=G==="treemapRootToNode"&&B&&W?{rootNodeGroup:W.nodeGroup[B.node.getRawIndex()],direction:z.direction}:null,Z=this._giveContainerGroup(E),Q=this._doRender(Z,R,$);H||G&&G!=="treemapZoomToNode"&&G!=="treemapRootToNode"?Q.renderFinally():this._doAnimation(Z,Q,R,$),this._resetController(N),this._renderBreadcrumb(R,N,B)}},_giveContainerGroup:function(R){var O=this._containerGroup;return O||(O=this._containerGroup=new o,this._initEvents(O),this.group.add(O)),O.attr("position",[R.x,R.y]),O},_doRender:function(R,O,N){var z,V,B=O.getData().tree,G=this._oldTree,E=D(),H=D(),W=this._storage,$=[],Z=T.curry(L,O,H,W,N,E,$);(function Y(K,ne,X,ee,ae){function oe(ge){return ge.getId()}function se(ge,fe){var le=ge!=null?K[ge]:null,ue=fe!=null?ne[fe]:null,he=Z(le,ue,X,ae);he&&Y(le&&le.viewChildren||[],ue&&ue.viewChildren||[],he,ee,ae+1)}ee?(ne=K,m(K,function(ge,fe){ge.isRemoved()||se(fe,fe)})):new e(ne,K,oe,oe).add(se).update(se).remove(T.curry(se,null)).execute()})(B.root?[B.root]:[],G&&G.root?[G.root]:[],R,B===G||!G,0);var Q=(z=W,V=D(),z&&m(z,function(Y,K){var ne=V[K];m(Y,function(X){X&&(ne.push(X),X.__tmWillDelete=1)})}),V);return this._oldTree=B,this._storage=H,{lastsForAnimation:E,willDeleteEls:Q,renderFinally:function(){m(Q,function(Y){m(Y,function(K){K.parent&&K.parent.remove(K)})}),m($,function(Y){Y.invisible=!0,Y.dirty()})}}},_doAnimation:function(R,O,N,z){if(N.get("animation")){var V=N.get("animationDurationUpdate"),B=N.get("animationEasing"),G=y.createWrap();m(O.willDeleteEls,function(E,H){m(E,function(W,$){if(!W.invisible){var Z,Q=W.parent;if(z&&z.direction==="drillDown")Z=Q===z.rootNodeGroup?{shape:{x:0,y:0,width:Q.__tmNodeWidth,height:Q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var Y=0,K=0;Q.__tmWillDelete||(Y=Q.__tmNodeWidth/2,K=Q.__tmNodeHeight/2),Z=H==="nodeGroup"?{position:[Y,K],style:{opacity:0}}:{shape:{x:Y,y:K,width:0,height:0},style:{opacity:0}}}Z&&G.add(W,Z,V,B)}})}),m(this._storage,function(E,H){m(E,function(W,$){var Z=O.lastsForAnimation[H][$],Q={};Z&&(H==="nodeGroup"?Z.old&&(Q.position=W.position.slice(),W.attr("position",Z.old)):(Z.old&&(Q.shape=T.extend({},W.shape),W.setShape(Z.old)),Z.fadein?(W.setStyle("opacity",0),Q.style={opacity:1}):W.style.opacity!==1&&(Q.style={opacity:1})),G.add(W,Q,V,B))})},this),this._state="animating",G.done(c(function(){this._state="ready",O.renderFinally()},this)).start()}},_resetController:function(R){var O=this._controller;O||((O=this._controller=new t(R.getZr())).enable(this.seriesModel.get("roam")),O.on("pan",c(this._onPan,this)),O.on("zoom",c(this._onZoom,this)));var N=new f(0,0,R.getWidth(),R.getHeight());O.setPointerChecker(function(z,V,B){return N.contain(V,B)})},_clearController:function(){var R=this._controller;R&&(R.dispose(),R=null)},_onPan:function(R){if(this._state!=="animating"&&(Math.abs(R.dx)>3||Math.abs(R.dy)>3)){var O=this.seriesModel.getData().tree.root;if(O){var N=O.getLayout();N&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:N.x+R.dx,y:N.y+R.dy,width:N.width,height:N.height}})}}},_onZoom:function(R){var O=R.originX,N=R.originY;if(this._state!=="animating"){var z=this.seriesModel.getData().tree.root;if(!z)return;var V=z.getLayout();if(!V)return;var B=new f(V.x,V.y,V.width,V.height),G=this.seriesModel.layoutInfo;O-=G.x,N-=G.y;var E=a.create();a.translate(E,E,[-O,-N]),a.scale(E,E,[R.scale,R.scale]),a.translate(E,E,[O,N]),B.applyTransform(E),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:B.x,y:B.y,width:B.width,height:B.height}})}},_initEvents:function(R){R.on("click",function(O){if(this._state==="ready"){var N=this.seriesModel.get("nodeClick",!0);if(N){var z=this.findTarget(O.offsetX,O.offsetY);if(z){var V=z.node;if(V.getLayout().isLeafRoot)this._rootToNode(z);else if(N==="zoomToNode")this._zoomToNode(z);else if(N==="link"){var B=V.hostTree.data.getItemModel(V.dataIndex),G=B.get("link",!0),E=B.get("target",!0)||"blank";G&&window.open(G,E)}}}}},this)},_renderBreadcrumb:function(R,O,N){!N&&((N=R.get("leafDepth",!0)!=null?{node:R.getViewRoot()}:this.findTarget(O.getWidth()/2,O.getHeight()/2))||(N={node:R.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new n(this.group))).render(R,O,N.node,c(function(z){this._state!=="animating"&&(h.aboveViewRoot(R.getViewRoot(),z)?this._rootToNode({node:z}):this._zoomToNode({node:z}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=D(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(R){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:R.node})},_rootToNode:function(R){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:R.node})},findTarget:function(R,O){var N;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(z){var V=this._storage.background[z.getRawIndex()];if(V){var B=V.transformCoordToLocal(R,O),G=V.shape;if(!(G.x<=B[0])||!(B[0]<=G.x+G.width)||!(G.y<=B[1])||!(B[1]<=G.y+G.height))return!1;N={node:z,offsetX:B[0],offsetY:B[1]}}},this),N}})},92336:function(U,C,b){for(var p=b(87930),T=b(75445),w=function(){},e=["treemapZoomToNode","treemapRender","treemapMove"],h=0;h<e.length;h++)p.registerAction({type:e[h],update:"updateView"},w);p.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"treemap",query:n},function(f,a){var y=T.retrieveTargetInfo(n,["treemapZoomToNode","treemapRootToNode"],f);if(y){var g=f.getViewRoot();g&&(n.direction=T.aboveViewRoot(g,y.node)?"rollUp":"drillDown"),f.resetViewRoot(y.node)}})})},92795:function(U,C,b){var p=b(23405),T=b(28761),w=b(54684),e=w.parsePercent,h=w.MAX_SAFE_INTEGER,n=b(62751),t=b(75445),f=Math.max,a=Math.min,y=p.retrieve,g=p.each,c=["itemStyle","borderWidth"],o=["itemStyle","gapWidth"],d=["upperLabel","show"],m=["upperLabel","height"];function _(S,A,I,k,D){var L=+(A!==I.width),R=1-L,O=["x","y"],N=["width","height"],z=I[O[L]],V=A?S.area/A:0;(D||V>I[N[R]])&&(V=I[N[R]]);for(var B=0,G=S.length;B<G;B++){var E=S[B],H={},W=V?E.getLayout().area/V:0,$=H[N[R]]=f(V-2*k,0),Z=I[O[L]]+I[N[L]]-z,Q=B===G-1||Z<W?Z:W,Y=H[N[L]]=f(Q-2*k,0);H[O[R]]=I[O[R]]+a(k,$/2),H[O[L]]=z+a(k,Y/2),z+=Q,E.setLayout(H,!0)}I[O[R]]+=V,I[N[R]]-=V}function M(S){return S.get(d)?S.get(m):0}U.exports={seriesType:"treemap",reset:function(S,A,I,k){var D=I.getWidth(),L=I.getHeight(),R=S.option,O=n.getLayoutRect(S.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()}),N=R.size||[],z=e(y(O.width,N[0]),D),V=e(y(O.height,N[1]),L),B=k&&k.type,G=t.retrieveTargetInfo(k,["treemapZoomToNode","treemapRootToNode"],S),E=B==="treemapRender"||B==="treemapMove"?k.rootRect:null,H=S.getViewRoot(),W=t.getPathToRoot(H);if(B!=="treemapMove"){var $=B==="treemapZoomToNode"?function(ne,X,ee,ae,oe){var se,ge=(X||{}).node,fe=[ae,oe];if(!ge||ge===ee)return fe;for(var le=ae*oe,ue=le*ne.option.zoomToNodeRatio;se=ge.parentNode;){for(var he=0,pe=se.children,ye=0,ve=pe.length;ye<ve;ye++)he+=pe[ye].getValue();var Ae=ge.getValue();if(Ae===0)return fe;ue*=he/Ae;var _e=se.getModel(),Pe=_e.get(c),Oe=Math.max(Pe,M(_e));(ue+=4*Pe*Pe+(3*Pe+Oe)*Math.pow(ue,.5))>h&&(ue=h),ge=se}ue<le&&(ue=le);var ke=Math.pow(ue/le,.5);return[ae*ke,oe*ke]}(S,G,H,z,V):E?[E.width,E.height]:[z,V],Z=R.sort;Z&&Z!=="asc"&&Z!=="desc"&&(Z="desc");var Q={squareRatio:R.squareRatio,sort:Z,leafDepth:R.leafDepth};H.hostTree.clearLayouts();var Y={x:0,y:0,width:$[0],height:$[1],area:$[0]*$[1]};H.setLayout(Y),function ne(X,ee,ae,oe){if(!X.isRemoved()){var se,ge,fe=X.getLayout();se=fe.width,ge=fe.height;var Ae=X.getModel(),le=Ae.get(c),ue=Ae.get(o)/2,he=M(Ae),pe=Math.max(le,he),ye=le-ue,ve=pe-ue,Ae=X.getModel();X.setLayout({borderWidth:le,upperHeight:pe,upperLabelHeight:he},!0);var _e=(se=f(se-2*ye,0))*(ge=f(ge-ye-ve,0)),Pe=function(it,mt,ct,et,Ke,ft){var at,nt,yt=it.children||[],dt=et.sort;dt!=="asc"&&dt!=="desc"&&(dt=null);var bt=et.leafDepth!=null&&et.leafDepth<=ft;if(Ke&&!bt)return it.viewChildren=[];at=yt=p.filter(yt,function(je){return!je.isRemoved()}),(nt=dt)&&at.sort(function(je,ze){var Fe=nt==="asc"?je.getValue()-ze.getValue():ze.getValue()-je.getValue();return Fe===0?nt==="asc"?je.dataIndex-ze.dataIndex:ze.dataIndex-je.dataIndex:Fe});var vt=function(je,ze,Fe){for(var He,$e=0,We=0,qe=ze.length;We<qe;We++)$e+=ze[We].getValue();var Ye=je.get("visualDimension");if(ze&&ze.length)if(Ye==="value"&&Fe)He=[ze[ze.length-1].getValue(),ze[0].getValue()],Fe==="asc"&&He.reverse();else{var He=[1/0,-1/0];g(ze,function(pt){var _t=pt.getValue(Ye);_t<He[0]&&(He[0]=_t),_t>He[1]&&(He[1]=_t)})}else He=[NaN,NaN];return{sum:$e,dataExtent:He}}(mt,yt,dt);if(vt.sum===0||(vt.sum=function(je,ze,Fe,He,$e){if(!He)return Fe;for(var We=je.get("visibleMin"),qe=$e.length,Ye=qe,st=qe-1;st>=0;st--){var pt=$e[He==="asc"?qe-st-1:st].getValue();pt/Fe*ze<We&&(Ye=st,Fe-=pt)}return He==="asc"?$e.splice(0,qe-Ye):$e.splice(Ye,qe-Ye),Fe}(mt,ct,vt.sum,dt,yt),vt.sum===0))return it.viewChildren=[];for(var me=0,Ie=yt.length;me<Ie;me++){var Ee=yt[me].getValue()/vt.sum*ct;yt[me].setLayout({area:Ee})}return bt&&(yt.length&&it.setLayout({isLeafRoot:!0},!0),yt.length=0),it.viewChildren=yt,it.setLayout({dataExtent:vt.dataExtent},!0),yt}(X,Ae,_e,ee,ae,oe);if(Pe.length){var Oe={x:ye,y:ve,width:se,height:ge},ke=a(se,ge),De=1/0,Ce=[];Ce.area=0;for(var Le=0,Ve=Pe.length;Le<Ve;){var Ge=Pe[Le];Ce.push(Ge),Ce.area+=Ge.getLayout().area;var Je=function(it,mt,ct){for(var et,Ke=0,ft=1/0,at=0,nt=it.length;at<nt;at++)(et=it[at].getLayout().area)&&(et<ft&&(ft=et),et>Ke&&(Ke=et));var yt=it.area*it.area,dt=mt*mt*ct;return yt?f(dt*Ke/yt,yt/(dt*ft)):1/0}(Ce,ke,ee.squareRatio);Je<=De?(Le++,De=Je):(Ce.area-=Ce.pop().getLayout().area,_(Ce,ke,Oe,ue,!1),ke=a(Oe.width,Oe.height),Ce.length=Ce.area=0,De=1/0)}if(Ce.length&&_(Ce,ke,Oe,ue,!0),!ae){var rt=Ae.get("childrenVisibleMin");rt!=null&&_e<rt&&(ae=!0)}for(var Le=0,Ve=Pe.length;Le<Ve;Le++)ne(Pe[Le],ee,ae,oe+1)}}}(H,Q,!1,0);var Y=H.getLayout();g(W,function(ne,X){var ee=(W[X+1]||H).getValue();ne.setLayout(p.extend({dataExtent:[ee,ee],borderWidth:0,upperHeight:0},Y))})}var K=S.getData().tree.root;K.setLayout(function(ne,X,ee){if(X)return{x:X.x,y:X.y};var ae={x:0,y:0};if(!ee)return ae;var oe=ee.node,se=oe.getLayout();if(!se)return ae;for(var ge=[se.width/2,se.height/2],fe=oe;fe;){var le=fe.getLayout();ge[0]+=le.x,ge[1]+=le.y,fe=fe.parentNode}return{x:ne.width/2-ge[0],y:ne.height/2-ge[1]}}(O,E,G),!0),S.setLayoutInfo(O),function ne(X,ee,ae,oe,se){var ge=X.getLayout(),fe=ae[se],le=fe&&fe===X;if((!fe||le)&&(se!==ae.length||X===oe)){X.setLayout({isInView:!0,invisible:!le&&!ee.intersect(ge),isAboveViewRoot:le},!0);var ue=new T(ee.x-ge.x,ee.y-ge.y,ee.width,ee.height);g(X.viewChildren||[],function(he){ne(he,ue,ae,oe,se+1)})}}(K,new T(-O.x,-O.y,D,L),W,H,0)}}},10431:function(U,C,b){var p=b(32013),T=b(86049),w=b(23405),e=w.isArray,h="itemStyle";function n(a){var y=t(a,"color");if(y){var g=t(a,"colorAlpha"),c=t(a,"colorSaturation");return c&&(y=T.modifyHSL(y,null,null,c)),g&&(y=T.modifyAlpha(y,g)),y}}function t(a,y){var g=a[y];if(g!=null&&g!=="none")return g}function f(a,y){var g=a.get(y);return e(g)&&g.length?{name:y,range:g}:null}U.exports={seriesType:"treemap",reset:function(a,y,g,c){var o=a.getData().tree,d=o.root,m=a.getModel(h);d.isRemoved()||function _(M,S,A,I,k,D){var L,R=M.getModel(),O=M.getLayout();if(O&&!O.invisible&&O.isInView){var N,z,V,B,G,E,H,W=M.getModel(h),$=(N=W,z=S,V=A[M.depth],B=I,G=w.extend({},z),w.each(["color","colorAlpha","colorSaturation"],function(ne){var X=N.get(ne,!0);X==null&&V&&(X=V[ne]),X==null&&(X=z[ne]),X==null&&(X=B.get(ne)),X!=null&&(G[ne]=X)}),G),Z=W.get("borderColor"),Q=W.get("borderColorSaturation");Q!=null&&(E=Q,Z=(H=L=n($))!=null?T.modifyHSL(H,null,null,E):null),M.setVisual("borderColor",Z);var Y=M.viewChildren;if(Y&&Y.length){var K=function(ne,X,ee,ae,oe,se){if(se&&se.length){var ge=f(X,"color")||oe.color!=null&&oe.color!=="none"&&(f(X,"colorAlpha")||f(X,"colorSaturation"));if(ge){var fe=X.get("visualMin"),le=X.get("visualMax"),ue=ee.dataExtent.slice();fe!=null&&fe<ue[0]&&(ue[0]=fe),le!=null&&le>ue[1]&&(ue[1]=le);var he=X.get("colorMappingBy"),pe={type:ge.name,dataExtent:ue,visual:ge.range};pe.type==="color"&&(he==="index"||he==="id")?(pe.mappingMethod="category",pe.loop=!0):pe.mappingMethod="linear";var ye=new p(pe);return ye.__drColorMappingBy=he,ye}}}(0,R,O,0,$,Y);w.each(Y,function(ne,X){if(ne.depth>=k.length||ne===k[ne.depth]){var ee=function(ae,oe,se,ge,fe,le){var ue=w.extend({},oe);if(fe){var he=fe.type,pe=he==="color"&&fe.__drColorMappingBy,ye=pe==="index"?ge:pe==="id"?le.mapIdToIndex(se.getId()):se.getValue(ae.get("visualDimension"));ue[he]=fe.mapValueToVisual(ye)}return ue}(R,$,ne,X,K,D);_(ne,ee,A,I,k,D)}})}else L=n($),M.setVisual("color",L)}}(d,{},w.map(o.levelModels,function(_){return _?_.get(h):null}),m,a.getViewRoot().getAncestors(),a)}}},90190:function(U,C,b){b(27246),b(9393)},46637:function(U,C,b){b(64464),b(82750)},9393:function(U,C,b){var p=b(23405),T=b(51747),w=b(46082),e=b(81059),h=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function n(a,y,g){y[1]>y[0]&&(y=y.slice().reverse());var c=a.coordToPoint([y[0],g]),o=a.coordToPoint([y[1],g]);return{x1:c[0],y1:c[1],x2:o[0],y2:o[1]}}function t(a){return+!a.getRadiusAxis().inverse}function f(a){var y=a[0],g=a[a.length-1];y&&g&&1e-4>Math.abs(Math.abs(y.coord-g.coord)-360)&&a.pop()}U.exports=e.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(a,y){if(this.group.removeAll(),a.get("show")){var g=a.axis,c=g.polar,o=c.getRadiusAxis().getExtent(),d=g.getTicksCoords(),m=p.map(g.getViewLabels(),function(M){var M=p.clone(M);return M.coord=g.dataToCoord(M.tickValue),M});f(m),f(d),p.each(h,function(_){a.get(_+".show")&&(!g.scale.isBlank()||_==="axisLine")&&this["_"+_](a,c,d,o,m)},this)}},_axisLine:function(a,y,g,c){var o=a.getModel("axisLine.lineStyle"),d=new T.Circle({shape:{cx:y.cx,cy:y.cy,r:c[t(y)]},style:o.getLineStyle(),z2:1,silent:!0});d.style.fill=null,this.group.add(d)},_axisTick:function(a,y,g,c){var o=a.getModel("axisTick"),d=(o.get("inside")?-1:1)*o.get("length"),m=c[t(y)],_=p.map(g,function(M){return new T.Line({shape:n(y,[m,m+d],M.coord)})});this.group.add(T.mergePath(_,{style:p.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:a.get("axisLine.lineStyle.color")})}))},_axisLabel:function(a,y,g,c,o){var d=a.getCategories(!0),m=a.getModel("axisLabel"),_=m.get("margin");p.each(o,function(M,S){var A=m,I=M.tickValue,k=c[t(y)],D=y.coordToPoint([k+_,M.coord]),L=y.cx,R=y.cy,O=Math.abs(D[0]-L)/k<.3?"center":D[0]>L?"left":"right",N=Math.abs(D[1]-R)/k<.3?"middle":D[1]>R?"top":"bottom";d&&d[I]&&d[I].textStyle&&(A=new w(d[I].textStyle,m,m.ecModel));var z=new T.Text({silent:!0});this.group.add(z),T.setTextStyle(z.style,A,{x:D[0],y:D[1],textFill:A.getTextColor()||a.get("axisLine.lineStyle.color"),text:M.formattedLabel,textAlign:O,textVerticalAlign:N})},this)},_splitLine:function(a,y,g,c){var o=a.getModel("splitLine").getModel("lineStyle"),d=o.get("color"),m=0;d=d instanceof Array?d:[d];for(var _=[],M=0;M<g.length;M++){var S=m++%d.length;_[S]=_[S]||[],_[S].push(new T.Line({shape:n(y,c,g[M].coord)}))}for(var M=0;M<_.length;M++)this.group.add(T.mergePath(_[M],{style:p.defaults({stroke:d[M%d.length]},o.getLineStyle()),silent:!0,z:a.get("z")}))},_splitArea:function(a,y,g,c){if(g.length){var o=a.getModel("splitArea").getModel("areaStyle"),d=o.get("color"),m=0;d=d instanceof Array?d:[d];for(var _=[],M=Math.PI/180,S=-g[0].coord*M,A=Math.min(c[0],c[1]),I=Math.max(c[0],c[1]),k=a.get("clockwise"),D=1;D<g.length;D++){var L=m++%d.length;_[L]=_[L]||[],_[L].push(new T.Sector({shape:{cx:y.cx,cy:y.cy,r0:A,r:I,startAngle:S,endAngle:-g[D].coord*M,clockwise:k},silent:!0})),S=-g[D].coord*M}for(var D=0;D<_.length;D++)this.group.add(T.mergePath(_[D],{style:p.defaults({fill:d[D%d.length]},o.getAreaStyle()),silent:!0}))}}})},88010:function(U,C,b){var p=b(23405),T=p.retrieve,w=p.defaults,e=p.extend,h=p.each,n=b(60653),t=b(51747),f=b(46082),a=b(54684),y=a.isRadianAroundZero,g=a.remRadian,c=b(30696).createSymbol,o=b(79442),d=b(76414).applyTransform,m=b(51261).shouldShowAllLabels,_=Math.PI;function M(O){var N={componentType:O.mainType,componentIndex:O.componentIndex};return N[O.mainType+"Index"]=O.componentIndex,N}var S=function(O,N){this.opt=N,this.axisModel=O,w(N,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new t.Group;var z=new t.Group({position:N.position.slice(),rotation:N.rotation});z.updateTransform(),this._transform=z.transform,this._dumbGroup=z};S.prototype={constructor:S,hasBuilder:function(O){return!!A[O]},add:function(O){A[O].call(this)},getGroup:function(){return this.group}};var A={axisLine:function(){var O=this.opt,N=this.axisModel;if(N.get("axisLine.show")){var z=this.axisModel.axis.getExtent(),V=this._transform,B=[z[0],0],G=[z[1],0];V&&(d(B,B,V),d(G,G,V));var E=e({lineCap:"round"},N.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new t.Line(t.subPixelOptimizeLine({anid:"line",shape:{x1:B[0],y1:B[1],x2:G[0],y2:G[1]},style:E,strokeContainThreshold:O.strokeContainThreshold||5,silent:!0,z2:1})));var H=N.get("axisLine.symbol"),W=N.get("axisLine.symbolSize"),$=N.get("axisLine.symbolOffset")||0;if(typeof $=="number"&&($=[$,$]),H!=null){typeof H=="string"&&(H=[H,H]),(typeof W=="string"||typeof W=="number")&&(W=[W,W]);var Z=W[0],Q=W[1];h([{rotate:O.rotation+Math.PI/2,offset:$[0],r:0},{rotate:O.rotation-Math.PI/2,offset:$[1],r:Math.sqrt((B[0]-G[0])*(B[0]-G[0])+(B[1]-G[1])*(B[1]-G[1]))}],function(Y,K){if(H[K]!=="none"&&H[K]!=null){var ne=c(H[K],-Z/2,-Q/2,Z,Q,E.stroke,!0),X=Y.r+Y.offset,ee=[B[0]+X*Math.cos(O.rotation),B[1]-X*Math.sin(O.rotation)];ne.attr({rotation:Y.rotate,position:ee,silent:!0,z2:11}),this.group.add(ne)}},this)}}},axisTickLabel:function(){var O=this.axisModel,N=this.opt,z=function(B,G,E){var H=G.axis;if(!(!G.get("axisTick.show")||H.scale.isBlank())){for(var W=G.getModel("axisTick"),$=W.getModel("lineStyle"),Z=W.get("length"),Q=H.getTicksCoords(),Y=[],K=[],ne=B._transform,X=[],ee=0;ee<Q.length;ee++){var ae=Q[ee].coord;Y[0]=ae,Y[1]=0,K[0]=ae,K[1]=E.tickDirection*Z,ne&&(d(Y,Y,ne),d(K,K,ne));var oe=new t.Line(t.subPixelOptimizeLine({anid:"tick_"+Q[ee].tickValue,shape:{x1:Y[0],y1:Y[1],x2:K[0],y2:K[1]},style:w($.getLineStyle(),{stroke:G.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));B.group.add(oe),X.push(oe)}return X}}(this,O,N),V=function(B,G,E){var H=G.axis;if(!(!T(E.axisLabelShow,G.get("axisLabel.show"))||H.scale.isBlank())){var W=G.getModel("axisLabel"),$=W.get("margin"),Z=H.getViewLabels(),Q=(T(E.labelRotate,W.get("rotate"))||0)*_/180,Y=I(E.rotation,Q,E.labelDirection),K=G.getCategories(!0),ne=[],X=k(G),ee=G.get("triggerEvent");return h(Z,function(ae,oe){var se=ae.tickValue,ge=ae.formattedLabel,fe=ae.rawLabel,le=W;K&&K[se]&&K[se].textStyle&&(le=new f(K[se].textStyle,W,G.ecModel));var ue=le.getTextColor()||G.get("axisLine.lineStyle.color"),he=[H.dataToCoord(se),E.labelOffset+E.labelDirection*$],pe=new t.Text({anid:"label_"+se,position:he,rotation:Y.rotation,silent:X,z2:10});t.setTextStyle(pe.style,le,{text:ge,textAlign:le.getShallow("align",!0)||Y.textAlign,textVerticalAlign:le.getShallow("verticalAlign",!0)||le.getShallow("baseline",!0)||Y.textVerticalAlign,textFill:typeof ue=="function"?ue(H.type==="category"?fe:H.type==="value"?se+"":se,oe):ue}),ee&&(pe.eventData=M(G),pe.eventData.targetType="axisLabel",pe.eventData.value=fe),B._dumbGroup.add(pe),pe.updateTransform(),ne.push(pe),B.group.add(pe),pe.decomposeTransform()}),ne}}(this,O,N);(function(B,G,E){if(!m(B.axis)){var H=B.get("axisLabel.showMinLabel"),W=B.get("axisLabel.showMaxLabel");E=E||[];var $=(G=G||[])[0],Z=G[1],Q=G[G.length-1],Y=G[G.length-2],K=E[0],ne=E[1],X=E[E.length-1],ee=E[E.length-2];H===!1?(D($),D(K)):L($,Z)&&(H?(D(Z),D(ne)):(D($),D(K))),W===!1?(D(Q),D(X)):L(Y,Q)&&(W?(D(Y),D(ee)):(D(Q),D(X)))}})(O,V,z)},axisName:function(){var O,N,z=this.opt,V=this.axisModel,B=T(z.axisName,V.get("name"));if(B){var G,E,H,W,$,Z,Q,Y,K,ne=V.get("nameLocation"),X=z.nameDirection,ee=V.getModel("nameTextStyle"),ae=V.get("nameGap")||0,oe=this.axisModel.axis.getExtent(),se=oe[0]>oe[1]?-1:1,ge=[ne==="start"?oe[0]-se*ae:ne==="end"?oe[1]+se*ae:(oe[0]+oe[1])/2,R(ne)?z.labelOffset+X*ae:0],fe=V.get("nameRotate");fe!=null&&(fe=fe*_/180),R(ne)?O=I(z.rotation,fe??z.rotation,X):(G=z,E=ne,H=fe||0,W=oe,Q=g(H-G.rotation),Y=W[0]>W[1],K=E==="start"&&!Y||E!=="start"&&Y,y(Q-_/2)?(Z=K?"bottom":"top",$="center"):y(Q-1.5*_)?(Z=K?"top":"bottom",$="center"):(Z="middle",$=Q<1.5*_&&Q>_/2?K?"left":"right":K?"right":"left"),O={rotation:Q,textAlign:$,textVerticalAlign:Z},(N=z.axisNameAvailableWidth)!=null&&(isFinite(N=Math.abs(N/Math.sin(O.rotation)))||(N=null)));var le=ee.getFont(),ue=V.get("nameTruncate",!0)||{},he=ue.ellipsis,pe=T(z.nameTruncateMaxWidth,ue.maxWidth,N),ye=he!=null&&pe!=null?n.truncateText(B,pe,le,he,{minChar:2,placeholder:ue.placeholder}):B,ve=V.get("tooltip",!0),Ae=V.mainType,_e={componentType:Ae,name:B,$vars:["name"]};_e[Ae+"Index"]=V.componentIndex;var Pe=new t.Text({anid:"name",__fullText:B,__truncatedText:ye,position:ge,rotation:O.rotation,silent:k(V),z2:1,tooltip:ve&&ve.show?e({content:B,formatter:function(){return B},formatterParams:_e},ve):null});t.setTextStyle(Pe.style,ee,{text:ye,textFont:le,textFill:ee.getTextColor()||V.get("axisLine.lineStyle.color"),textAlign:O.textAlign,textVerticalAlign:O.textVerticalAlign}),V.get("triggerEvent")&&(Pe.eventData=M(V),Pe.eventData.targetType="axisName",Pe.eventData.name=B),this._dumbGroup.add(Pe),Pe.updateTransform(),this.group.add(Pe),Pe.decomposeTransform()}}},I=S.innerTextLayout=function(O,N,z){var V,B,G=g(N-O);return y(G)?(B=z>0?"top":"bottom",V="center"):y(G-_)?(B=z>0?"bottom":"top",V="center"):(B="middle",V=G>0&&G<_?z>0?"right":"left":z>0?"left":"right"),{rotation:G,textAlign:V,textVerticalAlign:B}};function k(O){var N=O.get("tooltip");return O.get("silent")||!(O.get("triggerEvent")||N&&N.show)}function D(O){O&&(O.ignore=!0)}function L(O,N,z){var V=O&&O.getBoundingRect().clone(),B=N&&N.getBoundingRect().clone();if(V&&B){var G=o.identity([]);return o.rotate(G,G,-O.rotation),V.applyTransform(o.mul([],G,O.getLocalTransform())),B.applyTransform(o.mul([],G,N.getLocalTransform())),V.intersect(B)}}function R(O){return O==="middle"||O==="center"}U.exports=S},81059:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(93267),w=p.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,f,a,y){this.axisPointerClass&&T.fixValue(t),w.superApply(this,"render",arguments),e(this,t,f,a,y,!0)},updateAxisPointer:function(t,f,a,y,g){e(this,t,f,a,y,!1)},remove:function(t,f){var a=this._axisPointer;a&&a.remove(f),w.superApply(this,"remove",arguments)},dispose:function(t,f){h(this,f),w.superApply(this,"dispose",arguments)}});function e(t,f,a,y,g,c){var o=w.getAxisPointerClass(t.axisPointerClass);if(o){var d=T.getAxisPointerModel(f);d?(t._axisPointer||(t._axisPointer=new o)).render(f,d,y,c):h(t,y)}}function h(t,f,a){var y=t._axisPointer;y&&y.dispose(f,a),t._axisPointer=null}var n=[];w.registerAxisPointerClass=function(t,f){n[t]=f},w.getAxisPointerClass=function(t){return t&&n[t]},U.exports=w},82750:function(U,C,b){var p=b(23405),T=b(51747),w=b(88010),e=b(81059),h=b(2244),n=["axisLine","axisTickLabel","axisName"],t=["splitArea","splitLine"],f=e.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(a,y,g,c){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new T.Group,this.group.add(this._axisGroup),a.get("show")){var d=a.getCoordSysModel(),m=h.layout(d,a),_=new w(a,m);p.each(n,_.add,_),this._axisGroup.add(_.getGroup()),p.each(t,function(M){a.get(M+".show")&&this["_"+M](a,d)},this),T.groupTransition(o,this._axisGroup,a),f.superCall(this,"render",a,y,g,c)}},remove:function(){this._splitAreaColors=null},_splitLine:function(a,y){var g=a.axis;if(!g.scale.isBlank()){var c=a.getModel("splitLine"),o=c.getModel("lineStyle"),d=o.get("color");d=p.isArray(d)?d:[d];for(var m=y.coordinateSystem.getRect(),_=g.isHorizontal(),M=0,S=g.getTicksCoords({tickModel:c}),A=[],I=[],k=o.getLineStyle(),D=0;D<S.length;D++){var L=g.toGlobalCoord(S[D].coord);_?(A[0]=L,A[1]=m.y,I[0]=L,I[1]=m.y+m.height):(A[0]=m.x,A[1]=L,I[0]=m.x+m.width,I[1]=L);var R=M++%d.length,O=S[D].tickValue;this._axisGroup.add(new T.Line(T.subPixelOptimizeLine({anid:O!=null?"line_"+S[D].tickValue:null,shape:{x1:A[0],y1:A[1],x2:I[0],y2:I[1]},style:p.defaults({stroke:d[R]},k),silent:!0})))}}},_splitArea:function(a,y){var g=a.axis;if(!g.scale.isBlank()){var c=a.getModel("splitArea"),o=c.getModel("areaStyle"),d=o.get("color"),m=y.coordinateSystem.getRect(),_=g.getTicksCoords({tickModel:c,clamp:!0});if(_.length){var M=d.length,S=this._splitAreaColors,A=p.createHashMap(),I=0;if(S)for(var k=0;k<_.length;k++){var D=S.get(_[k].tickValue);if(D!=null){I=(D+(M-1)*k)%M;break}}var L=g.toGlobalCoord(_[0].coord),R=o.getAreaStyle();d=p.isArray(d)?d:[d];for(var k=1;k<_.length;k++){var O,N,z,V,B=g.toGlobalCoord(_[k].coord);g.isHorizontal()?(O=L,N=m.y,z=B-O,V=m.height,L=O+z):(O=m.x,N=L,z=m.width,V=B-N,L=N+V);var G=_[k-1].tickValue;G!=null&&A.set(G,I),this._axisGroup.add(new T.Rect({anid:G!=null?"area_"+G:null,shape:{x:O,y:N,width:z,height:V},style:p.defaults({fill:d[I]},R),silent:!0})),I=(I+1)%M}this._splitAreaColors=A}}}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},94013:function(U,C,b){var p=b(87930),T=b(23405),w=b(88010),e=b(29006),h=b(45498),n=b(51747),t=["axisLine","axisTickLabel","axisName"],f=p.extendComponentView({type:"parallelAxis",init:function(a,y){f.superApply(this,"init",arguments),(this._brushController=new e(y.getZr())).on("brush",T.bind(this._onBrush,this))},render:function(a,y,g,c){var o,d,m;if(o=a,d=y,!(m=c)||m.type!=="axisAreaSelect"||d.findComponents({mainType:"parallelAxis",query:m})[0]!==o){this.axisModel=a,this.api=g,this.group.removeAll();var _=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),a.get("show")){var M,S=(M=a,y.getComponent("parallel",M.get("parallelIndex"))),A=S.coordinateSystem,I=a.getAreaSelectStyle(),k=I.width,D=a.axis.dim,L=A.getAxisLayout(D),R=T.extend({strokeContainThreshold:k},L),O=new w(a,R);T.each(t,O.add,O),this._axisGroup.add(O.getGroup()),this._refreshBrushController(R,I,a,S,k,g);var N=c&&c.animation===!1?null:a;n.groupTransition(_,this._axisGroup,N)}}},_refreshBrushController:function(a,y,g,c,o,d){var m,_,M=g.axis.getExtent(),S=M[1]-M[0],A=Math.min(30,.1*Math.abs(S)),I=n.BoundingRect.create({x:M[0],y:-o/2,width:S,height:o});I.x-=A,I.width+=2*A,this._brushController.mount({enableGlobalPan:!0,rotation:a.rotation,position:a.position}).setPanels([{panelId:"pl",clipPath:h.makeRectPanelClipPath(I),isTargetByCursor:h.makeRectIsTargetByCursor(I,d,c),getLinearBrushOtherExtent:h.makeLinearBrushOtherExtent(I,0)}]).enableBrush({brushType:"lineX",brushStyle:y,removeOnClick:!0}).updateCovers((_=(m=g).axis,T.map(m.activeIntervals,function(k){return{brushType:"lineX",panelId:"pl",range:[_.dataToCoord(k[0],!0),_.dataToCoord(k[1],!0)]}})))},_onBrush:function(a,y){var g=this.axisModel,c=g.axis,o=T.map(a,function(d){return[c.coordToData(d.range[0],!0),c.coordToData(d.range[1],!0)]});(!g.option.realtime===y.isEnd||y.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:g.id,intervals:o})},dispose:function(){this._brushController.dispose()}});U.exports=f},34848:function(U,C,b){var p=b(23405),T=b(51747),w=b(88010),e=b(81059),h=["axisLine","axisTickLabel","axisName"],n=["splitLine","splitArea"];U.exports=e.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,f){if(this.group.removeAll(),t.get("show")){var a,y,g,c=t.axis,o=c.polar,d=o.getAngleAxis(),m=c.getTicksCoords(),_=d.getExtent()[0],M=c.getExtent(),S=(a=o,y=t,g=_,{position:[a.cx,a.cy],rotation:g/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:y.getModel("axisLabel").get("rotate"),z2:1}),A=new w(t,S);p.each(h,A.add,A),this.group.add(A.getGroup()),p.each(n,function(I){t.get(I+".show")&&!c.scale.isBlank()&&this["_"+I](t,o,_,M,m)},this)}},_splitLine:function(t,f,a,y,g){var c=t.getModel("splitLine").getModel("lineStyle"),o=c.get("color"),d=0;o=o instanceof Array?o:[o];for(var m=[],_=0;_<g.length;_++){var M=d++%o.length;m[M]=m[M]||[],m[M].push(new T.Circle({shape:{cx:f.cx,cy:f.cy,r:g[_].coord},silent:!0}))}for(var _=0;_<m.length;_++)this.group.add(T.mergePath(m[_],{style:p.defaults({stroke:o[_%o.length],fill:null},c.getLineStyle()),silent:!0}))},_splitArea:function(t,f,a,y,g){if(g.length){var c=t.getModel("splitArea").getModel("areaStyle"),o=c.get("color"),d=0;o=o instanceof Array?o:[o];for(var m=[],_=g[0].coord,M=1;M<g.length;M++){var S=d++%o.length;m[S]=m[S]||[],m[S].push(new T.Sector({shape:{cx:f.cx,cy:f.cy,r0:_,r:g[M].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),_=g[M].coord}for(var M=0;M<m.length;M++)this.group.add(T.mergePath(m[M],{style:p.defaults({fill:o[M%o.length]},c.getAreaStyle()),silent:!0}))}}})},67559:function(U,C,b){var p=b(23405),T=b(88010),w=b(51747),e=b(91456),h=b(81059),n=["axisLine","axisTickLabel","axisName"],t="splitLine",f=h.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(a,y,g,c){var o=this.group;o.removeAll();var d=e.layout(a),m=new T(a,d);p.each(n,m.add,m),o.add(m.getGroup()),a.get(t+".show")&&this["_"+t](a),f.superCall(this,"render",a,y,g,c)},_splitLine:function(a){var y=a.axis;if(!y.scale.isBlank()){var g=a.getModel("splitLine"),c=g.getModel("lineStyle"),o=c.get("width"),d=c.get("color");d=d instanceof Array?d:[d];for(var m=a.coordinateSystem.getRect(),_=y.isHorizontal(),M=[],S=0,A=y.getTicksCoords({tickModel:g}),I=[],k=[],D=0;D<A.length;++D){var L=y.toGlobalCoord(A[D].coord);_?(I[0]=L,I[1]=m.y,k[0]=L,k[1]=m.y+m.height):(I[0]=m.x,I[1]=L,k[0]=m.x+m.width,k[1]=L);var R=S++%d.length;M[R]=M[R]||[],M[R].push(new w.Line(w.subPixelOptimizeLine({shape:{x1:I[0],y1:I[1],x2:k[0],y2:k[1]},style:{lineWidth:o},silent:!0})))}for(var D=0;D<M.length;++D)this.group.add(w.mergePath(M[D],{style:{stroke:d[D%d.length],lineDash:c.getLineDash(o),lineWidth:o},silent:!0}))}}});U.exports=f},86997:function(U,C,b){var p=b(87930);p.registerAction({type:"axisAreaSelect",event:"axisAreaSelected"},function(T,w){w.eachComponent({mainType:"parallelAxis",query:T},function(e){e.axis.model.setActiveIntervals(T.intervals)})}),p.registerAction("parallelAxisExpand",function(T,w){w.eachComponent({mainType:"parallel",query:T},function(e){e.setAxisExpand(T)})})},81819:function(U,C,b){var p=b(87930),T=b(23405),w=b(93267),e=b(71155);b(87793),b(43268),b(55695),p.registerPreprocessor(function(h){if(h){h.axisPointer&&h.axisPointer.length!==0||(h.axisPointer={});var n=h.axisPointer.link;n&&!T.isArray(n)&&(h.axisPointer.link=[n])}}),p.registerProcessor(p.PRIORITY.PROCESSOR.STATISTIC,function(h,n){h.getComponent("axisPointer").coordSysAxesInfo=w.collect(h,n)}),p.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},e)},87793:function(U,C,b){U.exports=b(87930).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}})},43268:function(U,C,b){var p=b(87930),T=b(46357),w=p.extendComponentView({type:"axisPointer",render:function(e,h,n){var t=h.getComponent("tooltip"),f=e.get("triggerOn")||t&&t.get("triggerOn")||"mousemove|click";T.register("axisPointer",n,function(a,y,g){f!=="none"&&(a==="leave"||f.indexOf(a)>=0)&&g({type:"updateAxisPointer",currTrigger:a,x:y&&y.offsetX,y:y&&y.offsetY})})},remove:function(e,h){T.unregister(h.getZr(),"axisPointer"),w.superApply(this._model,"remove",arguments)},dispose:function(e,h){T.unregister("axisPointer",h),w.superApply(this._model,"dispose",arguments)}});U.exports=w},95003:function(U,C,b){var p=b(23405),T=b(92161),w=b(51747),e=b(93267),h=b(46427),n=b(94127),t=(0,b(51064).makeInner)(),f=p.clone,a=p.bind;function y(){}function g(m,_,M,S){!function A(I,k){if(!(p.isObject(I)&&p.isObject(k)))return I===k;var D=!0;return p.each(k,function(L,R){D=D&&A(I[R],L)}),!!D}(t(M).lastProp,S)&&(t(M).lastProp=S,_?w.updateProps(M,S,m):(M.stopAnimation(),M.attr(S)))}function c(m,_){m[_.get("label.show")?"show":"hide"]()}function o(m){return{position:m.position.slice(),rotation:m.rotation||0}}function d(m,_,M){var S=_.get("z"),A=_.get("zlevel");m&&m.traverse(function(I){I.type!=="group"&&(S!=null&&(I.z=S),A!=null&&(I.zlevel=A),I.silent=M)})}y.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(m,_,M,S){var A=_.get("value"),I=_.get("status");if(this._axisModel=m,this._axisPointerModel=_,this._api=M,S||this._lastValue!==A||this._lastStatus!==I){this._lastValue=A,this._lastStatus=I;var k=this._group,D=this._handle;if(!I||I==="hide"){k&&k.hide(),D&&D.hide();return}k&&k.show(),D&&D.show();var L={};this.makeElOption(L,A,m,_,M);var R=L.graphicKey;R!==this._lastGraphicKey&&this.clear(M),this._lastGraphicKey=R;var O=this._moveAnimation=this.determineAnimation(m,_);if(k){var N=p.curry(g,_,O);this.updatePointerEl(k,L,N,_),this.updateLabelEl(k,L,N,_)}else k=this._group=new w.Group,this.createPointerEl(k,L,m,_),this.createLabelEl(k,L,m,_),M.getZr().add(k);d(k,_,!0),this._renderHandle(A)}},remove:function(m){this.clear(m)},dispose:function(m){this.clear(m)},determineAnimation:function(m,_){var M=_.get("animation"),S=m.axis,A=S.type==="category",I=_.get("snap");if(!I&&!A)return!1;if(M==="auto"||M==null){var k=this.animationThreshold;if(A&&S.getBandWidth()>k)return!0;if(I){var D=e.getAxisInfo(m).seriesDataCount,L=S.getExtent();return Math.abs(L[0]-L[1])/D>k}return!1}return M===!0},makeElOption:function(m,_,M,S,A){},createPointerEl:function(m,_,M,S){var A=_.pointer;if(A){var I=t(m).pointerEl=new w[A.type](f(_.pointer));m.add(I)}},createLabelEl:function(m,_,M,S){if(_.label){var A=t(m).labelEl=new w.Rect(f(_.label));m.add(A),c(A,S)}},updatePointerEl:function(m,_,M){var S=t(m).pointerEl;S&&(S.setStyle(_.pointer.style),M(S,{shape:_.pointer.shape}))},updateLabelEl:function(m,_,M,S){var A=t(m).labelEl;A&&(A.setStyle(_.label.style),M(A,{shape:_.label.shape,position:_.label.position}),c(A,S))},_renderHandle:function(m){if(!this._dragging&&this.updateHandleTransform){var _,M=this._axisPointerModel,S=this._api.getZr(),A=this._handle,I=M.getModel("handle"),k=M.get("status");if(!I.get("show")||!k||k==="hide"){A&&S.remove(A),this._handle=null;return}this._handle||(_=!0,A=this._handle=w.createIcon(I.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(L){h.stop(L.event)},onmousedown:a(this._onHandleDragMove,this,0,0),drift:a(this._onHandleDragMove,this),ondragend:a(this._onHandleDragEnd,this)}),S.add(A)),d(A,M,!1),A.setStyle(I.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var D=I.get("size");p.isArray(D)||(D=[D,D]),A.attr("scale",[D[0]/2,D[1]/2]),n.createOrUpdate(this,"_doDispatchAxisPointer",I.get("throttle")||0,"fixRate"),this._moveHandleToValue(m,_)}},_moveHandleToValue:function(m,_){g(this._axisPointerModel,!_&&this._moveAnimation,this._handle,o(this.getHandleTransform(m,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(m,_){var M=this._handle;if(M){this._dragging=!0;var S=this.updateHandleTransform(o(M),[m,_],this._axisModel,this._axisPointerModel);this._payloadInfo=S,M.stopAnimation(),M.attr(o(S)),t(M).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var m=this._payloadInfo,_=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:m.cursorPoint[0],y:m.cursorPoint[1],tooltipOption:m.tooltipOption,axesInfo:[{axisDim:_.axis.dim,axisIndex:_.componentIndex}]})}},_onHandleDragEnd:function(m){if(this._dragging=!1,this._handle){var _=this._axisPointerModel.get("value");this._moveHandleToValue(_),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(m){this._lastValue=null,this._lastStatus=null;var _=m.getZr(),M=this._group,S=this._handle;_&&M&&(this._lastGraphicKey=null,M&&_.remove(M),S&&_.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(m,_,M){return{x:m[M=M||0],y:m[1-M],width:_[M],height:_[1-M]}}},y.prototype.constructor=y,T.enableClassExtend(y),U.exports=y},55695:function(U,C,b){var p=b(51747),T=b(95003),w=b(84908),e=b(2244),h=b(81059),n=T.extend({makeElOption:function(y,g,c,o,d){var m=c.axis,_=m.grid,M=o.get("type"),S=t(_,m).getOtherAxis(m).getGlobalExtent(),A=m.toGlobalCoord(m.dataToCoord(g,!0));if(M&&M!=="none"){var I=w.buildElStyle(o),k=f[M](m,A,S,I);k.style=I,y.graphicKey=k.type,y.pointer=k}var D=e.layout(_.model,c);w.buildCartesianSingleLabelElOption(g,y,D,c,o,d)},getHandleTransform:function(y,g,c){var o=e.layout(g.axis.grid.model,g,{labelInside:!1});return o.labelMargin=c.get("handle.margin"),{position:w.getTransformedPosition(g.axis,y,o),rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(y,g,c,o){var d=c.axis,m=d.grid,_=d.getGlobalExtent(!0),M=t(m,d).getOtherAxis(d).getGlobalExtent(),S=+(d.dim!=="x"),A=y.position;A[S]+=g[S],A[S]=Math.min(_[1],A[S]),A[S]=Math.max(_[0],A[S]);var I=(M[1]+M[0])/2,k=[I,I];return k[S]=A[S],{position:A,rotation:y.rotation,cursorPoint:k,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][S]}}});function t(y,g){var c={};return c[g.dim+"AxisIndex"]=g.index,y.getCartesian(c)}var f={line:function(y,g,c,o){var d=w.makeLineShape([g,c[0]],[g,c[1]],a(y));return p.subPixelOptimizeLine({shape:d,style:o}),{type:"Line",shape:d}},shadow:function(y,g,c,o){var d=Math.max(1,y.getBandWidth()),m=c[1]-c[0];return{type:"Rect",shape:w.makeRectShape([g-d/2,c[0]],[d,m],a(y))}}};function a(y){return+(y.dim!=="x")}h.registerAxisPointerClass("CartesianAxisPointer",n),U.exports=n},73005:function(U,C,b){var p=b(60653),T=b(95003),w=b(51747),e=b(84908),h=b(79442),n=b(88010),t=b(81059),f=T.extend({makeElOption:function(y,g,c,o,d){var m,_=c.axis;_.dim==="angle"&&(this.animationThreshold=Math.PI/18);var M=_.polar,S=M.getOtherAxis(_).getExtent();m=_["dataTo"+p.capitalFirst(_.dim)](g);var A=o.get("type");if(A&&A!=="none"){var I=e.buildElStyle(o),k=a[A](_,M,m,S,I);k.style=I,y.graphicKey=k.type,y.pointer=k}var D=function(L,R,O,N,z){var V,B,G,E=R.axis,H=E.dataToCoord(L),W=N.getAngleAxis().getExtent()[0];W=W/180*Math.PI;var $=N.getRadiusAxis().getExtent();if(E.dim==="radius"){var Z=h.create();h.rotate(Z,Z,W),h.translate(Z,Z,[N.cx,N.cy]),V=w.applyTransform([H,-z],Z);var Q=R.getModel("axisLabel").get("rotate")||0,Y=n.innerTextLayout(W,Q*Math.PI/180,-1);B=Y.textAlign,G=Y.textVerticalAlign}else{var K=$[1];V=N.coordToPoint([K+z,H]);var ne=N.cx,X=N.cy;B=Math.abs(V[0]-ne)/K<.3?"center":V[0]>ne?"left":"right",G=Math.abs(V[1]-X)/K<.3?"middle":V[1]>X?"top":"bottom"}return{position:V,align:B,verticalAlign:G}}(g,c,0,M,o.get("label.margin"));e.buildLabelElOption(y,c,o,d,D)}}),a={line:function(y,g,c,o,d){return y.dim==="angle"?{type:"Line",shape:e.makeLineShape(g.coordToPoint([o[0],c]),g.coordToPoint([o[1],c]))}:{type:"Circle",shape:{cx:g.cx,cy:g.cy,r:c}}},shadow:function(y,g,c,o,d){var m=Math.max(1,y.getBandWidth()),_=Math.PI/180;return y.dim==="angle"?{type:"Sector",shape:e.makeSectorShape(g.cx,g.cy,o[0],o[1],(-c-m/2)*_,(-c+m/2)*_)}:{type:"Sector",shape:e.makeSectorShape(g.cx,g.cy,c-m/2,c+m/2,0,2*Math.PI)}}};t.registerAxisPointerClass("PolarAxisPointer",f),U.exports=f},48102:function(U,C,b){var p=b(51747),T=b(95003),w=b(84908),e=b(91456),h=b(81059),n=["x","y"],t=["width","height"],f=T.extend({makeElOption:function(c,o,d,m,_){var M=d.axis,S=M.coordinateSystem,A=g(S,1-y(M)),I=S.dataToPoint(o)[0],k=m.get("type");if(k&&k!=="none"){var D=w.buildElStyle(m),L=a[k](M,I,A,D);L.style=D,c.graphicKey=L.type,c.pointer=L}var R=e.layout(d);w.buildCartesianSingleLabelElOption(o,c,R,d,m,_)},getHandleTransform:function(c,o,d){var m=e.layout(o,{labelInside:!1});return m.labelMargin=d.get("handle.margin"),{position:w.getTransformedPosition(o.axis,c,m),rotation:m.rotation+(m.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(c,o,d,m){var _=d.axis,M=_.coordinateSystem,S=y(_),A=g(M,S),I=c.position;I[S]+=o[S],I[S]=Math.min(A[1],I[S]),I[S]=Math.max(A[0],I[S]);var k=g(M,1-S),D=(k[1]+k[0])/2,L=[D,D];return L[S]=I[S],{position:I,rotation:c.rotation,cursorPoint:L,tooltipOption:{verticalAlign:"middle"}}}}),a={line:function(c,o,d,m){var _=w.makeLineShape([o,d[0]],[o,d[1]],y(c));return p.subPixelOptimizeLine({shape:_,style:m}),{type:"Line",shape:_}},shadow:function(c,o,d,m){var _=c.getBandWidth(),M=d[1]-d[0];return{type:"Rect",shape:w.makeRectShape([o-_/2,d[0]],[_,M],y(c))}}};function y(c){return+!c.isHorizontal()}function g(c,o){var d=c.getRect();return[d[n[o]],d[n[o]]+d[t[o]]]}h.registerAxisPointerClass("SingleAxisPointer",f),U.exports=f},71155:function(U,C,b){var p=b(23405),T=b(51064).makeInner,w=b(93267),e=b(2885),h=p.each,n=p.curry,t=T();function f(o,d,m,_,M){var S=o.axis;if(!S.scale.isBlank()&&S.containData(d)){if(!o.involveSeries)return void m.showPointer(o,d);var A,I,k,D,L,R,O,N,z=(A=d,D=(k=(I=o).axis).dim,L=A,R=[],O=Number.MAX_VALUE,N=-1,h(I.seriesModels,function(G,E){var H,W,$=G.getData().mapDimension(D,!0);if(G.getAxisTooltipData){var Z=G.getAxisTooltipData($,A,k);W=Z.dataIndices,H=Z.nestestValue}else{if(!(W=G.getData().indicesOfNearest($[0],A,k.type==="category"?.5:null)).length)return;H=G.getData().get($[0],W[0])}if(H!=null&&isFinite(H)){var Q=A-H,Y=Math.abs(Q);Y<=O&&((Y<O||Q>=0&&N<0)&&(O=Y,N=Q,L=H,R.length=0),h(W,function(K){R.push({seriesIndex:G.seriesIndex,dataIndexInside:K,dataIndex:G.getData().getRawIndex(K)})}))}}),{payloadBatch:R,snapToValue:L}),V=z.payloadBatch,B=z.snapToValue;V[0]&&M.seriesIndex==null&&p.extend(M,V[0]),!_&&o.snap&&S.containData(B)&&B!=null&&(d=B),m.showPointer(o,d,V,M),m.showTooltip(o,z,B)}}function a(o,d,m,_){o[d.key]={value:m,payloadBatch:_}}function y(o,d,m,_){var M=m.payloadBatch,S=d.axis,A=S.model,I=d.axisPointerModel;if(d.triggerTooltip&&M.length){var k=d.coordSys.model,D=w.makeKey(k),L=o.map[D];L||(L=o.map[D]={coordSysId:k.id,coordSysIndex:k.componentIndex,coordSysType:k.type,coordSysMainType:k.mainType,dataByAxis:[]},o.list.push(L)),L.dataByAxis.push({axisDim:S.dim,axisIndex:A.componentIndex,axisType:A.type,axisId:A.id,value:_,valueLabelOpt:{precision:I.get("label.precision"),formatter:I.get("label.formatter")},seriesDataIndices:M.slice()})}}function g(o){var d=o.axis.model,m={},_=m.axisDim=o.axis.dim;return m.axisIndex=m[_+"AxisIndex"]=d.componentIndex,m.axisName=m[_+"AxisName"]=d.name,m.axisId=m[_+"AxisId"]=d.id,m}function c(o){return!o||o[0]==null||isNaN(o[0])||o[1]==null||isNaN(o[1])}U.exports=function(o,d,m){var _=o.currTrigger,M=[o.x,o.y],S=o.dispatchAction||p.bind(m.dispatchAction,m),A=d.getComponent("axisPointer").coordSysAxesInfo;if(A){c(M)&&(M=e({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},d).point);var I,k,D,L,R,O,N,z,V,B,G,E=c(M),H=o.axesInfo,W=A.axesInfo,$=_==="leave"||c(M),Z={},Q={},Y={list:[],map:{}},K={showPointer:n(a,Q),showTooltip:n(y,Y)};h(A.coordSysMap,function(X,ee){var ae=E||X.containPoint(M);h(A.coordSysAxesInfo[ee],function(oe,se){var ge=oe.axis,fe=function(ue,he){for(var pe=0;pe<(ue||[]).length;pe++){var ye=ue[pe];if(he.axis.dim===ye.axisDim&&he.axis.model.componentIndex===ye.axisIndex)return ye}}(H,oe);if(!$&&ae&&(!H||fe)){var le=fe&&fe.value;le!=null||E||(le=ge.pointToData(M)),le!=null&&f(oe,le,K,!1,Z)}})});var ne={};return h(W,function(X,ee){var ae=X.linkGroup;ae&&!Q[ee]&&h(ae.axesInfo,function(oe,se){var ge=Q[se];if(oe!==X&&ge){var fe=ge.value;ae.mapper&&(fe=X.axis.scale.parse(ae.mapper(fe,g(oe),g(X)))),ne[X.key]=fe}})}),h(ne,function(X,ee){f(W[ee],X,K,!0,Z)}),I=Q,k=W,D=Z.axesInfo=[],h(k,function(X,ee){var ae=X.axisPointerModel.option,oe=I[ee];oe?(X.useHandle||(ae.status="show"),ae.value=oe.value,ae.seriesDataIndices=(oe.payloadBatch||[]).slice()):X.useHandle||(ae.status="hide"),ae.status==="show"&&D.push({axisDim:X.axis.dim,axisIndex:X.axis.model.componentIndex,value:ae.value})}),function(X,ee,ae,oe){if(c(ee)||!X.list.length)return oe({type:"hideTip"});var se=((X.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};oe({type:"showTip",escapeConnect:!0,x:ee[0],y:ee[1],tooltipOption:ae.tooltipOption,position:ae.position,dataIndexInside:se.dataIndexInside,dataIndex:se.dataIndex,seriesIndex:se.seriesIndex,dataByCoordSys:X.list})}(Y,M,o,S),L=W,O=(R=m).getZr(),N="axisPointerLastHighlights",z=t(O)[N]||{},V=t(O)[N]={},h(L,function(X,ee){var ae=X.axisPointerModel.option;ae.status==="show"&&h(ae.seriesDataIndices,function(oe){V[oe.seriesIndex+" | "+oe.dataIndex]=oe})}),B=[],G=[],p.each(z,function(X,ee){V[ee]||G.push(X)}),p.each(V,function(X,ee){z[ee]||B.push(X)}),G.length&&R.dispatchAction({type:"downplay",escapeConnect:!0,batch:G}),B.length&&R.dispatchAction({type:"highlight",escapeConnect:!0,batch:B}),Z}}},2885:function(U,C,b){var p=b(23405),T=b(51064);U.exports=function(w,e){var h,n=[],t=w.seriesIndex;if(t==null||!(h=e.getSeriesByIndex(t)))return{point:[]};var f=h.getData(),a=T.queryDataIndex(f,w);if(a==null||a<0||p.isArray(a))return{point:[]};var y=f.getItemGraphicEl(a),g=h.coordinateSystem;if(h.getTooltipPosition)n=h.getTooltipPosition(a)||[];else if(g&&g.dataToPoint)n=g.dataToPoint(f.getValues(p.map(g.dimensions,function(o){return f.mapDimension(o)}),a,!0))||[];else if(y){var c=y.getBoundingRect().clone();c.applyTransform(y.transform),n=[c.x+c.width/2,c.y+c.height/2]}return{point:n,el:y}}},46357:function(U,C,b){var p=b(23405),T=b(23584),w=(0,b(51064).makeInner)(),e=p.each;function h(t,f,a){t.handler("leave",null,a)}function n(t,f,a,y){f.handler(t,a,y)}C.register=function(t,f,a){if(!T.node){var y=f.getZr();w(y).records||(w(y).records={}),function(g,c){w(g).initialized||(w(g).initialized=!0,o("click",p.curry(n,"click")),o("mousemove",p.curry(n,"mousemove")),o("globalout",h));function o(d,m){g.on(d,function(_){var M,S,A,I,k,D,L,R,O=(M=c,S={showTip:[],hideTip:[]},{dispatchAction:A=function(N){var z=S[N.type];z?z.push(N):(N.dispatchAction=A,M.dispatchAction(N))},pendings:S});e(w(g).records,function(N){N&&m(N,_,O.dispatchAction)}),I=O.pendings,k=c,L=I.showTip.length,R=I.hideTip.length,L?D=I.showTip[L-1]:R&&(D=I.hideTip[R-1]),D&&(D.dispatchAction=null,k.dispatchAction(D))})}}(y,f),(w(y).records[t]||(w(y).records[t]={})).handler=a}},C.unregister=function(t,f){if(!T.node){var a=f.getZr();(w(a).records||{})[t]&&(w(a).records[t]=null)}}},93267:function(U,C,b){var p=b(23405),T=b(46082),w=p.each,e=p.curry;function h(a,y){return a==="all"||p.isArray(a)&&p.indexOf(a,y)>=0||a===y}function n(a){var y=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return y&&y.axesInfo[f(a)]}function t(a){return!!a.get("handle.show")}function f(a){return a.type+"||"+a.id}C.collect=function(a,y){var g,c,o,d,m,_,M,S={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return g=S,c=a,o=y,d=c.getComponent("tooltip"),_=(m=c.getComponent("axisPointer")).get("link",!0)||[],M=[],w(o.getCoordinateSystems(),function(A){if(A.axisPointerEnabled){var I=f(A.model),k=g.coordSysAxesInfo[I]={};g.coordSysMap[I]=A;var D=A.model.getModel("tooltip",d);if(w(A.getAxes(),e(N,!1,null)),A.getTooltipAxes&&d&&D.get("show")){var L=D.get("trigger")==="axis",R=D.get("axisPointer.type")==="cross",O=A.getTooltipAxes(D.get("axisPointer.axis"));(L||R)&&w(O.baseAxes,e(N,!R||"cross",L)),R&&w(O.otherAxes,e(N,"cross",!1))}}function N(z,V,B){var G=B.model.getModel("axisPointer",m),E=G.get("show");if(E&&(E!=="auto"||z||t(G))){V==null&&(V=G.get("triggerTooltip"));var H=(G=z?function(K,ne,X,ee,ae,oe){var se=ne.getModel("axisPointer"),ge={};w(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(he){ge[he]=p.clone(se.get(he))}),ge.snap=K.type!=="category"&&!!oe,se.get("type")==="cross"&&(ge.type="line");var fe=ge.label||(ge.label={});if(fe.show==null&&(fe.show=!1),ae==="cross"){var le=se.get("label.show");if(fe.show=le==null||le,!oe){var ue=ge.lineStyle=se.get("crossStyle");ue&&p.defaults(fe,ue.textStyle)}}return K.model.getModel("axisPointer",new T(ge,X,ee))}(B,D,m,c,z,V):G).get("snap"),W=f(B.model),$=V||H||B.type==="category",Z=g.axesInfo[W]={key:W,axis:B,coordSys:A,axisPointerModel:G,triggerTooltip:V,involveSeries:$,snap:H,useHandle:t(G),seriesModels:[]};k[W]=Z,g.seriesInvolved|=$;var Q=function(K,ne){for(var X=ne.model,ee=ne.dim,ae=0;ae<K.length;ae++){var oe=K[ae]||{};if(h(oe[ee+"AxisId"],X.id)||h(oe[ee+"AxisIndex"],X.componentIndex)||h(oe[ee+"AxisName"],X.name))return ae}}(_,B);if(Q!=null){var Y=M[Q]||(M[Q]={axesInfo:{}});Y.axesInfo[W]=Z,Y.mapper=_[Q].mapper,Z.linkGroup=Y}}}}),S.seriesInvolved&&function(A,I){I.eachSeries(function(k){var D=k.coordinateSystem,L=k.get("tooltip.trigger",!0),R=k.get("tooltip.show",!0);D&&L!=="none"&&L!==!1&&L!=="item"&&R!==!1&&k.get("axisPointer.show",!0)!==!1&&w(A.coordSysAxesInfo[f(D.model)],function(O){var N=O.axis;D.getAxis(N.dim)===N&&(O.seriesModels.push(k),O.seriesDataCount==null&&(O.seriesDataCount=0),O.seriesDataCount+=k.getData().count())})},this)}(S,a),S},C.fixValue=function(a){var y=n(a);if(y){var g=y.axisPointerModel,c=y.axis.scale,o=g.option,d=g.get("status"),m=g.get("value");m!=null&&(m=c.parse(m));var _=t(g);d==null&&(o.status=_?"show":"hide");var M=c.getExtent().slice();M[0]>M[1]&&M.reverse(),(m==null||m>M[1])&&(m=M[1]),m<M[0]&&(m=M[0]),o.value=m,_&&(o.status=y.axis.scale.isBlank()?"hide":"show")}},C.getAxisInfo=n,C.getAxisPointerModel=function(a){var y=n(a);return y&&y.axisPointerModel},C.makeKey=f},84908:function(U,C,b){var p=b(23405),T=b(51747),w=b(24570),e=b(60653),h=b(79442),n=b(51261),t=b(88010);function f(g,c,o,d,m){var _,M,S,A,I,k,D=a(o.get("value"),c.axis,c.ecModel,o.get("seriesDataIndices"),{precision:o.get("label.precision"),formatter:o.get("label.formatter")}),L=o.getModel("label"),R=e.normalizeCssArray(L.get("padding")||0),O=L.getFont(),N=w.getBoundingRect(D,O),z=m.position,V=N.width+R[1]+R[3],B=N.height+R[0]+R[2],G=m.align;G==="right"&&(z[0]-=V),G==="center"&&(z[0]-=V/2);var E=m.verticalAlign;E==="bottom"&&(z[1]-=B),E==="middle"&&(z[1]-=B/2),_=z,M=V,S=B,I=(A=d).getWidth(),k=A.getHeight(),_[0]=Math.min(_[0]+M,I)-M,_[1]=Math.min(_[1]+S,k)-S,_[0]=Math.max(_[0],0),_[1]=Math.max(_[1],0);var H=L.get("backgroundColor");H&&H!=="auto"||(H=c.get("axisLine.lineStyle.color")),g.label={shape:{x:0,y:0,width:V,height:B,r:L.get("borderRadius")},position:z.slice(),style:{text:D,textFont:O,textFill:L.getTextColor(),textPosition:"inside",fill:H,stroke:L.get("borderColor")||"transparent",lineWidth:L.get("borderWidth")||0,shadowBlur:L.get("shadowBlur"),shadowColor:L.get("shadowColor"),shadowOffsetX:L.get("shadowOffsetX"),shadowOffsetY:L.get("shadowOffsetY")},z2:10}}function a(g,c,o,d,m){g=c.scale.parse(g);var _=c.scale.getLabel(g,{precision:m.precision}),M=m.formatter;if(M){var S={value:n.getAxisRawValue(c,g),seriesData:[]};p.each(d,function(A){var I=o.getSeriesByIndex(A.seriesIndex),k=A.dataIndexInside,D=I&&I.getDataParams(k);D&&S.seriesData.push(D)}),p.isString(M)?_=M.replace("{value}",_):p.isFunction(M)&&(_=M(S))}return _}function y(g,c,o){var d=h.create();return h.rotate(d,d,o.rotation),h.translate(d,d,o.position),T.applyTransform([g.dataToCoord(c),(o.labelOffset||0)+(o.labelDirection||1)*(o.labelMargin||0)],d)}C.buildElStyle=function(g){var c,o=g.get("type"),d=g.getModel(o+"Style");return o==="line"?(c=d.getLineStyle()).fill=null:o==="shadow"&&((c=d.getAreaStyle()).stroke=null),c},C.buildLabelElOption=f,C.getValueLabel=a,C.getTransformedPosition=y,C.buildCartesianSingleLabelElOption=function(g,c,o,d,m,_){var M=t.innerTextLayout(o.rotation,0,o.labelDirection);o.labelMargin=m.get("label.margin"),f(c,d,m,_,{position:y(d.axis,g,o),align:M.textAlign,verticalAlign:M.textVerticalAlign})},C.makeLineShape=function(g,c,o){return{x1:g[o=o||0],y1:g[1-o],x2:c[o],y2:c[1-o]}},C.makeRectShape=function(g,c,o){return{x:g[o=o||0],y:g[1-o],width:c[o],height:c[1-o]}},C.makeSectorShape=function(g,c,o,d,m,_){return{cx:g,cy:c,r0:o,r:d,startAngle:m,endAngle:_,clockwise:!0}}},17447:function(U,C,b){var p=b(87930),T=b(6237);b(11760),b(21975),b(2783),b(81537),b(21318),p.registerPreprocessor(T)},21975:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(55925),e=b(46082),h=["#ddd"];function n(t,f){return T.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new e(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},f,!0)}U.exports=p.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,f){var a=this.option;f||w.replaceVisualOption(a,t,["inBrush","outOfBrush"]);var y=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:h},y.hasOwnProperty("liftZ")||(y.liftZ=5)},setAreas:function(t){t&&(this.areas=T.map(t,function(f){return n(this.option,f)},this))},setBrushOption:function(t){this.brushOption=n(this.option,t),this.brushType=this.brushOption.brushType}})},2783:function(U,C,b){var p=b(87930),T=b(23405),w=b(29006);function e(h,n,t,f){f&&f.$from===h.id||this._brushController.setPanels(h.brushTargetManager.makePanelOpts(t)).enableBrush(h.brushOption).updateCovers(h.areas.slice())}U.exports=p.extendComponentView({type:"brush",init:function(h,n){this.ecModel=h,this.api=n,this.model,(this._brushController=new w(n.getZr())).on("brush",T.bind(this._onBrush,this)).mount()},render:function(h){return this.model=h,e.apply(this,arguments)},updateTransform:e,updateView:e,dispose:function(){this._brushController.dispose()},_onBrush:function(h,n){var t=this.model.id;this.model.brushTargetManager.setOutputRanges(h,this.ecModel),(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:T.clone(h),$from:t})}})},81537:function(U,C,b){var p=b(87930);p.registerAction({type:"brush",event:"brush"},function(T,w){w.eachComponent({mainType:"brush",query:T},function(e){e.setAreas(T.areas)})}),p.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},6237:function(U,C,b){var p=b(23405),T=["rect","polygon","keep","clear"];U.exports=function(w,e){var h=w&&w.brush;if(p.isArray(h)||(h=h?[h]:[]),h.length){var n,t,f=[];p.each(h,function(o){var d=o.hasOwnProperty("toolbox")?o.toolbox:[];d instanceof Array&&(f=f.concat(d))});var a=w&&w.toolbox;p.isArray(a)&&(a=a[0]),a||(w.toolbox=[a={feature:{}}]);var y=a.feature||(a.feature={}),g=y.brush||(y.brush={}),c=g.type||(g.type=[]);c.push.apply(c,f),n=c,t={},p.each(n,function(o){t[o]=1}),n.length=0,p.each(t,function(o,d){n.push(d)}),e&&!c.length&&c.push.apply(c,T)}}},31301:function(U,C,b){var p=b(94457),T=b(28761);function w(n){var t=["x","y"],f=["width","height"];return{point:function(a,y,g){if(a){var c=g.range;return e(a[n],c)}},rect:function(a,y,g){if(a){var c=g.range,o=[a[t[n]],a[t[n]]+a[f[n]]];return o[1]<o[0]&&o.reverse(),e(o[0],c)||e(o[1],c)||e(c[0],o)||e(c[1],o)}}}}function e(n,t){return t[0]<=n&&n<=t[1]}function h(n,t,f,a,y){for(var g=0,c=y[y.length-1];g<y.length;g++){var o=y[g];if(function(d,m,_,M,S,A,I,k){var D,L=function(N,z,V,B){return N*B-z*V}(_-d,S-I,M-m,A-k);if((D=L)<=1e-6&&D>=-1e-6)return!1;var R=function(N,z,V,B){return N*B-z*V}(S-d,S-I,A-m,A-k)/L;if(R<0||R>1)return!1;var O=function(N,z,V,B){return N*B-z*V}(_-d,S-d,M-m,A-m)/L;return!(O<0)&&!(O>1)}(n,t,f,a,o[0],o[1],c[0],c[1]))return!0;c=o}}U.exports={lineX:w(0),lineY:w(1),rect:{point:function(n,t,f){return n&&f.boundingRect.contain(n[0],n[1])},rect:function(n,t,f){return n&&f.boundingRect.intersect(n)}},polygon:{point:function(n,t,f){return n&&f.boundingRect.contain(n[0],n[1])&&p.contain(f.range,n[0],n[1])},rect:function(n,t,f){var a=f.range;if(!n||a.length<=1)return!1;var y=n.x,g=n.y,c=n.width,o=n.height,d=a[0];if(p.contain(a,y,g)||p.contain(a,y+c,g)||p.contain(a,y,g+o)||p.contain(a,y+c,g+o)||T.create(n).contain(d[0],d[1])||h(y,g,y+c,g,a)||h(y,g,y,g+o,a)||h(y+c,g,y+c,g+o,a)||h(y,g+o,y+c,g+o,a))return!0}}}},11760:function(U,C,b){var p=b(87930),T=b(23405),w=b(28761),e=b(55925),h=b(31301),n=b(94127),t=b(76744),f=["inBrush","outOfBrush"],a="__ecBrushSelect",y="__ecInBrushSelectEvent",g=p.PRIORITY.VISUAL.BRUSH;function c(M,S){if(!M.isDisposed()){var A=M.getZr();A[y]=!0,M.dispatchAction({type:"brushSelect",batch:S}),A[y]=!1}}function o(M,S,A,I){for(var k=0,D=S.length;k<D;k++){var L=S[k];if(M[L.brushType](I,A,L.selectors,L))return!0}}function d(M){var S=M.brushSelector;if(T.isString(S)){var A=[];return T.each(h,function(k,D){A[D]=function(L,R,O,N){var z=R.getItemLayout(L);return k[S](z,O,N)}}),A}if(T.isFunction(S)){var I={};return T.each(h,function(k,D){I[D]=S}),I}return S}p.registerLayout(g,function(M,S,A){M.eachComponent({mainType:"brush"},function(I){A&&A.type==="takeGlobalCursor"&&I.setBrushOption(A.key==="brush"?A.brushOption:{brushType:!1}),(I.brushTargetManager=new t(I.option,M)).setInputRanges(I.areas,M)})}),p.registerVisual(g,function(M,S,A){var I,k,D=[];M.eachComponent({mainType:"brush"},function(L,R){var O={brushId:L.id,brushIndex:R,brushName:L.name,areas:T.clone(L.areas),selected:[]};D.push(O);var N=L.option,z=N.brushLink,V=[],B=[],G=[],E=0;R||(I=N.throttleType,k=N.throttleDelay);var H=T.map(L.areas,function(Q){var Y,K;return K=(Y=T.defaults({boundingRect:m[Q.brushType](Q)},Q)).selectors={},T.each(h[Y.brushType],function(ne,X){K[X]=function(ee){return ne(ee,K,Y)}}),Y}),W=e.createVisualMappings(L.option,f,function(Q){Q.mappingMethod="fixed"});function $(Q){return z==="all"||V[Q]}function Z(Q){return!!Q.length}T.isArray(z)&&T.each(z,function(Q){V[Q]=1}),M.eachSeries(function(Q,Y){var K,ne,X,ee=G[Y]=[];Q.subType==="parallel"?(K=Q,ne=Y,X=K.coordinateSystem,E|=X.hasAxisBrushed(),$(ne)&&X.eachActiveState(K.getData(),function(ae,oe){ae==="active"&&(B[oe]=1)})):function(ae,oe,se){var ge,fe,le,ue=d(ae);if(!(!ue||(ge=L,fe=oe,(le=ge.option.seriesIndex)!=null&&le!=="all"&&(T.isArray(le)?0>T.indexOf(le,fe):fe!==le)))&&(T.each(H,function(pe){ue[pe.brushType]&&L.brushTargetManager.controlSeries(pe,ae,M)&&se.push(pe),E|=Z(se)}),$(oe)&&Z(se))){var he=ae.getData();he.each(function(pe){o(ue,se,he,pe)&&(B[pe]=1)})}}(Q,Y,ee)}),M.eachSeries(function(Q,Y){var K={seriesId:Q.id,seriesIndex:Y,seriesName:Q.name,dataIndex:[]};O.selected.push(K);var ne=d(Q),X=G[Y],ee=Q.getData(),ae=$(Y)?function(oe){return B[oe]?(K.dataIndex.push(ee.getRawIndex(oe)),"inBrush"):"outOfBrush"}:function(oe){return o(ne,X,ee,oe)?(K.dataIndex.push(ee.getRawIndex(oe)),"inBrush"):"outOfBrush"};($(Y)?E:Z(X))&&e.applyVisual(f,W,ee,ae)})}),function(L,R,O,N,z){if(z){var V=L.getZr();V[y]||(V[a]||(V[a]=c),n.createOrUpdate(V,a,O,R)(L,N))}}(S,I,k,D,A)});var m={lineX:T.noop,lineY:T.noop,rect:function(M){return _(M.range)},polygon:function(M){for(var S,A=M.range,I=0,k=A.length;I<k;I++){S=S||[[1/0,-1/0],[1/0,-1/0]];var D=A[I];D[0]<S[0][0]&&(S[0][0]=D[0]),D[0]>S[0][1]&&(S[0][1]=D[0]),D[1]<S[1][0]&&(S[1][0]=D[1]),D[1]>S[1][1]&&(S[1][1]=D[1])}return S&&_(S)}};function _(M){return new w(M[0][0],M[1][0],M[0][1]-M[0][0],M[1][1]-M[1][0])}},72017:function(U,C,b){b(91370),b(54466),b(8844)},8844:function(U,C,b){var p=b(87930),T=b(23405),w=b(51747),e=b(60653),h=b(54684),n={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},t={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};U.exports=p.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(f,a,y){var g=this.group;g.removeAll();var c=f.coordinateSystem,o=c.getRangeInfo(),d=c.getOrient();this._renderDayRect(f,o,g),this._renderLines(f,o,d,g),this._renderYearText(f,o,d,g),this._renderMonthText(f,d,g),this._renderWeekText(f,o,d,g)},_renderDayRect:function(f,a,y){for(var g=f.coordinateSystem,c=f.getModel("itemStyle").getItemStyle(),o=g.getCellWidth(),d=g.getCellHeight(),m=a.start.time;m<=a.end.time;m=g.getNextNDay(m,1).time){var _=g.dataToRect([m],!1).tl,M=new w.Rect({shape:{x:_[0],y:_[1],width:o,height:d},cursor:"default",style:c});y.add(M)}},_renderLines:function(f,a,y,g){var c=this,o=f.coordinateSystem,d=f.getModel("splitLine.lineStyle").getLineStyle(),m=f.get("splitLine.show"),_=d.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var M=a.start,S=0;M.time<=a.end.time;S++){I(M.formatedDate),S===0&&(M=o.getDateInfo(a.start.y+"-"+a.start.m));var A=M.date;A.setMonth(A.getMonth()+1),M=o.getDateInfo(A)}function I(k){c._firstDayOfMonth.push(o.getDateInfo(k)),c._firstDayPoints.push(o.dataToRect([k],!1).tl);var D=c._getLinePointsOfOneWeek(f,k,y);c._tlpoints.push(D[0]),c._blpoints.push(D[D.length-1]),m&&c._drawSplitline(D,d,g)}I(o.getNextNDay(a.end.time,1).formatedDate),m&&this._drawSplitline(c._getEdgesPoints(c._tlpoints,_,y),d,g),m&&this._drawSplitline(c._getEdgesPoints(c._blpoints,_,y),d,g)},_getEdgesPoints:function(f,a,y){var g=[f[0].slice(),f[f.length-1].slice()],c=+(y!=="horizontal");return g[0][c]=g[0][c]-a/2,g[1][c]=g[1][c]+a/2,g},_drawSplitline:function(f,a,y){var g=new w.Polyline({z2:20,shape:{points:f},style:a});y.add(g)},_getLinePointsOfOneWeek:function(f,a,y){var g=f.coordinateSystem;a=g.getDateInfo(a);for(var c=[],o=0;o<7;o++){var d=g.getNextNDay(a.time,o),m=g.dataToRect([d.time],!1);c[2*d.day]=m.tl,c[2*d.day+1]=m[y==="horizontal"?"bl":"tr"]}return c},_formatterLabel:function(f,a){return typeof f=="string"&&f?e.formatTplSimple(f,a):typeof f=="function"?f(a):a.nameMap},_yearTextPositionControl:function(f,a,y,g,c){a=a.slice();var o=["center","bottom"];g==="bottom"?(a[1]+=c,o=["center","top"]):g==="left"?a[0]-=c:g==="right"?(a[0]+=c,o=["center","top"]):a[1]-=c;var d=0;return(g==="left"||g==="right")&&(d=Math.PI/2),{rotation:d,position:a,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(f,a,y,g){var c=f.getModel("yearLabel");if(c.get("show")){var o=c.get("margin"),d=c.get("position");d||(d=y!=="horizontal"?"top":"left");var m=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],_=(m[0][0]+m[1][0])/2,M=(m[0][1]+m[1][1])/2,S=+(y!=="horizontal"),A={top:[_,m[S][1]],bottom:[_,m[1-S][1]],left:[m[1-S][0],M],right:[m[S][0],M]},I=a.start.y;+a.end.y>+a.start.y&&(I=I+"-"+a.end.y);var k=c.get("formatter"),D={start:a.start.y,end:a.end.y,nameMap:I},L=this._formatterLabel(k,D),R=new w.Text({z2:30});w.setTextStyle(R.style,c,{text:L}),R.attr(this._yearTextPositionControl(R,A[d],y,d,o)),g.add(R)}},_monthTextPositionControl:function(f,a,y,g,c){var o="left",d="top",m=f[0],_=f[1];return y==="horizontal"?(_+=c,a&&(o="center"),g==="start"&&(d="bottom")):(m+=c,a&&(d="middle"),g==="start"&&(o="right")),{x:m,y:_,textAlign:o,textVerticalAlign:d}},_renderMonthText:function(f,a,y){var g=f.getModel("monthLabel");if(g.get("show")){var c=g.get("nameMap"),o=g.get("margin"),d=g.get("position"),m=g.get("align"),_=[this._tlpoints,this._blpoints];T.isString(c)&&(c=n[c.toUpperCase()]||[]);var M=+(d!=="start"),S=+(a!=="horizontal");o=d==="start"?-o:o;for(var A=m==="center",I=0;I<_[M].length-1;I++){var k=_[M][I].slice(),D=this._firstDayOfMonth[I];if(A){var L=this._firstDayPoints[I];k[S]=(L[S]+_[0][I+1][S])/2}var R=g.get("formatter"),O=c[+D.m-1],N={yyyy:D.y,yy:(D.y+"").slice(2),MM:D.m,M:+D.m,nameMap:O},z=this._formatterLabel(R,N),V=new w.Text({z2:30});T.extend(w.setTextStyle(V.style,g,{text:z}),this._monthTextPositionControl(k,A,a,d,o)),y.add(V)}}},_weekTextPositionControl:function(f,a,y,g,c){var o="center",d="middle",m=f[0],_=f[1],M=y==="start";return a==="horizontal"?(m=m+g+(M?1:-1)*c[0]/2,o=M?"right":"left"):(_=_+g+(M?1:-1)*c[1]/2,d=M?"bottom":"top"),{x:m,y:_,textAlign:o,textVerticalAlign:d}},_renderWeekText:function(f,a,y,g){var c=f.getModel("dayLabel");if(c.get("show")){var o=f.coordinateSystem,d=c.get("position"),m=c.get("nameMap"),_=c.get("margin"),M=o.getFirstDayOfWeek();T.isString(m)&&(m=t[m.toUpperCase()]||[]);var S=o.getNextNDay(a.end.time,7-a.lweek).time,A=[o.getCellWidth(),o.getCellHeight()];_=h.parsePercent(_,A[+(y!=="horizontal")]),d==="start"&&(S=o.getNextNDay(a.start.time,-(7+a.fweek)).time,_=-_);for(var I=0;I<7;I++){var k=o.getNextNDay(S,I),D=o.dataToRect([k.time],!1).center,L=I;L=Math.abs((I+M)%7);var R=new w.Text({z2:30});T.extend(w.setTextStyle(R.style,c,{text:m[L]}),this._weekTextPositionControl(D,y,d,_,A)),g.add(R)}}}})},41473:function(U,C,b){b(61977),b(19173),b(6418),b(90536),b(32429),b(63574),b(49676),b(36771),b(79398)},84392:function(U,C,b){var p=b(23405),T=b(54684),w=b(22255),e=p.each,h=T.asc,n=function(f,a,y,g){this._dimName=f,this._axisIndex=a,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=g,this._dataZoomModel=y};function t(f,a){var y=f.getAxisModel(),g=f._percentWindow,c=f._valueWindow;if(g){var o=T.getPixelPrecision(c,[0,500]);o=Math.min(o,20);var d=a||g[0]===0&&g[1]===100;y.setRange(d?null:+c[0].toFixed(o),d?null:+c[1].toFixed(o))}}n.prototype={constructor:n,hostedBy:function(f){return this._dataZoomModel===f},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var f=[],a=this.ecModel;return a.eachSeries(function(y){if(w.isCoordSupported(y.get("coordinateSystem"))){var g=this._dimName,c=a.queryComponents({mainType:g+"Axis",index:y.get(g+"AxisIndex"),id:y.get(g+"AxisId")})[0];this._axisIndex===(c&&c.componentIndex)&&f.push(y)}},this),f},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var f,a,y,g=this._dimName,c=this.ecModel,o=this.getAxisModel();return g==="x"||g==="y"?(a="gridIndex",f=g==="x"?"y":"x"):(a="polarIndex",f=g==="angle"?"radius":"angle"),c.eachComponent(f+"Axis",function(d){(d.get(a)||0)===(o.get(a)||0)&&(y=d)}),y},getMinMaxSpan:function(){return p.clone(this._minMaxSpan)},calculateDataWindow:function(f){var a=this._dataExtent,y=this.getAxisModel().axis.scale,g=this._dataZoomModel.getRangePropMode(),c=[0,100],o=[f.start,f.end],d=[];return e(["startValue","endValue"],function(m){d.push(f[m]!=null?y.parse(f[m]):null)}),e([0,1],function(m){var _=d[m],M=o[m];g[m]==="percent"?(M==null&&(M=c[m]),_=y.parse(T.linearMap(M,c,a,!0))):M=T.linearMap(_,a,c,!0),d[m]=_,o[m]=M}),{valueWindow:h(d),percentWindow:h(o)}},reset:function(f){if(f===this._dataZoomModel){var a,y,g,c,o,d,m,_,M,S,A,I,k,D=this.getTargetSeriesModels();this._dataExtent=(a=this,y=this._dimName,g=[1/0,-1/0],e(D,function(R){var O=R.getData();O&&e(O.mapDimension(y,!0),function(N){var z=O.getApproximateExtent(N);z[0]<g[0]&&(g[0]=z[0]),z[1]>g[1]&&(g[1]=z[1])})}),g[1]<g[0]&&(g=[NaN,NaN]),c=a,o=g,m=(d=c.getAxisModel()).getMin(!0),M=(_=d.get("type")==="category")&&d.getCategories().length,m!=null&&m!=="dataMin"&&typeof m!="function"?o[0]=m:_&&(o[0]=M>0?0:NaN),(S=d.getMax(!0))!=null&&S!=="dataMax"&&typeof S!="function"?o[1]=S:_&&(o[1]=M>0?M-1:NaN),!d.get("scale",!0)&&(o[0]>0&&(o[0]=0),o[1]<0&&(o[1]=0)),g);var L=this.calculateDataWindow(f.option);this._valueWindow=L.valueWindow,this._percentWindow=L.percentWindow,A=this,I=A._minMaxSpan={},k=A._dataZoomModel,e(["min","max"],function(R){I[R+"Span"]=k.get(R+"Span");var O=k.get(R+"ValueSpan");if(O!=null&&(I[R+"ValueSpan"]=O,(O=A.getAxisModel().axis.scale.parse(O))!=null)){var N=A._dataExtent;I[R+"Span"]=T.linearMap(N[0]+O,N,[0,100],!0)}}),t(this)}},restore:function(f){f===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,t(this,!0))},filterData:function(f,a){if(f===this._dataZoomModel){var y=this._dimName,g=this.getTargetSeriesModels(),c=f.get("filterMode"),o=this._valueWindow;c!=="none"&&e(g,function(d){var m=d.getData(),_=m.mapDimension(y,!0);_.length&&(c==="weakFilter"?m.filterSelf(function(M){for(var S,A,I,k=0;k<_.length;k++){var D=m.get(_[k],M),L=!isNaN(D),R=D<o[0],O=D>o[1];if(L&&!R&&!O)return!0;L&&(I=!0),R&&(S=!0),O&&(A=!0)}return I&&S&&A}):e(_,function(M){if(c==="empty")d.setData(m.map(M,function(A){var I;return(I=A)>=o[0]&&I<=o[1]?A:NaN}));else{var S={};S[M]=o,m.selectRange(S)}}),e(_,function(M){m.setApproximateExtent(o,M)}))})}}},U.exports=n},19173:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(23584),e=b(51064),h=b(22255),n=b(84392),t=T.each,f=h.eachAxisDim;function a(g){var c={};return t(["start","end","startValue","endValue","throttle"],function(o){g.hasOwnProperty(o)&&(c[o]=g[o])}),c}function y(g,c){var o=g._rangePropMode,d=g.get("rangeMode");t([["start","startValue"],["end","endValue"]],function(m,_){var M=c[m[0]]!=null,S=c[m[1]]!=null;M&&!S?o[_]="percent":!M&&S?o[_]="value":d?o[_]=d[_]:M&&(o[_]="percent")})}U.exports=p.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(g,c,o){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var d=a(g);this.mergeDefaultAndTheme(g,o),this.doInit(d)},mergeOption:function(g){var c=a(g);T.merge(this.option,g,!0),this.doInit(c)},doInit:function(g){var c=this.option;w.canvasSupported||(c.realtime=!1),this._setDefaultThrottle(g),y(this,g),t([["start","startValue"],["end","endValue"]],function(o,d){this._rangePropMode[d]==="value"&&(c[o[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var g=this._axisProxies;this.eachTargetAxis(function(c,o,d,m){var _=this.dependentModels[c.axis][o],M=_.__dzAxisProxy||(_.__dzAxisProxy=new n(c.name,o,this,m));g[c.name+"_"+o]=M},this)},_resetTarget:function(){var g=this.option,c=this._judgeAutoMode();f(function(o){var d=o.axisIndex;g[d]=e.normalizeToArray(g[d])},this),c==="axisIndex"?this._autoSetAxisIndex():c==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var g=this.option,c=!1;f(function(d){g[d.axisIndex]!=null&&(c=!0)},this);var o=g.orient;return o==null&&c?"orient":c?void 0:(o==null&&(g.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var g=!0,c=this.get("orient",!0),o=this.option,d=this.dependentModels;if(g){var m=c==="vertical"?"y":"x";d[m+"Axis"].length?(o[m+"AxisIndex"]=[0],g=!1):t(d.singleAxis,function(_){g&&_.get("orient",!0)===c&&(o.singleAxisIndex=[_.componentIndex],g=!1)})}g&&f(function(_){if(g){var M=[],S=this.dependentModels[_.axis];if(S.length&&!M.length)for(var A=0,I=S.length;A<I;A++)S[A].get("type")==="category"&&M.push(A);o[_.axisIndex]=M,M.length&&(g=!1)}},this),g&&this.ecModel.eachSeries(function(_){this._isSeriesHasAllAxesTypeOf(_,"value")&&f(function(M){var S=o[M.axisIndex],A=_.get(M.axisIndex),I=_.get(M.axisId);A=_.ecModel.queryComponents({mainType:M.axis,index:A,id:I})[0].componentIndex,0>T.indexOf(S,A)&&S.push(A)})},this)},_autoSetOrient:function(){var g;this.eachTargetAxis(function(c){g||(g=c.name)},this),this.option.orient=g==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(g,c){var o=!0;return f(function(d){var m=g.get(d.axisIndex),_=this.dependentModels[d.axis][m];_&&_.get("type")===c||(o=!1)},this),o},_setDefaultThrottle:function(g){if(g.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var c=this.ecModel.option;this.option.throttle=c.animation&&c.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var g;return f(function(c){if(g==null){var o=this.get(c.axisIndex);o.length&&(g=this.dependentModels[c.axis][o[0]])}},this),g},eachTargetAxis:function(g,c){var o=this.ecModel;f(function(d){t(this.get(d.axisIndex),function(m){g.call(c,d,m,this,o)},this)},this)},getAxisProxy:function(g,c){return this._axisProxies[g+"_"+c]},getAxisModel:function(g,c){var o=this.getAxisProxy(g,c);return o&&o.getAxisModel()},setRawRange:function(g,c){var o=this.option;t([["start","startValue"],["end","endValue"]],function(d){(g[d[0]]!=null||g[d[1]]!=null)&&(o[d[0]]=g[d[0]],o[d[1]]=g[d[1]])},this),c||y(this,g)},getPercentRange:function(){var g=this.findRepresentativeAxisProxy();if(g)return g.getDataPercentWindow()},getValueRange:function(g,c){if(g!=null||c!=null)return this.getAxisProxy(g,c).getDataValueWindow();var o=this.findRepresentativeAxisProxy();if(o)return o.getDataValueWindow()},findRepresentativeAxisProxy:function(g){if(g)return g.__dzAxisProxy;var c=this._axisProxies;for(var o in c)if(c.hasOwnProperty(o)&&c[o].hostedBy(this))return c[o];for(var o in c)if(c.hasOwnProperty(o)&&!c[o].hostedBy(this))return c[o]},getRangePropMode:function(){return this._rangePropMode.slice()}})},6418:function(U,C,b){U.exports=b(44152).extend({type:"dataZoom",render:function(p,T,w,e){this.dataZoomModel=p,this.ecModel=T,this.api=w},getTargetCoordInfo:function(){var p=this.dataZoomModel,T=this.ecModel,w={};return p.eachTargetAxis(function(e,h){var n=T.getComponent(e.axis,h);if(n){var t=n.getCoordSysModel();t&&function(f,a,y,g){for(var c,o=0;o<y.length;o++)if(y[o].model===f){c=y[o];break}c||y.push(c={model:f,axisModels:[],coordIndex:g}),c.axisModels.push(a)}(t,n,w[t.mainType]||(w[t.mainType]=[]),t.componentIndex)}},this),w}})},63574:function(U,C,b){U.exports=b(19173).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}})},49676:function(U,C,b){var p=b(23405),T=b(6418),w=b(2488),e=b(63798),h=p.bind,n=T.extend({type:"dataZoom.inside",init:function(y,g){this._range},render:function(y,g,c,o){n.superApply(this,"render",arguments),this._range=y.getPercentRange(),p.each(this.getTargetCoordInfo(),function(d,m){var _=p.map(d,function(M){return e.generateCoordId(M.model)});p.each(d,function(M){var S=M.model,A={};p.each(["pan","zoom","scrollMove"],function(I){A[I]=h(t[I],this,M,m)},this),e.register(c,{coordId:e.generateCoordId(S),allCoordIds:_,containsPoint:function(I,k,D){return S.coordinateSystem.containPoint([k,D])},dataZoomId:y.id,dataZoomModel:y,getRange:A})},this)},this)},dispose:function(){e.unregister(this.api,this.dataZoomModel.id),n.superApply(this,"dispose",arguments),this._range=null}}),t={zoom:function(y,g,c,o){var d=this._range,m=d.slice(),_=y.axisModels[0];if(_){var M=a[g](null,[o.originX,o.originY],_,c,y),S=(M.signal>0?M.pixelStart+M.pixelLength-M.pixel:M.pixel-M.pixelStart)/M.pixelLength*(m[1]-m[0])+m[0],A=Math.max(1/o.scale,0);m[0]=(m[0]-S)*A+S,m[1]=(m[1]-S)*A+S;var I=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(w(0,m,[0,100],0,I.minSpan,I.maxSpan),this._range=m,d[0]!==m[0]||d[1]!==m[1])return m}},pan:f(function(y,g,c,o,d,m){var _=a[o]([m.oldX,m.oldY],[m.newX,m.newY],g,d,c);return _.signal*(y[1]-y[0])*_.pixel/_.pixelLength}),scrollMove:f(function(y,g,c,o,d,m){return a[o]([0,0],[m.scrollDelta,m.scrollDelta],g,d,c).signal*(y[1]-y[0])*m.scrollDelta})};function f(y){return function(g,c,o,d){var m=this._range,_=m.slice(),M=g.axisModels[0];if(M&&(w(y(_,M,g,c,o,d),_,[0,100],"all"),this._range=_,m[0]!==_[0]||m[1]!==_[1]))return _}}var a={grid:function(y,g,c,o,d){var m=c.axis,_={},M=d.model.coordinateSystem.getRect();return y=y||[0,0],m.dim==="x"?(_.pixel=g[0]-y[0],_.pixelLength=M.width,_.pixelStart=M.x,_.signal=m.inverse?1:-1):(_.pixel=g[1]-y[1],_.pixelLength=M.height,_.pixelStart=M.y,_.signal=m.inverse?-1:1),_},polar:function(y,g,c,o,d){var m=c.axis,_={},M=d.model.coordinateSystem,S=M.getRadiusAxis().getExtent(),A=M.getAngleAxis().getExtent();return y=y?M.pointToCoord(y):[0,0],g=M.pointToCoord(g),c.mainType==="radiusAxis"?(_.pixel=g[0]-y[0],_.pixelLength=S[1]-S[0],_.pixelStart=S[0],_.signal=m.inverse?1:-1):(_.pixel=g[1]-y[1],_.pixelLength=A[1]-A[0],_.pixelStart=A[0],_.signal=m.inverse?-1:1),_},singleAxis:function(y,g,c,o,d){var m=c.axis,_=d.model.coordinateSystem.getRect(),M={};return y=y||[0,0],m.orient==="horizontal"?(M.pixel=g[0]-y[0],M.pixelLength=_.width,M.pixelStart=_.x,M.signal=m.inverse?1:-1):(M.pixel=g[1]-y[1],M.pixelLength=_.height,M.pixelStart=_.y,M.signal=m.inverse?-1:1),M}};U.exports=n},64858:function(U,C,b){U.exports=b(19173).extend({type:"dataZoom.select"})},8669:function(U,C,b){U.exports=b(6418).extend({type:"dataZoom.select"})},90536:function(U,C,b){U.exports=b(19173).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}})},32429:function(U,C,b){var p=b(23405),T=b(46427),w=b(51747),e=b(94127),h=b(6418),n=b(54684),t=b(62751),f=b(2488),a=w.Rect,y=n.linearMap,g=n.asc,c=p.bind,o=p.each,d="horizontal",m="vertical",_=["line","bar","candlestick","scatter"],M=h.extend({type:"dataZoom.slider",init:function(A,I){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=I},render:function(A,I,k,D){if(M.superApply(this,"render",arguments),e.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=A.get("orient"),this.dataZoomModel.get("show")===!1)return void this.group.removeAll();D&&D.type==="dataZoom"&&D.from===this.uid||this._buildView(),this._updateView()},remove:function(){M.superApply(this,"remove",arguments),e.clear(this,"_dispatchZoomAction")},dispose:function(){M.superApply(this,"dispose",arguments),e.clear(this,"_dispatchZoomAction")},_buildView:function(){var A=this.group;A.removeAll(),this._resetLocation(),this._resetInterval();var I=this._displayables.barGroup=new w.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),A.add(I),this._positionGroup()},_resetLocation:function(){var A=this.dataZoomModel,I=this.api,k=this._findCoordRect(),D={width:I.getWidth(),height:I.getHeight()},L=this._orient===d?{right:D.width-k.x-k.width,top:D.height-30-7,width:k.width,height:30}:{right:7,top:k.y,width:30,height:k.height},R=t.getLayoutParams(A.option);p.each(["right","top","width","height"],function(N){R[N]==="ph"&&(R[N]=L[N])});var O=t.getLayoutRect(R,D,A.padding);this._location={x:O.x,y:O.y},this._size=[O.width,O.height],this._orient===m&&this._size.reverse()},_positionGroup:function(){var A=this.group,I=this._location,k=this._orient,D=this.dataZoomModel.getFirstTargetAxisModel(),L=D&&D.get("inverse"),R=this._displayables.barGroup,O=(this._dataShadowInfo||{}).otherAxisInverse;R.attr(k!==d||L?k===d&&L?{scale:O?[-1,1]:[-1,-1]}:k!==m||L?{scale:O?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:O?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:O?[1,1]:[1,-1]});var N=A.getBoundingRect([R]);A.attr("position",[I.x-N.x,I.y-N.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var A=this.dataZoomModel,I=this._size,k=this._displayables.barGroup;k.add(new a({silent:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{fill:A.get("backgroundColor")},z2:-40})),k.add(new a({shape:{x:0,y:0,width:I[0],height:I[1]},style:{fill:"transparent"},z2:0,onclick:p.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var A,I=this._dataShadowInfo=this._prepareDataShadowInfo();if(I){var k=this._size,D=I.series,L=D.getRawData(),R=D.getShadowDim?D.getShadowDim():I.otherDim;if(R!=null){var O=L.getDataExtent(R),N=(O[1]-O[0])*.3;O=[O[0]-N,O[1]+N];var z=[0,k[1]],V=[0,k[0]],B=[[k[0],0],[0,0]],G=[],E=V[1]/(L.count()-1),H=0,W=Math.round(L.count()/k[0]);L.each([R],function(Z,Q){if(W>0&&Q%W){H+=E;return}var Y=Z==null||isNaN(Z)||Z==="",K=Y?0:y(Z,O,z,!0);Y&&!A&&Q?(B.push([B[B.length-1][0],0]),G.push([G[G.length-1][0],0])):!Y&&A&&(B.push([H,0]),G.push([H,0])),B.push([H,K]),G.push([H,K]),H+=E,A=Y});var $=this.dataZoomModel;this._displayables.barGroup.add(new w.Polygon({shape:{points:B},style:p.defaults({fill:$.get("dataBackgroundColor")},$.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new w.Polyline({shape:{points:G},style:$.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var A,I=this.dataZoomModel,k=I.get("showDataShadow");if(k!==!1){var D=this.ecModel;return I.eachTargetAxis(function(L,R){var O=I.getAxisProxy(L.name,R).getTargetSeriesModels();p.each(O,function(N){if(!A&&!(k!==!0&&0>p.indexOf(_,N.get("type")))){var z,V=D.getComponent(L.axis,R).axis,B={x:"y",y:"x",radius:"angle",angle:"radius"}[L.name],G=N.coordinateSystem;B!=null&&G.getOtherAxis&&(z=G.getOtherAxis(V).inverse),B=N.getData().mapDimension(B),A={thisAxis:V,series:N,thisDim:L.name,otherDim:B,otherAxisInverse:z}}},this)},this),A}},_renderHandle:function(){var A=this._displayables,I=A.handles=[],k=A.handleLabels=[],D=this._displayables.barGroup,L=this._size,R=this.dataZoomModel;D.add(A.filler=new a({draggable:!0,cursor:S(this._orient),drift:c(this._onDragMove,this,"all"),onmousemove:function(O){T.stop(O.event)},ondragstart:c(this._showDataInfo,this,!0),ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1),style:{fill:R.get("fillerColor"),textPosition:"inside"}})),D.add(new a(w.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:L[0],height:L[1]},style:{stroke:R.get("dataBackgroundColor")||R.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),o([0,1],function(O){var N=w.createIcon(R.get("handleIcon"),{cursor:S(this._orient),draggable:!0,drift:c(this._onDragMove,this,O),onmousemove:function(G){T.stop(G.event)},ondragend:c(this._onDragEnd,this),onmouseover:c(this._showDataInfo,this,!0),onmouseout:c(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),z=N.getBoundingRect();this._handleHeight=n.parsePercent(R.get("handleSize"),this._size[1]),this._handleWidth=z.width/z.height*this._handleHeight,N.setStyle(R.getModel("handleStyle").getItemStyle());var V=R.get("handleColor");V!=null&&(N.style.fill=V),D.add(I[O]=N);var B=R.textStyleModel;this.group.add(k[O]=new w.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:B.getTextColor(),textFont:B.getFont()},z2:10}))},this)},_resetInterval:function(){var A=this._range=this.dataZoomModel.getPercentRange(),I=this._getViewExtent();this._handleEnds=[y(A[0],[0,100],I,!0),y(A[1],[0,100],I,!0)]},_updateInterval:function(A,I){var k=this.dataZoomModel,D=this._handleEnds,L=this._getViewExtent(),R=k.findRepresentativeAxisProxy().getMinMaxSpan(),O=[0,100];f(I,D,L,k.get("zoomLock")?"all":A,R.minSpan!=null?y(R.minSpan,O,L,!0):null,R.maxSpan!=null?y(R.maxSpan,O,L,!0):null);var N=this._range,z=this._range=g([y(D[0],L,O,!0),y(D[1],L,O,!0)]);return!N||N[0]!==z[0]||N[1]!==z[1]},_updateView:function(A){var I=this._displayables,k=this._handleEnds,D=g(k.slice()),L=this._size;o([0,1],function(R){var O=I.handles[R],N=this._handleHeight;O.attr({scale:[N/2,N/2],position:[k[R],L[1]/2-N/2]})},this),I.filler.setShape({x:D[0],y:0,width:D[1]-D[0],height:L[1]}),this._updateDataInfo(A)},_updateDataInfo:function(A){var I=this.dataZoomModel,k=this._displayables,D=k.handleLabels,L=this._orient,R=["",""];if(I.get("showDetail")){var O=I.findRepresentativeAxisProxy();if(O){var N=O.getAxisModel().axis,z=this._range,V=A?O.calculateDataWindow({start:z[0],end:z[1]}).valueWindow:O.getDataValueWindow();R=[this._formatLabel(V[0],N),this._formatLabel(V[1],N)]}}var B=g(this._handleEnds.slice());function G(E){var H=w.getTransform(k.handles[E].parent,this.group),W=w.transformDirection(E===0?"right":"left",H),$=this._handleWidth/2+5,Z=w.applyTransform([B[E]+(E===0?-$:$),this._size[1]/2],H);D[E].setStyle({x:Z[0],y:Z[1],textVerticalAlign:L===d?"middle":W,textAlign:L===d?W:"center",text:R[E]})}G.call(this,0),G.call(this,1)},_formatLabel:function(A,I){var k=this.dataZoomModel,D=k.get("labelFormatter"),L=k.get("labelPrecision");(L==null||L==="auto")&&(L=I.getPixelPrecision());var R=A==null||isNaN(A)?"":I.type==="category"||I.type==="time"?I.scale.getLabel(Math.round(A)):A.toFixed(Math.min(L,20));return p.isFunction(D)?D(A,R):p.isString(D)?D.replace("{value}",R):R},_showDataInfo:function(A){A=this._dragging||A;var I=this._displayables.handleLabels;I[0].attr("invisible",!A),I[1].attr("invisible",!A)},_onDragMove:function(A,I,k){this._dragging=!0;var D=this._displayables.barGroup.getLocalTransform(),L=w.applyTransform([I,k],D,!0),R=this._updateInterval(A,L[0]),O=this.dataZoomModel.get("realtime");this._updateView(!O),R&&O&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction()},_onClickPanelClick:function(A){var I=this._size,k=this._displayables.barGroup.transformCoordToLocal(A.offsetX,A.offsetY);if(!(k[0]<0)&&!(k[0]>I[0])&&!(k[1]<0)&&!(k[1]>I[1])){var D=this._handleEnds,L=(D[0]+D[1])/2,R=this._updateInterval("all",k[0]-L);this._updateView(),R&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var A=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:A[0],end:A[1]})},_findCoordRect:function(){var A;if(o(this.getTargetCoordInfo(),function(D){if(!A&&D.length){var L=D[0].model.coordinateSystem;A=L.getRect&&L.getRect()}}),!A){var I=this.api.getWidth(),k=this.api.getHeight();A={x:.2*I,y:.2*k,width:.6*I,height:.6*k}}return A}});function S(A){return A==="vertical"?"ns-resize":"ew-resize"}U.exports=M},79398:function(U,C,b){var p=b(87930),T=b(23405),w=b(22255);p.registerAction("dataZoom",function(e,h){var n=w.createLinkedNodesFinder(T.bind(h.eachComponent,h,"dataZoom"),w.eachAxisDim,function(f,a){return f.get(a.axisIndex)}),t=[];h.eachComponent({mainType:"dataZoom",query:e},function(f,a){t.push.apply(t,n(f).nodes)}),T.each(t,function(f,a){f.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})},36771:function(U,C,b){var p=b(87930),T=b(23405),w=T.createHashMap,e=T.each;p.registerProcessor({getTargetSeries:function(h){var n=w();return h.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(f,a,y){e(y.getAxisProxy(f.name,a).getTargetSeriesModels(),function(g){n.set(g.uid,g)})})}),n},modifyOutputEnd:!0,overallReset:function(h,n){h.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(f,a,y){y.getAxisProxy(f.name,a).reset(y,n)}),t.eachTargetAxis(function(f,a,y){y.getAxisProxy(f.name,a).filterData(y,n)})}),h.eachComponent("dataZoom",function(t){var f=t.findRepresentativeAxisProxy(),a=f.getDataPercentWindow(),y=f.getDataValueWindow();t.setRawRange({start:a[0],end:a[1],startValue:y[0],endValue:y[1]},!0)})}})},22255:function(U,C,b){var p=b(23405),T=b(60653),w=["cartesian2d","polar","singleAxis"];function e(n,t){n=n.slice();var f=p.map(n,T.capitalFirst);t=(t||[]).slice();var a=p.map(t,T.capitalFirst);return function(y,g){p.each(n,function(c,o){for(var d={name:c,capital:f[o]},m=0;m<t.length;m++)d[t[m]]=c+a[m];y.call(g,d)})}}var h=e(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]);C.isCoordSupported=function(n){return p.indexOf(w,n)>=0},C.createNameEach=e,C.eachAxisDim=h,C.createLinkedNodesFinder=function(n,t,f){return function(y){var g,c={nodes:[],records:{}};if(t(function(d){c.records[d.name]={}}),!y)return c;a(y,c);do g=!1,n(o);while(g);function o(d){var m,_,M,S,A;m=d,_=c,!(p.indexOf(_.nodes,m)>=0)&&(M=d,S=c,A=!1,t(function(I){p.each(f(M,I)||[],function(k){S.records[I.name][k]&&(A=!0)})}),A)&&(a(d,c),g=!0)}return c};function a(y,g){g.nodes.push(y),t(function(c){p.each(f(y,c)||[],function(o){g.records[c.name][o]=!0})})}}},41153:function(U,C,b){var p=b(23405).each,T="\0_ec_hist_store";function w(e){var h=e[T];return h||(h=e[T]=[{}]),h}C.push=function(e,h){var n=w(e);p(h,function(t,f){for(var a=n.length-1;a>=0&&!n[a][f];a--);if(a<0){var y=e.queryComponents({mainType:"dataZoom",subType:"select",id:f})[0];if(y){var g=y.getPercentRange();n[0][f]={dataZoomId:f,start:g[0],end:g[1]}}}}),n.push(h)},C.pop=function(e){var h=w(e),n=h[h.length-1];h.length>1&&h.pop();var t={};return p(n,function(f,a){for(var y=h.length-1;y>=0;y--){var f=h[y][a];if(f){t[a]=f;break}}}),t},C.clear=function(e){e[T]=null},C.count=function(e){return w(e).length}},63798:function(U,C,b){var p=b(23405),T=b(55104),w=b(94127),e="\0_ec_dataZoom_roams";function h(f){var a=f.getZr();return a[e]||(a[e]={})}function n(f){p.each(f,function(a,y){a.count||(a.controller.dispose(),delete f[y])})}function t(f,a){f.dispatchAction({type:"dataZoom",batch:a})}C.register=function(f,a){var y,g,c,o,d,m,_,M,S=h(f),A=a.dataZoomId,I=a.coordId;p.each(S,function(L,R){var O=L.dataZoomInfos;O[A]&&0>p.indexOf(a.allCoordIds,I)&&(delete O[A],L.count--)}),n(S);var k=S[I];k||((k=S[I]={coordId:I,dataZoomInfos:{},count:0}).controller=(y=f,g=k,c=new T(y.getZr()),p.each(["pan","zoom","scrollMove"],function(L){c.on(L,function(R){var O=[];p.each(g.dataZoomInfos,function(N){if(R.isAvailableBehavior(N.dataZoomModel.option)){var z=(N.getRange||{})[L],V=z&&z(g.controller,R);!N.dataZoomModel.get("disabled",!0)&&V&&O.push({dataZoomId:N.dataZoomId,start:V[0],end:V[1]})}}),O.length&&g.dispatchAction(O)})}),c),k.dispatchAction=p.curry(t,f)),!k.dataZoomInfos[A]&&k.count++,k.dataZoomInfos[A]=a;var D=(o=k.dataZoomInfos,m="type_",_={type_true:2,type_move:1,type_false:0,type_undefined:-1},M=!0,p.each(o,function(L){var R=L.dataZoomModel,O=!R.get("disabled",!0)&&(!R.get("zoomLock",!0)||"move");_[m+O]>_[m+d]&&(d=O),M&=R.get("preventDefaultMouseMove",!0)}),{controlType:d,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!M}});k.controller.enable(D.controlType,D.opt),k.controller.setPointerChecker(a.containsPoint),w.createOrUpdate(k,"dispatchAction",a.dataZoomModel.get("throttle",!0),"fixRate")},C.unregister=function(f,a){var y=h(f);p.each(y,function(g){g.controller.dispose();var c=g.dataZoomInfos;c[a]&&(delete c[a],g.count--)}),n(y)},C.generateCoordId=function(f){return f.type+"\0_"+f.id}},61977:function(U,C,b){b(28628).registerSubTypeDefaulter("dataZoom",function(){return"slider"})},71101:function(U,C,b){b(61977),b(19173),b(6418),b(64858),b(8669),b(36771),b(79398)},22253:function(U,C,b){var p=b(28628),T=b(44152),w=b(52009).detectSourceFormat,e=b(24659).SERIES_LAYOUT_BY_COLUMN;p.extend({type:"dataset",defaultOption:{seriesLayoutBy:e,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){w(this)}}),T.extend({type:"dataset"})},50682:function(U,C,b){var p=b(87930),T=b(23405);function w(e,h){h.update="updateView",p.registerAction(h,function(n,t){var f={};return t.eachComponent({mainType:"geo",query:n},function(a){a[e](n.name);var y=a.coordinateSystem;T.each(y.regions,function(g){f[g.name]=a.isSelected(g.name)||!1})}),{selected:f,name:n.name}})}b(25684),b(87673),b(2524),b(65981),w("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),w("select",{type:"geoSelect",event:"geoselected"}),w("unSelect",{type:"geoUnSelect",event:"geounselected"})},2524:function(U,C,b){var p=b(90229);U.exports=b(87930).extendComponentView({type:"geo",init:function(T,w){var e=new p(w,!0);this._mapDraw=e,this.group.add(e.group)},render:function(T,w,e,h){if(!h||h.type!=="geoToggleSelect"||h.from!==this.uid){var n=this._mapDraw;T.get("show")?n.draw(T,w,e,this,h):this._mapDraw.group.removeAll(),this.group.silent=T.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}})},92576:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(51064),e=b(51747),h=b(62751);p.registerPreprocessor(function(y){var g=y.graphic;T.isArray(g)?g[0]&&g[0].elements?y.graphic=[y.graphic[0]]:y.graphic=[{elements:g}]:g&&!g.elements&&(y.graphic=[{elements:[g]}])});var n=p.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(y){var g=this.option.elements;this.option.elements=null,n.superApply(this,"mergeOption",arguments),this.option.elements=g},optionUpdated:function(y,g){var c=this.option,o=(g?c:y).elements,d=c.elements=g?[]:c.elements,m=[];this._flatten(o,m);var _=w.mappingToExists(d,m);w.makeIdAndName(_);var M=this._elOptionsToUpdate=[];T.each(_,function(A,I){var k,D,L,R,O,N,z,V,B=A.option;B&&(M.push(B),function(G,E){var H=G.exist;if(E.id=G.keyInfo.id,!E.type&&H&&(E.type=H.type),E.parentId==null){var W=E.parentOption;W?E.parentId=W.id:H&&(E.parentId=H.parentId)}E.parentOption=null}(A,B),k=d,D=I,L=B,R=T.extend({},L),O=k[D],(N=L.$action||"merge")==="merge"?O?(T.merge(O,R,!0),h.mergeLayoutParam(O,R,{ignoreSize:!0}),h.copyLayoutParams(L,O)):k[D]=R:N==="replace"?k[D]=R:N==="remove"&&O&&(k[D]=null),z=d[I],V=B,z&&(z.hv=V.hv=[a(V,["left","right"]),a(V,["top","bottom"])],z.type==="group"&&(z.width==null&&(z.width=V.width=0),z.height==null&&(z.height=V.height=0))))},this);for(var S=d.length-1;S>=0;S--)d[S]==null?d.splice(S,1):delete d[S].$action},_flatten:function(y,g,c){T.each(y,function(o){if(o){c&&(o.parentOption=c),g.push(o);var d=o.children;o.type==="group"&&d&&this._flatten(d,g,o),delete o.children}},this)},useElOptionsToUpdate:function(){var y=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,y}});function t(y,g,c,o){var d=c.type,m=new e[d.charAt(0).toUpperCase()+d.slice(1)](c);g.add(m),o.set(y,m),m.__ecGraphicId=y}function f(y,g){var c=y&&y.parent;c&&(y.type==="group"&&y.traverse(function(o){f(o,g)}),g.removeKey(y.__ecGraphicId),c.remove(y))}function a(y,g){var c;return T.each(g,function(o){y[o]!=null&&y[o]!=="auto"&&(c=!0)}),c}p.extendComponentView({type:"graphic",init:function(y,g){this._elMap=T.createHashMap(),this._lastGraphicModel},render:function(y,g,c){y!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=y,this._updateElements(y),this._relocate(y,c)},_updateElements:function(y){var g=y.useElOptionsToUpdate();if(g){var c=this._elMap,o=this.group;T.each(g,function(d){var m,_,M,S,A=d.$action,I=d.id,k=c.get(I),D=d.parentId,L=D!=null?c.get(D):o,R=d.style;d.type==="text"&&R&&(d.hv&&d.hv[1]&&(R.textVerticalAlign=R.textBaseline=null),!R.hasOwnProperty("textFill")&&R.fill&&(R.textFill=R.fill),!R.hasOwnProperty("textStroke")&&R.stroke&&(R.textStroke=R.stroke));var O=(m=d,m=T.extend({},m),T.each(["id","parentId","$action","hv","bounding"].concat(h.LOCATION_PARAMS),function(z){delete m[z]}),m);A&&A!=="merge"?A==="replace"?(f(k,c),t(I,L,O,c)):A==="remove"&&f(k,c):k?k.attr(O):t(I,L,O,c);var N=c.get(I);N&&(N.__ecGraphicWidth=d.width,N.__ecGraphicHeight=d.height,_=N,M=y,S=_.eventData,_.silent||_.ignore||S||(S=_.eventData={componentType:"graphic",componentIndex:M.componentIndex,name:_.name}),S&&(S.info=_.info))})}},_relocate:function(y,g){for(var c=y.option.elements,o=this.group,d=this._elMap,m=c.length-1;m>=0;m--){var _=c[m],M=d.get(_.id);if(M){var S=M.parent,A=S===o?{width:g.getWidth(),height:g.getHeight()}:{width:S.__ecGraphicWidth||0,height:S.__ecGraphicHeight||0};h.positionElement(M,_,A,null,{hv:_.hv,boundingMode:_.bounding})}}},_clear:function(){var y=this._elMap;y.each(function(g){f(g,y)}),this._elMap=T.createHashMap()},dispose:function(){this._clear()}})},93754:function(U,C,b){b(97035),b(55695),b(81819)},97035:function(U,C,b){var p=b(87930),T=b(23405),w=b(51747);b(72768),b(46637),p.extendComponentView({type:"grid",render:function(e,h){this.group.removeAll(),e.get("show")&&this.group.add(new w.Rect({shape:e.coordinateSystem.getRect(),style:T.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),p.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})},29006:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(62271),w=b(51747),e=b(5091),h=b(99018),n=p.curry,t=p.each,f=p.map,a=Math.min,y=Math.max,g=Math.pow,c="globalPan",o={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},d={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},m={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},_=0;function M(le){T.call(this),this._zr=le,this.group=new w.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+_++,this._handlers={},t(oe,function(ue,he){this._handlers[he]=p.bind(ue,this)},this)}function S(le,ue){var he=ge[ue.brushType].createCover(le,ue);return he.__brushOption=ue,k(he,ue),le.group.add(he),he}function A(le,ue){var he=L(ue);return he.endCreating&&(he.endCreating(le,ue),k(ue,ue.__brushOption)),ue}function I(le,ue){var he=ue.__brushOption;L(ue).updateCoverShape(le,ue,he.range,he)}function k(le,ue){var he=ue.z;he==null&&(he=1e4),le.traverse(function(pe){pe.z=he,pe.z2=he})}function D(le,ue){L(ue).updateCommon(le,ue),I(le,ue)}function L(le){return ge[le.__brushOption.brushType]}function R(le,ue,he){var pe,ye=le._panels;if(!ye)return!0;var ve=le._transform;return t(ye,function(Ae){Ae.isTargetByCursor(ue,he,ve)&&(pe=Ae)}),pe}function O(le,ue){var he=le._panels;if(!he)return!0;var pe=ue.__brushOption.panelId;return pe==null||he[pe]}function N(le){var ue=le._covers,he=ue.length;return t(ue,function(pe){le.group.remove(pe)},le),ue.length=0,!!he}function z(le,ue){var he=f(le._covers,function(pe){var ye=pe.__brushOption,ve=p.clone(ye.range);return{brushType:ye.brushType,panelId:ye.panelId,range:ve}});le.trigger("brush",he,{isEnd:!!ue.isEnd,removeOnClick:!!ue.removeOnClick})}function V(le){var ue=le.length-1;return ue<0&&(ue=0),[le[0],le[ue]]}function B(le,ue,he,pe){var ye=new w.Group;return ye.add(new w.Rect({name:"main",style:W(he),silent:!0,draggable:!0,cursor:"move",drift:n(le,ue,ye,"nswe"),ondragend:n(z,ue,{isEnd:!0})})),t(pe,function(ve){ye.add(new w.Rect({name:ve,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:n(le,ue,ye,ve),ondragend:n(z,ue,{isEnd:!0})}))}),ye}function G(le,ue,he,pe){var ye=pe.brushStyle.lineWidth||0,ve=y(ye,6),Ae=he[0][0],_e=he[1][0],Pe=Ae-ye/2,Oe=_e-ye/2,ke=he[0][1],De=he[1][1],Ce=ke-ve+ye/2,Le=De-ve+ye/2,Ve=ke-Ae,Ge=De-_e,Je=Ve+ye,rt=Ge+ye;H(le,ue,"main",Ae,_e,Ve,Ge),pe.transformable&&(H(le,ue,"w",Pe,Oe,ve,rt),H(le,ue,"e",Ce,Oe,ve,rt),H(le,ue,"n",Pe,Oe,Je,ve),H(le,ue,"s",Pe,Le,Je,ve),H(le,ue,"nw",Pe,Oe,ve,ve),H(le,ue,"ne",Ce,Oe,ve,ve),H(le,ue,"sw",Pe,Le,ve,ve),H(le,ue,"se",Ce,Le,ve,ve))}function E(le,ue){var he=ue.__brushOption,pe=he.transformable,ye=ue.childAt(0);ye.useStyle(W(he)),ye.attr({silent:!pe,cursor:pe?"move":"default"}),t(["w","e","n","s","se","sw","ne","nw"],function(ve){var Ae=ue.childOfName(ve),_e=function Pe(Oe,ke){if(ke.length>1){var De=[Pe(Oe,(ke=ke.split(""))[0]),Pe(Oe,ke[1])];return(De[0]==="e"||De[0]==="w")&&De.reverse(),De.join("")}var De=w.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[ke],w.getTransform(Oe.group));return{left:"w",right:"e",top:"n",bottom:"s"}[De]}(le,ve);Ae&&Ae.attr({silent:!pe,invisible:!pe,cursor:pe?d[_e]+"-resize":null})})}function H(le,ue,he,pe,ye,ve,Ae){var _e,Pe,Oe,ke=ue.childOfName(he);ke&&ke.setShape((Pe=a((_e=K(le,ue,[[pe,ye],[pe+ve,ye+Ae]]))[0][0],_e[1][0]),{x:Pe,y:Oe=a(_e[0][1],_e[1][1]),width:y(_e[0][0],_e[1][0])-Pe,height:y(_e[0][1],_e[1][1])-Oe}))}function W(le){return p.defaults({strokeNoScale:!0},le.brushStyle)}function $(le,ue,he,pe){var ye=[a(le,he),a(ue,pe)],ve=[y(le,he),y(ue,pe)];return[[ye[0],ve[0]],[ye[1],ve[1]]]}function Z(le,ue,he,pe,ye,ve,Ae,_e){var Pe=pe.__brushOption,Oe=le(Pe.range),ke=Y(he,ve,Ae);t(ye.split(""),function(De){var Ce=o[De];Oe[Ce[0]][Ce[1]]+=ke[Ce[0]]}),Pe.range=ue($(Oe[0][0],Oe[1][0],Oe[0][1],Oe[1][1])),D(he,pe),z(he,{isEnd:!1})}function Q(le,ue,he,pe,ye){var ve=ue.__brushOption.range,Ae=Y(le,he,pe);t(ve,function(_e){_e[0]+=Ae[0],_e[1]+=Ae[1]}),D(le,ue),z(le,{isEnd:!1})}function Y(le,ue,he){var pe=le.group,ye=pe.transformCoordToLocal(ue,he),ve=pe.transformCoordToLocal(0,0);return[ye[0]-ve[0],ye[1]-ve[1]]}function K(le,ue,he){var pe=O(le,ue);return pe&&pe!==!0?pe.clipPath(he,le._transform):p.clone(he)}function ne(le){var ue=le.event;ue.preventDefault&&ue.preventDefault()}function X(le,ue,he){return le.childOfName("main").contain(ue,he)}function ee(le,ue,he,pe){var ye,ve=le._creatingCover,Ae=le._creatingPanel,_e=le._brushOption;if(le._track.push(he.slice()),function(ke){var De=ke._track;if(!De.length)return!1;var Ce=De[De.length-1],Le=De[0],Ve=Ce[0]-Le[0],Ge=Ce[1]-Le[1];return g(Ve*Ve+Ge*Ge,.5)>6}(le)||ve){if(Ae&&!ve){_e.brushMode==="single"&&N(le);var Pe=p.clone(_e);Pe.brushType=ae(Pe.brushType,Ae),Pe.panelId=Ae===!0?null:Ae.panelId,ve=le._creatingCover=S(le,Pe),le._covers.push(ve)}if(ve){var Oe=ge[ae(le._brushType,Ae)];ve.__brushOption.range=Oe.getCreatingRange(K(le,ve,le._track)),pe&&(A(le,ve),Oe.updateCommon(le,ve)),I(le,ve),ye={isEnd:pe}}}else pe&&_e.brushMode==="single"&&_e.removeOnClick&&R(le,ue,he)&&N(le)&&(ye={isEnd:pe,removeOnClick:!0});return ye}function ae(le,ue){return le==="auto"?ue.defaultBrushType:le}M.prototype={constructor:M,enableBrush:function(le){var ue,he,pe,ye,ve;return this._brushType&&(ue=this,he=ue._zr,e.release(he,c,ue._uid),t(ue._handlers,function(Ae,_e){he.off(_e,Ae)}),ue._brushType=ue._brushOption=null),le.brushType&&(pe=this,ye=le,ve=pe._zr,pe._enableGlobalPan||e.take(ve,c,pe._uid),t(pe._handlers,function(Ae,_e){ve.on(_e,Ae)}),pe._brushType=ye.brushType,pe._brushOption=p.merge(p.clone(m),ye,!0)),this},setPanels:function(le){if(le&&le.length){var ue=this._panels={};p.each(le,function(he){ue[he.panelId]=p.clone(he)})}else this._panels=null;return this},mount:function(le){le=le||{},this._enableGlobalPan=le.enableGlobalPan;var ue=this.group;return this._zr.add(ue),ue.attr({position:le.position||[0,0],rotation:le.rotation||0,scale:le.scale||[1,1]}),this._transform=ue.getLocalTransform(),this},eachCover:function(le,ue){t(this._covers,le,ue)},updateCovers:function(le){le=p.map(le,function(_e){return p.merge(p.clone(m),_e,!0)});var ue=this._covers,he=this._covers=[],pe=this,ye=this._creatingCover;return new h(ue,le,function(_e,Pe){return ve(_e.__brushOption,Pe)},ve).add(Ae).update(Ae).remove(function(_e){ue[_e]!==ye&&pe.group.remove(ue[_e])}).execute(),this;function ve(_e,Pe){return(_e.id!=null?_e.id:"\0-brush-index-"+Pe)+"-"+_e.brushType}function Ae(_e,Pe){var Oe=le[_e];if(Pe!=null&&ue[Pe]===ye)he[_e]=ue[Pe];else{var ke=he[_e]=Pe!=null?(ue[Pe].__brushOption=Oe,ue[Pe]):A(pe,S(pe,Oe));D(pe,ke)}}},unmount:function(){return this.enableBrush(!1),N(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},p.mixin(M,T);var oe={mousedown:function(le){if(this._dragging)se.call(this,le);else if(!le.target||!le.target.draggable){ne(le);var ue=this.group.transformCoordToLocal(le.offsetX,le.offsetY);this._creatingCover=null,(this._creatingPanel=R(this,le,ue))&&(this._dragging=!0,this._track=[ue.slice()])}},mousemove:function(le){var ue=this.group.transformCoordToLocal(le.offsetX,le.offsetY);if(function(pe,ye,ve){if(pe._brushType){var Ae=pe._zr,_e=pe._covers,Pe=R(pe,ye,ve);if(!pe._dragging)for(var Oe=0;Oe<_e.length;Oe++){var ke=_e[Oe].__brushOption;if(Pe&&(Pe===!0||ke.panelId===Pe.panelId)&&ge[ke.brushType].contain(_e[Oe],ve[0],ve[1]))return}Pe&&Ae.setCursorStyle("crosshair")}}(this,le,ue),this._dragging){ne(le);var he=ee(this,le,ue,!1);he&&z(this,he)}},mouseup:se};function se(le){if(this._dragging){ne(le);var ue=this.group.transformCoordToLocal(le.offsetX,le.offsetY),he=ee(this,le,ue,!0);this._dragging=!1,this._track=[],this._creatingCover=null,he&&z(this,he)}}var ge={lineX:fe(0),lineY:fe(1),rect:{createCover:function(le,ue){return B(n(Z,function(he){return he},function(he){return he}),le,ue,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(le){var ue=V(le);return $(ue[1][0],ue[1][1],ue[0][0],ue[0][1])},updateCoverShape:function(le,ue,he,pe){G(le,ue,he,pe)},updateCommon:E,contain:X},polygon:{createCover:function(le,ue){var he=new w.Group;return he.add(new w.Polyline({name:"main",style:W(ue),silent:!0})),he},getCreatingRange:function(le){return le},endCreating:function(le,ue){ue.remove(ue.childAt(0)),ue.add(new w.Polygon({name:"main",draggable:!0,drift:n(Q,le,ue),ondragend:n(z,le,{isEnd:!0})}))},updateCoverShape:function(le,ue,he,pe){ue.childAt(0).setShape({points:K(le,ue,he)})},updateCommon:E,contain:X}};function fe(le){return{createCover:function(ue,he){return B(n(Z,function(pe){var ye=[pe,[0,100]];return le&&ye.reverse(),ye},function(pe){return pe[le]}),ue,he,[["w","e"],["n","s"]][le])},getCreatingRange:function(ue){var he=V(ue);return[a(he[0][le],he[1][le]),y(he[0][le],he[1][le])]},updateCoverShape:function(ue,he,pe,ye){var ve,Ae=O(ue,he);if(Ae!==!0&&Ae.getLinearBrushOtherExtent)ve=Ae.getLinearBrushOtherExtent(le,ue._transform);else{var _e=ue._zr;ve=[0,[_e.getWidth(),_e.getHeight()][1-le]]}var Pe=[pe,ve];le&&Pe.reverse(),G(ue,he,Pe,ye)},updateCommon:E,contain:X}}U.exports=M},76744:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(51747),w=b(51064),e=b(45498),h=p.each,n=p.indexOf,t=p.curry,f=["dataToPoint","pointToData"],a=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function y(D,L,R){var O=this._targetInfoList=[],N={},z=o(L,D);h(d,function(V,B){(!R||!R.include||n(R.include,B)>=0)&&V(z,O,N)})}var g=y.prototype;function c(D){return D[0]>D[1]&&D.reverse(),D}function o(D,L){return w.parseFinder(D,L,{includeMainTypes:a})}g.setOutputRanges=function(D,L){this.matchOutputRanges(D,L,function(R,O,N){if((R.coordRanges||(R.coordRanges=[])).push(O),!R.coordRange){R.coordRange=O;var z=M[R.brushType](0,N,O);R.__rangeOffset={offset:A[R.brushType](z.values,R.range,[1,1]),xyMinMax:z.xyMinMax}}})},g.matchOutputRanges=function(D,L,R){h(D,function(O){var N=this.findTargetInfo(O,L);N&&N!==!0&&p.each(N.coordSyses,function(z){var V=M[O.brushType](1,z,O.range);R(O,V.values,z,L)})},this)},g.setInputRanges=function(D,L){h(D,function(R){var O=this.findTargetInfo(R,L);if(R.range=R.range||[],O&&O!==!0){R.panelId=O.panelId;var N,z,V,B,G,E=M[R.brushType](0,O.coordSys,R.coordRange),H=R.__rangeOffset;R.range=H?A[R.brushType](E.values,H.offset,(N=E.xyMinMax,z=H.xyMinMax,V=k(N),B=k(z),isNaN((G=[V[0]/B[0],V[1]/B[1]])[0])&&(G[0]=1),isNaN(G[1])&&(G[1]=1),G)):E.values}},this)},g.makePanelOpts=function(D,L){return p.map(this._targetInfoList,function(R){var O=R.getPanelRect();return{panelId:R.panelId,defaultBrushType:L&&L(R),clipPath:e.makeRectPanelClipPath(O),isTargetByCursor:e.makeRectIsTargetByCursor(O,D,R.coordSysModel),getLinearBrushOtherExtent:e.makeLinearBrushOtherExtent(O)}})},g.controlSeries=function(D,L,R){var O=this.findTargetInfo(D,R);return O===!0||O&&n(O.coordSyses,L.coordinateSystem)>=0},g.findTargetInfo=function(D,L){for(var R=this._targetInfoList,O=o(L,D),N=0;N<R.length;N++){var z=R[N],V=D.panelId;if(V){if(z.panelId===V)return z}else for(var N=0;N<m.length;N++)if(m[N](O,z))return z}return!0};var d={grid:function(D,L){var R=D.xAxisModels,O=D.yAxisModels,N=D.gridModels,z=p.createHashMap(),V={},B={};(R||O||N)&&(h(R,function(G){var E=G.axis.grid.model;z.set(E.id,E),V[E.id]=!0}),h(O,function(G){var E=G.axis.grid.model;z.set(E.id,E),B[E.id]=!0}),h(N,function(G){z.set(G.id,G),V[G.id]=!0,B[G.id]=!0}),z.each(function(G){var E=G.coordinateSystem,H=[];h(E.getCartesians(),function(W,$){(n(R,W.getAxis("x").model)>=0||n(O,W.getAxis("y").model)>=0)&&H.push(W)}),L.push({panelId:"grid--"+G.id,gridModel:G,coordSysModel:G,coordSys:H[0],coordSyses:H,getPanelRect:_.grid,xAxisDeclared:V[G.id],yAxisDeclared:B[G.id]})}))},geo:function(D,L){h(D.geoModels,function(R){var O=R.coordinateSystem;L.push({panelId:"geo--"+R.id,geoModel:R,coordSysModel:R,coordSys:O,coordSyses:[O],getPanelRect:_.geo})})}},m=[function(D,L){var R=D.xAxisModel,O=D.yAxisModel,N=D.gridModel;return!N&&R&&(N=R.axis.grid.model),!N&&O&&(N=O.axis.grid.model),N&&N===L.gridModel},function(D,L){var R=D.geoModel;return R&&R===L.geoModel}],_={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var D=this.coordSys,L=D.getBoundingRect().clone();return L.applyTransform(T.getTransform(D)),L}},M={lineX:t(S,0),lineY:t(S,1),rect:function(D,L,R){var O=L[f[D]]([R[0][0],R[1][0]]),N=L[f[D]]([R[0][1],R[1][1]]),z=[c([O[0],N[0]]),c([O[1],N[1]])];return{values:z,xyMinMax:z}},polygon:function(D,L,R){var O=[[1/0,-1/0],[1/0,-1/0]];return{values:p.map(R,function(N){var z=L[f[D]](N);return O[0][0]=Math.min(O[0][0],z[0]),O[1][0]=Math.min(O[1][0],z[1]),O[0][1]=Math.max(O[0][1],z[0]),O[1][1]=Math.max(O[1][1],z[1]),z}),xyMinMax:O}}};function S(D,L,R,O){var N=R.getAxis(["x","y"][D]),z=c(p.map([0,1],function(B){return L?N.coordToData(N.toLocalCoord(O[B])):N.toGlobalCoord(N.dataToCoord(O[B]))})),V=[];return V[D]=z,V[1-D]=[NaN,NaN],{values:z,xyMinMax:V}}var A={lineX:t(I,0),lineY:t(I,1),rect:function(D,L,R){return[[D[0][0]-R[0]*L[0][0],D[0][1]-R[0]*L[0][1]],[D[1][0]-R[1]*L[1][0],D[1][1]-R[1]*L[1][1]]]},polygon:function(D,L,R){return p.map(D,function(O,N){return[O[0]-R[0]*L[N][0],O[1]-R[1]*L[N][1]]})}};function I(D,L,R,O){return[L[0]-O[D]*R[0],L[1]-O[D]*R[1]]}function k(D){return D?[D[0][1]-D[0][0],D[1][1]-D[1][0]]:[NaN,NaN]}U.exports=y},90229:function(U,C,b){var p=b(23405),T=b(55104),w=b(6463),e=b(11731).onIrrelevantElement,h=b(51747),n=b(96518),t=b(91342).getUID;function f(g,c){var o=g.getItemStyle(),d=g.get("areaColor");return d!=null&&(o.fill=d),o}function a(g,c){c.eachChild(function(o){p.each(o.__regions,function(d){o.trigger(g.isSelected(d.name)?"emphasis":"normal")})})}function y(g,c){var o=new h.Group;this.uid=t("ec_map_draw"),this._controller=new T(g.getZr()),this._controllerHost={target:c?o:null},this.group=o,this._updateGroup=c,this._mouseDownFlag,this._mapName,this._initialized,o.add(this._regionsGroup=new h.Group),o.add(this._backgroundGroup=new h.Group)}y.prototype={constructor:y,draw:function(g,c,o,d,m){var _,M=g.mainType==="geo",S=g.getData&&g.getData();M&&c.eachComponent({mainType:"series",subType:"map"},function(B){S||B.getHostGeoModel()!==g||(S=B.getData())});var A=g.coordinateSystem;this._updateBackground(A);var I=this._regionsGroup,k=this.group,D=A.scale,L={position:A.position,scale:D};!I.childAt(0)||m?k.attr(L):h.updateProps(k,L,g),I.removeAll();var R=["itemStyle"],O=["emphasis","itemStyle"],N=["label"],z=["emphasis","label"],V=p.createHashMap();p.each(A.regions,function(B){var G=V.get(B.name)||V.set(B.name,new h.Group),E=new h.CompoundPath({shape:{paths:[]}});G.add(E);var H=g.getRegionModel(B.name)||g,W=H.getModel(R),$=H.getModel(O),Z=f(W),Q=f($),Y=H.getModel(N),K=H.getModel(z);if(S){se=S.indexOfName(B.name);var ne=S.getItemVisual(se,"color",!0);ne&&(Z.fill=ne)}p.each(B.geometries,function(ue){if(ue.type==="polygon"){E.shape.paths.push(new h.Polygon({shape:{points:ue.exterior}}));for(var he=0;he<(ue.interiors?ue.interiors.length:0);he++)E.shape.paths.push(new h.Polygon({shape:{points:ue.interiors[he]}}))}}),E.setStyle(Z),E.style.strokeNoScale=!0,E.culling=!0;var X=Y.get("show"),ee=K.get("show"),ae=S&&isNaN(S.get(S.mapDimension("value"),se)),oe=S&&S.getItemLayout(se);if(M||ae&&(X||ee)||oe&&oe.showLabel){var se,ge,fe=M?B.name:se;(!S||se>=0)&&(ge=g);var le=new h.Text({position:B.center.slice(),scale:[1/D[0],1/D[1]],z2:10,silent:!0});h.setLabelStyle(le.style,le.hoverStyle={},Y,K,{labelFetcher:ge,labelDataIndex:fe,defaultText:B.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),G.add(le)}if(S)S.setItemGraphicEl(se,G);else{var H=g.getRegionModel(B.name);E.eventData={componentType:"geo",componentIndex:g.componentIndex,geoIndex:g.componentIndex,name:B.name,region:H&&H.option||{}}}(G.__regions||(G.__regions=[])).push(B),h.setHoverStyle(G,Q,{hoverSilentOnTouch:!!g.get("selectedMode")}),I.add(G)}),this._updateController(g,c,o),_=this,I.off("click"),I.off("mousedown"),g.get("selectedMode")&&(I.on("mousedown",function(){_._mouseDownFlag=!0}),I.on("click",function(B){if(_._mouseDownFlag){_._mouseDownFlag=!1;for(var G=B.target;!G.__regions;)G=G.parent;if(G){var E={type:(g.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:p.map(G.__regions,function(H){return{name:H.name,from:d.uid}})};E[g.mainType+"Id"]=g.id,o.dispatchAction(E),a(g,I)}}})),a(g,I)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&n.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(g){var c=g.map;this._mapName!==c&&p.each(n.makeGraphic(c,this.uid),function(o){this._backgroundGroup.add(o)},this),this._mapName=c},_updateController:function(g,c,o){var d=g.coordinateSystem,m=this._controller,_=this._controllerHost;_.zoomLimit=g.get("scaleLimit"),_.zoom=d.getZoom(),m.enable(g.get("roam")||!1);var M=g.mainType;function S(){var A={type:"geoRoam",componentType:M};return A[M+"Id"]=g.id,A}m.off("pan").on("pan",function(A){this._mouseDownFlag=!1,w.updateViewOnPan(_,A.dx,A.dy),o.dispatchAction(p.extend(S(),{dx:A.dx,dy:A.dy}))},this),m.off("zoom").on("zoom",function(A){if(this._mouseDownFlag=!1,w.updateViewOnZoom(_,A.scale,A.originX,A.originY),o.dispatchAction(p.extend(S(),{zoom:A.scale,originX:A.originX,originY:A.originY})),this._updateGroup){var I=this.group.scale;this._regionsGroup.traverse(function(k){k.type==="text"&&k.attr("scale",[1/I[0],1/I[1]])})}},this),m.setPointerChecker(function(A,I,k){return d.getViewRectAfterRoam().contain(I,k)&&!e(A,o,g)})}},U.exports=y},55104:function(U,C,b){var p=b(23405),T=b(62271),w=b(46427),e=b(5091);function h(d){this.pointerChecker,this._zr=d,this._opt={};var m=p.bind,_=m(n,this),M=m(t,this),S=m(f,this),A=m(a,this),I=m(y,this);T.call(this),this.setPointerChecker=function(k){this.pointerChecker=k},this.enable=function(k,D){this.disable(),this._opt=p.defaults(p.clone(D)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),k==null&&(k=!0),(k===!0||k==="move"||k==="pan")&&(d.on("mousedown",_),d.on("mousemove",M),d.on("mouseup",S)),(k===!0||k==="scale"||k==="zoom")&&(d.on("mousewheel",A),d.on("pinch",I))},this.disable=function(){d.off("mousedown",_),d.off("mousemove",M),d.off("mouseup",S),d.off("mousewheel",A),d.off("pinch",I)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function n(d){if(!w.isMiddleOrRightButtonOnMouseUpDown(d)&&(!d.target||!d.target.draggable)){var m=d.offsetX,_=d.offsetY;this.pointerChecker&&this.pointerChecker(d,m,_)&&(this._x=m,this._y=_,this._dragging=!0)}}function t(d){if(!(!this._dragging||!o("moveOnMouseMove",d,this._opt)||d.gestureEvent==="pinch"||e.isTaken(this._zr,"globalPan"))){var m=d.offsetX,_=d.offsetY,M=this._x,S=this._y;this._x=m,this._y=_,this._opt.preventDefaultMouseMove&&w.stop(d.event),c(this,"pan","moveOnMouseMove",d,{dx:m-M,dy:_-S,oldX:M,oldY:S,newX:m,newY:_})}}function f(d){w.isMiddleOrRightButtonOnMouseUpDown(d)||(this._dragging=!1)}function a(d){var m=o("zoomOnMouseWheel",d,this._opt),_=o("moveOnMouseWheel",d,this._opt),M=d.wheelDelta,S=Math.abs(M),A=d.offsetX,I=d.offsetY;if(M!==0&&(m||_)){if(m){var k=S>3?1.4:S>1?1.2:1.1;g(this,"zoom","zoomOnMouseWheel",d,{scale:M>0?k:1/k,originX:A,originY:I})}if(_){var D=Math.abs(M);g(this,"scrollMove","moveOnMouseWheel",d,{scrollDelta:(M>0?1:-1)*(D>3?.4:D>1?.15:.05),originX:A,originY:I})}}}function y(d){if(!e.isTaken(this._zr,"globalPan")){var m=d.pinchScale>1?1.1:.9090909090909091;g(this,"zoom",null,d,{scale:m,originX:d.pinchX,originY:d.pinchY})}}function g(d,m,_,M,S){d.pointerChecker&&d.pointerChecker(M,S.originX,S.originY)&&(w.stop(M.event),c(d,m,_,M,S))}function c(d,m,_,M,S){S.isAvailableBehavior=p.bind(o,null,_,M),d.trigger(m,S)}function o(d,m,_){var M=_[d];return!d||M&&(!p.isString(M)||m.event[M+"Key"])}p.mixin(h,T),U.exports=h},45498:function(U,C,b){var p=b(28761),T=b(11731).onIrrelevantElement,w=b(51747);function e(h){return p.create(h)}C.makeRectPanelClipPath=function(h){return h=e(h),function(n,t){return w.clipPointsByRect(n,h)}},C.makeLinearBrushOtherExtent=function(h,n){return h=e(h),function(t){var f=n??t,a=f?h.width:h.height,y=f?h.x:h.y;return[y,y+(a||0)]}},C.makeRectIsTargetByCursor=function(h,n,t){return h=e(h),function(f,a,y){return h.contain(a[0],a[1])&&!T(f,n,t)}}},11731:function(U,C){var b={axisPointer:1,tooltip:1,brush:1};C.onIrrelevantElement=function(p,T,w){var e=T.getComponentByElement(p.topTarget),h=e&&e.coordinateSystem;return e&&e!==w&&!b[e.mainType]&&h&&h.model!==w}},5091:function(U,C,b){var p=b(87930),T="\0_ec_interaction_mutex";function w(e){return e[T]||(e[T]={})}p.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),C.take=function(e,h,n){w(e)[h]=n},C.release=function(e,h,n){var t=w(e);t[h]===n&&(t[h]=null)},C.isTaken=function(e,h){return!!w(e)[h]}},40088:function(U,C,b){var p=b(62751),T=p.getLayoutRect,w=p.box,e=p.positionElement,h=b(60653),n=b(51747);C.layout=function(t,f,a){var y=f.getBoxLayoutParams(),g=f.get("padding"),c={width:a.getWidth(),height:a.getHeight()},o=T(y,c,g);w(f.get("orient"),t,f.get("itemGap"),o.width,o.height),e(t,y,c,g)},C.makeBackground=function(g,f){var a=h.normalizeCssArray(f.get("padding")),y=f.getItemStyle(["color","opacity"]);y.fill=f.get("backgroundColor");var g=new n.Rect({shape:{x:g.x-a[3],y:g.y-a[0],width:g.width+a[1]+a[3],height:g.height+a[0]+a[2],r:f.get("borderRadius")},style:y,silent:!0,z2:-1});return g}},6463:function(U,C){C.updateViewOnPan=function(b,p,T){var w=b.target,e=w.position;e[0]+=p,e[1]+=T,w.dirty()},C.updateViewOnZoom=function(b,p,T,w){var e=b.target,h=b.zoomLimit,n=e.position,t=e.scale,f=b.zoom=b.zoom||1;if(f*=p,h){var a=h.min||0;f=Math.max(Math.min(h.max||1/0,f),a)}var y=f/b.zoom;b.zoom=f,n[0]-=(T-n[0])*(y-1),n[1]-=(w-n[1])*(y-1),t[0]*=y,t[1]*=y,e.dirty()}},49214:function(U,C,b){var p=b(23405);U.exports={updateSelectedMap:function(T){this._targetList=p.isArray(T)?T.slice():[],this._selectTargetMap=p.reduce(T||[],function(w,e){return w.set(e.name,e),w},p.createHashMap())},select:function(T,w){var e=w!=null?this._targetList[w]:this._selectTargetMap.get(T);this.get("selectedMode")==="single"&&this._selectTargetMap.each(function(h){h.selected=!1}),e&&(e.selected=!0)},unSelect:function(T,w){var e=w!=null?this._targetList[w]:this._selectTargetMap.get(T);e&&(e.selected=!1)},toggleSelected:function(T,w){var e=w!=null?this._targetList[w]:this._selectTargetMap.get(T);if(e!=null)return this[e.selected?"unSelect":"select"](T,w),e.selected},isSelected:function(T,w){var e=w!=null?this._targetList[w]:this._selectTargetMap.get(T);return e&&e.selected}}},2488:function(U){function C(p,T){var w=p[T]-p[1-T];return{span:Math.abs(w),sign:w>0?-1:w<0?1:T?-1:1}}function b(p,T){return Math.min(T[1],Math.max(T[0],p))}U.exports=function(p,T,w,e,h,n){T[0]=b(T[0],w),T[1]=b(T[1],w),p=p||0;var t=w[1]-w[0];h!=null&&(h=b(h,[0,t])),n!=null&&(n=Math.max(n,h??0)),e==="all"&&(h=n=Math.abs(T[1]-T[0]),e=0);var f=C(T,e);T[e]+=p;var a=h||0,y=w.slice();f.sign<0?y[0]+=a:y[1]-=a,T[e]=b(T[e],y);var g=C(T,e);h!=null&&(g.sign!==f.sign||g.span<h)&&(T[1-e]=T[e]+f.sign*h);var g=C(T,e);return n!=null&&g.span>n&&(T[1-e]=T[e]+g.sign*n),T}},72498:function(U,C,b){var p=b(87930);b(75297),b(32603),b(71060);var T=b(4963),w=b(28628);p.registerProcessor(T),w.registerSubTypeDefaulter("legend",function(){return"plain"})},75297:function(U,C,b){var p=b(87930),T=b(23405),w=b(46082),e=b(51064).isNameSpecified,h=p.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(n,t,f){this.mergeDefaultAndTheme(n,f),n.selected=n.selected||{}},mergeOption:function(n){h.superCall(this,"mergeOption",n)},optionUpdated:function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var t=!1,f=0;f<n.length;f++){var a=n[f].get("name");if(this.isSelected(a)){this.select(a),t=!0;break}}t||this.select(n[0].get("name"))}},_updateData:function(n){var t=[],f=[];n.eachRawSeries(function(g){var c,o=g.name;if(f.push(o),g.legendDataProvider){var d=g.legendDataProvider(),m=d.mapArray(d.getName);n.isSeriesFiltered(g)||(f=f.concat(m)),m.length?t=t.concat(m):c=!0}else c=!0;c&&e(g)&&t.push(g.name)}),this._availableNames=f;var a=this.get("data")||t,y=T.map(a,function(g){return(typeof g=="string"||typeof g=="number")&&(g={name:g}),new w(g,this,this.ecModel)},this);this._data=y},getData:function(){return this._data},select:function(n){var t=this.option.selected;if(this.get("selectedMode")==="single"){var f=this._data;T.each(f,function(a){t[a.get("name")]=!1})}t[n]=!0},unSelect:function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},toggleSelected:function(n){var t=this.option.selected;t.hasOwnProperty(n)||(t[n]=!0),this[t[n]?"unSelect":"select"](n)},isSelected:function(n){var t=this.option.selected;return!(t.hasOwnProperty(n)&&!t[n])&&T.indexOf(this._availableNames,n)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});U.exports=h},71060:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(30696).createSymbol,e=b(51747),h=b(40088).makeBackground,n=b(62751),t=T.curry,f=T.each,a=e.Group;function y(o,d){d.dispatchAction({type:"legendToggleSelect",name:o})}function g(o,d,m,_){var M=m.getZr().storage.getDisplayList()[0];M&&M.useHoverLayer||m.dispatchAction({type:"highlight",seriesName:o,name:d,excludeSeriesId:_})}function c(o,d,m,_){var M=m.getZr().storage.getDisplayList()[0];M&&M.useHoverLayer||m.dispatchAction({type:"downplay",seriesName:o,name:d,excludeSeriesId:_})}U.exports=p.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new a),this._backgroundEl,this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},render:function(o,d,m){var _=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),o.get("show",!0)){var M=o.get("align");M&&M!=="auto"||(M=o.get("left")==="right"&&o.get("orient")==="vertical"?"right":"left"),this.renderInner(M,o,d,m);var S=o.getBoxLayoutParams(),A={width:m.getWidth(),height:m.getHeight()},I=o.get("padding"),k=n.getLayoutRect(S,A,I),D=this.layoutInner(o,M,k,_),L=n.getLayoutRect(T.defaults({width:D.width,height:D.height},S),A,I);this.group.attr("position",[L.x-D.x,L.y-D.y]),this.group.add(this._backgroundEl=h(D,o))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(o,d,m,_){var M=this.getContentGroup(),S=T.createHashMap(),A=d.get("selectedMode"),I=[];m.eachRawSeries(function(k){k.get("legendHoverLink")||I.push(k.id)}),f(d.getData(),function(k,D){var L=k.get("name");if(!this.newlineDisabled&&(L===""||L===`
`))return void M.add(new a({newline:!0}));var R=m.getSeriesByName(L)[0];if(!S.get(L))if(R){var O=R.getData(),N=O.getVisual("color");typeof N=="function"&&(N=N(R.getDataParams(0)));var z=O.getVisual("legendSymbol")||"roundRect",V=O.getVisual("symbol");this._createItem(L,D,k,d,z,V,o,N,A).on("click",t(y,L,_)).on("mouseover",t(g,R.name,null,_,I)).on("mouseout",t(c,R.name,null,_,I)),S.set(L,!0)}else m.eachRawSeries(function(B){if(!S.get(L)&&B.legendDataProvider){var G=B.legendDataProvider(),E=G.indexOfName(L);if(!(E<0)){var H=G.getItemVisual(E,"color");this._createItem(L,D,k,d,"roundRect",null,o,H,A).on("click",t(y,L,_)).on("mouseover",t(g,null,L,_,I)).on("mouseout",t(c,null,L,_,I)),S.set(L,!0)}}},this)},this)},_createItem:function(o,d,m,_,M,S,A,I,k){var D=_.get("itemWidth"),L=_.get("itemHeight"),R=_.get("inactiveColor"),O=_.get("symbolKeepAspect"),N=_.isSelected(o),z=new a,V=m.getModel("textStyle"),B=m.get("icon"),G=m.getModel("tooltip"),E=G.parentModel;if(M=B||M,z.add(w(M,0,0,D,L,N?I:R,O==null||O)),!B&&S&&(S!==M||S==="none")){var H=.8*L;S==="none"&&(S="circle"),z.add(w(S,(D-H)/2,(L-H)/2,H,H,N?I:R,O==null||O))}var W=_.get("formatter"),$=o;typeof W=="string"&&W?$=W.replace("{name}",o??""):typeof W=="function"&&($=W(o)),z.add(new e.Text({style:e.setTextStyle({},V,{text:$,x:A==="left"?D+5:-5,y:L/2,textFill:N?V.getTextColor():R,textAlign:A,textVerticalAlign:"middle"})}));var Z=new e.Rect({shape:z.getBoundingRect(),invisible:!0,tooltip:G.get("show")?T.extend({content:o,formatter:E.get("formatter",!0)||function(){return o},formatterParams:{componentType:"legend",legendIndex:_.componentIndex,name:o,$vars:["name"]}},G.option):null});return z.add(Z),z.eachChild(function(Q){Q.silent=!0}),Z.silent=!k,this.getContentGroup().add(z),e.setHoverStyle(z),z.__legendDataIndex=d,z},layoutInner:function(o,d,m){var _=this.getContentGroup();n.box(o.get("orient"),_,o.get("itemGap"),m.width,m.height);var M=_.getBoundingRect();return _.attr("position",[-M.x,-M.y]),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}})},37309:function(U,C,b){var p=b(75297),T=b(62751),w=T.mergeLayoutParam,e=T.getLayoutParams,h=p.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,f,a,y){var g=e(t);h.superCall(this,"init",t,f,a,y),n(this,t,g)},mergeOption:function(t,f){h.superCall(this,"mergeOption",t,f),n(this,this.option,t)},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}});function n(t,f,a){var y=t.getOrient(),g=[1,1];g[y.index]=0,w(f,a,{type:"box",ignoreSize:g})}U.exports=h},78553:function(U,C,b){var p=b(23405),T=b(51747),w=b(62751),e=b(71060),h=T.Group,n=["width","height"],t=["x","y"],f=e.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){f.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new h),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new h),this._showController},resetInner:function(){f.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(a,y,g,c){var o=this;f.superCall(this,"renderInner",a,y,g,c);var d=this._controllerGroup,m=y.get("pageIconSize",!0);p.isArray(m)||(m=[m,m]),M("pagePrev",0);var _=y.getModel("pageTextStyle");function M(S,A){var I=T.createIcon(y.get("pageIcons",!0)[y.getOrient().name][A],{onclick:p.bind(o._pageGo,o,S+"DataIndex",y,c)},{x:-m[0]/2,y:-m[1]/2,width:m[0],height:m[1]});I.name=S,d.add(I)}d.add(new T.Text({name:"pageText",style:{textFill:_.getTextColor(),font:_.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),M("pageNext",1)},layoutInner:function(a,y,g,c){var o=this.getContentGroup(),d=this._containerGroup,m=this._controllerGroup,_=a.getOrient().index,M=n[_],S=n[1-_],A=t[1-_];w.box(a.get("orient"),o,a.get("itemGap"),_?g.width:null,_?null:g.height),w.box("horizontal",m,a.get("pageButtonItemGap",!0));var I=o.getBoundingRect(),k=m.getBoundingRect(),D=this._showController=I[M]>g[M],L=[-I.x,-I.y];c||(L[_]=o.position[_]);var R=[0,0],O=[-k.x,-k.y],N=p.retrieve2(a.get("pageButtonGap",!0),a.get("itemGap",!0));D&&(a.get("pageButtonPosition",!0)==="end"?O[_]+=g[M]-k[M]:R[_]+=k[M]+N),O[1-_]+=I[S]/2-k[S]/2,o.attr("position",L),d.attr("position",R),m.attr("position",O);var z=(this.group.getBoundingRect(),{x:0,y:0});if(z[M]=D?g[M]:I[M],z[S]=Math.max(I[S],k[S]),z[A]=Math.min(0,k[A]+O[1-_]),d.__rectSize=g[M],D){var V={x:0,y:0};V[M]=Math.max(g[M]-k[M]-N,0),V[S]=z[S],d.setClipPath(new T.Rect({shape:V})),d.__rectSize=V[M]}else m.eachChild(function(G){G.attr({invisible:!0,silent:!0})});var B=this._getPageInfo(a);return B.pageIndex!=null&&T.updateProps(o,{position:B.contentPosition},!!D&&a),this._updatePageInfoView(a,B),z},_pageGo:function(a,y,g){var c=this._getPageInfo(y)[a];c!=null&&g.dispatchAction({type:"legendScroll",scrollDataIndex:c,legendId:y.id})},_updatePageInfoView:function(a,y){var g=this._controllerGroup;p.each(["pagePrev","pageNext"],function(M){var S=y[M+"DataIndex"]!=null,A=g.childOfName(M);A&&(A.setStyle("fill",S?a.get("pageIconColor",!0):a.get("pageIconInactiveColor",!0)),A.cursor=S?"pointer":"default")});var c=g.childOfName("pageText"),o=a.get("pageFormatter"),d=y.pageIndex,m=d!=null?d+1:0,_=y.pageCount;c&&o&&c.setStyle("text",p.isString(o)?o.replace("{current}",m).replace("{total}",_):o({current:m,total:_}))},_getPageInfo:function(a){var y=a.get("scrollDataIndex",!0),g=this.getContentGroup(),c=this._containerGroup.__rectSize,o=a.getOrient().index,d=n[o],m=t[o],_=this._findTargetItemIndex(y),M=g.children(),S=M[_],A=M.length,I=+!!A,k={contentPosition:g.position.slice(),pageCount:I,pageIndex:I-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!S)return k;var D=z(S);k.contentPosition[o]=-D.s;for(var L=_+1,R=D,O=D,N=null;L<=A;++L)(!(N=z(M[L]))&&O.e>R.s+c||N&&!V(N,R.s))&&(R=O.i>R.i?O:N)&&(k.pageNextDataIndex==null&&(k.pageNextDataIndex=R.i),++k.pageCount),O=N;for(var L=_-1,R=D,O=D,N=null;L>=-1;--L)(!(N=z(M[L]))||!V(O,N.s))&&R.i<O.i&&(O=R,k.pagePrevDataIndex==null&&(k.pagePrevDataIndex=R.i),++k.pageCount,++k.pageIndex),R=N;return k;function z(B){if(B){var G=B.getBoundingRect(),E=G[m]+B.position[o];return{s:E,e:E+G[d],i:B.__legendDataIndex}}}function V(B,G){return B.e>=G&&B.s<=G+c}},_findTargetItemIndex:function(a){var y,g=this.getContentGroup();return this._showController?g.eachChild(function(c,o){c.__legendDataIndex===a&&(y=o)}):y=0,y}});U.exports=f},32603:function(U,C,b){var p=b(87930),T=b(23405);function w(e,h,n){var t,f={},a=e==="toggleSelected";return n.eachComponent("legend",function(y){a&&t!=null?y[t?"select":"unSelect"](h.name):(y[e](h.name),t=y.isSelected(h.name));var g=y.getData();T.each(g,function(c){var o=c.get("name");if(o!==`
`&&o!==""){var d=y.isSelected(o);f.hasOwnProperty(o)?f[o]=f[o]&&d:f[o]=d}})}),{name:h.name,selected:f}}p.registerAction("legendToggleSelect","legendselectchanged",T.curry(w,"toggleSelected")),p.registerAction("legendSelect","legendselected",T.curry(w,"select")),p.registerAction("legendUnSelect","legendunselected",T.curry(w,"unSelect"))},4963:function(U){U.exports=function(C){var b=C.findComponents({mainType:"legend"});b&&b.length&&C.filterSeries(function(p){for(var T=0;T<b.length;T++)if(!b[T].isSelected(p.name))return!1;return!0})}},18644:function(U,C,b){b(87930).registerAction("legendScroll","legendscroll",function(p,T){var w=p.scrollDataIndex;w!=null&&T.eachComponent({mainType:"legend",subType:"scroll",query:p},function(e){e.setScrollDataIndex(w)})})},28838:function(U,C,b){b(72498),b(37309),b(78553),b(18644)},84290:function(U,C,b){var p=b(87930);b(27243),b(5338),p.registerPreprocessor(function(T){T.markArea=T.markArea||{}})},36570:function(U,C,b){var p=b(87930);b(58535),b(27808),p.registerPreprocessor(function(T){T.markLine=T.markLine||{}})},20361:function(U,C,b){var p=b(87930);b(50263),b(2695),p.registerPreprocessor(function(T){T.markPoint=T.markPoint||{}})},27243:function(U,C,b){U.exports=b(83296).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}})},5338:function(U,C,b){var p=b(23405),T=b(86049),w=b(80023),e=b(54684),h=b(51747),n=b(2733),t=b(13639),f=function(d,m,_,M){var S=n.dataTransform(d,M[0]),A=n.dataTransform(d,M[1]),I=p.retrieve,k=S.coord,D=A.coord;k[0]=I(k[0],-1/0),k[1]=I(k[1],-1/0),D[0]=I(D[0],1/0),D[1]=I(D[1],1/0);var L=p.mergeAll([{},S,A]);return L.coord=[S.coord,A.coord],L.x0=S.x,L.y0=S.y,L.x1=A.x,L.y1=A.y,L};function a(d){return!isNaN(d)&&!isFinite(d)}function y(d,m,_,M){var S=1-d;return a(m[S])&&a(_[S])}function g(d,m){var _=m.coord[0],M=m.coord[1];return!!(d.type==="cartesian2d"&&_&&M&&(y(1,_,M)||y(0,_,M)))||n.dataFilter(d,{coord:_,x:m.x0,y:m.y0})||n.dataFilter(d,{coord:M,x:m.x1,y:m.y1})}function c(d,m,_,M,S){var A,I=M.coordinateSystem,k=d.getItemModel(m),D=e.parsePercent(k.get(_[0]),S.getWidth()),L=e.parsePercent(k.get(_[1]),S.getHeight());if(isNaN(D)||isNaN(L)){if(M.getMarkerPosition)A=M.getMarkerPosition(d.getValues(_,m));else{var R=d.get(_[0],m),O=d.get(_[1],m),N=[R,O];I.clampData&&I.clampData(N,N),A=I.dataToPoint(N,!0)}if(I.type==="cartesian2d"){var z=I.getAxis("x"),V=I.getAxis("y"),R=d.get(_[0],m),O=d.get(_[1],m);a(R)?A[0]=z.toGlobalCoord(z.getExtent()[+(_[0]!=="x0")]):a(O)&&(A[1]=V.toGlobalCoord(V.getExtent()[+(_[1]!=="y0")]))}isNaN(D)||(A[0]=D),isNaN(L)||(A[1]=L)}else A=[D,L];return A}var o=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];t.extend({type:"markArea",updateTransform:function(d,m,_){m.eachSeries(function(M){var S=M.markAreaModel;if(S){var A=S.getData();A.each(function(I){var k=p.map(o,function(D){return c(A,I,D,M,_)});A.setItemLayout(I,k),A.getItemGraphicEl(I).setShape("points",k)})}},this)},renderSeries:function(d,m,_,M){var S,A,I,k,D,L,R,O=d.coordinateSystem,N=d.id,z=d.getData(),V=this.markerGroupMap,B=V.get(N)||V.set(N,{group:new h.Group});this.group.add(B.group),B.__keep=!0;var G=(S=O,A=d,I=m,S?(k=p.map(S&&S.dimensions,function(E){var H=A.getData(),W=H.getDimensionInfo(H.mapDimension(E))||{};return p.defaults({name:E},W)}),D=new w(p.map(["x0","y0","x1","y1"],function(E,H){return{name:E,type:k[H%2].type}}),I)):D=new w(k=[{name:"value",type:"float"}],I),L=p.map(I.get("data"),p.curry(f,A,S,I)),S&&(L=p.filter(L,p.curry(g,S))),R=S?function(E,H,W,$){return E.coord[Math.floor($/2)][$%2]}:function(E){return E.value},D.initData(L,null,R),D.hasItemOption=!0,D);m.setData(G),G.each(function(E){G.setItemLayout(E,p.map(o,function(H){return c(G,E,H,d,M)})),G.setItemVisual(E,{color:z.getVisual("color")})}),G.diff(B.__data).add(function(E){var H=new h.Polygon({shape:{points:G.getItemLayout(E)}});G.setItemGraphicEl(E,H),B.group.add(H)}).update(function(E,H){var W=B.__data.getItemGraphicEl(H);h.updateProps(W,{shape:{points:G.getItemLayout(E)}},m,E),B.group.add(W),G.setItemGraphicEl(E,W)}).remove(function(E){var H=B.__data.getItemGraphicEl(E);B.group.remove(H)}).execute(),G.eachItemGraphicEl(function(E,H){var W=G.getItemModel(H),$=W.getModel("label"),Z=W.getModel("emphasis.label"),Q=G.getItemVisual(H,"color");E.useStyle(p.defaults(W.getModel("itemStyle").getItemStyle(),{fill:T.modifyAlpha(Q,.4),stroke:Q})),E.hoverStyle=W.getModel("emphasis.itemStyle").getItemStyle(),h.setLabelStyle(E.style,E.hoverStyle,$,Z,{labelFetcher:m,labelDataIndex:H,defaultText:G.getName(H)||"",isRectText:!0,autoColor:Q}),h.setHoverStyle(E,{}),E.dataModel=m}),B.__data=G,B.group.silent=m.get("silent")||d.get("silent")}})},58535:function(U,C,b){U.exports=b(83296).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}})},27808:function(U,C,b){var p=b(23405),T=b(80023),w=b(54684),e=b(2733),h=b(61880),n=b(13639),t=function(c,o,d,m){var _=c.getData(),M=m.type;if(!p.isArray(m)&&(M==="min"||M==="max"||M==="average"||M==="median"||m.xAxis!=null||m.yAxis!=null)){if(m.yAxis!=null||m.xAxis!=null)S=m.yAxis!=null?"y":"x",o.getAxis(S),A=p.retrieve(m.yAxis,m.xAxis);else{var S,A,I=e.getAxisInfo(m,_,o,c);S=I.valueDataDim,I.valueAxis,A=e.numCalculate(_,S,M)}var k=+(S!=="x"),D=1-k,L=p.clone(m),R={};L.type=null,L.coord=[],R.coord=[],L.coord[D]=-1/0,R.coord[D]=1/0;var O=d.get("precision");O>=0&&typeof A=="number"&&(A=+A.toFixed(Math.min(O,20))),L.coord[k]=R.coord[k]=A,m=[L,R,{type:M,valueIndex:m.valueIndex,value:A}]}return(m=[e.dataTransform(c,m[0]),e.dataTransform(c,m[1]),p.extend({},m[2])])[2].type=m[2].type||"",p.merge(m[2],m[0]),p.merge(m[2],m[1]),m};function f(c){return!isNaN(c)&&!isFinite(c)}function a(c,o,d,m){var _=1-c,M=m.dimensions[c];return f(o[_])&&f(d[_])&&o[c]===d[c]&&m.getAxis(M).containData(o[c])}function y(c,o){if(c.type==="cartesian2d"){var d=o[0].coord,m=o[1].coord;if(d&&m&&(a(1,d,m,c)||a(0,d,m,c)))return!0}return e.dataFilter(c,o[0])&&e.dataFilter(c,o[1])}function g(c,o,d,m,_){var M,S=m.coordinateSystem,A=c.getItemModel(o),I=w.parsePercent(A.get("x"),_.getWidth()),k=w.parsePercent(A.get("y"),_.getHeight());if(isNaN(I)||isNaN(k)){if(m.getMarkerPosition)M=m.getMarkerPosition(c.getValues(c.dimensions,o));else{var D=S.dimensions,L=c.get(D[0],o),R=c.get(D[1],o);M=S.dataToPoint([L,R])}if(S.type==="cartesian2d"){var O=S.getAxis("x"),N=S.getAxis("y"),D=S.dimensions;f(c.get(D[0],o))?M[0]=O.toGlobalCoord(O.getExtent()[+!d]):f(c.get(D[1],o))&&(M[1]=N.toGlobalCoord(N.getExtent()[+!d]))}isNaN(I)||(M[0]=I),isNaN(k)||(M[1]=k)}else M=[I,k];c.setItemLayout(o,M)}U.exports=n.extend({type:"markLine",updateTransform:function(c,o,d){o.eachSeries(function(m){var _=m.markLineModel;if(_){var M=_.getData(),S=_.__from,A=_.__to;S.each(function(I){g(S,I,!0,m,d),g(A,I,!1,m,d)}),M.each(function(I){M.setItemLayout(I,[S.getItemLayout(I),A.getItemLayout(I)])}),this.markerGroupMap.get(m.id).updateLayout()}},this)},renderSeries:function(c,o,d,m){var _,M,S,A,I,k,D,L,R,O=c.coordinateSystem,N=c.id,z=c.getData(),V=this.markerGroupMap,B=V.get(N)||V.set(N,new h);this.group.add(B.group);var G=(_=O,M=c,S=o,I=new T(A=_?p.map(_&&_.dimensions,function(Y){var K=M.getData().getDimensionInfo(M.getData().mapDimension(Y))||{};return p.defaults({name:Y},K)}):[{name:"value",type:"float"}],S),k=new T(A,S),D=new T([],S),L=p.map(S.get("data"),p.curry(t,M,_,S)),_&&(L=p.filter(L,p.curry(y,_))),R=_?e.dimValueGetter:function(Y){return Y.value},I.initData(p.map(L,function(Y){return Y[0]}),null,R),k.initData(p.map(L,function(Y){return Y[1]}),null,R),D.initData(p.map(L,function(Y){return Y[2]})),D.hasItemOption=!0,{from:I,to:k,line:D}),E=G.from,H=G.to,W=G.line;o.__from=E,o.__to=H,o.setData(W);var $=o.get("symbol"),Z=o.get("symbolSize");function Q(Y,K,ne){var X=Y.getItemModel(K);g(Y,K,ne,c,m),Y.setItemVisual(K,{symbolSize:X.get("symbolSize")||Z[+!ne],symbol:X.get("symbol",!0)||$[+!ne],color:X.get("itemStyle.color")||z.getVisual("color")})}p.isArray($)||($=[$,$]),typeof Z=="number"&&(Z=[Z,Z]),G.from.each(function(Y){Q(E,Y,!0),Q(H,Y,!1)}),W.each(function(Y){var K=W.getItemModel(Y).get("lineStyle.color");W.setItemVisual(Y,{color:K||E.getItemVisual(Y,"color")}),W.setItemLayout(Y,[E.getItemLayout(Y),H.getItemLayout(Y)]),W.setItemVisual(Y,{fromSymbolSize:E.getItemVisual(Y,"symbolSize"),fromSymbol:E.getItemVisual(Y,"symbol"),toSymbolSize:H.getItemVisual(Y,"symbolSize"),toSymbol:H.getItemVisual(Y,"symbol")})}),B.updateData(W),G.line.eachItemGraphicEl(function(Y,K){Y.traverse(function(ne){ne.dataModel=o})}),B.__keep=!0,B.group.silent=o.get("silent")||c.get("silent")}})},50263:function(U,C,b){U.exports=b(83296).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}})},2695:function(U,C,b){var p=b(23405),T=b(83522),w=b(54684),e=b(80023),h=b(2733);function n(t,f,a){var y=f.coordinateSystem;t.each(function(g){var c,o=t.getItemModel(g),d=w.parsePercent(o.get("x"),a.getWidth()),m=w.parsePercent(o.get("y"),a.getHeight());if(isNaN(d)||isNaN(m)){if(f.getMarkerPosition)c=f.getMarkerPosition(t.getValues(t.dimensions,g));else if(y){var _=t.get(y.dimensions[0],g),M=t.get(y.dimensions[1],g);c=y.dataToPoint([_,M])}}else c=[d,m];isNaN(d)||(c[0]=d),isNaN(m)||(c[1]=m),t.setItemLayout(g,c)})}U.exports=b(13639).extend({type:"markPoint",updateTransform:function(t,f,a){f.eachSeries(function(y){var g=y.markPointModel;g&&(n(g.getData(),y,a),this.markerGroupMap.get(y.id).updateLayout(g))},this)},renderSeries:function(t,f,a,y){var g,c,o,d,m,_=t.coordinateSystem,M=t.id,S=t.getData(),A=this.markerGroupMap,I=A.get(M)||A.set(M,new T),k=(g=_,c=t,o=f,d=new e(g?p.map(g&&g.dimensions,function(D){var L=c.getData().getDimensionInfo(c.getData().mapDimension(D))||{};return p.defaults({name:D},L)}):[{name:"value",type:"float"}],o),m=p.map(o.get("data"),p.curry(h.dataTransform,c)),g&&(m=p.filter(m,p.curry(h.dataFilter,g))),d.initData(m,null,g?h.dimValueGetter:function(D){return D.value}),d);f.setData(k),n(f.getData(),t,y),k.each(function(D){var L=k.getItemModel(D),R=L.getShallow("symbolSize");typeof R=="function"&&(R=R(f.getRawValue(D),f.getDataParams(D))),k.setItemVisual(D,{symbolSize:R,color:L.get("itemStyle.color")||S.getVisual("color"),symbol:L.getShallow("symbol")})}),I.updateData(k),this.group.add(I.group),k.eachItemGraphicEl(function(D){D.traverse(function(L){L.dataModel=f})}),I.__keep=!0,I.group.silent=f.get("silent")||t.get("silent")}})},83296:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(23584),e=b(51064),h=b(60653),n=b(62369),t=h.addCommas,f=h.encodeHTML;function a(g){e.defaultEmphasis(g,"label",["show"])}var y=p.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(g,c,o,d){this.mergeDefaultAndTheme(g,o),this.mergeOption(g,o,d.createdBySelf,!0)},isAnimationEnabled:function(){if(w.node)return!1;var g=this.__hostSeries;return this.getShallow("animation")&&g&&g.isAnimationEnabled()},mergeOption:function(g,c,o,d){var m=this.constructor,_=this.mainType+"Model";o||c.eachSeries(function(M){var S=M.get(this.mainType,!0),A=M[_];if(!S||!S.data){M[_]=null;return}A?A.mergeOption(S,c,!0):(d&&a(S),T.each(S.data,function(I){I instanceof Array?(a(I[0]),a(I[1])):a(I)}),A=new m(S,this,c),T.extend(A,{mainType:this.mainType,seriesIndex:M.seriesIndex,name:M.name,createdBySelf:!0}),A.__hostSeries=M),M[_]=A},this)},formatTooltip:function(g){var c=this.getData(),o=this.getRawValue(g),d=T.isArray(o)?T.map(o,t).join(", "):t(o),m=c.getName(g),_=f(this.name);return(o!=null||m)&&(_+="<br />"),m&&(_+=f(m),o!=null&&(_+=" : ")),o!=null&&(_+=f(d)),_},getData:function(){return this._data},setData:function(g){this._data=g}});T.mixin(y,n),U.exports=y},13639:function(U,C,b){var p=b(87930),T=b(23405);U.exports=p.extendComponentView({type:"marker",init:function(){this.markerGroupMap=T.createHashMap()},render:function(w,e,h){var n=this.markerGroupMap;n.each(function(f){f.__keep=!1});var t=this.type+"Model";e.eachSeries(function(f){var a=f[t];a&&this.renderSeries(f,a,e,h)},this),n.each(function(f){f.__keep||this.group.remove(f.group)},this)},renderSeries:function(){}})},2733:function(U,C,b){var p=b(23405),T=b(54684),w=b(91968).isDimensionStacked,e=p.indexOf;function h(y,g,c,o,d,m){var _=[],M=w(g,o)?g.getCalculationInfo("stackResultDimension"):o,S=a(g,M,y),A=g.indicesOfNearest(M,S)[0];_[d]=g.get(c,A),_[m]=g.get(o,A);var I=T.getPrecision(g.get(o,A));return(I=Math.min(I,20))>=0&&(_[m]=+_[m].toFixed(I)),_}var n=p.curry,t={min:n(h,"min"),max:n(h,"max"),average:n(h,"average")};function f(y,g,c,o){var d={};return y.valueIndex!=null||y.valueDim!=null?(d.valueDataDim=y.valueIndex!=null?g.getDimension(y.valueIndex):y.valueDim,d.valueAxis=c.getAxis(function(m,_){var M=m.getData(),S=M.dimensions;_=M.getDimension(_);for(var A=0;A<S.length;A++){var I=M.getDimensionInfo(S[A]);if(I.name===_)return I.coordDim}}(o,d.valueDataDim)),d.baseAxis=c.getOtherAxis(d.valueAxis),d.baseDataDim=g.mapDimension(d.baseAxis.dim)):(d.baseAxis=o.getBaseAxis(),d.valueAxis=c.getOtherAxis(d.baseAxis),d.baseDataDim=g.mapDimension(d.baseAxis.dim),d.valueDataDim=g.mapDimension(d.valueAxis.dim)),d}function a(y,g,c){if(c==="average"){var o=0,d=0;return y.each(g,function(m,_){!isNaN(m)&&(o+=m,d++)}),o/d}return c==="median"?y.getMedian(g):y.getDataExtent(g,!0)[+(c==="max")]}C.dataTransform=function(y,g){var c,o=y.getData(),d=y.coordinateSystem;if(g&&!(!isNaN(parseFloat((c=g).x))&&!isNaN(parseFloat(c.y)))&&!p.isArray(g.coord)&&d){var m=d.dimensions,_=f(g,o,d,y);if((g=p.clone(g)).type&&t[g.type]&&_.baseAxis&&_.valueAxis){var M=e(m,_.baseAxis.dim),S=e(m,_.valueAxis.dim);g.coord=t[g.type](o,_.baseDataDim,_.valueDataDim,M,S),g.value=g.coord[S]}else{for(var A=[g.xAxis!=null?g.xAxis:g.radiusAxis,g.yAxis!=null?g.yAxis:g.angleAxis],I=0;I<2;I++)t[A[I]]&&(A[I]=a(o,o.mapDimension(m[I]),A[I]));g.coord=A}}return g},C.getAxisInfo=f,C.dataFilter=function(y,g){return!y||!y.containData||!g.coord||!(isNaN(parseFloat(g.x))&&isNaN(parseFloat(g.y)))||y.containData(g.coord)},C.dimValueGetter=function(y,g,c,o){return o<2?y.coord&&y.coord[o]:y.value},C.numCalculate=a},52420:function(U,C,b){var p=b(87930),T=b(23405),w=b(94127),e=b(71642);b(20694),b(97421),b(93592),p.extendComponentView({type:"parallel",render:function(t,f,a){this._model=t,this._api=a,this._handlers||(this._handlers={},T.each(h,function(y,g){a.getZr().on(g,this._handlers[g]=T.bind(y,this))},this)),w.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,f){T.each(this._handlers,function(a,y){f.getZr().off(y,a)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(T.extend({type:"parallelAxisExpand"},t))}});var h={mousedown:function(t){n(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var f=this._mouseDownPoint;if(n(this,"click")&&f){var a=[t.offsetX,t.offsetY];if(Math.pow(f[0]-a[0],2)+Math.pow(f[1]-a[1],2)>5)return;var y=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);y.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:y.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&n(this,"mousemove")){var f=this._model,a=f.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),y=a.behavior;y==="jump"&&this._throttledDispatchExpand.debounceNextCall(f.get("axisExpandDebounce")),this._throttledDispatchExpand(y==="none"?null:{axisExpandWindow:a.axisExpandWindow,animation:y==="jump"&&null})}}};function n(t,f){var a=t._model;return a.get("axisExpandable")&&a.get("axisExpandTriggerOn")===f}p.registerPreprocessor(e)},93592:function(U,C,b){b(20694),b(86997),b(94013)},30196:function(U,C,b){var p=b(87930),T=b(23405),w=b(63764);b(27246),b(90190),b(10802),b(81819),b(73005),p.registerLayout(T.curry(w,"bar")),p.extendComponentView({type:"polar"})},27614:function(U,C,b){b(6717),b(87775),b(91060)},91060:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(88010),e=b(51747),h=["axisLine","axisTickLabel","axisName"];U.exports=p.extendComponentView({type:"radar",render:function(n,t,f){this.group.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},_buildAxes:function(n){var t=n.coordinateSystem,f=t.getIndicatorAxes(),a=T.map(f,function(y){return new w(y.model,{position:[t.cx,t.cy],rotation:y.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});T.each(a,function(y){T.each(h,y.add,y),this.group.add(y.getGroup())},this)},_buildSplitLineAndArea:function(n){var t=n.coordinateSystem,f=t.getIndicatorAxes();if(f.length){var a=n.get("shape"),y=n.getModel("splitLine"),g=n.getModel("splitArea"),c=y.getModel("lineStyle"),o=g.getModel("areaStyle"),d=y.get("show"),m=g.get("show"),_=c.get("color"),M=o.get("color");_=T.isArray(_)?_:[_],M=T.isArray(M)?M:[M];var S=[],A=[];if(a==="circle")for(var I=f[0].getTicksCoords(),k=t.cx,D=t.cy,L=0;L<I.length;L++){if(d){var R=H(S,_,L);S[R].push(new e.Circle({shape:{cx:k,cy:D,r:I[L].coord}}))}if(m&&L<I.length-1){var R=H(A,M,L);A[R].push(new e.Ring({shape:{cx:k,cy:D,r0:I[L].coord,r:I[L+1].coord}}))}}else for(var O,N=T.map(f,function($,Z){var Q=$.getTicksCoords();return O=O==null?Q.length-1:Math.min(Q.length-1,O),T.map(Q,function(Y){return t.coordToPoint(Y.coord,Z)})}),z=[],L=0;L<=O;L++){for(var V=[],B=0;B<f.length;B++)V.push(N[B][L]);if(V[0]&&V.push(V[0].slice()),d){var R=H(S,_,L);S[R].push(new e.Polyline({shape:{points:V}}))}if(m&&z){var R=H(A,M,L-1);A[R].push(new e.Polygon({shape:{points:V.concat(z)}}))}z=V.slice().reverse()}var G=c.getLineStyle(),E=o.getAreaStyle();T.each(A,function(W,$){this.group.add(e.mergePath(W,{style:T.defaults({stroke:"none",fill:M[$%M.length]},E),silent:!0}))},this),T.each(S,function(W,$){this.group.add(e.mergePath(W,{style:T.defaults({fill:"none",stroke:_[$%_.length]},G),silent:!0}))},this)}function H(W,$,Z){var Q=Z%$.length;return W[Q]=W[Q]||[],Q}}})},10802:function(U,C,b){b(27246),b(34848)},11818:function(U,C,b){var p=b(87930);b(42200),b(67559),b(27252),b(81819),b(48102),p.extendComponentView({type:"single"})},56910:function(U,C,b){var p=b(87930),T=b(25203);b(32344),b(26828),b(4228),b(3120),p.registerPreprocessor(T)},4228:function(U,C,b){var p=b(23405),T=b(67091),w=b(62369),e=T.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});p.mixin(e,w),U.exports=e},3120:function(U,C,b){var p=b(23405),T=b(28761),w=b(79442),e=b(51747),h=b(62751),n=b(2163),t=b(84616),f=b(30696).createSymbol,a=b(51261),y=b(54684),g=b(60653).encodeHTML,c=p.bind,o=p.each,d=Math.PI;function m(M,S,A,I,k,D){var L=S.get("color");k?(k.setColor(L),A.add(k),D&&D.onUpdate(k)):((k=f(M.get("symbol"),-1,-1,2,2,L)).setStyle("strokeNoScale",!0),A.add(k),D&&D.onCreate(k));var R=S.getItemStyle(["color","symbol","symbolSize"]);k.setStyle(R),I=p.merge({rectHover:!0,z2:100},I,!0);var O=M.get("symbolSize");O=O instanceof Array?O.slice():[+O,+O],O[0]/=2,O[1]/=2,I.scale=O;var N=M.get("symbolOffset");if(N){var z=I.position=I.position||[0,0];z[0]+=y.parsePercent(N[0],O[0]),z[1]+=y.parsePercent(N[1],O[1])}var V=M.get("symbolRotate");return I.rotation=(V||0)*Math.PI/180||0,k.attr(I),k.updateTransform(),k}function _(M,S,A,I,k){if(!M.dragging){var D=I.getModel("checkpointStyle"),L=A.dataToCoord(I.getData().get(["value"],S));k||!D.get("animation",!0)?M.attr({position:[L,0]}):(M.stopAnimation(!0),M.animateTo({position:[L,0]},D.get("animationDuration",!0),D.get("animationEasing",!0)))}}U.exports=n.extend({type:"timeline.slider",init:function(M,S){this.api=S,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(M,S,A,I){if(this.model=M,this.api=A,this.ecModel=S,this.group.removeAll(),M.get("show",!0)){var k=this._layout(M,A),D=this._createGroup("mainGroup"),L=this._createGroup("labelGroup"),R=this._axis=this._createAxis(k,M);M.formatTooltip=function(O){return g(R.scale.getLabel(O))},o(["AxisLine","AxisTick","Control","CurrentPointer"],function(O){this["_render"+O](k,D,R,M)},this),this._renderAxisLabel(k,L,R,M),this._position(k,M)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(M,S){var A,I,k,D,L,R,O=M.get("label.position"),N=M.get("orient"),z=(A=M,I=S,h.getLayoutRect(A.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()},A.get("padding")));O==null||O==="auto"?O=N==="horizontal"?z.y+z.height/2<S.getHeight()/2?"-":"+":z.x+z.width/2<S.getWidth()/2?"+":"-":isNaN(O)&&(O={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[N][O]);var V={horizontal:"center",vertical:O>=0||O==="+"?"left":"right"},B={horizontal:O>=0||O==="+"?"top":"bottom",vertical:"middle"},G=N==="vertical"?z.height:z.width,E=M.getModel("controlStyle"),H=E.get("show",!0),W=H?E.get("itemSize"):0,$=H?E.get("itemGap"):0,Z=W+$,Q=M.get("label.rotate")||0;Q=Q*d/180;var Y=E.get("position",!0),K=H&&E.get("showPlayBtn",!0),ne=H&&E.get("showPrevBtn",!0),X=H&&E.get("showNextBtn",!0),ee=0,ae=G;return Y==="left"||Y==="bottom"?(K&&(k=[0,0],ee+=Z),ne&&(D=[ee,0],ee+=Z)):(K&&(k=[ae-W,0],ae-=Z),ne&&(D=[0,0],ee+=Z)),X&&(L=[ae-W,0],ae-=Z),R=[ee,ae],M.get("inverse")&&R.reverse(),{viewRect:z,mainLength:G,orient:N,rotation:{horizontal:0,vertical:d/2}[N],labelRotation:Q,labelPosOpt:O,labelAlign:M.get("label.align")||V[N],labelBaseline:M.get("label.verticalAlign")||M.get("label.baseline")||B[N],playPosition:k,prevBtnPosition:D,nextBtnPosition:L,axisExtent:R,controlSize:W,controlGap:$}},_position:function(M,S){var A=this._mainGroup,I=this._labelGroup,k=M.viewRect;if(M.orient==="vertical"){var D=w.create(),L=k.x,R=k.y+k.height;w.translate(D,D,[-L,-R]),w.rotate(D,D,-d/2),w.translate(D,D,[L,R]),(k=k.clone()).applyTransform(D)}var O=W(k),N=W(A.getBoundingRect()),z=W(I.getBoundingRect()),V=A.position,B=I.position;B[0]=V[0]=O[0][0];var G=M.labelPosOpt;if(isNaN(G)){var E=+(G!=="+");$(V,N,O,1,E),$(B,z,O,1,1-E)}else{var E=G>=0?0:1;$(V,N,O,1,E),B[1]=V[1]+G}function H(Z){var Q=Z.position;Z.origin=[O[0][0]-Q[0],O[1][0]-Q[1]]}function W(Z){return[[Z.x,Z.x+Z.width],[Z.y,Z.y+Z.height]]}function $(Z,Q,Y,K,ne){Z[K]+=Y[K][ne]-Q[K][ne]}A.attr("position",V),I.attr("position",B),A.rotation=I.rotation=M.rotation,H(A),H(I)},_createAxis:function(M,S){var A=S.getData(),I=S.get("axisType"),k=a.createScaleByModel(S,I);k.getTicks=function(){return A.mapArray(["value"],function(R){return R})};var D=A.getDataExtent("value");k.setExtent(D[0],D[1]),k.niceTicks();var L=new t("value",k,M.axisExtent,I);return L.model=S,L},_createGroup:function(M){var S=this["_"+M]=new e.Group;return this.group.add(S),S},_renderAxisLine:function(M,S,A,I){var k=A.getExtent();I.get("lineStyle.show")&&S.add(new e.Line({shape:{x1:k[0],y1:0,x2:k[1],y2:0},style:p.extend({lineCap:"round"},I.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(M,S,A,I){var k=I.getData();o(A.scale.getTicks(),function(D){var L=A.dataToCoord(D),R=k.getItemModel(D),O=R.getModel("itemStyle"),N=R.getModel("emphasis.itemStyle"),z=m(R,O,S,{position:[L,0],onclick:c(this._changeTimeline,this,D)});e.setHoverStyle(z,N.getItemStyle()),R.get("tooltip")?(z.dataIndex=D,z.dataModel=I):z.dataIndex=z.dataModel=null},this)},_renderAxisLabel:function(M,S,A,I){if(A.getLabelModel().get("show")){var k=I.getData();o(A.getViewLabels(),function(D){var L=D.tickValue,R=k.getItemModel(L),O=R.getModel("label"),N=R.getModel("emphasis.label"),z=A.dataToCoord(D.tickValue),V=new e.Text({position:[z,0],rotation:M.labelRotation-M.rotation,onclick:c(this._changeTimeline,this,L),silent:!1});e.setTextStyle(V.style,O,{text:D.formattedLabel,textAlign:M.labelAlign,textVerticalAlign:M.labelBaseline}),S.add(V),e.setHoverStyle(V,e.setTextStyle({},N))},this)}},_renderControl:function(M,S,A,I){var k=M.controlSize,D=M.rotation,L=I.getModel("controlStyle").getItemStyle(),R=I.getModel("emphasis.controlStyle").getItemStyle(),O=[0,-k/2,k,k],N=I.getPlayState(),z=I.get("inverse",!0);function V(B,G,E,H){if(B){var W,$,Z,Q,Y=(W=I,$=G,Z=O,Q={position:B,origin:[k/2,0],rotation:H?-D:0,rectHover:!0,style:L,onclick:E},e.makePath(W.get($).replace(/^path:\/\//,""),p.clone(Q||{}),new T(Z[0],Z[1],Z[2],Z[3]),"center"));S.add(Y),e.setHoverStyle(Y,R)}}V(M.nextBtnPosition,"controlStyle.nextIcon",c(this._changeTimeline,this,z?"-":"+")),V(M.prevBtnPosition,"controlStyle.prevIcon",c(this._changeTimeline,this,z?"+":"-")),V(M.playPosition,"controlStyle."+(N?"stopIcon":"playIcon"),c(this._handlePlayClick,this,!N),!0)},_renderCurrentPointer:function(M,S,A,I){var k=I.getData(),D=I.getCurrentIndex(),L=k.getItemModel(D).getModel("checkpointStyle"),R=this;this._currentPointer=m(L,L,this._mainGroup,{},this._currentPointer,{onCreate:function(O){O.draggable=!0,O.drift=c(R._handlePointerDrag,R),O.ondragend=c(R._handlePointerDragend,R),_(O,D,A,I,!0)},onUpdate:function(O){_(O,D,A,I)}})},_handlePlayClick:function(M){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:M,from:this.uid})},_handlePointerDrag:function(M,S,A){this._clearTimer(),this._pointerChangeTimeline([A.offsetX,A.offsetY])},_handlePointerDragend:function(M){this._pointerChangeTimeline([M.offsetX,M.offsetY],!0)},_pointerChangeTimeline:function(M,S){var A=this._toAxisCoord(M)[0],I=this._axis,k=y.asc(I.getExtent().slice());A>k[1]&&(A=k[1]),A<k[0]&&(A=k[0]),this._currentPointer.position[0]=A,this._currentPointer.dirty();var D=this._findNearestTick(A),L=this.model;(S||D!==L.getCurrentIndex()&&L.get("realtime"))&&this._changeTimeline(D)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(c(function(){var M=this.model;this._changeTimeline(M.getCurrentIndex()+(M.get("rewind",!0)?-1:1))},this),this.model.get("playInterval")))},_toAxisCoord:function(M){var S=this._mainGroup.getLocalTransform();return e.applyTransform(M,S,!0)},_findNearestTick:function(M){var S,A=this.model.getData(),I=1/0,k=this._axis;return A.each(["value"],function(D,L){var R=Math.abs(k.dataToCoord(D)-M);R<I&&(I=R,S=L)}),S},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(M){var S=this.model.getCurrentIndex();M==="+"?M=S+1:M==="-"&&(M=S-1),this.api.dispatchAction({type:"timelineChange",currentIndex:M,from:this.uid})}})},84616:function(U,C,b){var p=b(23405),T=b(7371),w=function(e,h,n,t){T.call(this,e,h,n),this.type=t||"value",this.model=null};w.prototype={constructor:w,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},p.inherits(w,T),U.exports=w},67091:function(U,C,b){var p=b(23405),T=b(28628),w=b(80023),e=b(51064),h=T.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(n,t,f){this._data,this._names,this.mergeDefaultAndTheme(n,f),this._initData()},mergeOption:function(n){h.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(n){n==null&&(n=this.option.currentIndex);var t=this._data.count();this.option.loop?n=(n%t+t)%t:(n>=t&&(n=t-1),n<0&&(n=0)),this.option.currentIndex=n},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(n){this.option.autoPlay=!!n},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var n=this.option,t=n.data||[],f=n.axisType,a=this._names=[];if(f==="category"){var y=[];p.each(t,function(g,c){var o,d=e.getDataItemValue(g);p.isObject(g)?(o=p.clone(g)).value=c:o=c,y.push(o),!p.isString(d)&&(d==null||isNaN(d))&&(d=""),a.push(d+"")}),t=y}(this._data=new w([{name:"value",type:{category:"ordinal",time:"time"}[f]||"number"}],this)).initData(t,a)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}});U.exports=h},2163:function(U,C,b){U.exports=b(44152).extend({type:"timeline"})},25203:function(U,C,b){var p=b(23405);function T(e){var h=e.itemStyle||(e.itemStyle={}),n=h.emphasis||(h.emphasis={}),t=e.label||e.label||{},f=t.normal||(t.normal={}),a={normal:1,emphasis:1};p.each(t,function(y,g){a[g]||w(f,g)||(f[g]=y)}),n.label&&!w(t,"emphasis")&&(t.emphasis=n.label,delete n.label)}function w(e,h){return e.hasOwnProperty(h)}U.exports=function(e){var h=e&&e.timeline;p.isArray(h)||(h=h?[h]:[]),p.each(h,function(n){n&&function(t){var f=t.type,a={number:"value",time:"time"};if(a[f]&&(t.axisType=a[f],delete t.type),T(t),w(t,"controlPosition")){var y=t.controlStyle||(t.controlStyle={});w(y,"position")||(y.position=t.controlPosition),y.position!=="none"||w(y,"show")||(y.show=!1,delete y.position),delete t.controlPosition}p.each(t.data||[],function(g){p.isObject(g)&&!p.isArray(g)&&(!w(g,"value")&&w(g,"name")&&(g.value=g.name),T(g))})}(n)})}},26828:function(U,C,b){var p=b(87930),T=b(23405);p.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(w,e){var h=e.getComponent("timeline");return h&&w.currentIndex!=null&&(h.setCurrentIndex(w.currentIndex),!h.get("loop",!0)&&h.isIndexMax()&&h.setPlayState(!1)),e.resetOption("timeline"),T.defaults({currentIndex:h.option.currentIndex},w)}),p.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(w,e){var h=e.getComponent("timeline");h&&w.playState!=null&&h.setPlayState(w.playState)})},32344:function(U,C,b){b(28628).registerSubTypeDefaulter("timeline",function(){return"slider"})},67215:function(U,C,b){var p=b(87930),T=b(51747),w=b(62751).getLayoutRect;p.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),p.extendComponentView({type:"title",render:function(e,h,n){if(this.group.removeAll(),e.get("show")){var t=this.group,f=e.getModel("textStyle"),a=e.getModel("subtextStyle"),y=e.get("textAlign"),g=e.get("textBaseline"),c=new T.Text({style:T.setTextStyle({},f,{text:e.get("text"),textFill:f.getTextColor()},{disableBox:!0}),z2:10}),o=c.getBoundingRect(),d=e.get("subtext"),m=new T.Text({style:T.setTextStyle({},a,{text:d,textFill:a.getTextColor(),y:o.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),_=e.get("link"),M=e.get("sublink"),S=e.get("triggerEvent",!0);c.silent=!_&&!S,m.silent=!M&&!S,_&&c.on("click",function(){window.open(_,"_"+e.get("target"))}),M&&m.on("click",function(){window.open(M,"_"+e.get("subtarget"))}),c.eventData=m.eventData=S?{componentType:"title",componentIndex:e.componentIndex}:null,t.add(c),d&&t.add(m);var A=t.getBoundingRect(),I=e.getBoxLayoutParams();I.width=A.width,I.height=A.height;var k=w(I,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));y||((y=e.get("left")||e.get("right"))==="middle"&&(y="center"),y==="right"?k.x+=k.width:y==="center"&&(k.x+=k.width/2)),g||((g=e.get("top")||e.get("bottom"))==="center"&&(g="middle"),g==="bottom"?k.y+=k.height:g==="middle"&&(k.y+=k.height/2),g=g||"top"),t.attr("position",[k.x,k.y]);var D={textAlign:y,textVerticalAlign:g};c.setStyle(D),m.setStyle(D),A=t.getBoundingRect();var L=k.margin,R=e.getItemStyle(["color","opacity"]);R.fill=e.get("backgroundColor");var O=new T.Rect({shape:{x:A.x-L[3],y:A.y-L[0],width:A.width+L[1]+L[3],height:A.height+L[0]+L[2],r:e.get("borderRadius")},style:R,silent:!0});T.subPixelOptimizeRect(O),t.add(O)}}})},21836:function(U,C,b){b(67381),b(41437),b(23760),b(4990),b(48683),b(39078),b(53989)},67381:function(U,C,b){var p=b(87930),T=b(23405),w=b(31525),e=p.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){e.superApply(this,"optionUpdated",arguments),T.each(this.option.feature,function(h,n){var t=w.get(n);t&&T.merge(h,t.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}});U.exports=e},41437:function(U,C,b){var p=b(87930),T=b(23405),w=b(24570),e=b(31525),h=b(51747),n=b(46082),t=b(99018),f=b(40088);U.exports=p.extendComponentView({type:"toolbox",render:function(a,y,g,c){var o=this.group;if(o.removeAll(),a.get("show")){var d=+a.get("itemSize"),m=a.get("feature")||{},_=this._features||(this._features={}),M=[];T.each(m,function(A,I){M.push(I)}),new t(this._featureNames||[],M).add(S).update(S).remove(T.curry(S,null)).execute(),this._featureNames=M,f.layout(o,a,g),o.add(f.makeBackground(o.getBoundingRect(),a)),o.eachChild(function(A){var I=A.__title,k=A.hoverStyle;if(k&&I){var D=w.getBoundingRect(I,w.makeFont(k)),L=A.position[0]+o.position[0],R=A.position[1]+o.position[1]+d,O=!1;R+D.height>g.getHeight()&&(k.textPosition="top",O=!0);var N=O?-5-D.height:d+8;L+D.width/2>g.getWidth()?(k.textPosition=["100%",N],k.textAlign="right"):L-D.width/2<0&&(k.textPosition=[0,N],k.textAlign="left")}})}function S(A,I){var k,D=M[A],L=M[I],R=new n(m[D],a,a.ecModel);if(D&&!L){if(D.indexOf("my")===0)k={model:R,onclick:R.option.onclick,featureName:D};else{var O=e.get(D);if(!O)return;k=new O(R,y,g)}_[D]=k}else{if(!(k=_[L]))return;k.model=R,k.ecModel=y,k.api=g}if(!D&&L){k.dispose&&k.dispose(y,g);return}if(!R.get("show")||k.unusable){k.remove&&k.remove(y,g);return}(function(N,z,V){var B=N.getModel("iconStyle"),G=N.getModel("emphasis.iconStyle"),E=z.getIcons?z.getIcons():N.get("icon"),H=N.get("title")||{};if(typeof E=="string"){var W=E,$=H;H={},(E={})[V]=W,H[V]=$}var Z=N.iconPaths={};T.each(E,function(Q,Y){var K=h.createIcon(Q,{},{x:-d/2,y:-d/2,width:d,height:d});K.setStyle(B.getItemStyle()),K.hoverStyle=G.getItemStyle(),h.setHoverStyle(K),a.get("showTitle")&&(K.__title=H[Y],K.on("mouseover",function(){var ne=G.getItemStyle();K.setStyle({text:H[Y],textPosition:ne.textPosition||"bottom",textFill:ne.fill||ne.stroke||"#000",textAlign:ne.textAlign||"center"})}).on("mouseout",function(){K.setStyle({textFill:null})})),K.trigger(N.get("iconStatus."+Y)||"normal"),o.add(K),K.on("click",T.bind(z.onclick,z,y,g,Y)),Z[Y]=K})})(R,k,D),R.setIconStatus=function(N,z){var V=this.option,B=this.iconPaths;V.iconStatus=V.iconStatus||{},V.iconStatus[N]=z,B[N]&&B[N].trigger(z)},k.render&&k.render(R,y,g,c)}},updateView:function(a,y,g,c){T.each(this._features,function(o){o.updateView&&o.updateView(o.model,y,g,c)})},remove:function(a,y){T.each(this._features,function(g){g.remove&&g.remove(a,y)}),this.group.removeAll()},dispose:function(a,y){T.each(this._features,function(g){g.dispose&&g.dispose(a,y)})}})},21318:function(U,C,b){var p=b(23405),T=b(31525),w=b(12414).toolbox.brush;function e(n,t,f){this.model=n,this.ecModel=t,this.api=f,this._brushType,this._brushMode}e.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:p.clone(w.title)};var h=e.prototype;h.render=h.updateView=function(n,t,f){var a,y,g;t.eachComponent({mainType:"brush"},function(c){a=c.brushType,y=c.brushOption.brushMode||"single",g|=c.areas.length}),this._brushType=a,this._brushMode=y,p.each(n.get("type",!0),function(c){n.setIconStatus(c,(c==="keep"?y==="multiple":c==="clear"?g:c===a)?"emphasis":"normal")})},h.getIcons=function(){var n=this.model,t=n.get("icon",!0),f={};return p.each(n.get("type",!0),function(a){t[a]&&(f[a]=t[a])}),f},h.onclick=function(n,t,f){var a=this._brushType,y=this._brushMode;f==="clear"?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:f==="keep"?a:a!==f&&f,brushMode:f==="keep"?y==="multiple"?"single":"multiple":y}})},T.register("brush",e),U.exports=e},48683:function(U,C,b){var p=b(87930),T=b(23405),w=b(46427),e=b(12414),h=b(31525),n=e.toolbox.dataView,t=Array(60).join("-");function f(g){return g.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var a=RegExp("[	]+","g");function y(g){this._dom=null,this.model=g}y.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:T.clone(n.title),lang:T.clone(n.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},y.prototype.onclick=function(g,c){var o,d,m,_,M,S,A,I=c.getDom(),k=this.model;this._dom&&I.removeChild(this._dom);var D=document.createElement("div");D.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",D.style.backgroundColor=k.get("backgroundColor")||"#fff";var L=document.createElement("h4"),R=k.get("lang")||[];L.innerHTML=R[0]||k.get("title"),L.style.cssText="margin: 10px 20px;",L.style.color=k.get("textColor");var O=document.createElement("div"),N=document.createElement("textarea");O.style.cssText="display:block;width:100%;overflow:auto;";var z=k.get("optionToContent"),V=k.get("contentToOption"),B=(A=(o={},d=[],m=[],g.eachRawSeries(function(K){var ne=K.coordinateSystem;if(ne&&(ne.type==="cartesian2d"||ne.type==="polar")){var X=ne.getBaseAxis();if(X.type==="category"){var ee=X.dim+"_"+X.index;o[ee]||(o[ee]={categoryAxis:X,valueAxis:ne.getOtherAxis(X),series:[]},m.push({axisDim:X.dim,axisIndex:X.index})),o[ee].series.push(K)}else d.push(K)}else d.push(K)}),{seriesGroupByCategoryAxis:o,other:d,meta:m}),{value:T.filter([(_=A.seriesGroupByCategoryAxis,M=[],T.each(_,function(K,ne){var X=K.categoryAxis,ee=K.valueAxis.dim,ae=[" "].concat(T.map(K.series,function(ue){return ue.name})),oe=[X.model.getCategories()];T.each(K.series,function(ue){oe.push(ue.getRawData().mapArray(ee,function(he){return he}))});for(var se=[ae.join("	")],ge=0;ge<oe[0].length;ge++){for(var fe=[],le=0;le<oe.length;le++)fe.push(oe[le][ge]);se.push(fe.join("	"))}M.push(se.join(`
`))}),M.join(`

`+t+`

`)),(S=A.other,T.map(S,function(K){var ne=K.getRawData(),X=[K.name],ee=[];return ne.each(ne.dimensions,function(){for(var ae=arguments.length,oe=arguments[ae-1],se=ne.getName(oe),ge=0;ge<ae-1;ge++)ee[ge]=arguments[ge];X.push((se?se+"	":"")+ee.join("	"))}),X.join(`
`)}).join(`

`+t+`

`))],function(K){return K.replace(/[\n\t\s]/g,"")}).join(`

`+t+`

`),meta:A.meta});if(typeof z=="function"){var G=z(c.getOption());typeof G=="string"?O.innerHTML=G:T.isDom(G)&&O.appendChild(G)}else O.appendChild(N),N.readOnly=k.get("readOnly"),N.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",N.style.color=k.get("textColor"),N.style.borderColor=k.get("textareaBorderColor"),N.style.backgroundColor=k.get("textareaColor"),N.value=B.value;var E=B.meta,H=document.createElement("div");H.style.cssText="position:absolute;bottom:0;left:0;right:0;";var W="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",$=document.createElement("div"),Z=document.createElement("div");W+=";background-color:"+k.get("buttonColor")+";color:"+k.get("buttonTextColor");var Q=this;function Y(){I.removeChild(D),Q._dom=null}w.addEventListener($,"click",Y),w.addEventListener(Z,"click",function(){var K,ne,X,ee;try{typeof V=="function"?K=V(O,c.getOption()):(ne=N.value,X=ne.split(RegExp(`
*`+t+`
*`,"g")),ee={series:[]},T.each(X,function(ae,oe){if(function(le){if(le.slice(0,le.indexOf(`
`)).indexOf("	")>=0)return!0}(ae)){var se=function(le){for(var ue=le.split(/\n+/g),he=f(ue.shift()).split(a),pe=[],ye=T.map(he,function(Pe){return{name:Pe,data:[]}}),ve=0;ve<ue.length;ve++){var Ae=f(ue[ve]).split(a);pe.push(Ae.shift());for(var _e=0;_e<Ae.length;_e++)ye[_e]&&(ye[_e].data[ve]=Ae[_e])}return{series:ye,categories:pe}}(ae),ge=E[oe],fe=ge.axisDim+"Axis";ge&&(ee[fe]=ee[fe]||[],ee[fe][ge.axisIndex]={data:se.categories},ee.series=ee.series.concat(se.series))}else{var se=function(ue){for(var he=ue.split(/\n+/g),pe=f(he.shift()),ye=[],ve=0;ve<he.length;ve++){var Ae,_e=f(he[ve]).split(a),Pe="",Oe=!1;isNaN(_e[0])?(Oe=!0,Pe=_e[0],_e=_e.slice(1),ye[ve]={name:Pe,value:[]},Ae=ye[ve].value):Ae=ye[ve]=[];for(var ke=0;ke<_e.length;ke++)Ae.push(+_e[ke]);Ae.length===1&&(Oe?ye[ve].value=Ae[0]:ye[ve]=Ae[0])}return{name:pe,data:ye}}(ae);ee.series.push(se)}}),K=ee)}catch(ae){throw Y(),Error("Data view format error "+ae)}K&&c.dispatchAction({type:"changeDataView",newOption:K}),Y()}),$.innerHTML=R[1],Z.innerHTML=R[2],Z.style.cssText=W,$.style.cssText=W,k.get("readOnly")||H.appendChild(Z),H.appendChild($),w.addEventListener(N,"keydown",function(K){if((K.keyCode||K.which)===9){var ne=this.value,X=this.selectionStart,ee=this.selectionEnd;this.value=ne.substring(0,X)+"	"+ne.substring(ee),this.selectionStart=this.selectionEnd=X+1,w.stop(K)}}),D.appendChild(L),D.appendChild(O),D.appendChild(H),O.style.height=I.clientHeight-80+"px",I.appendChild(D),this._dom=D},y.prototype.remove=function(g,c){this._dom&&c.getDom().removeChild(this._dom)},y.prototype.dispose=function(g,c){this.remove(g,c)},h.register("dataView",y),p.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(g,c){var o=[];T.each(g.newOption.series,function(d){var m=c.getSeriesByName(d.name)[0];if(m){var _,M=m.get("data");o.push({name:d.name,data:(_=d.data,T.map(_,function(S,A){var I=M&&M[A];return T.isObject(I)&&!T.isArray(I)?(T.isObject(S)&&!T.isArray(S)&&(S=S.value),T.defaults({value:S},I)):S}))})}else o.push(T.extend({type:"scatter"},d))}),c.mergeOption(T.defaults({series:o},g.newOption))}),U.exports=y},39078:function(U,C,b){var p=b(87930),T=b(23405),w=b(29006),e=b(76744),h=b(41153),n=b(2488),t=b(12414),f=b(31525);b(71101);var a=t.toolbox.dataZoom,y=T.each;function g(m,_,M){(this._brushController=new w(M.getZr())).on("brush",T.bind(this._onBrush,this)).mount(),this._isZoomActive}g.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:T.clone(a.title)};var c=g.prototype;c.render=function(m,_,M,S){var A,I,k,D,L,R,O,N,z;this.model=m,this.ecModel=_,this.api=M,A=m,I=_,k=this,D=S,L=M,R=k._isZoomActive,D&&D.type==="takeGlobalCursor"&&(R=D.key==="dataZoomSelect"&&D.dataZoomSelectActive),k._isZoomActive=R,A.setIconStatus("zoom",R?"emphasis":"normal"),O=new e(d(A.option),I,{include:["grid"]}),k._brushController.setPanels(O.makePanelOpts(L,function(V){return V.xAxisDeclared&&!V.yAxisDeclared?"lineX":!V.xAxisDeclared&&V.yAxisDeclared?"lineY":"rect"})).enableBrush(!!R&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}),N=m,z=_,N.setIconStatus("back",h.count(z)>1?"emphasis":"normal")},c.onclick=function(m,_,M){o[M].call(this)},c.remove=function(m,_){this._brushController.unmount()},c.dispose=function(m,_){this._brushController.dispose()};var o={zoom:function(){var m=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:m})},back:function(){this._dispatchZoomAction(h.pop(this.ecModel))}};function d(m){var _={};return T.each(["xAxisIndex","yAxisIndex"],function(M){_[M]=m[M],_[M]==null&&(_[M]="all"),(_[M]===!1||_[M]==="none")&&(_[M]=[])}),_}c._onBrush=function(m,_){if(_.isEnd&&m.length){var M={},S=this.ecModel;this._brushController.updateCovers([]),new e(d(this.model.option),S,{include:["grid"]}).matchOutputRanges(m,S,function(I,k,D){if(D.type==="cartesian2d"){var L=I.brushType;L==="rect"?(A("x",D,k[0]),A("y",D,k[1])):A({lineX:"x",lineY:"y"}[L],D,k)}}),h.push(S,M),this._dispatchZoomAction(M)}function A(I,k,D){var L,R,O,N=k.getAxis(I),z=N.model,V=(L=I,R=z,S.eachComponent({mainType:"dataZoom",subType:"select"},function(G){G.getAxisModel(L,R.componentIndex)&&(O=G)}),O),B=V.findRepresentativeAxisProxy(z).getMinMaxSpan();(B.minValueSpan!=null||B.maxValueSpan!=null)&&(D=n(0,D.slice(),N.scale.getExtent(),0,B.minValueSpan,B.maxValueSpan)),V&&(M[V.id]={dataZoomId:V.id,startValue:D[0],endValue:D[1]})}},c._dispatchZoomAction=function(m){var _=[];y(m,function(M,S){_.push(T.clone(M))}),_.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:_})},f.register("dataZoom",g),p.registerPreprocessor(function(m){if(m){var _=m.dataZoom||(m.dataZoom=[]);T.isArray(_)||(m.dataZoom=_=[_]);var M=m.toolbox;if(M&&(T.isArray(M)&&(M=M[0]),M&&M.feature)){var S=M.feature.dataZoom;A("xAxis",S),A("yAxis",S)}}function A(I,k){if(k){var D,L,R,O=I+"Index",N=k[O];N==null||N==="all"||T.isArray(N)||(N=N===!1||N==="none"?[]:[N]),D=I,L=function(z,V){if(N==null||N==="all"||T.indexOf(N,V)!==-1){var B={type:"select",$fromToolbox:!0,id:"\0_ec_\0toolbox-dataZoom_"+I+V};B[O]=V,_.push(B)}},R=m[D],T.isArray(R)||(R=R?[R]:[]),y(R,L)}}}),U.exports=g},4990:function(U,C,b){var p=b(87930),T=b(23405),w=b(12414),e=b(31525),h=w.toolbox.magicType;function n(y){this.model=y}n.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:T.clone(h.title),option:{},seriesIndex:{}};var t=n.prototype;t.getIcons=function(){var y=this.model,g=y.get("icon"),c={};return T.each(y.get("type"),function(o){g[o]&&(c[o]=g[o])}),c};var f={line:function(y,g,c,o){if(y==="bar")return T.merge({id:g,type:"line",data:c.get("data"),stack:c.get("stack"),markPoint:c.get("markPoint"),markLine:c.get("markLine")},o.get("option.line")||{},!0)},bar:function(y,g,c,o){if(y==="line")return T.merge({id:g,type:"bar",data:c.get("data"),stack:c.get("stack"),markPoint:c.get("markPoint"),markLine:c.get("markLine")},o.get("option.bar")||{},!0)},stack:function(y,g,c,o){if(y==="line"||y==="bar")return T.merge({id:g,stack:"__ec_magicType_stack__"},o.get("option.stack")||{},!0)},tiled:function(y,g,c,o){if(y==="line"||y==="bar")return T.merge({id:g,stack:""},o.get("option.tiled")||{},!0)}},a=[["line","bar"],["stack","tiled"]];t.onclick=function(y,g,c){var o=this.model,d=o.get("seriesIndex."+c);if(f[c]){var m={series:[]};T.each(a,function(_){T.indexOf(_,c)>=0&&T.each(_,function(M){o.setIconStatus(M,"normal")})}),o.setIconStatus(c,"emphasis"),y.eachComponent({mainType:"series",query:d==null?null:{seriesIndex:d}},function(_){var M=_.subType,S=_.id,A=f[c](M,S,_,o);A&&(T.defaults(A,_.option),m.series.push(A));var I=_.coordinateSystem;if(I&&I.type==="cartesian2d"&&(c==="line"||c==="bar")){var k=I.getAxesByScale("ordinal")[0];if(k){var D=k.dim+"Axis",L=y.queryComponents({mainType:D,index:_.get(name+"Index"),id:_.get(name+"Id")})[0].componentIndex;m[D]=m[D]||[];for(var R=0;R<=L;R++)m[D][L]=m[D][L]||{};m[D][L].boundaryGap=c==="bar"}}}),g.dispatchAction({type:"changeMagicType",currentType:c,newOption:m})}},p.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(y,g){g.mergeOption(y.newOption)}),e.register("magicType",n),U.exports=n},53989:function(U,C,b){var p=b(87930),T=b(41153),w=b(12414),e=b(31525);function h(n){this.model=n}h.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:w.toolbox.restore.title},h.prototype.onclick=function(n,t,f){T.clear(n),t.dispatchAction({type:"restore",from:this.uid})},e.register("restore",h),p.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,t){t.resetOption("recreate")}),U.exports=h},23760:function(U,C,b){var p=b(23584),T=b(12414),w=b(31525),e=T.toolbox.saveAsImage;function h(n){this.model=n}h.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:e.lang.slice()},h.prototype.unusable=!p.canvasSupported,h.prototype.onclick=function(n,t){var f=this.model,a=f.get("name")||n.get("title.0.text")||"echarts",y=document.createElement("a"),g=f.get("type",!0)||"png";y.download=a+"."+g,y.target="_blank";var c=t.getConnectedDataURL({type:g,backgroundColor:f.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",excludeComponents:f.get("excludeComponents"),pixelRatio:f.get("pixelRatio")});if(y.href=c,typeof MouseEvent!="function"||p.browser.ie||p.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var o=atob(c.split(",")[1]),d=o.length,m=new Uint8Array(d);d--;)m[d]=o.charCodeAt(d);var _=new Blob([m]);window.navigator.msSaveOrOpenBlob(_,a+"."+g)}else{var M=f.get("lang"),S='<body style="margin:0;"><img src="'+c+'" style="max-width:100%;" title="'+(M&&M[0]||"")+'" /></body>';window.open().document.write(S)}else{var A=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});y.dispatchEvent(A)}},w.register("saveAsImage",h),U.exports=h},31525:function(U,C){var b={};C.register=function(p,T){b[p]=T},C.get=function(p){return b[p]}},14723:function(U,C,b){var p=b(87930);b(81819),b(78929),b(32650),p.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),p.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},2121:function(U,C,b){var p=b(23405),T=b(86049),w=b(46427),e=b(23584),h=b(60653),n=p.each,t=h.toCamelCase,f=["","-webkit-","-moz-","-o-"];function a(y,g){if(e.wxa)return null;var c=document.createElement("div"),o=this._zr=g.getZr();this.el=c,this._x=g.getWidth()/2,this._y=g.getHeight()/2,y.appendChild(c),this._container=y,this._show=!1,this._hideTimeout;var d=this;c.onmouseenter=function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0},c.onmousemove=function(m){if(m=m||window.event,!d._enterable){var _=o.handler;w.normalizeEvent(y,m,!0),_.dispatch("mousemove",m)}},c.onmouseleave=function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1}}a.prototype={constructor:a,_enterable:!0,update:function(){var y=this._container,g=y.currentStyle||document.defaultView.getComputedStyle(y),c=y.style;c.position!=="absolute"&&g.position!=="absolute"&&(c.position="relative")},show:function(y){clearTimeout(this._hideTimeout);var g,c,o,d,m,_,M,S,A,I,k=this.el;k.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(g=[],c=y.get("transitionDuration"),o=y.get("backgroundColor"),d=y.getModel("textStyle"),m=y.get("padding"),c&&g.push((M="left "+c+"s "+(_="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+c+"s "+_,p.map(f,function(D){return D+"transition:"+M}).join(";"))),o&&(e.canvasSupported?g.push("background-Color:"+o):(g.push("background-Color:#"+T.toHex(o)),g.push("filter:alpha(opacity=70)"))),n(["width","color","radius"],function(D){var L="border-"+D,R=t(L),O=y.get(R);O!=null&&g.push(L+":"+O+(D==="color"?"":"px"))}),g.push((S=[],A=d.get("fontSize"),(I=d.getTextColor())&&S.push("color:"+I),S.push("font:"+d.getFont()),A&&S.push("line-height:"+Math.round(3*A/2)+"px"),n(["decoration","align"],function(D){var L=d.get(D);L&&S.push("text-"+D+":"+L)}),S.join(";"))),m!=null&&g.push("padding:"+h.normalizeCssArray(m).join("px ")+"px"),g.join(";")+";")+";left:"+this._x+"px;top:"+this._y+"px;"+(y.get("extraCssText")||""),k.style.display=k.innerHTML?"block":"none",k.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(y){this.el.innerHTML=y??""},setEnterable:function(y){this._enterable=y},getSize:function(){var y=this.el;return[y.clientWidth,y.clientHeight]},moveTo:function(y,g){var c,o=this._zr;o&&o.painter&&(c=o.painter.getViewportRootOffset())&&(y+=c.offsetLeft,g+=c.offsetTop);var d=this.el.style;d.left=y+"px",d.top=g+"px",this._x=y,this._y=g},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(y){this._show&&!(this._inContent&&this._enterable)&&(y?(this._hideDelay=y,this._show=!1,this._hideTimeout=setTimeout(p.bind(this.hide,this),y)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var y=this.el.clientWidth,g=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var c=document.defaultView.getComputedStyle(this.el);c&&(y+=parseInt(c.paddingLeft,10)+parseInt(c.paddingRight,10)+parseInt(c.borderLeftWidth,10)+parseInt(c.borderRightWidth,10),g+=parseInt(c.paddingTop,10)+parseInt(c.paddingBottom,10)+parseInt(c.borderTopWidth,10)+parseInt(c.borderBottomWidth,10))}return{width:y,height:g}}},U.exports=a},78929:function(U,C,b){U.exports=b(87930).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}})},77356:function(U,C,b){var p=b(23405),T=b(96296);function w(e){this._zr=e.getZr(),this._show=!1,this._hideTimeout}w.prototype={constructor:w,_enterable:!0,update:function(){},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,h,n){this.el&&this._zr.remove(this.el);for(var t={},f=e,a="{marker",y=f.indexOf(a);y>=0;){var g=f.indexOf("|}"),c=f.substr(y+a.length,g-y-a.length);c.indexOf("sub")>-1?t["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:h[c],textOffset:[3,0]}:t["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:h[c]},y=(f=f.substr(g+1)).indexOf("{marker")}this.el=new T({style:{rich:t,text:e,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var o=this;this.el.on("mouseover",function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0}),this.el.on("mouseout",function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1})},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,h){this.el&&this.el.attr("position",[e,h])},hide:function(){this.el.hide(),this._show=!1},hideLater:function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(p.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}},U.exports=w},32650:function(U,C,b){var p=b(87930),T=b(23405),w=b(23584),e=b(2121),h=b(77356),n=b(60653),t=b(54684),f=b(51747),a=b(2885),y=b(62751),g=b(46082),c=b(46357),o=b(51261),d=b(84908),m=b(51064).getTooltipRenderMode,_=T.bind,M=T.each,S=t.parsePercent,A=new f.Rect({shape:{x:-1,y:-1,width:2,height:2}});function I(L){for(var R=L.pop();L.length;){var O=L.pop();O&&(g.isInstance(O)&&(O=O.get("tooltip",!0)),typeof O=="string"&&(O={formatter:O}),R=new g(O,R,R.ecModel))}return R}function k(L,R){return L.dispatchAction||T.bind(R.dispatchAction,R)}function D(L){return L==="center"||L==="middle"}U.exports=p.extendComponentView({type:"tooltip",init:function(L,R){if(!w.node){var O,N=L.getComponent("tooltip").get("renderMode");this._renderMode=m(N),this._renderMode==="html"?(O=new e(R.getDom(),R),this._newLine="<br/>"):(O=new h(R),this._newLine=`
`),this._tooltipContent=O}},render:function(L,R,O){if(!w.node){this.group.removeAll(),this._tooltipModel=L,this._ecModel=R,this._api=O,this._lastDataByCoordSys=null,this._alwaysShowContent=L.get("alwaysShowContent");var N=this._tooltipContent;N.update(),N.setEnterable(L.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var L=this._tooltipModel.get("triggerOn");c.register("itemTooltip",this._api,_(function(R,O,N){L!=="none"&&(L.indexOf(R)>=0?this._tryShow(O,N):R==="leave"&&this._hide(N))},this))},_keepShow:function(){var L=this._tooltipModel,R=this._ecModel,O=this._api;if(this._lastX!=null&&this._lastY!=null&&L.get("triggerOn")!=="none"){var N=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){N.manuallyShowTip(L,R,O,{x:N._lastX,y:N._lastY})})}},manuallyShowTip:function(L,R,O,N){if(N.from!==this.uid&&!w.node){var z=k(N,O);this._ticket="";var V=N.dataByCoordSys;if(N.tooltip&&N.x!=null&&N.y!=null)A.position=[N.x,N.y],A.update(),A.tooltip=N.tooltip,this._tryShow({offsetX:N.x,offsetY:N.y,target:A},z);else if(V)this._tryShow({offsetX:N.x,offsetY:N.y,position:N.position,event:{},dataByCoordSys:N.dataByCoordSys,tooltipOption:N.tooltipOption},z);else if(N.seriesIndex!=null){if(this._manuallyAxisShowTip(L,R,O,N))return;var B=a(N,R),G=B.point[0],E=B.point[1];G!=null&&E!=null&&this._tryShow({offsetX:G,offsetY:E,position:N.position,target:B.el,event:{}},z)}else N.x!=null&&N.y!=null&&(O.dispatchAction({type:"updateAxisPointer",x:N.x,y:N.y}),this._tryShow({offsetX:N.x,offsetY:N.y,position:N.position,target:O.getZr().findHover(N.x,N.y).target,event:{}},z))}},manuallyHideTip:function(L,R,O,N){var z=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&z.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,N.from!==this.uid&&this._hide(k(N,O))},_manuallyAxisShowTip:function(L,R,O,N){var z=N.seriesIndex,V=N.dataIndex,B=R.getComponent("axisPointer").coordSysAxesInfo;if(z!=null&&V!=null&&B!=null){var G=R.getSeriesByIndex(z);if(G){var L=I([G.getData().getItemModel(V),G,(G.coordinateSystem||{}).model,L]);if(L.get("trigger")==="axis")return O.dispatchAction({type:"updateAxisPointer",seriesIndex:z,dataIndex:V,position:N.position}),!0}}},_tryShow:function(L,R){var O=L.target;if(this._tooltipModel){this._lastX=L.offsetX,this._lastY=L.offsetY;var N=L.dataByCoordSys;N&&N.length?this._showAxisTooltip(N,L):O&&O.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(L,O,R)):O&&O.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(L,O,R)):(this._lastDataByCoordSys=null,this._hide(R))}},_showOrMove:function(L,R){var O=L.get("showDelay");R=T.bind(R,this),clearTimeout(this._showTimout),O>0?this._showTimout=setTimeout(R,O):R()},_showAxisTooltip:function(L,R){var O=this._ecModel,N=this._tooltipModel,z=[R.offsetX,R.offsetY],V=[],B=[],G=I([R.tooltipOption,N]),E=this._renderMode,H=this._newLine,W={};M(L,function(Z){M(Z.dataByAxis,function(Q){var Y=O.getComponent(Q.axisDim+"Axis",Q.axisIndex),K=Q.value,ne=[];if(Y&&K!=null){var X=d.getValueLabel(K,Y.axis,O,Q.seriesDataIndices,Q.valueLabelOpt);T.each(Q.seriesDataIndices,function(ee){var ae=O.getSeriesByIndex(ee.seriesIndex),oe=ee.dataIndexInside,se=ae&&ae.getDataParams(oe);if(se.axisDim=Q.axisDim,se.axisIndex=Q.axisIndex,se.axisType=Q.axisType,se.axisId=Q.axisId,se.axisValue=o.getAxisRawValue(Y.axis,K),se.axisValueLabel=X,se){B.push(se);var ge,fe=ae.formatTooltip(oe,!0,null,E);if(T.isObject(fe)){ge=fe.html;var le=fe.markers;T.merge(W,le)}else ge=fe;ne.push(ge)}}),E!=="html"?V.push(ne.join(H)):V.push((X?n.encodeHTML(X)+H:"")+ne.join(H))}})},this),V.reverse(),V=V.join(this._newLine+this._newLine);var $=R.position;this._showOrMove(G,function(){this._updateContentNotChangedOnAxis(L)?this._updatePosition(G,$,z[0],z[1],this._tooltipContent,B):this._showTooltipContent(G,V,B,Math.random(),z[0],z[1],$,void 0,W)})},_showSeriesItemTooltip:function(L,R,O){var N,z,V=this._ecModel,B=R.seriesIndex,G=V.getSeriesByIndex(B),E=R.dataModel||G,H=R.dataIndex,W=R.dataType,$=E.getData(),Z=I([$.getItemModel(H),E,G&&(G.coordinateSystem||{}).model,this._tooltipModel]),Q=Z.get("trigger");if(Q==null||Q==="item"){var Y=E.getDataParams(H,W),K=E.formatTooltip(H,!1,W,this._renderMode);T.isObject(K)?(N=K.html,z=K.markers):(N=K,z=null);var ne="item_"+E.name+"_"+H;this._showOrMove(Z,function(){this._showTooltipContent(Z,N,Y,ne,L.offsetX,L.offsetY,L.position,L.target,z)}),O({type:"showTip",dataIndexInside:H,dataIndex:$.getRawIndex(H),seriesIndex:B,from:this.uid})}},_showComponentItemTooltip:function(L,R,O){var N=R.tooltip;if(typeof N=="string"){var z=N;N={content:z,formatter:z}}var V=new g(N,this._tooltipModel,this._ecModel),B=V.get("content"),G=Math.random();this._showOrMove(V,function(){this._showTooltipContent(V,B,V.get("formatterParams")||{},G,L.offsetX,L.offsetY,L.position,R)}),O({type:"showTip",from:this.uid})},_showTooltipContent:function(L,R,O,N,z,V,B,G,E){if(this._ticket="",L.get("showContent")&&L.get("show")){var H=this._tooltipContent,W=L.get("formatter");B=B||L.get("position");var $=R;if(W&&typeof W=="string")$=n.formatTpl(W,O,!0);else if(typeof W=="function"){var Z=_(function(Q,Y){Q===this._ticket&&(H.setContent(Y,E,L),this._updatePosition(L,B,z,V,H,O,G))},this);this._ticket=N,$=W(O,N,Z)}H.setContent($,E,L),H.show(L),this._updatePosition(L,B,z,V,H,O,G)}},_updatePosition:function(L,R,O,N,z,V,B){var G=this._api.getWidth(),E=this._api.getHeight();R=R||L.get("position");var H=z.getSize(),W=L.get("align"),$=L.get("verticalAlign"),Z=B&&B.getBoundingRect().clone();if(B&&Z.applyTransform(B.transform),typeof R=="function"&&(R=R([O,N],V,z.el,Z,{viewSize:[G,E],contentSize:H.slice()})),T.isArray(R))O=S(R[0],G),N=S(R[1],E);else if(T.isObject(R)){R.width=H[0],R.height=H[1];var Q=y.getLayoutRect(R,{width:G,height:E});O=Q.x,N=Q.y,W=null,$=null}else if(typeof R=="string"&&B){var Y=function(Oe,ke,De){var Ce=De[0],Le=De[1],Ve=0,Ge=0,Je=ke.width,rt=ke.height;switch(Oe){case"inside":Ve=ke.x+Je/2-Ce/2,Ge=ke.y+rt/2-Le/2;break;case"top":Ve=ke.x+Je/2-Ce/2,Ge=ke.y-Le-5;break;case"bottom":Ve=ke.x+Je/2-Ce/2,Ge=ke.y+rt+5;break;case"left":Ve=ke.x-Ce-5,Ge=ke.y+rt/2-Le/2;break;case"right":Ve=ke.x+Je+5,Ge=ke.y+rt/2-Le/2}return[Ve,Ge]}(R,Z,H);O=Y[0],N=Y[1]}else{var K,ne,X,ee,ae,oe,se,ge,fe,le,Y=(K=O,ne=N,X=z,ee=G,ae=E,oe=W?null:20,se=$?null:20,fe=(ge=X.getOuterSize()).width,le=ge.height,oe!=null&&(K+fe+oe>ee?K-=fe+oe:K+=oe),se!=null&&(ne+le+se>ae?ne-=le+se:ne+=se),[K,ne]);O=Y[0],N=Y[1]}if(W&&(O-=D(W)?H[0]/2:W==="right"?H[0]:0),$&&(N-=D($)?H[1]/2:$==="bottom"?H[1]:0),L.get("confine")){var ue,he,pe,ye,ve,Ae,_e,Pe,Y=(ue=O,he=N,pe=z,ye=G,ve=E,_e=(Ae=pe.getOuterSize()).width,Pe=Ae.height,ue=Math.min(ue+_e,ye)-_e,he=Math.min(he+Pe,ve)-Pe,[ue=Math.max(ue,0),he=Math.max(he,0)]);O=Y[0],N=Y[1]}z.moveTo(O,N)},_updateContentNotChangedOnAxis:function(L){var R=this._lastDataByCoordSys,O=!!R&&R.length===L.length;return O&&M(R,function(N,z){var V=N.dataByAxis||{},B=(L[z]||{}).dataByAxis||[];(O&=V.length===B.length)&&M(V,function(G,E){var H=B[E]||{},W=G.seriesDataIndices||[],$=H.seriesDataIndices||[];(O&=G.value===H.value&&G.axisType===H.axisType&&G.axisId===H.axisId&&W.length===$.length)&&M(W,function(Z,Q){var Y=$[Q];O&=Z.seriesIndex===Y.seriesIndex&&Z.dataIndex===Y.dataIndex})})}),this._lastDataByCoordSys=L,!!O},_hide:function(L){this._lastDataByCoordSys=null,L({type:"hideTip",from:this.uid})},dispose:function(L,R){w.node||(this._tooltipContent.hide(),c.unregister("itemTooltip",R))}})},96307:function(U,C,b){b(95946),b(62495)},48267:function(U,C,b){var p=b(23405),T=b(23323),w=b(54684),e=T.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(n,t){e.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(f){f.mappingMethod="linear",f.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){e.superApply(this,"resetItemSize",arguments);var n=this.itemSize;this._orient==="horizontal"&&n.reverse(),(n[0]==null||isNaN(n[0]))&&(n[0]=20),(n[1]==null||isNaN(n[1]))&&(n[1]=140)},_resetRange:function(){var n=this.getExtent(),t=this.option.range;!t||t.auto?(n.auto=1,this.option.range=n):p.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],n[0]),t[1]=Math.min(t[1],n[1]))},completeVisualOption:function(){T.prototype.completeVisualOption.apply(this,arguments),p.each(this.stateList,function(n){var t=this.option.controller[n].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)},this)},setSelected:function(n){this.option.range=n.slice(),this._resetRange()},getSelected:function(){var n=this.getExtent(),t=w.asc((this.get("range")||[]).slice());return t[0]>n[1]&&(t[0]=n[1]),t[1]>n[1]&&(t[1]=n[1]),t[0]<n[0]&&(t[0]=n[0]),t[1]<n[0]&&(t[1]=n[0]),t},getValueState:function(n){var t=this.option.range,f=this.getExtent();return(t[0]<=f[0]||t[0]<=n)&&(t[1]>=f[1]||n<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(n){var t=[];return this.eachTargetSeries(function(f){var a=[],y=f.getData();y.each(this.getDataDimension(y),function(g,c){n[0]<=g&&g<=n[1]&&a.push(c)},this),t.push({seriesId:f.id,dataIndex:a})},this),t},getVisualMeta:function(n){var t=h(this,"outOfRange",this.getExtent()),f=h(this,"inRange",this.option.range.slice()),a=[];function y(M,S){a.push({value:M,color:n(M,S)})}for(var g=0,c=0,o=f.length,d=t.length;c<d&&(!f.length||t[c]<=f[0]);c++)t[c]<f[g]&&y(t[c],"outOfRange");for(var m=1;g<o;g++,m=0)m&&a.length&&y(f[g],"outOfRange"),y(f[g],"inRange");for(var m=1;c<d;c++)(!f.length||f[f.length-1]<t[c])&&(m&&(a.length&&y(a[a.length-1].value,"outOfRange"),m=0),y(t[c],"outOfRange"));var _=a.length;return{stops:a,outerColors:[_?a[0].color:"transparent",_?a[_-1].color:"transparent"]}}});function h(n,t,f){if(f[0]===f[1])return f.slice();for(var a=(f[1]-f[0])/200,y=f[0],g=[],c=0;c<=200&&y<f[1];c++)g.push(y),y+=a;return g.push(f[1]),g}U.exports=e},57395:function(U,C,b){var p=b(23405),T=b(67725),w=b(46427),e=b(10613),h=b(51747),n=b(54684),t=b(2488),f=b(4687),a=b(51064),y=n.linearMap,g=p.each,c=Math.min,o=Math.max,d=e.extend({type:"visualMap.continuous",init:function(){d.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(S,A,I,k){k&&k.type==="selectDataRange"&&k.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var S=this.visualMapModel,A=this.group;this._orient=S.get("orient"),this._useHandle=S.get("calculable"),this._resetInterval(),this._renderBar(A);var I=S.get("text");this._renderEndsText(A,I,0),this._renderEndsText(A,I,1),this._updateView(!0),this.renderBackground(A),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(A)},_renderEndsText:function(S,A,I){if(A){var k=A[1-I];k=k!=null?k+"":"";var D=this.visualMapModel,L=D.get("textGap"),R=D.itemSize,O=this._shapes.barGroup,N=this._applyTransform([R[0]/2,I===0?-L:R[1]+L],O),z=this._applyTransform(I===0?"bottom":"top",O),V=this._orient,B=this.visualMapModel.textStyleModel;this.group.add(new h.Text({style:{x:N[0],y:N[1],textVerticalAlign:V==="horizontal"?"middle":z,textAlign:V==="horizontal"?z:"center",text:k,textFont:B.getFont(),textFill:B.getTextColor()}}))}},_renderBar:function(S){var A=this.visualMapModel,I=this._shapes,k=A.itemSize,D=this._orient,L=this._useHandle,R=f.getItemAlign(A,this.api,k),O=I.barGroup=this._createBarGroup(R);O.add(I.outOfRange=m()),O.add(I.inRange=m(null,L?M(this._orient):null,p.bind(this._dragHandle,this,"all",!1),p.bind(this._dragHandle,this,"all",!0)));var N=A.textStyleModel.getTextRect("国"),z=o(N.width,N.height);L&&(I.handleThumbs=[],I.handleLabels=[],I.handleLabelPoints=[],this._createHandle(O,0,k,z,D,R),this._createHandle(O,1,k,z,D,R)),this._createIndicator(O,k,z,D),S.add(O)},_createHandle:function(S,A,I,k,D){var L,R,O=p.bind(this._dragHandle,this,A,!1),N=p.bind(this._dragHandle,this,A,!0),z=m((L=A,R=k,L===0?[[0,0],[R,0],[R,-R]]:[[0,0],[R,0],[R,R]]),M(this._orient),O,N);z.position[0]=I[0],S.add(z);var V=this.visualMapModel.textStyleModel,B=new h.Text({draggable:!0,drift:O,onmousemove:function(H){w.stop(H.event)},ondragend:N,style:{x:0,y:0,text:"",textFont:V.getFont(),textFill:V.getTextColor()}});this.group.add(B);var G=[D==="horizontal"?k/2:1.5*k,D==="horizontal"?A===0?-(1.5*k):1.5*k:A===0?-k/2:k/2],E=this._shapes;E.handleThumbs[A]=z,E.handleLabelPoints[A]=G,E.handleLabels[A]=B},_createIndicator:function(S,A,I,k){var D=m([[0,0]],"move");D.position[0]=A[0],D.attr({invisible:!0,silent:!0}),S.add(D);var L=this.visualMapModel.textStyleModel,R=new h.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:L.getFont(),textFill:L.getTextColor()}});this.group.add(R);var O=this._shapes;O.indicator=D,O.indicatorLabel=R,O.indicatorLabelPoint=[k==="horizontal"?I/2:9,0]},_dragHandle:function(S,A,I,k){if(this._useHandle){if(this._dragging=!A,!A){var D=this._applyTransform([I,k],this._shapes.barGroup,!0);this._updateInterval(S,D[1]),this._updateView()}!this.visualMapModel.get("realtime")===A&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),A?this._hovering||this._clearHoverLinkToSeries():_(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[S],!1)}},_resetInterval:function(){var S=this.visualMapModel,A=this._dataInterval=S.getSelected(),I=S.getExtent(),k=[0,S.itemSize[1]];this._handleEnds=[y(A[0],I,k,!0),y(A[1],I,k,!0)]},_updateInterval:function(S,A){A=A||0;var I=this.visualMapModel,k=this._handleEnds,D=[0,I.itemSize[1]];t(A,k,D,S,0);var L=I.getExtent();this._dataInterval=[y(k[0],D,L,!0),y(k[1],D,L,!0)]},_updateView:function(S){var A=this.visualMapModel,I=A.getExtent(),k=this._shapes,D=[0,A.itemSize[1]],L=S?D:this._handleEnds,R=this._createBarVisual(this._dataInterval,I,L,"inRange"),O=this._createBarVisual(I,I,D,"outOfRange");k.inRange.setStyle({fill:R.barColor,opacity:R.opacity}).setShape("points",R.barPoints),k.outOfRange.setStyle({fill:O.barColor,opacity:O.opacity}).setShape("points",O.barPoints),this._updateHandle(L,R)},_createBarVisual:function(S,A,I,k){var D={forceState:k,convertOpacityToAlpha:!0},L=this._makeColorGradient(S,D),R=[this.getControllerVisual(S[0],"symbolSize",D),this.getControllerVisual(S[1],"symbolSize",D)],O=this._createBarPoints(I,R);return{barColor:new T(0,0,0,1,L),barPoints:O,handlesColor:[L[0].color,L[L.length-1].color]}},_makeColorGradient:function(S,A){var I=[],k=(S[1]-S[0])/100;I.push({color:this.getControllerVisual(S[0],"color",A),offset:0});for(var D=1;D<100;D++){var L=S[0]+k*D;if(L>S[1])break;I.push({color:this.getControllerVisual(L,"color",A),offset:D/100})}return I.push({color:this.getControllerVisual(S[1],"color",A),offset:1}),I},_createBarPoints:function(S,A){var I=this.visualMapModel.itemSize;return[[I[0]-A[0],S[0]],[I[0],S[0]],[I[0],S[1]],[I[0]-A[1],S[1]]]},_createBarGroup:function(S){var A=this._orient,I=this.visualMapModel.get("inverse");return new h.Group(A==="horizontal"&&!I?{scale:S==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:A==="horizontal"&&I?{scale:S==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:A==="vertical"&&!I?{scale:S==="left"?[1,-1]:[-1,-1]}:{scale:S==="left"?[1,1]:[-1,1]})},_updateHandle:function(S,A){if(this._useHandle){var I=this._shapes,k=this.visualMapModel,D=I.handleThumbs,L=I.handleLabels;g([0,1],function(R){var O=D[R];O.setStyle("fill",A.handlesColor[R]),O.position[1]=S[R];var N=h.applyTransform(I.handleLabelPoints[R],h.getTransform(O,this.group));L[R].setStyle({x:N[0],y:N[1],text:k.formatValueText(this._dataInterval[R]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?R===0?"bottom":"top":"left",I.barGroup)})},this)}},_showIndicator:function(S,A,I,k){var D=this.visualMapModel,L=D.getExtent(),R=D.itemSize,O=y(S,L,[0,R[1]],!0),N=this._shapes,z=N.indicator;if(z){z.position[1]=O,z.attr("invisible",!1),z.setShape("points",(V=!!I,B=k,G=O,E=R[1],V?[[0,-c(B,o(G,0))],[6,0],[0,c(B,o(E-G,0))]]:[[0,0],[5,-5],[5,5]]));var V,B,G,E,H=this.getControllerVisual(S,"color",{convertOpacityToAlpha:!0});z.setStyle("fill",H);var W=h.applyTransform(N.indicatorLabelPoint,h.getTransform(z,this.group)),$=N.indicatorLabel;$.attr("invisible",!1);var Z=this._applyTransform("left",N.barGroup),Q=this._orient;$.setStyle({text:(I||"")+D.formatValueText(A),textVerticalAlign:Q==="horizontal"?Z:"middle",textAlign:Q==="horizontal"?"center":Z,x:W[0],y:W[1]})}},_enableHoverLinkToSeries:function(){var S=this;this._shapes.barGroup.on("mousemove",function(A){if(S._hovering=!0,!S._dragging){var I=S.visualMapModel.itemSize,k=S._applyTransform([A.offsetX,A.offsetY],S._shapes.barGroup,!0,!0);k[1]=c(o(0,k[1]),I[1]),S._doHoverLinkToSeries(k[1],0<=k[0]&&k[0]<=I[0])}}).on("mouseout",function(){S._hovering=!1,S._dragging||S._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var S=this.api.getZr();this.visualMapModel.option.hoverLink?(S.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),S.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(S,A){var I=this.visualMapModel,k=I.itemSize;if(I.option.hoverLink){var D,L,R,O,N,z=[0,k[1]],V=I.getExtent();S=c(o(z[0],S),z[1]);var B=(D=I,L=V,R=z,O=6,(N=D.get("hoverLinkDataSize"))&&(O=y(N,L,R,!0)/2),O),G=[S-B,S+B],E=y(S,z,V,!0),H=[y(G[0],z,V,!0),y(G[1],z,V,!0)];G[0]<z[0]&&(H[0]=-1/0),G[1]>z[1]&&(H[1]=1/0),A&&(H[0]===-1/0?this._showIndicator(E,H[1],"< ",B):H[1]===1/0?this._showIndicator(E,H[0],"> ",B):this._showIndicator(E,E,"≈ ",B));var W=this._hoverLinkDataIndices,$=[];(A||_(I))&&($=this._hoverLinkDataIndices=I.findTargetDataIndices(H));var Z=a.compressBatches(W,$);this._dispatchHighDown("downplay",f.convertDataIndex(Z[0])),this._dispatchHighDown("highlight",f.convertDataIndex(Z[1]))}},_hoverLinkFromSeriesMouseOver:function(S){var A=S.target,I=this.visualMapModel;if(A&&A.dataIndex!=null){var k=this.ecModel.getSeriesByIndex(A.seriesIndex);if(I.isTargetSeries(k)){var D=k.getData(A.dataType),L=D.get(I.getDataDimension(D),A.dataIndex,!0);isNaN(L)||this._showIndicator(L,L)}}},_hideIndicator:function(){var S=this._shapes;S.indicator&&S.indicator.attr("invisible",!0),S.indicatorLabel&&S.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var S=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",f.convertDataIndex(S)),S.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var S=this.api.getZr();S.off("mouseover",this._hoverLinkFromSeriesMouseOver),S.off("mouseout",this._hideIndicator)},_applyTransform:function(S,A,I,k){var D=h.getTransform(A,k?null:this.group);return h[p.isArray(S)?"applyTransform":"transformDirection"](S,D,I)},_dispatchHighDown:function(S,A){A&&A.length&&this.api.dispatchAction({type:S,batch:A})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function m(S,A,I,k){return new h.Polygon({shape:{points:S},draggable:!!I,cursor:A,drift:I,onmousemove:function(D){w.stop(D.event)},ondragend:k})}function _(S){var A=S.get("hoverLinkOnHandle");return!!(A??S.get("realtime"))}function M(S){return S==="vertical"?"ns-resize":"ew-resize"}U.exports=d},74236:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(23323),w=b(32013),e=b(76047),h=b(54684).reformIntervals,n=T.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(a,y){n.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var g=this._mode=this._determineMode();t[this._mode].call(this),this._resetSelected(a,y);var c=this.option.categories;this.resetVisual(function(o,d){g==="categories"?(o.mappingMethod="category",o.categories=p.clone(c)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=p.map(this._pieceList,function(_){var _=p.clone(_);return d!=="inRange"&&(_.visual=null),_}))})},completeVisualOption:function(){var a=this.option,y={},g=w.listVisualTypes(),c=this.isCategory();function o(d,m,_){return d&&d[m]&&(p.isObject(d[m])?d[m].hasOwnProperty(_):d[m]===_)}p.each(a.pieces,function(d){p.each(g,function(m){d.hasOwnProperty(m)&&(y[m]=1)})}),p.each(y,function(d,m){var _=0;p.each(this.stateList,function(M){_|=o(a,M,m)||o(a.target,M,m)},this),_||p.each(this.stateList,function(M){(a[M]||(a[M]={}))[m]=e.get(m,M==="inRange"?"active":"inactive",c)})},this),T.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(a,y){var g=this.option,c=this._pieceList,o=(y?g:a).selected||{};if(g.selected=o,p.each(c,function(m,_){var M=this.getSelectedMapKey(m);o.hasOwnProperty(M)||(o[M]=!0)},this),g.selectedMode==="single"){var d=!1;p.each(c,function(m,_){var M=this.getSelectedMapKey(m);o[M]&&(d?o[M]=!1:d=!0)},this)}},getSelectedMapKey:function(a){return this._mode==="categories"?a.value+"":a.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var a=this.option;return a.pieces&&a.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(a){this.option.selected=p.clone(a)},getValueState:function(a){var y=w.findPieceIndex(a,this._pieceList);return y!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[y])]?"inRange":"outOfRange"},findTargetDataIndices:function(a){var y=[];return this.eachTargetSeries(function(g){var c=[],o=g.getData();o.each(this.getDataDimension(o),function(d,m){w.findPieceIndex(d,this._pieceList)===a&&c.push(m)},this),y.push({seriesId:g.id,dataIndex:c})},this),y},getRepresentValue:function(a){var y;if(this.isCategory())y=a.value;else if(a.value!=null)y=a.value;else{var g=a.interval||[];y=g[0]===-1/0&&g[1]===1/0?0:(g[0]+g[1])/2}return y},getVisualMeta:function(a){if(!this.isCategory()){var y=[],g=[],c=this,o=this._pieceList.slice();if(o.length){var d=o[0].interval[0];d!==-1/0&&o.unshift({interval:[-1/0,d]}),(d=o[o.length-1].interval[1])!==1/0&&o.push({interval:[d,1/0]})}else o.push({interval:[-1/0,1/0]});var m=-1/0;return p.each(o,function(M){var S=M.interval;S&&(S[0]>m&&_([m,S[0]],"outOfRange"),_(S.slice()),m=S[1])},this),{stops:y,outerColors:g}}function _(M,S){var A=c.getRepresentValue({interval:M});S||(S=c.getValueState(A));var I=a(A,S);M[0]===-1/0?g[0]=I:M[1]===1/0?g[1]=I:y.push({value:M[0],color:I},{value:M[1],color:I})}}}),t={splitNumber:function(){var a=this.option,y=this._pieceList,g=Math.min(a.precision,20),c=this.getExtent(),o=a.splitNumber;a.splitNumber=o=Math.max(parseInt(o,10),1);for(var d=(c[1]-c[0])/o;+d.toFixed(g)!==d&&g<5;)g++;a.precision=g,d=+d.toFixed(g);var m=0;a.minOpen&&y.push({index:m++,interval:[-1/0,c[0]],close:[0,0]});for(var _=c[0],M=m+o;m<M;_+=d){var S=m===o-1?c[1]:_+d;y.push({index:m++,interval:[_,S],close:[1,1]})}a.maxOpen&&y.push({index:m++,interval:[c[1],1/0],close:[0,0]}),h(y),p.each(y,function(A){A.text=this.formatValueText(A.interval)},this)},categories:function(){var a=this.option;p.each(a.categories,function(y){this._pieceList.push({text:this.formatValueText(y,!0),value:y})},this),f(a,this._pieceList)},pieces:function(){var a=this.option,y=this._pieceList;p.each(a.pieces,function(g,c){p.isObject(g)||(g={value:g});var o={text:"",index:c};if(g.label!=null&&(o.text=g.label),g.hasOwnProperty("value")){var d=o.value=g.value;o.interval=[d,d],o.close=[1,1]}else{for(var m=o.interval=[],_=o.close=[0,0],M=[1,0,1],S=[-1/0,1/0],A=[],I=0;I<2;I++){for(var k=[["gte","gt","min"],["lte","lt","max"]][I],D=0;D<3&&m[I]==null;D++)m[I]=g[k[D]],_[I]=M[D],A[I]=D===2;m[I]==null&&(m[I]=S[I])}A[0]&&m[1]===1/0&&(_[0]=0),A[1]&&m[0]===-1/0&&(_[1]=0),m[0]===m[1]&&_[0]&&_[1]&&(o.value=m[0])}o.visual=w.retrieveVisuals(g),y.push(o)},this),f(a,y),h(y),p.each(y,function(g){var c=g.close,o=[["<","≤"][c[1]],[">","≥"][c[0]]];g.text=g.text||this.formatValueText(g.value!=null?g.value:g.interval,!1,o)},this)}};function f(a,y){var g=a.inverse;(a.orient==="vertical"?!g:g)&&y.reverse()}U.exports=n},10691:function(U,C,b){var p=b(23405),T=b(10613),w=b(51747),e=b(30696).createSymbol,h=b(62751),n=b(4687);U.exports=T.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var f=this.visualMapModel,a=f.get("textGap"),y=f.textStyleModel,g=y.getFont(),c=y.getTextColor(),o=this._getItemAlign(),d=f.itemSize,m=this._getViewData(),_=m.endsText,M=p.retrieve(f.get("showLabel",!0),!_);_&&this._renderEndsText(t,_[0],d,M,o),p.each(m.viewPieceList,function(S){var A=S.piece,I=new w.Group;I.onclick=p.bind(this._onItemClick,this,A),this._enableHoverLink(I,S.indexInModelPieceList);var k=f.getRepresentValue(A);if(this._createItemSymbol(I,k,[0,0,d[0],d[1]]),M){var D=this.visualMapModel.getValueState(k);I.add(new w.Text({style:{x:o==="right"?-a:d[0]+a,y:d[1]/2,text:A.text,textVerticalAlign:"middle",textAlign:o,textFont:g,textFill:c,opacity:D==="outOfRange"?.5:1}}))}t.add(I)},this),_&&this._renderEndsText(t,_[1],d,M,o),h.box(f.get("orient"),t,f.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,f){t.on("mouseover",p.bind(a,this,"highlight")).on("mouseout",p.bind(a,this,"downplay"));function a(y){var g=this.visualMapModel;g.option.hoverLink&&this.api.dispatchAction({type:y,batch:n.convertDataIndex(g.findTargetDataIndices(f))})}},_getItemAlign:function(){var t=this.visualMapModel,f=t.option;if(f.orient==="vertical")return n.getItemAlign(t,this.api,t.itemSize);var a=f.align;return a&&a!=="auto"||(a="left"),a},_renderEndsText:function(t,f,a,y,g){if(f){var c=new w.Group,o=this.visualMapModel.textStyleModel;c.add(new w.Text({style:{x:y?g==="right"?a[0]:0:a[0]/2,y:a[1]/2,textVerticalAlign:"middle",textAlign:y?g:"center",text:f,textFont:o.getFont(),textFill:o.getTextColor()}})),t.add(c)}},_getViewData:function(){var t=this.visualMapModel,f=p.map(t.getPieceList(),function(c,o){return{piece:c,indexInModelPieceList:o}}),a=t.get("text"),y=t.get("orient"),g=t.get("inverse");return(y==="horizontal"?g:!g)?f.reverse():a&&(a=a.slice().reverse()),{viewPieceList:f,endsText:a}},_createItemSymbol:function(t,f,a){t.add(e(this.getControllerVisual(f,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(f,"color")))},_onItemClick:function(t){var f=this.visualMapModel,a=f.option,y=p.clone(a.selected),g=f.getSelectedMapKey(t);a.selectedMode==="single"?(y[g]=!0,p.each(y,function(c,o){y[o]=o===g})):y[g]=!y[g],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:y})}})},23323:function(U,C,b){var p=b(87930),T=b(23405),w=b(23584),e=b(76047),h=b(32013),n=b(55925),t=b(51064),f=b(54684),a=h.mapVisual,y=h.eachVisual,g=T.isArray,c=T.each,o=f.asc,d=f.linearMap,m=T.noop;U.exports=p.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(_,M,S){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(_,S)},optionUpdated:function(_,M){var S=this.option;w.canvasSupported||(S.realtime=!1),M||n.replaceVisualOption(S,_,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(_){var M=this.stateList;_=T.bind(_,this),this.controllerVisuals=n.createVisualMappings(this.option.controller,M,_),this.targetVisuals=n.createVisualMappings(this.option.target,M,_)},getTargetSeriesIndices:function(){var _=this.option.seriesIndex,M=[];return _==null||_==="all"?this.ecModel.eachSeries(function(S,A){M.push(A)}):M=t.normalizeToArray(_),M},eachTargetSeries:function(_,M){T.each(this.getTargetSeriesIndices(),function(S){_.call(M,this.ecModel.getSeriesByIndex(S))},this)},isTargetSeries:function(_){var M=!1;return this.eachTargetSeries(function(S){S===_&&(M=!0)}),M},formatValueText:function(_,M,S){var A,I,k=this.option,D=k.precision,L=this.dataBound,R=k.formatter;if(S=S||["<",">"],T.isArray(_)&&(_=_.slice(),A=!0),I=M?_:A?[O(_[0]),O(_[1])]:O(_),T.isString(R))return R.replace("{value}",A?I[0]:I).replace("{value2}",A?I[1]:I);if(T.isFunction(R))return A?R(_[0],_[1]):R(_);if(!A)return I;if(_[0]===L[0])return S[0]+" "+I[1];if(_[1]===L[1])return S[1]+" "+I[0];return I[0]+" - "+I[1];function O(N){return N===L[0]?"min":N===L[1]?"max":(+N).toFixed(Math.min(D,20))}},resetExtent:function(){var _=this.option,M=o([_.min,_.max]);this._dataExtent=M},getDataDimension:function(_){var M=this.option.dimension,S=_.dimensions;if(M!=null||S.length){if(M!=null)return _.getDimension(M);for(var A=_.dimensions,I=A.length-1;I>=0;I--){var k=A[I];if(!_.getDimensionInfo(k).isCalculationCoord)return k}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var _=this.ecModel,M=this.option,S={inRange:M.inRange,outOfRange:M.outOfRange},A=M.target||(M.target={}),I=M.controller||(M.controller={});T.merge(A,S),T.merge(I,S);var k=this.isCategory();function D(L){g(M.color)&&!L.inRange&&(L.inRange={color:M.color.slice().reverse()}),L.inRange=L.inRange||{color:_.get("gradientColor")},c(this.stateList,function(R){var O=L[R];if(T.isString(O)){var N=e.get(O,"active",k);N?(L[R]={},L[R][O]=N):delete L[R]}},this)}D.call(this,A),D.call(this,I),(function(L,R,O){var N=L[R],z=L[O];N&&!z&&(z=L[O]={},c(N,function(V,B){if(h.isValidType(B)){var G=e.get(B,"inactive",k);G!=null&&(z[B]=G,B!=="color"||z.hasOwnProperty("opacity")||z.hasOwnProperty("colorAlpha")||(z.opacity=[0,0]))}}))}).call(this,A,"inRange","outOfRange"),(function(L){var R=(L.inRange||{}).symbol||(L.outOfRange||{}).symbol,O=(L.inRange||{}).symbolSize||(L.outOfRange||{}).symbolSize,N=this.get("inactiveColor");c(this.stateList,function(z){var V=this.itemSize,B=L[z];B||(B=L[z]={color:k?N:[N]}),B.symbol==null&&(B.symbol=R&&T.clone(R)||(k?"roundRect":["roundRect"])),B.symbolSize==null&&(B.symbolSize=O&&T.clone(O)||(k?V[0]:[V[0],V[0]])),B.symbol=a(B.symbol,function(H){return H==="none"||H==="square"?"roundRect":H});var G=B.symbolSize;if(G!=null){var E=-1/0;y(G,function(H){H>E&&(E=H)}),B.symbolSize=a(G,function(H){return d(H,[0,E],[0,V[0]],!0)})}},this)}).call(this,I)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m})},10613:function(U,C,b){var p=b(87930),T=b(23405),w=b(51747),e=b(60653),h=b(62751),n=b(32013);U.exports=p.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,f){this.ecModel=t,this.api=f,this.visualMapModel},render:function(t,f,a,y){if(this.visualMapModel=t,t.get("show")===!1)return void this.group.removeAll();this.doRender.apply(this,arguments)},renderBackground:function(t){var f=this.visualMapModel,a=e.normalizeCssArray(f.get("padding")||0),y=t.getBoundingRect();t.add(new w.Rect({z2:-1,silent:!0,shape:{x:y.x-a[3],y:y.y-a[0],width:y.width+a[3]+a[1],height:y.height+a[0]+a[2]},style:{fill:f.get("backgroundColor"),stroke:f.get("borderColor"),lineWidth:f.get("borderWidth")}}))},getControllerVisual:function(t,f,a){var y=(a=a||{}).forceState,g=this.visualMapModel,c={};function o(M){return c[M]}function d(M,S){c[M]=S}f==="symbol"&&(c.symbol=g.get("itemSymbol")),f==="color"&&(c.color=g.get("contentColor"));var m=g.controllerVisuals[y||g.getValueState(t)],_=n.prepareVisualTypes(m);return T.each(_,function(M){var S=m[M];a.convertOpacityToAlpha&&M==="opacity"&&(M="colorAlpha",S=m.__alphaForOpacity),n.dependsOn(M,f)&&S&&S.applyVisual(t,o,d)}),c[f]},positionGroup:function(t){var f=this.visualMapModel,a=this.api;h.positionElement(t,f.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},doRender:T.noop})},4687:function(U,C,b){var p=b(23405),T=b(62751).getLayoutRect;C.getItemAlign=function(w,e,h){var n=w.option,t=n.align;if(t!=null&&t!=="auto")return t;for(var f={width:e.getWidth(),height:e.getHeight()},a=+(n.orient==="horizontal"),y=[["left","right","width"],["top","bottom","height"]],g=y[a],c=[0,null,10],o={},d=0;d<3;d++)o[y[1-a][d]]=c[d],o[g[d]]=d===2?h[0]:n[g[d]];var m=[["x","width",3],["y","height",0]][a],_=T(o,f,n.padding);return g[(_.margin[m[2]]||0)+_[m[0]]+.5*_[m[1]]<.5*f[m[1]]?0:1]},C.convertDataIndex=function(w){return p.each(w||[],function(e){w.dataIndex!=null&&(w.dataIndexInside=w.dataIndex,w.dataIndex=null)}),w}},41522:function(U,C,b){var p=b(23405),T=p.each;function w(e,h){return e&&e.hasOwnProperty&&e.hasOwnProperty(h)}U.exports=function(e){var h=e&&e.visualMap;p.isArray(h)||(h=h?[h]:[]),T(h,function(n){if(n){w(n,"splitList")&&!w(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var t=n.pieces;t&&p.isArray(t)&&T(t,function(f){p.isObject(f)&&(w(f,"start")&&!w(f,"min")&&(f.min=f.start),w(f,"end")&&!w(f,"max")&&(f.max=f.end))})}})}},88344:function(U,C,b){b(28628).registerSubTypeDefaulter("visualMap",function(p){return p.categories||(p.pieces?p.pieces.length>0:p.splitNumber>0)&&!p.calculable?"piecewise":"continuous"})},23344:function(U,C,b){var p=b(87930),T=b(23405),w=b(55925),e=b(32013),h=p.PRIORITY.VISUAL.COMPONENT;function n(t,f,a,y){for(var g=f.targetVisuals[y],c=e.prepareVisualTypes(g),o={color:t.getData().getVisual("color")},d=0,m=c.length;d<m;d++){var _=c[d],M=g[_==="opacity"?"__alphaForOpacity":_];M&&M.applyVisual(a,S,A)}return o.color;function S(I){return o[I]}function A(I,k){o[I]=k}}p.registerVisual(h,{createOnAllSeries:!0,reset:function(t,f){var a=[];return f.eachComponent("visualMap",function(y){var g=t.pipelineContext;!y.isTargetSeries(t)||g&&g.large||a.push(w.incrementalApplyVisual(y.stateList,y.targetVisuals,T.bind(y.getValueState,y),y.getDataDimension(t.getData())))}),a}}),p.registerVisual(h,{createOnAllSeries:!0,reset:function(t,f){var a=t.getData(),y=[];f.eachComponent("visualMap",function(g){if(g.isTargetSeries(t)){var c=g.getVisualMeta(T.bind(n,null,t,g))||{stops:[],outerColors:[]},o=g.getDataDimension(a),d=a.getDimensionInfo(o);d!=null&&(c.dimension=d.index,y.push(c))}}),t.getData().setVisual("visualMeta",y)}})},7543:function(U,C,b){b(87930).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(p,T){T.eachComponent({mainType:"visualMap",query:p},function(w){w.setSelected(p.selected)})})},95946:function(U,C,b){var p=b(87930),T=b(41522);b(88344),b(23344),b(48267),b(57395),b(7543),p.registerPreprocessor(T)},62495:function(U,C,b){var p=b(87930),T=b(41522);b(88344),b(23344),b(74236),b(10691),b(7543),p.registerPreprocessor(T)},9129:function(U,C,b){var p;typeof window<"u"?p=window.__DEV__:b.g!==void 0&&(p=b.g.__DEV__),p===void 0&&(p=!0),C.__DEV__=p},7371:function(U,C,b){var p=b(23405),T=p.each,w=p.map,e=b(54684),h=e.linearMap,n=e.getPixelPrecision,t=b(3222),f=t.createAxisTicks,a=t.createAxisLabels,y=t.calculateCategoryInterval,g=[0,1],c=function(d,m,_){this.dim=d,this.scale=m,this._extent=_||[0,0],this.inverse=!1,this.onBand=!1};function o(d,m){var _=(d[1]-d[0])/m/2;d[0]+=_,d[1]-=_}c.prototype={constructor:c,contain:function(d){var m=this._extent,_=Math.min(m[0],m[1]),M=Math.max(m[0],m[1]);return d>=_&&d<=M},containData:function(d){return this.contain(this.dataToCoord(d))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(d){return n(d||this.scale.getExtent(),this._extent)},setExtent:function(d,m){var _=this._extent;_[0]=d,_[1]=m},dataToCoord:function(d,m){var _=this._extent,M=this.scale;return d=M.normalize(d),this.onBand&&M.type==="ordinal"&&o(_=_.slice(),M.count()),h(d,g,_,m)},coordToData:function(d,m){var _=this._extent,M=this.scale;this.onBand&&M.type==="ordinal"&&o(_=_.slice(),M.count());var S=h(d,_,g,m);return this.scale.scale(S)},pointToData:function(d,m){},getTicksCoords:function(d){var m=(d=d||{}).tickModel||this.getTickModel(),_=f(this,m),M=w(_.ticks,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this),S=m.get("alignWithLabel");return function(A,I,k,D,L){var R,O=I.length;if(A.onBand&&!D&&O){var N,z,V,B,G,E,H,W,$=A.getExtent();if(O===1)I[0].coord=$[0],R=I[1]={coord:$[0]};else{var Z=I[1].coord-I[0].coord;T(I,function(Y){Y.coord-=Z/2;var K=K||0;K%2>0&&(Y.coord-=Z/((K+1)*2))}),R={coord:I[O-1].coord+Z},I.push(R)}var Q=$[0]>$[1];N=I[0].coord,z=$[0],(Q?N>z:N<z)&&(L?I[0].coord=$[0]:I.shift()),L&&(V=$[0],B=I[0].coord,Q?V>B:V<B)&&I.unshift({coord:$[0]}),G=$[1],E=R.coord,(Q?G>E:G<E)&&(L?R.coord=$[1]:I.pop()),L&&(H=R.coord,W=$[1],Q?H>W:H<W)&&I.push({coord:$[1]})}}(this,M,_.tickCategoryInterval,S,d.clamp),M},getViewLabels:function(){return a(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var d=this._extent,m=this.scale.getExtent(),_=m[1]-m[0]+ +!!this.onBand;return _===0&&(_=1),Math.abs(Math.abs(d[1]-d[0]))/_},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return y(this)}},U.exports=c},42458:function(U,C,b){var p=b(23405),T=b(76414),w=b(79442),e=b(28761),h=b(1965),n=T.applyTransform;function t(){h.call(this)}function f(y){this.name=y,this.zoomLimit,h.call(this),this._roamTransformable=new t,this._rawTransformable=new t,this._center,this._zoom}function a(y,g,c,o){var d=c.seriesModel,m=d?d.coordinateSystem:null;return m===this?m[y](o):null}p.mixin(t,h),f.prototype={constructor:f,type:"view",dimensions:["x","y"],setBoundingRect:function(y,g,c,o){return this._rect=new e(y,g,c,o),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(y,g,c,o){this.transformTo(y,g,c,o),this._viewRect=new e(y,g,c,o)},transformTo:function(y,g,c,o){var d=this.getBoundingRect(),m=this._rawTransformable;m.transform=d.calculateTransform(new e(y,g,c,o)),m.decomposeTransform(),this._updateTransform()},setCenter:function(y){y&&(this._center=y,this._updateCenterAndZoom())},setZoom:function(y){y=y||1;var g=this.zoomLimit;g&&(g.max!=null&&(y=Math.min(g.max,y)),g.min!=null&&(y=Math.max(g.min,y))),this._zoom=y,this._updateCenterAndZoom()},getDefaultCenter:function(){var y=this.getBoundingRect();return[y.x+y.width/2,y.y+y.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var y=this._rawTransformable.getLocalTransform(),g=this._roamTransformable,c=this.getDefaultCenter(),o=this.getCenter(),d=this.getZoom();o=T.applyTransform([],o,y),c=T.applyTransform([],c,y),g.origin=o,g.position=[c[0]-o[0],c[1]-o[1]],g.scale=[d,d],this._updateTransform()},_updateTransform:function(){var y=this._roamTransformable,g=this._rawTransformable;g.parent=y,y.updateTransform(),g.updateTransform(),w.copy(this.transform||(this.transform=[]),g.transform||w.create()),this._rawTransform=g.getLocalTransform(),this.invTransform=this.invTransform||[],w.invert(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var y=this.getBoundingRect().clone();return y.applyTransform(this.transform),y},dataToPoint:function(y,g,c){var o=g?this._rawTransform:this.transform;return c=c||[],o?n(c,y,o):T.copy(c,y)},pointToData:function(y){var g=this.invTransform;return g?n([],y,g):[y[0],y[1]]},convertToPixel:p.curry(a,"dataToPoint"),convertFromPixel:p.curry(a,"pointToData"),containPoint:function(y){return this.getViewRectAfterRoam().contain(y[0],y[1])}},p.mixin(f,h),U.exports=f},68639:function(U,C,b){var p=b(23405),T={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},w={};w.categoryAxis=p.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},T),w.valueAxis=p.merge({boundaryGap:[0,0],splitNumber:5},T),w.timeAxis=p.defaults({scale:!0,min:"dataMin",max:"dataMax"},w.valueAxis),w.logAxis=p.defaults({scale:!0,logBase:10},w.valueAxis),U.exports=w},51261:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(20741),w=b(86855),e=b(49065),h=b(54684),n=b(76918),t=n.prepareLayoutBarSeries,f=n.makeColumnLayout,a=n.retrieveColumnLayout,y=b(28761);function g(m,_){var M=m.type,S=_.getMin(),A=_.getMax(),I=S!=null,k=A!=null,D=m.getExtent();M==="ordinal"?R=_.getCategories().length:(O=_.get("boundaryGap"),p.isArray(O)||(O=[O||0,O||0]),typeof O[0]=="boolean"&&(O=[0,0]),O[0]=h.parsePercent(O[0],1),O[1]=h.parsePercent(O[1],1),N=D[1]-D[0]||Math.abs(D[0])),S==null&&(S=M==="ordinal"?R?0:NaN:D[0]-O[0]*N),A==null&&(A=M==="ordinal"?R?R-1:NaN:D[1]+O[1]*N),S==="dataMin"?S=D[0]:typeof S=="function"&&(S=S({min:D[0],max:D[1]})),A==="dataMax"?A=D[1]:typeof A=="function"&&(A=A({min:D[0],max:D[1]})),S!=null&&isFinite(S)||(S=NaN),A!=null&&isFinite(A)||(A=NaN),m.setBlank(p.eqNaN(S)||p.eqNaN(A)||M==="ordinal"&&!m.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(S>0&&A>0&&!I&&(S=0),S<0&&A<0&&!k&&(A=0));var L=_.ecModel;if(L&&M==="time"){var R,O,N,z,V=t("bar",L);if(p.each(V,function(G){z|=G.getBaseAxis()===_.axis}),z){var B=function(G,E,H,W){var $=H.axis.getExtent(),Z=$[1]-$[0],Q=a(W,H.axis);if(Q===void 0)return{min:G,max:E};var Y=1/0;p.each(Q,function(ae){Y=Math.min(ae.offset,Y)});var K=-1/0;p.each(Q,function(ae){K=Math.max(ae.offset+ae.width,K)});var ne=(Y=Math.abs(Y))+(K=Math.abs(K)),X=E-G,ee=X/(1-(Y+K)/Z)-X;return E+=K/ne*ee,{min:G-=Y/ne*ee,max:E}}(S,A,_,f(V));S=B.min,A=B.max}}return[S,A]}function c(m){var _,M=m.getLabelModel().get("formatter"),S=m.type==="category"?m.scale.getExtent()[0]:null;return typeof M=="string"?(_=M,M=function(A){return A=m.scale.getLabel(A),_.replace("{value}",A??"")}):typeof M=="function"?function(A,I){return S!=null&&(I=A-S),M(o(m,A),I)}:function(A){return m.scale.getLabel(A)}}function o(m,_){return m.type==="category"?m.scale.getLabel(_):_}function d(m){var _=m.get("interval");return _??"auto"}b(74635),b(28010),C.getScaleExtent=g,C.niceScaleExtent=function(m,_){var M=g(m,_),S=_.getMin()!=null,A=_.getMax()!=null,I=_.get("splitNumber");m.type==="log"&&(m.base=_.get("logBase"));var k=m.type;m.setExtent(M[0],M[1]),m.niceExtent({splitNumber:I,fixMin:S,fixMax:A,minInterval:k==="interval"||k==="time"?_.get("minInterval"):null,maxInterval:k==="interval"||k==="time"?_.get("maxInterval"):null});var D=_.get("interval");D!=null&&m.setInterval&&m.setInterval(D)},C.createScaleByModel=function(m,_){if(_=_||m.get("type"))switch(_){case"category":return new T(m.getOrdinalMeta?m.getOrdinalMeta():m.getCategories(),[1/0,-1/0]);case"value":return new w;default:return(e.getClass(_)||w).create(m)}},C.ifAxisCrossZero=function(m){var _=m.scale.getExtent(),M=_[0],S=_[1];return!(M>0&&S>0||M<0&&S<0)},C.makeLabelFormatter=c,C.getAxisRawValue=o,C.estimateLabelUnionRect=function(m){var _,M,S,A=m.model,I=m.scale;if(!(!A.get("axisLabel.show")||I.isBlank())){var k=m.type==="category",D=I.getExtent();M=k?I.count():(_=I.getTicks()).length;var L=m.getLabelModel(),R=c(m),O=1;M>40&&(O=Math.ceil(M/40));for(var N=0;N<M;N+=O){var z=R(_?_[N]:D[0]+N),V=function(B,G){var E=G*Math.PI/180,H=B.plain(),W=H.width,$=H.height,Z=W*Math.cos(E)+$*Math.sin(E),Q=W*Math.sin(E)+$*Math.cos(E);return new y(H.x,H.y,Z,Q)}(L.getTextRect(z),L.get("rotate")||0);S?S.union(V):S=V}return S}},C.getOptionCategoryInterval=d,C.shouldShowAllLabels=function(m){return m.type==="category"&&d(m.getLabelModel())===0}},98477:function(U,C,b){var p=b(23405);U.exports={getMin:function(T){var w=this.option,e=T||w.rangeStart==null?w.min:w.rangeStart;return this.axis&&e!=null&&e!=="dataMin"&&typeof e!="function"&&!p.eqNaN(e)&&(e=this.axis.scale.parse(e)),e},getMax:function(T){var w=this.option,e=T||w.rangeEnd==null?w.max:w.rangeEnd;return this.axis&&e!=null&&e!=="dataMax"&&typeof e!="function"&&!p.eqNaN(e)&&(e=this.axis.scale.parse(e)),e},getNeedCrossZero:function(){var T=this.option;return T.rangeStart==null&&T.rangeEnd==null&&!T.scale},getCoordSysModel:p.noop,setRange:function(T,w){this.option.rangeStart=T,this.option.rangeEnd=w},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}}},47329:function(U,C,b){var p=b(23405),T=b(68639),w=b(28628),e=b(62751),h=e.getLayoutParams,n=e.mergeLayoutParam,t=b(85508),f=["value","category","time","log"];U.exports=function(a,y,g,c){p.each(f,function(o){y.extend({type:a+"Axis."+o,mergeDefaultAndTheme:function(d,m){var _=this.layoutMode,M=_?h(d):{},S=m.getTheme();p.merge(d,S.get(o+"Axis")),p.merge(d,this.getDefaultOption()),d.type=g(a,d),_&&n(d,M,_)},optionUpdated:function(){this.option.type==="category"&&(this.__ordinalMeta=t.createByAxisModel(this))},getCategories:function(d){var m=this.option;if(m.type==="category")return d?m.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:p.mergeAll([{},T[o+"Axis"],c],!0)})}),w.registerSubTypeDefaulter(a+"Axis",p.curry(g,a))}},3222:function(U,C,b){var p=b(23405),T=b(24570),w=b(51064).makeInner,e=b(51261),h=e.makeLabelFormatter,n=e.getOptionCategoryInterval,t=e.shouldShowAllLabels,f=w();function a(m,_){var M,S,A,I,k=y(m,"labels"),D=n(_),L=g(k,D);return L||(p.isFunction(D)?A=d(m,D):(I=D==="auto"?(S=f(M=m).autoInterval)!=null?S:f(M).autoInterval=M.calculateCategoryInterval():D,A=o(m,I)),c(k,D,{labels:A,labelCategoryInterval:I}))}function y(m,_){return f(m)[_]||(f(m)[_]=[])}function g(m,_){for(var M=0;M<m.length;M++)if(m[M].key===_)return m[M].value}function c(m,_,M){return m.push({key:_,value:M}),M}function o(m,_,M){var S=h(m),A=m.scale,I=A.getExtent(),k=m.getLabelModel(),D=[],L=Math.max((_||0)+1,1),R=I[0],O=A.count();R!==0&&L>1&&O/L>2&&(R=Math.round(Math.ceil(R/L)*L));var N=t(m),z=k.get("showMinLabel")||N,V=k.get("showMaxLabel")||N;z&&R!==I[0]&&G(I[0]);for(var B=R;B<=I[1];B+=L)G(B);function G(E){D.push(M?E:{formattedLabel:S(E),rawLabel:A.getLabel(E),tickValue:E})}return V&&B!==I[1]&&G(I[1]),D}function d(m,_,M){var S=m.scale,A=h(m),I=[];return p.each(S.getTicks(),function(k){var D=S.getLabel(k);_(k,D)&&I.push(M?k:{formattedLabel:A(k),rawLabel:D,tickValue:k})}),I}C.createAxisLabels=function(m){var _,M,S,A,I,k;return m.type==="category"?(M=(_=m).getLabelModel(),S=a(_,M),!M.get("show")||_.scale.isBlank()?{labels:[],labelCategoryInterval:S.labelCategoryInterval}:S):(I=(A=m).scale.getTicks(),k=h(A),{labels:p.map(I,function(D,L){return{formattedLabel:k(D,L),rawLabel:A.scale.getLabel(D),tickValue:D}})})},C.createAxisTicks=function(m,_){return m.type==="category"?function(M,S){var A,I,k=y(M,"ticks"),D=n(S),L=g(k,D);if(L)return L;if((!S.get("show")||M.scale.isBlank())&&(A=[]),p.isFunction(D))A=d(M,D,!0);else if(D==="auto"){var R=a(M,M.getLabelModel());I=R.labelCategoryInterval,A=p.map(R.labels,function(O){return O.tickValue})}else A=o(M,I=D,!0);return c(k,D,{ticks:A,tickCategoryInterval:I})}(m,_):{ticks:m.scale.getTicks()}},C.calculateCategoryInterval=function(m){var _,M,S=(M=(_=m).getLabelModel(),{axisRotate:_.getRotate?_.getRotate():_.isHorizontal&&!_.isHorizontal()?90:0,labelRotate:M.get("rotate")||0,font:M.getFont()}),A=h(m),I=(S.axisRotate-S.labelRotate)/180*Math.PI,k=m.scale,D=k.getExtent(),L=k.count();if(D[1]-D[0]<1)return 0;var R=1;L>40&&(R=Math.max(1,Math.floor(L/40)));for(var O=D[0],N=m.dataToCoord(O+1)-m.dataToCoord(O),z=Math.abs(N*Math.cos(I)),V=Math.abs(N*Math.sin(I)),B=0,G=0;O<=D[1];O+=R){var E=0,H=0,W=T.getBoundingRect(A(O),S.font,"center","top");E=1.3*W.width,H=1.3*W.height,B=Math.max(B,E,7),G=Math.max(G,H,7)}var $=B/z,Z=G/V;isNaN($)&&($=1/0),isNaN(Z)&&(Z=1/0);var Q=Math.max(0,Math.floor(Math.min($,Z))),Y=f(m.model),K=Y.lastAutoInterval,ne=Y.lastTickCount;return K!=null&&ne!=null&&1>=Math.abs(K-Q)&&1>=Math.abs(ne-L)&&K>Q?Q=K:(Y.lastTickCount=L,Y.lastAutoInterval=Q),Q}},91370:function(U,C,b){var p=b(23405),T=b(62751),w=b(54684),e=b(17234);function h(t,f,a){this._model=t}function n(t,f,a,y){var g=a.calendarModel,c=a.seriesModel,o=g?g.coordinateSystem:c?c.coordinateSystem:null;return o===this?o[t](y):null}h.prototype={constructor:h,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var f=(t=w.parseDate(t)).getFullYear(),a=t.getMonth()+1;a=a<10?"0"+a:a;var y=t.getDate();y=y<10?"0"+y:y;var g=t.getDay();return{y:f,m:a,d:y,day:g=Math.abs((g+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:f+"-"+a+"-"+y,date:t}},getNextNDay:function(t,f){return(f=f||0)===0||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+f),this.getDateInfo(t)},update:function(t,f){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,y=["width","height"],g=this._model.get("cellSize").slice(),c=this._model.getBoxLayoutParams(),o=this._orient==="horizontal"?[a,7]:[7,a];p.each([0,1],function(M){_(g,M)&&(c[y[M]]=g[M]*o[M])});var d={width:f.getWidth(),height:f.getHeight()},m=this._rect=T.getLayoutRect(c,d);function _(M,S){return M[S]!=null&&M[S]!=="auto"}p.each([0,1],function(M){_(g,M)||(g[M]=m[y[M]]/o[M])}),this._sw=g[0],this._sh=g[1]},dataToPoint:function(t,f){p.isArray(t)&&(t=t[0]),f==null&&(f=!0);var a=this.getDateInfo(t),y=this._rangeInfo,g=a.formatedDate;if(f&&!(a.time>=y.start.time&&a.time<y.end.time+864e5))return[NaN,NaN];var c=a.day,o=this._getRangeInfo([y.start.time,g]).nthWeek;return this._orient==="vertical"?[this._rect.x+c*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+c*this._sh+this._sh/2]},pointToData:function(t){var f=this.pointToDate(t);return f&&f.time},dataToRect:function(t,f){var a=this.dataToPoint(t,f);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},pointToDate:function(t){var f=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,y=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,f-1,y):this._getDateByWeeksAndDay(f,a-1,y)},convertToPixel:p.curry(n,"dataToPoint"),convertFromPixel:p.curry(n,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),f=t;if(p.isArray(f)&&f.length===1&&(f=f[0]),/^\d{4}$/.test(f)&&(t=[f+"-01-01",f+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(f)){var a=this.getDateInfo(f),y=a.date;y.setMonth(y.getMonth()+1);var g=this.getNextNDay(y,-1);t=[a.formatedDate,g.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(f)&&(t=[f,f]);var c=this._getRangeInfo(t);return c.start.time>c.end.time&&t.reverse(),t},_getRangeInfo:function(t){(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(f=!0,t.reverse());var f,a=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,y=new Date(t[0].time),g=y.getDate(),c=t[1].date.getDate();if(y.setDate(g+a-1),y.getDate()!==c)for(var o=y.getTime()-t[1].time>0?1:-1;y.getDate()!==c&&(y.getTime()-t[1].time)*o>0;)a-=o,y.setDate(g+a-1);var d=Math.floor((a+t[0].day+6)/7),m=f?-d+1:d-1;return f&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:d,nthWeek:m,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,f,a){var y=this._getRangeInfo(a);if(t>y.weeks||t===0&&f<y.fweek||t===y.weeks&&f>y.lweek)return!1;var g=(t-1)*7-y.fweek+f,c=new Date(y.start.time);return c.setDate(y.start.d+g),this.getDateInfo(c)}},h.dimensions=h.prototype.dimensions,h.getDimensionsInfo=h.prototype.getDimensionsInfo,h.create=function(t,f){var a=[];return t.eachComponent("calendar",function(y){var g=new h(y);a.push(g),y.coordinateSystem=g}),t.eachSeries(function(y){y.get("coordinateSystem")==="calendar"&&(y.coordinateSystem=a[y.get("calendarIndex")||0])}),a},e.register("calendar",h),U.exports=h},54466:function(U,C,b){var p=b(23405),T=b(28628),w=b(62751),e=w.getLayoutParams,h=w.sizeCalculable,n=w.mergeLayoutParam,t=T.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(a,y,g,c){var o=e(a);t.superApply(this,"init",arguments),f(a,o)},mergeOption:function(a,y){t.superApply(this,"mergeOption",arguments),f(this.option,a)}});function f(a,y){var g=a.cellSize;p.isArray(g)?g.length===1&&(g[1]=g[0]):g=a.cellSize=[g,g];var c=p.map([0,1],function(o){return h(y,o)&&(g[o]="auto"),g[o]!=null&&g[o]!=="auto"});n(a,y,{type:"box",ignoreSize:c})}U.exports=t},29952:function(U){U.exports=function(C){var b=C.getRect(),p=C.getRangeInfo();return{coordSys:{type:"calendar",x:b.x,y:b.y,width:b.width,height:b.height,cellWidth:C.getCellWidth(),cellHeight:C.getCellHeight(),rangeInfo:{start:p.start,end:p.end,weeks:p.weeks,dayCount:p.allDay}},api:{coord:function(T,w){return C.dataToPoint(T,w)}}}}},74999:function(U,C,b){var p=b(23405),T=b(7371),w=function(e,h,n,t,f){T.call(this,e,h,n),this.type=t||"value",this.position=f||"bottom"};w.prototype={constructor:w,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return e==="top"||e==="bottom"},getGlobalExtent:function(e){var h=this.getExtent();return h[0]=this.toGlobalCoord(h[0]),h[1]=this.toGlobalCoord(h[1]),e&&h[0]>h[1]&&h.reverse(),h},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,h){return this.coordToData(this.toLocalCoord(e[+(this.dim!=="x")]),h)},toLocalCoord:null,toGlobalCoord:null},p.inherits(w,T),U.exports=w},64464:function(U,C,b){var p=b(23405),T=b(28628),w=b(47329),e=b(98477),h=T.extend({type:"cartesian2dAxis",axis:null,init:function(){h.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){h.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){h.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function n(f,a){return a.type||(a.data?"category":"value")}p.merge(h.prototype,e);var t={offset:0};w("x",h,n,t),w("y",h,n,t),U.exports=h},82309:function(U,C,b){var p=b(23405);function T(e){return this._axes[e]}var w=function(e){this._axes={},this._dimList=[],this.name=e||""};w.prototype={constructor:w,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return p.map(this._dimList,T,this)},getAxesByScale:function(e){return e=e.toLowerCase(),p.filter(this.getAxes(),function(h){return h.scale.type===e})},addAxis:function(e){var h=e.dim;this._axes[h]=e,this._dimList.push(h)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,h){for(var n=this._dimList,t=e instanceof Array?[]:{},f=0;f<n.length;f++){var a=n[f],y=this._axes[a];t[a]=y[h](e[a])}return t}},U.exports=w},25141:function(U,C,b){var p=b(23405),T=b(82309);function w(e){T.call(this,e)}w.prototype={constructor:w,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var h=this.getAxis("x"),n=this.getAxis("y");return h.contain(h.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,h,n){var t=this.getAxis("x"),f=this.getAxis("y");return(n=n||[])[0]=t.toGlobalCoord(t.dataToCoord(e[0])),n[1]=f.toGlobalCoord(f.dataToCoord(e[1])),n},clampData:function(e,h){var n=this.getAxis("x").scale,t=this.getAxis("y").scale,f=n.getExtent(),a=t.getExtent(),y=n.parse(e[0]),g=t.parse(e[1]);return(h=h||[])[0]=Math.min(Math.max(Math.min(f[0],f[1]),y),Math.max(f[0],f[1])),h[1]=Math.min(Math.max(Math.min(a[0],a[1]),g),Math.max(a[0],a[1])),h},pointToData:function(e,h){var n=this.getAxis("x"),t=this.getAxis("y");return(h=h||[])[0]=n.coordToData(n.toLocalCoord(e[0])),h[1]=t.coordToData(t.toLocalCoord(e[1])),h},getOtherAxis:function(e){return this.getAxis(e.dim==="x"?"y":"x")}},p.inherits(w,T),U.exports=w},72768:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=p.isObject,w=p.each,e=p.map,h=p.indexOf;p.retrieve;var n=b(62751).getLayoutRect,t=b(51261),f=t.createScaleByModel,a=t.ifAxisCrossZero,y=t.niceScaleExtent,g=t.estimateLabelUnionRect,c=b(25141),o=b(74999),d=b(17234),m=b(91968).getStackedDimension;function _(R,O,N){return R.getCoordSysModel()===O}function M(R,O,N){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(R,O,N),this.model=R}b(35602);var S=M.prototype;function A(R,O,N,z){N.getAxesOnZeroOf=function(){return V?[V]:[]};var V,B=R[O],G=N.model,E=G.get("axisLine.onZero"),H=G.get("axisLine.onZeroAxisIndex");if(E){if(H!=null)I(B[H])&&(V=B[H]);else for(var W in B)if(B.hasOwnProperty(W)&&I(B[W])&&!z[$(B[W])]){V=B[W];break}V&&(z[$(V)]=!0)}function $(Z){return Z.dim+"_"+Z.index}}function I(R){return R&&R.type!=="category"&&R.type!=="time"&&a(R)}S.type="grid",S.axisPointerEnabled=!0,S.getRect=function(){return this._rect},S.update=function(R,O){var N=this._axesMap;this._updateScale(R,this.model),w(N.x,function(V){y(V.scale,V.model)}),w(N.y,function(V){y(V.scale,V.model)});var z={};w(N.x,function(V){A(N,"y",V,z)}),w(N.y,function(V){A(N,"x",V,z)}),this.resize(this.model,O)},S.resize=function(R,O,N){var z=n(R.getBoxLayoutParams(),{width:O.getWidth(),height:O.getHeight()});this._rect=z;var V=this._axesList;function B(){w(V,function(G){var E,H,W,$,Z=G.isHorizontal(),Q=Z?[0,z.width]:[0,z.height],Y=+!!G.inverse;G.setExtent(Q[Y],Q[1-Y]),E=G,H=Z?z.x:z.y,$=(W=E.getExtent())[0]+W[1],E.toGlobalCoord=E.dim==="x"?function(K){return K+H}:function(K){return $-K+H},E.toLocalCoord=E.dim==="x"?function(K){return K-H}:function(K){return $-K+H}})}B(),!N&&R.get("containLabel")&&(w(V,function(G){if(!G.model.get("axisLabel.inside")){var E=g(G);if(E){var H=G.isHorizontal()?"height":"width",W=G.model.get("axisLabel.margin");z[H]-=E[H]+W,G.position==="top"?z.y+=E.height+W:G.position==="left"&&(z.x+=E.width+W)}}}),B())},S.getAxis=function(R,O){var N=this._axesMap[R];if(N!=null){if(O==null){for(var z in N)if(N.hasOwnProperty(z))return N[z]}return N[O]}},S.getAxes=function(){return this._axesList.slice()},S.getCartesian=function(R,O){if(R!=null&&O!=null){var N="x"+R+"y"+O;return this._coordsMap[N]}T(R)&&(O=R.yAxisIndex,R=R.xAxisIndex);for(var z=0,V=this._coordsList;z<V.length;z++)if(V[z].getAxis("x").index===R||V[z].getAxis("y").index===O)return V[z]},S.getCartesians=function(){return this._coordsList.slice()},S.convertToPixel=function(R,O,N){var z=this._findConvertTarget(R,O);return z.cartesian?z.cartesian.dataToPoint(N):z.axis?z.axis.toGlobalCoord(z.axis.dataToCoord(N)):null},S.convertFromPixel=function(R,O,N){var z=this._findConvertTarget(R,O);return z.cartesian?z.cartesian.pointToData(N):z.axis?z.axis.coordToData(z.axis.toLocalCoord(N)):null},S._findConvertTarget=function(R,O){var N,z,V=O.seriesModel,B=O.xAxisModel||V&&V.getReferringComponents("xAxis")[0],G=O.yAxisModel||V&&V.getReferringComponents("yAxis")[0],E=O.gridModel,H=this._coordsList;return V?0>h(H,N=V.coordinateSystem)&&(N=null):B&&G?N=this.getCartesian(B.componentIndex,G.componentIndex):B?z=this.getAxis("x",B.componentIndex):G?z=this.getAxis("y",G.componentIndex):E&&E.coordinateSystem===this&&(N=this._coordsList[0]),{cartesian:N,axis:z}},S.containPoint=function(R){var O=this._coordsList[0];if(O)return O.containPoint(R)},S._initCartesian=function(R,O,N){var z={left:!1,right:!1,top:!1,bottom:!1},V={x:{},y:{}},B={x:0,y:0};if(O.eachComponent("xAxis",G("x"),this),O.eachComponent("yAxis",G("y"),this),!B.x||!B.y){this._axesMap={},this._axesList=[];return}function G(E){return function(H,W){if(_(H,R)){var $=H.get("position");E==="x"?$!=="top"&&$!=="bottom"&&z[$="bottom"]&&($=$==="top"?"bottom":"top"):$!=="left"&&$!=="right"&&z[$="left"]&&($=$==="left"?"right":"left"),z[$]=!0;var Z=new o(E,f(H),[0,0],H.get("type"),$),Q=Z.type==="category";Z.onBand=Q&&H.get("boundaryGap"),Z.inverse=H.get("inverse"),H.axis=Z,Z.model=H,Z.grid=this,Z.index=W,this._axesList.push(Z),V[E][W]=Z,B[E]++}}}this._axesMap=V,w(V.x,function(E,H){w(V.y,function(W,$){var Z="x"+H+"y"+$,Q=new c(Z);Q.grid=this,Q.model=R,this._coordsMap[Z]=Q,this._coordsList.push(Q),Q.addAxis(E),Q.addAxis(W)},this)},this)},S._updateScale=function(R,O){function N(z,V,B){w(z.mapDimension(V.dim,!0),function(G){V.scale.unionExtentFromData(z,m(z,G))})}w(this._axesList,function(z){z.scale.setExtent(1/0,-1/0)}),R.eachSeries(function(z){if(L(z)){var V=D(z),B=V[0],G=V[1];if(_(B,O)&&_(G,O)){var E=this.getCartesian(B.componentIndex,G.componentIndex),H=z.getData(),W=E.getAxis("x"),$=E.getAxis("y");H.type==="list"&&(N(H,W),N(H,$))}}},this)},S.getTooltipAxes=function(R){var O=[],N=[];return w(this.getCartesians(),function(z){var V=R!=null&&R!=="auto"?z.getAxis(R):z.getBaseAxis(),B=z.getOtherAxis(V);0>h(O,V)&&O.push(V),0>h(N,B)&&N.push(B)}),{baseAxes:O,otherAxes:N}};var k=["xAxis","yAxis"];function D(R,O){return e(k,function(N){return R.getReferringComponents(N)[0]})}function L(R){return R.get("coordinateSystem")==="cartesian2d"}M.create=function(R,O){var N=[];return R.eachComponent("grid",function(z,V){var B=new M(z,R,O);B.name="grid_"+V,B.resize(z,O,!0),z.coordinateSystem=B,N.push(B)}),R.eachSeries(function(z){if(L(z)){var V=D(z),B=V[0],G=V[1];z.coordinateSystem=B.getCoordSysModel().coordinateSystem.getCartesian(B.componentIndex,G.componentIndex)}}),N},M.dimensions=M.prototype.dimensions=c.prototype.dimensions,d.register("cartesian2d",M),U.exports=M},35602:function(U,C,b){b(64464),U.exports=b(28628).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})},2244:function(U,C,b){var p=b(23405);C.layout=function(T,w,e){e=e||{};var h=T.coordinateSystem,n=w.axis,t={},f=n.getAxesOnZeroOf()[0],a=n.position,y=f?"onZero":a,g=n.dim,c=h.getRect(),o=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},m=w.get("offset")||0,_=g==="x"?[o[2]-m,o[3]+m]:[o[0]-m,o[1]+m];if(f){var M=f.toGlobalCoord(f.dataToCoord(0));_[d.onZero]=Math.max(Math.min(M,_[1]),_[0])}t.position=[g==="y"?_[d[y]]:o[0],g==="x"?_[d[y]]:o[3]],t.rotation=Math.PI/2*+(g!=="x"),t.labelDirection=t.tickDirection=t.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],t.labelOffset=f?_[d[a]]-_[d.onZero]:0,w.get("axisTick.inside")&&(t.tickDirection=-t.tickDirection),p.retrieve(e.labelInside,w.get("axisLabel.inside"))&&(t.labelDirection=-t.labelDirection);var S=w.get("axisLabel.rotate");return t.labelRotate=y==="top"?-S:S,t.z2=1,t}},79090:function(U,C,b){var p=b(23405);function T(w,e){return e=e||[0,0],p.map(["x","y"],function(h,n){var t=this.getAxis(h),f=e[n],a=w[n]/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(f-a)-t.dataToCoord(f+a))},this)}U.exports=function(w){var e=w.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(h){return w.dataToPoint(h)},size:p.bind(T,w)}}}},88964:function(U,C,b){var p=b(23405),T=b(28761),w=b(42458),e=b(96518);function h(t,f,a,y){w.call(this,t),this.map=f;var g=e.load(f,a);this._nameCoordMap=g.nameCoordMap,this._regionsMap=g.regionsMap,this._invertLongitute=y==null||y,this.regions=g.regions,this._rect=g.boundingRect}function n(t,f,a,y){var g=a.geoModel,c=a.seriesModel,o=g?g.coordinateSystem:c?c.coordinateSystem||(c.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[t](y):null}h.prototype={constructor:h,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var f=this.regions,a=0;a<f.length;a++)if(f[a].contain(t))return!0;return!1},transformTo:function(t,f,a,y){var g=this.getBoundingRect(),c=this._invertLongitute;g=g.clone(),c&&(g.y=-g.y-g.height);var o=this._rawTransformable;if(o.transform=g.calculateTransform(new T(t,f,a,y)),o.decomposeTransform(),c){var d=o.scale;d[1]=-d[1]}o.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var f=this.regions,a=0;a<f.length;a++)if(f[a].contain(t))return f[a]},addGeoCoord:function(t,f){this._nameCoordMap.set(t,f)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,f,a){if(typeof t=="string"&&(t=this.getGeoCoord(t)),t)return w.prototype.dataToPoint.call(this,t,f,a)},convertToPixel:p.curry(n,"dataToPoint"),convertFromPixel:p.curry(n,"pointToData")},p.mixin(h,w),U.exports=h},25684:function(U,C,b){var p=b(23405),T=b(51064),w=b(28628),e=b(46082),h=b(49214),n=b(87673),t=w.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(f){w.prototype.init.apply(this,arguments),T.defaultEmphasis(f,"label",["show"])},optionUpdated:function(){var f=this.option,a=this;f.regions=n.getFilledRegions(f.regions,f.map,f.nameMap),this._optionModelMap=p.reduce(f.regions||[],function(y,g){return g.name&&y.set(g.name,new e(g,a)),y},p.createHashMap()),this.updateSelectedMap(f.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(f){return this._optionModelMap.get(f)||new e(null,this,this.ecModel)},getFormattedLabel:function(f,a){var y=this.getRegionModel(f).get("label."+a+".formatter"),g={name:f};return typeof y=="function"?(g.status=a,y(g)):typeof y=="string"?y.replace("{a}",f??""):void 0},setZoom:function(f){this.option.zoom=f},setCenter:function(f){this.option.center=f}});p.mixin(t,h),U.exports=t},62907:function(U,C,b){var p=b(28761),T=b(6973),w=b(76414),e=b(94457);function h(n,t,f){if(this.name=n,this.geometries=t,f)f=[f[0],f[1]];else{var a=this.getBoundingRect();f=[a.x+a.width/2,a.y+a.height/2]}this.center=f}h.prototype={constructor:h,properties:null,getBoundingRect:function(){var n=this._rect;if(n)return n;for(var t=Number.MAX_VALUE,f=[t,t],a=[-t,-t],y=[],g=[],c=this.geometries,o=0;o<c.length;o++)if(c[o].type==="polygon"){var d=c[o].exterior;T.fromPoints(d,y,g),w.min(f,f,y),w.max(a,a,g)}return o===0&&(f[0]=f[1]=a[0]=a[1]=0),this._rect=new p(f[0],f[1],a[0]-f[0],a[1]-f[1])},contain:function(n){var t=this.getBoundingRect(),f=this.geometries;if(!t.contain(n[0],n[1]))return!1;e:for(var a=0,y=f.length;a<y;a++)if(f[a].type==="polygon"){var g=f[a].exterior,c=f[a].interiors;if(e.contain(g,n[0],n[1])){for(var o=0;o<(c?c.length:0);o++)if(e.contain(c[o]))continue e;return!0}}return!1},transformTo:function(n,t,f,a){var y=this.getBoundingRect(),g=y.width/y.height;f?a||(a=f/g):f=g*a;for(var c=new p(n,t,f,a),o=y.calculateTransform(c),d=this.geometries,m=0;m<d.length;m++)if(d[m].type==="polygon"){for(var _=d[m].exterior,M=d[m].interiors,S=0;S<_.length;S++)w.applyTransform(_[S],_[S],o);for(var A=0;A<(M?M.length:0);A++)for(var S=0;S<M[A].length;S++)w.applyTransform(M[A][S],M[A][S],o)}(y=this._rect).copy(c),this.center=[y.x+y.width/2,y.y+y.height/2]},cloneShallow:function(n){n==null&&(n=this.name);var t=new h(n,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}},U.exports=h},25604:function(U){var C=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];U.exports=function(b,p){b==="china"&&p.name==="台湾"&&p.geometries.push({type:"polygon",exterior:C[0]})}},50441:function(U){var C={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};U.exports=function(b,p){if(b==="world"){var T=C[p.name];if(T){var w=p.center;w[0]=T[0],w[1]=T[1]}}}},79445:function(U,C,b){for(var p=b(23405),T=b(62907),w=[126,25],e=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],h=0;h<e.length;h++)for(var n=0;n<e[h].length;n++)e[h][n][0]/=10.5,e[h][n][1]/=-14,e[h][n][0]+=w[0],e[h][n][1]+=w[1];U.exports=function(t,f){t==="china"&&f.push(new T("南海诸岛",p.map(e,function(a){return{type:"polygon",exterior:a}}),w))}},27042:function(U){var C={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};U.exports=function(b,p){if(b==="china"){var T=C[p.name];if(T){var w=p.center;w[0]+=T[0]/10.5,w[1]+=-T[1]/14}}}},87673:function(U,C,b){b(9129).__DEV__;var p=b(87930),T=b(23405),w=b(88964),e=b(62751),h=b(54684),n=b(96518),t=b(95723);function f(g,c){var o,d,m=g.get("boundingCoords");if(m!=null){var _=m[0],M=m[1];isNaN(_[0])||isNaN(_[1])||isNaN(M[0])||isNaN(M[1])||this.setBoundingRect(_[0],_[1],M[0]-_[0],M[1]-_[1])}var S=this.getBoundingRect(),A=g.get("layoutCenter"),I=g.get("layoutSize"),k=c.getWidth(),D=c.getHeight(),L=S.width/S.height*this.aspectScale,R=!1;if(A&&I&&(A=[h.parsePercent(A[0],k),h.parsePercent(A[1],D)],I=h.parsePercent(I,Math.min(k,D)),isNaN(A[0])||isNaN(A[1])||isNaN(I)||(R=!0)),R){var d={};L>1?(d.width=I,d.height=I/L):(d.height=I,d.width=I*L),d.y=A[1]-d.height/2,d.x=A[0]-d.width/2}else(o=g.getBoxLayoutParams()).aspect=L,d=e.getLayoutRect(o,{width:k,height:D});this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(g.get("center")),this.setZoom(g.get("zoom"))}function a(g,c){T.each(c.get("geoCoord"),function(o,d){g.addGeoCoord(d,o)})}var y={dimensions:w.prototype.dimensions,create:function(g,c){var o=[];g.eachComponent("geo",function(m,_){var M=m.get("map"),S=m.get("aspectScale"),A=!0,I=t.retrieveMap(M);I&&I[0]&&I[0].type==="svg"?(S==null&&(S=1),A=!1):S==null&&(S=.75);var k=new w(M+_,M,m.get("nameMap"),A);k.aspectScale=S,k.zoomLimit=m.get("scaleLimit"),o.push(k),a(k,m),m.coordinateSystem=k,k.model=m,k.resize=f,k.resize(m,c)}),g.eachSeries(function(m){if(m.get("coordinateSystem")==="geo"){var _=m.get("geoIndex")||0;m.coordinateSystem=o[_]}});var d={};return g.eachSeriesByType("map",function(m){if(!m.getHostGeoModel()){var _=m.getMapType();d[_]=d[_]||[],d[_].push(m)}}),T.each(d,function(m,_){var M=T.map(m,function(A){return A.get("nameMap")}),S=new w(_,_,T.mergeAll(M));S.zoomLimit=T.retrieve.apply(null,T.map(m,function(A){return A.get("scaleLimit")})),o.push(S),S.resize=f,S.aspectScale=m[0].get("aspectScale"),S.resize(m[0],c),T.each(m,function(A){A.coordinateSystem=S,a(S,A)})}),o},getFilledRegions:function(g,c,o){for(var d=(g||[]).slice(),m=T.createHashMap(),_=0;_<d.length;_++)m.set(d[_].name,d[_]);var M=n.load(c,o);return T.each(M.regions,function(S){var A=S.name;m.get(A)||d.push({name:A})}),d}};p.registerCoordinateSystem("geo",y),U.exports=y},24378:function(U,C,b){var p=b(23405).each,T=b(61167),w=b(51064).makeInner,e=b(79445),h=b(27042),n=b(50441),t=b(25604),f=w();U.exports={load:function(a,y){var g,c=f(y).parsed;if(c)return c;var o=y.specialAreas||{},d=y.geoJSON;try{g=d?T(d):[]}catch(m){throw Error(`Invalid geoJson format
`+m.message)}return p(g,function(m){var _=m.name;h(a,m),n(a,m),t(a,m);var M=o[_];M&&m.transformTo(M.left,M.top,M.width,M.height)}),e(a,g),f(y).parsed={regions:g,boundingRect:function(m){for(var _,M=0;M<m.length;M++){var S=m[M].getBoundingRect();(_=_||S.clone()).union(S)}return _}(g)}}}},92123:function(U,C,b){var p=b(66836),T=p.parseSVG,w=p.makeViewBoxTransform,e=b(18583),h=b(86367),n=b(23405),t=n.assert,f=n.createHashMap,a=b(28761),y=(0,b(51064).makeInner)();function g(c,o){var d,m,_=c.svgXML;try{m=(d=_&&T(_,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,t(m!=null)}catch(D){throw Error(`Invalid svg format
`+D.message)}var M=d.width,S=d.height,A=d.viewBoxRect;if(o||(o=M==null||S==null?m.getBoundingRect():new a(0,0,0,0),M!=null&&(o.width=M),S!=null&&(o.height=S)),A){var I=w(A,o.width,o.height),k=m;(m=new e).add(k),k.scale=I.scale,k.position=I.position}return m.setClipPath(new h({shape:o.plain()})),{root:m,boundingRect:o}}U.exports={load:function(c,o){var d=y(o).originRoot;if(d)return{root:d,boundingRect:y(o).boundingRect};var m=g(o);return y(o).originRoot=m.root,y(o).boundingRect=m.boundingRect,m},makeGraphic:function(c,o,d){var m=y(o),_=m.rootMap||(m.rootMap=f()),M=_.get(d);if(M)return M;var S=m.originRoot,A=m.boundingRect;return m.originRootHostKey?M=g(o,A).root:(m.originRootHostKey=d,M=S),_.set(d,M)},removeGraphic:function(c,o,d){var m=y(o),_=m.rootMap;_&&_.removeKey(d),d===m.originRootHostKey&&(m.originRootHostKey=null)}}},96518:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=p.each,w=p.createHashMap,e=b(95723),h=b(24378),n=b(92123),t=b(28761),f={geoJSON:h,svg:n};function a(g){return function(c,o){var d=y(c),m=[];return T(d,function(_){var M=f[_.type][g];M&&m.push(M(c,_,o))}),m}}function y(g){return e.retrieveMap(g)||[]}U.exports={load:function(g,c){var o,d=[],m=w(),_=w();return T(y(g),function(M){var S=f[M.type].load(g,M);T(S.regions,function(I){var k=I.name;c&&c.hasOwnProperty(k)&&(I=I.cloneShallow(k=c[k])),d.push(I),m.set(k,I),_.set(k,I.center)});var A=S.boundingRect;A&&(o?o.union(A):o=A.clone())}),{regions:d,regionsMap:m,nameCoordMap:_,boundingRect:o||new t(0,0,0,0)}},makeGraphic:a("makeGraphic"),removeGraphic:a("removeGraphic")}},95723:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=p.createHashMap,w=p.isString,e=p.isArray,h=p.each;p.assert;var n=b(66836).parseXML,t=T(),f={geoJSON:function(a){var y=a.source;a.geoJSON=w(y)?typeof JSON<"u"&&JSON.parse?JSON.parse(y):Function("return ("+y+");")():y},svg:function(a){a.svgXML=n(a.source)}};U.exports={registerMap:function(a,y,g){var c;return e(y)?c=y:y.svg?c=[{type:"svg",source:y.svg,specialAreas:y.specialAreas}]:(y.geoJson&&!y.features&&(g=y.specialAreas,y=y.geoJson),c=[{type:"geoJSON",source:y,specialAreas:g}]),h(c,function(o){var d=o.type;d==="geoJson"&&(d=o.type="geoJSON"),(0,f[d])(o)}),t.set(a,c)},retrieveMap:function(a){return t.get(a)}}},61167:function(U,C,b){var p=b(23405),T=b(62907);function w(e,h,n){for(var t=[],f=h[0],a=h[1],y=0;y<e.length;y+=2){var g=e.charCodeAt(y)-64,c=e.charCodeAt(y+1)-64;c=c>>1^-(1&c),g=(g>>1^-(1&g))+f,c+=a,f=g,a=c,t.push([g/n,c/n])}return t}U.exports=function(e){return function(h){if(h.UTF8Encoding){var n=h.UTF8Scale;n==null&&(n=1024);for(var t=h.features,f=0;f<t.length;f++)for(var a=t[f].geometry,y=a.coordinates,g=a.encodeOffsets,c=0;c<y.length;c++){var o=y[c];if(a.type==="Polygon")y[c]=w(o,g[c],n);else if(a.type==="MultiPolygon")for(var d=0;d<o.length;d++){var m=o[d];o[d]=w(m,g[c][d],n)}}h.UTF8Encoding=!1}}(e),p.map(p.filter(e.features,function(h){return h.geometry&&h.properties&&h.geometry.coordinates.length>0}),function(h){var n=h.properties,t=h.geometry,f=t.coordinates,a=[];t.type==="Polygon"&&a.push({type:"polygon",exterior:f[0],interiors:f.slice(1)}),t.type==="MultiPolygon"&&p.each(f,function(g){g[0]&&a.push({type:"polygon",exterior:g[0],interiors:g.slice(1)})});var y=new T(n.name,a,n.cp);return y.properties=n,y})}},44988:function(U,C,b){var p=b(23405);function T(w,e){return e=e||[0,0],p.map([0,1],function(h){var n=e[h],t=w[h]/2,f=[],a=[];return f[h]=n-t,a[h]=n+t,f[1-h]=a[1-h]=e[1-h],Math.abs(this.dataToPoint(f)[h]-this.dataToPoint(a)[h])},this)}U.exports=function(w){var e=w.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:w.getZoom()},api:{coord:function(h){return w.dataToPoint(h)},size:p.bind(T,w)}}}},89427:function(U,C,b){var p=b(23405),T=b(28628),w=b(74106),e=b(47329),h=b(54684),n=b(98477),t=T.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return w([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(f){var a=this.activeIntervals=p.clone(f);if(a)for(var y=a.length-1;y>=0;y--)h.asc(a[y])},getActiveState:function(f){var a=this.activeIntervals;if(!a.length)return"normal";if(f==null||isNaN(f))return"inactive";if(a.length===1){var y=a[0];if(y[0]<=f&&f<=y[1])return"active"}else for(var g=0,c=a.length;g<c;g++)if(a[g][0]<=f&&f<=a[g][1])return"active";return"inactive"}});p.merge(t.prototype,n),e("parallel",t,function(f,a){return a.type||(a.data?"category":"value")},{type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10}),U.exports=t},16347:function(U,C,b){var p=b(23405),T=b(79442),w=b(62751),e=b(51261),h=b(60467),n=b(51747),t=b(54684),f=b(2488),a=p.each,y=Math.min,g=Math.max,c=Math.floor,o=Math.ceil,d=t.round,m=Math.PI;function _(S,A,I){this._axesMap=p.createHashMap(),this._axesLayout={},this.dimensions=S.dimensions,this._rect,this._model=S,this._init(S,A,I)}function M(S,A){return y(g(S,A[0]),A[1])}_.prototype={type:"parallel",constructor:_,_init:function(S,A,I){var k=S.dimensions,D=S.parallelAxisIndex;a(k,function(L,R){var O=D[R],N=A.getComponent("parallelAxis",O),z=this._axesMap.set(L,new h(L,e.createScaleByModel(N),[0,0],N.get("type"),O)),V=z.type==="category";z.onBand=V&&N.get("boundaryGap"),z.inverse=N.get("inverse"),N.axis=z,z.model=N,z.coordinateSystem=N.coordinateSystem=this},this)},update:function(S,A){this._updateAxesFromSeries(this._model,S)},containPoint:function(S){var A=this._makeLayoutInfo(),I=A.axisBase,k=A.layoutBase,D=A.pixelDimIndex,L=S[1-D],R=S[D];return L>=I&&L<=I+A.axisLength&&R>=k&&R<=k+A.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(S,A){A.eachSeries(function(I){if(S.contains(I,A)){var k=I.getData();a(this.dimensions,function(D){var L=this._axesMap.get(D);L.scale.unionExtentFromData(k,k.mapDimension(D)),e.niceScaleExtent(L.scale,L.model)},this)}},this)},resize:function(S,A){this._rect=w.getLayoutRect(S.getBoxLayoutParams(),{width:A.getWidth(),height:A.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var S,A=this._model,I=this._rect,k=["x","y"],D=["width","height"],L=A.get("layout"),R=+(L!=="horizontal"),O=I[D[R]],N=[0,O],z=this.dimensions.length,V=M(A.get("axisExpandWidth"),N),B=M(A.get("axisExpandCount")||0,[0,z]),G=A.get("axisExpandable")&&z>3&&z>B&&B>1&&V>0&&O>0,E=A.get("axisExpandWindow");E?(S=M(E[1]-E[0],N),E[1]=E[0]+S):(S=M(V*(B-1),N),(E=[V*(A.get("axisExpandCenter")||c(z/2))-S/2])[1]=E[0]+S);var H=(O-S)/(z-B);H<3&&(H=0);var W=[c(d(E[0]/V,1))+1,o(d(E[1]/V,1))-1],$=H/V*E[0];return{layout:L,pixelDimIndex:R,layoutBase:I[k[R]],layoutLength:O,axisBase:I[k[1-R]],axisLength:I[D[1-R]],axisExpandable:G,axisExpandWidth:V,axisCollapseWidth:H,axisExpandWindow:E,axisCount:z,winInnerIndices:W,axisExpandWindow0Pos:$}},_layoutAxes:function(){var S=this._rect,A=this._axesMap,I=this.dimensions,k=this._makeLayoutInfo(),D=k.layout;A.each(function(L){var R=[0,k.axisLength],O=+!!L.inverse;L.setExtent(R[O],R[1-O])}),a(I,function(L,R){var O=(k.axisExpandable?function(G,E){var H,W,$=E.layoutLength,Z=E.axisExpandWidth,Q=E.axisCount,Y=E.axisCollapseWidth,K=E.winInnerIndices,ne=Y,X=!1;return G<K[0]?(H=G*Y,W=Y):G<=K[1]?(H=E.axisExpandWindow0Pos+G*Z-E.axisExpandWindow[0],ne=Z,X=!0):(H=$-(Q-1-G)*Y,W=Y),{position:H,axisNameAvailableWidth:ne,axisLabelShow:X,nameTruncateMaxWidth:W}}:function(G,E){var H=E.layoutLength/(E.axisCount-1);return{position:H*G,axisNameAvailableWidth:H,axisLabelShow:!0}})(R,k),N={horizontal:{x:O.position,y:k.axisLength},vertical:{x:0,y:O.position}},z=[N[D].x+S.x,N[D].y+S.y],V={horizontal:m/2,vertical:0}[D],B=T.create();T.rotate(B,B,V),T.translate(B,B,z),this._axesLayout[L]={position:z,rotation:V,transform:B,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(S){return this._axesMap.get(S)},dataToPoint:function(S,A){return this.axisCoordToPoint(this._axesMap.get(A).dataToCoord(S),A)},eachActiveState:function(S,A,I,k){I==null&&(I=0),k==null&&(k=S.count());var D,L=this._axesMap,R=this.dimensions,O=[],N=[];p.each(R,function(H){O.push(S.mapDimension(H)),N.push(L.get(H).model)});for(var z=this.hasAxisBrushed(),V=I;V<k;V++){if(z){D="active";for(var B=S.getValues(O,V),G=0,E=R.length;G<E;G++)if(N[G].getActiveState(B[G])==="inactive"){D="inactive";break}}else D="normal";A(D,V)}},hasAxisBrushed:function(){for(var S=this.dimensions,A=this._axesMap,I=!1,k=0,D=S.length;k<D;k++)A.get(S[k]).model.getActiveState()!=="normal"&&(I=!0);return I},axisCoordToPoint:function(S,A){var I=this._axesLayout[A];return n.applyTransform([S,0],I.transform)},getAxisLayout:function(S){return p.clone(this._axesLayout[S])},getSlidedAxisExpandWindow:function(S){var A,I=this._makeLayoutInfo(),k=I.pixelDimIndex,D=I.axisExpandWindow.slice(),L=D[1]-D[0],R=[0,I.axisExpandWidth*(I.axisCount-1)];if(!this.containPoint(S))return{behavior:"none",axisExpandWindow:D};var O=S[k]-I.layoutBase-I.axisExpandWindow0Pos,N="slide",z=I.axisCollapseWidth,V=this._model.get("axisExpandSlideTriggerArea"),B=V[0]!=null;if(z)B&&z&&O<L*V[0]?(N="jump",A=O-L*V[2]):B&&z&&O>L*(1-V[0])?(N="jump",A=O-L*(1-V[2])):(A=O-L*V[1])>=0&&(A=O-L*(1-V[1]))<=0&&(A=0),(A*=I.axisExpandWidth/z)?f(A,D,R,"all"):N="none";else{var L=D[1]-D[0];(D=[g(0,R[1]*O/L-L/2)])[1]=y(R[1],D[0]+L),D[0]=D[1]-L}return{axisExpandWindow:D,behavior:N}}},U.exports=_},60467:function(U,C,b){var p=b(23405),T=b(7371),w=function(e,h,n,t,f){T.call(this,e,h,n),this.type=t||"value",this.axisIndex=f};w.prototype={constructor:w,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},p.inherits(w,T),U.exports=w},97421:function(U,C,b){var p=b(23405),T=b(28628);b(89427),U.exports=T.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){T.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(w){var e=this.option;w&&p.merge(e,w,!0),this._initDimensions()},contains:function(w,e){var h=w.get("parallelIndex");return h!=null&&e.getComponent("parallel",h)===this},setAxisExpand:function(w){p.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){w.hasOwnProperty(e)&&(this.option[e]=w[e])},this)},_initDimensions:function(){var w=this.dimensions=[],e=this.parallelAxisIndex=[],h=p.filter(this.dependentModels.parallelAxis,function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);p.each(h,function(n){w.push("dim"+n.get("dim")),e.push(n.componentIndex)})}})},20694:function(U,C,b){var p=b(16347);b(17234).register("parallel",{create:function(T,w){var e=[];return T.eachComponent("parallel",function(h,n){var t=new p(h,T,w);t.name="parallel_"+n,t.resize(h,w),h.coordinateSystem=t,t.model=h,e.push(t)}),T.eachSeries(function(h){if(h.get("coordinateSystem")==="parallel"){var n=T.queryComponents({mainType:"parallel",index:h.get("parallelIndex"),id:h.get("parallelId")})[0];h.coordinateSystem=n.coordinateSystem}}),e}})},71642:function(U,C,b){var p=b(23405),T=b(51064);U.exports=function(w){var e,h;(function(n){if(!n.parallel){var t=!1;p.each(n.series,function(f){f&&f.type==="parallel"&&(t=!0)}),t&&(n.parallel=[{}])}})(w),e=w,h=T.normalizeToArray(e.parallelAxis),p.each(h,function(n){if(p.isObject(n)){var t=n.parallelIndex||0,f=T.normalizeToArray(e.parallel)[t];f&&f.parallelAxisDefault&&p.merge(n,f.parallelAxisDefault,!1)}})}},91018:function(U,C,b){var p=b(23405),T=b(24570),w=b(7371),e=(0,b(51064).makeInner)();function h(n,t){t=t||[0,360],w.call(this,"angle",n,t),this.type="category"}h.prototype={constructor:h,pointToData:function(n,t){return this.polar.pointToData(n,t)[+(this.dim!=="radius")]},dataToAngle:w.prototype.dataToCoord,angleToData:w.prototype.coordToData,calculateCategoryInterval:function(){var n=this.getLabelModel(),t=this.scale,f=t.getExtent(),a=t.count();if(f[1]-f[0]<1)return 0;var y=f[0],g=Math.abs(this.dataToCoord(y+1)-this.dataToCoord(y)),c=Math.max(T.getBoundingRect(y,n.getFont(),"center","top").height,7)/g;isNaN(c)&&(c=1/0);var o=Math.max(0,Math.floor(c)),d=e(this.model),m=d.lastAutoInterval,_=d.lastTickCount;return m!=null&&_!=null&&1>=Math.abs(m-o)&&1>=Math.abs(_-a)&&m>o?o=m:(d.lastTickCount=a,d.lastAutoInterval=o),o}},p.inherits(h,w),U.exports=h},96006:function(U,C,b){var p=b(23405),T=b(28628),w=b(47329),e=b(98477),h=T.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});p.merge(h.prototype,e);function n(t,f){return f.type||(f.data?"category":"value")}w("angle",h,n,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),w("radius",h,n,{splitNumber:5})},72569:function(U,C,b){var p=b(96493),T=b(91018),w=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new p,this._angleAxis=new T,this._radiusAxis.polar=this._angleAxis.polar=this};w.prototype={type:"polar",axisPointerEnabled:!0,constructor:w,dimensions:["radius","angle"],model:null,containPoint:function(e){var h=this.pointToCoord(e);return this._radiusAxis.contain(h[0])&&this._angleAxis.contain(h[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var h=[],n=this._angleAxis,t=this._radiusAxis;return n.scale.type===e&&h.push(n),t.scale.type===e&&h.push(t),h},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var h=this._angleAxis;return e===h?this._radiusAxis:h},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var h=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[h],otherAxes:[this.getOtherAxis(h)]}},dataToPoint:function(e,h){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],h),this._angleAxis.dataToAngle(e[1],h)])},pointToData:function(e,h){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],h),this._angleAxis.angleToData(n[1],h)]},pointToCoord:function(e){var h=e[0]-this.cx,n=e[1]-this.cy,t=this.getAngleAxis(),f=t.getExtent(),a=Math.min(f[0],f[1]),y=Math.max(f[0],f[1]);t.inverse?a=y-360:y=a+360;var g=Math.sqrt(h*h+n*n);h/=g;for(var c=Math.atan2(-(n/=g),h)/Math.PI*180,o=c<a?1:-1;c<a||c>y;)c+=360*o;return[g,c]},coordToPoint:function(e){var h=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*h+this.cx,-Math.sin(n)*h+this.cy]}},U.exports=w},44887:function(U,C,b){var p=b(87930);b(96006),U.exports=p.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(T){var w;return this.ecModel.eachComponent(T,function(e){e.getCoordSysModel()===this&&(w=e)},this),w},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},96493:function(U,C,b){var p=b(23405),T=b(7371);function w(e,h){T.call(this,"radius",e,h),this.type="category"}w.prototype={constructor:w,pointToData:function(e,h){return this.polar.pointToData(e,h)[+(this.dim!=="radius")]},dataToRadius:T.prototype.dataToCoord,radiusToData:T.prototype.coordToData},p.inherits(w,T),U.exports=w},27246:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(72569),w=b(54684).parsePercent,e=b(51261),h=e.createScaleByModel,n=e.niceScaleExtent,t=b(17234),f=b(91968).getStackedDimension;function a(c,o){var d=this,m=d.getAngleAxis(),_=d.getRadiusAxis();if(m.scale.setExtent(1/0,-1/0),_.scale.setExtent(1/0,-1/0),c.eachSeries(function(A){if(A.coordinateSystem===d){var I=A.getData();p.each(I.mapDimension("radius",!0),function(k){_.scale.unionExtentFromData(I,f(I,k))}),p.each(I.mapDimension("angle",!0),function(k){m.scale.unionExtentFromData(I,f(I,k))})}}),n(m.scale,m.model),n(_.scale,_.model),m.type==="category"&&!m.onBand){var M=m.getExtent(),S=360/m.scale.count();m.inverse?M[1]+=S:M[1]-=S,m.setExtent(M[0],M[1])}}function y(c,o){if(c.type=o.get("type"),c.scale=h(o),c.onBand=o.get("boundaryGap")&&c.type==="category",c.inverse=o.get("inverse"),o.mainType==="angleAxis"){c.inverse^=o.get("clockwise");var d=o.get("startAngle");c.setExtent(d,d+(c.inverse?-360:360))}o.axis=c,c.model=o}b(44887);var g={dimensions:T.prototype.dimensions,create:function(c,o){var d=[];return c.eachComponent("polar",function(m,_){var M,S,A,I,k,D,L=new T(_);L.update=a;var R=L.getRadiusAxis(),O=L.getAngleAxis(),N=m.findAxisModel("radiusAxis"),z=m.findAxisModel("angleAxis");y(R,N),y(O,z),M=m.get("center"),S=o.getWidth(),A=o.getHeight(),L.cx=w(M[0],S),L.cy=w(M[1],A),I=L.getRadiusAxis(),k=Math.min(S,A)/2,D=w(m.get("radius"),k),I.inverse?I.setExtent(D,0):I.setExtent(0,D),d.push(L),m.coordinateSystem=L,L.model=m}),c.eachSeries(function(m){if(m.get("coordinateSystem")==="polar"){var _=c.queryComponents({mainType:"polar",index:m.get("polarIndex"),id:m.get("polarId")})[0];m.coordinateSystem=_.coordinateSystem}}),d}};t.register("polar",g)},78147:function(U,C,b){var p=b(23405);function T(w,e){return p.map(["Radius","Angle"],function(h,n){var t=this["get"+h+"Axis"](),f=e[n],a=w[n]/2,y="dataTo"+h,g=t.type==="category"?t.getBandWidth():Math.abs(t[y](f-a)-t[y](f+a));return h==="Angle"&&(g=g*Math.PI/180),g},this)}U.exports=function(w){var e=w.getRadiusAxis(),h=w.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:w.cx,cy:w.cy,r:n[1],r0:n[0]},api:{coord:p.bind(function(t){var f=e.dataToRadius(t[0]),a=h.dataToAngle(t[1]),y=w.coordToPoint([f,a]);return y.push(f,a*Math.PI/180),y}),size:p.bind(T,w)}}}},61934:function(U,C,b){var p=b(23405),T=b(7371);function w(e,h,n){T.call(this,e,h,n),this.type="value",this.angle=0,this.name="",this.model}p.inherits(w,T),U.exports=w},6717:function(U,C,b){var p=b(23405),T=b(61934),w=b(86855),e=b(54684),h=b(51261),n=h.getScaleExtent,t=h.niceScaleExtent,f=b(17234);function a(y,g,c){this._model=y,this.dimensions=[],this._indicatorAxes=p.map(y.getIndicatorModels(),function(o,d){var m="indicator_"+d,_=new T(m,new w);return _.name=o.get("name"),_.model=o,o.axis=_,this.dimensions.push(m),_},this),this.resize(y,c),this.cx,this.cy,this.r,this.r0,this.startAngle}a.prototype.getIndicatorAxes=function(){return this._indicatorAxes},a.prototype.dataToPoint=function(y,g){var c=this._indicatorAxes[g];return this.coordToPoint(c.dataToCoord(y),g)},a.prototype.coordToPoint=function(y,g){var c=this._indicatorAxes[g].angle;return[this.cx+y*Math.cos(c),this.cy-y*Math.sin(c)]},a.prototype.pointToData=function(y){var g,c=y[0]-this.cx,o=y[1]-this.cy,d=Math.sqrt(c*c+o*o);c/=d;for(var m=Math.atan2(-(o/=d),c),_=1/0,M=-1,S=0;S<this._indicatorAxes.length;S++){var A=this._indicatorAxes[S],I=Math.abs(m-A.angle);I<_&&(g=A,M=S,_=I)}return[M,+(g&&g.coodToData(d))]},a.prototype.resize=function(y,g){var c=y.get("center"),o=g.getWidth(),d=g.getHeight(),m=Math.min(o,d)/2;this.cx=e.parsePercent(c[0],o),this.cy=e.parsePercent(c[1],d),this.startAngle=y.get("startAngle")*Math.PI/180;var _=y.get("radius");(typeof _=="string"||typeof _=="number")&&(_=[0,_]),this.r0=e.parsePercent(_[0],m),this.r=e.parsePercent(_[1],m),p.each(this._indicatorAxes,function(M,S){M.setExtent(this.r0,this.r);var A=this.startAngle+S*Math.PI*2/this._indicatorAxes.length;M.angle=Math.atan2(Math.sin(A),Math.cos(A))},this)},a.prototype.update=function(y,g){var c=this._indicatorAxes,o=this._model;p.each(c,function(_){_.scale.setExtent(1/0,-1/0)}),y.eachSeriesByType("radar",function(_,M){if(_.get("coordinateSystem")==="radar"&&y.getComponent("radar",_.get("radarIndex"))===o){var S=_.getData();p.each(c,function(A){A.scale.unionExtentFromData(S,S.mapDimension(A.dim))})}},this);var d=o.get("splitNumber");function m(_){var M=Math.pow(10,Math.floor(Math.log(_)/Math.LN10)),S=_/M;return S===2?S=5:S*=2,S*M}p.each(c,function(_,M){var S,A,I=n(_.scale,_.model);t(_.scale,_.model);var k=_.model,D=_.scale,L=k.getMin(),R=k.getMax(),O=D.getInterval();if(L!=null&&R!=null)D.setExtent(+L,+R),D.setInterval((R-L)/d);else if(L!=null)do S=L+O*d,D.setExtent(+L,S),D.setInterval(O),O=m(O);while(S<I[1]&&isFinite(S)&&isFinite(I[1]));else if(R!=null)do A=R-O*d,D.setExtent(A,+R),D.setInterval(O),O=m(O);while(A>I[0]&&isFinite(A)&&isFinite(I[0]));else{D.getTicks().length-1>d&&(O=m(O));var N=Math.round((I[0]+I[1])/2/O)*O,z=Math.round(d/2);D.setExtent(e.round(N-z*O),e.round(N+(d-z)*O)),D.setInterval(O)}})},a.dimensions=[],a.create=function(y,g){var c=[];return y.eachComponent("radar",function(o){var d=new a(o,y,g);c.push(d),o.coordinateSystem=d}),y.eachSeriesByType("radar",function(o){o.get("coordinateSystem")==="radar"&&(o.coordinateSystem=c[o.get("radarIndex")||0])}),c},f.register("radar",a),U.exports=a},87775:function(U,C,b){var p=b(87930),T=b(23405),w=b(68639),e=b(46082),h=b(98477),n=w.valueAxis;function t(f,a){return T.defaults({show:a},f)}U.exports=p.extendComponentModel({type:"radar",optionUpdated:function(){var f=this.get("boundaryGap"),a=this.get("splitNumber"),y=this.get("scale"),g=this.get("axisLine"),c=this.get("axisTick"),o=this.get("axisLabel"),d=this.get("name"),m=this.get("name.show"),_=this.get("name.formatter"),M=this.get("nameGap"),S=this.get("triggerEvent"),A=T.map(this.get("indicator")||[],function(I){I.max!=null&&I.max>0&&!I.min?I.min=0:I.min!=null&&I.min<0&&!I.max&&(I.max=0);var k=d;if(I.color!=null&&(k=T.defaults({color:I.color},d)),I=T.merge(T.clone(I),{boundaryGap:f,splitNumber:a,scale:y,axisLine:g,axisTick:c,axisLabel:o,name:I.text,nameLocation:"end",nameGap:M,nameTextStyle:k,triggerEvent:S},!1),m||(I.name=""),typeof _=="string"){var D=I.name;I.name=_.replace("{value}",D??"")}else typeof _=="function"&&(I.name=_(I.name,I));var L=T.extend(new e(I,null,this.ecModel),h);return L.mainType="radar",L.componentIndex=this.componentIndex,L},this);this.getIndicatorModels=function(){return A}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:T.merge({lineStyle:{color:"#bbb"}},n.axisLine),axisLabel:t(n.axisLabel,!1),axisTick:t(n.axisTick,!1),splitLine:t(n.splitLine,!0),splitArea:t(n.splitArea,!0),indicator:[]}})},27252:function(U,C,b){var p=b(23405),T=b(28628),w=b(47329),e=b(98477),h=T.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});p.merge(h.prototype,e),w("single",h,function(n,t){return t.type||(t.data?"category":"value")},{left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}}),U.exports=h},64135:function(U,C,b){var p=b(12337),T=b(51261),w=b(62751).getLayoutRect,e=b(23405).each;function h(n,t,f){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(n,t,f),this.model=n}h.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:h,_init:function(n,t,f){var a=new p(this.dimension,T.createScaleByModel(n),[0,0],n.get("type"),n.get("position")),y=a.type==="category";a.onBand=y&&n.get("boundaryGap"),a.inverse=n.get("inverse"),a.orient=n.get("orient"),n.axis=a,a.model=n,a.coordinateSystem=this,this._axis=a},update:function(n,t){n.eachSeries(function(f){if(f.coordinateSystem===this){var a=f.getData();e(a.mapDimension(this.dimension,!0),function(y){this._axis.scale.unionExtentFromData(a,y)},this),T.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(n,t){this._rect=w({left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var n=this._rect,t=this._axis,f=t.isHorizontal(),a=f?[0,n.width]:[0,n.height],y=+!!t.reverse;t.setExtent(a[y],a[1-y]),this._updateAxisTransform(t,f?n.x:n.y)},_updateAxisTransform:function(n,t){var f=n.getExtent(),a=f[0]+f[1],y=n.isHorizontal();n.toGlobalCoord=y?function(g){return g+t}:function(g){return a-g+t},n.toLocalCoord=y?function(g){return g-t}:function(g){return a-g+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(n){var t=this.getRect(),f=this.getAxis();return f.orient==="horizontal"?f.contain(f.toLocalCoord(n[0]))&&n[1]>=t.y&&n[1]<=t.y+t.height:f.contain(f.toLocalCoord(n[1]))&&n[0]>=t.y&&n[0]<=t.y+t.height},pointToData:function(n){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(n[+(t.orient!=="horizontal")]))]},dataToPoint:function(n){var t=this.getAxis(),f=this.getRect(),a=[],y=+(t.orient!=="horizontal");return n instanceof Array&&(n=n[0]),a[y]=t.toGlobalCoord(t.dataToCoord(+n)),a[1-y]=y===0?f.y+f.height/2:f.x+f.width/2,a}},U.exports=h},12337:function(U,C,b){var p=b(23405),T=b(7371),w=function(e,h,n,t,f){T.call(this,e,h,n),this.type=t||"value",this.position=f||"bottom",this.orient=null};w.prototype={constructor:w,model:null,isHorizontal:function(){var e=this.position;return e==="top"||e==="bottom"},pointToData:function(e,h){return this.coordinateSystem.pointToData(e,h)[0]},toGlobalCoord:null,toLocalCoord:null},p.inherits(w,T),U.exports=w},65596:function(U,C,b){var p=b(23405);function T(w,e){var h=this.getAxis(),n=e instanceof Array?e[0]:e,t=(w instanceof Array?w[0]:w)/2;return h.type==="category"?h.getBandWidth():Math.abs(h.dataToCoord(n-t)-h.dataToCoord(n+t))}U.exports=function(w){var e=w.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(h){return w.dataToPoint(h)},size:p.bind(T,w)}}}},91456:function(U,C,b){var p=b(23405);C.layout=function(T,w){w=w||{};var e=T.coordinateSystem,h=T.axis,n={},t=h.position,f=h.orient,a=e.getRect(),y=[a.x,a.x+a.width,a.y,a.y+a.height],g={horizontal:{top:y[2],bottom:y[3]},vertical:{left:y[0],right:y[1]}};n.position=[f==="vertical"?g.vertical[t]:y[0],f==="horizontal"?g.horizontal[t]:y[3]],n.rotation=Math.PI/2*{horizontal:0,vertical:1}[f],n.labelDirection=n.tickDirection=n.nameDirection={top:-1,bottom:1,right:1,left:-1}[t],T.get("axisTick.inside")&&(n.tickDirection=-n.tickDirection),p.retrieve(w.labelInside,T.get("axisLabel.inside"))&&(n.labelDirection=-n.labelDirection);var c=w.rotate;return c==null&&(c=T.get("axisLabel.rotate")),n.labelRotation=t==="top"?-c:c,n.z2=1,n}},42200:function(U,C,b){var p=b(64135);b(17234).register("single",{create:function(T,w){var e=[];return T.eachComponent("singleAxis",function(h,n){var t=new p(h,T,w);t.name="single_"+n,t.resize(h,w),h.coordinateSystem=t,e.push(t)}),T.eachSeries(function(h){if(h.get("coordinateSystem")==="singleAxis"){var n=T.queryComponents({mainType:"singleAxis",index:h.get("singleAxisIndex"),id:h.get("singleAxisId")})[0];h.coordinateSystem=n&&n.coordinateSystem}}),e},dimensions:p.prototype.dimensions})},99018:function(U){function C(T){return T}function b(T,w,e,h,n){this._old=T,this._new=w,this._oldKeyGetter=e||C,this._newKeyGetter=h||C,this.context=n}function p(T,w,e,h,n){for(var t=0;t<T.length;t++){var f="_ec_"+n[h](T[t],t),a=w[f];a==null?(e.push(f),w[f]=t):(a.length||(w[f]=a=[a]),a.push(t))}}b.prototype={constructor:b,add:function(T){return this._add=T,this},update:function(T){return this._update=T,this},remove:function(T){return this._remove=T,this},execute:function(){var T,w=this._old,e=this._new,h={},n=[],t=[];for(p(w,{},n,"_oldKeyGetter",this),p(e,h,t,"_newKeyGetter",this),T=0;T<w.length;T++){var f=n[T],a=h[f];if(a!=null){var y=a.length;y?(y===1&&(h[f]=null),a=a.unshift()):h[f]=null,this._update&&this._update(a,T)}else this._remove&&this._remove(T)}for(var T=0;T<t.length;T++){var f=t[T];if(h.hasOwnProperty(f)){var a=h[f];if(a==null)continue;if(a.length)for(var g=0,y=a.length;g<y;g++)this._add&&this._add(a[g]);else this._add&&this._add(a)}}}},U.exports=b},58772:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(92161).enableClassCheck;function w(a){return"_EC_"+a}var e=function(a){this._directed=a||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},h=e.prototype;function n(a,y){this.id=a??"",this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=y??-1}function t(a,y,g){this.node1=a,this.node2=y,this.dataIndex=g??-1}h.type="graph",h.isDirected=function(){return this._directed},h.addNode=function(a,y){a=a||""+y;var g=this._nodesMap;if(!g[w(a)]){var c=new n(a,y);return c.hostGraph=this,this.nodes.push(c),g[w(a)]=c,c}},h.getNodeByIndex=function(a){var y=this.data.getRawIndex(a);return this.nodes[y]},h.getNodeById=function(a){return this._nodesMap[w(a)]},h.addEdge=function(a,y,g){var c=this._nodesMap,o=this._edgesMap;if(typeof a=="number"&&(a=this.nodes[a]),typeof y=="number"&&(y=this.nodes[y]),n.isInstance(a)||(a=c[w(a)]),n.isInstance(y)||(y=c[w(y)]),a&&y){var d=a.id+"-"+y.id;if(!o[d]){var m=new t(a,y,g);return m.hostGraph=this,this._directed&&(a.outEdges.push(m),y.inEdges.push(m)),a.edges.push(m),a!==y&&y.edges.push(m),this.edges.push(m),o[d]=m,m}}},h.getEdgeByIndex=function(a){var y=this.edgeData.getRawIndex(a);return this.edges[y]},h.getEdge=function(a,y){n.isInstance(a)&&(a=a.id),n.isInstance(y)&&(y=y.id);var g=this._edgesMap;return this._directed?g[a+"-"+y]:g[a+"-"+y]||g[y+"-"+a]},h.eachNode=function(a,y){for(var g=this.nodes,c=g.length,o=0;o<c;o++)g[o].dataIndex>=0&&a.call(y,g[o],o)},h.eachEdge=function(a,y){for(var g=this.edges,c=g.length,o=0;o<c;o++)g[o].dataIndex>=0&&g[o].node1.dataIndex>=0&&g[o].node2.dataIndex>=0&&a.call(y,g[o],o)},h.breadthFirstTraverse=function(a,y,g,c){if(n.isInstance(y)||(y=this._nodesMap[w(y)]),y){for(var o=g==="out"?"outEdges":g==="in"?"inEdges":"edges",d=0;d<this.nodes.length;d++)this.nodes[d].__visited=!1;if(!a.call(c,y,null))for(var m=[y];m.length;)for(var _=m.shift(),M=_[o],d=0;d<M.length;d++){var S=M[d],A=S.node1===_?S.node2:S.node1;if(!A.__visited){if(a.call(c,A,_))return;m.push(A),A.__visited=!0}}}},h.update=function(){for(var a=this.data,y=this.edgeData,g=this.nodes,c=this.edges,o=0,d=g.length;o<d;o++)g[o].dataIndex=-1;for(var o=0,d=a.count();o<d;o++)g[a.getRawIndex(o)].dataIndex=o;y.filterSelf(function(m){var _=c[y.getRawIndex(m)];return _.node1.dataIndex>=0&&_.node2.dataIndex>=0});for(var o=0,d=c.length;o<d;o++)c[o].dataIndex=-1;for(var o=0,d=y.count();o<d;o++)c[y.getRawIndex(o)].dataIndex=o},h.clone=function(){for(var a=new e(this._directed),y=this.nodes,g=this.edges,c=0;c<y.length;c++)a.addNode(y[c].id,y[c].dataIndex);for(var c=0;c<g.length;c++){var o=g[c];a.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return a},n.prototype={constructor:n,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(a){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(a)}},t.prototype.getModel=function(a){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(a)};var f=function(a,y){return{getValue:function(g){var c=this[a][y];return c.get(c.getDimension(g||"value"),this.dataIndex)},setVisual:function(g,c){this.dataIndex>=0&&this[a][y].setItemVisual(this.dataIndex,g,c)},getVisual:function(g,c){return this[a][y].getItemVisual(this.dataIndex,g,c)},setLayout:function(g,c){this.dataIndex>=0&&this[a][y].setItemLayout(this.dataIndex,g,c)},getLayout:function(){return this[a][y].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][y].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][y].getRawIndex(this.dataIndex)}}};p.mixin(n,f("hostGraph","data")),p.mixin(t,f("hostGraph","edgeData")),e.Node=n,e.Edge=t,T(n),T(t),U.exports=e},80023:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(46082),w=b(99018),e=b(42480),h=b(45435),n=h.defaultDimValueGetters,t=h.DefaultDataProvider,f=b(30186).summarizeDimensions,a=p.isObject,y="undefined",g={float:typeof Float64Array===y?Array:Float64Array,int:typeof Int32Array===y?Array:Int32Array,ordinal:Array,number:Array,time:Array},c=typeof Uint32Array===y?Array:Uint32Array,o=typeof Int32Array===y?Array:Int32Array,d=typeof Uint16Array===y?Array:Uint16Array;function m(E){return E._rawCount>65535?c:d}var _=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],M=["_extent","_approximateExtent","_rawExtent"];function S(E,H){p.each(_.concat(H.__wrappedMethods||[]),function(W){H.hasOwnProperty(W)&&(E[W]=H[W])}),E.__wrappedMethods=H.__wrappedMethods,p.each(M,function(W){E[W]=p.clone(H[W])}),E._calculationInfo=p.extend(H._calculationInfo)}var A=function(E,H){E=E||["x","y"];for(var W={},$=[],Z={},Q=0;Q<E.length;Q++){var Y=E[Q];p.isString(Y)&&(Y={name:Y});var K=Y.name;Y.type=Y.type||"float",Y.coordDim||(Y.coordDim=K,Y.coordDimIndex=0),Y.otherDims=Y.otherDims||{},$.push(K),W[K]=Y,Y.index=Q,Y.createInvertedIndices&&(Z[K]=[])}this.dimensions=$,this._dimensionInfos=W,this.hostModel=H,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=f(this),this._invertedIndicesMap=Z,this._calculationInfo={}},I=A.prototype;function k(E,H,W,$,Z){var Q=g[H.type],Y=$-1,K=H.name,ne=E[K][Y];if(ne&&ne.length<W){for(var X=new Q(Math.min(Z-Y*W,W)),ee=0;ee<ne.length;ee++)X[ee]=ne[ee];E[K][Y]=X}for(var ae=$*W;ae<Z;ae+=W)E[K].push(new Q(Math.min(Z-ae,W)))}function D(E){var H=E._invertedIndicesMap;p.each(H,function(W,$){var Z=E._dimensionInfos[$].ordinalMeta;if(Z){W=H[$]=new o(Z.categories.length);for(var Q=0;Q<W.length;Q++)W[Q]=-1;for(var Q=0;Q<E._count;Q++)W[E.get($,Q)]=Q}})}function L(E,H,W){var $;if(H!=null){var Z=E._chunkSize,Q=Math.floor(W/Z),Y=E.dimensions[H],K=E._storage[Y][Q];if(K){$=K[W%Z];var ne=E._dimensionInfos[Y].ordinalMeta;ne&&ne.categories.length&&($=ne.categories[$])}}return $}function R(E){return E}function O(E){return E<this._count&&E>=0?this._indices[E]:-1}function N(E,H){var W=E._idList[H];return W==null&&(W=L(E,E._idDimIdx,H)),W==null&&(W="e\0\0"+H),W}function z(E){return p.isArray(E)||(E=[E]),E}function V(E,H){var W=E.dimensions,$=new A(p.map(W,E.getDimensionInfo,E),E.hostModel);S($,E);for(var Z=$._storage={},Q=E._storage,Y=0;Y<W.length;Y++){var K=W[Y];Q[K]&&(p.indexOf(H,K)>=0?(Z[K]=function(ne){for(var X=Array(ne.length),ee=0;ee<ne.length;ee++)X[ee]=function(ae){var oe=ae.constructor;return oe===Array?ae.slice():new oe(ae)}(ne[ee]);return X}(Q[K]),$._rawExtent[K]=B(),$._extent[K]=null):Z[K]=Q[K])}return $}function B(){return[1/0,-1/0]}I.type="list",I.hasItemOption=!0,I.getDimension=function(E){return isNaN(E)||(E=this.dimensions[E]||E),E},I.getDimensionInfo=function(E){return this._dimensionInfos[this.getDimension(E)]},I.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},I.mapDimension=function(E,H){var W=this._dimensionsSummary;if(H==null)return W.encodeFirstDimNotExtra[E];var $=W.encode[E];return H===!0?($||[]).slice():$&&$[H]},I.initData=function(E,H,W){(e.isInstance(E)||p.isArrayLike(E))&&(E=new t(E,this.dimensions.length)),this._rawData=E,this._storage={},this._indices=null,this._nameList=H||[],this._idList=[],this._nameRepeatCount={},W||(this.hasItemOption=!1),this.defaultDimValueGetter=n[this._rawData.getSource().sourceFormat],this._dimValueGetter=W=W||this.defaultDimValueGetter,this._dimValueGetterArrayRows=n.arrayRows,this._rawExtent={},this._initDataFromProvider(0,E.count()),E.pure&&(this.hasItemOption=!1)},I.getProvider=function(){return this._rawData},I.appendData=function(E){var H=this._rawData,W=this.count();H.appendData(E);var $=H.count();H.persistent||($+=W),this._initDataFromProvider(W,$)},I.appendValues=function(E,H){for(var W=this._chunkSize,$=this._storage,Z=this.dimensions,Q=Z.length,Y=this._rawExtent,K=this.count(),ne=K+Math.max(E.length,H?H.length:0),X=this._chunkCount,ee=0;ee<Q;ee++){var ae=Z[ee];Y[ae]||(Y[ae]=B()),$[ae]||($[ae]=[]),k($,this._dimensionInfos[ae],W,X,ne),this._chunkCount=$[ae].length}for(var oe=Array(Q),se=K;se<ne;se++){for(var ge=se-K,fe=Math.floor(se/W),le=se%W,ue=0;ue<Q;ue++){var ae=Z[ue],he=this._dimValueGetterArrayRows(E[ge]||oe,ae,ge,ue);$[ae][fe][le]=he;var pe=Y[ae];he<pe[0]&&(pe[0]=he),he>pe[1]&&(pe[1]=he)}H&&(this._nameList[se]=H[ge])}this._rawCount=this._count=ne,this._extent={},D(this)},I._initDataFromProvider=function(E,H){if(!(E>=H)){for(var W,$=this._chunkSize,Z=this._rawData,Q=this._storage,Y=this.dimensions,K=Y.length,ne=this._dimensionInfos,X=this._nameList,ee=this._idList,ae=this._rawExtent,oe=this._nameRepeatCount={},se=this._chunkCount,ge=0;ge<K;ge++){var fe=Y[ge];ae[fe]||(ae[fe]=B());var le=ne[fe];le.otherDims.itemName===0&&(W=this._nameDimIdx=ge),le.otherDims.itemId===0&&(this._idDimIdx=ge),Q[fe]||(Q[fe]=[]),k(Q,le,$,se,H),this._chunkCount=Q[fe].length}for(var ue=Array(K),he=E;he<H;he++){ue=Z.getItem(he,ue);for(var pe=Math.floor(he/$),ye=he%$,ve=0;ve<K;ve++){var fe=Y[ve],Ae=Q[fe][pe],_e=this._dimValueGetter(ue,fe,he,ve);Ae[ye]=_e;var Pe=ae[fe];_e<Pe[0]&&(Pe[0]=_e),_e>Pe[1]&&(Pe[1]=_e)}if(!Z.pure){var Oe=X[he];if(ue&&Oe==null){if(ue.name!=null)X[he]=Oe=ue.name;else if(W!=null){var ke=Y[W],De=Q[ke][pe];if(De){Oe=De[ye];var Ce=ne[ke].ordinalMeta;Ce&&Ce.categories.length&&(Oe=Ce.categories[Oe])}}}var Le=ue==null?null:ue.id;Le==null&&Oe!=null&&(oe[Oe]=oe[Oe]||0,Le=Oe,oe[Oe]>0&&(Le+="__ec__"+oe[Oe]),oe[Oe]++),Le!=null&&(ee[he]=Le)}}!Z.persistent&&Z.clean&&Z.clean(),this._rawCount=this._count=H,this._extent={},D(this)}},I.count=function(){return this._count},I.getIndices=function(){var E,H=this._indices;if(H){var W=H.constructor,$=this._count;if(W===Array){E=new W($);for(var Z=0;Z<$;Z++)E[Z]=H[Z]}else E=new W(H.buffer,0,$)}else for(var W=m(this),E=new W(this.count()),Z=0;Z<E.length;Z++)E[Z]=Z;return E},I.get=function(E,H){if(!(H>=0&&H<this._count))return NaN;var W=this._storage;if(!W[E])return NaN;var $=Math.floor((H=this.getRawIndex(H))/this._chunkSize),Z=H%this._chunkSize;return W[E][$][Z]},I.getByRawIndex=function(E,H){if(!(H>=0&&H<this._rawCount))return NaN;var W=this._storage[E];if(!W)return NaN;var $=Math.floor(H/this._chunkSize),Z=H%this._chunkSize;return W[$][Z]},I._getFast=function(E,H){var W=Math.floor(H/this._chunkSize),$=H%this._chunkSize;return this._storage[E][W][$]},I.getValues=function(E,H){var W=[];p.isArray(E)||(H=E,E=this.dimensions);for(var $=0,Z=E.length;$<Z;$++)W.push(this.get(E[$],H));return W},I.hasValue=function(E){for(var H=this._dimensionsSummary.dataDimsOnCoord,W=this._dimensionInfos,$=0,Z=H.length;$<Z;$++)if(W[H[$]].type!=="ordinal"&&isNaN(this.get(H[$],E)))return!1;return!0},I.getDataExtent=function(E){E=this.getDimension(E);var H,W=this._storage[E],$=B();if(!W)return $;var Z=this.count();if(!this._indices)return this._rawExtent[E].slice();if(H=this._extent[E])return H.slice();for(var Q=(H=$)[0],Y=H[1],K=0;K<Z;K++){var ne=this._getFast(E,this.getRawIndex(K));ne<Q&&(Q=ne),ne>Y&&(Y=ne)}return H=[Q,Y],this._extent[E]=H,H},I.getApproximateExtent=function(E){return E=this.getDimension(E),this._approximateExtent[E]||this.getDataExtent(E)},I.setApproximateExtent=function(E,H){H=this.getDimension(H),this._approximateExtent[H]=E.slice()},I.getCalculationInfo=function(E){return this._calculationInfo[E]},I.setCalculationInfo=function(E,H){a(E)?p.extend(this._calculationInfo,E):this._calculationInfo[E]=H},I.getSum=function(E){var H=this._storage[E],W=0;if(H)for(var $=0,Z=this.count();$<Z;$++){var Q=this.get(E,$);isNaN(Q)||(W+=Q)}return W},I.getMedian=function(E){var H=[];this.each(E,function(Z,Q){isNaN(Z)||H.push(Z)});var W=[].concat(H).sort(function(Z,Q){return Z-Q}),$=this.count();return $===0?0:$%2==1?W[($-1)/2]:(W[$/2]+W[$/2-1])/2},I.rawIndexOf=function(E,H){var W=(E&&this._invertedIndicesMap[E])[H];return W==null||isNaN(W)?-1:W},I.indexOfName=function(E){for(var H=0,W=this.count();H<W;H++)if(this.getName(H)===E)return H;return-1},I.indexOfRawIndex=function(E){if(!this._indices)return E;if(E>=this._rawCount||E<0)return-1;var H=this._indices,W=H[E];if(W!=null&&W<this._count&&W===E)return E;for(var $=0,Z=this._count-1;$<=Z;){var Q=($+Z)/2|0;if(H[Q]<E)$=Q+1;else{if(!(H[Q]>E))return Q;Z=Q-1}}return-1},I.indicesOfNearest=function(E,H,W){var $=this._storage[E],Z=[];if(!$)return Z;W==null&&(W=1/0);for(var Q=Number.MAX_VALUE,Y=-1,K=0,ne=this.count();K<ne;K++){var X=H-this.get(E,K),ee=Math.abs(X);X<=W&&ee<=Q&&((ee<Q||X>=0&&Y<0)&&(Q=ee,Y=X,Z.length=0),Z.push(K))}return Z},I.getRawIndex=R,I.getRawDataItem=function(E){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(E));for(var H=[],W=0;W<this.dimensions.length;W++){var $=this.dimensions[W];H.push(this.get($,E))}return H},I.getName=function(E){var H=this.getRawIndex(E);return this._nameList[H]||L(this,this._nameDimIdx,H)||""},I.getId=function(E){return N(this,this.getRawIndex(E))},I.each=function(E,H,W,$){if(this._count){typeof E=="function"&&($=W,W=H,H=E,E=[]),W=W||$||this;for(var Z=(E=p.map(z(E),this.getDimension,this)).length,Q=0;Q<this.count();Q++)switch(Z){case 0:H.call(W,Q);break;case 1:H.call(W,this.get(E[0],Q),Q);break;case 2:H.call(W,this.get(E[0],Q),this.get(E[1],Q),Q);break;default:for(var Y=0,K=[];Y<Z;Y++)K[Y]=this.get(E[Y],Q);K[Y]=Q,H.apply(W,K)}}},I.filterSelf=function(E,H,W,$){if(this._count){typeof E=="function"&&($=W,W=H,H=E,E=[]),W=W||$||this,E=p.map(z(E),this.getDimension,this);for(var Z=this.count(),Q=new(m(this))(Z),Y=[],K=E.length,ne=0,X=E[0],ee=0;ee<Z;ee++){var ae,oe=this.getRawIndex(ee);if(K===0)ae=H.call(W,ee);else if(K===1){var se=this._getFast(X,oe);ae=H.call(W,se,ee)}else{for(var ge=0;ge<K;ge++)Y[ge]=this._getFast(X,oe);Y[ge]=ee,ae=H.apply(W,Y)}ae&&(Q[ne++]=oe)}return ne<Z&&(this._indices=Q),this._count=ne,this._extent={},this.getRawIndex=this._indices?O:R,this}},I.selectRange=function(E){if(this._count){var H=[];for(var W in E)E.hasOwnProperty(W)&&H.push(W);var $=H.length;if($){var Z=this.count(),Q=new(m(this))(Z),Y=0,K=H[0],ne=E[K][0],X=E[K][1],ee=!1;if(!this._indices){var ae=0;if($===1){for(var oe=this._storage[H[0]],se=0;se<this._chunkCount;se++)for(var ge=oe[se],fe=Math.min(this._count-se*this._chunkSize,this._chunkSize),le=0;le<fe;le++){var ue=ge[le];(ue>=ne&&ue<=X||isNaN(ue))&&(Q[Y++]=ae),ae++}ee=!0}else if($===2){for(var oe=this._storage[K],he=this._storage[H[1]],pe=E[H[1]][0],ye=E[H[1]][1],se=0;se<this._chunkCount;se++)for(var ge=oe[se],ve=he[se],fe=Math.min(this._count-se*this._chunkSize,this._chunkSize),le=0;le<fe;le++){var ue=ge[le],Ae=ve[le];(ue>=ne&&ue<=X||isNaN(ue))&&(Ae>=pe&&Ae<=ye||isNaN(Ae))&&(Q[Y++]=ae),ae++}ee=!0}}if(!ee)if($===1)for(var le=0;le<Z;le++){var _e=this.getRawIndex(le),ue=this._getFast(K,_e);(ue>=ne&&ue<=X||isNaN(ue))&&(Q[Y++]=_e)}else for(var le=0;le<Z;le++){for(var Pe=!0,_e=this.getRawIndex(le),se=0;se<$;se++){var Oe=H[se],ue=this._getFast(W,_e);(ue<E[Oe][0]||ue>E[Oe][1])&&(Pe=!1)}Pe&&(Q[Y++]=this.getRawIndex(le))}return Y<Z&&(this._indices=Q),this._count=Y,this._extent={},this.getRawIndex=this._indices?O:R,this}}},I.mapArray=function(E,H,W,$){typeof E=="function"&&($=W,W=H,H=E,E=[]),W=W||$||this;var Z=[];return this.each(E,function(){Z.push(H&&H.apply(this,arguments))},W),Z},I.map=function(E,H,W,$){W=W||$||this;var Z=V(this,E=p.map(z(E),this.getDimension,this));Z._indices=this._indices,Z.getRawIndex=Z._indices?O:R;for(var Q=Z._storage,Y=[],K=this._chunkSize,ne=E.length,X=this.count(),ee=[],ae=Z._rawExtent,oe=0;oe<X;oe++){for(var se=0;se<ne;se++)ee[se]=this.get(E[se],oe);ee[ne]=oe;var ge=H&&H.apply(W,ee);if(ge!=null){typeof ge!="object"&&(Y[0]=ge,ge=Y);for(var fe=this.getRawIndex(oe),le=Math.floor(fe/K),ue=fe%K,he=0;he<ge.length;he++){var pe=E[he],ye=ge[he],ve=ae[pe],Ae=Q[pe];Ae&&(Ae[le][ue]=ye),ye<ve[0]&&(ve[0]=ye),ye>ve[1]&&(ve[1]=ye)}}}return Z},I.downSample=function(E,H,W,$){for(var Z=V(this,[E]),Q=Z._storage,Y=[],K=Math.floor(1/H),ne=Q[E],X=this.count(),ee=this._chunkSize,ae=Z._rawExtent[E],oe=new(m(this))(X),se=0,ge=0;ge<X;ge+=K){K>X-ge&&(Y.length=K=X-ge);for(var fe=0;fe<K;fe++){var le=this.getRawIndex(ge+fe),ue=Math.floor(le/ee),he=le%ee;Y[fe]=ne[ue][he]}var pe=W(Y),ye=this.getRawIndex(Math.min(ge+$(Y,pe)||0,X-1)),ve=Math.floor(ye/ee),Ae=ye%ee;ne[ve][Ae]=pe,pe<ae[0]&&(ae[0]=pe),pe>ae[1]&&(ae[1]=pe),oe[se++]=ye}return Z._count=se,Z._indices=oe,Z.getRawIndex=O,Z},I.getItemModel=function(E){var H=this.hostModel;return new T(this.getRawDataItem(E),H,H&&H.ecModel)},I.diff=function(E){var H=this;return new w(E?E.getIndices():[],this.getIndices(),function(W){return N(E,W)},function(W){return N(H,W)})},I.getVisual=function(E){var H=this._visual;return H&&H[E]},I.setVisual=function(E,H){if(a(E)){for(var W in E)E.hasOwnProperty(W)&&this.setVisual(W,E[W]);return}this._visual=this._visual||{},this._visual[E]=H},I.setLayout=function(E,H){if(a(E)){for(var W in E)E.hasOwnProperty(W)&&this.setLayout(W,E[W]);return}this._layout[E]=H},I.getLayout=function(E){return this._layout[E]},I.getItemLayout=function(E){return this._itemLayouts[E]},I.setItemLayout=function(E,H,W){this._itemLayouts[E]=W?p.extend(this._itemLayouts[E]||{},H):H},I.clearItemLayouts=function(){this._itemLayouts.length=0},I.getItemVisual=function(E,H,W){var $=this._itemVisuals[E],Z=$&&$[H];return Z!=null||W?Z:this.getVisual(H)},I.setItemVisual=function(E,H,W){var $=this._itemVisuals[E]||{},Z=this.hasItemVisual;if(this._itemVisuals[E]=$,a(H)){for(var Q in H)H.hasOwnProperty(Q)&&($[Q]=H[Q],Z[Q]=!0);return}$[H]=W,Z[H]=!0},I.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var G=function(E){E.seriesIndex=this.seriesIndex,E.dataIndex=this.dataIndex,E.dataType=this.dataType};I.setItemGraphicEl=function(E,H){var W=this.hostModel;H&&(H.dataIndex=E,H.dataType=this.dataType,H.seriesIndex=W&&W.seriesIndex,H.type==="group"&&H.traverse(G,H)),this._graphicEls[E]=H},I.getItemGraphicEl=function(E){return this._graphicEls[E]},I.eachItemGraphicEl=function(E,H){p.each(this._graphicEls,function(W,$){W&&E&&E.call(H,W,$)})},I.cloneShallow=function(E){if(E||(E=new A(p.map(this.dimensions,this.getDimensionInfo,this),this.hostModel)),E._storage=this._storage,S(E,this),this._indices){var H=this._indices.constructor;E._indices=new H(this._indices)}else E._indices=null;return E.getRawIndex=E._indices?O:R,E},I.wrapMethod=function(E,H){var W=this[E];typeof W=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(E),this[E]=function(){var $=W.apply(this,arguments);return H.apply(this,[$].concat(p.slice(arguments)))})},I.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],I.CHANGABLE_METHODS=["filterSelf","selectRange"],U.exports=A},85508:function(U,C,b){var p=b(23405),T=p.createHashMap,w=p.isObject,e=p.map;function h(a){this.categories=a.categories||[],this._needCollect=a.needCollect,this._deduplication=a.deduplication,this._map}h.createByAxisModel=function(a){var y=a.option,g=y.data,c=g&&e(g,f);return new h({categories:c,needCollect:!c,deduplication:y.dedplication!==!1})};var n=h.prototype;function t(a){return a._map||(a._map=T(a.categories))}function f(a){return w(a)&&a.value!=null?a.value:a+""}n.getOrdinal=function(a){return t(this).get(a)},n.parseAndCollect=function(a){var y,g=this._needCollect;if(typeof a!="string"&&!g)return a;if(g&&!this._deduplication)return y=this.categories.length,this.categories[y]=a,y;var c=t(this);return(y=c.get(a))==null&&(g?(y=this.categories.length,this.categories[y]=a,c.set(a,y)):y=NaN),y},U.exports=h},42480:function(U,C,b){var p=b(23405),T=p.createHashMap,w=p.isTypedArray,e=b(92161).enableClassCheck,h=b(24659),n=h.SOURCE_FORMAT_ORIGINAL,t=h.SERIES_LAYOUT_BY_COLUMN,f=h.SOURCE_FORMAT_UNKNOWN,a=h.SOURCE_FORMAT_TYPED_ARRAY,y=h.SOURCE_FORMAT_KEYED_COLUMNS;function g(c){this.fromDataset=c.fromDataset,this.data=c.data||(c.sourceFormat===y?{}:[]),this.sourceFormat=c.sourceFormat||f,this.seriesLayoutBy=c.seriesLayoutBy||t,this.dimensionsDefine=c.dimensionsDefine,this.encodeDefine=c.encodeDefine&&T(c.encodeDefine),this.startIndex=c.startIndex||0,this.dimensionsDetectCount=c.dimensionsDetectCount}g.seriesDataToSource=function(c){return new g({data:c,sourceFormat:w(c)?a:n,fromDataset:!1})},e(g),U.exports=g},93455:function(U,C,b){var p=b(23405),T=b(46082),w=b(82576),e=b(80023),h=b(61554),n=function(f,a){this.name=f||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=a};function t(f,a,y){this.root,this.data,this._nodes=[],this.hostModel=f,this.levelModels=p.map(a||[],function(g){return new T(g,f,f.ecModel)}),this.leavesModel=new T(y||{},f,f.ecModel)}n.prototype={constructor:n,isRemoved:function(){return this.dataIndex<0},eachNode:function(f,a,y){typeof f=="function"&&(y=a,a=f,f=null),f=f||{},p.isString(f)&&(f={order:f});var g,c=f.order||"preorder",o=this[f.attr||"children"];c==="preorder"&&(g=a.call(y,this));for(var d=0;!g&&d<o.length;d++)o[d].eachNode(f,a,y);c==="postorder"&&a.call(y,this)},updateDepthAndHeight:function(f){var a=0;this.depth=f;for(var y=0;y<this.children.length;y++){var g=this.children[y];g.updateDepthAndHeight(f+1),g.height>a&&(a=g.height)}this.height=a+1},getNodeById:function(f){if(this.getId()===f)return this;for(var a=0,y=this.children,g=y.length;a<g;a++){var c=y[a].getNodeById(f);if(c)return c}},contains:function(f){if(f===this)return!0;for(var a=0,y=this.children,g=y.length;a<g;a++){var c=y[a].contains(f);if(c)return c}},getAncestors:function(f){for(var a=[],y=f?this:this.parentNode;y;)a.push(y),y=y.parentNode;return a.reverse(),a},getValue:function(f){var a=this.hostTree.data;return a.get(a.getDimension(f||"value"),this.dataIndex)},setLayout:function(f,a){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,f,a)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(f){if(!(this.dataIndex<0)){var a,y=this.hostTree,g=y.data.getItemModel(this.dataIndex),c=this.getLevelModel();return c||this.children.length!==0&&(this.children.length===0||this.isExpand!==!1)||(a=this.getLeavesModel()),g.getModel(f,(c||a||y.hostModel).getModel(f))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(f,a){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,f,a)},getVisual:function(f,a){return this.hostTree.data.getItemVisual(this.dataIndex,f,a)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(f){for(var a=f.parentNode;a;){if(a===this)return!0;a=a.parentNode}return!1},isDescendantOf:function(f){return f!==this&&f.isAncestorOf(this)}},t.prototype={constructor:t,type:"tree",eachNode:function(f,a,y){this.root.eachNode(f,a,y)},getNodeByDataIndex:function(f){var a=this.data.getRawIndex(f);return this._nodes[a]},getNodeByName:function(f){return this.root.getNodeByName(f)},update:function(){for(var f=this.data,a=this._nodes,y=0,g=a.length;y<g;y++)a[y].dataIndex=-1;for(var y=0,g=f.count();y<g;y++)a[f.getRawIndex(y)].dataIndex=y},clearLayouts:function(){this.data.clearItemLayouts()}},t.createTree=function(f,a,y){var g=new t(a,y.levels,y.leaves),c=[],o=1;(function m(_,M){var S,A,I,k=_.value;o=Math.max(o,p.isArray(k)?k.length:1),c.push(_);var D=new n(_.name,g);M?(S=D,I=(A=M).children,S.parentNode!==A&&(I.push(S),S.parentNode=A)):g.root=D,g._nodes.push(D);var L=_.children;if(L)for(var R=0;R<L.length;R++)m(L[R],D)})(f),g.root.updateDepthAndHeight(0);var d=new e(h(c,{coordDimensions:["value"],dimensionsCount:o}),a);return d.initData(c),w({mainData:d,struct:g,structAttr:"tree"}),g.update(),g},U.exports=t},40256:function(U,C,b){var p=b(23405),T=p.createHashMap,w=p.each,e=p.isString,h=p.defaults,n=p.extend,t=p.isObject,f=p.clone,a=b(51064).normalizeToArray,y=b(52009).guessOrdinal,g=b(42480),c=b(30186).OTHER_DIMENSIONS;function o(d,m,_){if(_||m.get(d)!=null){for(var M=0;m.get(d+M)!=null;)M++;d+=M}return m.set(d,!0),d}U.exports=function(d,m,_){g.isInstance(m)||(m=g.seriesDataToSource(m)),_=_||{},d=(d||[]).slice();for(var M,S,A,I,k,D=(_.dimsDef||[]).slice(),L=T(_.encodeDef),R=T(),O=T(),N=[],z=(M=m,S=d,A=D,I=_.dimCount,k=Math.max(M.dimensionsDetectCount||1,S.length,A.length,I||0),w(S,function(ne){var X=ne.dimsDef;X&&(k=Math.max(k,X.length))}),k),V=0;V<z;V++){var B=D[V]=n({},t(D[V])?D[V]:{name:D[V]}),G=B.name,E=N[V]={otherDims:{}};G!=null&&R.get(G)==null&&(E.name=E.displayName=G,R.set(G,V)),B.type!=null&&(E.type=B.type),B.displayName!=null&&(E.displayName=B.displayName)}L.each(function(ne,X){if((ne=a(ne).slice()).length===1&&ne[0]<0)return void L.set(X,!1);var ee=L.set(X,[]);w(ne,function(ae,oe){e(ae)&&(ae=R.get(ae)),ae!=null&&ae<z&&(ee[oe]=ae,W(N[ae],X,oe))})});var H=0;function W(ne,X,ee){c.get(X)!=null?ne.otherDims[X]=ee:(ne.coordDim=X,ne.coordDimIndex=ee,O.set(X,!0))}w(d,function(ne,X){if(e(ne))oe=ne,ne={};else{var ne,ee,ae,oe=ne.name,se=ne.ordinalMeta;ne.ordinalMeta=null,(ne=f(ne)).ordinalMeta=se,ee=ne.dimsDef,ae=ne.otherDims,ne.name=ne.coordDim=ne.coordDimIndex=ne.dimsDef=ne.otherDims=null}var ge=L.get(oe);if(ge!==!1){var ge=a(ge);if(!ge.length)for(var fe=0;fe<(ee&&ee.length||1);fe++){for(;H<N.length&&N[H].coordDim!=null;)H++;H<N.length&&ge.push(H++)}w(ge,function(ue,he){var pe=N[ue];if(W(h(pe,ne),oe,he),pe.name==null&&ee){var ye=ee[he];t(ye)||(ye={name:ye}),pe.name=pe.displayName=ye.name,pe.defaultTooltip=ye.defaultTooltip}ae&&h(pe.otherDims,ae)})}});var $=_.generateCoord,Z=_.generateCoordCount,Q=Z!=null;Z=$?Z||1:0;for(var Y=$||"value",K=0;K<z;K++){var E=N[K]=N[K]||{};E.coordDim==null&&(E.coordDim=o(Y,O,Q),E.coordDimIndex=0,(!$||Z<=0)&&(E.isExtraCoord=!0),Z--),E.name==null&&(E.name=o(E.coordDim,R)),E.type==null&&y(m,K,E.name)&&(E.type="ordinal")}return N}},61554:function(U,C,b){var p=b(40256);U.exports=function(T,w){return p((w=w||{}).coordDimensions||[],T,{dimsDef:w.dimensionsDefine||T.dimensionsDefine,encodeDef:w.encodeDefine||T.encodeDefine,dimCount:w.dimensionsCount,generateCoord:w.generateCoord,generateCoordCount:w.generateCoordCount})}},45435:function(U,C,b){b(9129).__DEV__;var p=b(23405);p.isTypedArray;var T=p.extend;p.assert;var w=p.each,e=p.isObject,h=b(51064),n=h.getDataItemValue,t=h.isDataItemOption,f=b(54684).parseDate,a=b(42480),y=b(24659),g=y.SOURCE_FORMAT_TYPED_ARRAY,c=y.SOURCE_FORMAT_ARRAY_ROWS,o=y.SOURCE_FORMAT_ORIGINAL,d=y.SOURCE_FORMAT_OBJECT_ROWS;function m(O,N){a.isInstance(O)||(O=a.seriesDataToSource(O)),this._source=O;var z=this._data=O.data,V=O.sourceFormat;V===g&&(this._offset=0,this._dimSize=N,this._data=z),T(this,M[V===c?V+"_"+O.seriesLayoutBy:V])}var _=m.prototype;_.pure=!1,_.persistent=!0,_.getSource=function(){return this._source};var M={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(O){return this._data[O+this._source.startIndex]},appendData:I},arrayRows_row:{pure:!0,count:function(){var O=this._data[0];return O?Math.max(0,O.length-this._source.startIndex):0},getItem:function(O){O+=this._source.startIndex;for(var N=[],z=this._data,V=0;V<z.length;V++){var B=z[V];N.push(B?B[O]:null)}return N},appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:S,getItem:A,appendData:I},keyedColumns:{pure:!0,count:function(){var O=this._source.dimensionsDefine[0].name,N=this._data[O];return N?N.length:0},getItem:function(O){for(var N=[],z=this._source.dimensionsDefine,V=0;V<z.length;V++){var B=this._data[z[V].name];N.push(B?B[O]:null)}return N},appendData:function(O){var N=this._data;w(O,function(z,V){for(var B=N[V]||(N[V]=[]),G=0;G<(z||[]).length;G++)B.push(z[G])})}},original:{count:S,getItem:A,appendData:I},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(O,N){O-=this._offset,N=N||[];for(var z=this._dimSize*O,V=0;V<this._dimSize;V++)N[V]=this._data[z+V];return N},appendData:function(O){this._data=O},clean:function(){this._offset+=this.count(),this._data=null}}};function S(){return this._data.length}function A(O){return this._data[O]}function I(O){for(var N=0;N<O.length;N++)this._data.push(O[N])}var k={arrayRows:D,objectRows:function(O,N,z,V){return z!=null?O[V]:O},keyedColumns:D,original:function(O,N,z,V){var B=n(O);return z!=null&&B instanceof Array?B[z]:B},typedArray:D};function D(O,N,z,V){return z!=null?O[z]:O}function L(O,N,z,V){return R(O[V],this._dimensionInfos[N])}function R(O,N){var z=N&&N.type;if(z==="ordinal"){var V=N&&N.ordinalMeta;return V?V.parseAndCollect(O):O}return z==="time"&&typeof O!="number"&&O!=null&&O!=="-"&&(O=+f(O)),O==null||O===""?NaN:+O}C.DefaultDataProvider=m,C.defaultDimValueGetters={arrayRows:L,objectRows:function(O,N,z,V){return R(O[N],this._dimensionInfos[N])},keyedColumns:L,original:function(O,N,z,V){var B=O&&(O.value==null?O:O.value);return!this._rawData.pure&&t(O)&&(this.hasItemOption=!0),R(B instanceof Array?B[V]:B,this._dimensionInfos[N])},typedArray:function(O,N,z,V){return O[V]}},C.retrieveRawValue=function(O,N,z){if(O){var V,B,G=O.getRawDataItem(N);if(G!=null){var E=O.getProvider().getSource().sourceFormat,H=O.getDimensionInfo(z);return H&&(V=H.name,B=H.index),k[E](G,N,B,V)}}},C.retrieveRawAttr=function(O,N,z){if(O){var V=O.getProvider().getSource().sourceFormat;if(V===o||V===d){var B=O.getRawDataItem(N);if(V!==o||e(B)||(B=null),B)return B[z]}}}},91968:function(U,C,b){var p=b(23405),T=p.each,w=p.isString;function e(h,n){return!!n&&n===h.getCalculationInfo("stackedDimension")}C.enableDataStack=function(h,n,t){var f,a,y,g,c=(t=t||{}).byIndex,o=t.stackedCoordDimension,d=!!(h&&h.get("stack"));if(T(n,function(S,A){w(S)&&(n[A]=S={name:S}),d&&!S.isExtraCoord&&(c||f||!S.ordinalMeta||(f=S),a||S.type==="ordinal"||S.type==="time"||o&&o!==S.coordDim||(a=S))}),!a||c||f||(c=!0),a){y="__\0ecstackresult",g="__\0ecstackedover",f&&(f.createInvertedIndices=!0);var m=a.coordDim,_=a.type,M=0;T(n,function(S){S.coordDim===m&&M++}),n.push({name:y,coordDim:m,coordDimIndex:M,type:_,isExtraCoord:!0,isCalculationCoord:!0}),M++,n.push({name:g,coordDim:g,coordDimIndex:M,type:_,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:f&&f.name,isStackedByIndex:c,stackedOverDimension:g,stackResultDimension:y}},C.isDimensionStacked=e,C.getStackedDimension=function(h,n){return e(h,n)?h.getCalculationInfo("stackResultDimension"):n}},30186:function(U,C,b){var p=b(23405),T=p.each,w=p.createHashMap;p.assert,b(9129).__DEV__;var e=w(["tooltip","label","itemName","itemId","seriesName"]);C.OTHER_DIMENSIONS=e,C.summarizeDimensions=function(h){var n={},t=n.encode={},f=w(),a=[],y=[];T(h.dimensions,function(m){var _=h.getDimensionInfo(m),M=_.coordDim;if(M){var S,A=t[M];t.hasOwnProperty(M)||(A=t[M]=[]),A[_.coordDimIndex]=m,_.isExtraCoord||(f.set(M,1),(S=_.type)!=="ordinal"&&S!=="time"&&(a[0]=m)),_.defaultTooltip&&y.push(m)}e.each(function(I,k){var D=t[k];t.hasOwnProperty(k)||(D=t[k]=[]);var L=_.otherDims[k];L!=null&&L!==!1&&(D[L]=_.name)})});var g=[],c={};f.each(function(m,_){var M=t[_];c[_]=M[0],g=g.concat(M)}),n.dataDimsOnCoord=g,n.encodeFirstDimNotExtra=c;var o=t.label;o&&o.length&&(a=o.slice());var d=t.tooltip;return d&&d.length?y=d.slice():y.length||(y=a.slice()),t.defaultedLabel=a,t.defaultedTooltip=y,n},C.getDimensionTypeByAxis=function(h){return h==="category"?"ordinal":h==="time"?"time":"float"}},82576:function(U,C,b){var p=b(23405),T=p.each,w="\0__link_datas",e="\0__link_mainData";function h(g,c){var o;if(o=this,o[e]===o){var d=p.extend({},this[w]);d[this.dataType]=c,a(c,d,g)}else y(c,this.dataType,this[e],g);return c}function n(g,c){return g.struct&&g.struct.update(this),c}function t(g,c){return T(c[w],function(o,d){o!==c&&y(o.cloneShallow(),d,c,g)}),c}function f(g){var c=this[e];return g==null||c==null?c:c[w][g]}function a(g,c,o){g[w]={},T(c,function(d,m){y(d,m,g,o)})}function y(g,c,o,d){o[w][c]=g,g[e]=o,g.dataType=c,d.struct&&(g[d.structAttr]=d.struct,d.struct[d.datasAttr[c]]=g),g.getLinkedData=f}U.exports=function(g){var c=g.mainData,o=g.datas;o||(o={main:c},g.datasAttr={main:"data"}),g.datas=g.mainData=null,a(c,o,g),T(o,function(d){T(c.TRANSFERABLE_METHODS,function(m){d.wrapMethod(m,p.curry(h,g))})}),c.wrapMethod("cloneShallow",p.curry(t,g)),T(c.CHANGABLE_METHODS,function(d){c.wrapMethod(d,p.curry(n,g))}),p.assert(o[c.dataType]===c)}},52009:function(U,C,b){b(9129).__DEV__;var p=b(51064),T=p.makeInner,w=p.getDataItemValue,e=b(83813).getCoordSysDefineBySeries,h=b(23405),n=h.createHashMap,t=h.each,f=h.map,a=h.isArray,y=h.isString,g=h.isObject,c=h.isTypedArray,o=h.isArrayLike,d=h.extend;h.assert;var m=b(42480),_=b(24659),M=_.SOURCE_FORMAT_ORIGINAL,S=_.SOURCE_FORMAT_ARRAY_ROWS,A=_.SOURCE_FORMAT_OBJECT_ROWS,I=_.SOURCE_FORMAT_KEYED_COLUMNS,k=_.SOURCE_FORMAT_UNKNOWN,D=_.SOURCE_FORMAT_TYPED_ARRAY,L=_.SERIES_LAYOUT_BY_ROW,R=T();function O(V){if(V){var B=n();return f(V,function(G,E){if((G=d({},g(G)?G:{name:G})).name==null)return G;G.name+="",G.displayName==null&&(G.displayName=G.name);var H=B.get(G.name);return H?G.name+="-"+H.count++:B.set(G.name,{count:1}),G})}}function N(V,B,G,E){if(E==null&&(E=1/0),B===L)for(var H=0;H<G.length&&H<E;H++)V(G[H]?G[H][0]:null,H);else for(var W=G[0]||[],H=0;H<W.length&&H<E;H++)V(W[H],H)}function z(V,B,G,E,H,W){var $,Z;if(c(V))return!1;if(E&&(Z=g(Z=E[W])?Z.name:Z),B===S)if(G===L){for(var Q=V[W],Y=0;Y<(Q||[]).length&&Y<5;Y++)if(($=ee(Q[H+Y]))!=null)return $}else for(var Y=0;Y<V.length&&Y<5;Y++){var K=V[H+Y];if(K&&($=ee(K[W]))!=null)return $}else if(B===A){if(!Z)return;for(var Y=0;Y<V.length&&Y<5;Y++){var ne=V[Y];if(ne&&($=ee(ne[Z]))!=null)return $}}else if(B===I){if(!Z)return;var Q=V[Z];if(!Q||c(Q))return!1;for(var Y=0;Y<Q.length&&Y<5;Y++)if(($=ee(Q[Y]))!=null)return $}else if(B===M)for(var Y=0;Y<V.length&&Y<5;Y++){var ne=V[Y],X=w(ne);if(!a(X))return!1;if(($=ee(X[W]))!=null)return $}function ee(ae){return(!(ae!=null&&isFinite(ae))||ae==="")&&(!!y(ae)&&ae!=="-"||void 0)}return!1}C.detectSourceFormat=function(V){var B=V.option.source,G=k;if(c(B))G=D;else if(a(B)){B.length===0&&(G=S);for(var E=0,H=B.length;E<H;E++){var W=B[E];if(W!=null){if(a(W)){G=S;break}else if(g(W)){G=A;break}}}}else if(g(B)){for(var $ in B)if(B.hasOwnProperty($)&&o(B[$])){G=I;break}}else if(B!=null)throw Error("Invalid data");R(V).sourceFormat=G},C.getSource=function(V){return R(V).source},C.resetSourceDefaulter=function(V){R(V).datasetMap=n()},C.prepareSource=function(V){var B=V.option,G=B.data,E=c(G)?D:M,H=!1,W=B.seriesLayoutBy,$=B.sourceHeader,Z=B.dimensions,Q=function(X){var ee=X.option;if(!ee.data)return X.ecModel.getComponent("dataset",ee.datasetIndex||0)}(V);if(Q){var Y=Q.option;G=Y.source,E=R(Q).sourceFormat,H=!0,W=W||Y.seriesLayoutBy,$==null&&($=Y.sourceHeader),Z=Z||Y.dimensions}var K=function(X,ee,ae,oe,se){if(!X)return{dimensionsDefine:O(se)};if(ee===S)oe==="auto"||oe==null?N(function(pe){pe!=null&&pe!=="-"&&(y(pe)?fe==null&&(fe=1):fe=0)},ae,X,10):fe=+!!oe,se||fe!==1||(se=[],N(function(pe,ye){se[ye]=pe??""},ae,X)),ge=se?se.length:ae===L?X.length:X[0]?X[0].length:null;else if(ee===A)se||(se=function(pe){for(var ye,ve=0;ve<pe.length&&!(ye=pe[ve++]););if(ye){var Ae=[];return t(ye,function(_e,Pe){Ae.push(Pe)}),Ae}}(X),le=!0);else if(ee===I)se||(se=[],le=!0,t(X,function(pe,ye){se.push(ye)}));else if(ee===M){var ge,fe,le,ue,he=w(X[0]);ge=a(he)&&he.length||1}return le&&t(se,function(pe,ye){(g(pe)?pe.name:pe)==="name"&&(ue=ye)}),{startIndex:fe,dimensionsDefine:O(se),dimensionsDetectCount:ge,potentialNameDimIndex:ue}}(G,E,W,$,Z),ne=B.encode;!ne&&Q&&(ne=function(X,ee,ae,oe,se,ge){var fe,le=e(X),ue={},he=[],pe=[],ye=X.subType,ve=n(["pie","map","funnel"]),Ae=n(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(le&&Ae.get(ye)!=null){var _e=R(X.ecModel).datasetMap,Pe=ee.uid+"_"+se,Oe=_e.get(Pe)||_e.set(Pe,{categoryWayDim:1,valueWayDim:0});t(le.coordSysDims,function(Ce){if(le.firstCategoryDimIndex==null){var Le=Oe.valueWayDim++;ue[Ce]=Le,pe.push(Le)}else if(le.categoryAxisMap.get(Ce))ue[Ce]=0,he.push(0);else{var Le=Oe.categoryWayDim++;ue[Ce]=Le,pe.push(Le)}})}else if(ve.get(ye)!=null){for(var ke=0;ke<5&&fe==null;ke++)z(ae,oe,se,ge.dimensionsDefine,ge.startIndex,ke)||(fe=ke);if(fe!=null){ue.value=fe;var De=ge.potentialNameDimIndex||Math.max(fe-1,0);pe.push(De),he.push(De)}}return he.length&&(ue.itemName=he),pe.length&&(ue.seriesName=pe),ue}(V,Q,G,E,W,K)),R(V).source=new m({data:G,fromDataset:H,seriesLayoutBy:W,sourceFormat:E,dimensionsDefine:K.dimensionsDefine,startIndex:K.startIndex,dimensionsDetectCount:K.dimensionsDetectCount,encodeDefine:ne})},C.guessOrdinal=function(V,B){return z(V.data,V.sourceFormat,V.seriesLayoutBy,V.dimensionsDefine,V.startIndex,B)}},24659:function(U,C){C.SOURCE_FORMAT_ORIGINAL="original",C.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",C.SOURCE_FORMAT_OBJECT_ROWS="objectRows",C.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",C.SOURCE_FORMAT_UNKNOWN="unknown",C.SOURCE_FORMAT_TYPED_ARRAY="typedArray",C.SERIES_LAYOUT_BY_COLUMN="column",C.SERIES_LAYOUT_BY_ROW="row"},87930:function(U,C,b){b(9129).__DEV__;var p=b(98709),T=b(23405),w=b(86049),e=b(23584),h=b(32553),n=b(62271),t=b(47409),f=b(60089),a=b(17234),y=b(22216),g=b(8381),c=b(93689),o=b(28628),d=b(95166),m=b(44152),_=b(4695),M=b(51747),S=b(51064),A=b(94127).throttle,I=b(35425),k=b(43203),D=b(30427),L=b(78796),R=b(43759),O=b(66568);b(22253);var N=b(95723),z=T.assert,V=T.each,B=T.isFunction,G=T.isObject,E=o.parseClassType,H="__flagInMainProcess",W="__optionUpdated",$=/^[a-zA-Z0-9_]+$/;function Z(me){return function(Ie,Ee,je){Ie=Ie&&Ie.toLowerCase(),n.prototype[me].call(this,Ie,Ee,je)}}function Q(){n.call(this)}function Y(me,We,Ee){Ee=Ee||{},typeof We=="string"&&(We=Ve[We]),this.id,this.group,this._dom=me;var je,ze,Fe,He,$e=this._zr=p.init(me,{renderer:Ee.renderer||"canvas",devicePixelRatio:Ee.devicePixelRatio,width:Ee.width,height:Ee.height});this._throttledZrFlush=A(T.bind($e.flush,$e),17);var We=T.clone(We);We&&g(We,!0),this._theme=We,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new a;var qe=this._api=(je=this,ze=je._coordSysMgr,T.extend(new f(je),{getCoordinateSystems:T.bind(ze.getCoordinateSystems,ze),getComponentByElement:function(st){for(;st;){var pt=st.__ecComponentInfo;if(pt!=null)return je._model.getComponent(pt.mainType,pt.index);st=st.parent}}}));function Ye(st,pt){return st.__prio-pt.__prio}h(Le,Ye),h(ke,Ye),this._scheduler=new L(this,qe,ke,Le),n.call(this,this._ecEventProcessor=new _e),this._messageCenter=new Q,this._initEvents(),this.resize=T.bind(this.resize,this),this._pendingActions=[],$e.animation.on("frame",this._onframe,this),Fe=$e,He=this,Fe.on("rendered",function(){He.trigger("rendered"),!Fe.animation.isFinished()||He[W]||He._scheduler.unfinished||He._pendingActions.length||He.trigger("finished")}),T.setAsPrimitive(this)}Q.prototype.on=Z("on"),Q.prototype.off=Z("off"),Q.prototype.one=Z("one"),T.mixin(Q,n);var K=Y.prototype;function ne(me,Ie,Ee){var je,ze=this._model,Fe=this._coordSysMgr.getCoordinateSystems();Ie=S.parseFinder(ze,Ie);for(var He=0;He<Fe.length;He++){var $e=Fe[He];if($e[me]&&(je=$e[me](ze,Ie,Ee))!=null)return je}}K._onframe=function(){if(!this._disposed){var me=this._scheduler;if(this[W]){var Ie=this[W].silent;this[H]=!0,ee(this),X.update.call(this),this[H]=!1,this[W]=!1,ge.call(this,Ie),fe.call(this,Ie)}else if(me.unfinished){var Ee=1,je=this._model,ze=this._api;me.unfinished=!1;do{var Fe=+new Date;me.performSeriesTasks(je),me.performDataProcessorTasks(je),oe(this,je),me.performVisualTasks(je),pe(this,this._model,ze,"remain"),Ee-=+new Date-Fe}while(Ee>0&&me.unfinished);me.unfinished||this._zr.flush()}}},K.getDom=function(){return this._dom},K.getZr=function(){return this._zr},K.setOption=function(me,Ie,Ee){var je;if(G(Ie)&&(Ee=Ie.lazyUpdate,je=Ie.silent,Ie=Ie.notMerge),this[H]=!0,!this._model||Ie){var ze=new y(this._api),Fe=this._theme,He=this._model=new t(null,null,Fe,ze);He.scheduler=this._scheduler,He.init(null,null,Fe,ze)}this._model.setOption(me,De),Ee?(this[W]={silent:je},this[H]=!1):(ee(this),X.update.call(this),this._zr.flush(),this[W]=!1,this[H]=!1,ge.call(this,je),fe.call(this,je))},K.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},K.getModel=function(){return this._model},K.getOption=function(){return this._model&&this._model.getOption()},K.getWidth=function(){return this._zr.getWidth()},K.getHeight=function(){return this._zr.getHeight()},K.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},K.getRenderedCanvas=function(me){if(e.canvasSupported)return(me=me||{}).pixelRatio=me.pixelRatio||1,me.backgroundColor=me.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(me)},K.getSvgDataUrl=function(){if(e.svgSupported){var me=this._zr,Ie=me.storage.getDisplayList();return T.each(Ie,function(Ee){Ee.stopAnimation(!0)}),me.painter.pathToDataUrl()}},K.getDataURL=function(me){var Ie=(me=me||{}).excludeComponents,Ee=this._model,je=[],ze=this;V(Ie,function(He){Ee.eachComponent({mainType:He},function($e){var We=ze._componentsMap[$e.__viewId];We.group.ignore||(je.push(We),We.group.ignore=!0)})});var Fe=this._zr.painter.getType()==="svg"?this.getSvgDataUrl():this.getRenderedCanvas(me).toDataURL("image/"+(me&&me.type||"png"));return V(je,function(He){He.group.ignore=!1}),Fe},K.getConnectedDataURL=function(me){if(e.canvasSupported){var Ie=this.group,Ee=Math.min,je=Math.max,ze=1/0;if(!rt[Ie])return this.getDataURL(me);var Fe=ze,He=ze,$e=-ze,We=-ze,qe=[],Ye=me&&me.pixelRatio||1;T.each(Je,function(Nt,Fr){if(Nt.group===Ie){var kr=Nt.getRenderedCanvas(T.clone(me)),_r=Nt.getDom().getBoundingClientRect();Fe=Ee(_r.left,Fe),He=Ee(_r.top,He),$e=je(_r.right,$e),We=je(_r.bottom,We),qe.push({dom:kr,left:_r.left,top:_r.top})}}),Fe*=Ye,He*=Ye,$e*=Ye,We*=Ye;var st=$e-Fe,pt=We-He,_t=T.createCanvas();_t.width=st,_t.height=pt;var Ot=p.init(_t);return V(qe,function(Nt){var Fr=new M.Image({style:{x:Nt.left*Ye-Fe,y:Nt.top*Ye-He,image:Nt.dom}});Ot.add(Fr)}),Ot.refreshImmediately(),_t.toDataURL("image/"+(me&&me.type||"png"))}},K.convertToPixel=T.curry(ne,"convertToPixel"),K.convertFromPixel=T.curry(ne,"convertFromPixel"),K.containPixel=function(me,Ie){var Ee,je=this._model;return me=S.parseFinder(je,me),T.each(me,function(ze,Fe){Fe.indexOf("Models")>=0&&T.each(ze,function(He){var $e=He.coordinateSystem;if($e&&$e.containPoint)Ee|=!!$e.containPoint(Ie);else if(Fe==="seriesModels"){var We=this._chartsMap[He.__viewId];We&&We.containPoint&&(Ee|=We.containPoint(Ie,He))}},this)},this),!!Ee},K.getVisual=function(me,Ie){var Ee=this._model,je=(me=S.parseFinder(Ee,me,{defaultMainType:"series"})).seriesModel.getData(),ze=me.hasOwnProperty("dataIndexInside")?me.dataIndexInside:me.hasOwnProperty("dataIndex")?je.indexOfRawIndex(me.dataIndex):null;return ze!=null?je.getItemVisual(ze,Ie):je.getVisual(Ie)},K.getViewOfComponentModel=function(me){return this._componentsMap[me.__viewId]},K.getViewOfSeriesModel=function(me){return this._chartsMap[me.__viewId]};var X={prepareAndUpdate:function(me){ee(this),X.update.call(this,me)},update:function(me){var Ie=this._model,Ee=this._api,je=this._zr,ze=this._coordSysMgr,Fe=this._scheduler;if(Ie){Fe.restoreData(Ie,me),Fe.performSeriesTasks(Ie),ze.create(Ie,Ee),Fe.performDataProcessorTasks(Ie,me),oe(this,Ie),ze.update(Ie,Ee),ue(Ie),Fe.performVisualTasks(Ie,me),he(this,Ie,Ee,me);var He=Ie.get("backgroundColor")||"transparent";if(e.canvasSupported)je.setBackgroundColor(He);else{var $e=w.parse(He);He=w.stringify($e,"rgb"),$e[3]===0&&(He="transparent")}ye(Ie,Ee)}},updateTransform:function(me){var Ie=this._model,Ee=this,je=this._api;if(Ie){var ze=[];Ie.eachComponent(function(He,$e){var We=Ee.getViewOfComponentModel($e);if(We&&We.__alive)if(We.updateTransform){var qe=We.updateTransform($e,Ie,je,me);qe&&qe.update&&ze.push(We)}else ze.push(We)});var Fe=T.createHashMap();Ie.eachSeries(function(He){var $e=Ee._chartsMap[He.__viewId];if($e.updateTransform){var We=$e.updateTransform(He,Ie,je,me);We&&We.update&&Fe.set(He.uid,1)}else Fe.set(He.uid,1)}),ue(Ie),this._scheduler.performVisualTasks(Ie,me,{setDirty:!0,dirtyMap:Fe}),pe(Ee,Ie,je,me,Fe),ye(Ie,this._api)}},updateView:function(me){var Ie=this._model;Ie&&(_.markUpdateMethod(me,"updateView"),ue(Ie),this._scheduler.performVisualTasks(Ie,me,{setDirty:!0}),he(this,this._model,this._api,me),ye(Ie,this._api))},updateVisual:function(me){X.update.call(this,me)},updateLayout:function(me){X.update.call(this,me)}};function ee(me){var Ie=me._model,Ee=me._scheduler;Ee.restorePipelines(Ie),Ee.prepareStageTasks(),le(me,"component",Ie,Ee),le(me,"chart",Ie,Ee),Ee.plan()}function ae(me,Ie,Ee,je,ze){var Fe=me._model;if(!je)return void V(me._componentsViews.concat(me._chartsViews),qe);var He={};He[je+"Id"]=Ee[je+"Id"],He[je+"Index"]=Ee[je+"Index"],He[je+"Name"]=Ee[je+"Name"];var $e={mainType:je,query:He};ze&&($e.subType=ze);var We=Ee.excludeSeriesId;function qe(Ye){Ye&&Ye.__alive&&Ye[Ie]&&Ye[Ie](Ye.__model,Fe,me._api,Ee)}We!=null&&(We=T.createHashMap(S.normalizeToArray(We))),Fe&&Fe.eachComponent($e,function(Ye){We&&We.get(Ye.id)!=null||qe(me[je==="series"?"_chartsMap":"_componentsMap"][Ye.__viewId])},me)}function oe(me,Ie){var Ee=me._chartsMap,je=me._scheduler;Ie.eachSeries(function(ze){je.updateStreamModes(ze,Ee[ze.__viewId])})}function se(me,Ie){var Ee,je=me.type,ze=me.escapeConnect,Fe=Pe[je],He=Fe.actionInfo,$e=(He.update||"update").split(":"),We=$e.pop();$e=$e[0]!=null&&E($e[0]),this[H]=!0;var qe=[me],Ye=!1;me.batch&&(Ye=!0,qe=T.map(me.batch,function(_t){return(_t=T.defaults(T.extend({},_t),me)).batch=null,_t}));var st=[],pt=je==="highlight"||je==="downplay";V(qe,function(_t){(Ee=(Ee=Fe.action(_t,this._model,this._api))||T.extend({},_t)).type=He.event||Ee.type,st.push(Ee),pt?ae(this,We,_t,"series"):$e&&ae(this,We,_t,$e.main,$e.sub)},this),We==="none"||pt||$e||(this[W]?(ee(this),X.update.call(this,me),this[W]=!1):X[We].call(this,me)),Ee=Ye?{type:He.event||je,escapeConnect:ze,batch:st}:st[0],this[H]=!1,Ie||this._messageCenter.trigger(Ee.type,Ee)}function ge(me){for(var Ie=this._pendingActions;Ie.length;){var Ee=Ie.shift();se.call(this,Ee,me)}}function fe(me){me||this.trigger("updated")}function le(me,Ie,Ee,je){for(var ze=Ie==="component",Fe=ze?me._componentsViews:me._chartsViews,He=ze?me._componentsMap:me._chartsMap,$e=me._zr,We=me._api,qe=0;qe<Fe.length;qe++)Fe[qe].__alive=!1;function Ye(pt){var _t="_ec_"+pt.id+"_"+pt.type,Ot=He[_t];if(!Ot){var Nt=E(pt.type);(Ot=new(ze?m.getClass(Nt.main,Nt.sub):_.getClass(Nt.sub))).init(Ee,We),He[_t]=Ot,Fe.push(Ot),$e.add(Ot.group)}pt.__viewId=Ot.__id=_t,Ot.__alive=!0,Ot.__model=pt,Ot.group.__ecComponentInfo={mainType:pt.mainType,index:pt.componentIndex},ze||je.prepareView(Ot,pt,Ee,We)}ze?Ee.eachComponent(function(pt,_t){pt!=="series"&&Ye(_t)}):Ee.eachSeries(Ye);for(var qe=0;qe<Fe.length;){var st=Fe[qe];st.__alive?qe++:(ze||st.renderTask.dispose(),$e.remove(st.group),st.dispose(Ee,We),Fe.splice(qe,1),delete He[st.__id],st.__id=st.group.__ecComponentInfo=null)}}function ue(me){me.clearColorPalette(),me.eachSeries(function(Ie){Ie.clearColorPalette()})}function he(me,Ie,Ee,je){var ze,Fe,He,$e;ze=me,Fe=Ie,He=Ee,$e=je,V(ze._componentsViews,function(We){var qe=We.__model;We.render(qe,Fe,He,$e),Ae(qe,We)}),V(me._chartsViews,function(We){We.__alive=!1}),pe(me,Ie,Ee,je),V(me._chartsViews,function(We){We.__alive||We.remove(Ie,Ee)})}function pe(me,Ie,Ee,je,ze){var Fe,He,$e,We,qe,Ye=me._scheduler;Ie.eachSeries(function(st){var pt,_t,Ot,Nt=me._chartsMap[st.__viewId];Nt.__alive=!0;var Fr=Nt.renderTask;Ye.updatePayload(Fr,je),ze&&ze.get(st.uid)&&Fr.dirty(),qe|=Fr.perform(Ye.getPerformArgs(Fr)),Nt.group.silent=!!st.get("silent"),Ae(st,Nt),pt=st,_t=Nt,Ot=pt.get("blendMode")||null,_t.group.traverse(function(kr){kr.isGroup||kr.style.blend===Ot||kr.setStyle("blend",Ot),kr.eachPendingDisplayable&&kr.eachPendingDisplayable(function(_r){_r.setStyle("blend",Ot)})})}),Ye.unfinished|=qe,Fe=me._zr,He=Ie,$e=Fe.storage,We=0,$e.traverse(function(st){!st.isGroup&&We++}),We>He.get("hoverLayerThreshold")&&!e.node&&$e.traverse(function(st){st.isGroup||(st.useHoverLayer=!0)}),k(me._zr.dom,Ie)}function ye(me,Ie){V(Ce,function(Ee){Ee(me,Ie)})}K.resize=function(me){this._zr.resize(me);var Ie=this._model;if(this._loadingFX&&this._loadingFX.resize(),Ie){var Ee=Ie.resetOption("media"),je=me&&me.silent;this[H]=!0,Ee&&ee(this),X.update.call(this),this[H]=!1,ge.call(this,je),fe.call(this,je)}},K.showLoading=function(me,Ie){if(G(me)&&(Ie=me,me=""),me=me||"default",this.hideLoading(),Ge[me]){var Ee=Ge[me](this._api,Ie),je=this._zr;this._loadingFX=Ee,je.add(Ee)}},K.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},K.makeActionFromEvent=function(me){var Ie=T.extend({},me);return Ie.type=Oe[me.type],Ie},K.dispatchAction=function(me,Ie){if(G(Ie)||(Ie={silent:!!Ie}),Pe[me.type]&&this._model){if(this[H])return void this._pendingActions.push(me);se.call(this,me,Ie.silent),Ie.flush?this._zr.flush(!0):Ie.flush!==!1&&e.browser.weChat&&this._throttledZrFlush(),ge.call(this,Ie.silent),fe.call(this,Ie.silent)}},K.appendData=function(me){var Ie=me.seriesIndex;this.getModel().getSeriesByIndex(Ie).appendData(me),this._scheduler.unfinished=!0},K.on=Z("on"),K.off=Z("off"),K.one=Z("one");var ve=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ae(me,Ie){var Ee=me.get("z"),je=me.get("zlevel");Ie.group.traverse(function(ze){ze.type!=="group"&&(Ee!=null&&(ze.z=Ee),je!=null&&(ze.zlevel=je))})}function _e(){this.eventInfo}K._initEvents=function(){V(ve,function(me){var Ie=function(Ee){var je,ze=this.getModel(),Fe=Ee.target;if(me==="globalout")je={};else if(Fe&&Fe.dataIndex!=null){var He=Fe.dataModel||ze.getSeriesByIndex(Fe.seriesIndex);je=He&&He.getDataParams(Fe.dataIndex,Fe.dataType,Fe)||{}}else Fe&&Fe.eventData&&(je=T.extend({},Fe.eventData));if(je){var $e=je.componentType,We=je.componentIndex;($e==="markLine"||$e==="markPoint"||$e==="markArea")&&($e="series",We=je.seriesIndex);var qe=$e&&We!=null&&ze.getComponent($e,We),Ye=qe&&this[qe.mainType==="series"?"_chartsMap":"_componentsMap"][qe.__viewId];je.event=Ee,je.type=me,this._ecEventProcessor.eventInfo={targetEl:Fe,packedEvent:je,model:qe,view:Ye},this.trigger(me,je)}};Ie.zrEventfulCallAtLast=!0,this._zr.on(me,Ie,this)},this),V(Oe,function(me,Ie){this._messageCenter.on(Ie,function(Ee){this.trigger(Ie,Ee)},this)},this)},K.isDisposed=function(){return this._disposed},K.clear=function(){this.setOption({series:[]},!0)},K.dispose=function(){if(!this._disposed){this._disposed=!0,S.setAttribute(this.getDom(),ct,"");var me=this._api,Ie=this._model;V(this._componentsViews,function(Ee){Ee.dispose(Ie,me)}),V(this._chartsViews,function(Ee){Ee.dispose(Ie,me)}),this._zr.dispose(),delete Je[this.id]}},T.mixin(Y,n),_e.prototype={constructor:_e,normalizeQuery:function(me){var Ie={},Ee={},je={};if(T.isString(me)){var ze=E(me);Ie.mainType=ze.main||null,Ie.subType=ze.sub||null}else{var Fe=["Index","Name","Id"],He={name:1,dataIndex:1,dataType:1};T.each(me,function($e,We){for(var qe=!1,Ye=0;Ye<Fe.length;Ye++){var st=Fe[Ye],pt=We.lastIndexOf(st);if(pt>0&&pt===We.length-st.length){var _t=We.slice(0,pt);_t!=="data"&&(Ie.mainType=_t,Ie[st.toLowerCase()]=$e,qe=!0)}}He.hasOwnProperty(We)&&(Ee[We]=$e,qe=!0),qe||(je[We]=$e)})}return{cptQuery:Ie,dataQuery:Ee,otherQuery:je}},filter:function(me,Ie,Ee){var je=this.eventInfo;if(!je)return!0;var ze=je.targetEl,Fe=je.packedEvent,He=je.model,$e=je.view;if(!He||!$e)return!0;var We=Ie.cptQuery,qe=Ie.dataQuery;return Ye(We,He,"mainType")&&Ye(We,He,"subType")&&Ye(We,He,"index","componentIndex")&&Ye(We,He,"name")&&Ye(We,He,"id")&&Ye(qe,Fe,"name")&&Ye(qe,Fe,"dataIndex")&&Ye(qe,Fe,"dataType")&&(!$e.filterForExposedEvent||$e.filterForExposedEvent(me,Ie.otherQuery,ze,Fe));function Ye(st,pt,_t,Ot){return st[_t]==null||pt[Ot||_t]===st[_t]}},afterTrigger:function(){this.eventInfo=null}};var Pe={},Oe={},ke=[],De=[],Ce=[],Le=[],Ve={},Ge={},Je={},rt={},it=new Date-0,mt=new Date-0,ct="_echarts_instance_";function et(me){rt[me]=!1}function Ke(me){return Je[S.getAttribute(me,ct)]}function ft(me){De.push(me)}function at(me,Ie){dt(ke,me,Ie,1e3)}function nt(me,Ie,Ee){typeof Ie=="function"&&(Ee=Ie,Ie="");var je=G(me)?me.type:[me,me={event:Ie}][0];me.event=(me.event||je).toLowerCase(),Ie=me.event,z($.test(je)&&$.test(Ie)),Pe[je]||(Pe[je]={action:Ee,actionInfo:me}),Oe[Ie]=je}function yt(me,Ie){dt(Le,me,Ie,3e3,"visual")}function dt(me,Ie,Ee,je,ze){(B(Ie)||G(Ie))&&(Ee=Ie,Ie=je);var Fe=L.wrapStageHandler(Ee,ze);return Fe.__prio=Ie,Fe.__raw=Ee,me.push(Fe),Fe}yt(2e3,I),ft(g),at(5e3,c),Ge.default=D,nt({type:"highlight",event:"highlight",update:"highlight"},T.noop),nt({type:"downplay",event:"downplay",update:"downplay"},T.noop),Ve.light=R,Ve.dark=O,C.version="4.2.1",C.dependencies={zrender:"4.0.6"},C.PRIORITY={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},C.init=function(me,Ie,Ee){var je=Ke(me);if(je)return je;var ze=new Y(me,Ie,Ee);ze.id="ec_"+it++,Je[ze.id]=ze,S.setAttribute(me,ct,ze.id);var Fe="__connectUpdateStatus";function He($e,We){for(var qe=0;qe<$e.length;qe++)$e[qe][Fe]=We}return V(Oe,function($e,We){ze._messageCenter.on(We,function(qe){if(rt[ze.group]&&ze[Fe]!==0&&(!qe||!qe.escapeConnect)){var Ye=ze.makeActionFromEvent(qe),st=[];V(Je,function(pt){pt!==ze&&pt.group===ze.group&&st.push(pt)}),He(st,0),V(st,function(pt){pt[Fe]!==1&&pt.dispatchAction(Ye)}),He(st,2)}})}),ze},C.connect=function(me){if(T.isArray(me)){var Ie=me;me=null,V(Ie,function(Ee){Ee.group!=null&&(me=Ee.group)}),me=me||"g_"+mt++,V(Ie,function(Ee){Ee.group=me})}return rt[me]=!0,me},C.disConnect=et,C.disconnect=et,C.dispose=function(me){typeof me=="string"?me=Je[me]:me instanceof Y||(me=Ke(me)),me instanceof Y&&!me.isDisposed()&&me.dispose()},C.getInstanceByDom=Ke,C.getInstanceById=function(me){return Je[me]},C.registerTheme=function(me,Ie){Ve[me]=Ie},C.registerPreprocessor=ft,C.registerProcessor=at,C.registerPostUpdate=function(me){Ce.push(me)},C.registerAction=nt,C.registerCoordinateSystem=function(me,Ie){a.register(me,Ie)},C.getCoordinateSystemDimensions=function(me){var Ie=a.get(me);if(Ie)return Ie.getDimensionsInfo?Ie.getDimensionsInfo():Ie.dimensions.slice()},C.registerLayout=function(me,Ie){dt(Le,me,Ie,1e3,"layout")},C.registerVisual=yt,C.registerLoading=function(me,Ie){Ge[me]=Ie},C.extendComponentModel=function(me){return o.extend(me)},C.extendComponentView=function(me){return m.extend(me)},C.extendSeriesModel=function(me){return d.extend(me)},C.extendChartView=function(me){return _.extend(me)},C.setCanvasCreator=function(me){T.$override("createCanvas",me)},C.registerMap=function(me,Ie,Ee){N.registerMap(me,Ie,Ee)},C.getMap=function(me){var Ie=N.retrieveMap(me);return Ie&&Ie[0]&&{geoJson:Ie[0].geoJSON,specialAreas:Ie[0].specialAreas}},C.dataTool={};var bt=b(20297);for(var vt in bt)bt.hasOwnProperty(vt)&&(C[vt]=bt[vt])},20297:function(U,C,b){C.zrender=b(98709),C.matrix=b(79442),C.vector=b(76414);var p=b(23405);C.color=b(86049);var T=b(51747);C.number=b(54684),C.format=b(60653);var w=b(94127);w.throttle,C.throttle=w.throttle,C.helper=b(4415);var e=b(61167);C.parseGeoJSON=e,C.List=b(80023),C.Model=b(46082),C.Axis=b(7371),C.env=b(23584);var h={};p.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){h[t]=p[t]});var n={};p.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){n[t]=T[t]}),C.parseGeoJson=e,C.util=h,C.graphic=n},4415:function(U,C,b){var p=b(23405),T=b(74107),w=b(51261),e=b(98477),h=b(46082),n=b(62751);n.getLayoutRect,C.getLayoutRect=n.getLayoutRect;var t=b(91968),f=t.enableDataStack,a=t.isDimensionStacked,y=t.getStackedDimension;C.completeDimensions=b(40256),C.createDimensions=b(61554),C.createSymbol=b(30696).createSymbol,C.createList=function(g){return T(g.getSource(),g)},C.dataStack={isDimensionStacked:a,enableDataStack:f,getStackedDimension:y},C.createScale=function(g,c){var o=c;h.isInstance(c)||(o=new h(c),p.mixin(o,e));var d=w.createScaleByModel(o);return d.setExtent(g[0],g[1]),w.niceScaleExtent(d,o),d},C.mixinAxisModelCommonMethods=function(g){p.mixin(g,e)}},12414:function(U){U.exports={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}}},76918:function(U,C,b){var p=b(23405),T=b(54684).parsePercent,w=b(91968).isDimensionStacked,e=b(52227),h="__ec_stack_",n=typeof Float32Array<"u"?Float32Array:Array;function t(M){return M.get("stack")||h+M.seriesIndex}function f(M){return M.dim+M.index}function a(M,S){var A=[];return S.eachSeriesByType(M,function(I){d(I)&&!m(I)&&A.push(I)}),A}function y(M){var S=[];return p.each(M,function(A){var I=A.getData(),k=A.coordinateSystem.getBaseAxis(),D=k.getExtent(),L=k.type==="category"?k.getBandWidth():Math.abs(D[1]-D[0])/I.count(),R=T(A.get("barWidth"),L),O=T(A.get("barMaxWidth"),L),N=A.get("barGap"),z=A.get("barCategoryGap");S.push({bandWidth:L,barWidth:R,barMaxWidth:O,barGap:N,barCategoryGap:z,axisKey:f(k),stackId:t(A)})}),g(S)}function g(M){var S={};p.each(M,function(I,k){var D=I.axisKey,L=I.bandWidth,R=S[D]||{bandWidth:L,remainedWidth:L,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},O=R.stacks;S[D]=R;var N=I.stackId;!O[N]&&R.autoWidthCount++,O[N]=O[N]||{width:0,maxWidth:0};var z=I.barWidth;z&&!O[N].width&&(O[N].width=z,z=Math.min(R.remainedWidth,z),R.remainedWidth-=z);var V=I.barMaxWidth;V&&(O[N].maxWidth=V);var B=I.barGap;B!=null&&(R.gap=B);var G=I.barCategoryGap;G!=null&&(R.categoryGap=G)});var A={};return p.each(S,function(I,k){A[k]={};var D,L=I.stacks,R=I.bandWidth,O=T(I.categoryGap,R),N=T(I.gap,1),z=I.remainedWidth,V=I.autoWidthCount,B=(z-O)/(V+(V-1)*N);B=Math.max(B,0),p.each(L,function(H,W){var $=H.maxWidth;$&&$<B&&($=Math.min($,z),H.width&&($=Math.min($,H.width)),z-=$,H.width=$,V--)}),B=Math.max(B=(z-O)/(V+(V-1)*N),0);var G=0;p.each(L,function(H,W){H.width||(H.width=B),D=H,G+=H.width*(1+N)}),D&&(G-=D.width*N);var E=-G/2;p.each(L,function(H,W){A[k][W]=A[k][W]||{offset:E,width:H.width},E+=H.width*(1+N)})}),A}function c(M,S,A){if(M&&S){var I=M[f(S)];return I!=null&&A!=null&&(I=I[t(A)]),I}}var o={seriesType:"bar",plan:e(),reset:function(M){if(d(M)&&m(M)){var S=M.getData(),A=M.coordinateSystem,I=A.getBaseAxis(),k=A.getOtherAxis(I),D=S.mapDimension(k.dim),L=S.mapDimension(I.dim),R=k.isHorizontal(),O=+!R,N=c(y([M]),I,M).width;return N>.5||(N=.5),{progress:function(z,V){for(var B,G=new n(2*z.count),E=[],H=[],W=0;(B=z.next())!=null;)H[O]=V.get(D,B),H[1-O]=V.get(L,B),E=A.dataToPoint(H,null,E),G[W++]=E[0],G[W++]=E[1];V.setLayout({largePoints:G,barWidth:N,valueAxisStart:_(I,k),valueAxisHorizontal:R})}}}}};function d(M){return M.coordinateSystem&&M.coordinateSystem.type==="cartesian2d"}function m(M){return M.pipelineContext&&M.pipelineContext.large}function _(M,S,A){var I,k,D=S.getGlobalExtent();D[0]>D[1]?(I=D[1],k=D[0]):(I=D[0],k=D[1]);var L=S.toGlobalCoord(S.dataToCoord(0));return L<I&&(L=I),L>k&&(L=k),L}C.getLayoutOnAxis=function(M){var S=[],A=M.axis,I="axis0";if(A.type==="category"){for(var k=A.getBandWidth(),D=0;D<M.count;D++)S.push(p.defaults({bandWidth:k,axisKey:I,stackId:h+D},M));for(var L=g(S),R=[],D=0;D<M.count;D++){var O=L[I][h+D];O.offsetCenter=O.offset+O.width/2,R.push(O)}return R}},C.prepareLayoutBarSeries=a,C.makeColumnLayout=y,C.retrieveColumnLayout=c,C.layout=function(M,S){var A=a(M,S),I=y(A),k={};p.each(A,function(D){var L=D.getData(),R=D.coordinateSystem,O=R.getBaseAxis(),N=t(D),z=I[f(O)][N],V=z.offset,B=z.width,G=R.getOtherAxis(O),E=D.get("barMinHeight")||0;k[N]=k[N]||[],L.setLayout({offset:V,size:B});for(var H=L.mapDimension(G.dim),W=L.mapDimension(O.dim),$=w(L,H),Z=G.isHorizontal(),Q=_(O,G),Y=0,K=L.count();Y<K;Y++){var ne,X,ee,ae,oe=L.get(H,Y),se=L.get(W,Y);if(!isNaN(oe)){var ge=oe>=0?"p":"n",fe=Q;if($&&(k[N][se]||(k[N][se]={p:Q,n:Q}),fe=k[N][se][ge]),Z){var le=R.dataToPoint([oe,se]);ne=fe,X=le[1]+V,ee=le[0]-Q,ae=B,Math.abs(ee)<E&&(ee=(ee<0?-1:1)*E),$&&(k[N][se][ge]+=ee)}else{var le=R.dataToPoint([se,oe]);ne=le[0]+V,X=fe,ee=B,Math.abs(ae=le[1]-Q)<E&&(ae=(ae<=0?-1:1)*E),$&&(k[N][se][ge]+=ae)}L.setItemLayout(Y,{x:ne,y:X,width:ee,height:ae})}}},this)},C.largeLayout=o},63764:function(U,C,b){var p=b(23405),T=b(54684).parsePercent,w=b(91968).isDimensionStacked;function e(h){return h.get("stack")||"__ec_stack_"+h.seriesIndex}U.exports=function(h,n,t){t.getWidth(),t.getHeight();var f,a,y,g={},c=(f=p.filter(n.getSeriesByType(h),function(o){return!n.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}),a={},p.each(f,function(o,d){var m=o.getData(),_=o.coordinateSystem.getBaseAxis(),M=_.getExtent(),S=_.type==="category"?_.getBandWidth():Math.abs(M[1]-M[0])/m.count(),A=a[_.dim]||{bandWidth:S,remainedWidth:S,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},I=A.stacks;a[_.dim]=A;var k=e(o);!I[k]&&A.autoWidthCount++,I[k]=I[k]||{width:0,maxWidth:0};var D=T(o.get("barWidth"),S),L=T(o.get("barMaxWidth"),S),R=o.get("barGap"),O=o.get("barCategoryGap");D&&!I[k].width&&(D=Math.min(A.remainedWidth,D),I[k].width=D,A.remainedWidth-=D),L&&(I[k].maxWidth=L),R!=null&&(A.gap=R),O!=null&&(A.categoryGap=O)}),y={},p.each(a,function(o,d){y[d]={};var m,_=o.stacks,M=o.bandWidth,S=T(o.categoryGap,M),A=T(o.gap,1),I=o.remainedWidth,k=o.autoWidthCount,D=(I-S)/(k+(k-1)*A);D=Math.max(D,0),p.each(_,function(O,N){var z=O.maxWidth;z&&z<D&&(z=Math.min(z,I),O.width&&(z=Math.min(z,O.width)),I-=z,O.width=z,k--)}),D=Math.max(D=(I-S)/(k+(k-1)*A),0);var L=0;p.each(_,function(O,N){O.width||(O.width=D),m=O,L+=O.width*(1+A)}),m&&(L-=m.width*A);var R=-L/2;p.each(_,function(O,N){y[d][N]=y[d][N]||{offset:R,width:O.width},R+=O.width*(1+A)})}),y);n.eachSeriesByType(h,function(o){if(o.coordinateSystem.type==="polar"){var d=o.getData(),m=o.coordinateSystem,_=m.getBaseAxis(),M=e(o),S=c[_.dim][M],A=S.offset,I=S.width,k=m.getOtherAxis(_),D=o.coordinateSystem.cx,L=o.coordinateSystem.cy,R=o.get("barMinHeight")||0,O=o.get("barMinAngle")||0;g[M]=g[M]||[];for(var N=d.mapDimension(k.dim),z=d.mapDimension(_.dim),V=w(d,N),B=k.getExtent()[0],G=0,E=d.count();G<E;G++){var H,W,$,Z,Q=d.get(N,G),Y=d.get(z,G);if(!isNaN(Q)){var K=Q>=0?"p":"n",ne=B;if(V&&(g[M][Y]||(g[M][Y]={p:B,n:B}),ne=g[M][Y][K]),k.dim==="radius"){var X=k.dataToRadius(Q)-B,ee=_.dataToAngle(Y);Math.abs(X)<R&&(X=(X<0?-1:1)*R),H=ne,W=ne+X,Z=($=ee-A)-I,V&&(g[M][Y][K]=W)}else{var ae=k.dataToAngle(Q,!0)-B,oe=_.dataToRadius(Y);Math.abs(ae)<O&&(ae=(ae<0?-1:1)*O),W=(H=oe+A)+I,$=ne,Z=ne+ae,V&&(g[M][Y][K]=Z)}d.setItemLayout(G,{cx:D,cy:L,r0:H,r:W,startAngle:-$*Math.PI/180,endAngle:-Z*Math.PI/180})}}}},this)}},21188:function(U,C,b){var p=b(23405).map,T=b(52227),w=b(91968).isDimensionStacked;U.exports=function(e){return{seriesType:e,plan:T(),reset:function(h){var n=h.getData(),t=h.coordinateSystem,f=h.pipelineContext.large;if(t){var a=p(t.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),y=a.length,g=n.getCalculationInfo("stackResultDimension");return w(n,a[0])&&(a[0]=g),w(n,a[1])&&(a[1]=g),y&&{progress:function(c,o){for(var d,m=c.end-c.start,_=f&&new Float32Array(m*y),M=c.start,S=0,A=[],I=[];M<c.end;M++){if(y===1){var k=o.get(a[0],M);d=!isNaN(k)&&t.dataToPoint(k,null,I)}else{var k=A[0]=o.get(a[0],M),D=A[1]=o.get(a[1],M);d=!isNaN(k)&&!isNaN(D)&&t.dataToPoint(A,null,I)}f?(_[S++]=d?d[0]:NaN,_[S++]=d?d[1]:NaN):o.setItemLayout(M,d&&d.slice()||[NaN,NaN])}f&&o.setLayout("symbolPoints",_)}}}}}}},30427:function(U,C,b){var p=b(23405),T=b(51747),w=Math.PI;U.exports=function(e,h){h=h||{},p.defaults(h,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new T.Rect({style:{fill:h.maskColor},zlevel:h.zlevel,z:1e4}),t=new T.Arc({shape:{startAngle:-w/2,endAngle:-w/2+.1,r:10},style:{stroke:h.color,lineCap:"round",lineWidth:5},zlevel:h.zlevel,z:10001}),f=new T.Rect({style:{fill:"none",text:h.text,textPosition:"right",textDistance:10,textFill:h.textColor},zlevel:h.zlevel,z:10001});t.animateShape(!0).when(1e3,{endAngle:3*w/2}).start("circularInOut"),t.animateShape(!0).when(1e3,{startAngle:3*w/2}).delay(300).start("circularInOut");var a=new T.Group;return a.add(t),a.add(f),a.add(n),a.resize=function(){var y=e.getWidth()/2,g=e.getHeight()/2;t.setShape({cx:y,cy:g});var c=t.shape.r;f.setShape({x:y-c,y:g-c,width:2*c,height:2*c}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},a.resize(),a}},28628:function(U,C,b){var p=b(23405),T=b(46082),w=b(91342),e=b(92161),h=e.enableClassManagement,n=e.parseClassType,t=b(51064).makeInner,f=b(62751),a=b(57638),y=t(),g=T.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(c,o,d,m){T.call(this,c,o,d,m),this.uid=w.getUID("ec_cpt_model")},init:function(c,o,d,m){this.mergeDefaultAndTheme(c,d)},mergeDefaultAndTheme:function(c,o){var d=this.layoutMode,m=d?f.getLayoutParams(c):{},_=o.getTheme();p.merge(c,_.get(this.mainType)),p.merge(c,this.getDefaultOption()),d&&f.mergeLayoutParam(c,m,d)},mergeOption:function(c,o){p.merge(this.option,c,!0);var d=this.layoutMode;d&&f.mergeLayoutParam(this.option,c,d)},optionUpdated:function(c,o){},getDefaultOption:function(){var c=y(this);if(!c.defaultOption){for(var o=[],d=this.constructor;d;){var m=d.prototype.defaultOption;m&&o.push(m),d=d.superClass}for(var _={},M=o.length-1;M>=0;M--)_=p.merge(_,o[M],!0);c.defaultOption=_}return c.defaultOption},getReferringComponents:function(c){return this.ecModel.queryComponents({mainType:c,index:this.get(c+"Index",!0),id:this.get(c+"Id",!0)})}});h(g,{registerWhenExtend:!0}),w.enableSubTypeDefaulter(g),w.enableTopologicalTravel(g,function(c){var o=[];return p.each(g.getClassesByMainType(c),function(d){o=o.concat(d.prototype.dependencies||[])}),o=p.map(o,function(d){return n(d).main}),c!=="dataset"&&0>=p.indexOf(o,"dataset")&&o.unshift("dataset"),o}),p.mixin(g,a),U.exports=g},47409:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=p.each,w=p.filter,e=p.map,h=p.isArray,n=p.indexOf,t=p.isObject,f=p.isString,a=p.createHashMap,y=p.assert,g=p.clone,c=p.merge,o=p.extend,d=p.mixin,m=b(51064),_=b(46082),M=b(28628),S=b(31060),A=b(94738),I=b(52009).resetSourceDefaulter,k="\0_ec_inner",D=_.extend({init:function(N,z,V,B){V=V||{},this.option=null,this._theme=new _(V),this._optionManager=B},setOption:function(N,z){y(!(k in N),"please use chart.getOption()"),this._optionManager.setOption(N,z),this.resetOption(null)},resetOption:function(N){var z=!1,V=this._optionManager;if(!N||N==="recreate"){var B=V.mountOption(N==="recreate");this.option&&N!=="recreate"?(this.restoreData(),this.mergeOption(B)):L.call(this,B),z=!0}if((N==="timeline"||N==="media")&&this.restoreData(),!N||N==="recreate"||N==="timeline"){var G=V.getTimelineOption(this);G&&(this.mergeOption(G),z=!0)}if(!N||N==="recreate"||N==="media"){var E=V.getMediaOption(this,this._api);E.length&&T(E,function(H){this.mergeOption(H,z=!0)},this)}return z},mergeOption:function(N){var z=this.option,V=this._componentsMap,B=[];I(this),T(N,function(G,E){G!=null&&(M.hasClass(E)?E&&B.push(E):z[E]=z[E]==null?g(G):c(z[E],G,!0))}),M.topologicalTravel(B,M.getAllClassMainTypes(),function(G,E){var H,W,$,Z=m.normalizeToArray(N[G]),Q=m.mappingToExists(V.get(G),Z);m.makeIdAndName(Q),T(Q,function(K,ne){var X,ee,ae,oe=K.option;t(oe)&&(K.keyInfo.mainType=G,K.keyInfo.subType=(X=G,ee=oe,ae=K.exist,ee.type?ee.type:ae?ae.subType:M.determineSubType(X,ee)))});var Y=(H=V,h(W=E)||(W=W?[W]:[]),$={},T(W,function(K){$[K]=(H.get(K)||[]).slice()}),$);z[G]=[],V.set(G,[]),T(Q,function(K,ne){var X=K.exist,ee=K.option;if(y(t(ee)||X,"Empty component definition"),ee){var ae=M.getClass(G,K.keyInfo.subType,!0);if(X&&X instanceof ae)X.name=K.keyInfo.name,X.mergeOption(ee,this),X.optionUpdated(ee,!1);else{var oe=o({dependentModels:Y,componentIndex:ne},K.keyInfo);o(X=new ae(ee,this,this,oe),oe),X.init(ee,this,this,oe),X.optionUpdated(null,!0)}}else X.mergeOption({},this),X.optionUpdated({},!1);V.get(G)[ne]=X,z[G][ne]=X.option},this),G==="series"&&R(this,V.get("series"))},this),this._seriesIndicesMap=a(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var N=g(this.option);return T(N,function(z,V){if(M.hasClass(V)){for(var z=m.normalizeToArray(z),B=z.length-1;B>=0;B--)m.isIdInner(z[B])&&z.splice(B,1);N[V]=z}}),delete N[k],N},getTheme:function(){return this._theme},getComponent:function(N,z){var V=this._componentsMap.get(N);if(V)return V[z||0]},queryComponents:function(N){var z,V=N.mainType;if(!V)return[];var B=N.index,G=N.id,E=N.name,H=this._componentsMap.get(V);if(!H||!H.length)return[];if(B!=null)h(B)||(B=[B]),z=w(e(B,function(Z){return H[Z]}),function(Z){return!!Z});else if(G!=null){var W=h(G);z=w(H,function(Z){return W&&n(G,Z.id)>=0||!W&&Z.id===G})}else if(E!=null){var $=h(E);z=w(H,function(Z){return $&&n(E,Z.name)>=0||!$&&Z.name===E})}else z=H.slice();return O(z,N)},findComponents:function(N){var z,V,B,G,E,H=N.query,W=N.mainType,$=(z=H,V=W+"Index",B=W+"Id",G=W+"Name",z&&(z[V]!=null||z[B]!=null||z[G]!=null)?{mainType:W,index:z[V],id:z[B],name:z[G]}:null);return E=O($?this.queryComponents($):this._componentsMap.get(W),N),N.filter?w(E,N.filter):E},eachComponent:function(N,z,V){var B=this._componentsMap;typeof N=="function"?(V=z,z=N,B.each(function(G,E){T(G,function(H,W){z.call(V,E,H,W)})})):f(N)?T(B.get(N),z,V):t(N)&&T(this.findComponents(N),z,V)},getSeriesByName:function(N){return w(this._componentsMap.get("series"),function(z){return z.name===N})},getSeriesByIndex:function(N){return this._componentsMap.get("series")[N]},getSeriesByType:function(N){return w(this._componentsMap.get("series"),function(z){return z.subType===N})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(N,z){T(this._seriesIndices,function(V){var B=this._componentsMap.get("series")[V];N.call(z,B,V)},this)},eachRawSeries:function(N,z){T(this._componentsMap.get("series"),N,z)},eachSeriesByType:function(N,z,V){T(this._seriesIndices,function(B){var G=this._componentsMap.get("series")[B];G.subType===N&&z.call(V,G,B)},this)},eachRawSeriesByType:function(N,z,V){return T(this.getSeriesByType(N),z,V)},isSeriesFiltered:function(N){return this._seriesIndicesMap.get(N.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(N,z){R(this,w(this._componentsMap.get("series"),N,z))},restoreData:function(N){var z=this._componentsMap;R(this,z.get("series"));var V=[];z.each(function(B,G){V.push(G)}),M.topologicalTravel(V,M.getAllClassMainTypes(),function(B,G){T(z.get(B),function(E){B==="series"&&function(H,W){if(W){var $=W.seiresIndex,Z=W.seriesId,Q=W.seriesName;return $!=null&&H.componentIndex!==$||Z!=null&&H.id!==Z||Q!=null&&H.name!==Q}}(E,N)||E.restoreData()})})}});function L(N){var z,V;this.option={},this.option[k]=1,this._componentsMap=a({series:[]}),this._seriesIndices,this._seriesIndicesMap,z=this._theme.option,V=N.color&&!N.colorLayer,T(z,function(B,G){(G!=="colorLayer"||!V)&&(M.hasClass(G)||(typeof B=="object"?N[G]=N[G]?c(N[G],B,!1):g(B):N[G]==null&&(N[G]=B)))}),c(N,S,!1),this.mergeOption(N)}function R(N,z){N._seriesIndicesMap=a(N._seriesIndices=e(z,function(V){return V.componentIndex})||[])}function O(N,z){return z.hasOwnProperty("subType")?w(N,function(V){return V.subType===z.subType}):N}d(D,A),U.exports=D},46082:function(U,C,b){var p=b(23405),T=b(23584),w=b(51064).makeInner,e=b(92161),h=e.enableClassExtend,n=e.enableClassCheck,t=b(77466),f=b(31169),a=b(25332),y=b(42065),g=p.mixin,c=w();function o(_,M,S){this.parentModel=M,this.ecModel=S,this.option=_}function d(_,M,S){for(var A=0;A<M.length&&(!M[A]||(_=_&&typeof _=="object"?_[M[A]]:null)!=null);A++);return _==null&&S&&(_=S.get(M)),_}function m(_,M){var S=c(_).getParent;return S?S.call(_,M):_.parentModel}o.prototype={constructor:o,init:null,mergeOption:function(_){p.merge(this.option,_,!0)},get:function(_,M){return _==null?this.option:d(this.option,this.parsePath(_),!M&&m(this,_))},getShallow:function(_,M){var S=this.option,A=S==null?S:S[_],I=!M&&m(this,_);return A==null&&I&&(A=I.getShallow(_)),A},getModel:function(_,M){var S;return new o(_==null?this.option:d(this.option,_=this.parsePath(_)),M=M||(S=m(this,_))&&S.getModel(_),this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){return new this.constructor(p.clone(this.option))},setReadOnly:function(_){},parsePath:function(_){return typeof _=="string"&&(_=_.split(".")),_},customizeGetParent:function(_){c(this).getParent=_},isAnimationEnabled:function(){if(!T.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},h(o),n(o),g(o,t),g(o,f),g(o,a),g(o,y),U.exports=o},22216:function(U,C,b){var p=b(23405),T=b(51064),w=b(28628),e=p.each,h=p.clone,n=p.map,t=p.merge,f=/^(min|max)?(.+)$/;function a(g){this._api=g,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function y(g,c,o){var d,m,_=[],M=[],S=g.timeline;return g.baseOption&&(m=g.baseOption),(S||g.options)&&(m=m||{},_=(g.options||[]).slice()),g.media&&(m=m||{},e(g.media,function(A){A&&A.option&&(A.query?M.push(A):d||(d=A))})),m||(m=g),m.timeline||(m.timeline=S),e([m].concat(_).concat(p.map(M,function(A){return A.option})),function(A){e(c,function(I){I(A,o)})}),{baseOption:m,timelineOptions:_,mediaDefault:d,mediaList:M}}a.prototype={constructor:a,setOption:function(g,c){g&&p.each(T.normalizeToArray(g.series),function(_){_&&_.data&&p.isTypedArray(_.data)&&p.setAsPrimitive(_.data)}),g=h(g,!0);var o,d=this._optionBackup,m=y.call(this,g,c,!d);this._newBaseOption=m.baseOption,d?(o=d.baseOption,e(m.baseOption||{},function(_,M){if(_!=null){var S=o[M];if(w.hasClass(M)){_=T.normalizeToArray(_),S=T.normalizeToArray(S);var A=T.mappingToExists(S,_);o[M]=n(A,function(I){return I.option&&I.exist?t(I.exist,I.option,!0):I.exist||I.option})}else o[M]=t(S,_,!0)}}),m.timelineOptions.length&&(d.timelineOptions=m.timelineOptions),m.mediaList.length&&(d.mediaList=m.mediaList),m.mediaDefault&&(d.mediaDefault=m.mediaDefault)):this._optionBackup=m},mountOption:function(g){var c=this._optionBackup;return this._timelineOptions=n(c.timelineOptions,h),this._mediaList=n(c.mediaList,h),this._mediaDefault=h(c.mediaDefault),this._currentMediaIndices=[],h(g?c.baseOption:this._newBaseOption)},getTimelineOption:function(g){var c,o=this._timelineOptions;if(o.length){var d=g.getComponent("timeline");d&&(c=h(o[d.getCurrentIndex()],!0))}return c},getMediaOption:function(g){var c,o,d=this._api.getWidth(),m=this._api.getHeight(),_=this._mediaList,M=this._mediaDefault,S=[],A=[];if(!_.length&&!M)return A;for(var I=0,k=_.length;I<k;I++)(function(D,L,R){var O={width:L,height:R,aspectratio:L/R},N=!0;return p.each(D,function(z,V){var B=V.match(f);if(B&&B[1]&&B[2]){var G,E,H,W=B[1];G=O[B[2].toLowerCase()],E=z,((H=W)==="min"?G>=E:H==="max"?G<=E:G===E)||(N=!1)}}),N})(_[I].query,d,m)&&S.push(I);return!S.length&&M&&(S=[-1]),S.length&&(c=S,o=this._currentMediaIndices,c.join(",")!==o.join(","))&&(A=n(S,function(D){return h(D===-1?M.option:_[D].option)})),this._currentMediaIndices=S,A}},U.exports=a},95166:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=b(23584),w=b(60653),e=w.formatTime,h=w.encodeHTML,n=w.addCommas,t=w.getTooltipMarker,f=b(51064),a=b(28628),y=b(94738),g=b(62369),c=b(62751),o=c.getLayoutParams,d=c.mergeLayoutParam,m=b(53833).createTask,_=b(52009),M=_.prepareSource,S=_.getSource,A=b(45435).retrieveRawValue,I=f.makeInner(),k=a.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(B,G,E,H){this.seriesIndex=this.componentIndex,this.dataTask=m({count:L,reset:R}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(B,E),M(this);var W=this.getInitialData(B,E);N(W,this),this.dataTask.context.data=W,I(this).dataBeforeProcessed=W,D(this)},mergeDefaultAndTheme:function(B,G){var E=this.layoutMode,H=E?o(B):{},W=this.subType;a.hasClass(W)&&(W+="Series"),p.merge(B,G.getTheme().get(this.subType)),p.merge(B,this.getDefaultOption()),f.defaultEmphasis(B,"label",["show"]),this.fillDataTextStyle(B.data),E&&d(B,H,E)},mergeOption:function(B,G){B=p.merge(this.option,B,!0),this.fillDataTextStyle(B.data);var E=this.layoutMode;E&&d(this.option,B,E),M(this);var H=this.getInitialData(B,G);N(H,this),this.dataTask.dirty(),this.dataTask.context.data=H,I(this).dataBeforeProcessed=H,D(this)},fillDataTextStyle:function(B){if(B&&!p.isTypedArray(B))for(var G=["show"],E=0;E<B.length;E++)B[E]&&B[E].label&&f.defaultEmphasis(B[E],"label",G)},getInitialData:function(){},appendData:function(B){this.getRawData().appendData(B.data)},getData:function(B){var G=V(this);if(!G)return I(this).data;var E=G.context.data;return B==null?E:E.getLinkedData(B)},setData:function(B){var G=V(this);if(G){var E=G.context;E.data!==B&&G.modifyOutputEnd&&G.setOutputEnd(B.count()),E.outputData=B,G!==this.dataTask&&(E.data=B)}I(this).data=B},getSource:function(){return S(this)},getRawData:function(){return I(this).dataBeforeProcessed},getBaseAxis:function(){var B=this.coordinateSystem;return B&&B.getBaseAxis&&B.getBaseAxis()},formatTooltip:function(B,G,E,H){var W,$=this,Z=(H=H||"html")==="html"?"<br/>":`
`,Q=H==="richText",Y={},K=0,ne=this.getData(),X=ne.mapDimension("defaultedTooltip",!0),ee=X.length,ae=this.getRawValue(B),oe=p.isArray(ae),se=ne.getItemVisual(B,"color");p.isObject(se)&&se.colorStops&&(se=(se.colorStops[0]||{}).color),se=se||"transparent";var ge=(ee>1||oe&&!ee?function(ye){var ve=p.reduce(ye,function(ke,De,Ce){var Le=ne.getDimensionInfo(Ce);return ke|(Le&&Le.tooltip!==!1&&Le.displayName!=null)},0),Ae=[];function _e(ke,De){var Ce=ne.getDimensionInfo(De);if(Ce&&Ce.otherDims.tooltip!==!1){var Le=Ce.type,Ve="sub"+$.seriesIndex+"at"+K,Ge=t({color:se,type:"subItem",renderMode:H,markerId:Ve}),Je=typeof Ge=="string"?Ge:Ge.content,rt=(ve?Je+h(Ce.displayName||"-")+": ":"")+h(Le==="ordinal"?ke+"":Le==="time"?G?"":e("yyyy/MM/dd hh:mm:ss",ke):n(ke));rt&&Ae.push(rt),Q&&(Y[Ve]=se,++K)}}X.length?p.each(X,function(ke){_e(A(ne,B,ke),ke)}):p.each(ye,_e);var Pe=ve?Q?`
`:"<br/>":"",Oe=Pe+Ae.join(Pe||", ");return{renderMode:H,content:Oe,style:Y}}(ae):(W=ee?A(ne,B,X[0]):oe?ae[0]:ae,{content:h(n(W))})).content,fe=$.seriesIndex+"at"+K,le=t({color:se,type:"item",renderMode:H,markerId:fe});Y[fe]=se,++K;var ue=ne.getName(B),he=this.name;f.isNameSpecified(this)||(he=""),he=he?h(he)+(G?": ":Z):"";var pe=typeof le=="string"?le:le.content;return{html:G?pe+he+ge:he+pe+(ue?h(ue)+": "+ge:ge),markers:Y}},isAnimationEnabled:function(){if(T.node)return!1;var B=this.getShallow("animation");return B&&this.getData().count()>this.getShallow("animationThreshold")&&(B=!1),B},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(B,G,E){var H=this.ecModel,W=y.getColorFromPalette.call(this,B,G,E);return W||(W=H.getColorFromPalette(B,G,E)),W},coordDimToDataDim:function(B){return this.getRawData().mapDimension(B,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function D(B){var G,E,H,W=B.name;f.isNameSpecified(B)||(B.name=(E=(G=B.getRawData()).mapDimension("seriesName",!0),H=[],p.each(E,function($){var Z=G.getDimensionInfo($);Z.displayName&&H.push(Z.displayName)}),H.join(" ")||W))}function L(B){return B.model.getRawData().count()}function R(B){var G=B.model;return G.setData(G.getRawData().cloneShallow()),O}function O(B,G){B.end>G.outputData.count()&&G.model.getRawData().cloneShallow(G.outputData)}function N(B,G){p.each(B.CHANGABLE_METHODS,function(E){B.wrapMethod(E,p.curry(z,G))})}function z(B){var G=V(B);G&&G.setOutputEnd(this.count())}function V(B){var G=(B.ecModel||{}).scheduler,E=G&&G.getPipeline(B.uid);if(E){var H=E.currentTask;if(H){var W=H.agentStubMap;W&&(H=W.get(B.uid))}return H}}p.mixin(k,g),p.mixin(k,y),U.exports=k},31060:function(U){var C="";typeof navigator<"u"&&(C=navigator.platform||""),U.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:C.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}},31169:function(U,C,b){var p=b(74106)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]);U.exports={getAreaStyle:function(T,w){return p(this,T,w)}}},57638:function(U){U.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},94738:function(U,C,b){var p=b(51064),T=p.makeInner,w=p.normalizeToArray,e=T();U.exports={clearColorPalette:function(){e(this).colorIdx=0,e(this).colorNameMap={}},getColorFromPalette:function(h,n,t){var f=e(n=n||this),a=f.colorIdx||0,y=f.colorNameMap=f.colorNameMap||{};if(y.hasOwnProperty(h))return y[h];var g=w(this.get("color",!0)),c=this.get("colorLayer",!0),o=t!=null&&c?function(m,_){for(var M=m.length,S=0;S<M;S++)if(m[S].length>_)return m[S];return m[M-1]}(c,t):g;if((o=o||g)&&o.length){var d=o[a];return h&&(y[h]=d),f.colorIdx=(a+1)%o.length,d}}}},62369:function(U,C,b){var p=b(45435).retrieveRawValue,T=b(60653),w=T.getTooltipMarker,e=T.formatTpl,h=b(51064).getTooltipRenderMode,n=/\{@(.+?)\}/g;U.exports={getDataParams:function(t,f){var a=this.getData(f),y=this.getRawValue(t,f),g=a.getRawIndex(t),c=a.getName(t),o=a.getRawDataItem(t),d=a.getItemVisual(t,"color"),m=this.ecModel.getComponent("tooltip"),_=h(m&&m.get("renderMode")),M=this.mainType,S=M==="series";return{componentType:M,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:S?this.subType:null,seriesIndex:this.seriesIndex,seriesId:S?this.id:null,seriesName:S?this.name:null,name:c,dataIndex:g,data:o,dataType:f,value:y,color:d,marker:w({color:d,renderMode:_}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,f,a,y,g){f=f||"normal";var c=this.getData(a),o=c.getItemModel(t),d=this.getDataParams(t,a);y!=null&&d.value instanceof Array&&(d.value=d.value[y]);var m=o.get(f==="normal"?[g||"label","formatter"]:[f,g||"label","formatter"]);return typeof m=="function"?(d.status=f,m(d)):typeof m=="string"?e(m,d).replace(n,function(_,M){var S=M.length;return M.charAt(0)==="["&&M.charAt(S-1)==="]"&&(M=+M.slice(1,S-1)),p(c,t,M)}):void 0},getRawValue:function(t,f){return p(this.getData(f),t)},formatTooltip:function(){}}},42065:function(U,C,b){var p=b(74106)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);U.exports={getItemStyle:function(T,w){var e=p(this,T,w),h=this.getBorderLineDash();return h&&(e.lineDash=h),e},getBorderLineDash:function(){var T=this.get("borderType");return T==="solid"||T==null?null:T==="dashed"?[5,5]:[1,1]}}},77466:function(U,C,b){var p=b(74106)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);U.exports={getLineStyle:function(T){var w=p(this,T),e=this.getLineDash(w.lineWidth);return e&&(w.lineDash=e),w},getLineDash:function(T){T==null&&(T=1);var w=this.get("type"),e=Math.max(T,2),h=4*T;return w==="solid"||w==null?null:w==="dashed"?[h,h]:[e,e]}}},74106:function(U,C,b){var p=b(23405);U.exports=function(T){for(var w=0;w<T.length;w++)T[w][1]||(T[w][1]=T[w][0]);return function(e,h,n){for(var t={},f=0;f<T.length;f++){var a=T[f][1];if(!(h&&p.indexOf(h,a)>=0||n&&0>p.indexOf(n,a))){var y=e.getShallow(a);y!=null&&(t[T[f][0]]=y)}}return t}}},25332:function(U,C,b){var p=b(24570),T=b(51747),w=["textStyle","color"];U.exports={getTextColor:function(e){var h=this.ecModel;return this.getShallow("color")||(!e&&h?h.get(w):null)},getFont:function(){return T.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return p.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}}},83813:function(U,C,b){b(9129).__DEV__;var p=b(23405),T=p.createHashMap;p.retrieve;var w=p.each,e={cartesian2d:function(n,t,f,a){var y=n.getReferringComponents("xAxis")[0],g=n.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],f.set("x",y),f.set("y",g),h(y)&&(a.set("x",y),t.firstCategoryDimIndex=0),h(g)&&(a.set("y",g),t.firstCategoryDimIndex=1)},singleAxis:function(n,t,f,a){var y=n.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],f.set("single",y),h(y)&&(a.set("single",y),t.firstCategoryDimIndex=0)},polar:function(n,t,f,a){var y=n.getReferringComponents("polar")[0],g=y.findAxisModel("radiusAxis"),c=y.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],f.set("radius",g),f.set("angle",c),h(g)&&(a.set("radius",g),t.firstCategoryDimIndex=0),h(c)&&(a.set("angle",c),t.firstCategoryDimIndex=1)},geo:function(n,t,f,a){t.coordSysDims=["lng","lat"]},parallel:function(n,t,f,a){var y=n.ecModel,g=y.getComponent("parallel",n.get("parallelIndex")),c=t.coordSysDims=g.dimensions.slice();w(g.parallelAxisIndex,function(o,d){var m=y.getComponent("parallelAxis",o),_=c[d];f.set(_,m),h(m)&&t.firstCategoryDimIndex==null&&(a.set(_,m),t.firstCategoryDimIndex=d)})}};function h(n){return n.get("type")==="category"}C.getCoordSysDefineBySeries=function(n){var t=n.get("coordinateSystem"),f={coordSysName:t,coordSysDims:[],axisMap:T(),categoryAxisMap:T()},a=e[t];if(a)return a(n,f,f.axisMap,f.categoryAxisMap),f}},8381:function(U,C,b){var p=b(23405),T=p.each,w=p.isArray,e=p.isObject,h=b(469),n=b(51064).normalizeToArray;function t(y){T(f,function(g){g[0]in y&&!(g[1]in y)&&(y[g[1]]=y[g[0]])})}var f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],a=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];U.exports=function(y,g){h(y,g),y.series=n(y.series),T(y.series,function(c){if(e(c)){var o=c.type;if((o==="pie"||o==="gauge")&&c.clockWise!=null&&(c.clockwise=c.clockWise),o==="gauge"){var d=function(m,_){_=_.split(",");for(var M=m,S=0;S<_.length&&(M=M&&M[_[S]])!=null;S++);return M}(c,"pointer.color");d!=null&&function(m,_,M,S){_=_.split(",");for(var A,I=m,k=0;k<_.length-1;k++)I[A=_[k]]==null&&(I[A]={}),I=I[A];I[_[k]]==null&&(I[_[k]]=M)}(c,"itemStyle.normal.color",d)}t(c)}}),y.dataRange&&(y.visualMap=y.dataRange),T(a,function(c){var o=y[c];o&&(w(o)||(o=[o]),T(o,function(d){t(d)}))})}},469:function(U,C,b){var p=b(23405),T=b(51064),w=p.each,e=p.isObject,h=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function n(o){var d=o&&o.itemStyle;if(d)for(var m=0,_=h.length;m<_;m++){var M=h[m],S=d.normal,A=d.emphasis;S&&S[M]&&(o[M]=o[M]||{},o[M].normal?p.merge(o[M].normal,S[M]):o[M].normal=S[M],S[M]=null),A&&A[M]&&(o[M]=o[M]||{},o[M].emphasis?p.merge(o[M].emphasis,A[M]):o[M].emphasis=A[M],A[M]=null)}}function t(o,d,m){if(o&&o[d]&&(o[d].normal||o[d].emphasis)){var _=o[d].normal,M=o[d].emphasis;_&&(m?(o[d].normal=o[d].emphasis=null,p.defaults(o[d],_)):o[d]=_),M&&(o.emphasis=o.emphasis||{},o.emphasis[d]=M)}}function f(o){t(o,"itemStyle"),t(o,"lineStyle"),t(o,"areaStyle"),t(o,"label"),t(o,"labelLine"),t(o,"upperLabel"),t(o,"edgeLabel")}function a(o,d){var m=e(o)&&o[d],_=e(m)&&m.textStyle;if(_)for(var M=0,S=T.TEXT_STYLE_OPTIONS.length;M<S;M++){var d=T.TEXT_STYLE_OPTIONS[M];_.hasOwnProperty(d)&&(m[d]=_[d])}}function y(o){o&&(f(o),a(o,"label"),o.emphasis&&a(o.emphasis,"label"))}function g(o){return p.isArray(o)?o:o?[o]:[]}function c(o){return(p.isArray(o)?o[0]:o)||{}}U.exports=function(o,d){w(g(o.series),function(_){e(_)&&function(M){if(e(M)){n(M),f(M),a(M,"label"),a(M,"upperLabel"),a(M,"edgeLabel"),M.emphasis&&(a(M.emphasis,"label"),a(M.emphasis,"upperLabel"),a(M.emphasis,"edgeLabel"));var D=M.markPoint;D&&(n(D),y(D));var R=M.markLine;R&&(n(R),y(R));var S=M.markArea;S&&y(S);var A=M.data;if(M.type==="graph"){A=A||M.nodes;var I=M.links||M.edges;if(I&&!p.isTypedArray(I))for(var k=0;k<I.length;k++)y(I[k]);p.each(M.categories,function(N){f(N)})}if(A&&!p.isTypedArray(A))for(var k=0;k<A.length;k++)y(A[k]);var D=M.markPoint;if(D&&D.data)for(var L=D.data,k=0;k<L.length;k++)y(L[k]);var R=M.markLine;if(R&&R.data)for(var O=R.data,k=0;k<O.length;k++)p.isArray(O[k])?(y(O[k][0]),y(O[k][1])):y(O[k]);M.type==="gauge"?(a(M,"axisLabel"),a(M,"title"),a(M,"detail")):M.type==="treemap"?(t(M.breadcrumb,"itemStyle"),p.each(M.levels,function(N){f(N)})):M.type==="tree"&&f(M.leaves)}}(_)});var m=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];d&&m.push("valueAxis","categoryAxis","logAxis","timeAxis"),w(m,function(_){w(g(o[_]),function(M){M&&(a(M,"axisLabel"),a(M.axisPointer,"label"))})}),w(g(o.parallel),function(_){var M=_&&_.parallelAxisDefault;a(M,"axisLabel"),a(M&&M.axisPointer,"label")}),w(g(o.calendar),function(_){t(_,"itemStyle"),a(_,"dayLabel"),a(_,"monthLabel"),a(_,"yearLabel")}),w(g(o.radar),function(_){a(_,"name")}),w(g(o.geo),function(_){e(_)&&(y(_),w(g(_.regions),function(M){y(M)}))}),w(g(o.timeline),function(_){y(_),t(_,"label"),t(_,"itemStyle"),t(_,"controlStyle",!0);var M=_.data;p.isArray(M)&&p.each(M,function(S){p.isObject(S)&&(t(S,"label"),t(S,"itemStyle"))})}),w(g(o.toolbox),function(_){t(_,"iconStyle"),w(_.feature,function(M){t(M,"iconStyle")})}),a(c(o.axisPointer),"label"),a(c(o.tooltip).axisPointer,"label")}},74278:function(U){U.exports=function(C){return{seriesType:C,reset:function(b,p){var T=p.findComponents({mainType:"legend"});if(T&&T.length){var w=b.getData();w.filterSelf(function(e){for(var h=w.getName(e),n=0;n<T.length;n++)if(!T[n].isSelected(h))return!1;return!0})}}}}},29772:function(U){var C={average:function(p){for(var T=0,w=0,e=0;e<p.length;e++)!isNaN(p[e])&&(T+=p[e],w++);return w===0?NaN:T/w},sum:function(p){for(var T=0,w=0;w<p.length;w++)T+=p[w]||0;return T},max:function(p){for(var T=-1/0,w=0;w<p.length;w++)p[w]>T&&(T=p[w]);return isFinite(T)?T:NaN},min:function(p){for(var T=1/0,w=0;w<p.length;w++)p[w]<T&&(T=p[w]);return isFinite(T)?T:NaN},nearest:function(p){return p[0]}},b=function(p,T){return Math.round(p.length/2)};U.exports=function(p){return{seriesType:p,modifyOutputEnd:!0,reset:function(T,w,e){var h=T.getData(),n=T.get("sampling"),t=T.coordinateSystem;if(t.type==="cartesian2d"&&n){var f,a=t.getBaseAxis(),y=t.getOtherAxis(a),g=a.getExtent(),c=g[1]-g[0],o=Math.round(h.count()/c);o>1&&(typeof n=="string"?f=C[n]:typeof n=="function"&&(f=n),f&&T.setData(h.downSample(h.mapDimension(y.dim),1/o,f,b)))}}}}},93689:function(U,C,b){var p=b(23405),T=p.createHashMap,w=p.each;function e(h){w(h,function(n,t){var f=[],a=[NaN,NaN],y=[n.stackResultDimension,n.stackedOverDimension],g=n.data,c=n.isStackedByIndex,o=g.map(y,function(d,m,_){var M,S,A=g.get(n.stackedDimension,_);if(isNaN(A))return a;c?S=g.getRawIndex(_):M=g.get(n.stackedByDimension,_);for(var I=NaN,k=t-1;k>=0;k--){var D=h[k];if(c||(S=D.data.rawIndexOf(D.stackedByDimension,M)),S>=0){var L=D.data.getByRawIndex(D.stackResultDimension,S);if(A>=0&&L>0||A<=0&&L<0){A+=L,I=L;break}}}return f[0]=A,f[1]=I,f});g.hostModel.setData(o),n.data=o})}U.exports=function(h){var n=T();h.eachSeries(function(t){var f=t.get("stack");if(f){var a=n.get(f)||n.set(f,[]),y=t.getData(),g={stackResultDimension:y.getCalculationInfo("stackResultDimension"),stackedOverDimension:y.getCalculationInfo("stackedOverDimension"),stackedDimension:y.getCalculationInfo("stackedDimension"),stackedByDimension:y.getCalculationInfo("stackedByDimension"),isStackedByIndex:y.getCalculationInfo("isStackedByIndex"),data:y,seriesModel:t};if(!g.stackedDimension||!(g.isStackedByIndex||g.stackedByDimension))return;a.length&&y.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(g)}}),n.each(e)}},86855:function(U,C,b){var p=b(54684),T=b(60653),w=b(49065),e=b(82215),h=p.round,n=w.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,f){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(f)||(a[1]=parseFloat(f))},unionExtent:function(t){var f=this._extent;t[0]<f[0]&&(f[0]=t[0]),t[1]>f[1]&&(f[1]=t[1]),n.prototype.setExtent.call(this,f[0],f[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=e.getIntervalPrecision(t)},getTicks:function(){return e.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,f){if(t==null)return"";var a=f&&f.precision;return a==null?a=p.getPrecisionSafe(t)||0:a==="auto"&&(a=this._intervalPrecision),t=h(t,a,!0),T.addCommas(t)},niceTicks:function(t,f,a){t=t||5;var y=this._extent,g=y[1]-y[0];if(isFinite(g)){g<0&&(g=-g,y.reverse());var c=e.intervalScaleNiceTicks(y,t,f,a);this._intervalPrecision=c.intervalPrecision,this._interval=c.interval,this._niceExtent=c.niceTickExtent}},niceExtent:function(t){var f=this._extent;if(f[0]===f[1])if(f[0]!==0){var a=f[0];t.fixMax||(f[1]+=a/2),f[0]-=a/2}else f[1]=1;isFinite(f[1]-f[0])||(f[0]=0,f[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var y=this._interval;t.fixMin||(f[0]=h(Math.floor(f[0]/y)*y)),t.fixMax||(f[1]=h(Math.ceil(f[1]/y)*y))}});n.create=function(){return new n},U.exports=n},28010:function(U,C,b){var p=b(23405),T=b(49065),w=b(54684),e=b(86855),h=T.prototype,n=e.prototype,t=w.getPrecisionSafe,f=w.round,a=Math.floor,y=Math.ceil,g=Math.pow,c=Math.log,o=T.extend({type:"log",base:10,$constructor:function(){T.apply(this,arguments),this._originalScale=new e},getTicks:function(){var d=this._originalScale,m=this._extent,_=d.getExtent();return p.map(n.getTicks.call(this),function(M){var S=w.round(g(this.base,M));return S=M===m[0]&&d.__fixMin?f(S,t(_[0])):S,S=M===m[1]&&d.__fixMax?f(S,t(_[1])):S},this)},getLabel:n.getLabel,scale:function(d){return d=h.scale.call(this,d),g(this.base,d)},setExtent:function(d,m){var _=this.base;d=c(d)/c(_),m=c(m)/c(_),n.setExtent.call(this,d,m)},getExtent:function(){var d,m,_=this.base,M=h.getExtent.call(this);M[0]=g(_,M[0]),M[1]=g(_,M[1]);var S=this._originalScale,A=S.getExtent();return S.__fixMin&&(M[0]=(d=M[0],f(d,t(A[0])))),S.__fixMax&&(M[1]=(m=M[1],f(m,t(A[1])))),M},unionExtent:function(d){this._originalScale.unionExtent(d);var m=this.base;d[0]=c(d[0])/c(m),d[1]=c(d[1])/c(m),h.unionExtent.call(this,d)},unionExtentFromData:function(d,m){this.unionExtent(d.getApproximateExtent(m))},niceTicks:function(d){d=d||10;var m=this._extent,_=m[1]-m[0];if(_!==1/0&&!(_<=0)){var M=w.quantity(_);for(d/_*M<=.5&&(M*=10);!isNaN(M)&&1>Math.abs(M)&&Math.abs(M)>0;)M*=10;var S=[w.round(y(m[0]/M)*M),w.round(a(m[1]/M)*M)];this._interval=M,this._niceExtent=S}},niceExtent:function(d){n.niceExtent.call(this,d);var m=this._originalScale;m.__fixMin=d.fixMin,m.__fixMax=d.fixMax}});p.each(["contain","normalize"],function(d){o.prototype[d]=function(m){return m=c(m)/c(this.base),h[d].call(this,m)}}),o.create=function(){return new o},U.exports=o},20741:function(U,C,b){var p=b(23405),T=b(49065),w=b(85508),e=T.prototype,h=T.extend({type:"ordinal",init:function(n,t){(!n||p.isArray(n))&&(n=new w({categories:n})),this._ordinalMeta=n,this._extent=t||[0,n.categories.length-1]},parse:function(n){return typeof n=="string"?this._ordinalMeta.getOrdinal(n):Math.round(n)},contain:function(n){return n=this.parse(n),e.contain.call(this,n)&&this._ordinalMeta.categories[n]!=null},normalize:function(n){return e.normalize.call(this,this.parse(n))},scale:function(n){return Math.round(e.scale.call(this,n))},getTicks:function(){for(var n=[],t=this._extent,f=t[0];f<=t[1];)n.push(f),f++;return n},getLabel:function(n){if(!this.isBlank())return this._ordinalMeta.categories[n]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(n,t){this.unionExtent(n.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:p.noop,niceExtent:p.noop});h.create=function(){return new h},U.exports=h},49065:function(U,C,b){var p=b(92161);function T(w){this._setting=w||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}T.prototype.parse=function(w){return w},T.prototype.getSetting=function(w){return this._setting[w]},T.prototype.contain=function(w){var e=this._extent;return w>=e[0]&&w<=e[1]},T.prototype.normalize=function(w){var e=this._extent;return e[1]===e[0]?.5:(w-e[0])/(e[1]-e[0])},T.prototype.scale=function(w){var e=this._extent;return w*(e[1]-e[0])+e[0]},T.prototype.unionExtent=function(w){var e=this._extent;w[0]<e[0]&&(e[0]=w[0]),w[1]>e[1]&&(e[1]=w[1])},T.prototype.unionExtentFromData=function(w,e){this.unionExtent(w.getApproximateExtent(e))},T.prototype.getExtent=function(){return this._extent.slice()},T.prototype.setExtent=function(w,e){var h=this._extent;isNaN(w)||(h[0]=w),isNaN(e)||(h[1]=e)},T.prototype.isBlank=function(){return this._isBlank},T.prototype.setBlank=function(w){this._isBlank=w},T.prototype.getLabel=null,p.enableClassExtend(T),p.enableClassManagement(T,{registerWhenExtend:!0}),U.exports=T},74635:function(U,C,b){var p=b(23405),T=b(54684),w=b(60653),e=b(82215),h=b(86855),n=h.prototype,t=Math.ceil,f=Math.floor,a=function(c,o,d,m){for(;d<m;){var _=d+m>>>1;c[_][1]<o?d=_+1:m=_}return d},y=h.extend({type:"time",getLabel:function(c){var o=this._stepLvl,d=new Date(c);return w.formatTime(o[0],d,this.getSetting("useUTC"))},niceExtent:function(c){var o=this._extent;if(o[0]===o[1]&&(o[0]-=864e5,o[1]+=864e5),o[1]===-1/0&&o[0]===1/0){var d=new Date;o[1]=+new Date(d.getFullYear(),d.getMonth(),d.getDate()),o[0]=o[1]-864e5}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var m=this._interval;c.fixMin||(o[0]=T.round(f(o[0]/m)*m)),c.fixMax||(o[1]=T.round(t(o[1]/m)*m))},niceTicks:function(c,o,d){c=c||10;var m=this._extent,_=m[1]-m[0],M=_/c;o!=null&&M<o&&(M=o),d!=null&&M>d&&(M=d);var S=g.length,A=a(g,M,0,S),I=g[Math.min(A,S-1)],k=I[1];if(I[0]==="year"){var D=_/k;k*=T.nice(D/c,!0)}var L=this.getSetting("useUTC")?0:60*new Date(+m[0]||+m[1]).getTimezoneOffset()*1e3,R=[Math.round(t((m[0]-L)/k)*k+L),Math.round(f((m[1]-L)/k)*k+L)];e.fixExtent(R,m),this._stepLvl=I,this._interval=k,this._niceExtent=R},parse:function(c){return+T.parseDate(c)}});p.each(["contain","normalize"],function(c){y.prototype[c]=function(o){return n[c].call(this,this.parse(o))}});var g=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],[`hh:mm
MM-dd`,6e4],[`hh:mm
MM-dd`,3e5],[`hh:mm
MM-dd`,6e5],[`hh:mm
MM-dd`,9e5],[`hh:mm
MM-dd`,18e5],[`hh:mm
MM-dd`,36e5],[`hh:mm
MM-dd`,72e5],[`hh:mm
MM-dd`,216e5],[`hh:mm
MM-dd`,432e5],[`MM-dd
yyyy`,864e5],[`MM-dd
yyyy`,1728e5],[`MM-dd
yyyy`,2592e5],[`MM-dd
yyyy`,3456e5],[`MM-dd
yyyy`,432e6],[`MM-dd
yyyy`,5184e5],["week",6048e5],[`MM-dd
yyyy`,864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];y.create=function(c){return new y({useUTC:c.ecModel.get("useUTC")})},U.exports=y},82215:function(U,C,b){var p=b(54684),T=p.round;function w(n){return p.getPrecisionSafe(n)+2}function e(n,t,f){n[t]=Math.max(Math.min(n[t],f[1]),f[0])}function h(n,t){isFinite(n[0])||(n[0]=t[0]),isFinite(n[1])||(n[1]=t[1]),e(n,0,t),e(n,1,t),n[0]>n[1]&&(n[0]=n[1])}C.intervalScaleNiceTicks=function(n,t,f,a){var y={},g=n[1]-n[0],c=y.interval=p.nice(g/t,!0);f!=null&&c<f&&(c=y.interval=f),a!=null&&c>a&&(c=y.interval=a);var o=y.intervalPrecision=w(c);return h(y.niceTickExtent=[T(Math.ceil(n[0]/c)*c,o),T(Math.floor(n[1]/c)*c,o)],n),y},C.getIntervalPrecision=w,C.fixExtent=h,C.intervalScaleGetTicks=function(n,t,f,a){var y=[];if(!n)return y;t[0]<f[0]&&y.push(t[0]);for(var g=f[0];g<=f[1]&&(y.push(g),(g=T(g+n,a))!==y[y.length-1]);)if(y.length>1e4)return[];return t[1]>(y.length?y[y.length-1]:f[1])&&y.push(t[1]),y}},78796:function(U,C,b){var p,T=b(23405),w=T.each,e=T.map,h=T.isFunction,n=T.createHashMap,t=T.noop,f=b(53833).createTask,a=b(91342).getUID,y=b(47409),g=b(60089),c=b(51064).normalizeToArray;function o(G,E,$,Z){this.ecInstance=G,this.api=E,this.unfinished;var $=this._dataProcessorHandlers=$.slice(),Z=this._visualHandlers=Z.slice();this._allHandlers=$.concat(Z),this._stageTaskMap=n()}var d=o.prototype;function m(G,E,H,W,$){var Z;function Q(Y,K){return Y.setDirty&&(!Y.dirtyMap||Y.dirtyMap.get(K.__pipeline.id))}$=$||{},w(E,function(Y,K){if(!$.visualType||$.visualType===Y.visualType){var ne=G._stageTaskMap.get(Y.uid),X=ne.seriesTaskMap,ee=ne.overallTask;if(ee){var ae,oe=ee.agentStubMap;oe.each(function(ge){Q($,ge)&&(ge.dirty(),ae=!0)}),ae&&ee.dirty(),_(ee,W);var se=G.getPerformArgs(ee,$.block);oe.each(function(ge){ge.perform(se)}),Z|=ee.perform(se)}else X&&X.each(function(ge,fe){Q($,ge)&&ge.dirty();var le=G.getPerformArgs(ge,$.block);le.skip=!Y.performRawSeries&&H.isSeriesFiltered(ge.context.model),_(ge,W),Z|=ge.perform(le)})}}),G.unfinished|=Z}d.restoreData=function(G,E){G.restoreData(E),this._stageTaskMap.each(function(H){var W=H.overallTask;W&&W.dirty()})},d.getPerformArgs=function(G,E){if(G.__pipeline){var H=this._pipelineMap.get(G.__pipeline.id),W=H.context,$=!E&&H.progressiveEnabled&&(!W||W.progressiveRender)&&G.__idxInPipeline>H.blockIndex?H.step:null,Z=W&&W.modDataCount,Q=Z!=null?Math.ceil(Z/$):null;return{step:$,modBy:Q,modDataCount:Z}}},d.getPipeline=function(G){return this._pipelineMap.get(G)},d.updateStreamModes=function(G,E){var H=this._pipelineMap.get(G.uid),W=G.getData().count(),$=H.progressiveEnabled&&E.incrementalPrepareRender&&W>=H.threshold,Z=G.get("large")&&W>=G.get("largeThreshold"),Q=G.get("progressiveChunkMode")==="mod"?W:null;G.pipelineContext=H.context={progressiveRender:$,modDataCount:Q,large:Z}},d.restorePipelines=function(G){var E=this,H=E._pipelineMap=n();G.eachSeries(function(W){var $=W.getProgressive(),Z=W.uid;H.set(Z,{id:Z,head:null,tail:null,threshold:W.getProgressiveThreshold(),progressiveEnabled:$&&!(W.preventIncremental&&W.preventIncremental()),blockIndex:-1,step:Math.round($||700),count:0}),N(E,W,W.dataTask)})},d.prepareStageTasks=function(){var G=this._stageTaskMap,E=this.ecInstance.getModel(),H=this.api;w(this._allHandlers,function(W){var $=G.get(W.uid)||G.set(W.uid,[]);W.reset&&function(Z,Q,Y,K,ne){var X=Y.seriesTaskMap||(Y.seriesTaskMap=n()),ee=Q.seriesType,ae=Q.getTargetSeries;function oe(ge){var fe=ge.uid,le=X.get(fe)||X.set(fe,f({plan:k,reset:D,count:O}));le.context={model:ge,ecModel:K,api:ne,useClearVisual:Q.isVisual&&!Q.isLayout,plan:Q.plan,reset:Q.reset,scheduler:Z},N(Z,ge,le)}Q.createOnAllSeries?K.eachRawSeries(oe):ee?K.eachRawSeriesByType(ee,oe):ae&&ae(K,ne).each(oe);var se=Z._pipelineMap;X.each(function(ge,fe){se.get(fe)||(ge.dispose(),X.removeKey(fe))})}(this,W,$,E,H),W.overallReset&&function(Z,Q,Y,K,ne){var X=Y.overallTask=Y.overallTask||f({reset:M});X.context={ecModel:K,api:ne,overallReset:Q.overallReset,scheduler:Z};var ee=X.agentStubMap=X.agentStubMap||n(),ae=Q.seriesType,oe=Q.getTargetSeries,se=!0,ge=Q.modifyOutputEnd;function fe(ue){var he=ue.uid,pe=ee.get(he);pe||(pe=ee.set(he,f({reset:S,onDirty:I})),X.dirty()),pe.context={model:ue,overallProgress:se,modifyOutputEnd:ge},pe.agent=X,pe.__block=se,N(Z,ue,pe)}ae?K.eachRawSeriesByType(ae,fe):oe?oe(K,ne).each(fe):(se=!1,w(K.getSeries(),fe));var le=Z._pipelineMap;ee.each(function(ue,he){le.get(he)||(ue.dispose(),X.dirty(),ee.removeKey(he))})}(this,W,$,E,H)},this)},d.prepareView=function(G,E,H,W){var $=G.renderTask,Z=$.context;Z.model=E,Z.ecModel=H,Z.api=W,$.__block=!G.incrementalPrepareRender,N(this,E,$)},d.performDataProcessorTasks=function(G,E){m(this,this._dataProcessorHandlers,G,E,{block:!0})},d.performVisualTasks=function(G,E,H){m(this,this._visualHandlers,G,E,H)},d.performSeriesTasks=function(G){var E;G.eachSeries(function(H){E|=H.dataTask.perform()}),this.unfinished|=E},d.plan=function(){this._pipelineMap.each(function(G){var E=G.tail;do{if(E.__block){G.blockIndex=E.__idxInPipeline;break}E=E.getUpstream()}while(E)})};var _=d.updatePayload=function(G,E){E!=="remain"&&(G.context.payload=E)};function M(G){G.overallReset(G.ecModel,G.api,G.payload)}function S(G,E){return G.overallProgress&&A}function A(){this.agent.dirty(),this.getDownstream().dirty()}function I(){this.agent&&this.agent.dirty()}function k(G){return G.plan&&G.plan(G.model,G.ecModel,G.api,G.payload)}function D(G){G.useClearVisual&&G.data.clearAllVisual();var E=G.resetDefines=c(G.reset(G.model,G.ecModel,G.api,G.payload));return E.length>1?e(E,function(H,W){return R(W)}):L}var L=R(0);function R(G){return function(E,H){var W=H.data,$=H.resetDefines[G];if($&&$.dataEach)for(var Z=E.start;Z<E.end;Z++)$.dataEach(W,Z);else $&&$.progress&&$.progress(E,W)}}function O(G){return G.data.count()}function N(G,E,H){var W=E.uid,$=G._pipelineMap.get(W);$.head||($.head=H),$.tail&&$.tail.pipe(H),$.tail=H,H.__idxInPipeline=$.count++,H.__pipeline=$}o.wrapStageHandler=function(G,E){return h(G)&&(G={overallReset:G,seriesType:function(H){p=null;try{H(z,V)}catch{}return p}(G)}),G.uid=a("stageHandler"),E&&(G.visualType=E),G};var z={},V={};function B(G,E){for(var H in E.prototype)G[H]=t}B(z,y),B(V,g),z.eachSeriesByType=z.eachRawSeriesByType=function(G){p=G},z.eachComponent=function(G){G.mainType==="series"&&G.subType&&(p=G.subType)},U.exports=o},53833:function(U,C,b){var p=b(23405);p.assert;var T=p.isArray;function w(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}b(9129).__DEV__;var e=w.prototype;e.perform=function(t){var f,a,y,g,c,o,d,m,_,M=this._upstream,S=t&&t.skip;if(this._dirty&&M){var A=this.context;A.data=A.outputData=M.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!S&&(m=this._plan(this.context));var I=((f=this._modBy)>=1||(f=1),f),k=this._modDataCount||0,D=((a=t&&t.modBy)>=1||(a=1),a),L=t&&t.modDataCount||0;(I!==D||k!==L)&&(m="reset"),(this._dirty||m==="reset")&&(this._dirty=!1,y=this,g=S,y._dueIndex=y._outputDueEnd=y._dueEnd=0,y._settedOutputEnd=null,!g&&y._reset&&((c=y._reset(y.context))&&c.progress&&(o=c.forceFirstProgress,c=c.progress),T(c)&&!c.length&&(c=null)),y._progress=c,y._modBy=y._modDataCount=null,(d=y._downstream)&&d.dirty(),_=o),this._modBy=D,this._modDataCount=L;var R=t&&t.step;if(M?this._dueEnd=M._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var O=this._dueIndex,N=Math.min(R!=null?this._dueIndex+R:1/0,this._dueEnd);if(!S&&(_||O<N)){var z=this._progress;if(T(z))for(var V=0;V<z.length;V++)n(this,z[V],O,N,D,L);else n(this,z,O,N,D,L)}this._dueIndex=N;var B=this._settedOutputEnd!=null?this._settedOutputEnd:N;this._outputDueEnd=B}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var h=function(){var t,f,a,y,g,c={reset:function(m,_,M,S){f=m,t=_,a=M,g=Math.ceil((y=S)/a),c.next=a>1&&y>0?d:o}};return c;function o(){return f<t?f++:null}function d(){var m=f%g*a+Math.ceil(f/g),_=f>=t?null:m<y?m:f;return f++,_}}();function n(t,f,a,y,g,c){h.reset(a,y,g,c),t._callingProgress=f,t._callingProgress({start:a,end:y,count:y-a,next:h.next},t.context)}e.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.getUpstream=function(){return this._upstream},e.getDownstream=function(){return this._downstream},e.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},C.createTask=function(t){return new w(t)}},66568:function(U){var C="#eee",b=function(){return{axisLine:{lineStyle:{color:C}},axisTick:{lineStyle:{color:C}},axisLabel:{textStyle:{color:C}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:C}}}},p=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],T={color:p,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:C},crossStyle:{color:C}}},legend:{textStyle:{color:C}},textStyle:{color:C},title:{textStyle:{color:C}},toolbox:{iconStyle:{normal:{borderColor:C}}},dataZoom:{textStyle:{color:C}},visualMap:{textStyle:{color:C}},timeline:{lineStyle:{color:C},itemStyle:{normal:{color:p[1]}},label:{normal:{textStyle:{color:C}}},controlStyle:{normal:{color:C,borderColor:C}}},timeAxis:b(),logAxis:b(),valueAxis:b(),categoryAxis:b(),line:{symbol:"circle"},graph:{color:p},gauge:{title:{textStyle:{color:C}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};T.categoryAxis.splitLine.show=!1,U.exports=T},43759:function(U){var C=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];U.exports={color:C,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],C]}},7762:function(U,C,b){var p=b(23405);C.createWrap=function(){var T,w=[],e={};return{add:function(h,n,t,f,a){return p.isString(f)&&(a=f,f=0),!e[h.id]&&(e[h.id]=1,w.push({el:h,target:n,time:t,delay:f,easing:a}),!0)},done:function(h){return T=h,this},start:function(){for(var h=w.length,n=0,t=w.length;n<t;n++){var f=w[n];f.el.animateTo(f.target,f.time,f.delay,f.easing,a)}return this;function a(){--h||(w.length=0,e={},T&&T())}}}}},92161:function(U,C,b){b(9129).__DEV__;var p=b(23405),T="___EC__COMPONENT__CONTAINER___";function w(t){var f={main:"",sub:""};return t&&(f.main=(t=t.split("."))[0]||"",f.sub=t[1]||""),f}var e=0;function h(t,f){var a=p.slice(arguments,2);return this.superClass.prototype[f].apply(t,a)}function n(t,f,a){return this.superClass.prototype[f].apply(t,a)}C.parseClassType=w,C.enableClassExtend=function(t,f){t.$constructor=t,t.extend=function(a){var y=this,g=function(){a.$constructor?a.$constructor.apply(this,arguments):y.apply(this,arguments)};return p.extend(g.prototype,a),g.extend=this.extend,g.superCall=h,g.superApply=n,p.inherits(g,this),g.superClass=y,g}},C.enableClassCheck=function(t){var f=["__\0is_clz",e++,Math.random().toFixed(3)].join("_");t.prototype[f]=!0,t.isInstance=function(a){return!!(a&&a[f])}},C.enableClassManagement=function(t,f){f=f||{};var a={};if(t.registerClass=function(g,c){if(c){var o,d,m;o=c,p.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(o),'componentType "'+o+'" illegal'),(c=w(c)).sub?c.sub!==T&&(((m=a[(d=c).main])&&m[T]||((m=a[d.main]={})[T]=!0),m)[c.sub]=g):a[c.main]=g}return g},t.getClass=function(g,c,o){var d=a[g];if(d&&d[T]&&(d=c?d[c]:null),o&&!d)throw Error(c?"Component "+g+"."+(c||"")+" not exists. Load it first.":g+".type should be specified.");return d},t.getClassesByMainType=function(g){g=w(g);var c=[],o=a[g.main];return o&&o[T]?p.each(o,function(d,m){m!==T&&c.push(d)}):c.push(o),c},t.hasClass=function(g){return!!a[(g=w(g)).main]},t.getAllClassMainTypes=function(){var g=[];return p.each(a,function(c,o){g.push(o)}),g},t.hasSubTypes=function(g){var c=a[(g=w(g)).main];return c&&c[T]},t.parseClassType=w,f.registerWhenExtend){var y=t.extend;y&&(t.extend=function(g){var c=y.call(this,g);return t.registerClass(c,g.type)})}return t},C.setReadOnly=function(t,f){}},91342:function(U,C,b){var p=b(23405),T=b(92161).parseClassType,w=0;C.getUID=function(e){return[e||"",w++,Math.random().toFixed(5)].join("_")},C.enableSubTypeDefaulter=function(e){var h={};return e.registerSubTypeDefaulter=function(n,t){h[(n=T(n)).main]=t},e.determineSubType=function(n,t){var f=t.type;if(!f){var a=T(n).main;e.hasSubTypes(n)&&h[a]&&(f=h[a](t))}return f},e},C.enableTopologicalTravel=function(e,h){e.topologicalTravel=function(t,f,a,y){if(t.length){var g,c,o,d=(g=f,c={},o=[],p.each(g,function(L){var R,O,N,z=n(c,L),V=(R=z.originalDeps=h(L),O=g,N=[],p.each(R,function(B){p.indexOf(O,B)>=0&&N.push(B)}),N);z.entryCount=V.length,z.entryCount===0&&o.push(L),p.each(V,function(B){0>p.indexOf(z.predecessor,B)&&z.predecessor.push(B);var G=n(c,B);0>p.indexOf(G.successor,B)&&G.successor.push(L)})}),{graph:c,noEntryList:o}),m=d.graph,_=d.noEntryList,M={};for(p.each(t,function(L){M[L]=!0});_.length;){var S=_.pop(),A=m[S],I=!!M[S];I&&(a.call(y,S,A.originalDeps.slice()),delete M[S]),p.each(A.successor,I?D:k)}p.each(M,function(){throw Error("Circle dependency may exists")})}function k(L){m[L].entryCount--,m[L].entryCount===0&&_.push(L)}function D(L){M[L]=!0,k(L)}};function n(t,f){return t[f]||(t[f]={predecessor:[],successor:[]}),t[f]}}},60653:function(U,C,b){var p=b(23405),T=b(24570),w=b(54684),e=p.normalizeCssArray,h=/([&<>"'])/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function t(c){return c==null?"":(c+"").replace(h,function(o,d){return n[d]})}var f=["a","b","c","d","e","f","g"],a=function(c,o){return"{"+c+(o??"")+"}"};function y(c,o){return c+="","0000".substr(0,o-c.length)+c}var g=T.truncateText;C.addCommas=function(c){return isNaN(c)?"-":(c=(c+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(c.length>1?"."+c[1]:"")},C.toCamelCase=function(c,o){return c=(c||"").toLowerCase().replace(/-(.)/g,function(d,m){return m.toUpperCase()}),o&&c&&(c=c.charAt(0).toUpperCase()+c.slice(1)),c},C.normalizeCssArray=e,C.encodeHTML=t,C.formatTpl=function(c,o,d){p.isArray(o)||(o=[o]);var m=o.length;if(!m)return"";for(var _=o[0].$vars||[],M=0;M<_.length;M++){var S=f[M];c=c.replace(a(S),a(S,0))}for(var A=0;A<m;A++)for(var I=0;I<_.length;I++){var k=o[A][_[I]];c=c.replace(a(f[I],A),d?t(k):k)}return c},C.formatTplSimple=function(c,o,d){return p.each(o,function(m,_){c=c.replace("{"+_+"}",d?t(m):m)}),c},C.getTooltipMarker=function(c,_){var d=(c=p.isString(c)?{color:c,extraCssText:_}:c||{}).color,m=c.type,_=c.extraCssText,M=c.renderMode||"html",S=c.markerId||"X";return d?M==="html"?m==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+t(d)+";"+(_||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+t(d)+";"+(_||"")+'"></span>':{renderMode:M,content:"{marker"+S+"|}  ",style:{color:d}}:""},C.formatTime=function(c,o,d){(c==="week"||c==="month"||c==="quarter"||c==="half-year"||c==="year")&&(c=`MM-dd
yyyy`);var m=w.parseDate(o),_=d?"UTC":"",M=m["get"+_+"FullYear"](),S=m["get"+_+"Month"]()+1,A=m["get"+_+"Date"](),I=m["get"+_+"Hours"](),k=m["get"+_+"Minutes"](),D=m["get"+_+"Seconds"](),L=m["get"+_+"Milliseconds"]();return c=c.replace("MM",y(S,2)).replace("M",S).replace("yyyy",M).replace("yy",M%100).replace("dd",y(A,2)).replace("d",A).replace("hh",y(I,2)).replace("h",I).replace("mm",y(k,2)).replace("m",k).replace("ss",y(D,2)).replace("s",D).replace("SSS",y(L,3))},C.capitalFirst=function(c){return c&&c.charAt(0).toUpperCase()+c.substr(1)},C.truncateText=g,C.getTextBoundingRect=function(c){return T.getBoundingRect(c.text,c.font,c.textAlign,c.textVerticalAlign,c.textPadding,c.textLineHeight,c.rich,c.truncate)},C.getTextRect=function(c,o,d,m,_,M,S,A){return T.getBoundingRect(c,o,d,m,_,A,M,S)}},51747:function(U,C,b){var p=b(23405),T=b(49884),w=b(86049),e=b(79442),h=b(76414),n=b(74582),t=b(1965),f=b(91222);C.Image=f,C.Group=b(18583),C.Text=b(96296),C.Circle=b(15062),C.Sector=b(84521),C.Ring=b(38839),C.Polygon=b(88217),C.Polyline=b(84214),C.Rect=b(86367),C.Line=b(1147),C.BezierCurve=b(38734),C.Arc=b(62734),C.CompoundPath=b(96113),C.LinearGradient=b(67725),C.RadialGradient=b(76636),C.BoundingRect=b(28761),C.IncrementalDisplayable=b(95028);var a=Math.round,y=Math.max,g=Math.min,c={};function o(X,ee,ae,oe){var se=T.createFromString(X,ee);return ae&&(oe==="center"&&(ae=d(ae,se.getBoundingRect())),_(se,ae)),se}function d(X,ee){var ae,oe=ee.width/ee.height,se=X.height*oe;return ae=se<=X.width?X.height:(se=X.width)/oe,{x:X.x+X.width/2-se/2,y:X.y+X.height/2-ae/2,width:se,height:ae}}var m=T.mergePath;function _(X,ee){if(X.applyTransform){var ae=X.getBoundingRect().calculateTransform(ee);X.applyTransform(ae)}}function M(X,ee,ae){var oe=a(2*X);return(oe+a(ee))%2==0?oe/2:(oe+(ae?1:-1))/2}function S(X){return X!=null&&X!=="none"}var A=p.createHashMap(),I=0;function k(X){var ee=X.__hoverStl;if(ee&&!X.__highlighted){var ae=X.useHoverLayer;X.__highlighted=ae?"layer":"plain";var oe=X.__zr;if(oe||!ae){var se=X,ge=X.style;ae&&(ge=(se=oe.addHover(X)).style),Q(ge),ae||function(fe){if(fe.__hoverStlDirty){fe.__hoverStlDirty=!1;var le=fe.__hoverStl;if(!le){fe.__cachedNormalStl=fe.__cachedNormalZ2=null;return}var ue=fe.__cachedNormalStl={};fe.__cachedNormalZ2=fe.z2;var he=fe.style;for(var pe in le)le[pe]!=null&&(ue[pe]=he[pe]);ue.fill=he.fill,ue.stroke=he.stroke}}(se),ge.extendFrom(ee),D(ge,ee,"fill"),D(ge,ee,"stroke"),Z(ge),ae||(X.dirty(!1),X.z2+=1)}}}function D(X,ee,ae){!S(ee[ae])&&S(X[ae])&&(X[ae]=function(oe){if(typeof oe!="string")return oe;var se=A.get(oe);return!se&&(se=w.lift(oe,-.1),I<1e4&&(A.set(oe,se),I++)),se}(X[ae]))}function L(X){var ee=X.__highlighted;if(ee){if(X.__highlighted=!1,ee==="layer")X.__zr&&X.__zr.removeHover(X);else if(ee){var ae=X.style,oe=X.__cachedNormalStl;oe&&(Q(ae),X.setStyle(oe),Z(ae));var se=X.__cachedNormalZ2;se!=null&&X.z2-se==1&&(X.z2=se)}}}function R(X,ee){X.isGroup?X.traverse(function(ae){ae.isGroup||ee(ae)}):ee(X)}function O(X,ee){ee=X.__hoverStl=ee!==!1&&(ee||{}),X.__hoverStlDirty=!0,X.__highlighted&&(X.__cachedNormalStl=null,L(X),k(X))}function N(X){this.__hoverSilentOnTouch&&X.zrByTouch||this.__isEmphasisEntered||R(this,k)}function z(X){this.__hoverSilentOnTouch&&X.zrByTouch||this.__isEmphasisEntered||R(this,L)}function V(){this.__isEmphasisEntered=!0,R(this,k)}function B(){this.__isEmphasisEntered=!1,R(this,L)}function G(X,ee){var ae=ee===!1;if(X.__hoverSilentOnTouch=ee!=null&&ee.hoverSilentOnTouch,!ae||X.__hoverStyleTrigger){var oe=ae?"off":"on";X[oe]("mouseover",N)[oe]("mouseout",z),X[oe]("emphasis",V)[oe]("normal",B),X.__hoverStyleTrigger=!ae}}function E(X,ee,ae,oe,se){return H(X,ee,oe,se),ae&&p.extend(X,ae),X}function H(X,ee,ae,oe){if((ae=ae||c).isRectText){var se,ge=ee.getShallow("position")||(oe?null:"inside");ge==="outside"&&(ge="top"),X.textPosition=ge,X.textOffset=ee.getShallow("offset");var fe=ee.getShallow("rotate");fe!=null&&(fe*=Math.PI/180),X.textRotation=fe,X.textDistance=p.retrieve2(ee.getShallow("distance"),oe?null:5)}var le=ee.ecModel,ue=le&&le.option.textStyle,he=function(ve){for(var Ae;ve&&ve!==ve.ecModel;){var _e=(ve.option||c).rich;if(_e)for(var Pe in Ae=Ae||{},_e)_e.hasOwnProperty(Pe)&&(Ae[Pe]=1);ve=ve.parentModel}return Ae}(ee);if(he){for(var pe in se={},he)if(he.hasOwnProperty(pe)){var ye=ee.getModel(["rich",pe]);W(se[pe]={},ye,ue,ae,oe)}}return X.rich=se,W(X,ee,ue,ae,oe,!0),ae.forceRich&&!ae.textStyle&&(ae.textStyle={}),X}function W(X,ee,ae,oe,se,ge){ae=!se&&ae||c,X.textFill=$(ee.getShallow("color"),oe)||ae.color,X.textStroke=$(ee.getShallow("textBorderColor"),oe)||ae.textBorderColor,X.textStrokeWidth=p.retrieve2(ee.getShallow("textBorderWidth"),ae.textBorderWidth),X.insideRawTextPosition=X.textPosition,se||(ge&&(X.insideRollbackOpt=oe,Z(X)),X.textFill==null&&(X.textFill=oe.autoColor)),X.fontStyle=ee.getShallow("fontStyle")||ae.fontStyle,X.fontWeight=ee.getShallow("fontWeight")||ae.fontWeight,X.fontSize=ee.getShallow("fontSize")||ae.fontSize,X.fontFamily=ee.getShallow("fontFamily")||ae.fontFamily,X.textAlign=ee.getShallow("align"),X.textVerticalAlign=ee.getShallow("verticalAlign")||ee.getShallow("baseline"),X.textLineHeight=ee.getShallow("lineHeight"),X.textWidth=ee.getShallow("width"),X.textHeight=ee.getShallow("height"),X.textTag=ee.getShallow("tag"),ge&&oe.disableBox||(X.textBackgroundColor=$(ee.getShallow("backgroundColor"),oe),X.textPadding=ee.getShallow("padding"),X.textBorderColor=$(ee.getShallow("borderColor"),oe),X.textBorderWidth=ee.getShallow("borderWidth"),X.textBorderRadius=ee.getShallow("borderRadius"),X.textBoxShadowColor=ee.getShallow("shadowColor"),X.textBoxShadowBlur=ee.getShallow("shadowBlur"),X.textBoxShadowOffsetX=ee.getShallow("shadowOffsetX"),X.textBoxShadowOffsetY=ee.getShallow("shadowOffsetY")),X.textShadowColor=ee.getShallow("textShadowColor")||ae.textShadowColor,X.textShadowBlur=ee.getShallow("textShadowBlur")||ae.textShadowBlur,X.textShadowOffsetX=ee.getShallow("textShadowOffsetX")||ae.textShadowOffsetX,X.textShadowOffsetY=ee.getShallow("textShadowOffsetY")||ae.textShadowOffsetY}function $(X,ee){return X!=="auto"?X:ee&&ee.autoColor?ee.autoColor:null}function Z(X){var ee,ae=X.insideRollbackOpt;if(ae&&X.textFill==null){var oe=ae.useInsideStyle,se=X.insideRawTextPosition,ge=ae.autoColor;oe!==!1&&(oe===!0||ae.isRectText&&se&&typeof se=="string"&&se.indexOf("inside")>=0)?(ee={textFill:null,textStroke:X.textStroke,textStrokeWidth:X.textStrokeWidth},X.textFill="#fff",X.textStroke==null&&(X.textStroke=ge,X.textStrokeWidth==null&&(X.textStrokeWidth=2))):ge!=null&&(ee={textFill:null},X.textFill=ge),ee&&(X.insideRollback=ee)}}function Q(X){var ee=X.insideRollback;ee&&(X.textFill=ee.textFill,X.textStroke=ee.textStroke,X.textStrokeWidth=ee.textStrokeWidth,X.insideRollback=null)}function Y(X,ee,ae,oe,se,ge){if(typeof se=="function"&&(ge=se,se=null),oe&&oe.isAnimationEnabled()){var fe=X?"Update":"",le=oe.getShallow("animationDuration"+fe),ue=oe.getShallow("animationEasing"+fe),he=oe.getShallow("animationDelay"+fe);typeof he=="function"&&(he=he(se,oe.getAnimationDelayParams?oe.getAnimationDelayParams(ee,se):null)),typeof le=="function"&&(le=le(se)),le>0?ee.animateTo(ae,le,he||0,ue,ge,!!ge):(ee.stopAnimation(),ee.attr(ae),ge&&ge())}else ee.stopAnimation(),ee.attr(ae),ge&&ge()}function K(X,ee,ae,oe,se){Y(!0,X,ee,ae,oe,se)}function ne(X,ee,ae){return ee&&!p.isArrayLike(ee)&&(ee=t.getLocalTransform(ee)),ae&&(ee=e.invert([],ee)),h.applyTransform([],X,ee)}C.Z2_EMPHASIS_LIFT=1,C.extendShape=function(X){return n.extend(X)},C.extendPath=function(X,ee){return T.extendFromString(X,ee)},C.makePath=o,C.makeImage=function(X,ee,ae){var oe=new f({style:{image:X,x:ee.x,y:ee.y,width:ee.width,height:ee.height},onload:function(se){if(ae==="center"){var ge={width:se.width,height:se.height};oe.setStyle(d(ee,ge))}}});return oe},C.mergePath=m,C.resizePath=_,C.subPixelOptimizeLine=function(X){var ee=X.shape,ae=X.style.lineWidth;return a(2*ee.x1)===a(2*ee.x2)&&(ee.x1=ee.x2=M(ee.x1,ae,!0)),a(2*ee.y1)===a(2*ee.y2)&&(ee.y1=ee.y2=M(ee.y1,ae,!0)),X},C.subPixelOptimizeRect=function(X){var ee=X.shape,ae=X.style.lineWidth,oe=ee.x,se=ee.y,ge=ee.width,fe=ee.height;return ee.x=M(ee.x,ae,!0),ee.y=M(ee.y,ae,!0),ee.width=Math.max(M(oe+ge,ae,!1)-ee.x,+(ge!==0)),ee.height=Math.max(M(se+fe,ae,!1)-ee.y,+(fe!==0)),X},C.subPixelOptimize=M,C.setElementHoverStyle=O,C.isInEmphasis=function(X){return X&&X.__isEmphasisEntered},C.setHoverStyle=function(X,ee,ae){X.isGroup?X.traverse(function(oe){oe.isGroup||O(oe,oe.hoverStyle||ee)}):O(X,X.hoverStyle||ee),G(X,ae)},C.setAsHoverStyleTrigger=G,C.setLabelStyle=function(X,ee,ae,oe,se,ge,fe){var le,ue=(se=se||c).labelFetcher,he=se.labelDataIndex,pe=se.labelDimIndex,ye=ae.getShallow("show"),ve=oe.getShallow("show");(ye||ve)&&(ue&&(le=ue.getFormattedLabel(he,"normal",null,pe)),le==null&&(le=p.isFunction(se.defaultText)?se.defaultText(he,se):se.defaultText));var Ae=ye?le:null,_e=ve?p.retrieve2(ue?ue.getFormattedLabel(he,"emphasis",null,pe):null,le):null;(Ae!=null||_e!=null)&&(E(X,ae,ge,se),E(ee,oe,fe,se,!0)),X.text=Ae,ee.text=_e},C.setTextStyle=E,C.setText=function(X,ee,ae){var oe,se={isRectText:!0};ae===!1?oe=!0:se.autoColor=ae,H(X,ee,se,oe)},C.getFont=function(X,ee){var ae=ee||ee.getModel("textStyle");return p.trim([X.fontStyle||ae&&ae.getShallow("fontStyle")||"",X.fontWeight||ae&&ae.getShallow("fontWeight")||"",(X.fontSize||ae&&ae.getShallow("fontSize")||12)+"px",X.fontFamily||ae&&ae.getShallow("fontFamily")||"sans-serif"].join(" "))},C.updateProps=K,C.initProps=function(X,ee,ae,oe,se){Y(!1,X,ee,ae,oe,se)},C.getTransform=function(X,ee){for(var ae=e.identity([]);X&&X!==ee;)e.mul(ae,X.getLocalTransform(),ae),X=X.parent;return ae},C.applyTransform=ne,C.transformDirection=function(X,ee,ae){var oe=ee[4]===0||ee[5]===0||ee[0]===0?1:Math.abs(2*ee[4]/ee[0]),se=ee[4]===0||ee[5]===0||ee[2]===0?1:Math.abs(2*ee[4]/ee[2]),ge=[X==="left"?-oe:X==="right"?oe:0,X==="top"?-se:X==="bottom"?se:0];return Math.abs((ge=ne(ge,ee,ae))[0])>Math.abs(ge[1])?ge[0]>0?"right":"left":ge[1]>0?"bottom":"top"},C.groupTransition=function(X,ee,ae,oe){if(X&&ee){var se,ge=(se={},X.traverse(function(le){!le.isGroup&&le.anid&&(se[le.anid]=le)}),se);ee.traverse(function(le){if(!le.isGroup&&le.anid){var ue=ge[le.anid];if(ue){var he=fe(le);le.attr(fe(ue)),K(le,he,ae,le.dataIndex)}}})}function fe(le){var ue={position:h.clone(le.position),rotation:le.rotation};return le.shape&&(ue.shape=p.extend({},le.shape)),ue}},C.clipPointsByRect=function(X,ee){return p.map(X,function(ae){var oe=ae[0];oe=g(oe=y(oe,ee.x),ee.x+ee.width);var se=ae[1];return[oe,se=g(se=y(se,ee.y),ee.y+ee.height)]})},C.clipRectByRect=function(X,ee){var ae=y(X.x,ee.x),oe=g(X.x+X.width,ee.x+ee.width),se=y(X.y,ee.y),ge=g(X.y+X.height,ee.y+ee.height);if(oe>=ae&&ge>=se)return{x:ae,y:se,width:oe-ae,height:ge-se}},C.createIcon=function(X,ee,ae){var oe=(ee=p.extend({rectHover:!0},ee)).style={strokeNoScale:!0};if(ae=ae||{x:-1,y:-1,width:2,height:2},X)return X.indexOf("image://")===0?(oe.image=X.slice(8),p.defaults(oe,ae),new f(ee)):o(X.replace("path://",""),ee,ae,"center")}},62751:function(U,C,b){var p=b(23405),T=b(28761),w=b(54684).parsePercent,e=b(60653),h=p.each,n=["left","right","top","bottom","width","height"],t=[["width","left","right"],["height","top","bottom"]];function f(o,d,m,_,M){var S=0,A=0;_==null&&(_=1/0),M==null&&(M=1/0);var I=0;d.eachChild(function(k,D){var L,R,O=k.position,N=k.getBoundingRect(),z=d.childAt(D+1),V=z&&z.getBoundingRect();if(o==="horizontal"){var B=N.width+(V?-V.x+N.x:0);(L=S+B)>_||k.newline?(S=0,L=B,A+=I+m,I=N.height):I=Math.max(I,N.height)}else{var G=N.height+(V?-V.y+N.y:0);(R=A+G)>M||k.newline?(S+=I+m,A=0,R=G,I=N.width):I=Math.max(I,N.width)}k.newline||(O[0]=S,O[1]=A,o==="horizontal"?S=L+m:A=R+m)})}var a=p.curry(f,"vertical"),y=p.curry(f,"horizontal");function g(o,d,m){m=e.normalizeCssArray(m||0);var _=d.width,M=d.height,S=w(o.left,_),A=w(o.top,M),I=w(o.right,_),k=w(o.bottom,M),D=w(o.width,_),L=w(o.height,M),R=m[2]+m[0],O=m[1]+m[3],N=o.aspect;switch(isNaN(D)&&(D=_-I-O-S),isNaN(L)&&(L=M-k-R-A),N!=null&&(isNaN(D)&&isNaN(L)&&(N>_/M?D=.8*_:L=.8*M),isNaN(D)&&(D=N*L),isNaN(L)&&(L=D/N)),isNaN(S)&&(S=_-I-D-O),isNaN(A)&&(A=M-k-L-R),o.left||o.right){case"center":S=_/2-D/2-m[3];break;case"right":S=_-D-O}switch(o.top||o.bottom){case"middle":case"center":A=M/2-L/2-m[0];break;case"bottom":A=M-L-R}S=S||0,A=A||0,isNaN(D)&&(D=_-O-S-(I||0)),isNaN(L)&&(L=M-R-A-(k||0));var z=new T(S+m[3],A+m[0],D,L);return z.margin=m,z}function c(o,d){return d&&o&&h(n,function(m){d.hasOwnProperty(m)&&(o[m]=d[m])}),o}C.LOCATION_PARAMS=n,C.HV_NAMES=t,C.box=f,C.vbox=a,C.hbox=y,C.getAvailableSize=function(o,d,m){var _=d.width,M=d.height,S=w(o.x,_),A=w(o.y,M),I=w(o.x2,_),k=w(o.y2,M);return(isNaN(S)||isNaN(parseFloat(o.x)))&&(S=0),(isNaN(I)||isNaN(parseFloat(o.x2)))&&(I=_),(isNaN(A)||isNaN(parseFloat(o.y)))&&(A=0),(isNaN(k)||isNaN(parseFloat(o.y2)))&&(k=M),{width:Math.max(I-S-(m=e.normalizeCssArray(m||0))[1]-m[3],0),height:Math.max(k-A-m[0]-m[2],0)}},C.getLayoutRect=g,C.positionElement=function(o,d,m,_,M){var S,A=!M||!M.hv||M.hv[0],I=!M||!M.hv||M.hv[1],k=M&&M.boundingMode||"all";if(A||I){if(k==="raw")S=o.type==="group"?new T(0,0,+d.width||0,+d.height||0):o.getBoundingRect();else if(S=o.getBoundingRect(),o.needLocalTransform()){var D=o.getLocalTransform();(S=S.clone()).applyTransform(D)}d=g(p.defaults({width:S.width,height:S.height},d),m,_);var L=o.position,R=A?d.x-S.x:0,O=I?d.y-S.y:0;o.attr("position",k==="raw"?[R,O]:[L[0]+R,L[1]+O])}},C.sizeCalculable=function(o,d){return o[t[d][0]]!=null||o[t[d][1]]!=null&&o[t[d][2]]!=null},C.mergeLayoutParam=function(o,d,m){p.isObject(m)||(m={});var _=m.ignoreSize;p.isArray(_)||(_=[_,_]);var M=A(t[0],0),S=A(t[1],1);function A(L,R){var O={},N=0,z={},V=0;if(h(L,function(E){z[E]=o[E]}),h(L,function(E){I(d,E)&&(O[E]=z[E]=d[E]),k(O,E)&&N++,k(z,E)&&V++}),_[R])return k(d,L[1])?z[L[2]]=null:k(d,L[2])&&(z[L[1]]=null),z;if(V===2||!N)return z;if(N>=2)return O;for(var B=0;B<L.length;B++){var G=L[B];if(!I(O,G)&&I(o,G)){O[G]=o[G];break}}return O}function I(L,R){return L.hasOwnProperty(R)}function k(L,R){return L[R]!=null&&L[R]!=="auto"}function D(L,R,O){h(L,function(N){R[N]=O[N]})}D(t[0],o,M),D(t[1],o,S)},C.getLayoutParams=function(o){return c({},o)},C.copyLayoutParams=c},51064:function(U,C,b){var p=b(23405),T=b(23584),w=p.each,e=p.isObject,h=p.isArray,n="series\0";function t(g){return g instanceof Array?g:g==null?[]:[g]}function f(g){return e(g)&&g.id&&(g.id+"").indexOf("\0_ec_\0")===0}var a=0;function y(g,c){return g&&g.hasOwnProperty(c)}C.normalizeToArray=t,C.defaultEmphasis=function(g,c,o){if(g){g[c]=g[c]||{},g.emphasis=g.emphasis||{},g.emphasis[c]=g.emphasis[c]||{};for(var d=0,m=o.length;d<m;d++){var _=o[d];!g.emphasis[c].hasOwnProperty(_)&&g[c].hasOwnProperty(_)&&(g.emphasis[c][_]=g[c][_])}}},C.TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],C.getDataItemValue=function(g){return!e(g)||h(g)||g instanceof Date?g:g.value},C.isDataItemOption=function(g){return e(g)&&!(g instanceof Array)},C.mappingToExists=function(g,c){c=(c||[]).slice();var o=p.map(g||[],function(d,m){return{exist:d}});return w(c,function(d,m){if(e(d)){for(var _=0;_<o.length;_++)if(!o[_].option&&d.id!=null&&o[_].exist.id===d.id+""){o[_].option=d,c[m]=null;return}for(var _=0;_<o.length;_++){var M=o[_].exist;if(!o[_].option&&(M.id==null||d.id==null)&&d.name!=null&&!f(d)&&!f(M)&&M.name===d.name+""){o[_].option=d,c[m]=null;return}}}}),w(c,function(d,m){if(e(d)){for(var _=0;_<o.length;_++){var M=o[_].exist;if(!o[_].option&&!f(M)&&d.id==null){o[_].option=d;break}}_>=o.length&&o.push({option:d})}}),o},C.makeIdAndName=function(g){var c=p.createHashMap();w(g,function(o,d){var m=o.exist;m&&c.set(m.id,o)}),w(g,function(o,d){var m=o.option;p.assert(!m||m.id==null||!c.get(m.id)||c.get(m.id)===o,"id duplicates: "+(m&&m.id)),m&&m.id!=null&&c.set(m.id,o),o.keyInfo||(o.keyInfo={})}),w(g,function(o,d){var m=o.exist,_=o.option,M=o.keyInfo;if(e(_)){if(M.name=_.name!=null?_.name+"":m?m.name:n+d,m)M.id=m.id;else if(_.id!=null)M.id=_.id+"";else{var S=0;do M.id="\0"+M.name+"\0"+S++;while(c.get(M.id))}c.set(M.id,o)}})},C.isNameSpecified=function(g){var c=g.name;return!!(c&&c.indexOf(n))},C.isIdInner=f,C.compressBatches=function(g,c){var o={},d={};return m(g||[],o),m(c||[],d,o),[_(o),_(d)];function m(M,S,A){for(var I=0,k=M.length;I<k;I++)for(var D=M[I].seriesId,L=t(M[I].dataIndex),R=A&&A[D],O=0,N=L.length;O<N;O++){var z=L[O];R&&R[z]?R[z]=null:(S[D]||(S[D]={}))[z]=1}}function _(M,S){var A=[];for(var I in M)if(M.hasOwnProperty(I)&&M[I]!=null)if(S)A.push(+I);else{var k=_(M[I],!0);k.length&&A.push({seriesId:I,dataIndex:k})}return A}},C.queryDataIndex=function(g,c){return c.dataIndexInside!=null?c.dataIndexInside:c.dataIndex!=null?p.isArray(c.dataIndex)?p.map(c.dataIndex,function(o){return g.indexOfRawIndex(o)}):g.indexOfRawIndex(c.dataIndex):c.name!=null?p.isArray(c.name)?p.map(c.name,function(o){return g.indexOfName(o)}):g.indexOfName(c.name):void 0},C.makeInner=function(){var g="__\0ec_inner_"+a+++"_"+Math.random().toFixed(5);return function(c){return c[g]||(c[g]={})}},C.parseFinder=function(g,c,o){if(p.isString(c)){var d={};d[c+"Index"]=0,c=d}var m=o&&o.defaultMainType;!m||y(c,m+"Index")||y(c,m+"Id")||y(c,m+"Name")||(c[m+"Index"]=0);var _={};return w(c,function(A,S){var A=c[S];if(S==="dataIndex"||S==="dataIndexInside"){_[S]=A;return}var I=S.match(/^(\w+)(Index|Id|Name)$/)||[],k=I[1],D=(I[2]||"").toLowerCase();if(!(!k||!D||A==null||D==="index"&&A==="none"||o&&o.includeMainTypes&&0>p.indexOf(o.includeMainTypes,k))){var L={mainType:k};(D!=="index"||A!=="all")&&(L[D]=A);var R=g.queryComponents(L);_[k+"Models"]=R,_[k+"Model"]=R[0]}}),_},C.setAttribute=function(g,c,o){g.setAttribute?g.setAttribute(c,o):g[c]=o},C.getAttribute=function(g,c){return g.getAttribute?g.getAttribute(c):g[c]},C.getTooltipRenderMode=function(g){return g==="auto"?T.domSupported?"html":"richText":g||"html"},C.groupData=function(g,c){var o=p.createHashMap(),d=[];return p.each(g,function(m){var _=c(m);(o.get(_)||(d.push(_),o.set(_,[]))).push(m)}),{keys:d,buckets:o}}},54684:function(U,C,b){var p=b(23405),T=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function w(e){return Math.floor(Math.log(e)/Math.LN10)}C.linearMap=function(e,h,n,t){var f=h[1]-h[0],a=n[1]-n[0];if(f===0)return a===0?n[0]:(n[0]+n[1])/2;if(t)if(f>0){if(e<=h[0])return n[0];if(e>=h[1])return n[1]}else{if(e>=h[0])return n[0];if(e<=h[1])return n[1]}else{if(e===h[0])return n[0];if(e===h[1])return n[1]}return(e-h[0])/f*a+n[0]},C.parsePercent=function(e,h){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return typeof e=="string"?e.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(e)/100*h:parseFloat(e):e==null?NaN:+e},C.round=function(e,h,n){return h==null&&(h=10),h=Math.min(Math.max(0,h),20),e=(+e).toFixed(h),n?e:+e},C.asc=function(e){return e.sort(function(h,n){return h-n}),e},C.getPrecision=function(e){if(isNaN(e*=1))return 0;for(var h=1,n=0;Math.round(e*h)/h!==e;)h*=10,n++;return n},C.getPrecisionSafe=function(e){var h=e.toString(),n=h.indexOf("e");if(n>0){var t=+h.slice(n+1);return t<0?-t:0}var f=h.indexOf(".");return f<0?0:h.length-1-f},C.getPixelPrecision=function(e,h){var n=Math.log,t=Math.LN10,f=Math.min(Math.max(-Math.floor(n(e[1]-e[0])/t)+Math.round(n(Math.abs(h[1]-h[0]))/t),0),20);return isFinite(f)?f:20},C.getPercentWithPrecision=function(e,h,n){if(!e[h])return 0;var t=p.reduce(e,function(S,A){return S+(isNaN(A)?0:A)},0);if(t===0)return 0;for(var f=Math.pow(10,n),a=p.map(e,function(S){return(isNaN(S)?0:S)/t*f*100}),y=100*f,g=p.map(a,function(S){return Math.floor(S)}),c=p.reduce(g,function(S,A){return S+A},0),o=p.map(a,function(S,A){return S-g[A]});c<y;){for(var d=Number.NEGATIVE_INFINITY,m=null,_=0,M=o.length;_<M;++_)o[_]>d&&(d=o[_],m=_);++g[m],o[m]=0,++c}return g[h]/f},C.MAX_SAFE_INTEGER=9007199254740991,C.remRadian=function(e){var h=2*Math.PI;return(e%h+h)%h},C.isRadianAroundZero=function(e){return e>-1e-4&&e<1e-4},C.parseDate=function(e){if(e instanceof Date)return e;if(typeof e=="string"){var h=T.exec(e);if(!h)return new Date(NaN);if(!h[8])return new Date(+h[1],+(h[2]||1)-1,+h[3]||1,+h[4]||0,+(h[5]||0),+h[6]||0,+h[7]||0);var n=+h[4]||0;return h[8].toUpperCase()!=="Z"&&(n-=h[8].slice(0,3)),new Date(Date.UTC(+h[1],+(h[2]||1)-1,+h[3]||1,n,+(h[5]||0),+h[6]||0,+h[7]||0))}return e==null?new Date(NaN):new Date(Math.round(e))},C.quantity=function(e){return Math.pow(10,w(e))},C.nice=function(e,h){var n=w(e),t=Math.pow(10,n),f=e/t;return e=(h?f<1.5?1:f<2.5?2:f<4?3:f<7?5:10:f<1?1:f<2?2:f<3?3:f<5?5:10)*t,n>=-20?+e.toFixed(n<0?-n:0):e},C.quantile=function(e,h){var n=(e.length-1)*h+1,t=Math.floor(n),f=+e[t-1],a=n-t;return a?f+a*(e[t]-f):f},C.reformIntervals=function(e){e.sort(function(g,c){return function o(d,m,_){return d.interval[_]<m.interval[_]||d.interval[_]===m.interval[_]&&(d.close[_]-m.close[_]==(_?-1:1)||!_&&o(d,m,1))}(g,c,0)?-1:1});for(var h=-1/0,n=1,t=0;t<e.length;){for(var f=e[t].interval,a=e[t].close,y=0;y<2;y++)f[y]<=h&&(f[y]=h,a[y]=y?1:1-n),h=f[y],n=a[y];f[0]===f[1]&&a[0]*a[1]!=1?e.splice(t,1):t++}return e},C.isNumeric=function(e){return e-parseFloat(e)>=0}},30696:function(U,C,b){var p=b(23405),T=b(51747),w=b(28761),e=T.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,d){var m=d.cx,_=d.cy,M=d.width/2,S=d.height/2;o.moveTo(m,_-S),o.lineTo(m+M,_+S),o.lineTo(m-M,_+S),o.closePath()}}),h=T.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,d){var m=d.cx,_=d.cy,M=d.width/2,S=d.height/2;o.moveTo(m,_-S),o.lineTo(m+M,_),o.lineTo(m,_+S),o.lineTo(m-M,_),o.closePath()}}),n=T.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,d){var m=d.x,_=d.y,M=d.width/5*3,S=Math.max(M,d.height),A=M/2,I=A*A/(S-A),k=_-S+A+I,D=Math.asin(I/A),L=Math.cos(D)*A,R=Math.sin(D),O=Math.cos(D),N=.6*A,z=.7*A;o.moveTo(m-L,k+I),o.arc(m,k,A,Math.PI-D,2*Math.PI+D),o.bezierCurveTo(m+L-R*N,k+I+O*N,m,_-z,m,_),o.bezierCurveTo(m,_-z,m-L+R*N,k+I+O*N,m-L,k+I),o.closePath()}}),t=T.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,d){var m=d.height,_=d.width,M=d.x,S=d.y,A=_/3*2;o.moveTo(M,S),o.lineTo(M+A,S+m),o.lineTo(M,S+m/4*3),o.lineTo(M-A,S+m),o.lineTo(M,S),o.closePath()}}),f={line:T.Line,rect:T.Rect,roundRect:T.Rect,square:T.Rect,circle:T.Circle,diamond:h,pin:n,arrow:t,triangle:e},a={line:function(o,d,m,_,M){M.x1=o,M.y1=d+_/2,M.x2=o+m,M.y2=d+_/2},rect:function(o,d,m,_,M){M.x=o,M.y=d,M.width=m,M.height=_},roundRect:function(o,d,m,_,M){M.x=o,M.y=d,M.width=m,M.height=_,M.r=Math.min(m,_)/4},square:function(o,d,m,_,M){var S=Math.min(m,_);M.x=o,M.y=d,M.width=S,M.height=S},circle:function(o,d,m,_,M){M.cx=o+m/2,M.cy=d+_/2,M.r=Math.min(m,_)/2},diamond:function(o,d,m,_,M){M.cx=o+m/2,M.cy=d+_/2,M.width=m,M.height=_},pin:function(o,d,m,_,M){M.x=o+m/2,M.y=d+_/2,M.width=m,M.height=_},arrow:function(o,d,m,_,M){M.x=o+m/2,M.y=d+_/2,M.width=m,M.height=_},triangle:function(o,d,m,_,M){M.cx=o+m/2,M.cy=d+_/2,M.width=m,M.height=_}},y={};p.each(f,function(o,d){y[d]=new o});var g=T.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var o=this.style;this.shape.symbolType==="pin"&&o.textPosition==="inside"&&(o.textPosition=["50%","40%"],o.textAlign="center",o.textVerticalAlign="middle")},buildPath:function(o,d,m){var _=d.symbolType,M=y[_];d.symbolType!=="none"&&(M||(M=y[_="rect"]),a[_](d.x,d.y,d.width,d.height,M.shape),M.buildPath(o,M.shape,m))}});function c(o,d){if(this.type!=="image"){var m=this.style,_=this.shape;_&&_.symbolType==="line"?m.stroke=o:this.__isEmptyBrush?(m.stroke=o,m.fill=d||"#fff"):(m.fill&&(m.fill=o),m.stroke&&(m.stroke=o)),this.dirty(!1)}}C.createSymbol=function(o,d,m,_,M,S,A){var I,k=o.indexOf("empty")===0;return k&&(o=o.substr(5,1).toLowerCase()+o.substr(6)),(I=o.indexOf("image://")===0?T.makeImage(o.slice(8),new w(d,m,_,M),A?"center":"cover"):o.indexOf("path://")===0?T.makePath(o.slice(7),{},new w(d,m,_,M),A?"center":"cover"):new g({shape:{symbolType:o,x:d,y:m,width:_,height:M}})).__isEmptyBrush=k,I.setColor=c,I.setColor(S),I}},94127:function(U,C){var b="\0__throttleOriginMethod",p="\0__throttleRate",T="\0__throttleType";function w(e,h,n){var t,f,a,y,g,c=0,o=0,d=null;function m(){o=new Date().getTime(),d=null,e.apply(a,y||[])}h=h||0;var _=function(){t=new Date().getTime(),a=this,y=arguments;var M=g||h,S=g||n;g=null,f=t-(S?c:o)-M,clearTimeout(d),S?d=setTimeout(m,M):f>=0?m():d=setTimeout(m,-f),c=t};return _.clear=function(){d&&(clearTimeout(d),d=null)},_.debounceNextCall=function(M){g=M},_}C.throttle=w,C.createOrUpdate=function(e,h,n,t){var f=e[h];if(f){var a=f[b]||f,y=f[T];if(f[p]!==n||y!==t){if(n==null||!t)return e[h]=a;(f=e[h]=w(a,n,t==="debounce"))[b]=a,f[T]=t,f[p]=n}return f}},C.clear=function(e,h){var n=e[h];n&&n[b]&&(e[h]=n[b])}},4695:function(U,C,b){var p=b(23405).each,T=b(18583),w=b(91342),e=b(92161),h=b(51064),n=b(53833).createTask,t=b(52227),f=h.makeInner(),a=t();function y(){this.group=new T,this.uid=w.getUID("viewChart"),this.renderTask=n({plan:d,reset:m}),this.renderTask.context={view:this}}y.prototype={type:"chart",init:function(M,S){},render:function(M,S,A,I){},highlight:function(M,S,A,I){o(M.getData(),I,"emphasis")},downplay:function(M,S,A,I){o(M.getData(),I,"normal")},remove:function(M,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var g=y.prototype;function c(M,S){if(M&&(M.trigger(S),M.type==="group"))for(var A=0;A<M.childCount();A++)c(M.childAt(A),S)}function o(M,S,A){var I=h.queryDataIndex(M,S);I!=null?p(h.normalizeToArray(I),function(k){c(M.getItemGraphicEl(k),A)}):M.eachItemGraphicEl(function(k){c(k,A)})}function d(M){return a(M.model)}function m(M){var S=M.model,A=M.ecModel,I=M.api,k=M.payload,D=S.pipelineContext.progressiveRender,L=M.view,R=k&&f(k).updateMethod,O=D?"incrementalPrepareRender":R&&L[R]?R:"render";return O!=="render"&&L[O](S,A,I,k),_[O]}g.updateView=g.updateLayout=g.updateVisual=function(M,S,A,I){this.render(M,S,A,I)},e.enableClassExtend(y,["dispose"]),e.enableClassManagement(y,{registerWhenExtend:!0}),y.markUpdateMethod=function(M,S){f(M).updateMethod=S};var _={incrementalPrepareRender:{progress:function(M,S){S.view.incrementalRender(M,S.model,S.ecModel,S.api,S.payload)}},render:{forceFirstProgress:!0,progress:function(M,S){S.view.render(S.model,S.ecModel,S.api,S.payload)}}};U.exports=y},44152:function(U,C,b){var p=b(18583),T=b(91342),w=b(92161),e=function(){this.group=new p,this.uid=T.getUID("viewComponent")};e.prototype={constructor:e,init:function(n,t){},render:function(n,t,f,a){},dispose:function(){},filterForExposedEvent:null};var h=e.prototype;h.updateView=h.updateLayout=h.updateVisual=function(n,t,f,a){},w.enableClassExtend(e),w.enableClassManagement(e,{registerWhenExtend:!0}),U.exports=e},32013:function(U,C,b){var p=b(23405),T=b(86049),w=b(54684).linearMap,e=p.each,h=p.isObject,n=function(S){var A,I,k=S.mappingMethod,D=S.type,L=this.option=p.clone(S);this.type=D,this.mappingMethod=k,this._normalizeData=M[k];var R=t[D];this.applyVisual=R.applyVisual,this.getColorMapper=R.getColorMapper,this._doMap=R._doMap[k],k==="piecewise"?(f(L),I=(A=L).pieceList,A.hasSpecialVisual=!1,p.each(I,function(O,N){O.originIndex=N,O.visual!=null&&(A.hasSpecialVisual=!0)})):k==="category"?L.categories?function(O){var N=O.categories,z=O.visual,V=O.categoryMap={};if(e(N,function(E,H){V[E]=H}),!p.isArray(z)){var B=[];p.isObject(z)?e(z,function(E,H){var W=V[H];B[W??-1]=E}):B[-1]=z,z=_(O,B)}for(var G=N.length-1;G>=0;G--)z[G]==null&&(delete V[N[G]],N.pop())}(L):f(L,!0):(p.assert(k!=="linear"||L.dataExtent),f(L))};n.prototype={constructor:n,mapValueToVisual:function(S){var A=this._normalizeData(S);return this._doMap(A,S)},getNormalizer:function(){return p.bind(this._normalizeData,this)}};var t=n.visualHandlers={color:{applyVisual:g("color"),getColorMapper:function(){var S=this.option;return p.bind(S.mappingMethod==="category"?function(A,I){return I||(A=this._normalizeData(A)),c.call(this,A)}:function(A,I,k){var D=!!k;return I||(A=this._normalizeData(A)),k=T.fastLerp(A,S.parsedVisual,k),D?k:T.stringify(k,"rgba")},this)},_doMap:{linear:function(S){return T.stringify(T.fastLerp(S,this.option.parsedVisual),"rgba")},category:c,piecewise:function(S,A){var I=m.call(this,A);return I==null&&(I=T.stringify(T.fastLerp(S,this.option.parsedVisual),"rgba")),I},fixed:o}},colorHue:a(function(S,A){return T.modifyHSL(S,A)}),colorSaturation:a(function(S,A){return T.modifyHSL(S,null,A)}),colorLightness:a(function(S,A){return T.modifyHSL(S,null,null,A)}),colorAlpha:a(function(S,A){return T.modifyAlpha(S,A)}),opacity:{applyVisual:g("opacity"),_doMap:d([0,1])},liftZ:{applyVisual:g("liftZ"),_doMap:{linear:o,category:o,piecewise:o,fixed:o}},symbol:{applyVisual:function(S,A,I){var k=this.mapValueToVisual(S);if(p.isString(k))I("symbol",k);else if(h(k))for(var D in k)k.hasOwnProperty(D)&&I(D,k[D])},_doMap:{linear:y,category:c,piecewise:function(S,A){var I=m.call(this,A);return I==null&&(I=y.call(this,S)),I},fixed:o}},symbolSize:{applyVisual:g("symbolSize"),_doMap:d([0,1])}};function f(S,A){var I=S.visual,k=[];p.isObject(I)?e(I,function(D){k.push(D)}):I!=null&&k.push(I),A||k.length!==1||{color:1,symbol:1}.hasOwnProperty(S.type)||(k[1]=k[0]),_(S,k)}function a(S){return{applyVisual:function(A,I,k){A=this.mapValueToVisual(A),k("color",S(I("color"),A))},_doMap:d([0,1])}}function y(S){var A=this.option.visual;return A[Math.round(w(S,[0,1],[0,A.length-1],!0))]||{}}function g(S){return function(A,I,k){k(S,this.mapValueToVisual(A))}}function c(S){var A=this.option.visual;return A[this.option.loop&&S!==-1?S%A.length:S]}function o(){return this.option.visual[0]}function d(S){return{linear:function(A){return w(A,S,this.option.visual,!0)},category:c,piecewise:function(A,I){var k=m.call(this,I);return k==null&&(k=w(A,S,this.option.visual,!0)),k},fixed:o}}function m(S){var A=this.option,I=A.pieceList;if(A.hasSpecialVisual){var k=n.findPieceIndex(S,I),D=I[k];if(D&&D.visual)return D.visual[this.type]}}function _(S,A){return S.visual=A,S.type==="color"&&(S.parsedVisual=p.map(A,function(I){return T.parse(I)})),A}var M={linear:function(S){return w(S,this.option.dataExtent,[0,1],!0)},piecewise:function(S){var A=this.option.pieceList,I=n.findPieceIndex(S,A,!0);if(I!=null)return w(I,[0,A.length-1],[0,1],!0)},category:function(S){var A=this.option.categories?this.option.categoryMap[S]:S;return A??-1},fixed:p.noop};n.listVisualTypes=function(){var S=[];return p.each(t,function(A,I){S.push(I)}),S},n.addVisualHandler=function(S,A){t[S]=A},n.isValidType=function(S){return t.hasOwnProperty(S)},n.eachVisual=function(S,A,I){p.isObject(S)?p.each(S,A,I):A.call(I,S)},n.mapVisual=function(S,A,I){var k,D=p.isArray(S)?[]:p.isObject(S)?{}:(k=!0,null);return n.eachVisual(S,function(L,R){var O=A.call(I,L,R);k?D=O:D[R]=O}),D},n.retrieveVisuals=function(S){var A,I={};return S&&e(t,function(k,D){S.hasOwnProperty(D)&&(I[D]=S[D],A=!0)}),A?I:null},n.prepareVisualTypes=function(S){if(h(S)){var A=[];e(S,function(I,k){A.push(k)}),S=A}else{if(!p.isArray(S))return[];S=S.slice()}return S.sort(function(I,k){return k==="color"&&I!=="color"&&I.indexOf("color")===0?1:-1}),S},n.dependsOn=function(S,A){return A==="color"?!!(S&&S.indexOf(A)===0):S===A},n.findPieceIndex=function(S,A,I){for(var k,D=1/0,L=0,R=A.length;L<R;L++){var O=A[L].value;if(O!=null){if(O===S||typeof O=="string"&&O===S+"")return L;I&&ee(O,L)}}for(var L=0,R=A.length;L<R;L++){var N,z,V,B,G,E,H,W,$,Z,Q,Y,K=A[L],ne=K.interval,X=K.close;if(ne){if(ne[0]===-1/0){if(N=X[1],z=S,V=ne[1],N?z<=V:z<V)return L}else if(ne[1]===1/0){if(B=X[0],G=ne[0],E=S,B?G<=E:G<E)return L}else if(H=X[0],W=ne[0],$=S,(H?W<=$:W<$)&&(Z=X[1],Q=S,Y=ne[1],Z?Q<=Y:Q<Y))return L;I&&ee(ne[0],L),I&&ee(ne[1],L)}}if(I)return S===1/0?A.length-1:S===-1/0?0:k;function ee(ae,oe){var se=Math.abs(ae-S);se<D&&(D=se,k=oe)}},U.exports=n},43203:function(U,C,b){var p=b(23405),T=b(12414),w=b(45435).retrieveRawValue;U.exports=function(e,h){var n,t=h.getModel("aria");if(t.get("show")){if(t.get("description"))return void e.setAttribute("aria-label",t.get("description"));var f=0;h.eachSeries(function(M,S){++f},this);var a=t.get("data.maxCount")||10,y=t.get("series.maxCount")||10,g=Math.min(f,y);if(!(f<1)){var c,o=((c=h.getModel("title").option)&&c.length&&(c=c[0]),c&&c.text);n=o?m(_("general.withTitle"),{title:o}):_("general.withoutTitle");var d=[];n+=m(_(f>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:f}),h.eachSeries(function(M,S){if(S<g){var A,I,k=M.get("name"),D="series."+(f>1?"multiple":"single")+".";I=m(I=_(k?D+"withName":D+"withoutName"),{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:(A=M.subType,T.series.typeNames[A]||"自定义图")});var L=M.getData();window.data=L,L.count()>a?I+=m(_("data.partialData"),{displayCnt:a}):I+=_("data.allData");for(var R=[],O=0;O<L.count();O++)if(O<a){var N=L.getName(O),z=w(L,O);R.push(m(_(N?"data.withName":"data.withoutName"),{name:N,value:z}))}I+=R.join(_("data.separator.middle"))+_("data.separator.end"),d.push(I)}}),n+=d.join(_("series.multiple.separator.middle"))+_("series.multiple.separator.end"),e.setAttribute("aria-label",n)}}function m(M,S){if(typeof M!="string")return M;var A=M;return p.each(S,function(I,k){A=A.replace(RegExp("\\{\\s*"+k+"\\s*\\}","g"),I)}),A}function _(M){var S=t.get(M);if(S!=null)return S;for(var A=M.split("."),I=T.aria,k=0;k<A.length;++k)I=I[A[k]];return I}}},59448:function(U,C,b){var p=b(23405).createHashMap;U.exports=function(T){return{getTargetSeries:function(w){var e={},h=p();return w.eachSeriesByType(T,function(n){n.__paletteScope=e,h.set(n.uid,n)}),h},reset:function(w,e){var h=w.getRawData(),n={},t=w.getData();t.each(function(f){n[t.getRawIndex(f)]=f}),h.each(function(f){var a=n[f],y=a!=null&&t.getItemVisual(a,"color",!0);if(y)h.setItemVisual(f,"color",y);else{var g=h.getItemModel(f).get("itemStyle.color")||w.getColorFromPalette(h.getName(f)||f+"",w.__paletteScope,h.count());h.setItemVisual(f,"color",g),a!=null&&t.setItemVisual(a,"color",g)}})}}}},35425:function(U,C,b){var p=b(97722);U.exports={createOnAllSeries:!0,performRawSeries:!0,reset:function(T,w){var e=T.getData(),h=(T.visualColorAccessPath||"itemStyle.color").split("."),n=T.get(h)||T.getColorFromPalette(T.name,null,w.getSeriesCount());if(e.setVisual("color",n),!w.isSeriesFiltered(T))return typeof n!="function"||n instanceof p||e.each(function(t){e.setItemVisual(t,"color",n(T.getDataParams(t)))}),{dataEach:e.hasItemOption?function(t,f){var a=t.getItemModel(f).get(h,!0);a!=null&&t.setItemVisual(f,"color",a)}:null}}}},53414:function(U){U.exports=function(C,b,p){return{seriesType:C,performRawSeries:!0,reset:function(T,w,e){var h=T.getData(),n=T.get("symbol")||b,t=T.get("symbolSize"),f=T.get("symbolKeepAspect");if(h.setVisual({legendSymbol:p||n,symbol:n,symbolSize:t,symbolKeepAspect:f}),!w.isSeriesFiltered(T)){var a=typeof t=="function";return{dataEach:h.hasItemOption||a?function(y,g){if(typeof t=="function"){var c=T.getRawValue(g),o=T.getDataParams(g);y.setItemVisual(g,"symbolSize",t(c,o))}if(y.hasItemOption){var d=y.getItemModel(g),m=d.getShallow("symbol",!0),_=d.getShallow("symbolSize",!0),M=d.getShallow("symbolKeepAspect",!0);m!=null&&y.setItemVisual(g,"symbol",m),_!=null&&y.setItemVisual(g,"symbolSize",_),M!=null&&y.setItemVisual(g,"symbolKeepAspect",M)}}:null}}}}}},76047:function(U,C,b){var p=b(23405),T={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};U.exports={get:function(w,e,h){var n=p.clone((T[w]||{})[e]);return h&&p.isArray(n)?n[n.length-1]:n}}},55925:function(U,C,b){var p=b(23405),T=b(32013),w=p.each;function e(h){if(h){for(var n in h)if(h.hasOwnProperty(n))return!0}}C.createVisualMappings=function(h,n,t){var f={};return w(n,function(a){var y,g=f[a]=((y=function(){}).prototype.__hidden=y.prototype,new y);w(h[a],function(c,o){if(T.isValidType(o)){var d={type:o,visual:c};t&&t(d,a),g[o]=new T(d),o==="opacity"&&((d=p.clone(d)).type="colorAlpha",g.__hidden.__alphaForOpacity=new T(d))}})}),f},C.replaceVisualOption=function(h,n,t){var f;p.each(t,function(a){n.hasOwnProperty(a)&&e(n[a])&&(f=!0)}),f&&p.each(t,function(a){n.hasOwnProperty(a)&&e(n[a])?h[a]=p.clone(n[a]):delete h[a]})},C.applyVisual=function(h,n,t,f,a,y){var g,c={};function o(_){return t.getItemVisual(g,_)}function d(_,M){t.setItemVisual(g,_,M)}function m(_,M){g=y==null?_:M;var S=t.getRawDataItem(g);if(!S||S.visualMap!==!1)for(var A=f.call(a,_),I=n[A],k=c[A],D=0,L=k.length;D<L;D++){var R=k[D];I[R]&&I[R].applyVisual(_,o,d)}}p.each(h,function(_){var M=T.prepareVisualTypes(n[_]);c[_]=M}),y==null?t.each(m):t.each([y],m)},C.incrementalApplyVisual=function(h,n,t,f){var a={};return p.each(h,function(y){var g=T.prepareVisualTypes(n[y]);a[y]=g}),{progress:function(y,g){function c(L){return g.getItemVisual(d,L)}function o(L,R){g.setItemVisual(d,L,R)}for(f!=null&&(f=g.getDimension(f));(d=y.next())!=null;){var d,m=g.getRawDataItem(d);if(!m||m.visualMap!==!1)for(var _=f!=null?g.get(f,d,!0):d,M=t(_),S=n[M],A=a[M],I=0,k=A.length;I<k;I++){var D=A[I];S[D]&&S[D].applyVisual(_,c,o)}}}}}},95670:function(U){var C=Object.prototype.hasOwnProperty,b="~";function p(){}function T(n,t,f){this.fn=n,this.context=t,this.once=f||!1}function w(n,t,f,a,y){if(typeof f!="function")throw TypeError("The listener must be a function");var g=new T(f,a||n,y),c=b?b+t:t;return n._events[c]?n._events[c].fn?n._events[c]=[n._events[c],g]:n._events[c].push(g):(n._events[c]=g,n._eventsCount++),n}function e(n,t){--n._eventsCount==0?n._events=new p:delete n._events[t]}function h(){this._events=new p,this._eventsCount=0}Object.create&&(p.prototype=Object.create(null),new p().__proto__||(b=!1)),h.prototype.eventNames=function(){var n,t,f=[];if(this._eventsCount===0)return f;for(t in n=this._events)C.call(n,t)&&f.push(b?t.slice(1):t);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(n)):f},h.prototype.listeners=function(n){var t=b?b+n:n,f=this._events[t];if(!f)return[];if(f.fn)return[f.fn];for(var a=0,y=f.length,g=Array(y);a<y;a++)g[a]=f[a].fn;return g},h.prototype.listenerCount=function(n){var t=b?b+n:n,f=this._events[t];return f?f.fn?1:f.length:0},h.prototype.emit=function(n,t,f,a,y,g){var c=b?b+n:n;if(!this._events[c])return!1;var o,d,m=this._events[c],_=arguments.length;if(m.fn){switch(m.once&&this.removeListener(n,m.fn,void 0,!0),_){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,t),!0;case 3:return m.fn.call(m.context,t,f),!0;case 4:return m.fn.call(m.context,t,f,a),!0;case 5:return m.fn.call(m.context,t,f,a,y),!0;case 6:return m.fn.call(m.context,t,f,a,y,g),!0}for(d=1,o=Array(_-1);d<_;d++)o[d-1]=arguments[d];m.fn.apply(m.context,o)}else{var M,S=m.length;for(d=0;d<S;d++)switch(m[d].once&&this.removeListener(n,m[d].fn,void 0,!0),_){case 1:m[d].fn.call(m[d].context);break;case 2:m[d].fn.call(m[d].context,t);break;case 3:m[d].fn.call(m[d].context,t,f);break;case 4:m[d].fn.call(m[d].context,t,f,a);break;default:if(!o)for(M=1,o=Array(_-1);M<_;M++)o[M-1]=arguments[M];m[d].fn.apply(m[d].context,o)}}return!0},h.prototype.on=function(n,t,f){return w(this,n,t,f,!1)},h.prototype.once=function(n,t,f){return w(this,n,t,f,!0)},h.prototype.removeListener=function(n,t,f,a){var y=b?b+n:n;if(!this._events[y])return this;if(!t)return e(this,y),this;var g=this._events[y];if(g.fn)g.fn!==t||a&&!g.once||f&&g.context!==f||e(this,y);else{for(var c=0,o=[],d=g.length;c<d;c++)(g[c].fn!==t||a&&!g[c].once||f&&g[c].context!==f)&&o.push(g[c]);o.length?this._events[y]=o.length===1?o[0]:o:e(this,y)}return this},h.prototype.removeAllListeners=function(n){var t;return n?(t=b?b+n:n,this._events[t]&&e(this,t)):(this._events=new p,this._eventsCount=0),this},h.prototype.off=h.prototype.removeListener,h.prototype.addListener=h.prototype.on,h.prefixed=b,h.EventEmitter=h,U.exports=h},23395:function(U){U.exports&&(U.exports=function(){function C(p,T){T===void 0&&(T=0);var w=p.charCodeAt(T);if(55296<=w&&w<=56319&&T<p.length-1){var e=w,h=p.charCodeAt(T+1);return 56320<=h&&h<=57343?(e-55296)*1024+(h-56320)+65536:e}if(56320<=w&&w<=57343&&T>=1){var e=p.charCodeAt(T-1),h=w;return 55296<=e&&e<=56319?(e-55296)*1024+(h-56320)+65536:h}return w}function b(p){return 1536<=p&&p<=1541||p==1757||p==1807||p==2274||p==3406||p==69821||70082<=p&&p<=70083||p==72250||72326<=p&&p<=72329||p==73030?12:p==13?0:p==10?1:0<=p&&p<=9||11<=p&&p<=12||14<=p&&p<=31||127<=p&&p<=159||p==173||p==1564||p==6158||p==8203||8206<=p&&p<=8207||p==8232||p==8233||8234<=p&&p<=8238||8288<=p&&p<=8292||p==8293||8294<=p&&p<=8303||55296<=p&&p<=57343||p==65279||65520<=p&&p<=65528||65529<=p&&p<=65531||113824<=p&&p<=113827||119155<=p&&p<=119162||p==917504||p==917505||917506<=p&&p<=917535||917632<=p&&p<=917759||918e3<=p&&p<=921599?2:768<=p&&p<=879||1155<=p&&p<=1159||1160<=p&&p<=1161||1425<=p&&p<=1469||p==1471||1473<=p&&p<=1474||1476<=p&&p<=1477||p==1479||1552<=p&&p<=1562||1611<=p&&p<=1631||p==1648||1750<=p&&p<=1756||1759<=p&&p<=1764||1767<=p&&p<=1768||1770<=p&&p<=1773||p==1809||1840<=p&&p<=1866||1958<=p&&p<=1968||2027<=p&&p<=2035||2070<=p&&p<=2073||2075<=p&&p<=2083||2085<=p&&p<=2087||2089<=p&&p<=2093||2137<=p&&p<=2139||2260<=p&&p<=2273||2275<=p&&p<=2306||p==2362||p==2364||2369<=p&&p<=2376||p==2381||2385<=p&&p<=2391||2402<=p&&p<=2403||p==2433||p==2492||p==2494||2497<=p&&p<=2500||p==2509||p==2519||2530<=p&&p<=2531||2561<=p&&p<=2562||p==2620||2625<=p&&p<=2626||2631<=p&&p<=2632||2635<=p&&p<=2637||p==2641||2672<=p&&p<=2673||p==2677||2689<=p&&p<=2690||p==2748||2753<=p&&p<=2757||2759<=p&&p<=2760||p==2765||2786<=p&&p<=2787||2810<=p&&p<=2815||p==2817||p==2876||p==2878||p==2879||2881<=p&&p<=2884||p==2893||p==2902||p==2903||2914<=p&&p<=2915||p==2946||p==3006||p==3008||p==3021||p==3031||p==3072||3134<=p&&p<=3136||3142<=p&&p<=3144||3146<=p&&p<=3149||3157<=p&&p<=3158||3170<=p&&p<=3171||p==3201||p==3260||p==3263||p==3266||p==3270||3276<=p&&p<=3277||3285<=p&&p<=3286||3298<=p&&p<=3299||3328<=p&&p<=3329||3387<=p&&p<=3388||p==3390||3393<=p&&p<=3396||p==3405||p==3415||3426<=p&&p<=3427||p==3530||p==3535||3538<=p&&p<=3540||p==3542||p==3551||p==3633||3636<=p&&p<=3642||3655<=p&&p<=3662||p==3761||3764<=p&&p<=3769||3771<=p&&p<=3772||3784<=p&&p<=3789||3864<=p&&p<=3865||p==3893||p==3895||p==3897||3953<=p&&p<=3966||3968<=p&&p<=3972||3974<=p&&p<=3975||3981<=p&&p<=3991||3993<=p&&p<=4028||p==4038||4141<=p&&p<=4144||4146<=p&&p<=4151||4153<=p&&p<=4154||4157<=p&&p<=4158||4184<=p&&p<=4185||4190<=p&&p<=4192||4209<=p&&p<=4212||p==4226||4229<=p&&p<=4230||p==4237||p==4253||4957<=p&&p<=4959||5906<=p&&p<=5908||5938<=p&&p<=5940||5970<=p&&p<=5971||6002<=p&&p<=6003||6068<=p&&p<=6069||6071<=p&&p<=6077||p==6086||6089<=p&&p<=6099||p==6109||6155<=p&&p<=6157||6277<=p&&p<=6278||p==6313||6432<=p&&p<=6434||6439<=p&&p<=6440||p==6450||6457<=p&&p<=6459||6679<=p&&p<=6680||p==6683||p==6742||6744<=p&&p<=6750||p==6752||p==6754||6757<=p&&p<=6764||6771<=p&&p<=6780||p==6783||6832<=p&&p<=6845||p==6846||6912<=p&&p<=6915||p==6964||6966<=p&&p<=6970||p==6972||p==6978||7019<=p&&p<=7027||7040<=p&&p<=7041||7074<=p&&p<=7077||7080<=p&&p<=7081||7083<=p&&p<=7085||p==7142||7144<=p&&p<=7145||p==7149||7151<=p&&p<=7153||7212<=p&&p<=7219||7222<=p&&p<=7223||7376<=p&&p<=7378||7380<=p&&p<=7392||7394<=p&&p<=7400||p==7405||p==7412||7416<=p&&p<=7417||7616<=p&&p<=7673||7675<=p&&p<=7679||p==8204||8400<=p&&p<=8412||8413<=p&&p<=8416||p==8417||8418<=p&&p<=8420||8421<=p&&p<=8432||11503<=p&&p<=11505||p==11647||11744<=p&&p<=11775||12330<=p&&p<=12333||12334<=p&&p<=12335||12441<=p&&p<=12442||p==42607||42608<=p&&p<=42610||42612<=p&&p<=42621||42654<=p&&p<=42655||42736<=p&&p<=42737||p==43010||p==43014||p==43019||43045<=p&&p<=43046||43204<=p&&p<=43205||43232<=p&&p<=43249||43302<=p&&p<=43309||43335<=p&&p<=43345||43392<=p&&p<=43394||p==43443||43446<=p&&p<=43449||p==43452||p==43493||43561<=p&&p<=43566||43569<=p&&p<=43570||43573<=p&&p<=43574||p==43587||p==43596||p==43644||p==43696||43698<=p&&p<=43700||43703<=p&&p<=43704||43710<=p&&p<=43711||p==43713||43756<=p&&p<=43757||p==43766||p==44005||p==44008||p==44013||p==64286||65024<=p&&p<=65039||65056<=p&&p<=65071||65438<=p&&p<=65439||p==66045||p==66272||66422<=p&&p<=66426||68097<=p&&p<=68099||68101<=p&&p<=68102||68108<=p&&p<=68111||68152<=p&&p<=68154||p==68159||68325<=p&&p<=68326||p==69633||69688<=p&&p<=69702||69759<=p&&p<=69761||69811<=p&&p<=69814||69817<=p&&p<=69818||69888<=p&&p<=69890||69927<=p&&p<=69931||69933<=p&&p<=69940||p==70003||70016<=p&&p<=70017||70070<=p&&p<=70078||70090<=p&&p<=70092||70191<=p&&p<=70193||p==70196||70198<=p&&p<=70199||p==70206||p==70367||70371<=p&&p<=70378||70400<=p&&p<=70401||p==70460||p==70462||p==70464||p==70487||70502<=p&&p<=70508||70512<=p&&p<=70516||70712<=p&&p<=70719||70722<=p&&p<=70724||p==70726||p==70832||70835<=p&&p<=70840||p==70842||p==70845||70847<=p&&p<=70848||70850<=p&&p<=70851||p==71087||71090<=p&&p<=71093||71100<=p&&p<=71101||71103<=p&&p<=71104||71132<=p&&p<=71133||71219<=p&&p<=71226||p==71229||71231<=p&&p<=71232||p==71339||p==71341||71344<=p&&p<=71349||p==71351||71453<=p&&p<=71455||71458<=p&&p<=71461||71463<=p&&p<=71467||72193<=p&&p<=72198||72201<=p&&p<=72202||72243<=p&&p<=72248||72251<=p&&p<=72254||p==72263||72273<=p&&p<=72278||72281<=p&&p<=72283||72330<=p&&p<=72342||72344<=p&&p<=72345||72752<=p&&p<=72758||72760<=p&&p<=72765||p==72767||72850<=p&&p<=72871||72874<=p&&p<=72880||72882<=p&&p<=72883||72885<=p&&p<=72886||73009<=p&&p<=73014||p==73018||73020<=p&&p<=73021||73023<=p&&p<=73029||p==73031||92912<=p&&p<=92916||92976<=p&&p<=92982||94095<=p&&p<=94098||113821<=p&&p<=113822||p==119141||119143<=p&&p<=119145||119150<=p&&p<=119154||119163<=p&&p<=119170||119173<=p&&p<=119179||119210<=p&&p<=119213||119362<=p&&p<=119364||121344<=p&&p<=121398||121403<=p&&p<=121452||p==121461||p==121476||121499<=p&&p<=121503||121505<=p&&p<=121519||122880<=p&&p<=122886||122888<=p&&p<=122904||122907<=p&&p<=122913||122915<=p&&p<=122916||122918<=p&&p<=122922||125136<=p&&p<=125142||125252<=p&&p<=125258||917536<=p&&p<=917631||917760<=p&&p<=917999?3:127462<=p&&p<=127487?4:p==2307||p==2363||2366<=p&&p<=2368||2377<=p&&p<=2380||2382<=p&&p<=2383||2434<=p&&p<=2435||2495<=p&&p<=2496||2503<=p&&p<=2504||2507<=p&&p<=2508||p==2563||2622<=p&&p<=2624||p==2691||2750<=p&&p<=2752||p==2761||2763<=p&&p<=2764||2818<=p&&p<=2819||p==2880||2887<=p&&p<=2888||2891<=p&&p<=2892||p==3007||3009<=p&&p<=3010||3014<=p&&p<=3016||3018<=p&&p<=3020||3073<=p&&p<=3075||3137<=p&&p<=3140||3202<=p&&p<=3203||p==3262||3264<=p&&p<=3265||3267<=p&&p<=3268||3271<=p&&p<=3272||3274<=p&&p<=3275||3330<=p&&p<=3331||3391<=p&&p<=3392||3398<=p&&p<=3400||3402<=p&&p<=3404||3458<=p&&p<=3459||3536<=p&&p<=3537||3544<=p&&p<=3550||3570<=p&&p<=3571||p==3635||p==3763||3902<=p&&p<=3903||p==3967||p==4145||4155<=p&&p<=4156||4182<=p&&p<=4183||p==4228||p==6070||6078<=p&&p<=6085||6087<=p&&p<=6088||6435<=p&&p<=6438||6441<=p&&p<=6443||6448<=p&&p<=6449||6451<=p&&p<=6456||6681<=p&&p<=6682||p==6741||p==6743||6765<=p&&p<=6770||p==6916||p==6965||p==6971||6973<=p&&p<=6977||6979<=p&&p<=6980||p==7042||p==7073||7078<=p&&p<=7079||p==7082||p==7143||7146<=p&&p<=7148||p==7150||7154<=p&&p<=7155||7204<=p&&p<=7211||7220<=p&&p<=7221||p==7393||7410<=p&&p<=7411||p==7415||43043<=p&&p<=43044||p==43047||43136<=p&&p<=43137||43188<=p&&p<=43203||43346<=p&&p<=43347||p==43395||43444<=p&&p<=43445||43450<=p&&p<=43451||43453<=p&&p<=43456||43567<=p&&p<=43568||43571<=p&&p<=43572||p==43597||p==43755||43758<=p&&p<=43759||p==43765||44003<=p&&p<=44004||44006<=p&&p<=44007||44009<=p&&p<=44010||p==44012||p==69632||p==69634||p==69762||69808<=p&&p<=69810||69815<=p&&p<=69816||p==69932||p==70018||70067<=p&&p<=70069||70079<=p&&p<=70080||70188<=p&&p<=70190||70194<=p&&p<=70195||p==70197||70368<=p&&p<=70370||70402<=p&&p<=70403||p==70463||70465<=p&&p<=70468||70471<=p&&p<=70472||70475<=p&&p<=70477||70498<=p&&p<=70499||70709<=p&&p<=70711||70720<=p&&p<=70721||p==70725||70833<=p&&p<=70834||p==70841||70843<=p&&p<=70844||p==70846||p==70849||71088<=p&&p<=71089||71096<=p&&p<=71099||p==71102||71216<=p&&p<=71218||71227<=p&&p<=71228||p==71230||p==71340||71342<=p&&p<=71343||p==71350||71456<=p&&p<=71457||p==71462||72199<=p&&p<=72200||p==72249||72279<=p&&p<=72280||p==72343||p==72751||p==72766||p==72873||p==72881||p==72884||94033<=p&&p<=94078||p==119142||p==119149?5:4352<=p&&p<=4447||43360<=p&&p<=43388?6:4448<=p&&p<=4519||55216<=p&&p<=55238?7:4520<=p&&p<=4607||55243<=p&&p<=55291?8:p==44032||p==44060||p==44088||p==44116||p==44144||p==44172||p==44200||p==44228||p==44256||p==44284||p==44312||p==44340||p==44368||p==44396||p==44424||p==44452||p==44480||p==44508||p==44536||p==44564||p==44592||p==44620||p==44648||p==44676||p==44704||p==44732||p==44760||p==44788||p==44816||p==44844||p==44872||p==44900||p==44928||p==44956||p==44984||p==45012||p==45040||p==45068||p==45096||p==45124||p==45152||p==45180||p==45208||p==45236||p==45264||p==45292||p==45320||p==45348||p==45376||p==45404||p==45432||p==45460||p==45488||p==45516||p==45544||p==45572||p==45600||p==45628||p==45656||p==45684||p==45712||p==45740||p==45768||p==45796||p==45824||p==45852||p==45880||p==45908||p==45936||p==45964||p==45992||p==46020||p==46048||p==46076||p==46104||p==46132||p==46160||p==46188||p==46216||p==46244||p==46272||p==46300||p==46328||p==46356||p==46384||p==46412||p==46440||p==46468||p==46496||p==46524||p==46552||p==46580||p==46608||p==46636||p==46664||p==46692||p==46720||p==46748||p==46776||p==46804||p==46832||p==46860||p==46888||p==46916||p==46944||p==46972||p==47e3||p==47028||p==47056||p==47084||p==47112||p==47140||p==47168||p==47196||p==47224||p==47252||p==47280||p==47308||p==47336||p==47364||p==47392||p==47420||p==47448||p==47476||p==47504||p==47532||p==47560||p==47588||p==47616||p==47644||p==47672||p==47700||p==47728||p==47756||p==47784||p==47812||p==47840||p==47868||p==47896||p==47924||p==47952||p==47980||p==48008||p==48036||p==48064||p==48092||p==48120||p==48148||p==48176||p==48204||p==48232||p==48260||p==48288||p==48316||p==48344||p==48372||p==48400||p==48428||p==48456||p==48484||p==48512||p==48540||p==48568||p==48596||p==48624||p==48652||p==48680||p==48708||p==48736||p==48764||p==48792||p==48820||p==48848||p==48876||p==48904||p==48932||p==48960||p==48988||p==49016||p==49044||p==49072||p==49100||p==49128||p==49156||p==49184||p==49212||p==49240||p==49268||p==49296||p==49324||p==49352||p==49380||p==49408||p==49436||p==49464||p==49492||p==49520||p==49548||p==49576||p==49604||p==49632||p==49660||p==49688||p==49716||p==49744||p==49772||p==49800||p==49828||p==49856||p==49884||p==49912||p==49940||p==49968||p==49996||p==50024||p==50052||p==50080||p==50108||p==50136||p==50164||p==50192||p==50220||p==50248||p==50276||p==50304||p==50332||p==50360||p==50388||p==50416||p==50444||p==50472||p==50500||p==50528||p==50556||p==50584||p==50612||p==50640||p==50668||p==50696||p==50724||p==50752||p==50780||p==50808||p==50836||p==50864||p==50892||p==50920||p==50948||p==50976||p==51004||p==51032||p==51060||p==51088||p==51116||p==51144||p==51172||p==51200||p==51228||p==51256||p==51284||p==51312||p==51340||p==51368||p==51396||p==51424||p==51452||p==51480||p==51508||p==51536||p==51564||p==51592||p==51620||p==51648||p==51676||p==51704||p==51732||p==51760||p==51788||p==51816||p==51844||p==51872||p==51900||p==51928||p==51956||p==51984||p==52012||p==52040||p==52068||p==52096||p==52124||p==52152||p==52180||p==52208||p==52236||p==52264||p==52292||p==52320||p==52348||p==52376||p==52404||p==52432||p==52460||p==52488||p==52516||p==52544||p==52572||p==52600||p==52628||p==52656||p==52684||p==52712||p==52740||p==52768||p==52796||p==52824||p==52852||p==52880||p==52908||p==52936||p==52964||p==52992||p==53020||p==53048||p==53076||p==53104||p==53132||p==53160||p==53188||p==53216||p==53244||p==53272||p==53300||p==53328||p==53356||p==53384||p==53412||p==53440||p==53468||p==53496||p==53524||p==53552||p==53580||p==53608||p==53636||p==53664||p==53692||p==53720||p==53748||p==53776||p==53804||p==53832||p==53860||p==53888||p==53916||p==53944||p==53972||p==54e3||p==54028||p==54056||p==54084||p==54112||p==54140||p==54168||p==54196||p==54224||p==54252||p==54280||p==54308||p==54336||p==54364||p==54392||p==54420||p==54448||p==54476||p==54504||p==54532||p==54560||p==54588||p==54616||p==54644||p==54672||p==54700||p==54728||p==54756||p==54784||p==54812||p==54840||p==54868||p==54896||p==54924||p==54952||p==54980||p==55008||p==55036||p==55064||p==55092||p==55120||p==55148||p==55176?9:44033<=p&&p<=44059||44061<=p&&p<=44087||44089<=p&&p<=44115||44117<=p&&p<=44143||44145<=p&&p<=44171||44173<=p&&p<=44199||44201<=p&&p<=44227||44229<=p&&p<=44255||44257<=p&&p<=44283||44285<=p&&p<=44311||44313<=p&&p<=44339||44341<=p&&p<=44367||44369<=p&&p<=44395||44397<=p&&p<=44423||44425<=p&&p<=44451||44453<=p&&p<=44479||44481<=p&&p<=44507||44509<=p&&p<=44535||44537<=p&&p<=44563||44565<=p&&p<=44591||44593<=p&&p<=44619||44621<=p&&p<=44647||44649<=p&&p<=44675||44677<=p&&p<=44703||44705<=p&&p<=44731||44733<=p&&p<=44759||44761<=p&&p<=44787||44789<=p&&p<=44815||44817<=p&&p<=44843||44845<=p&&p<=44871||44873<=p&&p<=44899||44901<=p&&p<=44927||44929<=p&&p<=44955||44957<=p&&p<=44983||44985<=p&&p<=45011||45013<=p&&p<=45039||45041<=p&&p<=45067||45069<=p&&p<=45095||45097<=p&&p<=45123||45125<=p&&p<=45151||45153<=p&&p<=45179||45181<=p&&p<=45207||45209<=p&&p<=45235||45237<=p&&p<=45263||45265<=p&&p<=45291||45293<=p&&p<=45319||45321<=p&&p<=45347||45349<=p&&p<=45375||45377<=p&&p<=45403||45405<=p&&p<=45431||45433<=p&&p<=45459||45461<=p&&p<=45487||45489<=p&&p<=45515||45517<=p&&p<=45543||45545<=p&&p<=45571||45573<=p&&p<=45599||45601<=p&&p<=45627||45629<=p&&p<=45655||45657<=p&&p<=45683||45685<=p&&p<=45711||45713<=p&&p<=45739||45741<=p&&p<=45767||45769<=p&&p<=45795||45797<=p&&p<=45823||45825<=p&&p<=45851||45853<=p&&p<=45879||45881<=p&&p<=45907||45909<=p&&p<=45935||45937<=p&&p<=45963||45965<=p&&p<=45991||45993<=p&&p<=46019||46021<=p&&p<=46047||46049<=p&&p<=46075||46077<=p&&p<=46103||46105<=p&&p<=46131||46133<=p&&p<=46159||46161<=p&&p<=46187||46189<=p&&p<=46215||46217<=p&&p<=46243||46245<=p&&p<=46271||46273<=p&&p<=46299||46301<=p&&p<=46327||46329<=p&&p<=46355||46357<=p&&p<=46383||46385<=p&&p<=46411||46413<=p&&p<=46439||46441<=p&&p<=46467||46469<=p&&p<=46495||46497<=p&&p<=46523||46525<=p&&p<=46551||46553<=p&&p<=46579||46581<=p&&p<=46607||46609<=p&&p<=46635||46637<=p&&p<=46663||46665<=p&&p<=46691||46693<=p&&p<=46719||46721<=p&&p<=46747||46749<=p&&p<=46775||46777<=p&&p<=46803||46805<=p&&p<=46831||46833<=p&&p<=46859||46861<=p&&p<=46887||46889<=p&&p<=46915||46917<=p&&p<=46943||46945<=p&&p<=46971||46973<=p&&p<=46999||47001<=p&&p<=47027||47029<=p&&p<=47055||47057<=p&&p<=47083||47085<=p&&p<=47111||47113<=p&&p<=47139||47141<=p&&p<=47167||47169<=p&&p<=47195||47197<=p&&p<=47223||47225<=p&&p<=47251||47253<=p&&p<=47279||47281<=p&&p<=47307||47309<=p&&p<=47335||47337<=p&&p<=47363||47365<=p&&p<=47391||47393<=p&&p<=47419||47421<=p&&p<=47447||47449<=p&&p<=47475||47477<=p&&p<=47503||47505<=p&&p<=47531||47533<=p&&p<=47559||47561<=p&&p<=47587||47589<=p&&p<=47615||47617<=p&&p<=47643||47645<=p&&p<=47671||47673<=p&&p<=47699||47701<=p&&p<=47727||47729<=p&&p<=47755||47757<=p&&p<=47783||47785<=p&&p<=47811||47813<=p&&p<=47839||47841<=p&&p<=47867||47869<=p&&p<=47895||47897<=p&&p<=47923||47925<=p&&p<=47951||47953<=p&&p<=47979||47981<=p&&p<=48007||48009<=p&&p<=48035||48037<=p&&p<=48063||48065<=p&&p<=48091||48093<=p&&p<=48119||48121<=p&&p<=48147||48149<=p&&p<=48175||48177<=p&&p<=48203||48205<=p&&p<=48231||48233<=p&&p<=48259||48261<=p&&p<=48287||48289<=p&&p<=48315||48317<=p&&p<=48343||48345<=p&&p<=48371||48373<=p&&p<=48399||48401<=p&&p<=48427||48429<=p&&p<=48455||48457<=p&&p<=48483||48485<=p&&p<=48511||48513<=p&&p<=48539||48541<=p&&p<=48567||48569<=p&&p<=48595||48597<=p&&p<=48623||48625<=p&&p<=48651||48653<=p&&p<=48679||48681<=p&&p<=48707||48709<=p&&p<=48735||48737<=p&&p<=48763||48765<=p&&p<=48791||48793<=p&&p<=48819||48821<=p&&p<=48847||48849<=p&&p<=48875||48877<=p&&p<=48903||48905<=p&&p<=48931||48933<=p&&p<=48959||48961<=p&&p<=48987||48989<=p&&p<=49015||49017<=p&&p<=49043||49045<=p&&p<=49071||49073<=p&&p<=49099||49101<=p&&p<=49127||49129<=p&&p<=49155||49157<=p&&p<=49183||49185<=p&&p<=49211||49213<=p&&p<=49239||49241<=p&&p<=49267||49269<=p&&p<=49295||49297<=p&&p<=49323||49325<=p&&p<=49351||49353<=p&&p<=49379||49381<=p&&p<=49407||49409<=p&&p<=49435||49437<=p&&p<=49463||49465<=p&&p<=49491||49493<=p&&p<=49519||49521<=p&&p<=49547||49549<=p&&p<=49575||49577<=p&&p<=49603||49605<=p&&p<=49631||49633<=p&&p<=49659||49661<=p&&p<=49687||49689<=p&&p<=49715||49717<=p&&p<=49743||49745<=p&&p<=49771||49773<=p&&p<=49799||49801<=p&&p<=49827||49829<=p&&p<=49855||49857<=p&&p<=49883||49885<=p&&p<=49911||49913<=p&&p<=49939||49941<=p&&p<=49967||49969<=p&&p<=49995||49997<=p&&p<=50023||50025<=p&&p<=50051||50053<=p&&p<=50079||50081<=p&&p<=50107||50109<=p&&p<=50135||50137<=p&&p<=50163||50165<=p&&p<=50191||50193<=p&&p<=50219||50221<=p&&p<=50247||50249<=p&&p<=50275||50277<=p&&p<=50303||50305<=p&&p<=50331||50333<=p&&p<=50359||50361<=p&&p<=50387||50389<=p&&p<=50415||50417<=p&&p<=50443||50445<=p&&p<=50471||50473<=p&&p<=50499||50501<=p&&p<=50527||50529<=p&&p<=50555||50557<=p&&p<=50583||50585<=p&&p<=50611||50613<=p&&p<=50639||50641<=p&&p<=50667||50669<=p&&p<=50695||50697<=p&&p<=50723||50725<=p&&p<=50751||50753<=p&&p<=50779||50781<=p&&p<=50807||50809<=p&&p<=50835||50837<=p&&p<=50863||50865<=p&&p<=50891||50893<=p&&p<=50919||50921<=p&&p<=50947||50949<=p&&p<=50975||50977<=p&&p<=51003||51005<=p&&p<=51031||51033<=p&&p<=51059||51061<=p&&p<=51087||51089<=p&&p<=51115||51117<=p&&p<=51143||51145<=p&&p<=51171||51173<=p&&p<=51199||51201<=p&&p<=51227||51229<=p&&p<=51255||51257<=p&&p<=51283||51285<=p&&p<=51311||51313<=p&&p<=51339||51341<=p&&p<=51367||51369<=p&&p<=51395||51397<=p&&p<=51423||51425<=p&&p<=51451||51453<=p&&p<=51479||51481<=p&&p<=51507||51509<=p&&p<=51535||51537<=p&&p<=51563||51565<=p&&p<=51591||51593<=p&&p<=51619||51621<=p&&p<=51647||51649<=p&&p<=51675||51677<=p&&p<=51703||51705<=p&&p<=51731||51733<=p&&p<=51759||51761<=p&&p<=51787||51789<=p&&p<=51815||51817<=p&&p<=51843||51845<=p&&p<=51871||51873<=p&&p<=51899||51901<=p&&p<=51927||51929<=p&&p<=51955||51957<=p&&p<=51983||51985<=p&&p<=52011||52013<=p&&p<=52039||52041<=p&&p<=52067||52069<=p&&p<=52095||52097<=p&&p<=52123||52125<=p&&p<=52151||52153<=p&&p<=52179||52181<=p&&p<=52207||52209<=p&&p<=52235||52237<=p&&p<=52263||52265<=p&&p<=52291||52293<=p&&p<=52319||52321<=p&&p<=52347||52349<=p&&p<=52375||52377<=p&&p<=52403||52405<=p&&p<=52431||52433<=p&&p<=52459||52461<=p&&p<=52487||52489<=p&&p<=52515||52517<=p&&p<=52543||52545<=p&&p<=52571||52573<=p&&p<=52599||52601<=p&&p<=52627||52629<=p&&p<=52655||52657<=p&&p<=52683||52685<=p&&p<=52711||52713<=p&&p<=52739||52741<=p&&p<=52767||52769<=p&&p<=52795||52797<=p&&p<=52823||52825<=p&&p<=52851||52853<=p&&p<=52879||52881<=p&&p<=52907||52909<=p&&p<=52935||52937<=p&&p<=52963||52965<=p&&p<=52991||52993<=p&&p<=53019||53021<=p&&p<=53047||53049<=p&&p<=53075||53077<=p&&p<=53103||53105<=p&&p<=53131||53133<=p&&p<=53159||53161<=p&&p<=53187||53189<=p&&p<=53215||53217<=p&&p<=53243||53245<=p&&p<=53271||53273<=p&&p<=53299||53301<=p&&p<=53327||53329<=p&&p<=53355||53357<=p&&p<=53383||53385<=p&&p<=53411||53413<=p&&p<=53439||53441<=p&&p<=53467||53469<=p&&p<=53495||53497<=p&&p<=53523||53525<=p&&p<=53551||53553<=p&&p<=53579||53581<=p&&p<=53607||53609<=p&&p<=53635||53637<=p&&p<=53663||53665<=p&&p<=53691||53693<=p&&p<=53719||53721<=p&&p<=53747||53749<=p&&p<=53775||53777<=p&&p<=53803||53805<=p&&p<=53831||53833<=p&&p<=53859||53861<=p&&p<=53887||53889<=p&&p<=53915||53917<=p&&p<=53943||53945<=p&&p<=53971||53973<=p&&p<=53999||54001<=p&&p<=54027||54029<=p&&p<=54055||54057<=p&&p<=54083||54085<=p&&p<=54111||54113<=p&&p<=54139||54141<=p&&p<=54167||54169<=p&&p<=54195||54197<=p&&p<=54223||54225<=p&&p<=54251||54253<=p&&p<=54279||54281<=p&&p<=54307||54309<=p&&p<=54335||54337<=p&&p<=54363||54365<=p&&p<=54391||54393<=p&&p<=54419||54421<=p&&p<=54447||54449<=p&&p<=54475||54477<=p&&p<=54503||54505<=p&&p<=54531||54533<=p&&p<=54559||54561<=p&&p<=54587||54589<=p&&p<=54615||54617<=p&&p<=54643||54645<=p&&p<=54671||54673<=p&&p<=54699||54701<=p&&p<=54727||54729<=p&&p<=54755||54757<=p&&p<=54783||54785<=p&&p<=54811||54813<=p&&p<=54839||54841<=p&&p<=54867||54869<=p&&p<=54895||54897<=p&&p<=54923||54925<=p&&p<=54951||54953<=p&&p<=54979||54981<=p&&p<=55007||55009<=p&&p<=55035||55037<=p&&p<=55063||55065<=p&&p<=55091||55093<=p&&p<=55119||55121<=p&&p<=55147||55149<=p&&p<=55175||55177<=p&&p<=55203?10:p==9757||p==9977||9994<=p&&p<=9997||p==127877||127938<=p&&p<=127940||p==127943||127946<=p&&p<=127948||128066<=p&&p<=128067||128070<=p&&p<=128080||p==128110||128112<=p&&p<=128120||p==128124||128129<=p&&p<=128131||128133<=p&&p<=128135||p==128170||128372<=p&&p<=128373||p==128378||p==128400||128405<=p&&p<=128406||128581<=p&&p<=128583||128587<=p&&p<=128591||p==128675||128692<=p&&p<=128694||p==128704||p==128716||129304<=p&&p<=129308||129310<=p&&p<=129311||p==129318||129328<=p&&p<=129337||129341<=p&&p<=129342||129489<=p&&p<=129501?13:127995<=p&&p<=127999?14:p==8205?15:p==9792||p==9794||9877<=p&&p<=9878||p==9992||p==10084||p==127752||p==127806||p==127859||p==127891||p==127908||p==127912||p==127979||p==127981||p==128139||128187<=p&&p<=128188||p==128295||p==128300||p==128488||p==128640||p==128658?16:128102<=p&&p<=128105?17:11}return this.nextBreak=function(p,T){if(T===void 0&&(T=0),T<0)return 0;if(T>=p.length-1)return p.length;for(var w,e=b(C(p,T)),h=[],n=T+1;n<p.length;n++)if(w=n-1,!(55296<=p.charCodeAt(w)&&56319>=p.charCodeAt(w)&&56320<=p.charCodeAt(w+1)&&57343>=p.charCodeAt(w+1))){var t=b(C(p,n));if(function(f,a,y){var g=[f].concat(a).concat([y]),c=g[g.length-2],o=g.lastIndexOf(14);if(o>1&&g.slice(1,o).every(function(_){return _==3})&&[3,13,17].indexOf(f)==-1)return 2;var d=g.lastIndexOf(4);if(d>0&&g.slice(1,d).every(function(_){return _==4})&&[12,4].indexOf(c)==-1)return g.filter(function(_){return _==4}).length%2==1?3:4;if(c==0&&y==1)return 0;if(c==2||c==0||c==1)return y==14&&a.every(function(_){return _==3})?2:1;if(y==2||y==0||y==1)return 1;if(c==6&&(y==6||y==7||y==9||y==10)||(c==9||c==7)&&(y==7||y==8))return 0;if((c==10||c==8)&&y==8)return 0;if(y==3||y==15)return 0;if(y==5)return 0;if(c==12)return 0;var m=g.indexOf(3)!=-1?g.lastIndexOf(3)-1:g.length-2;return[13,17].indexOf(g[m])!=-1&&g.slice(m+1,-1).every(function(_){return _==3})&&y==14||c==15&&[16,17].indexOf(y)!=-1?0:a.indexOf(4)!=-1?2:+(c!=4||y!=4)}(e,h,t))return n;h.push(t)}return p.length},this.splitGraphemes=function(p){for(var T,w=[],e=0;(T=this.nextBreak(p,e))<p.length;)w.push(p.slice(e,T)),e=T;return e<p.length&&w.push(p.slice(e)),w},this.iterateGraphemes=function(p){var T=0,w={next:(function(){var e,h;return(h=this.nextBreak(p,T))<p.length?(e=p.slice(T,h),T=h,{value:e,done:!1}):T<p.length?(e=p.slice(T),T=p.length,{value:e,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(w[Symbol.iterator]=function(){return w}),w},this.countGraphemes=function(p){for(var T,w=0,e=0;(T=this.nextBreak(p,e))<p.length;)e=T,w++;return e<p.length&&w++,w},this})},67199:function(U){U.exports=function(C){return!!C&&typeof C!="string"&&(C instanceof Array||Array.isArray(C)||C.length>=0&&(C.splice instanceof Function||Object.getOwnPropertyDescriptor(C,C.length-1)&&C.constructor.name!=="String"))}},39447:function(U){U.exports=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]},6890:function(U,C,b){var p=b(67199),T=Array.prototype.concat,w=Array.prototype.slice,e=U.exports=function(h){for(var n=[],t=0,f=h.length;t<f;t++){var a=h[t];p(a)?n=T.call(n,w.call(a)):n.push(a)}return n};e.wrap=function(h){return function(){return h(e(arguments))}}},6103:function(U,C,b){U.exports=b(39447)},83243:function(U){function C(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function b(M,S){this.source=M,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=S,this.destLen=0,this.ltree=new C,this.dtree=new C}var p,T=new C,w=new C,e=new Uint8Array(30),h=new Uint16Array(30),n=new Uint8Array(30),t=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=new C,y=new Uint8Array(320);function g(M,S,A,I){var k,D;for(k=0;k<A;++k)M[k]=0;for(k=0;k<30-A;++k)M[k+A]=k/A|0;for(D=I,k=0;k<30;++k)S[k]=D,D+=1<<M[k]}var c=new Uint16Array(16);function o(M,S,A,I){var k,D;for(k=0;k<16;++k)M.table[k]=0;for(k=0;k<I;++k)M.table[S[A+k]]++;for(D=0,M.table[0]=0,k=0;k<16;++k)c[k]=D,D+=M.table[k];for(k=0;k<I;++k)S[A+k]&&(M.trans[c[S[A+k]]++]=k)}function d(M,S,A){if(!S)return A;for(;M.bitcount<24;)M.tag|=M.source[M.sourceIndex++]<<M.bitcount,M.bitcount+=8;var I=M.tag&65535>>>16-S;return M.tag>>>=S,M.bitcount-=S,I+A}function m(M,S){for(;M.bitcount<24;)M.tag|=M.source[M.sourceIndex++]<<M.bitcount,M.bitcount+=8;var A=0,I=0,k=0,D=M.tag;do I=2*I+(1&D),D>>>=1,++k,A+=S.table[k],I-=S.table[k];while(I>=0);return M.tag=D,M.bitcount-=k,S.trans[A+I]}function _(M,S,A){for(;;){var I,k,D,L,R=m(M,S);if(R===256)return 0;if(R<256)M.dest[M.destLen++]=R;else for(R-=257,I=d(M,e[R],h[R]),k=m(M,A),L=D=M.destLen-d(M,n[k],t[k]);L<D+I;++L)M.dest[M.destLen++]=M.dest[L]}}for(p=0;p<7;++p)T.table[p]=0;for(p=0,T.table[7]=24,T.table[8]=152,T.table[9]=112;p<24;++p)T.trans[p]=256+p;for(p=0;p<144;++p)T.trans[24+p]=p;for(p=0;p<8;++p)T.trans[168+p]=280+p;for(p=0;p<112;++p)T.trans[176+p]=144+p;for(p=0;p<5;++p)w.table[p]=0;for(p=0,w.table[5]=32;p<32;++p)w.trans[p]=p;g(e,h,4,3),g(n,t,2,1),e[28]=0,h[28]=258,U.exports=function(M,S){var A,I,k=new b(M,S);do{switch(A=function(D){D.bitcount--||(D.tag=D.source[D.sourceIndex++],D.bitcount=7);var L=1&D.tag;return D.tag>>>=1,L}(k),d(k,2,0)){case 0:I=function(D){for(var L,R,O;D.bitcount>8;)D.sourceIndex--,D.bitcount-=8;if((L=256*(L=D.source[D.sourceIndex+1])+D.source[D.sourceIndex])!==(65535&~(256*D.source[D.sourceIndex+3]+D.source[D.sourceIndex+2])))return-3;for(D.sourceIndex+=4,O=L;O;--O)D.dest[D.destLen++]=D.source[D.sourceIndex++];return D.bitcount=0,0}(k);break;case 1:I=_(k,T,w);break;case 2:(function(D,L,R){for(V=0,O=d(D,5,257),N=d(D,5,1),z=d(D,4,4);V<19;++V)y[V]=0;for(V=0;V<z;++V){var O,N,z,V,B,G,E=d(D,3,0);y[f[V]]=E}for(o(a,y,0,19),B=0;B<O+N;){var H=m(D,a);switch(H){case 16:var W=y[B-1];for(G=d(D,2,3);G;--G)y[B++]=W;break;case 17:for(G=d(D,3,3);G;--G)y[B++]=0;break;case 18:for(G=d(D,7,11);G;--G)y[B++]=0;break;default:y[B++]=H}}o(L,y,0,O),o(R,y,O,N)})(k,k.ltree,k.dtree),I=_(k,k.ltree,k.dtree);break;default:I=-3}if(I!==0)throw Error("Data error")}while(!A);return k.destLen<k.dest.length?typeof k.dest.slice=="function"?k.dest.slice(0,k.destLen):k.dest.subarray(0,k.destLen):k.dest}},87291:function(U,C,b){let p=b(83243),{swap32LE:T}=b(61245),w=2112;U.exports=class{constructor(e){let h=typeof e.readUInt32BE=="function"&&typeof e.slice=="function";if(h||e instanceof Uint8Array){let n;if(h)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),n=e.readUInt32LE(8),e=e.slice(12);else{let t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),n=t.getUint32(8,!0),e=e.subarray(12)}e=p(e,new Uint8Array(n)),T(e=p(e,new Uint8Array(n))),this.data=new Uint32Array(e.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let h;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(h=(this.data[e>>5]<<2)+(31&e),this.data[h]):e<=65535?(h=(this.data[2048+(e-55296>>5)]<<2)+(31&e),this.data[h]):e<this.highStart?(h=this.data[w-32+(e>>11)],h=((h=this.data[h+(e>>5&63)])<<2)+(31&e),this.data[h]):this.data[this.data.length-4]}}},61245:function(U){let C=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,b=(T,w,e)=>{let h=T[w];T[w]=T[e],T[e]=h},p=T=>{let w=T.length;for(let e=0;e<w;e+=4)b(T,e,e+3),b(T,e+1,e+2)};U.exports={swap32LE:T=>{C&&p(T)}}},40498:function(U,C,b){var p=b(46490),T=b(62271),w=b(1965),e=b(89177),h=b(23405),n=function(t){w.call(this,t),T.call(this,t),e.call(this,t),this.id=t.id||p()};n.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,f){switch(this.draggable){case"horizontal":f=0;break;case"vertical":t=0}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=f,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,f){},attrKV:function(t,f){if(t==="position"||t==="scale"||t==="origin"){if(f){var a=this[t];a||(a=this[t]=[]),a[0]=f[0],a[1]=f[1]}}else this[t]=f},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,f){if(typeof t=="string")this.attrKV(t,f);else if(h.isObject(t))for(var a in t)t.hasOwnProperty(a)&&this.attrKV(a,t[a]);return this.dirty(!1),this},setClipPath:function(t){var f=this.__zr;f&&t.addSelfToZr(f),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=f,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var f=this.animators;if(f)for(var a=0;a<f.length;a++)t.animation.addAnimator(f[a]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var f=this.animators;if(f)for(var a=0;a<f.length;a++)t.animation.removeAnimator(f[a]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},h.mixin(n,e),h.mixin(n,w),h.mixin(n,T),U.exports=n},38109:function(U,C,b){var p=b(23405),T=b(76414),w=b(1046),e=b(62271),h=b(46427),n=b(28306),t="silent";function f(c){h.stop(this.event)}function a(){}a.prototype.dispose=function(){};var y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],g=function(c,o,d,m){e.call(this),this.storage=c,this.painter=o,this.painterRoot=m,d=d||new a,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,w.call(this),this.setHandlerProxy(d)};g.prototype={constructor:g,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(p.each(y,function(o){c.on&&c.on(o,this[o],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var o=c.zrX,d=c.zrY,m=this._hovered,_=m.target;_&&!_.__zr&&(_=(m=this.findHover(m.x,m.y)).target);var M=this._hovered=this.findHover(o,d),S=M.target,A=this.proxy;A.setCursor&&A.setCursor(S?S.cursor:"default"),_&&S!==_&&this.dispatchToElement(m,"mouseout",c),this.dispatchToElement(M,"mousemove",c),S&&S!==_&&this.dispatchToElement(M,"mouseover",c)},mouseout:function(c){this.dispatchToElement(this._hovered,"mouseout",c);var o,d=c.toElement||c.relatedTarget;do d=d&&d.parentNode;while(d&&d.nodeType!==9&&!(o=d===this.painterRoot));o||this.trigger("globalout",{event:c})},resize:function(c){this._hovered={}},dispatch:function(c,o){var d=this[c];d&&d.call(this,o)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var o=this.proxy;o.setCursor&&o.setCursor(c)},dispatchToElement:function(c,o,d){var m=(c=c||{}).target;if(!m||!m.silent){for(var _,M="on"+o,S={type:o,event:d,target:(_=c).target,topTarget:_.topTarget,cancelBubble:!1,offsetX:d.zrX,offsetY:d.zrY,gestureEvent:d.gestureEvent,pinchX:d.pinchX,pinchY:d.pinchY,pinchScale:d.pinchScale,wheelDelta:d.zrDelta,zrByTouch:d.zrByTouch,which:d.which,stop:f};m&&(m[M]&&(S.cancelBubble=m[M].call(m,S)),m.trigger(o,S),m=m.parent,!S.cancelBubble););!S.cancelBubble&&(this.trigger(o,S),this.painter&&this.painter.eachOtherLayer(function(A){typeof A[M]=="function"&&A[M].call(A,S),A.trigger&&A.trigger(o,S)}))}},findHover:function(c,o,d){for(var m,_=this.storage.getDisplayList(),M={x:c,y:o},S=_.length-1;S>=0;S--)if(_[S]!==d&&!_[S].ignore&&(m=function(A,I,k){if(A[A.rectHover?"rectContain":"contain"](I,k)){for(var D,L=A;L;){if(L.clipPath&&!L.clipPath.contain(I,k))return!1;L.silent&&(D=!0),L=L.parent}return!D||t}return!1}(_[S],c,o))&&(M.topTarget||(M.topTarget=_[S]),m!==t)){M.target=_[S];break}return M},processGesture:function(c,o){this._gestureMgr||(this._gestureMgr=new n);var d=this._gestureMgr;o==="start"&&d.clear();var m=d.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(o==="end"&&d.clear(),m){var _=m.type;c.gestureEvent=_,this.dispatchToElement({target:m.target},_,m.event)}}},p.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(c){g.prototype[c]=function(o){var d=this.findHover(o.zrX,o.zrY),m=d.target;if(c==="mousedown")this._downEl=m,this._downPoint=[o.zrX,o.zrY],this._upEl=m;else if(c==="mouseup")this._upEl=m;else if(c==="click"){if(this._downEl!==this._upEl||!this._downPoint||T.dist(this._downPoint,[o.zrX,o.zrY])>4)return;this._downPoint=null}this.dispatchToElement(d,c,o)}}),p.mixin(g,e),p.mixin(g,w),U.exports=g},33103:function(U,C,b){var p=b(23405),T=b(8598).devicePixelRatio,w=b(7609),e=b(37067);function h(){return!1}function n(f,a,y){var g=p.createCanvas(),c=a.getWidth(),o=a.getHeight(),d=g.style;return d&&(d.position="absolute",d.left=0,d.top=0,d.width=c+"px",d.height=o+"px",g.setAttribute("data-zr-dom-id",f)),g.width=c*y,g.height=o*y,g}var t=function(f,a,y){y=y||T,typeof f=="string"?g=n(f,a,y):p.isObject(f)&&(f=(g=f).id),this.id=f,this.dom=g;var g,c=g.style;c&&(g.onselectstart=h,c["-webkit-user-select"]="none",c["user-select"]="none",c["-webkit-touch-callout"]="none",c["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",c.padding=0,c.margin=0,c["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=y};t.prototype={constructor:t,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var f=this.dpr;this.domBack=n("back-"+this.id,this.painter,f),this.ctxBack=this.domBack.getContext("2d"),f!==1&&this.ctxBack.scale(f,f)},resize:function(f,a){var y=this.dpr,g=this.dom,c=g.style,o=this.domBack;c&&(c.width=f+"px",c.height=a+"px"),g.width=f*y,g.height=a*y,o&&(o.width=f*y,o.height=a*y,y!==1&&this.ctxBack.scale(y,y))},clear:function(f,m){var y,g=this.dom,c=this.ctx,o=g.width,d=g.height,m=m||this.clearColor,_=this.motionBlur&&!f,M=this.lastFrameAlpha,S=this.dpr;if(_&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(g,0,0,o/S,d/S)),c.clearRect(0,0,o,d),m&&m!=="transparent"&&(m.colorStops?(y=m.__canvasGradient||w.getGradient(c,m,{x:0,y:0,width:o,height:d}),m.__canvasGradient=y):m.image&&(y=e.prototype.getCanvasPattern.call(m,c)),c.save(),c.fillStyle=y||m,c.fillRect(0,0,o,d),c.restore()),_){var A=this.domBack;c.save(),c.globalAlpha=M,c.drawImage(A,0,0,o,d),c.restore()}}},U.exports=t},15982:function(U,C,b){var p=b(8598).devicePixelRatio,T=b(23405),w=b(45003),e=b(28761),h=b(32553),n=b(33103),t=b(76113),f=b(91222),a=b(23584);function y(d){return parseInt(d,10)}var g=new e(0,0,0,0),c=new e(0,0,0,0),o=function(d,m,_){this.type="canvas";var M=!d.nodeName||d.nodeName.toUpperCase()==="CANVAS";this._opts=_=T.extend({},_||{}),this.dpr=_.devicePixelRatio||p,this._singleCanvas=M,this.root=d;var S=d.style;S&&(S["-webkit-tap-highlight-color"]="transparent",S["-webkit-user-select"]=S["user-select"]=S["-webkit-touch-callout"]="none",d.innerHTML=""),this.storage=m;var A=this._zlevelList=[],I=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,M){var k=d.width,D=d.height;_.width!=null&&(k=_.width),_.height!=null&&(D=_.height),this.dpr=_.devicePixelRatio||1,d.width=k*this.dpr,d.height=D*this.dpr,this._width=k,this._height=D;var L=new n(d,this,this.dpr);L.__builtin__=!0,L.initContext(),I[314159]=L,L.zlevel=314159,A.push(314159),this._domRoot=d}else{this._width=this._getSize(0),this._height=this._getSize(1);var R,O,N,z=this._domRoot=(R=this._width,O=this._height,(N=document.createElement("div")).style.cssText=["position:relative","overflow:hidden","width:"+R+"px","height:"+O+"px","padding:0","margin:0","border-width:0"].join(";")+";",N);d.appendChild(z)}this._hoverlayer=null,this._hoverElements=[]};o.prototype={constructor:o,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var d=this.getViewportRoot();if(d)return{offsetLeft:d.offsetLeft||0,offsetTop:d.offsetTop||0}},refresh:function(d){var m=this.storage.getDisplayList(!0),_=this._zlevelList;this._redrawId=Math.random(),this._paintList(m,d,this._redrawId);for(var M=0;M<_.length;M++){var S=_[M],A=this._layers[S];if(!A.__builtin__&&A.refresh){var I=M===0?this._backgroundColor:null;A.refresh(I)}}return this.refreshHover(),this},addHover:function(d,m){if(!d.__hoverMir){var _=new d.constructor({style:d.style,shape:d.shape,z:d.z,z2:d.z2,silent:d.silent});return _.__from=d,d.__hoverMir=_,m&&_.setStyle(m),this._hoverElements.push(_),_}},removeHover:function(d){var m=d.__hoverMir,_=this._hoverElements,M=T.indexOf(_,m);M>=0&&_.splice(M,1),d.__hoverMir=null},clearHover:function(d){for(var m=this._hoverElements,_=0;_<m.length;_++){var M=m[_].__from;M&&(M.__hoverMir=null)}m.length=0},refreshHover:function(){var d=this._hoverElements,m=d.length,_=this._hoverlayer;if(_&&_.clear(),m){h(d,this.storage.displayableSortFunc),_||(_=this._hoverlayer=this.getLayer(1e5));var M={};_.ctx.save();for(var S=0;S<m;){var A=d[S],I=A.__from;if(!(I&&I.__zr)){d.splice(S,1),I.__hoverMir=null,m--;continue}S++,I.invisible||(A.transform=I.transform,A.invTransform=I.invTransform,A.__clipPaths=I.__clipPaths,this._doPaintEl(A,_,!0,M))}_.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(d,m,_){if(this._redrawId===_){m=m||!1,this._updateLayerStatus(d);var M=this._doPaintList(d,m);if(this._needsManuallyCompositing&&this._compositeManually(),!M){var S=this;t(function(){S._paintList(d,m,_)})}}},_compositeManually:function(){var d=this.getLayer(314159).ctx,m=this._domRoot.width,_=this._domRoot.height;d.clearRect(0,0,m,_),this.eachBuiltinLayer(function(M){M.virtual&&d.drawImage(M.dom,0,0,m,_)})},_doPaintList:function(d,m){for(var _=[],M=0;M<this._zlevelList.length;M++){var S=this._zlevelList[M],A=this._layers[S];A.__builtin__&&A!==this._hoverlayer&&(A.__dirty||m)&&_.push(A)}for(var I=!0,k=0;k<_.length;k++){var A=_[k],D=A.ctx,L={};D.save();var R=m?A.__startIndex:A.__drawIndex,O=!m&&A.incremental&&Date.now,N=O&&Date.now(),z=A.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(A.__startIndex===A.__endIndex)A.clear(!1,z);else if(R===A.__startIndex){var V=d[R];V.incremental&&V.notClear&&!m||A.clear(!1,z)}R===-1&&(console.error("For some unknown reason. drawIndex is -1"),R=A.__startIndex);for(var B=R;B<A.__endIndex;B++){var G=d[B];if(this._doPaintEl(G,A,m,L),G.__dirty=G.__dirtyText=!1,O&&Date.now()-N>15)break}A.__drawIndex=B,A.__drawIndex<A.__endIndex&&(I=!1),L.prevElClipPaths&&D.restore(),D.restore()}return a.wxa&&T.each(this._layers,function(E){E&&E.ctx&&E.ctx.draw&&E.ctx.draw()}),I},_doPaintEl:function(d,m,_,M){var S,A,I=m.ctx,k=d.transform;if((m.__dirty||_)&&!d.invisible&&d.style.opacity!==0&&!(k&&!k[0]&&!k[3])&&!(d.culling&&(S=this._width,A=this._height,g.copy(d.getBoundingRect()),d.transform&&g.applyTransform(d.transform),c.width=S,c.height=A,!g.intersect(c)))){var D=d.__clipPaths;if((!M.prevElClipPaths||function(O,N){if(O===N)return!1;if(!O||!N||O.length!==N.length)return!0;for(var z=0;z<O.length;z++)if(O[z]!==N[z])return!0}(D,M.prevElClipPaths))&&(M.prevElClipPaths&&(m.ctx.restore(),M.prevElClipPaths=null,M.prevEl=null),D)){I.save();for(var L=0;L<D.length;L++){var R=D[L];R.setTransform(I),I.beginPath(),R.buildPath(I,R.shape),I.clip(),R.restoreTransform(I)}M.prevElClipPaths=D}d.beforeBrush&&d.beforeBrush(I),d.brush(I,M.prevEl||null),M.prevEl=d,d.afterBrush&&d.afterBrush(I)}},getLayer:function(d,m){this._singleCanvas&&!this._needsManuallyCompositing&&(d=314159);var _=this._layers[d];return _||((_=new n("zr_"+d,this,this.dpr)).zlevel=d,_.__builtin__=!0,this._layerConfig[d]&&T.merge(_,this._layerConfig[d],!0),m&&(_.virtual=m),this.insertLayer(d,_),_.initContext()),_},insertLayer:function(d,m){var _=this._layers,M=this._zlevelList,S=M.length,A=null,I=-1,k=this._domRoot;if(_[d])return void w("ZLevel "+d+" has been used already");if(!(m&&(m.__builtin__||typeof m.resize=="function"&&typeof m.refresh=="function")))return void w("Layer of zlevel "+d+" is not valid");if(S>0&&d>M[0]){for(I=0;I<S-1&&(!(M[I]<d)||!(M[I+1]>d));I++);A=_[M[I]]}if(M.splice(I+1,0,d),_[d]=m,!m.virtual)if(A){var D=A.dom;D.nextSibling?k.insertBefore(m.dom,D.nextSibling):k.appendChild(m.dom)}else k.firstChild?k.insertBefore(m.dom,k.firstChild):k.appendChild(m.dom)},eachLayer:function(d,m){var _,M,S=this._zlevelList;for(M=0;M<S.length;M++)_=S[M],d.call(m,this._layers[_],_)},eachBuiltinLayer:function(d,m){var _,M,S,A=this._zlevelList;for(S=0;S<A.length;S++)M=A[S],(_=this._layers[M]).__builtin__&&d.call(m,_,M)},eachOtherLayer:function(d,m){var _,M,S,A=this._zlevelList;for(S=0;S<A.length;S++)M=A[S],(_=this._layers[M]).__builtin__||d.call(m,_,M)},getLayers:function(){return this._layers},_updateLayerStatus:function(d){function m(D){S&&(S.__endIndex!==D&&(S.__dirty=!0),S.__endIndex=D)}if(this.eachBuiltinLayer(function(D,L){D.__dirty=D.__used=!1}),this._singleCanvas)for(var _=1;_<d.length;_++){var M=d[_];if(M.zlevel!==d[_-1].zlevel||M.incremental){this._needsManuallyCompositing=!0;break}}for(var S=null,A=0,_=0;_<d.length;_++){var I,M=d[_],k=M.zlevel;M.incremental?((I=this.getLayer(k+.001,this._needsManuallyCompositing)).incremental=!0,A=1):I=this.getLayer(k+.01*(A>0),this._needsManuallyCompositing),I.__builtin__||w("ZLevel "+k+" has been used by unkown layer "+I.id),I!==S&&(I.__used=!0,I.__startIndex!==_&&(I.__dirty=!0),I.__startIndex=_,I.incremental?I.__drawIndex=-1:I.__drawIndex=_,m(_),S=I),M.__dirty&&(I.__dirty=!0,I.incremental&&I.__drawIndex<0&&(I.__drawIndex=_))}m(_),this.eachBuiltinLayer(function(D,L){!D.__used&&D.getElementCount()>0&&(D.__dirty=!0,D.__startIndex=D.__endIndex=D.__drawIndex=0),D.__dirty&&D.__drawIndex<0&&(D.__drawIndex=D.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(d){d.clear()},setBackgroundColor:function(d){this._backgroundColor=d},configLayer:function(d,m){if(m){var _=this._layerConfig;_[d]?T.merge(_[d],m,!0):_[d]=m;for(var M=0;M<this._zlevelList.length;M++){var S=this._zlevelList[M];if(S===d||S===d+.01){var A=this._layers[S];T.merge(A,_[d],!0)}}}},delLayer:function(d){var m=this._layers,_=this._zlevelList,M=m[d];M&&(M.dom.parentNode.removeChild(M.dom),delete m[d],_.splice(T.indexOf(_,d),1))},resize:function(d,m){if(this._domRoot.style){var _=this._domRoot;_.style.display="none";var M=this._opts;if(d!=null&&(M.width=d),m!=null&&(M.height=m),d=this._getSize(0),m=this._getSize(1),_.style.display="",this._width!==d||m!==this._height){for(var S in _.style.width=d+"px",_.style.height=m+"px",this._layers)this._layers.hasOwnProperty(S)&&this._layers[S].resize(d,m);T.each(this._progressiveLayers,function(A){A.resize(d,m)}),this.refresh(!0)}this._width=d,this._height=m}else{if(d==null||m==null)return;this._width=d,this._height=m,this.getLayer(314159).resize(d,m)}return this},clearLayer:function(d){var m=this._layers[d];m&&m.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(d){if(d=d||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var m=new n("image",this,d.pixelRatio||this.dpr);if(m.initContext(),m.clear(!1,d.backgroundColor||this._backgroundColor),d.pixelRatio<=this.dpr){this.refresh();var _=m.dom.width,M=m.dom.height,S=m.ctx;this.eachLayer(function(L){L.__builtin__?S.drawImage(L.dom,0,0,_,M):L.renderToCanvas&&(m.ctx.save(),L.renderToCanvas(m.ctx),m.ctx.restore())})}else for(var A={},I=this.storage.getDisplayList(!0),k=0;k<I.length;k++){var D=I[k];this._doPaintEl(D,m,!0,A)}return m.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(d){var m=this._opts,_=["width","height"][d],M=["clientWidth","clientHeight"][d],S=["paddingLeft","paddingTop"][d],A=["paddingRight","paddingBottom"][d];if(m[_]!=null&&m[_]!=="auto")return parseFloat(m[_]);var I=this.root,k=document.defaultView.getComputedStyle(I);return(I[M]||y(k[_])||y(I.style[_]))-(y(k[S])||0)-(y(k[A])||0)|0},pathToImage:function(d,m){m=m||this.dpr;var _=document.createElement("canvas"),M=_.getContext("2d"),S=d.getBoundingRect(),A=d.style,I=A.shadowBlur*m,k=A.shadowOffsetX*m,D=A.shadowOffsetY*m,L=A.hasStroke()?A.lineWidth:0,R=Math.max(L/2,-k+I),O=Math.max(L/2,k+I),N=Math.max(L/2,-D+I),z=Math.max(L/2,D+I),V=S.width+R+O,B=S.height+N+z;_.width=V*m,_.height=B*m,M.scale(m,m),M.clearRect(0,0,V,B),M.dpr=m;var G={position:d.position,rotation:d.rotation,scale:d.scale};d.position=[R-S.x,N-S.y],d.rotation=0,d.scale=[1,1],d.updateTransform(),d&&d.brush(M);var E=new f({style:{x:0,y:0,image:_}});return G.position!=null&&(E.position=d.position=G.position),G.rotation!=null&&(E.rotation=d.rotation=G.rotation),G.scale!=null&&(E.scale=d.scale=G.scale),E}},U.exports=o},39723:function(U,C,b){var p=b(23405),T=b(23584),w=b(18583),e=b(32553);function h(t,f){return t.zlevel===f.zlevel?t.z===f.z?t.z2-f.z2:t.z-f.z:t.zlevel-f.zlevel}var n=function(){this._roots=[],this._displayList=[],this._displayListLen=0};n.prototype={constructor:n,traverse:function(t,f){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,f)},getDisplayList:function(t,f){return f=f||!1,t&&this.updateDisplayList(f),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var f=this._roots,a=this._displayList,y=0,g=f.length;y<g;y++)this._updateAndAddDisplayable(f[y],null,t);a.length=this._displayListLen,T.canvasSupported&&e(a,h)},_updateAndAddDisplayable:function(t,f,a){if(!t.ignore||a){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var y=t.clipPath;if(y){f=f?f.slice():[];for(var g=y,c=t;g;)g.parent=c,g.updateTransform(),f.push(g),c=g,g=g.clipPath}if(t.isGroup){for(var o=t._children,d=0;d<o.length;d++){var m=o[d];t.__dirty&&(m.__dirty=!0),this._updateAndAddDisplayable(m,f,a)}t.__dirty=!1}else t.__clipPaths=f,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof w&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(t==null){for(var f=0;f<this._roots.length;f++){var a=this._roots[f];a instanceof w&&a.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(t instanceof Array){for(var f=0,y=t.length;f<y;f++)this.delRoot(t[f]);return}var g=p.indexOf(this._roots,t);g>=0&&(this.delFromStorage(t),this._roots.splice(g,1),t instanceof w&&t.delChildrenFromStorage(this))},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:h},U.exports=n},75276:function(U,C,b){var p=b(23405),T=b(46427).Dispatcher,w=b(76113),e=b(24679),h=function(n){n=n||{},this.stage=n.stage||{},this.onframe=n.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,T.call(this)};h.prototype={constructor:h,addClip:function(n){this._clips.push(n)},addAnimator:function(n){n.animation=this;for(var t=n.getClips(),f=0;f<t.length;f++)this.addClip(t[f])},removeClip:function(n){var t=p.indexOf(this._clips,n);t>=0&&this._clips.splice(t,1)},removeAnimator:function(n){for(var t=n.getClips(),f=0;f<t.length;f++)this.removeClip(t[f]);n.animation=null},_update:function(){for(var n=new Date().getTime()-this._pausedTime,t=n-this._time,f=this._clips,a=f.length,y=[],g=[],c=0;c<a;c++){var o=f[c],d=o.step(n,t);d&&(y.push(d),g.push(o))}for(var c=0;c<a;)f[c]._needsRemove?(f[c]=f[a-1],f.pop(),a--):c++;a=y.length;for(var c=0;c<a;c++)g[c].fire(y[c]);this._time=n,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var n=this;this._running=!0,w(function t(){n._running&&(w(t),n._paused||n._update())})},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(n,t){var f=new e(n,(t=t||{}).loop,t.getter,t.setter);return this.addAnimator(f),f}},p.mixin(h,T),U.exports=h},24679:function(U,C,b){var p=b(134),T=b(86049),w=b(23405).isArrayLike,e=Array.prototype.slice;function h(o,d){return o[d]}function n(o,d,m){o[d]=m}function t(o,d,m,_,M){var S=o.length;if(M===1)for(var A=0;A<S;A++)_[A]=(I=o[A],(d[A]-I)*m+I);else for(var I,k,D=S&&o[0].length,A=0;A<S;A++)for(var L=0;L<D;L++)_[A][L]=(k=o[A][L],(d[A][L]-k)*m+k)}function f(o,d,m){var _=o.length,M=d.length;if(_!==M)if(_>M)o.length=M;else for(var S=_;S<M;S++)o.push(m===1?d[S]:e.call(d[S]));for(var A=o[0]&&o[0].length,S=0;S<o.length;S++)if(m===1)isNaN(o[S])&&(o[S]=d[S]);else for(var I=0;I<A;I++)isNaN(o[S][I])&&(o[S][I]=d[S][I])}function a(o,d,m,_,M,S,A,I,k){var D=o.length;if(k===1)for(var L=0;L<D;L++)I[L]=y(o[L],d[L],m[L],_[L],M,S,A);else for(var R=o[0].length,L=0;L<D;L++)for(var O=0;O<R;O++)I[L][O]=y(o[L][O],d[L][O],m[L][O],_[L][O],M,S,A)}function y(o,d,m,_,M,S,A){var I=(m-o)*.5,k=(_-d)*.5;return(2*(d-m)+I+k)*A+(-3*(d-m)-2*I-k)*S+I*M+d}function g(o){return o[0]=Math.floor(o[0]),o[1]=Math.floor(o[1]),o[2]=Math.floor(o[2]),"rgba("+o.join(",")+")"}var c=function(o,d,m,_){this._tracks={},this._target=o,this._loop=d||!1,this._getter=m||h,this._setter=_||n,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};c.prototype={when:function(o,d){var m=this._tracks;for(var _ in d)if(d.hasOwnProperty(_)){if(!m[_]){m[_]=[];var M=this._getter(this._target,_);if(M==null)continue;o!==0&&m[_].push({time:0,value:function(S){if(w(S)){var A=S.length;if(w(S[0])){for(var I=[],k=0;k<A;k++)I.push(e.call(S[k]));return I}return e.call(S)}return S}(M)})}m[_].push({time:o,value:d[_]})}return this},during:function(o){return this._onframeList.push(o),this},pause:function(){for(var o=0;o<this._clipList.length;o++)this._clipList[o].pause();this._paused=!0},resume:function(){for(var o=0;o<this._clipList.length;o++)this._clipList[o].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var o=this._doneList,d=o.length,m=0;m<d;m++)o[m].call(this)},start:function(o,d){var m,_=this,M=0,S=function(){--M||_._doneCallback()};for(var A in this._tracks)if(this._tracks.hasOwnProperty(A)){var I=function(D,L,R,O,N,z){var V,B,G,E,H,W,$,Z=D._getter,Q=D._setter,Y=L==="spline",K=O.length;if(K){var ne=w(O[0].value),X=!1,ee=!1,ae=ne?w((V=O[O.length-1].value)&&V[0])?2:1:0;O.sort(function(Pe,Oe){return Pe.time-Oe.time}),B=O[K-1].time;for(var oe=[],se=[],ge=O[0].value,fe=!0,le=0;le<K;le++){oe.push(O[le].time/B);var ue=O[le].value;if(ne&&function(Pe,Oe,ke){if(Pe===Oe)return!0;var De=Pe.length;if(De!==Oe.length)return!1;if(ke===1){for(var Ce=0;Ce<De;Ce++)if(Pe[Ce]!==Oe[Ce])return!1}else for(var Le=Pe[0].length,Ce=0;Ce<De;Ce++)for(var Ve=0;Ve<Le;Ve++)if(Pe[Ce][Ve]!==Oe[Ce][Ve])return!1;return!0}(ue,ge,ae)||!ne&&ue===ge||(fe=!1),ge=ue,typeof ue=="string"){var he=T.parse(ue);he?(ue=he,X=!0):ee=!0}se.push(ue)}if(z||!fe){for(var pe=se[K-1],le=0;le<K-1;le++)ne?f(se[le],pe,ae):!isNaN(se[le])||isNaN(pe)||ee||X||(se[le]=pe);ne&&f(Z(D._target,N),pe,ae);var ye=0,ve=0;if(X)var Ae=[0,0,0,0];var _e=new p({target:D._target,life:B,loop:D._loop,delay:D._delay,onframe:function(Pe,Oe){if(Oe<0)Le=0;else if(Oe<ve){for(Le=Math.min(ye+1,K-1);Le>=0&&!(oe[Le]<=Oe);Le--);Le=Math.min(Le,K-2)}else{for(Le=ye;Le<K&&!(oe[Le]>Oe);Le++);Le=Math.min(Le-1,K-2)}ye=Le,ve=Oe;var ke,De,Ce,Le,Ve,Ge=oe[Le+1]-oe[Le];if(Ge!==0)if(G=(Oe-oe[Le])/Ge,Y)if(H=se[Le],E=se[Le===0?Le:Le-1],W=se[Le>K-2?K-1:Le+1],$=se[Le>K-3?K-1:Le+2],ne)a(E,H,W,$,G,G*G,G*G*G,Z(Pe,N),ae);else{if(X)Ve=a(E,H,W,$,G,G*G,G*G*G,Ae,1),Ve=g(Ae);else{if(ee)return G>.5?W:H;Ve=y(E,H,W,$,G,G*G,G*G*G)}Q(Pe,N,Ve)}else if(ne)t(se[Le],se[Le+1],G,Z(Pe,N),ae);else{if(X)t(se[Le],se[Le+1],G,Ae,1),Ve=g(Ae);else{if(ee)return ke=se[Le],De=se[Le+1],G>.5?De:ke;Ce=se[Le],Ve=(se[Le+1]-Ce)*G+Ce}Q(Pe,N,Ve)}},ondestroy:R});return L&&L!=="spline"&&(_e.easing=L),_e}}}(this,o,S,this._tracks[A],A,d);I&&(this._clipList.push(I),M++,this.animation&&this.animation.addClip(I),m=I)}if(m){var k=m.onframe;m.onframe=function(D,L){k(D,L);for(var R=0;R<_._onframeList.length;R++)_._onframeList[R](D,L)}}return M||this._doneCallback(),this},stop:function(o){for(var d=this._clipList,m=this.animation,_=0;_<d.length;_++){var M=d[_];o&&M.onframe(this._target,1),m&&m.removeClip(M)}d.length=0},delay:function(o){return this._delay=o,this},done:function(o){return o&&this._doneList.push(o),this},getClips:function(){return this._clipList}},U.exports=c},134:function(U,C,b){var p=b(5108);function T(w){this._target=w.target,this._life=w.life||1e3,this._delay=w.delay||0,this._initialized=!1,this.loop=w.loop!=null&&w.loop,this.gap=w.gap||0,this.easing=w.easing||"Linear",this.onframe=w.onframe,this.ondestroy=w.ondestroy,this.onrestart=w.onrestart,this._pausedTime=0,this._paused=!1}T.prototype={constructor:T,step:function(w,e){if(this._initialized||(this._startTime=w+this._delay,this._initialized=!0),this._paused){this._pausedTime+=e;return}var h=(w-this._startTime-this._pausedTime)/this._life;if(!(h<0)){h=Math.min(h,1);var n=this.easing,t=typeof n=="string"?p[n]:n,f=typeof t=="function"?t(h):h;return this.fire("frame",f),h===1?this.loop?(this.restart(w),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(w){var e=(w-this._startTime-this._pausedTime)%this._life;this._startTime=w-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(w,e){this[w="on"+w]&&this[w](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},U.exports=T},5108:function(U){var C={linear:function(b){return b},quadraticIn:function(b){return b*b},quadraticOut:function(b){return b*(2-b)},quadraticInOut:function(b){return(b*=2)<1?.5*b*b:-.5*(--b*(b-2)-1)},cubicIn:function(b){return b*b*b},cubicOut:function(b){return--b*b*b+1},cubicInOut:function(b){return(b*=2)<1?.5*b*b*b:.5*((b-=2)*b*b+2)},quarticIn:function(b){return b*b*b*b},quarticOut:function(b){return 1- --b*b*b*b},quarticInOut:function(b){return(b*=2)<1?.5*b*b*b*b:-.5*((b-=2)*b*b*b-2)},quinticIn:function(b){return b*b*b*b*b},quinticOut:function(b){return--b*b*b*b*b+1},quinticInOut:function(b){return(b*=2)<1?.5*b*b*b*b*b:.5*((b-=2)*b*b*b*b+2)},sinusoidalIn:function(b){return 1-Math.cos(b*Math.PI/2)},sinusoidalOut:function(b){return Math.sin(b*Math.PI/2)},sinusoidalInOut:function(b){return .5*(1-Math.cos(Math.PI*b))},exponentialIn:function(b){return b===0?0:Math.pow(1024,b-1)},exponentialOut:function(b){return b===1?1:1-Math.pow(2,-10*b)},exponentialInOut:function(b){return b===0?0:b===1?1:(b*=2)<1?.5*Math.pow(1024,b-1):.5*(-Math.pow(2,-10*(b-1))+2)},circularIn:function(b){return 1-Math.sqrt(1-b*b)},circularOut:function(b){return Math.sqrt(1- --b*b)},circularInOut:function(b){return(b*=2)<1?-.5*(Math.sqrt(1-b*b)-1):.5*(Math.sqrt(1-(b-=2)*b)+1)},elasticIn:function(b){var p,T=.1;return b===0?0:b===1?1:(!T||T<1?(T=1,p=.1):p=.4*Math.asin(1/T)/(2*Math.PI),-(T*Math.pow(2,10*(b-=1))*Math.sin(2*Math.PI*(b-p)/.4)))},elasticOut:function(b){var p,T=.1;return b===0?0:b===1?1:(!T||T<1?(T=1,p=.1):p=.4*Math.asin(1/T)/(2*Math.PI),T*Math.pow(2,-10*b)*Math.sin(2*Math.PI*(b-p)/.4)+1)},elasticInOut:function(b){var p,T=.1;return b===0?0:b===1?1:(!T||T<1?(T=1,p=.1):p=.4*Math.asin(1/T)/(2*Math.PI),(b*=2)<1?-.5*(T*Math.pow(2,10*(b-=1))*Math.sin(2*Math.PI*(b-p)/.4)):T*Math.pow(2,-10*(b-=1))*Math.sin(2*Math.PI*(b-p)/.4)*.5+1)},backIn:function(b){return b*b*(2.70158*b-1.70158)},backOut:function(b){return--b*b*(2.70158*b+1.70158)+1},backInOut:function(b){return(b*=2)<1?b*b*(3.5949095*b-2.5949095)*.5:.5*((b-=2)*b*(3.5949095*b+2.5949095)+2)},bounceIn:function(b){return 1-C.bounceOut(1-b)},bounceOut:function(b){return b<.36363636363636365?7.5625*b*b:b<.7272727272727273?7.5625*(b-=.5454545454545454)*b+.75:b<.9090909090909091?7.5625*(b-=.8181818181818182)*b+.9375:7.5625*(b-=.9545454545454546)*b+.984375},bounceInOut:function(b){return b<.5?.5*C.bounceIn(2*b):.5*C.bounceOut(2*b-1)+.5}};U.exports=C},76113:function(U){U.exports=typeof window<"u"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(C){setTimeout(C,16)}},8598:function(U,C){var b=1;typeof window<"u"&&(b=Math.max(window.devicePixelRatio||1,1));var p=b;C.debugMode=0,C.devicePixelRatio=p},589:function(U,C,b){var p=b(46500).normalizeRadian,T=2*Math.PI;C.containStroke=function(w,e,h,n,t,f,a,y,g){if(a===0)return!1;var c=Math.sqrt((y-=w)*y+(g-=e)*g);if(c-a>h||c+a<h)return!1;if(Math.abs(n-t)%T<1e-4)return!0;if(f){var o=n;n=p(t),t=p(o)}else n=p(n),t=p(t);n>t&&(t+=T);var d=Math.atan2(g,y);return d<0&&(d+=T),d>=n&&d<=t||d+T>=n&&d+T<=t}},76165:function(U,C,b){var p=b(14141);C.containStroke=function(T,w,e,h,n,t,f,a,y,g,c){return y!==0&&(!(c>w+y)||!(c>h+y)||!(c>t+y)||!(c>a+y))&&(!(c<w-y)||!(c<h-y)||!(c<t-y)||!(c<a-y))&&(!(g>T+y)||!(g>e+y)||!(g>n+y)||!(g>f+y))&&(!(g<T-y)||!(g<e-y)||!(g<n-y)||!(g<f-y))&&p.cubicProjectPoint(T,w,e,h,n,t,f,a,g,c,null)<=y/2}},41814:function(U,C){C.containStroke=function(b,p,T,w,e,h,n){if(e===0)return!1;var t=0;if(n>p+e&&n>w+e||n<p-e&&n<w-e||h>b+e&&h>T+e||h<b-e&&h<T-e)return!1;if(b===T)return Math.abs(h-b)<=e/2;t=(p-w)/(b-T);var f=t*h-n+(b*w-T*p)/(b-T);return f*f/(t*t+1)<=e/2*e/2}},47258:function(U,C,b){var p=b(93041),T=b(41814),w=b(76165),e=b(87697),h=b(589),n=b(46500).normalizeRadian,t=b(14141),f=b(49226),a=p.CMD,y=2*Math.PI,g=[-1,-1,-1],c=[-1,-1];function o(d,m,_,M,S){for(var A=0,I=0,k=0,D=0,L=0,R=0;R<d.length;){var O=d[R++];switch(O===a.M&&R>1&&!_&&(A+=f(I,k,D,L,M,S)),R===1&&(I=d[R],k=d[R+1],D=I,L=k),O){case a.M:D=d[R++],L=d[R++],I=D,k=L;break;case a.L:if(_){if(T.containStroke(I,k,d[R],d[R+1],m,M,S))return!0}else A+=f(I,k,d[R],d[R+1],M,S)||0;I=d[R++],k=d[R++];break;case a.C:if(_){if(w.containStroke(I,k,d[R++],d[R++],d[R++],d[R++],d[R],d[R+1],m,M,S))return!0}else A+=function(K,ne,X,ee,ae,oe,se,ge,fe,le){if(le>ne&&le>ee&&le>oe&&le>ge||le<ne&&le<ee&&le<oe&&le<ge)return 0;var ue=t.cubicRootAt(ne,ee,oe,ge,le,g);if(ue===0)return 0;for(var he,pe,ye=0,ve=-1,Ae=0;Ae<ue;Ae++){var _e=g[Ae],Pe=_e===0||_e===1?.5:1;t.cubicAt(K,X,ae,se,_e)<fe||(ve<0&&(ve=t.cubicExtrema(ne,ee,oe,ge,c),c[1]<c[0]&&ve>1&&function(){var Oe=c[0];c[0]=c[1],c[1]=Oe}(),he=t.cubicAt(ne,ee,oe,ge,c[0]),ve>1&&(pe=t.cubicAt(ne,ee,oe,ge,c[1]))),ve===2?_e<c[0]?ye+=he<ne?Pe:-Pe:_e<c[1]?ye+=pe<he?Pe:-Pe:ye+=ge<pe?Pe:-Pe:_e<c[0]?ye+=he<ne?Pe:-Pe:ye+=ge<he?Pe:-Pe)}return ye}(I,k,d[R++],d[R++],d[R++],d[R++],d[R],d[R+1],M,S)||0;I=d[R++],k=d[R++];break;case a.Q:if(_){if(e.containStroke(I,k,d[R++],d[R++],d[R],d[R+1],m,M,S))return!0}else A+=function(K,ne,X,ee,ae,oe,se,ge){if(ge>ne&&ge>ee&&ge>oe||ge<ne&&ge<ee&&ge<oe)return 0;var fe=t.quadraticRootAt(ne,ee,oe,ge,g);if(fe===0)return 0;var le=t.quadraticExtremum(ne,ee,oe);if(le>=0&&le<=1){for(var ue=0,he=t.quadraticAt(ne,ee,oe,le),pe=0;pe<fe;pe++){var ye=g[pe]===0||g[pe]===1?.5:1,ve=t.quadraticAt(K,X,ae,g[pe]);ve<se||(g[pe]<le?ue+=he<ne?ye:-ye:ue+=oe<he?ye:-ye)}return ue}var ye=g[0]===0||g[0]===1?.5:1,ve=t.quadraticAt(K,X,ae,g[0]);return ve<se?0:oe<ne?ye:-ye}(I,k,d[R++],d[R++],d[R],d[R+1],M,S)||0;I=d[R++],k=d[R++];break;case a.A:var N=d[R++],z=d[R++],V=d[R++],B=d[R++],G=d[R++],E=d[R++];R+=1;var H=1-d[R++],Q=Math.cos(G)*V+N,Y=Math.sin(G)*B+z;R>1?A+=f(I,k,Q,Y,M,S):(D=Q,L=Y);var W=(M-N)*B/V+N;if(_){if(h.containStroke(N,z,B,G,G+E,H,m,W,S))return!0}else A+=function(K,ne,X,ee,ae,oe,se,ge){if((ge-=ne)>X||ge<-X)return 0;var fe=Math.sqrt(X*X-ge*ge);g[0]=-fe,g[1]=fe;var le=Math.abs(ee-ae);if(le<1e-4)return 0;if(le%y<1e-4){ee=0,ae=y;var ue=oe?1:-1;return se>=g[0]+K&&se<=g[1]+K?ue:0}if(oe){var fe=ee;ee=n(ae),ae=n(fe)}else ee=n(ee),ae=n(ae);ee>ae&&(ae+=y);for(var he=0,pe=0;pe<2;pe++){var ye=g[pe];if(ye+K>se){var ve=Math.atan2(ge,ye),ue=oe?1:-1;ve<0&&(ve=y+ve),(ve>=ee&&ve<=ae||ve+y>=ee&&ve+y<=ae)&&(ve>Math.PI/2&&ve<1.5*Math.PI&&(ue=-ue),he+=ue)}}return he}(N,z,B,G,G+E,H,W,S);I=Math.cos(G+E)*V+N,k=Math.sin(G+E)*B+z;break;case a.R:D=I=d[R++],L=k=d[R++];var $=d[R++],Z=d[R++],Q=D+$,Y=L+Z;if(_){if(T.containStroke(D,L,Q,L,m,M,S)||T.containStroke(Q,L,Q,Y,m,M,S)||T.containStroke(Q,Y,D,Y,m,M,S)||T.containStroke(D,Y,D,L,m,M,S))return!0}else A+=f(Q,L,Q,Y,M,S),A+=f(D,Y,D,L,M,S);break;case a.Z:if(_){if(T.containStroke(I,k,D,L,m,M,S))return!0}else A+=f(I,k,D,L,M,S);I=D,k=L}}return _||1e-4>Math.abs(k-L)||(A+=f(I,k,D,L,M,S)||0),A!==0}C.contain=function(d,m,_){return o(d,0,!1,m,_)},C.containStroke=function(d,m,_,M){return o(d,m,!0,_,M)}},94457:function(U,C,b){var p=b(49226);function T(w,e){return 1e-8>Math.abs(w-e)}C.contain=function(w,e,h){var n=0,t=w[0];if(!t)return!1;for(var f=1;f<w.length;f++){var a=w[f];n+=p(t[0],t[1],a[0],a[1],e,h),t=a}var y=w[0];return T(t[0],y[0])&&T(t[1],y[1])||(n+=p(t[0],t[1],y[0],y[1],e,h)),n!==0}},87697:function(U,C,b){var p=b(14141).quadraticProjectPoint;C.containStroke=function(T,w,e,h,n,t,f,a,y){return f!==0&&(!(y>w+f)||!(y>h+f)||!(y>t+f))&&(!(y<w-f)||!(y<h-f)||!(y<t-f))&&(!(a>T+f)||!(a>e+f)||!(a>n+f))&&(!(a<T-f)||!(a<e-f)||!(a<n-f))&&p(T,w,e,h,n,t,a,y,null)<=f/2}},24570:function(U,C,b){var p=b(28761),T=b(35337),w=b(23405),e=w.getContext,h=w.extend,n=w.retrieve2,t=w.retrieve3,f=w.trim,a={},y=0,g=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,c="12px sans-serif",o={};function d(O,N){var z=O+":"+(N=N||c);if(a[z])return a[z];for(var V=(O+"").split(`
`),B=0,G=0,E=V.length;G<E;G++)B=Math.max(k(V[G],N).width,B);return y>5e3&&(y=0,a={}),y++,a[z]=B,B}function m(O,N,z){return z==="right"?O-=N:z==="center"&&(O-=N/2),O}function _(O,N,z){return z==="middle"?O-=N/2:z==="bottom"&&(O-=N),O}function M(O,N,z,V,B){if(!N)return"";var G=(O+"").split(`
`);B=S(N,z,V,B);for(var E=0,H=G.length;E<H;E++)G[E]=A(G[E],B);return G.join(`
`)}function S(O,N,B,V){(V=h({},V)).font=N;var B=n(B,"...");V.maxIterations=n(V.maxIterations,2);var G=V.minChar=n(V.minChar,0);V.cnCharWidth=d("国",N);var E=V.ascCharWidth=d("a",N);V.placeholder=n(V.placeholder,"");for(var H=O=Math.max(0,O-1),W=0;W<G&&H>=E;W++)H-=E;var $=d(B,N);return $>H&&(B="",$=0),H=O-$,V.ellipsis=B,V.ellipsisWidth=$,V.contentWidth=H,V.containerWidth=O,V}function A(O,N){var z=N.containerWidth,V=N.font,B=N.contentWidth;if(!z)return"";var G=d(O,V);if(G<=z)return O;for(var E=0;;E++){if(G<=B||E>=N.maxIterations){O+=N.ellipsis;break}var H=E===0?function(W,$,Z,Q){for(var Y=0,K=0,ne=W.length;K<ne&&Y<$;K++){var X=W.charCodeAt(K);Y+=0<=X&&X<=127?Z:Q}return K}(O,B,N.ascCharWidth,N.cnCharWidth):G>0?Math.floor(O.length*B/G):0;G=d(O=O.substr(0,H),V)}return O===""&&(O=N.placeholder),O}function I(O){return d("国",O)}function k(O,N){return o.measureText(O,N)}function D(O,N,z,V,B){O!=null&&(O+="");var G=n(V,I(N)),E=O?O.split(`
`):[],H=E.length*G,W=H;if(z&&(W+=z[0]+z[2]),O&&B){var $=B.outerHeight,Z=B.outerWidth;if($!=null&&W>$)O="",E=[];else if(Z!=null)for(var Q=S(Z-(z?z[1]+z[3]:0),N,B.ellipsis,{minChar:B.minChar,placeholder:B.placeholder}),Y=0,K=E.length;Y<K;Y++)E[Y]=A(E[Y],Q)}return{lines:E,height:H,outerHeight:W,lineHeight:G}}function L(O,N){var z,V={lines:[],width:0,height:0};if(O!=null&&(O+=""),!O)return V;for(var B=g.lastIndex=0;(z=g.exec(O))!=null;){var G=z.index;G>B&&R(V,O.substring(B,G)),R(V,z[2],z[1]),B=g.lastIndex}B<O.length&&R(V,O.substring(B,O.length));var E=V.lines,H=0,W=0,$=[],Z=N.textPadding,Q=N.truncate,Y=Q&&Q.outerWidth,K=Q&&Q.outerHeight;Z&&(Y!=null&&(Y-=Z[1]+Z[3]),K!=null&&(K-=Z[0]+Z[2]));for(var ne=0;ne<E.length;ne++){for(var X=E[ne],ee=0,ae=0,oe=0;oe<X.tokens.length;oe++){var se=X.tokens[oe],ge=se.styleName&&N.rich[se.styleName]||{},fe=se.textPadding=ge.textPadding,le=se.font=ge.font||N.font,ue=se.textHeight=n(ge.textHeight,I(le));if(fe&&(ue+=fe[0]+fe[2]),se.height=ue,se.lineHeight=t(ge.textLineHeight,N.textLineHeight,ue),se.textAlign=ge&&ge.textAlign||N.textAlign,se.textVerticalAlign=ge&&ge.textVerticalAlign||"middle",K!=null&&H+se.lineHeight>K)return{lines:[],width:0,height:0};se.textWidth=d(se.text,le);var he=ge.textWidth,pe=he==null||he==="auto";if(typeof he=="string"&&he.charAt(he.length-1)==="%")se.percentWidth=he,$.push(se),he=0;else{if(pe){he=se.textWidth;var ye=ge.textBackgroundColor,ve=ye&&ye.image;ve&&(ve=T.findExistImage(ve),T.isImageReady(ve)&&(he=Math.max(he,ve.width*ue/ve.height)))}var Ae=fe?fe[1]+fe[3]:0;he+=Ae;var _e=Y!=null?Y-ae:null;_e!=null&&_e<he&&(!pe||_e<Ae?(se.text="",se.textWidth=he=0):(se.text=M(se.text,_e-Ae,le,Q.ellipsis,{minChar:Q.minChar}),se.textWidth=d(se.text,le),he=se.textWidth+Ae))}ae+=se.width=he,ge&&(ee=Math.max(ee,se.lineHeight))}X.width=ae,X.lineHeight=ee,H+=ee,W=Math.max(W,ae)}V.outerWidth=V.width=n(N.textWidth,W),V.outerHeight=V.height=n(N.textHeight,H),Z&&(V.outerWidth+=Z[1]+Z[3],V.outerHeight+=Z[0]+Z[2]);for(var ne=0;ne<$.length;ne++){var se=$[ne],Pe=se.percentWidth;se.width=parseInt(Pe,10)/100*W}return V}function R(O,N,z){for(var V=N==="",B=N.split(`
`),G=O.lines,E=0;E<B.length;E++){var H=B[E],W={styleName:z,text:H,isLineHolder:!H&&!V};if(E)G.push({tokens:[W]});else{var $=(G[G.length-1]||(G[0]={tokens:[]})).tokens,Z=$.length;Z===1&&$[0].isLineHolder?$[0]=W:(H||!Z||V)&&$.push(W)}}}o.measureText=function(O,N){var z=e();return z.font=N||c,z.measureText(O)},C.DEFAULT_FONT=c,C.$override=function(O,N){o[O]=N},C.getWidth=d,C.getBoundingRect=function(O,N,z,V,B,G,E,H){var W,$,Z,Q,Y,K,ne,X,ee,ae,oe,se,ge,fe,le,ue;return E?(W=O,$=N,Z=z,Q=V,K=(Y=L(W,{rich:E,truncate:H,font:$,textAlign:Z,textPadding:B,textLineHeight:G})).outerWidth,ne=Y.outerHeight,new p(m(0,K,Z),_(0,ne,Q),K,ne)):(X=O,ee=N,ae=z,oe=V,ge=D(X,ee,se=B,G,H),fe=d(X,ee),se&&(fe+=se[1]+se[3]),le=ge.outerHeight,(ue=new p(m(0,fe,ae),_(0,le,oe),fe,le)).lineHeight=ge.lineHeight,ue)},C.adjustTextX=m,C.adjustTextY=_,C.adjustTextPositionOnRect=function(O,N,z){var V=N.x,B=N.y,G=N.height,E=N.width,H=G/2,W="left",$="top";switch(O){case"left":V-=z,B+=H,W="right",$="middle";break;case"right":V+=z+E,B+=H,$="middle";break;case"top":V+=E/2,B-=z,W="center",$="bottom";break;case"bottom":V+=E/2,B+=G+z,W="center";break;case"inside":V+=E/2,B+=H,W="center",$="middle";break;case"insideLeft":V+=z,B+=H,$="middle";break;case"insideRight":V+=E-z,B+=H,W="right",$="middle";break;case"insideTop":V+=E/2,B+=z,W="center";break;case"insideBottom":V+=E/2,B+=G-z,W="center",$="bottom";break;case"insideTopLeft":V+=z,B+=z;break;case"insideTopRight":V+=E-z,B+=z,W="right";break;case"insideBottomLeft":V+=z,B+=G-z,$="bottom";break;case"insideBottomRight":V+=E-z,B+=G-z,W="right",$="bottom"}return{x:V,y:B,textAlign:W,textVerticalAlign:$}},C.truncateText=M,C.getLineHeight=I,C.measureText=k,C.parsePlainText=D,C.parseRichText=L,C.makeFont=function(O){var N=(O.fontSize||O.fontFamily)&&[O.fontStyle,O.fontWeight,(O.fontSize||12)+"px",O.fontFamily||"sans-serif"].join(" ");return N&&f(N)||O.textFont||O.font}},46500:function(U,C){var b=2*Math.PI;C.normalizeRadian=function(p){return(p%=b)<0&&(p+=b),p}},49226:function(U){U.exports=function(C,b,p,T,w,e){if(e>b&&e>T||e<b&&e<T||T===b)return 0;var h=T<b?1:-1,n=(e-b)/(T-b);(n===1||n===0)&&(h=T<b?.5:-.5);var t=n*(p-C)+C;return t===w?1/0:t>w?h:0}},18583:function(U,C,b){var p=b(23405),T=b(40498),w=b(28761),e=function(h){for(var n in h=h||{},T.call(this,h),h)h.hasOwnProperty(n)&&(this[n]=h[n]);this._children=[],this.__storage=null,this.__dirty=!0};e.prototype={constructor:e,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(h){return this._children[h]},childOfName:function(h){for(var n=this._children,t=0;t<n.length;t++)if(n[t].name===h)return n[t]},childCount:function(){return this._children.length},add:function(h){return h&&h!==this&&h.parent!==this&&(this._children.push(h),this._doAdd(h)),this},addBefore:function(h,n){if(h&&h!==this&&h.parent!==this&&n&&n.parent===this){var t=this._children,f=t.indexOf(n);f>=0&&(t.splice(f,0,h),this._doAdd(h))}return this},_doAdd:function(h){h.parent&&h.parent.remove(h),h.parent=this;var n=this.__storage,t=this.__zr;n&&n!==h.__storage&&(n.addToStorage(h),h instanceof e&&h.addChildrenToStorage(n)),t&&t.refresh()},remove:function(h){var n=this.__zr,t=this.__storage,f=this._children,a=p.indexOf(f,h);return a<0||(f.splice(a,1),h.parent=null,t&&(t.delFromStorage(h),h instanceof e&&h.delChildrenFromStorage(t)),n&&n.refresh()),this},removeAll:function(){var h,n,t=this._children,f=this.__storage;for(n=0;n<t.length;n++)h=t[n],f&&(f.delFromStorage(h),h instanceof e&&h.delChildrenFromStorage(f)),h.parent=null;return t.length=0,this},eachChild:function(h,n){for(var t=this._children,f=0;f<t.length;f++){var a=t[f];h.call(n,a,f)}return this},traverse:function(h,n){for(var t=0;t<this._children.length;t++){var f=this._children[t];h.call(n,f),f.type==="group"&&f.traverse(h,n)}return this},addChildrenToStorage:function(h){for(var n=0;n<this._children.length;n++){var t=this._children[n];h.addToStorage(t),t instanceof e&&t.addChildrenToStorage(h)}},delChildrenFromStorage:function(h){for(var n=0;n<this._children.length;n++){var t=this._children[n];h.delFromStorage(t),t instanceof e&&t.delChildrenFromStorage(h)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(h){for(var n=null,t=new w(0,0,0,0),f=h||this._children,a=[],y=0;y<f.length;y++){var g=f[y];if(!g.ignore&&!g.invisible){var c=g.getBoundingRect(),o=g.getLocalTransform(a);o?(t.copy(c),t.applyTransform(o),(n=n||t.clone()).union(t)):(n=n||c.clone()).union(c)}}return n||t}},p.inherits(e,T),U.exports=e},28761:function(U,C,b){var p,T,w,e,h=b(76414),n=b(79442),t=h.applyTransform,f=Math.min,a=Math.max;function y(g,c,o,d){o<0&&(g+=o,o=-o),d<0&&(c+=d,d=-d),this.x=g,this.y=c,this.width=o,this.height=d}y.prototype={constructor:y,union:function(g){var c=f(g.x,this.x),o=f(g.y,this.y);this.width=a(g.x+g.width,this.x+this.width)-c,this.height=a(g.y+g.height,this.y+this.height)-o,this.x=c,this.y=o},applyTransform:(p=[],T=[],w=[],e=[],function(g){if(g){p[0]=w[0]=this.x,p[1]=e[1]=this.y,T[0]=e[0]=this.x+this.width,T[1]=w[1]=this.y+this.height,t(p,p,g),t(T,T,g),t(w,w,g),t(e,e,g),this.x=f(p[0],T[0],w[0],e[0]),this.y=f(p[1],T[1],w[1],e[1]);var c=a(p[0],T[0],w[0],e[0]),o=a(p[1],T[1],w[1],e[1]);this.width=c-this.x,this.height=o-this.y}}),calculateTransform:function(g){var c=g.width/this.width,o=g.height/this.height,d=n.create();return n.translate(d,d,[-this.x,-this.y]),n.scale(d,d,[c,o]),n.translate(d,d,[g.x,g.y]),d},intersect:function(g){if(!g)return!1;g instanceof y||(g=y.create(g));var c=this.x,o=this.x+this.width,d=this.y,m=this.y+this.height,_=g.x,M=g.x+g.width,S=g.y,A=g.y+g.height;return!(o<_||M<c||m<S||A<d)},contain:function(g,c){return g>=this.x&&g<=this.x+this.width&&c>=this.y&&c<=this.y+this.height},clone:function(){return new y(this.x,this.y,this.width,this.height)},copy:function(g){this.x=g.x,this.y=g.y,this.width=g.width,this.height=g.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},y.create=function(g){return new y(g.x,g.y,g.width,g.height)},U.exports=y},28306:function(U,C,b){var p=b(46427),T=function(){this._track=[]};function w(h){var n=h[1][0]-h[0][0],t=h[1][1]-h[0][1];return Math.sqrt(n*n+t*t)}T.prototype={constructor:T,recognize:function(h,n,t){return this._doTrack(h,n,t),this._recognize(h)},clear:function(){return this._track.length=0,this},_doTrack:function(h,n,t){var f=h.touches;if(f){for(var a={points:[],touches:[],target:n,event:h},y=0,g=f.length;y<g;y++){var c=f[y],o=p.clientToLocal(t,c,{});a.points.push([o.zrX,o.zrY]),a.touches.push(c)}this._track.push(a)}},_recognize:function(h){for(var n in e)if(e.hasOwnProperty(n)){var t=e[n](this._track,h);if(t)return t}}};var e={pinch:function(h,n){var t=h.length;if(t){var f=(h[t-1]||{}).points,a=(h[t-2]||{}).points||f;if(a&&a.length>1&&f&&f.length>1){var y=w(f)/w(a);isFinite(y)||(y=1),n.pinchScale=y;var g=[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2];return n.pinchX=g[0],n.pinchY=g[1],{type:"pinch",target:h[0].target,event:n}}}}};U.exports=T},26853:function(U){var C=function(){this.head=null,this.tail=null,this._len=0},b=C.prototype;b.insert=function(e){var h=new p(e);return this.insertEntry(h),h},b.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},b.remove=function(e){var h=e.prev,n=e.next;h?h.next=n:this.head=n,n?n.prev=h:this.tail=h,e.next=e.prev=null,this._len--},b.len=function(){return this._len},b.clear=function(){this.head=this.tail=null,this._len=0};var p=function(e){this.value=e,this.next,this.prev},T=function(e){this._list=new C,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},w=T.prototype;w.put=function(e,h){var n=this._list,t=this._map,f=null;if(t[e]==null){var a=n.len(),y=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var g=n.head;n.remove(g),delete t[g.key],f=g.value,this._lastRemovedEntry=g}y?y.value=h:y=new p(h),y.key=e,n.insertEntry(y),t[e]=y}return f},w.get=function(e){var h=this._map[e],n=this._list;if(h!=null)return h!==n.tail&&(n.remove(h),n.insertEntry(h)),h.value},w.clear=function(){this._list.clear(),this._map={}},U.exports=T},93041:function(U,C,b){var p=b(14141),T=b(76414),w=b(6973),e=b(28761),h=b(8598).devicePixelRatio,n={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},t=[],f=[],a=[],y=[],g=Math.min,c=Math.max,o=Math.cos,d=Math.sin,m=Math.sqrt,_=Math.abs,M=typeof Float32Array<"u",S=function(A){this._saveData=!A,this._saveData&&(this.data=[]),this._ctx=null};S.prototype={constructor:S,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(A,I){this._ux=_(1/h/A)||0,this._uy=_(1/h/I)||0},getContext:function(){return this._ctx},beginPath:function(A){return this._ctx=A,A&&A.beginPath(),A&&(this.dpr=A.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(A,I){return this.addData(n.M,A,I),this._ctx&&this._ctx.moveTo(A,I),this._x0=A,this._y0=I,this._xi=A,this._yi=I,this},lineTo:function(A,I){var k=_(A-this._xi)>this._ux||_(I-this._yi)>this._uy||this._len<5;return this.addData(n.L,A,I),this._ctx&&k&&(this._needsDash()?this._dashedLineTo(A,I):this._ctx.lineTo(A,I)),k&&(this._xi=A,this._yi=I),this},bezierCurveTo:function(A,I,k,D,L,R){return this.addData(n.C,A,I,k,D,L,R),this._ctx&&(this._needsDash()?this._dashedBezierTo(A,I,k,D,L,R):this._ctx.bezierCurveTo(A,I,k,D,L,R)),this._xi=L,this._yi=R,this},quadraticCurveTo:function(A,I,k,D){return this.addData(n.Q,A,I,k,D),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(A,I,k,D):this._ctx.quadraticCurveTo(A,I,k,D)),this._xi=k,this._yi=D,this},arc:function(A,I,k,D,L,R){return this.addData(n.A,A,I,k,k,D,L-D,0,+!R),this._ctx&&this._ctx.arc(A,I,k,D,L,R),this._xi=o(L)*k+A,this._yi=d(L)*k+I,this},arcTo:function(A,I,k,D,L){return this._ctx&&this._ctx.arcTo(A,I,k,D,L),this},rect:function(A,I,k,D){return this._ctx&&this._ctx.rect(A,I,k,D),this.addData(n.R,A,I,k,D),this},closePath:function(){this.addData(n.Z);var A=this._ctx,I=this._x0,k=this._y0;return A&&(this._needsDash()&&this._dashedLineTo(I,k),A.closePath()),this._xi=I,this._yi=k,this},fill:function(A){A&&A.fill(),this.toStatic()},stroke:function(A){A&&A.stroke(),this.toStatic()},setLineDash:function(A){if(A instanceof Array){this._lineDash=A,this._dashIdx=0;for(var I=0,k=0;k<A.length;k++)I+=A[k];this._dashSum=I}return this},setLineDashOffset:function(A){return this._dashOffset=A,this},len:function(){return this._len},setData:function(A){var I=A.length;!(this.data&&this.data.length===I)&&M&&(this.data=new Float32Array(I));for(var k=0;k<I;k++)this.data[k]=A[k];this._len=I},appendPath:function(A){A instanceof Array||(A=[A]);for(var I=A.length,k=0,D=this._len,L=0;L<I;L++)k+=A[L].len();M&&this.data instanceof Float32Array&&(this.data=new Float32Array(D+k));for(var L=0;L<I;L++)for(var R=A[L].data,O=0;O<R.length;O++)this.data[D++]=R[O];this._len=D},addData:function(A){if(this._saveData){var I=this.data;this._len+arguments.length>I.length&&(this._expandData(),I=this.data);for(var k=0;k<arguments.length;k++)I[this._len++]=arguments[k];this._prevCmd=A}},_expandData:function(){if(!(this.data instanceof Array)){for(var A=[],I=0;I<this._len;I++)A[I]=this.data[I];this.data=A}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(A,I){var k,D,L=this._dashSum,R=this._dashOffset,O=this._lineDash,N=this._ctx,z=this._xi,V=this._yi,B=A-z,G=I-V,E=m(B*B+G*G),H=z,W=V,$=O.length;for(B/=E,G/=E,R<0&&(R=L+R),R%=L,H-=R*B,W-=R*G;B>0&&H<=A||B<0&&H>=A||B===0&&(G>0&&W<=I||G<0&&W>=I);)H+=B*(k=O[D=this._dashIdx]),W+=G*k,this._dashIdx=(D+1)%$,B>0&&H<z||B<0&&H>z||G>0&&W<V||G<0&&W>V||N[D%2?"moveTo":"lineTo"](B>=0?g(H,A):c(H,A),G>=0?g(W,I):c(W,I));B=H-A,G=W-I,this._dashOffset=-m(B*B+G*G)},_dashedBezierTo:function(A,I,k,D,L,R){var O,N,z,V,B,G=this._dashSum,E=this._dashOffset,H=this._lineDash,W=this._ctx,$=this._xi,Z=this._yi,Q=p.cubicAt,Y=0,K=this._dashIdx,ne=H.length,X=0;for(E<0&&(E=G+E),E%=G,O=0;O<1;O+=.1)Y+=m((N=Q($,A,k,L,O+.1)-Q($,A,k,L,O))*N+(z=Q(Z,I,D,R,O+.1)-Q(Z,I,D,R,O))*z);for(;K<ne&&!((X+=H[K])>E);K++);for(O=(X-E)/Y;O<=1;)V=Q($,A,k,L,O),B=Q(Z,I,D,R,O),K%2?W.moveTo(V,B):W.lineTo(V,B),O+=H[K]/Y,K=(K+1)%ne;K%2!=0&&W.lineTo(L,R),N=L-V,z=R-B,this._dashOffset=-m(N*N+z*z)},_dashedQuadraticTo:function(A,I,k,D){var L=k,R=D;k=(k+2*A)/3,D=(D+2*I)/3,A=(this._xi+2*A)/3,I=(this._yi+2*I)/3,this._dashedBezierTo(A,I,k,D,L,R)},toStatic:function(){var A=this.data;A instanceof Array&&(A.length=this._len,M&&(this.data=new Float32Array(A)))},getBoundingRect:function(){t[0]=t[1]=a[0]=a[1]=Number.MAX_VALUE,f[0]=f[1]=y[0]=y[1]=-Number.MAX_VALUE;for(var A=this.data,I=0,k=0,D=0,L=0,R=0;R<A.length;){var O=A[R++];switch(R===1&&(I=A[R],k=A[R+1],D=I,L=k),O){case n.M:D=A[R++],L=A[R++],I=D,k=L,a[0]=D,a[1]=L,y[0]=D,y[1]=L;break;case n.L:w.fromLine(I,k,A[R],A[R+1],a,y),I=A[R++],k=A[R++];break;case n.C:w.fromCubic(I,k,A[R++],A[R++],A[R++],A[R++],A[R],A[R+1],a,y),I=A[R++],k=A[R++];break;case n.Q:w.fromQuadratic(I,k,A[R++],A[R++],A[R],A[R+1],a,y),I=A[R++],k=A[R++];break;case n.A:var N=A[R++],z=A[R++],V=A[R++],B=A[R++],G=A[R++],E=A[R++]+G;R+=1;var H=1-A[R++];R===1&&(D=o(G)*V+N,L=d(G)*B+z),w.fromArc(N,z,V,B,G,E,H,a,y),I=o(E)*V+N,k=d(E)*B+z;break;case n.R:D=I=A[R++],L=k=A[R++];var W=A[R++],$=A[R++];w.fromLine(D,L,D+W,L+$,a,y);break;case n.Z:I=D,k=L}T.min(t,t,a),T.max(f,f,y)}return R===0&&(t[0]=t[1]=f[0]=f[1]=0),new e(t[0],t[1],f[0]-t[0],f[1]-t[1])},rebuildPath:function(A){for(var I,k,D,L,R,O,N=this.data,z=this._ux,V=this._uy,B=this._len,G=0;G<B;){var E=N[G++];switch(G===1&&(D=N[G],L=N[G+1],I=D,k=L),E){case n.M:I=D=N[G++],k=L=N[G++],A.moveTo(D,L);break;case n.L:R=N[G++],O=N[G++],(_(R-D)>z||_(O-L)>V||G===B-1)&&(A.lineTo(R,O),D=R,L=O);break;case n.C:A.bezierCurveTo(N[G++],N[G++],N[G++],N[G++],N[G++],N[G++]),D=N[G-2],L=N[G-1];break;case n.Q:A.quadraticCurveTo(N[G++],N[G++],N[G++],N[G++]),D=N[G-2],L=N[G-1];break;case n.A:var H=N[G++],W=N[G++],$=N[G++],Z=N[G++],Q=N[G++],Y=N[G++],K=N[G++],ne=N[G++],X=$>Z?$:Z,ee=$>Z?1:$/Z,ae=$>Z?Z/$:1,oe=Q+Y;Math.abs($-Z)>.001?(A.translate(H,W),A.rotate(K),A.scale(ee,ae),A.arc(0,0,X,Q,oe,1-ne),A.scale(1/ee,1/ae),A.rotate(-K),A.translate(-H,-W)):A.arc(H,W,X,Q,oe,1-ne),G===1&&(I=o(Q)*$+H,k=d(Q)*Z+W),D=o(oe)*$+H,L=d(oe)*Z+W;break;case n.R:I=D=N[G],k=L=N[G+1],A.rect(N[G++],N[G++],N[G++],N[G++]);break;case n.Z:A.closePath(),D=I,L=k}}}},S.CMD=n,U.exports=S},7189:function(U){function C(){}C.prototype={diff:function(p,T,w){w||(w=function(d,m){return d===m}),this.equals=w;var e=this;p=p.slice();var h=(T=T.slice()).length,n=p.length,t=1,f=h+n,a=[{newPos:-1,components:[]}],y=this.extractCommon(a[0],T,p,0);if(a[0].newPos+1>=h&&y+1>=n){for(var g=[],c=0;c<T.length;c++)g.push(c);return[{indices:g,count:T.length}]}for(;t<=f;){var o=function(){for(var d=-1*t;d<=t;d+=2){var m,_,M=a[d-1],S=a[d+1],A=(S?S.newPos:0)-d;M&&(a[d-1]=void 0);var I=M&&M.newPos+1<h,k=S&&0<=A&&A<n;if(!I&&!k){a[d]=void 0;continue}if(!I||k&&M.newPos<S.newPos?(_={newPos:(m=S).newPos,components:m.components.slice(0)},e.pushComponent(_.components,void 0,!0)):(_=M,_.newPos++,e.pushComponent(_.components,!0,void 0)),A=e.extractCommon(_,T,p,d),_.newPos+1>=h&&A+1>=n)return function(D,L,R,O){for(var N=0,z=L.length,V=0,B=0;N<z;N++){var G=L[N];if(G.removed){for(var E=[],H=B;H<B+G.count;H++)E.push(H);G.indices=E,B+=G.count}else{for(var E=[],H=V;H<V+G.count;H++)E.push(H);G.indices=E,V+=G.count,G.added||(B+=G.count)}}return L}(0,_.components);a[d]=_}t++}();if(o)return o}},pushComponent:function(p,T,w){var e=p[p.length-1];e&&e.added===T&&e.removed===w?p[p.length-1]={count:e.count+1,added:T,removed:w}:p.push({count:1,added:T,removed:w})},extractCommon:function(p,T,w,e){for(var h=T.length,n=w.length,t=p.newPos,f=t-e,a=0;t+1<h&&f+1<n&&this.equals(T[t+1],w[f+1]);)t++,f++,a++;return a&&p.components.push({count:a}),p.newPos=t,f},tokenize:function(p){return p.slice()},join:function(p){return p.slice()}};var b=new C;U.exports=function(p,T,w){return b.diff(p,T,w)}},6973:function(U,C,b){var p=b(76414),T=b(14141),w=Math.min,e=Math.max,h=Math.sin,n=Math.cos,t=2*Math.PI,f=p.create(),a=p.create(),y=p.create(),g=[],c=[];C.fromPoints=function(o,d,m){if(o.length!==0){var _,M=o[0],S=M[0],A=M[0],I=M[1],k=M[1];for(_=1;_<o.length;_++)S=w(S,(M=o[_])[0]),A=e(A,M[0]),I=w(I,M[1]),k=e(k,M[1]);d[0]=S,d[1]=I,m[0]=A,m[1]=k}},C.fromLine=function(o,d,m,_,M,S){M[0]=w(o,m),M[1]=w(d,_),S[0]=e(o,m),S[1]=e(d,_)},C.fromCubic=function(o,d,m,_,M,S,A,I,k,D){var L,R=T.cubicExtrema,O=T.cubicAt,N=R(o,m,M,A,g);for(L=0,k[0]=1/0,k[1]=1/0,D[0]=-1/0,D[1]=-1/0;L<N;L++){var z=O(o,m,M,A,g[L]);k[0]=w(z,k[0]),D[0]=e(z,D[0])}for(L=0,N=R(d,_,S,I,c);L<N;L++){var V=O(d,_,S,I,c[L]);k[1]=w(V,k[1]),D[1]=e(V,D[1])}k[0]=w(o,k[0]),D[0]=e(o,D[0]),k[0]=w(A,k[0]),D[0]=e(A,D[0]),k[1]=w(d,k[1]),D[1]=e(d,D[1]),k[1]=w(I,k[1]),D[1]=e(I,D[1])},C.fromQuadratic=function(o,d,m,_,M,S,A,I){var k=T.quadraticExtremum,D=T.quadraticAt,L=e(w(k(o,m,M),1),0),R=e(w(k(d,_,S),1),0),O=D(o,m,M,L),N=D(d,_,S,R);A[0]=w(o,M,O),A[1]=w(d,S,N),I[0]=e(o,M,O),I[1]=e(d,S,N)},C.fromArc=function(o,d,m,_,M,S,A,I,k){var D=p.min,L=p.max,R=Math.abs(M-S);if(R%t<1e-4&&R>1e-4){I[0]=o-m,I[1]=d-_,k[0]=o+m,k[1]=d+_;return}if(f[0]=n(M)*m+o,f[1]=h(M)*_+d,a[0]=n(S)*m+o,a[1]=h(S)*_+d,D(I,f,a),L(k,f,a),(M%=t)<0&&(M+=t),(S%=t)<0&&(S+=t),M>S&&!A?S+=t:M<S&&A&&(M+=t),A){var O=S;S=M,M=O}for(var N=0;N<S;N+=Math.PI/2)N>M&&(y[0]=n(N)*m+o,y[1]=h(N)*_+d,D(I,y,I),L(k,y,k))}},14141:function(U,C,b){var p=b(76414),T=p.create,w=p.distSquare,e=Math.pow,h=Math.sqrt,n=h(3),t=1/3,f=T(),a=T(),y=T();function g(m){return m>-1e-8&&m<1e-8}function c(m){return m>1e-8||m<-1e-8}function o(m,_,M,S,A){var I=1-A;return I*I*(I*m+3*A*_)+A*A*(A*S+3*I*M)}function d(m,_,M,S){var A=1-S;return A*(A*m+2*S*_)+S*S*M}C.cubicAt=o,C.cubicDerivativeAt=function(m,_,M,S,A){var I=1-A;return 3*(((_-m)*I+2*(M-_)*A)*I+(S-M)*A*A)},C.cubicRootAt=function(m,_,M,S,A,I){var k=S+3*(_-M)-m,D=3*(M-2*_+m),L=3*(_-m),R=m-A,O=D*D-3*k*L,N=D*L-9*k*R,z=L*L-3*D*R,V=0;if(g(O)&&g(N))if(g(D))I[0]=0;else{var B=-L/D;B>=0&&B<=1&&(I[V++]=B)}else{var G=N*N-4*O*z;if(g(G)){var E=N/O,B=-D/k+E,H=-E/2;B>=0&&B<=1&&(I[V++]=B),H>=0&&H<=1&&(I[V++]=H)}else if(G>0){var W=h(G),$=O*D+1.5*k*(-N+W),Z=O*D+1.5*k*(-N-W),B=(-D-(($=$<0?-e(-$,t):e($,t))+(Z=Z<0?-e(-Z,t):e(Z,t))))/(3*k);B>=0&&B<=1&&(I[V++]=B)}else{var Q=Math.acos((2*O*D-3*k*N)/(2*h(O*O*O)))/3,Y=h(O),K=Math.cos(Q),B=(-D-2*Y*K)/(3*k),H=(-D+Y*(K+n*Math.sin(Q)))/(3*k),ne=(-D+Y*(K-n*Math.sin(Q)))/(3*k);B>=0&&B<=1&&(I[V++]=B),H>=0&&H<=1&&(I[V++]=H),ne>=0&&ne<=1&&(I[V++]=ne)}}return V},C.cubicExtrema=function(m,_,M,S,A){var I=6*M-12*_+6*m,k=9*_+3*S-3*m-9*M,D=3*_-3*m,L=0;if(g(k)){if(c(I)){var R=-D/I;R>=0&&R<=1&&(A[L++]=R)}}else{var O=I*I-4*k*D;if(g(O))A[0]=-I/(2*k);else if(O>0){var N=h(O),R=(-I+N)/(2*k),z=(-I-N)/(2*k);R>=0&&R<=1&&(A[L++]=R),z>=0&&z<=1&&(A[L++]=z)}}return L},C.cubicSubdivide=function(m,_,M,S,A,I){var k=(_-m)*A+m,D=(M-_)*A+_,L=(S-M)*A+M,R=(D-k)*A+k,O=(L-D)*A+D,N=(O-R)*A+R;I[0]=m,I[1]=k,I[2]=R,I[3]=N,I[4]=N,I[5]=O,I[6]=L,I[7]=S},C.cubicProjectPoint=function(m,_,M,S,A,I,k,D,L,R,O){var N,z,V,B,G,E=.005,H=1/0;f[0]=L,f[1]=R;for(var W=0;W<1;W+=.05)a[0]=o(m,M,A,k,W),a[1]=o(_,S,I,D,W),(B=w(f,a))<H&&(N=W,H=B);H=1/0;for(var $=0;$<32&&!(E<1e-4);$++)z=N-E,V=N+E,a[0]=o(m,M,A,k,z),a[1]=o(_,S,I,D,z),B=w(a,f),z>=0&&B<H?(N=z,H=B):(y[0]=o(m,M,A,k,V),y[1]=o(_,S,I,D,V),G=w(y,f),V<=1&&G<H?(N=V,H=G):E*=.5);return O&&(O[0]=o(m,M,A,k,N),O[1]=o(_,S,I,D,N)),h(H)},C.quadraticAt=d,C.quadraticDerivativeAt=function(m,_,M,S){return 2*((1-S)*(_-m)+S*(M-_))},C.quadraticRootAt=function(m,_,M,S,A){var I=m-2*_+M,k=2*(_-m),D=m-S,L=0;if(g(I)){if(c(k)){var R=-D/k;R>=0&&R<=1&&(A[L++]=R)}}else{var O=k*k-4*I*D;if(g(O)){var R=-k/(2*I);R>=0&&R<=1&&(A[L++]=R)}else if(O>0){var N=h(O),R=(-k+N)/(2*I),z=(-k-N)/(2*I);R>=0&&R<=1&&(A[L++]=R),z>=0&&z<=1&&(A[L++]=z)}}return L},C.quadraticExtremum=function(m,_,M){var S=m+M-2*_;return S===0?.5:(m-_)/S},C.quadraticSubdivide=function(m,_,M,S,A){var I=(_-m)*S+m,k=(M-_)*S+_,D=(k-I)*S+I;A[0]=m,A[1]=I,A[2]=D,A[3]=D,A[4]=k,A[5]=M},C.quadraticProjectPoint=function(m,_,M,S,A,I,k,D,L){var R,O=.005,N=1/0;f[0]=k,f[1]=D;for(var z=0;z<1;z+=.05){a[0]=d(m,M,A,z),a[1]=d(_,S,I,z);var V=w(f,a);V<N&&(R=z,N=V)}N=1/0;for(var B=0;B<32&&!(O<1e-4);B++){var G=R-O,E=R+O;a[0]=d(m,M,A,G),a[1]=d(_,S,I,G);var V=w(a,f);if(G>=0&&V<N)R=G,N=V;else{y[0]=d(m,M,A,E),y[1]=d(_,S,I,E);var H=w(y,f);E<=1&&H<N?(R=E,N=H):O*=.5}}return L&&(L[0]=d(m,M,A,R),L[1]=d(_,S,I,R)),h(N)}},23584:function(U){var C,b,p,T,w,e;U.exports=typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document>"u"&&typeof self<"u"?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator>"u"?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:(C=navigator.userAgent,b={},p=C.match(/Firefox\/([\d.]+)/),T=C.match(/MSIE\s([\d.]+)/)||C.match(/Trident\/.+?rv:(([\d.]+))/),w=C.match(/Edge\/([\d.]+)/),e=/micromessenger/i.test(C),p&&(b.firefox=!0,b.version=p[1]),T&&(b.ie=!0,b.version=T[1]),w&&(b.edge=!0,b.version=w[1]),e&&(b.weChat=!0),{browser:b,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect<"u",touchEventsSupported:"ontouchstart"in window&&!b.ie&&!b.edge,pointerEventsSupported:"onpointerdown"in window&&(b.edge||b.ie&&b.version>=11),domSupported:typeof document<"u"})},46427:function(U,C,b){C.Dispatcher=b(62271);var p=b(23584),T=typeof window<"u"&&!!window.addEventListener,w=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;function e(t,f,a,y){return a=a||{},y||!p.canvasSupported?h(t,f,a):p.browser.firefox&&f.layerX!=null&&f.layerX!==f.offsetX?(a.zrX=f.layerX,a.zrY=f.layerY):f.offsetX!=null?(a.zrX=f.offsetX,a.zrY=f.offsetY):h(t,f,a),a}function h(t,f,a){var y=t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0};a.zrX=f.clientX-y.left,a.zrY=f.clientY-y.top}var n=T?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};C.clientToLocal=e,C.normalizeEvent=function(t,f,a){if((f=f||window.event).zrX!=null)return f;var y=f.type;if(y&&y.indexOf("touch")>=0){var g=y!=="touchend"?f.targetTouches[0]:f.changedTouches[0];g&&e(t,g,f,a)}else e(t,f,f,a),f.zrDelta=f.wheelDelta?f.wheelDelta/120:-(f.detail||0)/3;var c=f.button;return f.which==null&&c!==void 0&&w.test(f.type)&&(f.which=1&c?1:2&c?3:4&c?2:0),f},C.addEventListener=function(t,f,a){T?t.addEventListener(f,a):t.attachEvent("on"+f,a)},C.removeEventListener=function(t,f,a){T?t.removeEventListener(f,a):t.detachEvent("on"+f,a)},C.stop=n,C.isMiddleOrRightButtonOnMouseUpDown=function(t){return t.which===2||t.which===3},C.notLeftMouse=function(t){return t.which>1}},46490:function(U){var C=2311;U.exports=function(){return C++}},45003:function(U,C,b){var p=b(8598).debugMode,T=function(){};p===1?T=function(){for(var w in arguments)throw Error(arguments[w])}:p>1&&(T=function(){for(var w in arguments)console.log(arguments[w])}),U.exports=T},79442:function(U,C){var b=typeof Float32Array>"u"?Array:Float32Array;function p(){var e=new b(6);return T(e),e}function T(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function w(e,h){return e[0]=h[0],e[1]=h[1],e[2]=h[2],e[3]=h[3],e[4]=h[4],e[5]=h[5],e}C.create=p,C.identity=T,C.copy=w,C.mul=function(e,h,n){var t=h[0]*n[0]+h[2]*n[1],f=h[1]*n[0]+h[3]*n[1],a=h[0]*n[2]+h[2]*n[3],y=h[1]*n[2]+h[3]*n[3],g=h[0]*n[4]+h[2]*n[5]+h[4],c=h[1]*n[4]+h[3]*n[5]+h[5];return e[0]=t,e[1]=f,e[2]=a,e[3]=y,e[4]=g,e[5]=c,e},C.translate=function(e,h,n){return e[0]=h[0],e[1]=h[1],e[2]=h[2],e[3]=h[3],e[4]=h[4]+n[0],e[5]=h[5]+n[1],e},C.rotate=function(e,h,n){var t=h[0],f=h[2],a=h[4],y=h[1],g=h[3],c=h[5],o=Math.sin(n),d=Math.cos(n);return e[0]=t*d+y*o,e[1]=-t*o+y*d,e[2]=f*d+g*o,e[3]=-f*o+d*g,e[4]=d*a+o*c,e[5]=d*c-o*a,e},C.scale=function(e,h,n){var t=n[0],f=n[1];return e[0]=h[0]*t,e[1]=h[1]*f,e[2]=h[2]*t,e[3]=h[3]*f,e[4]=h[4]*t,e[5]=h[5]*f,e},C.invert=function(e,h){var n=h[0],t=h[2],f=h[4],a=h[1],y=h[3],g=h[5],c=n*y-a*t;return c?(c=1/c,e[0]=y*c,e[1]=-a*c,e[2]=-t*c,e[3]=n*c,e[4]=(t*g-y*f)*c,e[5]=(a*f-n*g)*c,e):null},C.clone=function(e){var h=p();return w(h,e),h}},32553:function(U){function C(e,h,n,t){var f=h+1;if(f===n)return 1;if(0>t(e[f++],e[h])){for(;f<n&&0>t(e[f],e[f-1]);)f++;var a=e,y=h,g=f;for(g--;y<g;){var c=a[y];a[y++]=a[g],a[g--]=c}}else for(;f<n&&t(e[f],e[f-1])>=0;)f++;return f-h}function b(e,h,n,t,f){for(t===h&&t++;t<n;t++){for(var a,y=e[t],g=h,c=t;g<c;)0>f(y,e[a=g+c>>>1])?c=a:g=a+1;var o=t-g;switch(o){case 3:e[g+3]=e[g+2];case 2:e[g+2]=e[g+1];case 1:e[g+1]=e[g];break;default:for(;o>0;)e[g+o]=e[g+o-1],o--}e[g]=y}}function p(e,h,n,t,f,a){var y=0,g=0,c=1;if(a(e,h[n+f])>0){for(g=t-f;c<g&&a(e,h[n+f+c])>0;)y=c,(c=(c<<1)+1)<=0&&(c=g);c>g&&(c=g),y+=f,c+=f}else{for(g=f+1;c<g&&0>=a(e,h[n+f-c]);)y=c,(c=(c<<1)+1)<=0&&(c=g);c>g&&(c=g);var o=y;y=f-c,c=f-o}for(y++;y<c;){var d=y+(c-y>>>1);a(e,h[n+d])>0?y=d+1:c=d}return c}function T(e,h,n,t,f,a){var y=0,g=0,c=1;if(0>a(e,h[n+f])){for(g=f+1;c<g&&0>a(e,h[n+f-c]);)y=c,(c=(c<<1)+1)<=0&&(c=g);c>g&&(c=g);var o=y;y=f-c,c=f-o}else{for(g=t-f;c<g&&a(e,h[n+f+c])>=0;)y=c,(c=(c<<1)+1)<=0&&(c=g);c>g&&(c=g),y+=f,c+=f}for(y++;y<c;){var d=y+(c-y>>>1);0>a(e,h[n+d])?c=d:y=d+1}return c}function w(e,h){var n,t,f=7,a=0;e.length;var y=[];function g(c){var o=n[c],d=t[c],m=n[c+1],_=t[c+1];t[c]=d+_,c===a-3&&(n[c+1]=n[c+2],t[c+1]=t[c+2]),a--;var M=T(e[m],e,o,d,0,h);o+=M,(d-=M)!=0&&(_=p(e[o+d-1],e,m,_,_-1,h))!==0&&(d<=_?function(S,A,I,k){var D,L,R,O=0;for(O=0;O<A;O++)y[O]=e[S+O];var N=0,z=I,V=S;if(e[V++]=e[z++],--k==0){for(O=0;O<A;O++)e[V+O]=y[N+O];return}if(A===1){for(O=0;O<k;O++)e[V+O]=e[z+O];e[V+k]=y[N];return}for(var B=f;;){D=0,L=0,R=!1;do if(0>h(e[z],y[N])){if(e[V++]=e[z++],L++,D=0,--k==0){R=!0;break}}else if(e[V++]=y[N++],D++,L=0,--A==1){R=!0;break}while((D|L)<B);if(R)break;do{if((D=T(e[z],y,N,A,0,h))!==0){for(O=0;O<D;O++)e[V+O]=y[N+O];if(V+=D,N+=D,(A-=D)<=1){R=!0;break}}if(e[V++]=e[z++],--k==0){R=!0;break}if((L=p(y[N],e,z,k,0,h))!==0){for(O=0;O<L;O++)e[V+O]=e[z+O];if(V+=L,z+=L,(k-=L)==0){R=!0;break}}if(e[V++]=y[N++],--A==1){R=!0;break}B--}while(D>=7||L>=7);if(R)break;B<0&&(B=0),B+=2}if((f=B)<1&&(f=1),A===1){for(O=0;O<k;O++)e[V+O]=e[z+O];e[V+k]=y[N]}else{if(A===0)throw Error();for(O=0;O<A;O++)e[V+O]=y[N+O]}}(o,d,m,_):function(S,A,I,k){var D=0;for(D=0;D<k;D++)y[D]=e[I+D];var L=S+A-1,R=k-1,O=I+k-1,N=0,z=0;if(e[O--]=e[L--],--A==0){for(D=0,N=O-(k-1);D<k;D++)e[N+D]=y[D];return}if(k===1){for(O-=A,L-=A,z=O+1,N=L+1,D=A-1;D>=0;D--)e[z+D]=e[N+D];e[O]=y[R];return}for(var V=f;;){var B=0,G=0,E=!1;do if(0>h(y[R],e[L])){if(e[O--]=e[L--],B++,G=0,--A==0){E=!0;break}}else if(e[O--]=y[R--],G++,B=0,--k==1){E=!0;break}while((B|G)<V);if(E)break;do{if((B=A-T(y[R],e,S,A,A-1,h))!=0){for(O-=B,L-=B,A-=B,z=O+1,N=L+1,D=B-1;D>=0;D--)e[z+D]=e[N+D];if(A===0){E=!0;break}}if(e[O--]=y[R--],--k==1){E=!0;break}if((G=k-p(e[L],y,0,k,k-1,h))!=0){for(O-=G,R-=G,k-=G,z=O+1,N=R+1,D=0;D<G;D++)e[z+D]=y[N+D];if(k<=1){E=!0;break}}if(e[O--]=e[L--],--A==0){E=!0;break}V--}while(B>=7||G>=7);if(E)break;V<0&&(V=0),V+=2}if((f=V)<1&&(f=1),k===1){for(O-=A,L-=A,z=O+1,N=L+1,D=A-1;D>=0;D--)e[z+D]=e[N+D];e[O]=y[R]}else{if(k===0)throw Error();for(D=0,N=O-(k-1);D<k;D++)e[N+D]=y[D]}}(o,d,m,_))}n=[],t=[],this.mergeRuns=function(){for(;a>1;){var c=a-2;if(c>=1&&t[c-1]<=t[c]+t[c+1]||c>=2&&t[c-2]<=t[c]+t[c-1])t[c-1]<t[c+1]&&c--;else if(t[c]>t[c+1])break;g(c)}},this.forceMergeRuns=function(){for(;a>1;){var c=a-2;c>0&&t[c-1]<t[c+1]&&c--,g(c)}},this.pushRun=function(c,o){n[a]=c,t[a]=o,a+=1}}U.exports=function(e,h,n,t){n||(n=0),t||(t=e.length);var f=t-n;if(!(f<2)){var a=0;if(f<32){a=C(e,n,t,h),b(e,n,t,n+a,h);return}var y=new w(e,h),g=function(o){for(var d=0;o>=32;)d|=1&o,o>>=1;return o+d}(f);do{if((a=C(e,n,t,h))<g){var c=f;c>g&&(c=g),b(e,n,n+c,n+a,h),a=c}y.pushRun(n,a),y.mergeRuns(),f-=a,n+=a}while(f!==0);y.forceMergeRuns()}}},23405:function(U,C){var b,p={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},T={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},w=Object.prototype.toString,e=Array.prototype,h=e.forEach,n=e.filter,t=e.slice,f=e.map,a=e.reduce,y={};function g(L){if(L==null||typeof L!="object")return L;var R=L,O=w.call(L);if(O==="[object Array]"){if(!L[k]){R=[];for(var N=0,z=L.length;N<z;N++)R[N]=g(L[N])}}else if(T[O]){if(!L[k]){var V=L.constructor;if(L.constructor.from)R=V.from(L);else{R=new V(L.length);for(var N=0,z=L.length;N<z;N++)R[N]=g(L[N])}}}else if(!p[O]&&!L[k]&&!I(L))for(var B in R={},L)L.hasOwnProperty(B)&&(R[B]=g(L[B]));return R}function c(L,R,O){if(!S(R)||!S(L))return O?g(R):L;for(var N in R)if(R.hasOwnProperty(N)){var z=L[N],V=R[N];!(S(V)&&S(z))||M(V)||M(z)||I(V)||I(z)||A(V)||A(z)||V[k]||z[k]?!O&&N in L||(L[N]=g(R[N])):c(z,V,O)}return L}function o(L,R,O){for(var N in R)R.hasOwnProperty(N)&&(O?R[N]!=null:L[N]==null)&&(L[N]=R[N]);return L}var d=function(){return y.createCanvas()};function m(L,R,O){if(L&&R)if(L.forEach&&L.forEach===h)L.forEach(R,O);else if(L.length===+L.length)for(var N=0,z=L.length;N<z;N++)R.call(O,L[N],N,L);else for(var V in L)L.hasOwnProperty(V)&&R.call(O,L[V],V,L)}function _(L,R){var O=t.call(arguments,2);return function(){return L.apply(R,O.concat(t.call(arguments)))}}function M(L){return w.call(L)==="[object Array]"}function S(L){var R=typeof L;return R==="function"||!!L&&R==="object"}function A(L){return!!p[w.call(L)]}function I(L){return typeof L=="object"&&typeof L.nodeType=="number"&&typeof L.ownerDocument=="object"}y.createCanvas=function(){return document.createElement("canvas")};var k="__ec_primitive__";function D(L){var R=M(L);this.data={};var O=this;function N(z,V){R?O.set(z,V):O.set(V,z)}L instanceof D?L.each(N):L&&m(L,N)}D.prototype={constructor:D,get:function(L){return this.data.hasOwnProperty(L)?this.data[L]:null},set:function(L,R){return this.data[L]=R},each:function(L,R){for(var O in R!==void 0&&(L=_(L,R)),this.data)this.data.hasOwnProperty(O)&&L(this.data[O],O)},removeKey:function(L){delete this.data[L]}},C.$override=function(L,R){L==="createCanvas"&&(b=null),y[L]=R},C.clone=g,C.merge=c,C.mergeAll=function(L,R){for(var O=L[0],N=1,z=L.length;N<z;N++)O=c(O,L[N],R);return O},C.extend=function(L,R){for(var O in R)R.hasOwnProperty(O)&&(L[O]=R[O]);return L},C.defaults=o,C.createCanvas=d,C.getContext=function(){return b||(b=d().getContext("2d")),b},C.indexOf=function(L,R){if(L){if(L.indexOf)return L.indexOf(R);for(var O=0,N=L.length;O<N;O++)if(L[O]===R)return O}return-1},C.inherits=function(L,R){var O=L.prototype;function N(){}for(var z in N.prototype=R.prototype,L.prototype=new N,O)L.prototype[z]=O[z];L.prototype.constructor=L,L.superClass=R},C.mixin=function(L,R,O){o(L="prototype"in L?L.prototype:L,R="prototype"in R?R.prototype:R,O)},C.isArrayLike=function(L){if(L)return typeof L!="string"&&typeof L.length=="number"},C.each=m,C.map=function(L,R,O){if(L&&R){if(L.map&&L.map===f)return L.map(R,O);for(var N=[],z=0,V=L.length;z<V;z++)N.push(R.call(O,L[z],z,L));return N}},C.reduce=function(L,R,O,N){if(L&&R){if(L.reduce&&L.reduce===a)return L.reduce(R,O,N);for(var z=0,V=L.length;z<V;z++)O=R.call(N,O,L[z],z,L);return O}},C.filter=function(L,R,O){if(L&&R){if(L.filter&&L.filter===n)return L.filter(R,O);for(var N=[],z=0,V=L.length;z<V;z++)R.call(O,L[z],z,L)&&N.push(L[z]);return N}},C.find=function(L,R,O){if(L&&R){for(var N=0,z=L.length;N<z;N++)if(R.call(O,L[N],N,L))return L[N]}},C.bind=_,C.curry=function(L){var R=t.call(arguments,1);return function(){return L.apply(this,R.concat(t.call(arguments)))}},C.isArray=M,C.isFunction=function(L){return typeof L=="function"},C.isString=function(L){return w.call(L)==="[object String]"},C.isObject=S,C.isBuiltInObject=A,C.isTypedArray=function(L){return!!T[w.call(L)]},C.isDom=I,C.eqNaN=function(L){return L!=L},C.retrieve=function(L){for(var R=0,O=arguments.length;R<O;R++)if(arguments[R]!=null)return arguments[R]},C.retrieve2=function(L,R){return L??R},C.retrieve3=function(L,R,O){return L??R??O},C.slice=function(){return Function.call.apply(t,arguments)},C.normalizeCssArray=function(L){if(typeof L=="number")return[L,L,L,L];var R=L.length;return R===2?[L[0],L[1],L[0],L[1]]:R===3?[L[0],L[1],L[2],L[1]]:L},C.assert=function(L,R){if(!L)throw Error(R)},C.trim=function(L){return L==null?null:typeof L.trim=="function"?L.trim():L.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},C.setAsPrimitive=function(L){L[k]=!0},C.isPrimitive=function(L){return L[k]},C.createHashMap=function(L){return new D(L)},C.concatArray=function(L,R){for(var O=new L.constructor(L.length+R.length),N=0;N<L.length;N++)O[N]=L[N];var z=L.length;for(N=0;N<R.length;N++)O[N+z]=R[N];return O},C.noop=function(){}},76414:function(U,C){var b=typeof Float32Array>"u"?Array:Float32Array;function p(h){return Math.sqrt(T(h))}function T(h){return h[0]*h[0]+h[1]*h[1]}function w(h,n){return Math.sqrt((h[0]-n[0])*(h[0]-n[0])+(h[1]-n[1])*(h[1]-n[1]))}function e(h,n){return(h[0]-n[0])*(h[0]-n[0])+(h[1]-n[1])*(h[1]-n[1])}C.create=function(h,n){var t=new b(2);return h==null&&(h=0),n==null&&(n=0),t[0]=h,t[1]=n,t},C.copy=function(h,n){return h[0]=n[0],h[1]=n[1],h},C.clone=function(h){var n=new b(2);return n[0]=h[0],n[1]=h[1],n},C.set=function(h,n,t){return h[0]=n,h[1]=t,h},C.add=function(h,n,t){return h[0]=n[0]+t[0],h[1]=n[1]+t[1],h},C.scaleAndAdd=function(h,n,t,f){return h[0]=n[0]+t[0]*f,h[1]=n[1]+t[1]*f,h},C.sub=function(h,n,t){return h[0]=n[0]-t[0],h[1]=n[1]-t[1],h},C.len=p,C.length=p,C.lenSquare=T,C.lengthSquare=T,C.mul=function(h,n,t){return h[0]=n[0]*t[0],h[1]=n[1]*t[1],h},C.div=function(h,n,t){return h[0]=n[0]/t[0],h[1]=n[1]/t[1],h},C.dot=function(h,n){return h[0]*n[0]+h[1]*n[1]},C.scale=function(h,n,t){return h[0]=n[0]*t,h[1]=n[1]*t,h},C.normalize=function(h,n){var t=p(n);return t===0?(h[0]=0,h[1]=0):(h[0]=n[0]/t,h[1]=n[1]/t),h},C.distance=w,C.dist=w,C.distanceSquare=e,C.distSquare=e,C.negate=function(h,n){return h[0]=-n[0],h[1]=-n[1],h},C.lerp=function(h,n,t,f){return h[0]=n[0]+f*(t[0]-n[0]),h[1]=n[1]+f*(t[1]-n[1]),h},C.applyTransform=function(h,n,t){var f=n[0],a=n[1];return h[0]=t[0]*f+t[2]*a+t[4],h[1]=t[1]*f+t[3]*a+t[5],h},C.min=function(h,n,t){return h[0]=Math.min(n[0],t[0]),h[1]=Math.min(n[1],t[1]),h},C.max=function(h,n,t){return h[0]=Math.max(n[0],t[0]),h[1]=Math.max(n[1],t[1]),h}},67313:function(U,C,b){var p=b(46427),T=p.addEventListener,w=p.removeEventListener,e=p.normalizeEvent,h=b(23405),n=b(62271),t=b(23584),f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],a=["touchstart","touchend","touchmove"],y={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},g=h.map(f,function(S){var A=S.replace("mouse","pointer");return y[A]?A:S});function c(S){return S==="mousewheel"&&t.browser.firefox?"DOMMouseScroll":S}function o(S){S._touching=!0,clearTimeout(S._touchTimer),S._touchTimer=setTimeout(function(){S._touching=!1},700)}var d={mousemove:function(S){S=e(this.dom,S),this.trigger("mousemove",S)},mouseout:function(S){var A=(S=e(this.dom,S)).toElement||S.relatedTarget;if(A!==this.dom)for(;A&&A.nodeType!==9;){if(A===this.dom)return;A=A.parentNode}this.trigger("mouseout",S)},touchstart:function(S){(S=e(this.dom,S)).zrByTouch=!0,this._lastTouchMoment=new Date,this.handler.processGesture(this,S,"start"),d.mousemove.call(this,S),d.mousedown.call(this,S),o(this)},touchmove:function(S){(S=e(this.dom,S)).zrByTouch=!0,this.handler.processGesture(this,S,"change"),d.mousemove.call(this,S),o(this)},touchend:function(S){(S=e(this.dom,S)).zrByTouch=!0,this.handler.processGesture(this,S,"end"),d.mouseup.call(this,S),+new Date-this._lastTouchMoment<300&&d.click.call(this,S),o(this)},pointerdown:function(S){d.mousedown.call(this,S)},pointermove:function(S){m(S)||d.mousemove.call(this,S)},pointerup:function(S){d.mouseup.call(this,S)},pointerout:function(S){m(S)||d.mouseout.call(this,S)}};function m(S){var A=S.pointerType;return A==="pen"||A==="touch"}function _(S){var A;function I(k,D){h.each(k,function(L){T(S,c(L),D._handlers[L])},D)}n.call(this),this.dom=S,this._touching=!1,this._touchTimer,this._handlers={},A=this,h.each(a,function(k){A._handlers[k]=h.bind(d[k],A)}),h.each(g,function(k){A._handlers[k]=h.bind(d[k],A)}),h.each(f,function(k){var D,L;A._handlers[k]=(D=d[k],L=A,function(){if(!L._touching)return D.apply(L,arguments)})}),t.pointerEventsSupported?I(g,this):(t.touchEventsSupported&&I(a,this),I(f,this))}h.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(S){d[S]=function(A){A=e(this.dom,A),this.trigger(S,A)}});var M=_.prototype;M.dispose=function(){for(var S=f.concat(a),A=0;A<S.length;A++){var I=S[A];w(this.dom,c(I),this._handlers[I])}},M.setCursor=function(S){this.dom.style&&(this.dom.style.cursor=S||"default")},h.mixin(_,n),U.exports=_},96113:function(U,C,b){var p=b(74582);U.exports=p.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var T=this.__dirtyPath,w=this.shape.paths,e=0;e<w.length;e++)T=T||w[e].__dirtyPath;this.__dirtyPath=T,this.__dirty=this.__dirty||T},beforeBrush:function(){this._updatePathDirty();for(var T=this.shape.paths||[],w=this.getGlobalScale(),e=0;e<T.length;e++)T[e].path||T[e].createPathProxy(),T[e].path.setScale(w[0],w[1])},buildPath:function(T,w){for(var e=w.paths||[],h=0;h<e.length;h++)e[h].buildPath(T,e[h].shape,!0)},afterBrush:function(){for(var T=this.shape.paths||[],w=0;w<T.length;w++)T[w].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),p.prototype.getBoundingRect.call(this)}})},49181:function(U,C,b){var p=b(23405),T=b(7609),w=b(40498),e=b(12094);function h(n){for(var t in n=n||{},w.call(this,n),n)n.hasOwnProperty(t)&&t!=="style"&&(this[t]=n[t]);this.style=new T(n.style,this),this._rect=null,this.__clipPaths=[]}h.prototype={constructor:h,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(n){},afterBrush:function(n){},brush:function(n,t){},getBoundingRect:function(){},contain:function(n,t){return this.rectContain(n,t)},traverse:function(n,t){n.call(t,this)},rectContain:function(n,t){var f=this.transformCoordToLocal(n,t);return this.getBoundingRect().contain(f[0],f[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(n){return this.animate("style",n)},attrKV:function(n,t){n!=="style"?w.prototype.attrKV.call(this,n,t):this.style.set(t)},setStyle:function(n,t){return this.style.set(n,t),this.dirty(!1),this},useStyle:function(n){return this.style=new T(n,this),this.dirty(!1),this}},p.inherits(h,w),p.mixin(h,e),U.exports=h},97722:function(U){var C=function(b){this.colorStops=b||[]};C.prototype={constructor:C,addColorStop:function(b,p){this.colorStops.push({offset:b,color:p})}},U.exports=C},91222:function(U,C,b){var p=b(49181),T=b(28761),w=b(23405),e=b(35337);function h(n){p.call(this,n)}h.prototype={constructor:h,type:"image",brush:function(n,t){var f=this.style,a=f.image;f.bind(n,this,t);var y=this._image=e.createOrUpdateImage(a,this._image,this,this.onload);if(y&&e.isImageReady(y)){var g=f.x||0,c=f.y||0,o=f.width,d=f.height,m=y.width/y.height;if(o==null&&d!=null?o=d*m:d==null&&o!=null?d=o/m:o==null&&d==null&&(o=y.width,d=y.height),this.setTransform(n),f.sWidth&&f.sHeight){var _=f.sx||0,M=f.sy||0;n.drawImage(y,_,M,f.sWidth,f.sHeight,g,c,o,d)}else if(f.sx&&f.sy){var _=f.sx,M=f.sy,S=o-_,A=d-M;n.drawImage(y,_,M,S,A,g,c,o,d)}else n.drawImage(y,g,c,o,d);f.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))}},getBoundingRect:function(){var n=this.style;return this._rect||(this._rect=new T(n.x||0,n.y||0,n.width||0,n.height||0)),this._rect}},w.inherits(h,p),U.exports=h},95028:function(U,C,b){var p=b(23405).inherits,T=b(49181),w=b(28761);function e(n){T.call(this,n),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}e.prototype.incremental=!0,e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},e.prototype.addDisplayable=function(n,t){t?this._temporaryDisplayables.push(n):this._displayables.push(n),this.dirty()},e.prototype.addDisplayables=function(n,t){t=t||!1;for(var f=0;f<n.length;f++)this.addDisplayable(n[f],t)},e.prototype.eachPendingDisplayable=function(n){for(var t=this._cursor;t<this._displayables.length;t++)n&&n(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)n&&n(this._temporaryDisplayables[t])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var t=this._displayables[n];t.parent=this,t.update(),t.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var t=this._temporaryDisplayables[n];t.parent=this,t.update(),t.parent=null}},e.prototype.brush=function(n,t){for(var f=this._cursor;f<this._displayables.length;f++){var a=this._displayables[f];a.beforeBrush&&a.beforeBrush(n),a.brush(n,f===this._cursor?null:this._displayables[f-1]),a.afterBrush&&a.afterBrush(n)}this._cursor=f;for(var f=0;f<this._temporaryDisplayables.length;f++){var a=this._temporaryDisplayables[f];a.beforeBrush&&a.beforeBrush(n),a.brush(n,f===0?null:this._temporaryDisplayables[f-1]),a.afterBrush&&a.afterBrush(n)}this._temporaryDisplayables=[],this.notClear=!0};var h=[];e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new w(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var f=this._displayables[t],a=f.getBoundingRect().clone();f.needLocalTransform()&&a.applyTransform(f.getLocalTransform(h)),n.union(a)}this._rect=n}return this._rect},e.prototype.contain=function(n,t){var f=this.transformCoordToLocal(n,t);if(this.getBoundingRect().contain(f[0],f[1])){for(var a=0;a<this._displayables.length;a++)if(this._displayables[a].contain(n,t))return!0}return!1},p(e,T),U.exports=e},67725:function(U,C,b){var p=b(23405),T=b(97722),w=function(e,h,n,t,f,a){this.x=e??0,this.y=h??0,this.x2=n??1,this.y2=t??0,this.type="linear",this.global=a||!1,T.call(this,f)};w.prototype={constructor:w},p.inherits(w,T),U.exports=w},74582:function(U,C,b){var p=b(49181),T=b(23405),w=b(93041),e=b(47258),h=b(37067).prototype.getCanvasPattern,n=Math.abs,t=new w(!0);function f(a){p.call(this,a),this.path=null}f.prototype={constructor:f,type:"path",__dirtyPath:!0,strokeContainThreshold:5,subPixelOptimize:!1,brush:function(a,y){var g,c=this.style,o=this.path||t,d=c.hasStroke(),m=c.hasFill(),_=c.fill,M=c.stroke,S=m&&!!_.colorStops,A=d&&!!M.colorStops,I=m&&!!_.image,k=d&&!!M.image;c.bind(a,this,y),this.setTransform(a),this.__dirty&&(S&&(g=g||this.getBoundingRect(),this._fillGradient=c.getGradient(a,_,g)),A&&(g=g||this.getBoundingRect(),this._strokeGradient=c.getGradient(a,M,g))),S?a.fillStyle=this._fillGradient:I&&(a.fillStyle=h.call(_,a)),A?a.strokeStyle=this._strokeGradient:k&&(a.strokeStyle=h.call(M,a));var D=c.lineDash,L=c.lineDashOffset,R=!!a.setLineDash,O=this.getGlobalScale();if(o.setScale(O[0],O[1]),this.__dirtyPath||D&&!R&&d?(o.beginPath(a),D&&!R&&(o.setLineDash(D),o.setLineDashOffset(L)),this.buildPath(o,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),m)if(c.fillOpacity!=null){var N=a.globalAlpha;a.globalAlpha=c.fillOpacity*c.opacity,o.fill(a),a.globalAlpha=N}else o.fill(a);if(D&&R&&(a.setLineDash(D),a.lineDashOffset=L),d)if(c.strokeOpacity!=null){var N=a.globalAlpha;a.globalAlpha=c.strokeOpacity*c.opacity,o.stroke(a),a.globalAlpha=N}else o.stroke(a);D&&R&&a.setLineDash([]),c.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,y,g){},createPathProxy:function(){this.path=new w},getBoundingRect:function(){var a=this._rect,y=this.style,g=!a;if(g){var c=this.path;c||(c=this.path=new w),this.__dirtyPath&&(c.beginPath(),this.buildPath(c,this.shape,!1)),a=c.getBoundingRect()}if(this._rect=a,y.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||g){o.copy(a);var d=y.lineWidth,m=y.strokeNoScale?this.getLineScale():1;y.hasFill()||(d=Math.max(d,this.strokeContainThreshold||4)),m>1e-10&&(o.width+=d/m,o.height+=d/m,o.x-=d/m/2,o.y-=d/m/2)}return o}return a},contain:function(a,y){var g=this.transformCoordToLocal(a,y),c=this.getBoundingRect(),o=this.style;if(a=g[0],y=g[1],c.contain(a,y)){var d=this.path.data;if(o.hasStroke()){var m=o.lineWidth,_=o.strokeNoScale?this.getLineScale():1;if(_>1e-10&&(o.hasFill()||(m=Math.max(m,this.strokeContainThreshold)),e.containStroke(d,m/_,a,y)))return!0}if(o.hasFill())return e.contain(d,a,y)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,y){a==="shape"?(this.setShape(y),this.__dirtyPath=!0,this._rect=null):p.prototype.attrKV.call(this,a,y)},setShape:function(a,y){var g=this.shape;if(g){if(T.isObject(a))for(var c in a)a.hasOwnProperty(c)&&(g[c]=a[c]);else g[a]=y;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&n(a[0]-1)>1e-10&&n(a[3]-1)>1e-10?Math.sqrt(n(a[0]*a[3]-a[2]*a[1])):1}},f.extend=function(a){var y=function(c){f.call(this,c),a.style&&this.style.extendFrom(a.style,!1);var o=a.shape;if(o){this.shape=this.shape||{};var d=this.shape;for(var m in o)!d.hasOwnProperty(m)&&o.hasOwnProperty(m)&&(d[m]=o[m])}a.init&&a.init.call(this,c)};for(var g in T.inherits(y,f),a)g!=="style"&&g!=="shape"&&(y.prototype[g]=a[g]);return y},T.inherits(f,p),U.exports=f},37067:function(U){var C=function(b,p){this.image=b,this.repeat=p,this.type="pattern"};C.prototype.getCanvasPattern=function(b){return b.createPattern(this.image,this.repeat||"repeat")},U.exports=C},76636:function(U,C,b){var p=b(23405),T=b(97722),w=function(e,h,n,t,f){this.x=e??.5,this.y=h??.5,this.r=n??.5,this.type="radial",this.global=f||!1,T.call(this,t)};w.prototype={constructor:w},p.inherits(w,T),U.exports=w},7609:function(U,C,b){var p=b(6821),T=b(32115).ContextCachedBy,w=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],e=function(f){this.extendFrom(f,!1)};e.prototype={constructor:e,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(f,a,y){var g=y&&y.style,c=!g||f.__attrCachedBy!==T.STYLE_BIND;f.__attrCachedBy=T.STYLE_BIND;for(var o=0;o<w.length;o++){var d=w[o],m=d[0];(c||this[m]!==g[m])&&(f[m]=p(f,m,this[m]||d[1]))}(c||this.fill!==g.fill)&&(f.fillStyle=this.fill),(c||this.stroke!==g.stroke)&&(f.strokeStyle=this.stroke),(c||this.opacity!==g.opacity)&&(f.globalAlpha=this.opacity==null?1:this.opacity),(c||this.blend!==g.blend)&&(f.globalCompositeOperation=this.blend||"source-over"),this.hasStroke()&&(f.lineWidth=this.lineWidth/(this.strokeNoScale&&a&&a.getLineScale?a.getLineScale():1))},hasFill:function(){var f=this.fill;return f!=null&&f!=="none"},hasStroke:function(){var f=this.stroke;return f!=null&&f!=="none"&&this.lineWidth>0},extendFrom:function(f,a){if(f)for(var y in f)f.hasOwnProperty(y)&&(a===!0||(a===!1?!this.hasOwnProperty(y):f[y]!=null))&&(this[y]=f[y])},set:function(f,a){typeof f=="string"?this[f]=a:this.extendFrom(f,!0)},clone:function(){var f=new this.constructor;return f.extendFrom(this,!0),f},getGradient:function(f,a,y){for(var g=(a.type==="radial"?function(d,m,_){var M=_.width,S=_.height,A=Math.min(M,S),I=m.x==null?.5:m.x,k=m.y==null?.5:m.y,D=m.r==null?.5:m.r;return m.global||(I=I*M+_.x,k=k*S+_.y,D*=A),d.createRadialGradient(I,k,0,I,k,D)}:function(d,m,_){var M=m.x==null?0:m.x,S=m.x2==null?1:m.x2,A=m.y==null?0:m.y,I=m.y2==null?0:m.y2;return m.global||(M=M*_.width+_.x,S=S*_.width+_.x,A=A*_.height+_.y,I=I*_.height+_.y),M=isNaN(M)?0:M,S=isNaN(S)?1:S,A=isNaN(A)?0:A,I=isNaN(I)?0:I,d.createLinearGradient(M,A,S,I)})(f,a,y),c=a.colorStops,o=0;o<c.length;o++)g.addColorStop(c[o].offset,c[o].color);return g}};for(var h=e.prototype,n=0;n<w.length;n++){var t=w[n];t[0]in h||(h[t[0]]=t[1])}e.getGradient=h.getGradient,U.exports=e},96296:function(U,C,b){var p=b(49181),T=b(23405),w=b(24570),e=b(69824),h=b(32115).ContextCachedBy,n=function(t){p.call(this,t)};n.prototype={constructor:n,type:"text",brush:function(t,f){var a=this.style;this.__dirty&&e.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var y=a.text;if(y!=null&&(y+=""),!e.needDrawText(y,a)){t.__attrCachedBy=h.NONE;return}this.setTransform(t),e.renderText(this,t,y,a,null,f),this.restoreTransform(t)},getBoundingRect:function(){var t=this.style;if(this.__dirty&&e.normalizeTextStyle(t,!0),!this._rect){t.text;var f=w.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(f.x+=t.x||0,f.y+=t.y||0,e.getStroke(t.textStroke,t.textStrokeWidth)){var a=t.textStrokeWidth;f.x-=a/2,f.y-=a/2,f.width+=a,f.height+=a}this._rect=f}return this._rect}},T.inherits(n,p),U.exports=n},32115:function(U,C){C.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},C.WILL_BE_RESTORED=9},24280:function(U,C,b){var p=b(23584),T=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];U.exports=function(w){return p.browser.ie&&p.browser.version>=11?function(){var e,h=this.__clipPaths,n=this.style;if(h)for(var t=0;t<h.length;t++){var f=h[t],a=f&&f.shape,y=f&&f.type;if(a&&(y==="sector"&&a.startAngle===a.endAngle||y==="rect"&&(!a.width||!a.height))){for(var g=0;g<T.length;g++)T[g][2]=n[T[g][0]],n[T[g][0]]=T[g][1];e=!0;break}}if(w.apply(this,arguments),e)for(var g=0;g<T.length;g++)n[T[g][0]]=T[g][2]}:w}},6821:function(U){var C={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};U.exports=function(b,p,T){return C.hasOwnProperty(p)?T*b.dpr:T}},35337:function(U,C,b){var p=new(b(26853))(50);function T(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var h=0;h<e.pending.length;h++){var n=e.pending[h],t=n.cb;t&&t(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function w(e){return e&&e.width&&e.height}C.findExistImage=function(e){if(typeof e!="string")return e;var h=p.get(e);return h&&h.image},C.createOrUpdateImage=function(e,h,n,t,f){if(!e)return h;if(typeof e!="string")return e;if(h&&h.__zrImageSrc===e||!n)return h;var a=p.get(e),y={hostEl:n,cb:t,cbPayload:f};return a?w(h=a.image)||a.pending.push(y):((h=new Image).onload=h.onerror=T,p.put(e,h.__cachedImgObj={image:h,pending:[y]}),h.src=h.__zrImageSrc=e),h},C.isImageReady=w},42920:function(U,C,b){var p=b(40978),T=b(1956);C.buildPath=function(w,e,h){var n=e.points,t=e.smooth;if(n&&n.length>=2){if(t&&t!=="spline"){var f=T(n,t,h,e.smoothConstraint);w.moveTo(n[0][0],n[0][1]);for(var a=n.length,y=0;y<(h?a:a-1);y++){var g=f[2*y],c=f[2*y+1],o=n[(y+1)%a];w.bezierCurveTo(g[0],g[1],c[0],c[1],o[0],o[1])}}else{t==="spline"&&(n=p(n,h)),w.moveTo(n[0][0],n[0][1]);for(var y=1,d=n.length;y<d;y++)w.lineTo(n[y][0],n[y][1])}h&&w.closePath()}}},24142:function(U,C){C.buildPath=function(b,p){var T,w,e,h,n,t=p.x,f=p.y,a=p.width,y=p.height,g=p.r;a<0&&(t+=a,a=-a),y<0&&(f+=y,y=-y),typeof g=="number"?T=w=e=h=g:g instanceof Array?g.length===1?T=w=e=h=g[0]:g.length===2?(T=e=g[0],w=h=g[1]):g.length===3?(T=g[0],w=h=g[1],e=g[2]):(T=g[0],w=g[1],e=g[2],h=g[3]):T=w=e=h=0,T+w>a&&(n=T+w,T*=a/n,w*=a/n),e+h>a&&(n=e+h,e*=a/n,h*=a/n),w+e>y&&(n=w+e,w*=y/n,e*=y/n),T+h>y&&(n=T+h,T*=y/n,h*=y/n),b.moveTo(t+T,f),b.lineTo(t+a-w,f),w!==0&&b.arc(t+a-w,f+w,w,-Math.PI/2,0),b.lineTo(t+a,f+y-e),e!==0&&b.arc(t+a-e,f+y-e,e,0,Math.PI/2),b.lineTo(t+h,f+y),h!==0&&b.arc(t+h,f+y-h,h,Math.PI/2,Math.PI),b.lineTo(t,f+T),T!==0&&b.arc(t+T,f+T,T,Math.PI,1.5*Math.PI)}},1956:function(U,C,b){var p=b(76414),T=p.min,w=p.max,e=p.scale,h=p.distance,n=p.add,t=p.clone,f=p.sub;U.exports=function(a,y,g,c){var o,d,m,_,M=[],S=[],A=[],I=[];if(c){m=[1/0,1/0],_=[-1/0,-1/0];for(var k=0,D=a.length;k<D;k++)T(m,m,a[k]),w(_,_,a[k]);T(m,m,c[0]),w(_,_,c[1])}for(var k=0,D=a.length;k<D;k++){var L=a[k];if(g)o=a[k?k-1:D-1],d=a[(k+1)%D];else if(k===0||k===D-1){M.push(t(a[k]));continue}else o=a[k-1],d=a[k+1];f(S,d,o),e(S,S,y);var R=h(L,o),O=h(L,d),N=R+O;N!==0&&(R/=N,O/=N),e(A,S,-R),e(I,S,O);var z=n([],L,A),V=n([],L,I);c&&(w(z,z,m),T(z,z,_),w(V,V,m),T(V,V,_)),M.push(z),M.push(V)}return g&&M.push(M.shift()),M}},40978:function(U,C,b){var p=b(76414).distance;function T(w,e,h,n,t,f,a){var y=(h-w)*.5,g=(n-e)*.5;return(2*(e-h)+y+g)*a+(-3*(e-h)-2*y-g)*f+y*t+e}U.exports=function(w,e){for(var h=w.length,n=[],t=0,f=1;f<h;f++)t+=p(w[f-1],w[f]);var a=t/2;a=a<h?h:a;for(var f=0;f<a;f++){var y,g,c,o=f/(a-1)*(e?h:h-1),d=Math.floor(o),m=o-d,_=w[d%h];e?(y=w[(d-1+h)%h],g=w[(d+1)%h],c=w[(d+2)%h]):(y=w[d===0?d:d-1],g=w[d>h-2?h-1:d+1],c=w[d>h-3?h-1:d+2]);var M=m*m,S=m*M;n.push([T(y[0],_[0],g[0],c[0],m,M,S),T(y[1],_[1],g[1],c[1],m,M,S)])}return n}},8827:function(U,C){var b=Math.round;function p(T,w,e){var h=b(2*T);return(h+b(w))%2==0?h/2:(h+(e?1:-1))/2}C.subPixelOptimizeLine=function(T,w,e){var h=e&&e.lineWidth;if(w&&h){var n=w.x1,t=w.x2,f=w.y1,a=w.y2;b(2*n)===b(2*t)?T.x1=T.x2=p(n,h,!0):(T.x1=n,T.x2=t),b(2*f)===b(2*a)?T.y1=T.y2=p(f,h,!0):(T.y1=f,T.y2=a)}},C.subPixelOptimizeRect=function(T,w,e){var h=e&&e.lineWidth;if(w&&h){var n=w.x,t=w.y,f=w.width,a=w.height;T.x=p(n,h,!0),T.y=p(t,h,!0),T.width=Math.max(p(n+f,h,!1)-T.x,+(f!==0)),T.height=Math.max(p(t+a,h,!1)-T.y,+(a!==0))}},C.subPixelOptimize=p},69824:function(U,C,b){var p=b(23405),T=p.retrieve2,w=p.retrieve3,e=p.each,h=p.normalizeCssArray,n=p.isString,t=p.isObject,f=b(24570),a=b(24142),y=b(35337),g=b(6821),c=b(32115),o=c.ContextCachedBy,d=c.WILL_BE_RESTORED,m=f.DEFAULT_FONT,_={left:1,right:1,center:1},M={top:1,bottom:1,middle:1},S=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]];function A(E){if(E){E.font=f.makeFont(E);var H=E.textAlign;H==="middle"&&(H="center"),E.textAlign=H==null||_[H]?H:"left";var W=E.textVerticalAlign||E.textBaseline;W==="center"&&(W="middle"),E.textVerticalAlign=W==null||M[W]?W:"top",E.textPadding&&(E.textPadding=h(E.textPadding))}}function I(E,H,W,$,Z){if(W&&H.textRotation){var Q=H.textOrigin;Q==="center"?($=W.width/2+W.x,Z=W.height/2+W.y):Q&&($=Q[0]+W.x,Z=Q[1]+W.y),E.translate($,Z),E.rotate(-H.textRotation),E.translate(-$,-Z)}}function k(E,H,W,$,Z,Q,Y,K){var ne=$.rich[W.styleName]||{};ne.text=W.text;var X=W.textVerticalAlign,ee=Q+Z/2;X==="top"?ee=Q+W.height/2:X==="bottom"&&(ee=Q+Z-W.height/2),!W.isLineHolder&&D(ne)&&L(E,H,ne,K==="right"?Y-W.width:K==="center"?Y-W.width/2:Y,ee-W.height/2,W.width,W.height);var ae=W.textPadding;ae&&(Y=G(Y,K,ae),ee-=W.height/2-ae[2]-W.textHeight/2),N(H,"shadowBlur",w(ne.textShadowBlur,$.textShadowBlur,0)),N(H,"shadowColor",ne.textShadowColor||$.textShadowColor||"transparent"),N(H,"shadowOffsetX",w(ne.textShadowOffsetX,$.textShadowOffsetX,0)),N(H,"shadowOffsetY",w(ne.textShadowOffsetY,$.textShadowOffsetY,0)),N(H,"textAlign",K),N(H,"textBaseline","middle"),N(H,"font",W.font||m);var oe=z(ne.textStroke||$.textStroke,ge),se=V(ne.textFill||$.textFill),ge=T(ne.textStrokeWidth,$.textStrokeWidth);oe&&(N(H,"lineWidth",ge),N(H,"strokeStyle",oe),H.strokeText(W.text,Y,ee)),se&&(N(H,"fillStyle",se),H.fillText(W.text,Y,ee))}function D(E){return!!(E.textBackgroundColor||E.textBorderWidth&&E.textBorderColor)}function L(E,H,W,$,Z,Q,Y){var K=W.textBackgroundColor,ne=W.textBorderWidth,X=W.textBorderColor,ee=n(K);if(N(H,"shadowBlur",W.textBoxShadowBlur||0),N(H,"shadowColor",W.textBoxShadowColor||"transparent"),N(H,"shadowOffsetX",W.textBoxShadowOffsetX||0),N(H,"shadowOffsetY",W.textBoxShadowOffsetY||0),ee||ne&&X){H.beginPath();var ae=W.textBorderRadius;ae?a.buildPath(H,{x:$,y:Z,width:Q,height:Y,r:ae}):H.rect($,Z,Q,Y),H.closePath()}if(ee)if(N(H,"fillStyle",K),W.fillOpacity!=null){var oe=H.globalAlpha;H.globalAlpha=W.fillOpacity*W.opacity,H.fill(),H.globalAlpha=oe}else H.fill();else if(t(K)){var se=K.image;(se=y.createOrUpdateImage(se,null,E,R,K))&&y.isImageReady(se)&&H.drawImage(se,$,Z,Q,Y)}if(ne&&X)if(N(H,"lineWidth",ne),N(H,"strokeStyle",X),W.strokeOpacity!=null){var oe=H.globalAlpha;H.globalAlpha=W.strokeOpacity*W.opacity,H.stroke(),H.globalAlpha=oe}else H.stroke()}function R(E,H){H.image=E}function O(E,H,W){var $=H.x||0,Z=H.y||0,Q=H.textAlign,Y=H.textVerticalAlign;if(W){var K=H.textPosition;if(K instanceof Array)$=W.x+B(K[0],W.width),Z=W.y+B(K[1],W.height);else{var ne=f.adjustTextPositionOnRect(K,W,H.textDistance);$=ne.x,Z=ne.y,Q=Q||ne.textAlign,Y=Y||ne.textVerticalAlign}var X=H.textOffset;X&&($+=X[0],Z+=X[1])}return{baseX:$,baseY:Z,textAlign:Q,textVerticalAlign:Y}}function N(E,H,W){return E[H]=g(E,H,W),E[H]}function z(E,H){return E==null||H<=0||E==="transparent"||E==="none"?null:E.image||E.colorStops?"#000":E}function V(E){return E==null||E==="none"?null:E.image||E.colorStops?"#000":E}function B(E,H){return typeof E=="string"?E.lastIndexOf("%")>=0?parseFloat(E)/100*H:parseFloat(E):E}function G(E,H,W){return H==="right"?E-W[1]:H==="center"?E+W[3]/2-W[1]/2:E+W[3]}C.normalizeTextStyle=function(E){return A(E),e(E.rich,A),E},C.renderText=function(E,H,W,$,Z,Q){var Y,K,ne,X,ee,ae;$.rich?(Y=E,K=H,ne=W,X=$,ee=Z,Q!==d&&(K.__attrCachedBy=o.NONE),(ae=Y.__textCotentBlock)&&!Y.__dirtyText||(ae=Y.__textCotentBlock=f.parseRichText(ne,X)),function(oe,se,ge,fe,le){var ue=ge.width,he=ge.outerWidth,pe=ge.outerHeight,ye=fe.textPadding,ve=O(pe,fe,le),Ae=ve.baseX,_e=ve.baseY,Pe=ve.textAlign,Oe=ve.textVerticalAlign;I(se,fe,le,Ae,_e);var ke=f.adjustTextX(Ae,he,Pe),De=f.adjustTextY(_e,pe,Oe),Ce=ke,Le=De;ye&&(Ce+=ye[3],Le+=ye[0]);var Ve=Ce+ue;D(fe)&&L(oe,se,fe,ke,De,he,pe);for(var Ge=0;Ge<ge.lines.length;Ge++){for(var Je,rt=ge.lines[Ge],it=rt.tokens,mt=it.length,ct=rt.lineHeight,et=rt.width,Ke=0,ft=Ce,at=Ve,nt=mt-1;Ke<mt&&(!(Je=it[Ke]).textAlign||Je.textAlign==="left");)k(oe,se,Je,fe,ct,Le,ft,"left"),et-=Je.width,ft+=Je.width,Ke++;for(;nt>=0&&(Je=it[nt]).textAlign==="right";)k(oe,se,Je,fe,ct,Le,at,"right"),et-=Je.width,at-=Je.width,nt--;for(ft+=(ue-(ft-Ce)-(Ve-at)-et)/2;Ke<=nt;)k(oe,se,Je=it[Ke],fe,ct,Le,ft+Je.width/2,"center"),ft+=Je.width,Ke++;Le+=ct}}(Y,K,ae,X,ee)):function(oe,se,ge,fe,le,ue){var he,pe=D(fe),ye=!1,ve=se.__attrCachedBy===o.PLAIN_TEXT;ue!==d?(ue&&(he=ue.style,ye=!pe&&ve&&he),se.__attrCachedBy=pe?o.NONE:o.PLAIN_TEXT):ve&&(se.__attrCachedBy=o.NONE);var Ae=fe.font||m;ye&&Ae===(he.font||m)||(se.font=Ae);var _e=oe.__computedFont;oe.__styleFont!==Ae&&(oe.__styleFont=Ae,_e=oe.__computedFont=se.font);var Pe=fe.textPadding,Oe=fe.textLineHeight,ke=oe.__textCotentBlock;(!ke||oe.__dirtyText)&&(ke=oe.__textCotentBlock=f.parsePlainText(ge,_e,Pe,Oe,fe.truncate));var De=ke.outerHeight,Ce=ke.lines,Le=ke.lineHeight,Ve=O(De,fe,le),Ge=Ve.baseX,Je=Ve.baseY,rt=Ve.textAlign||"left",it=Ve.textVerticalAlign;I(se,fe,le,Ge,Je);var mt=f.adjustTextY(Je,De,it),ct=Ge,et=mt;if(pe||Pe){var Ke=f.getWidth(ge,_e);Pe&&(Ke+=Pe[1]+Pe[3]);var ft=f.adjustTextX(Ge,Ke,rt);pe&&L(oe,se,fe,ft,mt,Ke,De),Pe&&(ct=G(Ge,rt,Pe),et+=Pe[0])}se.textAlign=rt,se.textBaseline="middle",se.globalAlpha=fe.opacity||1;for(var at=0;at<S.length;at++){var nt=S[at],yt=nt[0],dt=nt[1],bt=fe[yt];ye&&bt===he[yt]||(se[dt]=g(se,dt,bt||nt[2]))}et+=Le/2;var vt=fe.textStrokeWidth,me=ye?he.textStrokeWidth:null,Ie=!ye||vt!==me,Ee=!ye||Ie||fe.textStroke!==he.textStroke,je=z(fe.textStroke,vt),ze=V(fe.textFill);if(je&&(Ie&&(se.lineWidth=vt),Ee&&(se.strokeStyle=je)),ze&&(!ye||fe.textFill!==he.textFill)&&(se.fillStyle=ze),Ce.length===1)je&&se.strokeText(Ce[0],ct,et),ze&&se.fillText(Ce[0],ct,et);else for(var at=0;at<Ce.length;at++)je&&se.strokeText(Ce[at],ct,et),ze&&se.fillText(Ce[at],ct,et),et+=Le}(E,H,W,$,Z,Q)},C.getStroke=z,C.getFill=V,C.needDrawText=function(E,H){return E!=null&&(E||H.textBackgroundColor||H.textBorderWidth&&H.textBorderColor||H.textPadding)}},12094:function(U,C,b){var p=b(69824),T=b(28761),w=b(32115).WILL_BE_RESTORED,e=new T,h=function(){};h.prototype={constructor:h,drawRectText:function(n,t){var f=this.style;t=f.textRect||t,this.__dirty&&p.normalizeTextStyle(f,!0);var a=f.text;if(a!=null&&(a+=""),p.needDrawText(a,f)){n.save();var y=this.transform;f.transformText?this.setTransform(n):y&&(e.copy(t),e.applyTransform(y),t=e),p.renderText(this,n,a,f,t,w),n.restore()}}},U.exports=h},62734:function(U,C,b){U.exports=b(74582).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(p,T){var w=T.cx,e=T.cy,h=Math.max(T.r,0),n=T.startAngle,t=T.endAngle,f=T.clockwise,a=Math.cos(n),y=Math.sin(n);p.moveTo(a*h+w,y*h+e),p.arc(w,e,h,n,t,!f)}})},38734:function(U,C,b){var p=b(74582),T=b(76414),w=b(14141),e=w.quadraticSubdivide,h=w.cubicSubdivide,n=w.quadraticAt,t=w.cubicAt,f=w.quadraticDerivativeAt,a=w.cubicDerivativeAt,y=[];function g(c,o,d){var m=c.cpx2,_=c.cpy2;return m===null||_===null?[(d?a:t)(c.x1,c.cpx1,c.cpx2,c.x2,o),(d?a:t)(c.y1,c.cpy1,c.cpy2,c.y2,o)]:[(d?f:n)(c.x1,c.cpx1,c.x2,o),(d?f:n)(c.y1,c.cpy1,c.y2,o)]}U.exports=p.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(c,o){var d=o.x1,m=o.y1,_=o.x2,M=o.y2,S=o.cpx1,A=o.cpy1,I=o.cpx2,k=o.cpy2,D=o.percent;D!==0&&(c.moveTo(d,m),I==null||k==null?(D<1&&(e(d,S,_,D,y),S=y[1],_=y[2],e(m,A,M,D,y),A=y[1],M=y[2]),c.quadraticCurveTo(S,A,_,M)):(D<1&&(h(d,S,I,_,D,y),S=y[1],I=y[2],_=y[3],h(m,A,k,M,D,y),A=y[1],k=y[2],M=y[3]),c.bezierCurveTo(S,A,I,k,_,M)))},pointAt:function(c){return g(this.shape,c,!1)},tangentAt:function(c){var o=g(this.shape,c,!0);return T.normalize(o,o)}})},15062:function(U,C,b){U.exports=b(74582).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(p,T,w){w&&p.moveTo(T.cx+T.r,T.cy),p.arc(T.cx,T.cy,T.r,0,2*Math.PI,!0)}})},59348:function(U,C,b){U.exports=b(74582).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(p,T){var w=T.cx,e=T.cy,h=T.rx,n=T.ry,t=.5522848*h,f=.5522848*n;p.moveTo(w-h,e),p.bezierCurveTo(w-h,e-f,w-t,e-n,w,e-n),p.bezierCurveTo(w+t,e-n,w+h,e-f,w+h,e),p.bezierCurveTo(w+h,e+f,w+t,e+n,w,e+n),p.bezierCurveTo(w-t,e+n,w-h,e+f,w-h,e),p.closePath()}})},1147:function(U,C,b){var p=b(74582),T=b(8827).subPixelOptimizeLine,w={};U.exports=p.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,h){this.subPixelOptimize?(T(w,h,this.style),n=w.x1,t=w.y1,f=w.x2,a=w.y2):(n=h.x1,t=h.y1,f=h.x2,a=h.y2);var n,t,f,a,y=h.percent;y!==0&&(e.moveTo(n,t),y<1&&(f=n*(1-y)+f*y,a=t*(1-y)+a*y),e.lineTo(f,a))},pointAt:function(e){var h=this.shape;return[h.x1*(1-e)+h.x2*e,h.y1*(1-e)+h.y2*e]}})},88217:function(U,C,b){var p=b(74582),T=b(42920);U.exports=p.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(w,e){T.buildPath(w,e,!0)}})},84214:function(U,C,b){var p=b(74582),T=b(42920);U.exports=p.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(w,e){T.buildPath(w,e,!1)}})},86367:function(U,C,b){var p=b(74582),T=b(24142),w=b(8827).subPixelOptimizeRect,e={};U.exports=p.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(h,n){var t,f,a,y;this.subPixelOptimize?(w(e,n,this.style),t=e.x,f=e.y,a=e.width,y=e.height,e.r=n.r,n=e):(t=n.x,f=n.y,a=n.width,y=n.height),n.r?T.buildPath(h,n):h.rect(t,f,a,y),h.closePath()}})},38839:function(U,C,b){U.exports=b(74582).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(p,T){var w=T.cx,e=T.cy,h=2*Math.PI;p.moveTo(w+T.r,e),p.arc(w,e,T.r,0,h,!1),p.moveTo(w+T.r0,e),p.arc(w,e,T.r0,0,h,!0)}})},84521:function(U,C,b){var p=b(74582),T=b(24280);U.exports=p.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:T(p.prototype.brush),buildPath:function(w,e){var h=e.cx,n=e.cy,t=Math.max(e.r0||0,0),f=Math.max(e.r,0),a=e.startAngle,y=e.endAngle,g=e.clockwise,c=Math.cos(a),o=Math.sin(a);w.moveTo(c*t+h,o*t+n),w.lineTo(c*f+h,o*f+n),w.arc(h,n,f,a,y,!g),w.lineTo(Math.cos(y)*t+h,Math.sin(y)*t+n),t!==0&&w.arc(h,n,t,y,a,g),w.closePath()}})},89177:function(U,C,b){var p=b(24679),T=b(45003),w=b(23405),e=w.isString,h=w.isFunction,n=w.isObject,t=w.isArrayLike,f=w.indexOf,a=function(){this.animators=[]};function y(c,o,d,m,_,M,S,A){e(m)?(M=_,_=m,m=0):h(_)?(M=_,_="linear",m=0):h(m)?(M=m,m=0):h(d)?(M=d,d=500):d||(d=500),c.stopAnimation(),function R(O,N,z,V,B,G,E){var H={},W=0;for(var $ in V)V.hasOwnProperty($)&&(z[$]!=null?n(V[$])&&!t(V[$])?R(O,N?N+"."+$:$,z[$],V[$],B,G,E):(E?(H[$]=z[$],g(O,N,$,V[$])):H[$]=V[$],W++):V[$]==null||E||g(O,N,$,V[$]));W>0&&O.animate(N,!1).when(B??500,H).delay(G||0)}(c,"",c,o,d,m,A);var I=c.animators.slice(),k=I.length;function D(){--k||!M||M()}!k&&M&&M();for(var L=0;L<I.length;L++)I[L].done(D).start(_,S)}function g(c,o,d,m){if(o){var _={};_[o]={},_[o][d]=m,c.attr(_)}else c.attr(d,m)}a.prototype={constructor:a,animate:function(c,o){var d,m=!1,_=this,M=this.__zr;if(c){var S=c.split("."),A=_;m=S[0]==="shape";for(var I=0,k=S.length;I<k;I++)A&&(A=A[S[I]]);A&&(d=A)}else d=_;if(!d)return void T('Property "'+c+'" is not existed in element '+_.id);var D=_.animators,L=new p(d,o);return L.during(function(R){_.dirty(m)}).done(function(){D.splice(f(D,L),1)}),D.push(L),M&&M.animation.addAnimator(L),L},stopAnimation:function(c){for(var o=this.animators,d=o.length,m=0;m<d;m++)o[m].stop(c);return o.length=0,this},animateTo:function(c,o,d,m,_,M){y(this,c,o,d,m,_,M)},animateFrom:function(c,o,d,m,_,M){y(this,c,o,d,m,_,M,!0)}},U.exports=a},1046:function(U){function C(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function b(p,T){return{target:p,topTarget:T&&T.topTarget}}C.prototype={constructor:C,_dragStart:function(p){var T=p.target;T&&T.draggable&&(this._draggingTarget=T,T.dragging=!0,this._x=p.offsetX,this._y=p.offsetY,this.dispatchToElement(b(T,p),"dragstart",p.event))},_drag:function(p){var T=this._draggingTarget;if(T){var w=p.offsetX,e=p.offsetY,h=w-this._x,n=e-this._y;this._x=w,this._y=e,T.drift(h,n,p),this.dispatchToElement(b(T,p),"drag",p.event);var t=this.findHover(w,e,T).target,f=this._dropTarget;this._dropTarget=t,T!==t&&(f&&t!==f&&this.dispatchToElement(b(f,p),"dragleave",p.event),t&&t!==f&&this.dispatchToElement(b(t,p),"dragenter",p.event))}},_dragEnd:function(p){var T=this._draggingTarget;T&&(T.dragging=!1),this.dispatchToElement(b(T,p),"dragend",p.event),this._dropTarget&&this.dispatchToElement(b(this._dropTarget,p),"drop",p.event),this._draggingTarget=null,this._dropTarget=null}},U.exports=C},62271:function(U){var C=Array.prototype.slice,b=function(T){this._$handlers={},this._$eventProcessor=T};function p(T,w,e,h,n,t){var f,a,y=T._$handlers;if(typeof e=="function"&&(n=h,h=e,e=null),!h||!w)return T;f=e,a=T._$eventProcessor,f!=null&&a&&a.normalizeQuery&&(f=a.normalizeQuery(f)),e=f,y[w]||(y[w]=[]);for(var g=0;g<y[w].length;g++)if(y[w][g].h===h)return T;var c={h,one:t,query:e,ctx:n||T,callAtLast:h.zrEventfulCallAtLast},o=y[w].length-1,d=y[w][o];return d&&d.callAtLast?y[w].splice(o,0,c):y[w].push(c),T}b.prototype={constructor:b,one:function(T,w,e,h){return p(this,T,w,e,h,!0)},on:function(T,w,e,h){return p(this,T,w,e,h,!1)},isSilent:function(T){var w=this._$handlers;return!w[T]||!w[T].length},off:function(T,w){var e=this._$handlers;if(!T)return this._$handlers={},this;if(w){if(e[T]){for(var h=[],n=0,t=e[T].length;n<t;n++)e[T][n].h!==w&&h.push(e[T][n]);e[T]=h}e[T]&&e[T].length===0&&delete e[T]}else delete e[T];return this},trigger:function(T){var w=this._$handlers[T],e=this._$eventProcessor;if(w){var h=arguments,n=h.length;n>3&&(h=C.call(h,1));for(var t=w.length,f=0;f<t;){var a=w[f];if(e&&e.filter&&a.query!=null&&!e.filter(T,a.query)){f++;continue}switch(n){case 1:a.h.call(a.ctx);break;case 2:a.h.call(a.ctx,h[1]);break;case 3:a.h.call(a.ctx,h[1],h[2]);break;default:a.h.apply(a.ctx,h)}a.one?(w.splice(f,1),t--):f++}}return e&&e.afterTrigger&&e.afterTrigger(T),this},triggerWithContext:function(T){var w=this._$handlers[T],e=this._$eventProcessor;if(w){var h=arguments,n=h.length;n>4&&(h=C.call(h,1,h.length-1));for(var t=h[h.length-1],f=w.length,a=0;a<f;){var y=w[a];if(e&&e.filter&&y.query!=null&&!e.filter(T,y.query)){a++;continue}switch(n){case 1:y.h.call(t);break;case 2:y.h.call(t,h[1]);break;case 3:y.h.call(t,h[1],h[2]);break;default:y.h.apply(t,h)}y.one?(w.splice(a,1),f--):a++}}return e&&e.afterTrigger&&e.afterTrigger(T),this}},U.exports=b},1965:function(U,C,b){var p=b(79442),T=b(76414),w=p.identity;function e(y){return y>5e-5||y<-5e-5}var h=function(y){(y=y||{}).position||(this.position=[0,0]),y.rotation==null&&(this.rotation=0),y.scale||(this.scale=[1,1]),this.origin=this.origin||null},n=h.prototype;n.transform=null,n.needLocalTransform=function(){return e(this.rotation)||e(this.position[0])||e(this.position[1])||e(this.scale[0]-1)||e(this.scale[1]-1)};var t=[];n.updateTransform=function(){var y=this.parent,g=y&&y.transform,c=this.needLocalTransform(),o=this.transform;if(!(c||g)){o&&w(o);return}o=o||p.create(),c?this.getLocalTransform(o):w(o),g&&(c?p.mul(o,y.transform,o):p.copy(o,y.transform)),this.transform=o;var d=this.globalScaleRatio;if(d!=null&&d!==1){this.getGlobalScale(t);var m=t[0]<0?-1:1,_=t[1]<0?-1:1,M=((t[0]-m)*d+m)/t[0]||0,S=((t[1]-_)*d+_)/t[1]||0;o[0]*=M,o[1]*=M,o[2]*=S,o[3]*=S}this.invTransform=this.invTransform||p.create(),p.invert(this.invTransform,o)},n.getLocalTransform=function(y){return h.getLocalTransform(this,y)},n.setTransform=function(y){var g=this.transform,c=y.dpr||1;g?y.setTransform(c*g[0],c*g[1],c*g[2],c*g[3],c*g[4],c*g[5]):y.setTransform(c,0,0,c,0,0)},n.restoreTransform=function(y){var g=y.dpr||1;y.setTransform(g,0,0,g,0,0)};var f=[],a=p.create();n.setLocalTransform=function(y){if(y){var g=y[0]*y[0]+y[1]*y[1],c=y[2]*y[2]+y[3]*y[3],o=this.position,d=this.scale;e(g-1)&&(g=Math.sqrt(g)),e(c-1)&&(c=Math.sqrt(c)),y[0]<0&&(g=-g),y[3]<0&&(c=-c),o[0]=y[4],o[1]=y[5],d[0]=g,d[1]=c,this.rotation=Math.atan2(-y[1]/c,y[0]/g)}},n.decomposeTransform=function(){if(this.transform){var y=this.parent,g=this.transform;y&&y.transform&&(p.mul(f,y.invTransform,g),g=f);var c=this.origin;c&&(c[0]||c[1])&&(a[4]=c[0],a[5]=c[1],p.mul(f,g,a),f[4]-=c[0],f[5]-=c[1],g=f),this.setLocalTransform(g)}},n.getGlobalScale=function(y){var g=this.transform;return y=y||[],g?(y[0]=Math.sqrt(g[0]*g[0]+g[1]*g[1]),y[1]=Math.sqrt(g[2]*g[2]+g[3]*g[3]),g[0]<0&&(y[0]=-y[0]),g[3]<0&&(y[1]=-y[1])):(y[0]=1,y[1]=1),y},n.transformCoordToLocal=function(y,g){var c=[y,g],o=this.invTransform;return o&&T.applyTransform(c,c,o),c},n.transformCoordToGlobal=function(y,g){var c=[y,g],o=this.transform;return o&&T.applyTransform(c,c,o),c},h.getLocalTransform=function(y,g){w(g=g||[]);var c=y.origin,o=y.scale||[1,1],d=y.rotation||0,m=y.position||[0,0];return c&&(g[4]-=c[0],g[5]-=c[1]),p.scale(g,g,o),d&&p.rotate(g,g,d),c&&(g[4]+=c[0],g[5]+=c[1]),g[4]+=m[0],g[5]+=m[1],g},U.exports=h},70318:function(U,C,b){var p=b(98242).createElement,T=b(23405),w=b(45003),e=b(74582),h=b(91222),n=b(96296),t=b(7189),f=b(71961),a=b(68941),y=b(45711),g=b(19890),c=g.path,o=g.image,d=g.text;function m(L){return parseInt(L,10)}function _(L,R){return R&&L&&R.parentNode!==L}function M(L,R,O){if(_(L,R)&&O){var N=O.nextSibling;N?L.insertBefore(R,N):L.appendChild(R)}}function S(L,R){if(_(L,R)){var O=L.firstChild;O?L.insertBefore(R,O):L.appendChild(R)}}function A(L,R){R&&L&&R.parentNode===L&&L.removeChild(R)}function I(L){return L.__textSvgEl}function k(L){return L.__svgEl}var D=function(L,R,O,N){this.root=L,this.storage=R,this._opts=O=T.extend({},O||{});var z=p("svg");z.setAttribute("xmlns","http://www.w3.org/2000/svg"),z.setAttribute("version","1.1"),z.setAttribute("baseProfile","full"),z.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new f(N,z),this.clipPathManager=new a(N,z),this.shadowManager=new y(N,z);var V=document.createElement("div");V.style.cssText="overflow:hidden;position:relative",this._svgRoot=z,this._viewport=V,L.appendChild(V),V.appendChild(z),this.resize(O.width,O.height),this._visibleList=[]};D.prototype={constructor:D,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var L=this.getViewportRoot();if(L)return{offsetLeft:L.offsetLeft||0,offsetTop:L.offsetTop||0}},refresh:function(){var L=this.storage.getDisplayList(!0);this._paintList(L)},setBackgroundColor:function(L){this._viewport.style.background=L},_paintList:function(L){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var R,O,N=this._svgRoot,z=this._visibleList,V=L.length,B=[];for(R=0;R<V;R++){var G,E=L[R],H=(G=E)instanceof e?c:G instanceof h?o:G instanceof n?d:c,W=k(E)||I(E);E.invisible||(E.__dirty&&(H&&H.brush(E),this.clipPathManager.update(E),E.style&&(this.gradientManager.update(E.style.fill),this.gradientManager.update(E.style.stroke),this.shadowManager.update(W,E)),E.__dirty=!1),B.push(E))}var $=t(z,B);for(R=0;R<$.length;R++){var Z=$[R];if(Z.removed)for(var Q=0;Q<Z.count;Q++){var E=z[Z.indices[Q]],W=k(E),Y=I(E);A(N,W),A(N,Y)}}for(R=0;R<$.length;R++){var Z=$[R];if(Z.added)for(var Q=0;Q<Z.count;Q++){var E=B[Z.indices[Q]],W=k(E),Y=I(E);O?M(N,W,O):S(N,W),W?M(N,Y,W):O?M(N,Y,O):S(N,Y),M(N,Y,W),O=Y||W||O,this.gradientManager.addWithoutUpdate(W,E),this.shadowManager.addWithoutUpdate(O,E),this.clipPathManager.markUsed(E)}else if(!Z.removed)for(var Q=0;Q<Z.count;Q++){var E=B[Z.indices[Q]];O=W=I(E)||k(E)||O,this.gradientManager.markUsed(E),this.gradientManager.addWithoutUpdate(W,E),this.shadowManager.markUsed(E),this.shadowManager.addWithoutUpdate(W,E),this.clipPathManager.markUsed(E)}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=B},_getDefs:function(L){var R=this._svgRoot,O=this._svgRoot.getElementsByTagName("defs");if(O.length!==0)return O[0];if(!L)return null;var O=R.insertBefore(p("defs"),R.firstChild);return O.contains||(O.contains=function(N){var z=O.children;if(!z)return!1;for(var V=z.length-1;V>=0;--V)if(z[V]===N)return!0;return!1}),O},resize:function(L,R){var O=this._viewport;O.style.display="none";var N=this._opts;if(L!=null&&(N.width=L),R!=null&&(N.height=R),L=this._getSize(0),R=this._getSize(1),O.style.display="",this._width!==L||this._height!==R){this._width=L,this._height=R;var z=O.style;z.width=L+"px",z.height=R+"px";var V=this._svgRoot;V.setAttribute("width",L),V.setAttribute("height",R)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(L){var R=this._opts,O=["width","height"][L],N=["clientWidth","clientHeight"][L],z=["paddingLeft","paddingTop"][L],V=["paddingRight","paddingBottom"][L];if(R[O]!=null&&R[O]!=="auto")return parseFloat(R[O]);var B=this.root,G=document.defaultView.getComputedStyle(B);return(B[N]||m(G[O])||m(B.style[O]))-(m(G[z])||0)-(m(G[V])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},T.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(L){D.prototype[L]=function(){w('In SVG mode painter not support method "'+L+'"')}}),U.exports=D},98242:function(U,C){C.createElement=function(b){return document.createElementNS("http://www.w3.org/2000/svg",b)}},19890:function(U,C,b){var p=b(98242).createElement,T=b(93041),w=b(28761),e=b(79442),h=b(24570),n=b(69824),t=b(96296),f=T.CMD,a=Array.prototype.join,y="none",g=Math.round,c=Math.sin,o=Math.cos,d=Math.PI,m=2*Math.PI,_=180/d;function M(V){return g(1e4*V)/1e4}function S(V){return V<1e-4&&V>-1e-4}function A(V,B){B&&I(V,"transform","matrix("+a.call(B,",")+")")}function I(V,B,G){G&&(G.type==="linear"||G.type==="radial")||V.setAttribute(B,G)}function k(V,B,G,E){if((H=G?B.textFill:B.fill)!=null&&H!==y){var H,W,$=G?B.textFill:B.fill;$=$==="transparent"?y:$,V.getAttribute("clip-path")!=="none"&&$===y&&($="rgba(0, 0, 0, 0.002)"),I(V,"fill",$),I(V,"fill-opacity",B.fillOpacity!=null?B.fillOpacity*B.opacity:B.opacity)}else I(V,"fill",y);if((W=G?B.textStroke:B.stroke)!=null&&W!==y){var Z=G?B.textStroke:B.stroke;I(V,"stroke",Z=Z==="transparent"?y:Z),I(V,"stroke-width",(G?B.textStrokeWidth:B.lineWidth)/(!G&&B.strokeNoScale?E.getLineScale():1)),I(V,"paint-order",G?"stroke":"fill"),I(V,"stroke-opacity",B.strokeOpacity!=null?B.strokeOpacity:B.opacity),B.lineDash?(I(V,"stroke-dasharray",B.lineDash.join(",")),I(V,"stroke-dashoffset",g(B.lineDashOffset||0))):I(V,"stroke-dasharray",""),B.lineCap&&I(V,"stroke-linecap",B.lineCap),B.lineJoin&&I(V,"stroke-linejoin",B.lineJoin),B.miterLimit&&I(V,"stroke-miterlimit",B.miterLimit)}else I(V,"stroke",y)}var D={};D.brush=function(V){var B=V.style,G=V.__svgEl;G||(V.__svgEl=G=p("path")),V.path||V.createPathProxy();var E=V.path;if(V.__dirtyPath){E.beginPath(),E.subPixelOptimize=!1,V.buildPath(E,V.shape),V.__dirtyPath=!1;var H=function(W){for(var $=[],Z=W.data,Q=W.len(),Y=0;Y<Q;){var K=Z[Y++],ne="",X=0;switch(K){case f.M:ne="M",X=2;break;case f.L:ne="L",X=2;break;case f.Q:ne="Q",X=4;break;case f.C:ne="C",X=6;break;case f.A:var ee=Z[Y++],ae=Z[Y++],oe=Z[Y++],se=Z[Y++],ge=Z[Y++],fe=Z[Y++],le=Z[Y++],ue=Z[Y++],he=Math.abs(fe),pe=S(he-m)&&!S(he),ye=!1;ye=he>=m||!S(he)&&(fe>-d&&fe<0||fe>d)==!!ue;var ve=M(ee+oe*o(ge)),Ae=M(ae+se*c(ge));pe&&(fe=ue?m-1e-4:-m+1e-4,ye=!0,Y===9&&$.push("M",ve,Ae));var _e=M(ee+oe*o(ge+fe)),Pe=M(ae+se*c(ge+fe));$.push("A",M(oe),M(se),g(le*_),+ye,+ue,_e,Pe);break;case f.Z:ne="Z";break;case f.R:var _e=M(Z[Y++]),Pe=M(Z[Y++]),Oe=M(Z[Y++]),ke=M(Z[Y++]);$.push("M",_e,Pe,"L",_e+Oe,Pe,"L",_e+Oe,Pe+ke,"L",_e,Pe+ke,"L",_e,Pe)}ne&&$.push(ne);for(var De=0;De<X;De++)$.push(M(Z[Y++]))}return $.join(" ")}(E);0>H.indexOf("NaN")&&I(G,"d",H)}k(G,B,!1,V),A(G,V.transform),B.text!=null&&N(V,V.getBoundingRect())};var L={};L.brush=function(V){var B=V.style,G=B.image;if(G instanceof HTMLImageElement&&(G=G.src),G){var E,H,W=B.x||0,$=B.y||0,Z=B.width,Q=B.height,Y=V.__svgEl;Y||(V.__svgEl=Y=p("image")),G!==V.__imageSrc&&(E=Y,H=G,E.setAttributeNS("http://www.w3.org/1999/xlink","href",H),V.__imageSrc=G),I(Y,"width",Z),I(Y,"height",Q),I(Y,"x",W),I(Y,"y",$),A(Y,V.transform),B.text!=null&&N(V,V.getBoundingRect())}};var R={},O=new w,N=function(V,B,G){var E,H,W=V.style;V.__dirty&&n.normalizeTextStyle(W,!0);var $=W.text;if($!=null){$+="";var Z=V.__textSvgEl;Z||(V.__textSvgEl=Z=p("text"));var Q=W.textPosition,Y=W.textDistance,K=W.textAlign||"left";typeof W.fontSize=="number"&&(W.fontSize+="px");var ne=W.font||[W.fontStyle||"",W.fontWeight||"",W.fontSize||"",W.fontFamily||""].join(" ")||h.DEFAULT_FONT,X=z(W.textVerticalAlign),ee=(G=h.getBoundingRect($,ne,K,X,W.textPadding,W.textLineHeight)).lineHeight;if(Q instanceof Array)E=B.x+Q[0],H=B.y+Q[1];else{var ae=h.adjustTextPositionOnRect(Q,B,Y);E=ae.x,H=ae.y,X=z(ae.textVerticalAlign),K=ae.textAlign}I(Z,"alignment-baseline",X),ne&&(Z.style.font=ne);var oe=W.textPadding;if(I(Z,"x",E),I(Z,"y",H),k(Z,W,!0,V),V instanceof t||V.style.transformText)A(Z,V.transform);else{if(V.transform)O.copy(B),O.applyTransform(V.transform),B=O;else{var le=V.transformCoordToGlobal(B.x,B.y);B.x=le[0],B.y=le[1],V.transform=e.identity(e.create())}var se=W.textOrigin;se==="center"?(E=G.width/2+E,H=G.height/2+H):se&&(E=se[0]+E,H=se[1]+H);var ge=-W.textRotation||0,fe=e.create();e.rotate(fe,fe,ge);var le=[V.transform[4],V.transform[5]];e.translate(fe,fe,le),A(Z,fe)}var ue=$.split(`
`),he=ue.length,pe=K;pe==="left"?(pe="start",oe&&(E+=oe[3])):pe==="right"?(pe="end",oe&&(E-=oe[1])):pe==="center"&&(pe="middle",oe&&(E+=(oe[3]-oe[1])/2));var ye=0;if(X==="after-edge"?(ye=-G.height+ee,oe&&(ye-=oe[2])):X==="middle"?(ye=(-G.height+ee)/2,oe&&(H+=(oe[0]-oe[2])/2)):oe&&(ye+=oe[0]),V.__text!==$||V.__textFont!==ne){var ve=V.__tspanList||[];V.__tspanList=ve;for(var Ae=0;Ae<he;Ae++){var _e=ve[Ae];_e?_e.innerHTML="":(_e=ve[Ae]=p("tspan"),Z.appendChild(_e),I(_e,"alignment-baseline",X),I(_e,"text-anchor",pe)),I(_e,"x",E),I(_e,"y",H+Ae*ee+ye),_e.appendChild(document.createTextNode(ue[Ae]))}for(;Ae<ve.length;Ae++)Z.removeChild(ve[Ae]);ve.length=he,V.__text=$,V.__textFont=ne}else if(V.__tspanList.length)for(var Pe=V.__tspanList.length,Ae=0;Ae<Pe;++Ae){var _e=V.__tspanList[Ae];_e&&(I(_e,"x",E),I(_e,"y",H+Ae*ee+ye))}}};function z(V){return V==="middle"?"middle":V==="bottom"?"after-edge":"hanging"}R.drawRectText=N,R.brush=function(V){var B=V.style;B.text!=null&&(B.textPosition=[0,0],N(V,{x:B.x||0,y:B.y||0,width:0,height:0},V.getBoundingRect()))},C.path=D,C.image=L,C.text=R},68941:function(U,C,b){var p=b(29070),T=b(23405),w=b(79442);function e(h,n){p.call(this,h,n,"clipPath","__clippath_in_use__")}T.inherits(e,p),e.prototype.update=function(h){var n=this.getSvgElement(h);n&&this.updateDom(n,h.__clipPaths,!1);var t=this.getTextSvgElement(h);t&&this.updateDom(t,h.__clipPaths,!0),this.markUsed(h)},e.prototype.updateDom=function(h,n,t){if(n&&n.length>0){var f,a,y=this.getDefs(!0),g=n[0],c=t?"_textDom":"_dom";g[c]?(a=g[c].getAttribute("id"),f=g[c],y.contains(f)||y.appendChild(f)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(f=this.createElement("clipPath")).setAttribute("id",a),y.appendChild(f),g[c]=f);var o=this.getSvgProxy(g);if(g.transform&&g.parent.invTransform&&!t){var d=Array.prototype.slice.call(g.transform);w.mul(g.transform,g.parent.invTransform,g.transform),o.brush(g),g.transform=d}else o.brush(g);var m=this.getSvgElement(g);f.innerHTML="",f.appendChild(m.cloneNode()),h.setAttribute("clip-path","url(#"+a+")"),n.length>1&&this.updateDom(f,n.slice(1),t)}else h&&h.setAttribute("clip-path","none")},e.prototype.markUsed=function(h){var n=this;h.__clipPaths&&h.__clipPaths.length>0&&T.each(h.__clipPaths,function(t){t._dom&&p.prototype.markUsed.call(n,t._dom),t._textDom&&p.prototype.markUsed.call(n,t._textDom)})},U.exports=e},29070:function(U,C,b){var p=b(98242).createElement,T=b(23405),w=b(74582),e=b(91222),h=b(96296),n=b(19890),t=n.path,f=n.image,a=n.text;function y(g,c,o,d,m){this._zrId=g,this._svgRoot=c,this._tagNames=typeof o=="string"?[o]:o,this._markLabel=d,this._domName=m||"_dom",this.nextId=0}y.prototype.createElement=p,y.prototype.getDefs=function(g){var c=this._svgRoot,o=this._svgRoot.getElementsByTagName("defs");return o.length!==0?o[0]:g?((o=c.insertBefore(this.createElement("defs"),c.firstChild)).contains||(o.contains=function(d){var m=o.children;if(!m)return!1;for(var _=m.length-1;_>=0;--_)if(m[_]===d)return!0;return!1}),o):null},y.prototype.update=function(g,c){if(g){var o=this.getDefs(!1);if(g[this._domName]&&o.contains(g[this._domName]))typeof c=="function"&&c(g);else{var d=this.add(g);d&&(g[this._domName]=d)}}},y.prototype.addDom=function(g){this.getDefs(!0).appendChild(g)},y.prototype.removeDom=function(g){var c=this.getDefs(!1);c&&g[this._domName]&&(c.removeChild(g[this._domName]),g[this._domName]=null)},y.prototype.getDoms=function(){var g=this.getDefs(!1);if(!g)return[];var c=[];return T.each(this._tagNames,function(o){var d=g.getElementsByTagName(o);c=c.concat([].slice.call(d))}),c},y.prototype.markAllUnused=function(){var g=this.getDoms(),c=this;T.each(g,function(o){o[c._markLabel]="0"})},y.prototype.markUsed=function(g){g&&(g[this._markLabel]="1")},y.prototype.removeUnused=function(){var g=this.getDefs(!1);if(g){var c=this.getDoms(),o=this;T.each(c,function(d){d[o._markLabel]!=="1"&&g.removeChild(d)})}},y.prototype.getSvgProxy=function(g){return g instanceof w?t:g instanceof e?f:g instanceof h?a:t},y.prototype.getTextSvgElement=function(g){return g.__textSvgEl},y.prototype.getSvgElement=function(g){return g.__svgEl},U.exports=y},71961:function(U,C,b){var p=b(29070),T=b(23405),w=b(45003),e=b(86049);function h(n,t){p.call(this,n,t,["linearGradient","radialGradient"],"__gradient_in_use__")}T.inherits(h,p),h.prototype.addWithoutUpdate=function(n,t){if(t&&t.style){var f=this;T.each(["fill","stroke"],function(a){if(t.style[a]&&(t.style[a].type==="linear"||t.style[a].type==="radial")){var y,g=t.style[a],c=f.getDefs(!0);g._dom?(y=g._dom,c.contains(g._dom)||f.addDom(y)):y=f.add(g),f.markUsed(t);var o=y.getAttribute("id");n.setAttribute(a,"url(#"+o+")")}})}},h.prototype.add=function(n){var t;if(n.type==="linear")t=this.createElement("linearGradient");else{if(n.type!=="radial")return w("Illegal gradient type."),null;t=this.createElement("radialGradient")}return n.id=n.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+n.id),this.updateDom(n,t),this.addDom(t),t},h.prototype.update=function(n){var t=this;p.prototype.update.call(this,n,function(){var f=n.type,a=n._dom.tagName;f==="linear"&&a==="linearGradient"||f==="radial"&&a==="radialGradient"?t.updateDom(n,n._dom):(t.removeDom(n),t.add(n))})},h.prototype.updateDom=function(n,t){if(n.type==="linear")t.setAttribute("x1",n.x),t.setAttribute("y1",n.y),t.setAttribute("x2",n.x2),t.setAttribute("y2",n.y2);else{if(n.type!=="radial")return void w("Illegal gradient type.");t.setAttribute("cx",n.x),t.setAttribute("cy",n.y),t.setAttribute("r",n.r)}n.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var f=n.colorStops,a=0,y=f.length;a<y;++a){var g=this.createElement("stop");g.setAttribute("offset",100*f[a].offset+"%");var c=f[a].color;if(c.indexOf(!1)){var o=e.parse(c)[3],d=e.toHex(c);g.setAttribute("stop-color","#"+d),g.setAttribute("stop-opacity",o)}else g.setAttribute("stop-color",f[a].color);t.appendChild(g)}n._dom=t},h.prototype.markUsed=function(n){if(n.style){var t=n.style.fill;t&&t._dom&&p.prototype.markUsed.call(this,t._dom),(t=n.style.stroke)&&t._dom&&p.prototype.markUsed.call(this,t._dom)}},U.exports=h},45711:function(U,C,b){var p=b(29070);function T(e,h){p.call(this,e,h,["filter"],"__filter_in_use__","_shadowDom")}function w(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}b(23405).inherits(T,p),T.prototype.addWithoutUpdate=function(e,h){if(h&&w(h.style)){var n,t=h.style;t._shadowDom?(n=t._shadowDom,this.getDefs(!0).contains(t._shadowDom)||this.addDom(n)):n=this.add(h),this.markUsed(h);var f=n.getAttribute("id");e.style.filter="url(#"+f+")"}},T.prototype.add=function(e){var h=this.createElement("filter"),n=e.style;return n._shadowDomId=n._shadowDomId||this.nextId++,h.setAttribute("id","zr"+this._zrId+"-shadow-"+n._shadowDomId),this.updateDom(e,h),this.addDom(h),h},T.prototype.update=function(e,h){var n=h.style;if(w(n)){var t=this;p.prototype.update.call(this,h,function(f){t.updateDom(h,f._shadowDom)})}else this.remove(e,n)},T.prototype.remove=function(e,h){h._shadowDomId!=null&&(this.removeDom(h),e.style.filter="")},T.prototype.updateDom=function(e,h){var n,t,f,a,y=h.getElementsByTagName("feDropShadow");y=y.length===0?this.createElement("feDropShadow"):y[0];var g=e.style,c=e.scale&&e.scale[0]||1,o=e.scale&&e.scale[1]||1;if(g.shadowBlur||g.shadowOffsetX||g.shadowOffsetY)n=g.shadowOffsetX||0,t=g.shadowOffsetY||0,f=g.shadowBlur,a=g.shadowColor;else{if(!g.textShadowBlur)return void this.removeDom(h,g);n=g.textShadowOffsetX||0,t=g.textShadowOffsetY||0,f=g.textShadowBlur,a=g.textShadowColor}y.setAttribute("dx",n/c),y.setAttribute("dy",t/o),y.setAttribute("flood-color",a);var d=f/2/c,m=f/2/o;y.setAttribute("stdDeviation",d+" "+m),h.setAttribute("x","-100%"),h.setAttribute("y","-100%"),h.setAttribute("width",Math.ceil(f/2*200)+"%"),h.setAttribute("height",Math.ceil(f/2*200)+"%"),h.appendChild(y),g._shadowDom=h},T.prototype.markUsed=function(e){var h=e.style;h&&h._shadowDom&&p.prototype.markUsed.call(this,h._shadowDom)},U.exports=T},38801:function(U,C,b){b(19890),(0,b(98709).registerPainter)("svg",b(70318))},86049:function(U,C,b){var p=b(26853),T={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 w(S){return(S=Math.round(S))<0?0:S>255?255:S}function e(S){return S<0?0:S>1?1:S}function h(S){return S.length&&S.charAt(S.length-1)==="%"?w(parseFloat(S)/100*255):w(parseInt(S,10))}function n(S){return S.length&&S.charAt(S.length-1)==="%"?e(parseFloat(S)/100):e(parseFloat(S))}function t(S,A,I){return I<0?I+=1:I>1&&(I-=1),6*I<1?S+(A-S)*I*6:2*I<1?A:3*I<2?S+(A-S)*(.6666666666666666-I)*6:S}function f(S,A,I,k,D){return S[0]=A,S[1]=I,S[2]=k,S[3]=D,S}function a(S,A){return S[0]=A[0],S[1]=A[1],S[2]=A[2],S[3]=A[3],S}var y=new p(20),g=null;function c(S,A){g&&a(g,A),g=y.put(S,g||A.slice())}function o(S,A){if(S){A=A||[];var I=y.get(S);if(I)return a(A,I);var k=(S+="").replace(/ /g,"").toLowerCase();if(k in T)return a(A,T[k]),c(S,A),A;if(k.charAt(0)==="#"){if(k.length===4){var D=parseInt(k.substr(1),16);return D>=0&&D<=4095?(f(A,(3840&D)>>4|(3840&D)>>8,240&D|(240&D)>>4,15&D|(15&D)<<4,1),c(S,A),A):void f(A,0,0,0,1)}if(k.length===7){var D=parseInt(k.substr(1),16);return D>=0&&D<=16777215?(f(A,(16711680&D)>>16,(65280&D)>>8,255&D,1),c(S,A),A):void f(A,0,0,0,1)}return}var L=k.indexOf("("),R=k.indexOf(")");if(L!==-1&&R+1===k.length){var O=k.substr(0,L),N=k.substr(L+1,R-(L+1)).split(","),z=1;switch(O){case"rgba":if(N.length!==4)return void f(A,0,0,0,1);z=n(N.pop());case"rgb":return N.length!==3?void f(A,0,0,0,1):(f(A,h(N[0]),h(N[1]),h(N[2]),z),c(S,A),A);case"hsla":return N.length!==4?void f(A,0,0,0,1):(N[3]=n(N[3]),d(N,A),c(S,A),A);case"hsl":return N.length!==3?void f(A,0,0,0,1):(d(N,A),c(S,A),A);default:return}}f(A,0,0,0,1)}}function d(S,A){var I=(parseFloat(S[0])%360+360)%360/360,k=n(S[1]),D=n(S[2]),L=D<=.5?D*(k+1):D+k-D*k,R=2*D-L;return f(A=A||[],w(255*t(R,L,I+.3333333333333333)),w(255*t(R,L,I)),w(255*t(R,L,I-.3333333333333333)),1),S.length===4&&(A[3]=S[3]),A}function m(S,A,I){if(A&&A.length&&S>=0&&S<=1){I=I||[];var k,D,L,R,O=S*(A.length-1),N=Math.floor(O),z=Math.ceil(O),V=A[N],B=A[z],G=O-N;return I[0]=w((k=V[0],k+(B[0]-k)*G)),I[1]=w((D=V[1],D+(B[1]-D)*G)),I[2]=w((L=V[2],L+(B[2]-L)*G)),I[3]=e((R=V[3],R+(B[3]-R)*G)),I}}function _(S,A,I){if(A&&A.length&&S>=0&&S<=1){var k,D,L,R,O=S*(A.length-1),N=Math.floor(O),z=Math.ceil(O),V=o(A[N]),B=o(A[z]),G=O-N,E=M([w((k=V[0],k+(B[0]-k)*G)),w((D=V[1],D+(B[1]-D)*G)),w((L=V[2],L+(B[2]-L)*G)),e((R=V[3],R+(B[3]-R)*G))],"rgba");return I?{color:E,leftIndex:N,rightIndex:z,value:O}:E}}function M(S,A){if(S&&S.length){var I=S[0]+","+S[1]+","+S[2];return(A==="rgba"||A==="hsva"||A==="hsla")&&(I+=","+S[3]),A+"("+I+")"}}C.parse=o,C.lift=function(S,A){var I=o(S);if(I){for(var k=0;k<3;k++)A<0?I[k]=I[k]*(1-A)|0:I[k]=(255-I[k])*A+I[k]|0,I[k]>255?I[k]=255:S[k]<0&&(I[k]=0);return M(I,I.length===4?"rgba":"rgb")}},C.toHex=function(S){var A=o(S);if(A)return(16777216+(A[0]<<16)+(A[1]<<8)+ +A[2]).toString(16).slice(1)},C.fastLerp=m,C.fastMapToColor=m,C.lerp=_,C.mapToColor=_,C.modifyHSL=function(S,A,I,k){if(S=o(S)){var D;return S=function(L){if(L){var R,O,N=L[0]/255,z=L[1]/255,V=L[2]/255,B=Math.min(N,z,V),G=Math.max(N,z,V),E=G-B,H=(G+B)/2;if(E===0)R=0,O=0;else{O=H<.5?E/(G+B):E/(2-G-B);var W=((G-N)/6+E/2)/E,$=((G-z)/6+E/2)/E,Z=((G-V)/6+E/2)/E;N===G?R=Z-$:z===G?R=.3333333333333333+W-Z:V===G&&(R=.6666666666666666+$-W),R<0&&(R+=1),R>1&&(R-=1)}var Q=[360*R,O,H];return L[3]!=null&&Q.push(L[3]),Q}}(S),A!=null&&(S[0]=(D=Math.round(D=A))<0?0:D>360?360:D),I!=null&&(S[1]=n(I)),k!=null&&(S[2]=n(k)),M(d(S),"rgba")}},C.modifyAlpha=function(S,A){if((S=o(S))&&A!=null)return S[3]=e(A),M(S,"rgba")},C.stringify=M},66836:function(U,C,b){var p=b(18583),T=b(91222),w=b(96296),e=b(15062),h=b(86367),n=b(59348),t=b(1147),f=b(74582),a=b(88217),y=b(84214),g=b(67725),c=b(7609),o=b(79442),d=b(49884).createFromString,m=b(23405),_=m.isString,M=m.extend,S=m.defaults,A=m.trim,I=m.each,k=/[\s,]+/;function D(Z){for(_(Z)&&(Z=new DOMParser().parseFromString(Z,"text/xml")),Z.nodeType===9&&(Z=Z.firstChild);Z.nodeName.toLowerCase()!=="svg"||Z.nodeType!==1;)Z=Z.nextSibling;return Z}function L(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}L.prototype.parse=function(Z,Q){Q=Q||{};var Y,K,ne=D(Z);if(!ne)throw Error("Illegal svg");var X=new p;this._root=X;var ee=ne.getAttribute("viewBox")||"",ae=parseFloat(ne.getAttribute("width")||Q.width),oe=parseFloat(ne.getAttribute("height")||Q.height);isNaN(ae)&&(ae=null),isNaN(oe)&&(oe=null),B(ne,X,null,!0);for(var se=ne.firstChild;se;)this._parseNode(se,X),se=se.nextSibling;if(ee){var ge=A(ee).split(k);ge.length>=4&&(Y={x:parseFloat(ge[0]||0),y:parseFloat(ge[1]||0),width:parseFloat(ge[2]),height:parseFloat(ge[3])})}if(Y&&ae!=null&&oe!=null&&(K=$(Y,ae,oe),!Q.ignoreViewBox)){var fe=X;(X=new p).add(fe),fe.scale=K.scale.slice(),fe.position=K.position.slice()}return Q.ignoreRootClip||ae==null||oe==null||X.setClipPath(new h({shape:{x:0,y:0,width:ae,height:oe}})),{root:X,width:ae,height:oe,viewBoxRect:Y,viewBoxTransform:K}},L.prototype._parseNode=function(Z,Q){var Y,K=Z.nodeName.toLowerCase();if(K==="defs"?this._isDefine=!0:K==="text"&&(this._isText=!0),this._isDefine){var ne=O[K];if(ne){var X=ne.call(this,Z),ee=Z.getAttribute("id");ee&&(this._defs[ee]=X)}}else{var ne=R[K];ne&&(Y=ne.call(this,Z,Q),Q.add(Y))}for(var ae=Z.firstChild;ae;)ae.nodeType===1&&this._parseNode(ae,Y),ae.nodeType===3&&this._isText&&this._parseText(ae,Y),ae=ae.nextSibling;K==="defs"?this._isDefine=!1:K==="text"&&(this._isText=!1)},L.prototype._parseText=function(Z,Q){if(Z.nodeType===1){var Y=Z.getAttribute("dx")||0,K=Z.getAttribute("dy")||0;this._textX+=parseFloat(Y),this._textY+=parseFloat(K)}var ne=new w({style:{text:Z.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});N(Q,ne),B(Z,ne,this._defs);var X=ne.style.fontSize;X&&X<9&&(ne.style.fontSize=9,ne.scale=ne.scale||[1,1],ne.scale[0]*=X/9,ne.scale[1]*=X/9);var ee=ne.getBoundingRect();return this._textX+=ee.width,Q.add(ne),ne};var R={g:function(Z,Q){var Y=new p;return N(Q,Y),B(Z,Y,this._defs),Y},rect:function(Z,Q){var Y=new h;return N(Q,Y),B(Z,Y,this._defs),Y.setShape({x:parseFloat(Z.getAttribute("x")||0),y:parseFloat(Z.getAttribute("y")||0),width:parseFloat(Z.getAttribute("width")||0),height:parseFloat(Z.getAttribute("height")||0)}),Y},circle:function(Z,Q){var Y=new e;return N(Q,Y),B(Z,Y,this._defs),Y.setShape({cx:parseFloat(Z.getAttribute("cx")||0),cy:parseFloat(Z.getAttribute("cy")||0),r:parseFloat(Z.getAttribute("r")||0)}),Y},line:function(Z,Q){var Y=new t;return N(Q,Y),B(Z,Y,this._defs),Y.setShape({x1:parseFloat(Z.getAttribute("x1")||0),y1:parseFloat(Z.getAttribute("y1")||0),x2:parseFloat(Z.getAttribute("x2")||0),y2:parseFloat(Z.getAttribute("y2")||0)}),Y},ellipse:function(Z,Q){var Y=new n;return N(Q,Y),B(Z,Y,this._defs),Y.setShape({cx:parseFloat(Z.getAttribute("cx")||0),cy:parseFloat(Z.getAttribute("cy")||0),rx:parseFloat(Z.getAttribute("rx")||0),ry:parseFloat(Z.getAttribute("ry")||0)}),Y},polygon:function(Z,Q){var Y=Z.getAttribute("points");Y&&(Y=z(Y));var K=new a({shape:{points:Y||[]}});return N(Q,K),B(Z,K,this._defs),K},polyline:function(Z,Q){var Y=new f;N(Q,Y),B(Z,Y,this._defs);var K=Z.getAttribute("points");return K&&(K=z(K)),new y({shape:{points:K||[]}})},image:function(Z,Q){var Y=new T;return N(Q,Y),B(Z,Y,this._defs),Y.setStyle({image:Z.getAttribute("xlink:href"),x:Z.getAttribute("x"),y:Z.getAttribute("y"),width:Z.getAttribute("width"),height:Z.getAttribute("height")}),Y},text:function(Z,Q){var Y=Z.getAttribute("x")||0,K=Z.getAttribute("y")||0,ne=Z.getAttribute("dx")||0,X=Z.getAttribute("dy")||0;this._textX=parseFloat(Y)+parseFloat(ne),this._textY=parseFloat(K)+parseFloat(X);var ee=new p;return N(Q,ee),B(Z,ee,this._defs),ee},tspan:function(Z,Q){var Y=Z.getAttribute("x"),K=Z.getAttribute("y");Y!=null&&(this._textX=parseFloat(Y)),K!=null&&(this._textY=parseFloat(K));var ne=Z.getAttribute("dx")||0,X=Z.getAttribute("dy")||0,ee=new p;return N(Q,ee),B(Z,ee,this._defs),this._textX+=ne,this._textY+=X,ee},path:function(Z,Q){var Y=d(Z.getAttribute("d")||"");return N(Q,Y),B(Z,Y,this._defs),Y}},O={lineargradient:function(Z){var Q=new g(parseInt(Z.getAttribute("x1")||0,10),parseInt(Z.getAttribute("y1")||0,10),parseInt(Z.getAttribute("x2")||10,10),parseInt(Z.getAttribute("y2")||0,10));return function(Y,K){for(var ne=Y.firstChild;ne;){if(ne.nodeType===1){var X=ne.getAttribute("offset");X=X.indexOf("%")>0?parseInt(X,10)/100:X?parseFloat(X):0;var ee=ne.getAttribute("stop-color")||"#000000";K.addColorStop(X,ee)}ne=ne.nextSibling}}(Z,Q),Q},radialgradient:function(Z){}};function N(Z,Q){Z&&Z.__inheritedStyle&&(Q.__inheritedStyle||(Q.__inheritedStyle={}),S(Q.__inheritedStyle,Z.__inheritedStyle))}function z(Z){for(var Q=A(Z).split(k),Y=[],K=0;K<Q.length;K+=2){var ne=parseFloat(Q[K]),X=parseFloat(Q[K+1]);Y.push([ne,X])}return Y}var V={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function B(Z,Q,Y,K){var ne=Q.__inheritedStyle||{},X=Q.type==="text";if(Z.nodeType===1&&(function(ge,fe){var le=ge.getAttribute("transform");if(le){le=le.replace(/,/g," ");var ue=null,he=[];le.replace(H,function(Ae,_e,Pe){he.push(_e,Pe)});for(var pe=he.length-1;pe>0;pe-=2){var ye=he[pe],ve=he[pe-1];switch(ue=ue||o.create(),ve){case"translate":ye=A(ye).split(k),o.translate(ue,ue,[parseFloat(ye[0]),parseFloat(ye[1]||0)]);break;case"scale":ye=A(ye).split(k),o.scale(ue,ue,[parseFloat(ye[0]),parseFloat(ye[1]||ye[0])]);break;case"rotate":ye=A(ye).split(k),o.rotate(ue,ue,parseFloat(ye[0]));break;case"skew":ye=A(ye).split(k),console.warn("Skew transform is not supported yet");break;case"matrix":var ye=A(ye).split(k);ue[0]=parseFloat(ye[0]),ue[1]=parseFloat(ye[1]),ue[2]=parseFloat(ye[2]),ue[3]=parseFloat(ye[3]),ue[4]=parseFloat(ye[4]),ue[5]=parseFloat(ye[5])}}fe.setLocalTransform(ue)}}(Z,Q),M(ne,function(ge){var fe,le=ge.getAttribute("style"),ue={};if(!le)return ue;var he={};for(W.lastIndex=0;(fe=W.exec(le))!=null;)he[fe[1]]=fe[2];for(var pe in V)V.hasOwnProperty(pe)&&he[pe]!=null&&(ue[V[pe]]=he[pe]);return ue}(Z)),!K)){for(var ee in V)if(V.hasOwnProperty(ee)){var ae=Z.getAttribute(ee);ae!=null&&(ne[V[ee]]=ae)}}var oe=X?"textStroke":"stroke";Q.style=Q.style||new c;var se=Q.style;ne.fill!=null&&se.set(X?"textFill":"fill",E(ne.fill,Y)),ne.stroke!=null&&se.set(oe,E(ne.stroke,Y)),I(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ge){ne[ge]!=null&&se.set(ge==="lineWidth"&&X?"textStrokeWidth":ge,parseFloat(ne[ge]))}),ne.textBaseline&&ne.textBaseline!=="auto"||(ne.textBaseline="alphabetic"),ne.textBaseline==="alphabetic"&&(ne.textBaseline="bottom"),ne.textAlign==="start"&&(ne.textAlign="left"),ne.textAlign==="end"&&(ne.textAlign="right"),I(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ge){ne[ge]!=null&&se.set(ge,ne[ge])}),ne.lineDash&&(Q.style.lineDash=A(ne.lineDash).split(k)),se[oe]&&se[oe]!=="none"&&(Q[oe]=!0),Q.__inheritedStyle=ne}var G=/url\(\s*#(.*?)\)/;function E(Z,Q){var Y=Q&&Z&&Z.match(G);return Y?Q[A(Y[1])]:Z}var H=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,W=/([^\s:;]+)\s*:\s*([^:;]+)/g;function $(Z,Q,Y){var K=Math.min(Q/Z.width,Y/Z.height),ne=[-(Z.x+Z.width/2)*K+Q/2,-(Z.y+Z.height/2)*K+Y/2];return{scale:[K,K],position:ne}}C.parseXML=D,C.makeViewBoxTransform=$,C.parseSVG=function(Z,Q){return new L().parse(Z,Q)}},49884:function(U,C,b){var p=b(74582),T=b(93041),w=b(31386),e=Math.sqrt,h=Math.sin,n=Math.cos,t=Math.PI,f=function(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])},a=function(m,_){return(m[0]*_[0]+m[1]*_[1])/(f(m)*f(_))},y=function(m,_){return(m[0]*_[1]<m[1]*_[0]?-1:1)*Math.acos(a(m,_))};function g(m,_,M,S,A,I,k,D,L,R,O){var N=t/180*L,z=n(N)*(m-M)/2+h(N)*(_-S)/2,V=-1*h(N)*(m-M)/2+n(N)*(_-S)/2,B=z*z/(k*k)+V*V/(D*D);B>1&&(k*=e(B),D*=e(B));var G=(A===I?-1:1)*e((k*k*(D*D)-k*k*(V*V)-D*D*(z*z))/(k*k*(V*V)+D*D*(z*z)))||0,E=G*k*V/D,H=-(G*D)*z/k,W=(m+M)/2+n(N)*E-h(N)*H,$=(_+S)/2+h(N)*E+n(N)*H,Z=y([1,0],[(z-E)/k,(V-H)/D]),Q=[(z-E)/k,(V-H)/D],Y=[(-1*z-E)/k,(-1*V-H)/D],K=y(Q,Y);-1>=a(Q,Y)&&(K=t),a(Q,Y)>=1&&(K=0),I===0&&K>0&&(K-=2*t),I===1&&K<0&&(K+=2*t),O.addData(R,W,$,k,D,Z,K,N,I)}var c=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,o=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function d(m,_){var M=function(S){if(!S)return new T;for(var A=0,I=0,k=0,D=0,L=new T,R=T.CMD,O=S.match(c),N=0;N<O.length;N++){for(var z=O[N],V=z.charAt(0),B=z.match(o)||[],G=B.length,E=0;E<G;E++)B[E]=parseFloat(B[E]);for(var H=0;H<G;){var W,$,Z,Q,Y,K,ne,X,ee,ae=A,oe=I;switch(V){case"l":A+=B[H++],I+=B[H++],$=R.L,L.addData($,A,I);break;case"L":A=B[H++],I=B[H++],$=R.L,L.addData($,A,I);break;case"m":A+=B[H++],I+=B[H++],$=R.M,L.addData($,A,I),k=A,D=I,V="l";break;case"M":A=B[H++],I=B[H++],$=R.M,L.addData($,A,I),k=A,D=I,V="L";break;case"h":A+=B[H++],$=R.L,L.addData($,A,I);break;case"H":A=B[H++],$=R.L,L.addData($,A,I);break;case"v":I+=B[H++],$=R.L,L.addData($,A,I);break;case"V":I=B[H++],$=R.L,L.addData($,A,I);break;case"C":$=R.C,L.addData($,B[H++],B[H++],B[H++],B[H++],B[H++],B[H++]),A=B[H-2],I=B[H-1];break;case"c":$=R.C,L.addData($,B[H++]+A,B[H++]+I,B[H++]+A,B[H++]+I,B[H++]+A,B[H++]+I),A+=B[H-2],I+=B[H-1];break;case"S":Z=A,Q=I;var se=L.len(),ge=L.data;W===R.C&&(Z+=A-ge[se-4],Q+=I-ge[se-3]),$=R.C,ae=B[H++],oe=B[H++],A=B[H++],I=B[H++],L.addData($,Z,Q,ae,oe,A,I);break;case"s":Z=A,Q=I;var se=L.len(),ge=L.data;W===R.C&&(Z+=A-ge[se-4],Q+=I-ge[se-3]),$=R.C,ae=A+B[H++],oe=I+B[H++],A+=B[H++],I+=B[H++],L.addData($,Z,Q,ae,oe,A,I);break;case"Q":ae=B[H++],oe=B[H++],A=B[H++],I=B[H++],$=R.Q,L.addData($,ae,oe,A,I);break;case"q":ae=B[H++]+A,oe=B[H++]+I,A+=B[H++],I+=B[H++],$=R.Q,L.addData($,ae,oe,A,I);break;case"T":Z=A,Q=I;var se=L.len(),ge=L.data;W===R.Q&&(Z+=A-ge[se-4],Q+=I-ge[se-3]),A=B[H++],I=B[H++],$=R.Q,L.addData($,Z,Q,A,I);break;case"t":Z=A,Q=I;var se=L.len(),ge=L.data;W===R.Q&&(Z+=A-ge[se-4],Q+=I-ge[se-3]),A+=B[H++],I+=B[H++],$=R.Q,L.addData($,Z,Q,A,I);break;case"A":Y=B[H++],K=B[H++],ne=B[H++],X=B[H++],ee=B[H++],ae=A,oe=I,A=B[H++],g(ae,oe,A,I=B[H++],X,ee,Y,K,ne,$=R.A,L);break;case"a":Y=B[H++],K=B[H++],ne=B[H++],X=B[H++],ee=B[H++],ae=A,oe=I,A+=B[H++],g(ae,oe,A,I+=B[H++],X,ee,Y,K,ne,$=R.A,L)}}(V==="z"||V==="Z")&&($=R.Z,L.addData($),A=k,I=D),W=$}return L.toStatic(),L}(m);return(_=_||{}).buildPath=function(S){if(S.setData){S.setData(M.data);var A=S.getContext();A&&S.rebuildPath(A)}else{var A=S;M.rebuildPath(A)}},_.applyTransform=function(S){w(M,S),this.dirty(!0)},_}C.createFromString=function(m,_){return new p(d(m,_))},C.extendFromString=function(m,_){return p.extend(d(m,_))},C.mergePath=function(m,_){for(var M=[],S=m.length,A=0;A<S;A++){var I=m[A];I.path||I.createPathProxy(),I.__dirtyPath&&I.buildPath(I.path,I.shape,!0),M.push(I.path)}var k=new p(_);return k.createPathProxy(),k.buildPath=function(D){D.appendPath(M);var L=D.getContext();L&&D.rebuildPath(L)},k}},31386:function(U,C,b){var p=b(93041),T=b(76414).applyTransform,w=p.CMD,e=[[],[],[]],h=Math.sqrt,n=Math.atan2;U.exports=function(t,f){var a,y,g,c,o,d,m=t.data,_=w.M,M=w.C,S=w.L,A=w.R,I=w.A,k=w.Q;for(g=0,c=0;g<m.length;){switch(a=m[g++],c=g,y=0,a){case _:case S:y=1;break;case M:y=3;break;case k:y=2;break;case I:var D=f[4],L=f[5],R=h(f[0]*f[0]+f[1]*f[1]),O=h(f[2]*f[2]+f[3]*f[3]),N=n(-f[1]/O,f[0]/R);m[g]*=R,m[g++]+=D,m[g]*=O,m[g++]+=L,m[g++]*=R,m[g++]*=O,m[g++]+=N,m[g++]+=N,g+=2,c=g;break;case A:d[0]=m[g++],d[1]=m[g++],T(d,d,f),m[c++]=d[0],m[c++]=d[1],d[0]+=m[g++],d[1]+=m[g++],T(d,d,f),m[c++]=d[0],m[c++]=d[1]}for(o=0;o<y;o++){var d=e[o];d[0]=m[g++],d[1]=m[g++],T(d,d,f),m[c++]=d[0],m[c++]=d[1]}}}},95057:function(U,C,b){var p=b(45003),T=b(98200),w=b(23405).each;function e(n){return parseInt(n,10)}function h(n,t){T.initVML(),this.root=n,this.storage=t;var f=document.createElement("div"),a=document.createElement("div");f.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",a.style.cssText="position:absolute;left:0;top:0;",n.appendChild(f),this._vmlRoot=a,this._vmlViewport=f,this.resize();var y=t.delFromStorage,g=t.addToStorage;t.delFromStorage=function(c){y.call(t,c),c&&c.onRemove&&c.onRemove(a)},t.addToStorage=function(c){c.onAdd&&c.onAdd(a),g.call(t,c)},this._firstPaint=!0}h.prototype={constructor:h,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},refresh:function(){var n=this.storage.getDisplayList(!0,!0);this._paintList(n)},_paintList:function(n){for(var t=this._vmlRoot,f=0;f<n.length;f++){var a=n[f];a.invisible||a.ignore?(a.__alreadyNotVisible||a.onRemove(t),a.__alreadyNotVisible=!0):(a.__alreadyNotVisible&&a.onAdd(t),a.__alreadyNotVisible=!1,a.__dirty&&(a.beforeBrush&&a.beforeBrush(),(a.brushVML||a.brush).call(a,t),a.afterBrush&&a.afterBrush())),a.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(f,a){var f=f??this._getWidth(),a=a??this._getHeight();if(this._width!==f||this._height!==a){this._width=f,this._height=a;var y=this._vmlViewport.style;y.width=f+"px",y.height=a+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var n=this.root,t=n.currentStyle;return(n.clientWidth||e(t.width))-e(t.paddingLeft)-e(t.paddingRight)|0},_getHeight:function(){var n=this.root,t=n.currentStyle;return(n.clientHeight||e(t.height))-e(t.paddingTop)-e(t.paddingBottom)|0}},w(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(n){h.prototype[n]=function(){p('In IE8.0 VML mode painter not support method "'+n+'"')}}),U.exports=h},98200:function(U,C,b){var p,T=b(23584),w="urn:schemas-microsoft-com:vml",e=typeof window>"u"?null:window,h=!1,n=e&&e.document;if(n&&!T.canvasSupported)try{n.namespaces.zrvml||n.namespaces.add("zrvml",w),p=function(t){return n.createElement("<zrvml:"+t+' class="zrvml">')}}catch{p=function(f){return n.createElement("<"+f+' xmlns="'+w+'" class="zrvml">')}}C.doc=n,C.createNode=function(t){return p(t)},C.initVML=function(){if(!h&&n){h=!0;var t=n.styleSheets;t.length<31?n.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}},26026:function(U,C,b){var p=b(23584),T=b(76414).applyTransform,w=b(28761),e=b(86049),h=b(24570),n=b(69824),t=b(12094),f=b(49181),a=b(91222),y=b(96296),g=b(74582),c=b(93041),o=b(97722),d=b(98200),m=c.CMD,_=Math.round,M=Math.sqrt,S=Math.abs,A=Math.cos,I=Math.sin,k=Math.max;if(!p.canvasSupported){var D,L="progid:DXImageTransform.Microsoft",R=function(he){he.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",he.coordsize="21600,21600",he.coordorigin="0,0"},O=function(he,pe,ye){return"rgb("+[he,pe,ye].join(",")+")"},N=function(he,pe){pe&&he&&pe.parentNode!==he&&he.appendChild(pe)},z=function(he,pe){pe&&he&&pe.parentNode===he&&he.removeChild(pe)},V=function(he,pe,ye){return 1e5*(parseFloat(he)||0)+1e3*(parseFloat(pe)||0)+ye},B=function(he,pe){return typeof he=="string"?he.lastIndexOf("%")>=0?parseFloat(he)/100*pe:parseFloat(he):he},G=function(he,pe,ye){var ve=e.parse(pe);isNaN(ye*=1)&&(ye=1),ve&&(he.color=O(ve[0],ve[1],ve[2]),he.opacity=ye*ve[3])},E=function(he){var pe=e.parse(he);return[O(pe[0],pe[1],pe[2]),pe[3]]},H=function(he,pe,ye){var ve=pe.fill;if(ve!=null)if(ve instanceof o){var Ae,_e=0,Pe=[0,0],Oe=0,ke=1,De=ye.getBoundingRect(),Ce=De.width,Le=De.height;if(ve.type==="linear"){Ae="gradient";var Ve=ye.transform,Ge=[ve.x*Ce,ve.y*Le],Je=[ve.x2*Ce,ve.y2*Le];Ve&&(T(Ge,Ge,Ve),T(Je,Je,Ve)),(_e=180*Math.atan2(Je[0]-Ge[0],Je[1]-Ge[1])/Math.PI)<0&&(_e+=360),_e<1e-6&&(_e=0)}else{Ae="gradientradial";var Ge=[ve.x*Ce,ve.y*Le],Ve=ye.transform,rt=ye.scale,it=Ce,mt=Le;Pe=[(Ge[0]-De.x)/it,(Ge[1]-De.y)/mt],Ve&&T(Ge,Ge,Ve);var ct=k(it/=21600*rt[0],mt/=21600*rt[1]);Oe=0/ct,ke=2*ve.r/ct-Oe}var et=ve.colorStops.slice();et.sort(function(Ee,je){return Ee.offset-je.offset});for(var Ke=et.length,ft=[],at=[],nt=0;nt<Ke;nt++){var yt=et[nt],dt=E(yt.color);at.push(yt.offset*ke+Oe+" "+dt[0]),(nt===0||nt===Ke-1)&&ft.push(dt)}if(Ke>=2){var bt=ft[0][0],vt=ft[1][0],me=ft[0][1]*pe.opacity,Ie=ft[1][1]*pe.opacity;he.type=Ae,he.method="none",he.focus="100%",he.angle=_e,he.color=bt,he.color2=vt,he.colors=at.join(","),he.opacity=Ie,he.opacity2=me}Ae==="radial"&&(he.focusposition=Pe.join(","))}else G(he,ve,pe.opacity)},W=function(he,pe){pe.lineDash!=null&&(he.dashstyle=pe.lineDash.join(" ")),pe.stroke==null||pe.stroke instanceof o||G(he,pe.stroke,pe.opacity)},$=function(he,pe,ye,ve){var Ae=pe==="fill",_e=he.getElementsByTagName(pe)[0];ye[pe]!=null&&ye[pe]!=="none"&&(Ae||!Ae&&ye.lineWidth)?(he[Ae?"filled":"stroked"]="true",ye[pe]instanceof o&&z(he,_e),_e||(_e=d.createNode(pe)),Ae?H(_e,ye,ve):W(_e,ye),N(he,_e)):(he[Ae?"filled":"stroked"]="false",z(he,_e))},Z=[[],[],[]],Q=function(he,pe){var ye=m.M,ve=m.C,Ae=m.L,_e=m.A,Pe=m.Q,Oe=[],ke=he.data,De=he.len();for(Le=0;Le<De;){switch(Ce=ke[Le++],mt="",it=0,Ce){case ye:mt=" m ",it=1,Ve=ke[Le++],Ge=ke[Le++],Z[0][0]=Ve,Z[0][1]=Ge;break;case Ae:mt=" l ",it=1,Ve=ke[Le++],Ge=ke[Le++],Z[0][0]=Ve,Z[0][1]=Ge;break;case Pe:case ve:var Ce,Le,Ve,Ge,Je,rt,it=3,mt=" c ",He=ke[Le++],$e=ke[Le++],ct=ke[Le++],et=ke[Le++];Ce===Pe?(Je=ct,rt=et,ct=(ct+2*He)/3,et=(et+2*$e)/3,He=(Ve+2*He)/3,$e=(Ge+2*$e)/3):(Je=ke[Le++],rt=ke[Le++]),Z[0][0]=He,Z[0][1]=$e,Z[1][0]=ct,Z[1][1]=et,Z[2][0]=Je,Z[2][1]=rt,Ve=Je,Ge=rt;break;case _e:var Ke=0,ft=0,at=1,nt=1,yt=0;pe&&(Ke=pe[4],ft=pe[5],at=M(pe[0]*pe[0]+pe[1]*pe[1]),nt=M(pe[2]*pe[2]+pe[3]*pe[3]),yt=Math.atan2(-pe[1]/nt,pe[0]/at));var dt=ke[Le++],bt=ke[Le++],vt=ke[Le++],me=ke[Le++],Ie=ke[Le++]+yt,Ee=ke[Le++]+Ie+yt;Le++;var je=ke[Le++],ze=dt+A(Ie)*vt,Fe=bt+I(Ie)*me,He=dt+A(Ee)*vt,$e=bt+I(Ee)*me,We=je?" wa ":" at ";1e-4>Math.abs(ze-He)&&(Math.abs(Ee-Ie)>.01?je&&(ze+=.0125):1e-4>Math.abs(Fe-bt)?je&&ze<dt||!je&&ze>dt?$e-=.0125:$e+=.0125:je&&Fe<bt||!je&&Fe>bt?He+=.0125:He-=.0125),Oe.push(We,_(((dt-vt)*at+Ke)*21600-10800),",",_(((bt-me)*nt+ft)*21600-10800),",",_(((dt+vt)*at+Ke)*21600-10800),",",_(((bt+me)*nt+ft)*21600-10800),",",_((ze*at+Ke)*21600-10800),",",_((Fe*nt+ft)*21600-10800),",",_((He*at+Ke)*21600-10800),",",_(($e*nt+ft)*21600-10800)),Ve=He,Ge=$e;break;case m.R:var qe=Z[0],Ye=Z[1];qe[0]=ke[Le++],qe[1]=ke[Le++],Ye[0]=qe[0]+ke[Le++],Ye[1]=qe[1]+ke[Le++],pe&&(T(qe,qe,pe),T(Ye,Ye,pe)),qe[0]=_(21600*qe[0]-10800),Ye[0]=_(21600*Ye[0]-10800),qe[1]=_(21600*qe[1]-10800),Ye[1]=_(21600*Ye[1]-10800),Oe.push(" m ",qe[0],",",qe[1]," l ",Ye[0],",",qe[1]," l ",Ye[0],",",Ye[1]," l ",qe[0],",",Ye[1]);break;case m.Z:Oe.push(" x ")}if(it>0){Oe.push(mt);for(var st=0;st<it;st++){var pt=Z[st];pe&&T(pt,pt,pe),Oe.push(_(21600*pt[0]-10800),",",_(21600*pt[1]-10800),st<it-1?",":"")}}}return Oe.join("")};g.prototype.brushVML=function(he){var pe=this.style,ye=this._vmlEl;ye||(R(ye=d.createNode("shape")),this._vmlEl=ye),$(ye,"fill",pe,this),$(ye,"stroke",pe,this);var ve=this.transform,Ae=ve!=null,_e=ye.getElementsByTagName("stroke")[0];if(_e){var Pe=pe.lineWidth;Ae&&!pe.strokeNoScale&&(Pe*=M(S(ve[0]*ve[3]-ve[1]*ve[2]))),_e.weight=Pe+"px"}var Oe=this.path||(this.path=new c);this.__dirtyPath&&(Oe.beginPath(),Oe.subPixelOptimize=!1,this.buildPath(Oe,this.shape),Oe.toStatic(),this.__dirtyPath=!1),ye.path=Q(Oe,this.transform),ye.style.zIndex=V(this.zlevel,this.z,this.z2),N(he,ye),pe.text!=null?this.drawRectText(he,this.getBoundingRect()):this.removeRectText(he)},g.prototype.onRemove=function(he){z(he,this._vmlEl),this.removeRectText(he)},g.prototype.onAdd=function(he){N(he,this._vmlEl),this.appendRectText(he)},a.prototype.brushVML=function(he){var pe,ye,ve,Ae,_e=this.style,Pe=_e.image;if(typeof(pe=Pe)=="object"&&pe.tagName&&pe.tagName.toUpperCase()==="IMG"){var Oe=Pe.src;if(Oe===this._imageSrc)ye=this._imageWidth,ve=this._imageHeight;else{var ke=Pe.runtimeStyle,De=ke.width,Ce=ke.height;ke.width="auto",ke.height="auto",ye=Pe.width,ve=Pe.height,ke.width=De,ke.height=Ce,this._imageSrc=Oe,this._imageWidth=ye,this._imageHeight=ve}Pe=Oe}else Pe===this._imageSrc&&(ye=this._imageWidth,ve=this._imageHeight);if(Pe){var Le=_e.x||0,Ve=_e.y||0,Ge=_e.width,Je=_e.height,rt=_e.sWidth,it=_e.sHeight,mt=_e.sx||0,ct=_e.sy||0,et=this._vmlEl;et||(R(et=d.doc.createElement("div")),this._vmlEl=et);var Ke=et.style,ft=!1,at=1,nt=1;if(this.transform&&(at=M((Ae=this.transform)[0]*Ae[0]+Ae[1]*Ae[1]),nt=M(Ae[2]*Ae[2]+Ae[3]*Ae[3]),ft=Ae[1]||Ae[2]),ft){var yt=[Le,Ve],dt=[Le+Ge,Ve],bt=[Le,Ve+Je],vt=[Le+Ge,Ve+Je];T(yt,yt,Ae),T(dt,dt,Ae),T(bt,bt,Ae),T(vt,vt,Ae);var me=k(yt[0],dt[0],bt[0],vt[0]),Ie=k(yt[1],dt[1],bt[1],vt[1]),Ee=[];Ee.push("M11=",Ae[0]/at,",","M12=",Ae[2]/nt,",","M21=",Ae[1]/at,",","M22=",Ae[3]/nt,",","Dx=",_(Le*at+Ae[4]),",","Dy=",_(Ve*nt+Ae[5])),Ke.padding="0 "+_(me)+"px "+_(Ie)+"px 0",Ke.filter=L+".Matrix("+Ee.join("")+", SizingMethod=clip)"}else Ae&&(Le=Le*at+Ae[4],Ve=Ve*nt+Ae[5]),Ke.filter="",Ke.left=_(Le)+"px",Ke.top=_(Ve)+"px";var je=this._imageEl,ze=this._cropEl;je||(je=d.doc.createElement("div"),this._imageEl=je);var Fe=je.style;if(rt&&it){if(ye&&ve)Fe.width=_(at*ye*Ge/rt)+"px",Fe.height=_(nt*ve*Je/it)+"px";else{var He=new Image,$e=this;He.onload=function(){He.onload=null,ye=He.width,ve=He.height,Fe.width=_(at*ye*Ge/rt)+"px",Fe.height=_(nt*ve*Je/it)+"px",$e._imageWidth=ye,$e._imageHeight=ve,$e._imageSrc=Pe},He.src=Pe}ze||((ze=d.doc.createElement("div")).style.overflow="hidden",this._cropEl=ze);var We=ze.style;We.width=_((Ge+mt*Ge/rt)*at),We.height=_((Je+ct*Je/it)*nt),We.filter=L+".Matrix(Dx="+-mt*Ge/rt*at+",Dy="+-ct*Je/it*nt+")",ze.parentNode||et.appendChild(ze),je.parentNode!==ze&&ze.appendChild(je)}else Fe.width=_(at*Ge)+"px",Fe.height=_(nt*Je)+"px",et.appendChild(je),ze&&ze.parentNode&&(et.removeChild(ze),this._cropEl=null);var qe="",Ye=_e.opacity;Ye<1&&(qe+=".Alpha(opacity="+_(100*Ye)+") "),Fe.filter=qe+=L+".AlphaImageLoader(src="+Pe+", SizingMethod=scale)",et.style.zIndex=V(this.zlevel,this.z,this.z2),N(he,et),_e.text!=null&&this.drawRectText(he,this.getBoundingRect())}},a.prototype.onRemove=function(he){z(he,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(he)},a.prototype.onAdd=function(he){N(he,this._vmlEl),this.appendRectText(he)};var Y="normal",K={},ne=0,X=document.createElement("div"),ee=function(he){var pe=K[he];if(!pe){ne>100&&(ne=0,K={});var ye,ve=X.style;try{ve.font=he,ye=ve.fontFamily.split(",")[0]}catch{}pe={style:ve.fontStyle||Y,variant:ve.fontVariant||Y,weight:ve.fontWeight||Y,size:0|parseFloat(ve.fontSize||12),family:ye||"Microsoft YaHei"},K[he]=pe,ne++}return pe};h.$override("measureText",function(he,pe){var ye=d.doc;D||((D=ye.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",d.doc.body.appendChild(D));try{D.style.font=pe}catch{}return D.innerHTML="",D.appendChild(ye.createTextNode(he)),{width:D.offsetWidth}});for(var ae=new w,oe=function(he,pe,ye,ve){var Ae,_e,Pe,Oe,ke,De=this.style;this.__dirty&&n.normalizeTextStyle(De,!0);var Ce=De.text;if(Ce!=null&&(Ce+=""),Ce){if(De.rich){var Le=h.parseRichText(Ce,De);Ce=[];for(var Ve=0;Ve<Le.lines.length;Ve++){for(var Ge=Le.lines[Ve].tokens,Je=[],rt=0;rt<Ge.length;rt++)Je.push(Ge[rt].text);Ce.push(Je.join(""))}Ce=Ce.join(`
`)}var it=De.textAlign,mt=De.textVerticalAlign,ct=ee(De.font),et=ct.style+" "+ct.variant+" "+ct.weight+" "+ct.size+'px "'+ct.family+'"';ye=ye||h.getBoundingRect(Ce,et,it,mt,De.textPadding,De.textLineHeight);var Ke=this.transform;if(Ke&&!ve&&(ae.copy(pe),ae.applyTransform(Ke),pe=ae),ve)Ae=pe.x,_e=pe.y;else{var ft=De.textPosition,at=De.textDistance;if(ft instanceof Array)Ae=pe.x+B(ft[0],pe.width),_e=pe.y+B(ft[1],pe.height),it=it||"left";else{var nt=h.adjustTextPositionOnRect(ft,pe,at);Ae=nt.x,_e=nt.y,it=it||nt.textAlign,mt=mt||nt.textVerticalAlign}}Ae=h.adjustTextX(Ae,ye.width,it),_e=h.adjustTextY(_e,ye.height,mt)+ye.height/2;var yt=d.createNode,dt=this._textVmlEl;dt?Oe=(Pe=(ke=dt.firstChild).nextSibling).nextSibling:(dt=yt("line"),Pe=yt("path"),Oe=yt("textpath"),ke=yt("skew"),Oe.style["v-text-align"]="left",R(dt),Pe.textpathok=!0,Oe.on=!0,dt.from="0 0",dt.to="1000 0.05",N(dt,ke),N(dt,Pe),N(dt,Oe),this._textVmlEl=dt);var bt=[Ae,_e],vt=dt.style;Ke&&ve?(T(bt,bt,Ke),ke.on=!0,ke.matrix=Ke[0].toFixed(3)+","+Ke[2].toFixed(3)+","+Ke[1].toFixed(3)+","+Ke[3].toFixed(3)+",0,0",ke.offset=(_(bt[0])||0)+","+(_(bt[1])||0),ke.origin="0 0",vt.left="0px",vt.top="0px"):(ke.on=!1,vt.left=_(Ae)+"px",vt.top=_(_e)+"px"),Oe.string=String(Ce).replace(/&/g,"&amp;").replace(/"/g,"&quot;");try{Oe.style.font=et}catch{}$(dt,"fill",{fill:De.textFill,opacity:De.opacity},this),$(dt,"stroke",{stroke:De.textStroke,opacity:De.opacity,lineDash:De.lineDash},this),dt.style.zIndex=V(this.zlevel,this.z,this.z2),N(he,dt)}},se=function(he){z(he,this._textVmlEl),this._textVmlEl=null},ge=function(he){N(he,this._textVmlEl)},fe=[t,f,a,g,y],le=0;le<fe.length;le++){var ue=fe[le].prototype;ue.drawRectText=oe,ue.removeRectText=se,ue.appendRectText=ge}y.prototype.brushVML=function(he){var pe=this.style;pe.text!=null?this.drawRectText(he,{x:pe.x||0,y:pe.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(he)},y.prototype.onRemove=function(he){this.removeRectText(he)},y.prototype.onAdd=function(he){this.appendRectText(he)}}},50837:function(U,C,b){b(26026),(0,b(98709).registerPainter)("vml",b(95057))},98709:function(U,C,b){var p=b(46490),T=b(23584),w=b(23405),e=b(38109),h=b(39723),n=b(15982),t=b(75276),f=b(67313),a=!T.canvasSupported,y={canvas:n},g={},c=function(o,d,m){m=m||{},this.dom=d,this.id=o;var _=this,M=new h,S=m.renderer;if(a){if(!y.vml)throw Error("You need to require 'zrender/vml/vml' to support IE8");S="vml"}else S&&y[S]||(S="canvas");var A=new y[S](d,M,m,o);this.storage=M,this.painter=A;var I=T.node||T.worker?null:new f(A.getViewportRoot());this.handler=new e(M,A,I,A.root),this.animation=new t({stage:{update:w.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var k=M.delFromStorage,D=M.addToStorage;M.delFromStorage=function(L){k.call(M,L),L&&L.removeSelfFromZr(_)},M.addToStorage=function(L){D.call(M,L),L.addSelfToZr(_)}};c.prototype={constructor:c,getId:function(){return this.id},add:function(o){this.storage.addRoot(o),this._needsRefresh=!0},remove:function(o){this.storage.delRoot(o),this._needsRefresh=!0},configLayer:function(o,d){this.painter.configLayer&&this.painter.configLayer(o,d),this._needsRefresh=!0},setBackgroundColor:function(o){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(o),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var o;this._needsRefresh&&(o=!0,this.refreshImmediately()),this._needsRefreshHover&&(o=!0,this.refreshHoverImmediately()),o&&this.trigger("rendered")},addHover:function(o,d){if(this.painter.addHover){var m=this.painter.addHover(o,d);return this.refreshHover(),m}},removeHover:function(o){this.painter.removeHover&&(this.painter.removeHover(o),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(o){o=o||{},this.painter.resize(o.width,o.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(o,d){return this.painter.pathToImage(o,d)},setCursorStyle:function(o){this.handler.setCursorStyle(o)},findHover:function(o,d){return this.handler.findHover(o,d)},on:function(o,d,m){this.handler.on(o,d,m)},off:function(o,d){this.handler.off(o,d)},trigger:function(o,d){this.handler.trigger(o,d)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var o;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,o=this.id,delete g[o]}},C.version="4.0.7",C.init=function(o,d){var m=new c(p(),o,d);return g[m.id]=m,m},C.dispose=function(o){if(o)o.dispose();else{for(var d in g)g.hasOwnProperty(d)&&g[d].dispose();g={}}return this},C.getInstance=function(o){return g[o]},C.registerPainter=function(o,d){y[o]=d}},24774:function(U,C){Object.defineProperty(C,"default",{enumerable:!0,get:function(){return b}});let b=console},76108:function(U,C,b){Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"BaseTaskQueue",{enumerable:!0,get:function(){return w}});let p=b(88161),T=()=>{};class w{constructor(h={}){let{concurrency:n=1/0,mode:t="auto"}=h;this.concurrency=Math.max(n,0),this.mode=t,this.runningCount=0,this.processingScheduled=!1}createTaskWrapper(h,n){n===void 0&&(n={});let{priority:t=0,signal:f,arg:a}=n,y=new p.TaskWrapper(h,a,t,f);if(f){let g=()=>{this._remove(y),y.abort()};f.addEventListener("abort",g),y.wait().catch(T).finally(()=>f.removeEventListener("abort",g))}return y}enqueue(h,n){let t=this.createTaskWrapper(h,n);return this._add(t),this.consumeAuto(),t.wait()}consume(){this.mode==="manual-sync"&&this.doConsumeSync()}getRunningCount(){return this.runningCount}getTotalCount(){return this.getWaitingCount()+this.getRunningCount()}isEmpty(){return this.getWaitingCount()===0}isFullLoad(){return this.runningCount>=this.concurrency}isIdle(){return!this.isFullLoad()&&this.isEmpty()}stat(h){return{running:this.getRunningCount(),waiting:this.getWaitingCount(),queue:h?this.statQueue(h):void 0}}consumeAuto(){this.mode==="auto"&&this.doConsumeAsync()}doConsumeAsync(){this.processingScheduled||(this.processingScheduled=!0,setImmediate(()=>{this.processingScheduled=!1,this.doConsumeSync()}))}doConsumeSync(){for(;!this.isFullLoad()&&!this.isEmpty();){let h=this._pop();this.runningCount++,(h?h.execute().catch(T):Promise.resolve()).then(()=>this._onTaskDone())}}_onTaskDone(){this.runningCount--,this.consumeAuto()}}},14013:function(U,C,b){Object.defineProperty(C,"__esModule",{value:!0});var p={HibernationController:function(){return n},HibernationTaskQueue:function(){return a}};for(var T in p)Object.defineProperty(C,T,{enumerable:!0,get:p[T]});let w=b(76108),e=b(81320),h=AbortController;class n extends h{constructor(){super(),this.signal.sleeping=!0}wake(){let g=this.signal;!g.aborted&&g.sleeping&&(g.sleeping=!1,g.dispatchEvent(new Event("wake")))}sleep(){let g=this.signal;g.aborted||g.sleeping||(g.sleeping=!0,g.dispatchEvent(new Event("sleep")))}}function t(y){return{...y,concurrency:0,mode:"disabled"}}class f extends w.BaseTaskQueue{constructor(g){super(t(g)),this.set=new Set}consume(){}clear(){this.set.clear()}getWaitingCount(){return this.set.size}statQueue(g){return Array.from(this.set).map(c=>g(c.getFn(),c.getArg()))}_add(g){this.set.add(g)}_remove(g){this.set.delete(g)}_pop(){}}class a extends w.BaseTaskQueue{constructor(g=Object.create(null)){super(t(g)),this.activeQueue=new(g.activeConstructor||e.TaskQueue)(g),this.passiveQueue=new f(g)}enqueue(g,c){c===void 0&&(c={});let{signal:o}=c;return o?this.enqueuePassive(g,c):this.activeQueue.enqueue(g,c)}enqueueActive(g,c){let o=c.signal;return o?new Promise((d,m)=>{let _=new AbortController,M=()=>{_.abort(o.reason)},S=()=>{_.abort(o.reason),d(this.enqueuePassive(g,c))};o.addEventListener("abort",M),o.addEventListener("sleep",S),this.activeQueue.enqueue(g,{...c,signal:_.signal}).finally(()=>{o.removeEventListener("abort",M),o.removeEventListener("sleep",S)}).then(d,m)}):Promise.reject(Error("No signal."))}enqueuePassive(g,c){let o=c.signal;return o?new Promise((d,m)=>{let _=new AbortController,M=()=>{_.abort(o.reason)},S=()=>{_.abort(o.reason),d(this.enqueueActive(g,c))};o.addEventListener("abort",M),o.addEventListener("wake",S),this.passiveQueue.enqueue(g,{...c,signal:_.signal}).finally(()=>{o.removeEventListener("abort",M),o.removeEventListener("wake",S)}).then(d,m)}):Promise.reject(Error("No signal."))}consume(){this.activeQueue.consume()}clear(){this.activeQueue.clear(),this.passiveQueue.clear()}getWaitingCount(){return this.activeQueue.getWaitingCount()+this.passiveQueue.getTotalCount()}getRunningCount(){return this.activeQueue.getRunningCount()}isFullLoad(){return this.activeQueue.isFullLoad()}statQueue(g){return[...this.activeQueue.stat(g).queue||[],...this.passiveQueue.stat(g).queue||[]]}_add(g){}_remove(g){}_pop(){}}},45799:function(U,C,b){function p(T,w){return Object.keys(T).forEach(function(e){e==="default"||Object.prototype.hasOwnProperty.call(w,e)||Object.defineProperty(w,e,{enumerable:!0,get:function(){return T[e]}})}),T}Object.defineProperty(C,"__esModule",{value:!0}),p(b(76108),C),p(b(81320),C),p(b(88809),C),p(b(37395),C),p(b(14013),C)},37395:function(U,C,b){Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"PriorityTaskQueue",{enumerable:!0,get:function(){return T}});let p=b(81320);class T extends p.TaskQueue{_add(e){let h=function(n,t){let f=0,a=n.length;for(;f<a;){let y=f+a>>1;t(n[y])?f=y+1:a=y}return f}(this.queue,n=>n.getPriority()<e.getPriority());this.queue.splice(h,0,e)}_pop(){return this.queue.pop()}}},81320:function(U,C,b){Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"TaskQueue",{enumerable:!0,get:function(){return T}});let p=b(76108);class T extends p.BaseTaskQueue{constructor(e){super(e),this.queue=[]}clear(){this.queue.length=0}getWaitingCount(){return this.queue.length}statQueue(e){return this.queue.map(h=>e(h.getFn(),h.getArg()))}_add(e){this.queue.push(e)}_remove(e){let h=this.queue.indexOf(e);h>=0&&this.queue.splice(h,1)}_pop(){return this.queue.shift()}}},88809:function(U,C,b){Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"TaskStack",{enumerable:!0,get:function(){return T}});let p=b(81320);class T extends p.TaskQueue{_pop(){return this.queue.pop()}}},88161:function(U,C){Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"TaskWrapper",{enumerable:!0,get:function(){return p}});let b=()=>{};class p{constructor(w,e,h,n){this.fn=w,this.arg=e,this.priority=h,this.signal=n,this.executed=!1,this.resolver=b,this.rejecter=b,this.resultPromise=new Promise((t,f)=>{this.resolver=t,this.rejecter=f})}wait(){return this.resultPromise}execute(){if(!this.executed){let w;this.executed=!0;try{w=this.fn(this.arg)}catch(e){w=Promise.reject(e)}w.then(this.resolver,this.rejecter)}return this.wait()}abort(){if(this.signal){let w=Error("aborted",{cause:this.signal.reason});w.name="AbortError",this.rejecter(w)}}getPriority(){return this.priority}getFn(){return this.fn}getArg(){return this.arg}}},79879:function(U,C){function b(e){return 1e-10>Math.abs(e)?0:e}function p(e,h){e=b(e);let n=Math.atan2(h=b(h),e);return n>=0?n:n+2*Math.PI}function T(e,h,n){let t=Math.cos(n),f=Math.sin(n);return b(h)===0&&b(f)===0||b(e)===0&&b(t)===0?n:p(h*t,e*f)}function w(e,h,n,t,f,a){if(e===0&&h===0)return{x:t,y:f};let y=T(e,h,n),g=T(e,h,a);return{x:t-e*Math.cos(y)+e*Math.cos(g),y:f-h*Math.sin(y)+h*Math.sin(g)}}C.accentBorderCallout1={name:"accentBorderCallout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.accentBorderCallout1.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=112500,h.adj4=-38333,h},C.accentBorderCallout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.accentBorderCallout1.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5},C.accentBorderCallout1._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.accentBorderCallout1.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.accentBorderCallout1.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.accentBorderCallout1.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.accentBorderCallout2={name:"accentBorderCallout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.accentBorderCallout2.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=112500,h.adj6=-46667,h},C.accentBorderCallout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],C.accentBorderCallout2.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5},C.accentBorderCallout2._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),h},C.accentBorderCallout2.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.accentBorderCallout2.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.accentBorderCallout2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.accentBorderCallout3={name:"accentBorderCallout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.accentBorderCallout3.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=1e5,h.adj6=-16667,h.adj7=112963,h.adj8=-8333,h},C.accentBorderCallout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],C.accentBorderCallout3.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5,e.y4=e.h*e.adj7/1e5,e.x4=e.w*e.adj8/1e5},C.accentBorderCallout3._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.x4,y:t.y4}),h.push(n),h},C.accentBorderCallout3.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.accentBorderCallout3.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.accentBorderCallout3.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.accentCallout1={name:"accentCallout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.accentCallout1.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=112500,h.adj4=-38333,h},C.accentCallout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.accentCallout1.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5},C.accentCallout1._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.accentCallout1.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.accentCallout1.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.accentCallout1.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.accentCallout2={name:"accentCallout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.accentCallout2.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=112500,h.adj6=-46667,h},C.accentCallout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],C.accentCallout2.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5},C.accentCallout2._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),h},C.accentCallout2.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.accentCallout2.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.accentCallout2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.accentCallout3={name:"accentCallout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.accentCallout3.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=1e5,h.adj6=-16667,h.adj7=112963,h.adj8=-8333,h},C.accentCallout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],C.accentCallout3.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5,e.y4=e.h*e.adj7/1e5,e.x4=e.w*e.adj8/1e5},C.accentCallout3._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.x4,y:t.y4}),h.push(n),h},C.accentCallout3.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.accentCallout3.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.accentCallout3.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.arc={name:"arc",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.arc.getDefaultAdjustValues=e=>{let h={};return h.adj1=162e5,h.adj2=0,h},C.arc.getAdjustValueNames=()=>["adj1","adj2"],C.arc.updateShapeGuides=e=>{e.stAng=Math.max(0,Math.min(e.adj1,21599999)),e.enAng=Math.max(0,Math.min(e.adj2,21599999)),e.sw11=e.enAng+0-e.stAng,e.sw12=e.sw11+216e5-0,e.swAng=e.sw11>0?e.sw11:e.sw12,e.wt1=e.w/2*Math.sin(e.stAng*Math.PI/108e5),e.ht1=e.h/2*Math.cos(e.stAng*Math.PI/108e5),e.dx1=e.w/2*Math.cos(p(e.ht1,e.wt1)),e.dy1=e.h/2*Math.sin(p(e.ht1,e.wt1)),e.wt2=e.w/2*Math.sin(e.enAng*Math.PI/108e5),e.ht2=e.h/2*Math.cos(e.enAng*Math.PI/108e5),e.dx2=e.w/2*Math.cos(p(e.ht2,e.wt2)),e.dy2=e.h/2*Math.sin(p(e.ht2,e.wt2)),e.x1=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+e.dy1-0,e.x2=(e.l+e.r)/2+e.dx2-0,e.y2=(e.t+e.b)/2+e.dy2-0,e.sw0=216e5-e.stAng,e.da1=e.swAng+0-e.sw0,e.g1=Math.max(e.x1,e.x2),e.ir=e.da1>0?e.r:e.g1,e.sw1=54e5-e.stAng,e.sw2=27e6-e.stAng,e.sw3=e.sw1>0?e.sw1:e.sw2,e.da2=e.swAng+0-e.sw3,e.g5=Math.max(e.y1,e.y2),e.ib=e.da2>0?e.b:e.g5,e.sw4=108e5-e.stAng,e.sw5=324e5-e.stAng,e.sw6=e.sw4>0?e.sw4:e.sw5,e.da3=e.swAng+0-e.sw6,e.g9=Math.min(e.x1,e.x2),e.il=e.da3>0?e.l:e.g9,e.sw7=162e5-e.stAng,e.sw8=378e5-e.stAng,e.sw9=e.sw7>0?e.sw7:e.sw8,e.da4=e.swAng+0-e.sw9,e.g13=Math.min(e.y1,e.y2),e.it=e.da4>0?e.t:e.g13,e.cang1=e.stAng+0-54e5,e.cang2=e.enAng+54e5-0,e.cang3=(e.cang1+e.cang2)/2},C.arc._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.arc.getConnections=e=>{let h=[],n;return(n={}).ang=t=>t.cang1,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>t.cang3,n.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>t.cang2,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.arc.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.arc.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.bentArrow={name:"bentArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bentArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h.adj4=43750,h},C.bentArrow.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.bentArrow.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.a3=Math.max(0,Math.min(e.adj3,5e4)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.aw2=Math.min(e.w,e.h)*e.a2/1e5,e.th2=+e.th/2,e.dh2=e.aw2+0-e.th2,e.ah=Math.min(e.w,e.h)*e.a3/1e5,e.bw=e.r+0-e.ah,e.bh=e.b+0-e.dh2,e.bs=Math.min(e.bw,e.bh),e.maxAdj4=1e5*e.bs/Math.min(e.w,e.h),e.a4=Math.max(0,Math.min(e.adj4,e.maxAdj4)),e.bd=Math.min(e.w,e.h)*e.a4/1e5,e.bd3=e.bd+0-e.th,e.bd2=Math.max(e.bd3,0),e.x3=e.th+e.bd2-0,e.x4=e.r+0-e.ah,e.y3=e.dh2+e.th-0,e.y4=e.y3+e.dh2-0,e.y5=e.dh2+e.bd-0,e.y6=e.y3+e.bd2-0},C.bentArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.th,y:t.b}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y4}),h.push(n),(n={}).pos=t=>({x:t.x4,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.bd,y:t.t}),h.push(n),h},C.bentArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x4,y:t.t}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x4,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.th2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.aw2}),h.push(n),h},C.bentArrow.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.bentArrow.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y5},f.push(a),n=a.x,t=a.y,y=e.bd,g=e.bd,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bd,ry:e.bd,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bd,ry:e.bd,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.dh2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.aw2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.bd2,g=e.bd2,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bd2,ry:e.bd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bd2,ry:e.bd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.th,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.bentConnector2={name:"bentConnector2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bentConnector2.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.bentConnector2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.bentConnector3={name:"bentConnector3",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bentConnector3.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h},C.bentConnector3.getAdjustValueNames=()=>["adj1"],C.bentConnector3.updateShapeGuides=e=>{e.x1=e.w*e.adj1/1e5},C.bentConnector3._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),h},C.bentConnector3.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.bentConnector3.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.bentConnector4={name:"bentConnector4",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bentConnector4.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.bentConnector4.getAdjustValueNames=()=>["adj1","adj2"],C.bentConnector4.updateShapeGuides=e=>{e.x1=e.w*e.adj1/1e5,e.x2=(e.x1+e.r)/2,e.y2=e.h*e.adj2/1e5,e.y1=(e.t+e.y2)/2},C.bentConnector4._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.bentConnector4.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.bentConnector4.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.bentConnector5={name:"bentConnector5",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bentConnector5.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h.adj3=5e4,h},C.bentConnector5.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.bentConnector5.updateShapeGuides=e=>{e.x1=e.w*e.adj1/1e5,e.x3=e.w*e.adj3/1e5,e.x2=(e.x1+e.x3)/2,e.y2=e.h*e.adj2/1e5,e.y1=(e.t+e.y2)/2,e.y3=(e.b+e.y2)/2},C.bentConnector5._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),h},C.bentConnector5.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.bentConnector5.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.bentUpArrow={name:"bentUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bentUpArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h},C.bentUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.bentUpArrow.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.a3=Math.max(0,Math.min(e.adj3,5e4)),e.y1=Math.min(e.w,e.h)*e.a3/1e5,e.dx1=Math.min(e.w,e.h)*e.a2/5e4,e.x1=e.r+0-e.dx1,e.dx3=Math.min(e.w,e.h)*e.a2/1e5,e.x3=e.r+0-e.dx3,e.dx2=Math.min(e.w,e.h)*e.a1/2e5,e.x2=e.x3+0-e.dx2,e.x4=e.x3+e.dx2-0,e.dy2=Math.min(e.w,e.h)*e.a1/1e5,e.y2=e.b+0-e.dy2,e.x0=+e.x4/2,e.y3=(e.y2+e.b)/2,e.y15=(e.y1+e.b)/2},C.bentUpArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y1}),h.push(n),h},C.bentUpArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x0,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y15}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y1}),h.push(n),h},C.bentUpArrow.getTextRect=e=>({l:e.l,t:e.y2,r:e.x4,b:e.b}),C.bentUpArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.bevel={name:"bevel",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bevel.getDefaultAdjustValues=e=>{let h={};return h.adj=12500,h},C.bevel.getAdjustValueNames=()=>["adj"],C.bevel.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.y2=e.b+0-e.x1},C.bevel._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.bevel.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.x1}),h.push(n),h},C.bevel.getTextRect=e=>({l:e.x1,t:e.x1,r:e.x2,b:e.y2}),C.bevel.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.x1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"lightenLess"}),n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"lighten"}),n=[],t={action:"M",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"darken"}),n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.x1,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.x1},n.push(t),t.x,t.y,t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"M",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"M",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.blockArc={name:"blockArc",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.blockArc.getDefaultAdjustValues=e=>{let h={};return h.adj1=108e5,h.adj2=0,h.adj3=25e3,h},C.blockArc.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.blockArc.updateShapeGuides=e=>{e.stAng=Math.max(0,Math.min(e.adj1,21599999)),e.istAng=Math.max(0,Math.min(e.adj2,21599999)),e.a3=Math.max(0,Math.min(e.adj3,5e4)),e.sw11=e.istAng+0-e.stAng,e.sw12=e.sw11+216e5-0,e.swAng=e.sw11>0?e.sw11:e.sw12,e.iswAng=0-e.swAng,e.wt1=e.w/2*Math.sin(e.stAng*Math.PI/108e5),e.ht1=e.h/2*Math.cos(e.stAng*Math.PI/108e5),e.wt3=e.w/2*Math.sin(e.istAng*Math.PI/108e5),e.ht3=e.h/2*Math.cos(e.istAng*Math.PI/108e5),e.dx1=e.w/2*Math.cos(p(e.ht1,e.wt1)),e.dy1=e.h/2*Math.sin(p(e.ht1,e.wt1)),e.dx3=e.w/2*Math.cos(p(e.ht3,e.wt3)),e.dy3=e.h/2*Math.sin(p(e.ht3,e.wt3)),e.x1=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+e.dy1-0,e.x3=(e.l+e.r)/2+e.dx3-0,e.y3=(e.t+e.b)/2+e.dy3-0,e.dr=Math.min(e.w,e.h)*e.a3/1e5,e.iwd2=e.w/2+0-e.dr,e.ihd2=e.h/2+0-e.dr,e.wt2=e.iwd2*Math.sin(e.istAng*Math.PI/108e5),e.ht2=e.ihd2*Math.cos(e.istAng*Math.PI/108e5),e.wt4=e.iwd2*Math.sin(e.stAng*Math.PI/108e5),e.ht4=e.ihd2*Math.cos(e.stAng*Math.PI/108e5),e.dx2=e.iwd2*Math.cos(p(e.ht2,e.wt2)),e.dy2=e.ihd2*Math.sin(p(e.ht2,e.wt2)),e.dx4=e.iwd2*Math.cos(p(e.ht4,e.wt4)),e.dy4=e.ihd2*Math.sin(p(e.ht4,e.wt4)),e.x2=(e.l+e.r)/2+e.dx2-0,e.y2=(e.t+e.b)/2+e.dy2-0,e.x4=(e.l+e.r)/2+e.dx4-0,e.y4=(e.t+e.b)/2+e.dy4-0,e.sw0=216e5-e.stAng,e.da1=e.swAng+0-e.sw0,e.g1=Math.max(e.x1,e.x2),e.g2=Math.max(e.x3,e.x4),e.g3=Math.max(e.g1,e.g2),e.ir=e.da1>0?e.r:e.g3,e.sw1=54e5-e.stAng,e.sw2=27e6-e.stAng,e.sw3=e.sw1>0?e.sw1:e.sw2,e.da2=e.swAng+0-e.sw3,e.g5=Math.max(e.y1,e.y2),e.g6=Math.max(e.y3,e.y4),e.g7=Math.max(e.g5,e.g6),e.ib=e.da2>0?e.b:e.g7,e.sw4=108e5-e.stAng,e.sw5=324e5-e.stAng,e.sw6=e.sw4>0?e.sw4:e.sw5,e.da3=e.swAng+0-e.sw6,e.g9=Math.min(e.x1,e.x2),e.g10=Math.min(e.x3,e.x4),e.g11=Math.min(e.g9,e.g10),e.il=e.da3>0?e.l:e.g11,e.sw7=162e5-e.stAng,e.sw8=378e5-e.stAng,e.sw9=e.sw7>0?e.sw7:e.sw8,e.da4=e.swAng+0-e.sw9,e.g13=Math.min(e.y1,e.y2),e.g14=Math.min(e.y3,e.y4),e.g15=Math.min(e.g13,e.g14),e.it=e.da4>0?e.t:e.g15,e.x5=(e.x1+e.x4)/2,e.y5=(e.y1+e.y4)/2,e.x6=(e.x3+e.x2)/2,e.y6=(e.y3+e.y2)/2,e.cang1=e.stAng+0-54e5,e.cang2=e.istAng+54e5-0,e.cang3=(e.cang1+e.cang2)/2},C.blockArc._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.blockArc.getConnections=e=>{let h=[],n;return(n={}).ang=t=>t.cang1,n.pos=t=>({x:t.x5,y:t.y5}),h.push(n),(n={}).ang=t=>t.cang2,n.pos=t=>({x:t.x6,y:t.y6}),h.push(n),(n={}).ang=t=>t.cang3,n.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),h.push(n),h},C.blockArc.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.blockArc.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.iwd2,g=e.ihd2,c=e.istAng,o=e.iswAng%216e5,(m=e.iswAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.borderCallout1={name:"borderCallout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.borderCallout1.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=112500,h.adj4=-38333,h},C.borderCallout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.borderCallout1.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5},C.borderCallout1._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.borderCallout1.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.borderCallout1.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.borderCallout1.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.borderCallout2={name:"borderCallout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.borderCallout2.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=112500,h.adj6=-46667,h},C.borderCallout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],C.borderCallout2.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5},C.borderCallout2._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),h},C.borderCallout2.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.borderCallout2.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.borderCallout2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.borderCallout3={name:"borderCallout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.borderCallout3.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=1e5,h.adj6=-16667,h.adj7=112963,h.adj8=-8333,h},C.borderCallout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],C.borderCallout3.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5,e.y4=e.h*e.adj7/1e5,e.x4=e.w*e.adj8/1e5},C.borderCallout3._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.x4,y:t.y4}),h.push(n),h},C.borderCallout3.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.borderCallout3.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.borderCallout3.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.bracePair={name:"bracePair",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bracePair.getDefaultAdjustValues=e=>{let h={};return h.adj=8333,h},C.bracePair.getAdjustValueNames=()=>["adj"],C.bracePair.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,25e3)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=Math.min(e.w,e.h)*e.a/5e4,e.x3=e.r+0-e.x2,e.x4=e.r+0-e.x1,e.y2=(e.t+e.b)/2+0-e.x1,e.y3=(e.t+e.b)/2+e.x1-0,e.y4=e.b+0-e.x1,e.it=29289*e.x1/1e5,e.il=e.x1+e.it-0,e.ir=e.r+0-e.il,e.ib=e.b+0-e.it},C.bracePair._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.x1}),h.push(n),h},C.bracePair.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.bracePair.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.bracePair.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x2,y:e.b},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.t},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x2,y:e.b},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:e.x3,y:e.t},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.bracketPair={name:"bracketPair",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.bracketPair.getDefaultAdjustValues=e=>{let h={};return h.adj=16667,h},C.bracketPair.getAdjustValueNames=()=>["adj"],C.bracketPair.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.y2=e.b+0-e.x1,e.il=29289*e.x1/1e5,e.ir=e.r+0-e.il,e.ib=e.b+0-e.il},C.bracketPair._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.x1}),h.push(n),h},C.bracketPair.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.bracketPair.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.bracketPair.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.b},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.b},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.callout1={name:"callout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.callout1.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=112500,h.adj4=-38333,h},C.callout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.callout1.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5},C.callout1._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.callout1.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.callout1.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.callout1.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.callout2={name:"callout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.callout2.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=112500,h.adj6=-46667,h},C.callout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],C.callout2.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5},C.callout2._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),h},C.callout2.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.callout2.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.callout2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.callout3={name:"callout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.callout3.getDefaultAdjustValues=e=>{let h={};return h.adj1=18750,h.adj2=-8333,h.adj3=18750,h.adj4=-16667,h.adj5=1e5,h.adj6=-16667,h.adj7=112963,h.adj8=-8333,h},C.callout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],C.callout3.updateShapeGuides=e=>{e.y1=e.h*e.adj1/1e5,e.x1=e.w*e.adj2/1e5,e.y2=e.h*e.adj3/1e5,e.x2=e.w*e.adj4/1e5,e.y3=e.h*e.adj5/1e5,e.x3=e.w*e.adj6/1e5,e.y4=e.h*e.adj7/1e5,e.x4=e.w*e.adj8/1e5},C.callout3._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.x4,y:t.y4}),h.push(n),h},C.callout3.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.callout3.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.callout3.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.can={name:"can",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.can.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h},C.can.getAdjustValueNames=()=>["adj"],C.can.updateShapeGuides=e=>{e.maxAdj=5e4*e.h/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.y1=Math.min(e.w,e.h)*e.a/2e5,e.y2=e.y1+e.y1-0,e.y3=e.b+0-e.y1},C.can._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),h},C.can.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.can.getTextRect=e=>({l:e.l,t:e.y2,r:e.r,b:e.y3}),C.can.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=108e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=108e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"lighten"}),f=[],n=0,t=0,a={action:"M",x:e.r,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=108e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y1},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.chevron={name:"chevron",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.chevron.getDefaultAdjustValues=e=>{let h={};return h.adj=5e4,h},C.chevron.getAdjustValueNames=()=>["adj"],C.chevron.updateShapeGuides=e=>{e.maxAdj=1e5*e.w/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.x3=+e.x2/2,e.dx=e.x2+0-e.x1,e.il=e.dx>0?e.x1:e.l,e.ir=e.dx>0?e.x2:e.r},C.chevron._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.chevron.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.chevron.getTextRect=e=>({l:e.il,t:e.t,r:e.ir,b:e.b}),C.chevron.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.chord={name:"chord",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.chord.getDefaultAdjustValues=e=>{let h={};return h.adj1=27e5,h.adj2=162e5,h},C.chord.getAdjustValueNames=()=>["adj1","adj2"],C.chord.updateShapeGuides=e=>{e.stAng=Math.max(0,Math.min(e.adj1,21599999)),e.enAng=Math.max(0,Math.min(e.adj2,21599999)),e.sw1=e.enAng+0-e.stAng,e.sw2=e.sw1+216e5-0,e.swAng=e.sw1>0?e.sw1:e.sw2,e.wt1=e.w/2*Math.sin(e.stAng*Math.PI/108e5),e.ht1=e.h/2*Math.cos(e.stAng*Math.PI/108e5),e.dx1=e.w/2*Math.cos(p(e.ht1,e.wt1)),e.dy1=e.h/2*Math.sin(p(e.ht1,e.wt1)),e.wt2=e.w/2*Math.sin(e.enAng*Math.PI/108e5),e.ht2=e.h/2*Math.cos(e.enAng*Math.PI/108e5),e.dx2=e.w/2*Math.cos(p(e.ht2,e.wt2)),e.dy2=e.h/2*Math.sin(p(e.ht2,e.wt2)),e.x1=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+e.dy1-0,e.x2=(e.l+e.r)/2+e.dx2-0,e.y2=(e.t+e.b)/2+e.dy2-0,e.x3=(e.x1+e.x2)/2,e.y3=(e.y1+e.y2)/2,e.midAng0=+e.swAng/2,e.midAng=e.stAng+e.midAng0-108e5,e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.chord._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.chord.getConnections=e=>{let h=[],n;return(n={}).ang=t=>t.stAng,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>t.enAng,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>t.midAng,n.pos=t=>({x:t.x3,y:t.y3}),h.push(n),h},C.chord.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.chord.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.circularArrow={name:"circularArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.circularArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=12500,h.adj2=1142319,h.adj3=20457681,h.adj4=108e5,h.adj5=12500,h},C.circularArrow.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5"],C.circularArrow.updateShapeGuides=e=>{e.a5=Math.max(0,Math.min(e.adj5,25e3)),e.maxAdj1=2*e.a5/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.enAng=Math.max(1,Math.min(e.adj3,21599999)),e.stAng=Math.max(0,Math.min(e.adj4,21599999)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.thh=Math.min(e.w,e.h)*e.a5/1e5,e.th2=+e.th/2,e.rw1=e.w/2+e.th2-e.thh,e.rh1=e.h/2+e.th2-e.thh,e.rw2=e.rw1+0-e.th,e.rh2=e.rh1+0-e.th,e.rw3=e.rw2+e.th2-0,e.rh3=e.rh2+e.th2-0,e.wtH=e.rw3*Math.sin(e.enAng*Math.PI/108e5),e.htH=e.rh3*Math.cos(e.enAng*Math.PI/108e5),e.dxH=e.rw3*Math.cos(p(e.htH,e.wtH)),e.dyH=e.rh3*Math.sin(p(e.htH,e.wtH)),e.xH=(e.l+e.r)/2+e.dxH-0,e.yH=(e.t+e.b)/2+e.dyH-0,e.rI=Math.min(e.rw2,e.rh2),e.u1=e.dxH*e.dxH/1,e.u2=e.dyH*e.dyH/1,e.u3=e.rI*e.rI/1,e.u4=e.u1+0-e.u3,e.u5=e.u2+0-e.u3,e.u6=e.u4*e.u5/e.u1,e.u7=+e.u6/e.u2,e.u8=1-e.u7,e.u9=Math.sqrt(e.u8),e.u10=+e.u4/e.dxH,e.u11=+e.u10/e.dyH,e.u12=(1+e.u9)/e.u11,e.u13=108e5*p(1,e.u12)/Math.PI,e.u14=e.u13+216e5-0,e.u15=e.u13>0?e.u13:e.u14,e.u16=e.u15+0-e.enAng,e.u17=e.u16+216e5-0,e.u18=e.u16>0?e.u16:e.u17,e.u19=e.u18+0-108e5,e.u20=e.u18+0-216e5,e.u21=e.u19>0?e.u20:e.u18,e.maxAng=Math.abs(e.u21),e.aAng=Math.max(0,Math.min(e.adj2,e.maxAng)),e.ptAng=e.enAng+e.aAng-0,e.wtA=e.rw3*Math.sin(e.ptAng*Math.PI/108e5),e.htA=e.rh3*Math.cos(e.ptAng*Math.PI/108e5),e.dxA=e.rw3*Math.cos(p(e.htA,e.wtA)),e.dyA=e.rh3*Math.sin(p(e.htA,e.wtA)),e.xA=(e.l+e.r)/2+e.dxA-0,e.yA=(e.t+e.b)/2+e.dyA-0,e.wtE=e.rw1*Math.sin(e.stAng*Math.PI/108e5),e.htE=e.rh1*Math.cos(e.stAng*Math.PI/108e5),e.dxE=e.rw1*Math.cos(p(e.htE,e.wtE)),e.dyE=e.rh1*Math.sin(p(e.htE,e.wtE)),e.xE=(e.l+e.r)/2+e.dxE-0,e.yE=(e.t+e.b)/2+e.dyE-0,e.dxG=e.thh*Math.cos(e.ptAng*Math.PI/108e5),e.dyG=e.thh*Math.sin(e.ptAng*Math.PI/108e5),e.xG=e.xH+e.dxG-0,e.yG=e.yH+e.dyG-0,e.dxB=e.thh*Math.cos(e.ptAng*Math.PI/108e5),e.dyB=e.thh*Math.sin(e.ptAng*Math.PI/108e5),e.xB=e.xH+0-e.dxB,e.yB=e.yH+0-e.dyB,e.sx1=e.xB+0-(e.l+e.r)/2,e.sy1=e.yB+0-(e.t+e.b)/2,e.sx2=e.xG+0-(e.l+e.r)/2,e.sy2=e.yG+0-(e.t+e.b)/2,e.rO=Math.min(e.rw1,e.rh1),e.x1O=e.sx1*e.rO/e.rw1,e.y1O=e.sy1*e.rO/e.rh1,e.x2O=e.sx2*e.rO/e.rw1,e.y2O=e.sy2*e.rO/e.rh1,e.dxO=e.x2O+0-e.x1O,e.dyO=e.y2O+0-e.y1O,e.dO=Math.sqrt(Math.pow(e.dxO,2)+Math.pow(e.dyO,2)+0),e.q1=e.x1O*e.y2O/1,e.q2=e.x2O*e.y1O/1,e.DO=e.q1+0-e.q2,e.q3=e.rO*e.rO/1,e.q4=e.dO*e.dO/1,e.q5=e.q3*e.q4/1,e.q6=e.DO*e.DO/1,e.q7=e.q5+0-e.q6,e.q8=Math.max(e.q7,0),e.sdelO=Math.sqrt(e.q8),e.ndyO=-1*e.dyO/1,e.sdyO=e.ndyO>0?-1:1,e.q9=e.sdyO*e.dxO/1,e.q10=e.q9*e.sdelO/1,e.q11=e.DO*e.dyO/1,e.dxF1=(e.q11+e.q10)/e.q4,e.q12=e.q11+0-e.q10,e.dxF2=+e.q12/e.q4,e.adyO=Math.abs(e.dyO),e.q13=e.adyO*e.sdelO/1,e.q14=-(e.DO*e.dxO/1),e.dyF1=(e.q14+e.q13)/e.q4,e.q15=e.q14+0-e.q13,e.dyF2=+e.q15/e.q4,e.q16=e.x2O+0-e.dxF1,e.q17=e.x2O+0-e.dxF2,e.q18=e.y2O+0-e.dyF1,e.q19=e.y2O+0-e.dyF2,e.q20=Math.sqrt(Math.pow(e.q16,2)+Math.pow(e.q18,2)+0),e.q21=Math.sqrt(Math.pow(e.q17,2)+Math.pow(e.q19,2)+0),e.q22=e.q21+0-e.q20,e.dxF=e.q22>0?e.dxF1:e.dxF2,e.dyF=e.q22>0?e.dyF1:e.dyF2,e.sdxF=e.dxF*e.rw1/e.rO,e.sdyF=e.dyF*e.rh1/e.rO,e.xF=(e.l+e.r)/2+e.sdxF-0,e.yF=(e.t+e.b)/2+e.sdyF-0,e.x1I=e.sx1*e.rI/e.rw2,e.y1I=e.sy1*e.rI/e.rh2,e.x2I=e.sx2*e.rI/e.rw2,e.y2I=e.sy2*e.rI/e.rh2,e.dxI=e.x2I+0-e.x1I,e.dyI=e.y2I+0-e.y1I,e.dI=Math.sqrt(Math.pow(e.dxI,2)+Math.pow(e.dyI,2)+0),e.v1=e.x1I*e.y2I/1,e.v2=e.x2I*e.y1I/1,e.DI=e.v1+0-e.v2,e.v3=e.rI*e.rI/1,e.v4=e.dI*e.dI/1,e.v5=e.v3*e.v4/1,e.v6=e.DI*e.DI/1,e.v7=e.v5+0-e.v6,e.v8=Math.max(e.v7,0),e.sdelI=Math.sqrt(e.v8),e.v9=e.sdyO*e.dxI/1,e.v10=e.v9*e.sdelI/1,e.v11=e.DI*e.dyI/1,e.dxC1=(e.v11+e.v10)/e.v4,e.v12=e.v11+0-e.v10,e.dxC2=+e.v12/e.v4,e.adyI=Math.abs(e.dyI),e.v13=e.adyI*e.sdelI/1,e.v14=-(e.DI*e.dxI/1),e.dyC1=(e.v14+e.v13)/e.v4,e.v15=e.v14+0-e.v13,e.dyC2=+e.v15/e.v4,e.v16=e.x1I+0-e.dxC1,e.v17=e.x1I+0-e.dxC2,e.v18=e.y1I+0-e.dyC1,e.v19=e.y1I+0-e.dyC2,e.v20=Math.sqrt(Math.pow(e.v16,2)+Math.pow(e.v18,2)+0),e.v21=Math.sqrt(Math.pow(e.v17,2)+Math.pow(e.v19,2)+0),e.v22=e.v21+0-e.v20,e.dxC=e.v22>0?e.dxC1:e.dxC2,e.dyC=e.v22>0?e.dyC1:e.dyC2,e.sdxC=e.dxC*e.rw2/e.rI,e.sdyC=e.dyC*e.rh2/e.rI,e.xC=(e.l+e.r)/2+e.sdxC-0,e.yC=(e.t+e.b)/2+e.sdyC-0,e.ist0=108e5*p(e.sdxC,e.sdyC)/Math.PI,e.ist1=e.ist0+216e5-0,e.istAng=e.ist0>0?e.ist0:e.ist1,e.isw1=e.stAng+0-e.istAng,e.isw2=e.isw1+0-216e5,e.iswAng=e.isw1>0?e.isw2:e.isw1,e.p1=e.xF+0-e.xC,e.p2=e.yF+0-e.yC,e.p3=Math.sqrt(Math.pow(e.p1,2)+Math.pow(e.p2,2)+0),e.p4=+e.p3/2,e.p5=e.p4+0-e.thh,e.xGp=e.p5>0?e.xF:e.xG,e.yGp=e.p5>0?e.yF:e.yG,e.xBp=e.p5>0?e.xC:e.xB,e.yBp=e.p5>0?e.yC:e.yB,e.en0=108e5*p(e.sdxF,e.sdyF)/Math.PI,e.en1=e.en0+216e5-0,e.en2=e.en0>0?e.en0:e.en1,e.sw0=e.en2+0-e.stAng,e.sw1=e.sw0+216e5-0,e.swAng=e.sw0>0?e.sw0:e.sw1,e.wtI=e.rw3*Math.sin(e.stAng*Math.PI/108e5),e.htI=e.rh3*Math.cos(e.stAng*Math.PI/108e5),e.dxI=e.rw3*Math.cos(p(e.htI,e.wtI)),e.dyI=e.rh3*Math.sin(p(e.htI,e.wtI)),e.xI=(e.l+e.r)/2+e.dxI-0,e.yI=(e.t+e.b)/2+e.dyI-0,e.aI=e.stAng+0-54e5,e.aA=e.ptAng+54e5-0,e.aB=e.ptAng+108e5-0,e.idx=e.rw1*Math.cos(27e5*Math.PI/108e5),e.idy=e.rh1*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.circularArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.xA,y:t.yA}),h.push(n),(n={}).pos=t=>({x:t.xE,y:t.yE}),h.push(n),(n={}).pos=t=>({x:t.xF,y:t.yF}),h.push(n),(n={}).pos=t=>({x:t.xB,y:t.yB}),h.push(n),h},C.circularArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>t.aI,n.pos=t=>({x:t.xI,y:t.yI}),h.push(n),(n={}).ang=t=>t.ptAng,n.pos=t=>({x:t.xGp,y:t.yGp}),h.push(n),(n={}).ang=t=>t.aA,n.pos=t=>({x:t.xA,y:t.yA}),h.push(n),(n={}).ang=t=>t.aB,n.pos=t=>({x:t.xBp,y:t.yBp}),h.push(n),h},C.circularArrow.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.circularArrow.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.xE,y:e.yE},f.push(a),n=a.x,t=a.y,y=e.rw1,g=e.rh1,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.rw1,ry:e.rh1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.rw1,ry:e.rh1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.xGp,y:e.yGp},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.xA,y:e.yA},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.xBp,y:e.yBp},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.xC,y:e.yC},f.push(a),n=a.x,t=a.y,y=e.rw2,g=e.rh2,c=e.istAng,o=e.iswAng%216e5,(m=e.iswAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.rw2,ry:e.rh2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.rw2,ry:e.rh2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.cloud={name:"cloud",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.cloud.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.g29,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.g28}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.g27,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.g30}),h.push(n),h},C.cloud.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.cloud.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:3900*e.w/43200,y:14370*e.h/43200},f.push(a),n=a.x,t=a.y,y=6753,g=9190,c=-11429249,(m=(o=7426832)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5333,g=7267,c=-8646143,(m=(o=5396714)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7267*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7267*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4365,g=5945,c=-8748475,(m=(o=5983381)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4857,g=6595,c=-7859164,(m=(o=7034504)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5333,g=7273,c=-4722533,(m=(o=6541615)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=6775,g=9220,c=-2776035,(m=(o=7816140)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6775*e.w/43200,ry:9220*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6775*e.w/43200,ry:9220*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5785,g=7867,c=37501,(m=(o=6842e3)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=6752,g=9215,c=1347096,(m=(o=6910353)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=7720,g=10543,c=3974558,(m=(o=4542661)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:7720*e.w/43200,ry:10543*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:7720*e.w/43200,ry:10543*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4360,g=5918,c=-16496525,(m=(o=8804134)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4345,g=5945,c=-14809710,(m=(o=9151131)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:4693*e.w/43200,y:26177*e.h/43200},f.push(a),n=a.x,t=a.y,y=4345,g=5945,c=5204520,(m=(o=1585770)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:6928*e.w/43200,y:34899*e.h/43200},f.push(a),n=a.x,t=a.y,y=4360,g=5918,c=4416628,(m=(o=686848)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:16478*e.w/43200,y:39090*e.h/43200},f.push(a),n=a.x,t=a.y,y=6752,g=9215,c=8257449,(m=(o=844866)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:28827*e.w/43200,y:34751*e.h/43200},f.push(a),n=a.x,t=a.y,y=6752,g=9215,c=387196,(m=(o=959901)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:34129*e.w/43200,y:22954*e.h/43200},f.push(a),n=a.x,t=a.y,y=5785,g=7867,c=-4217541,(m=(o=4255042)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:41798*e.w/43200,y:15354*e.h/43200},f.push(a),n=a.x,t=a.y,y=5333,g=7273,c=1819082,(m=(o=1665090)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:38324*e.w/43200,y:5426*e.h/43200},f.push(a),n=a.x,t=a.y,y=4857,g=6595,c=-824660,(m=(o=891534)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:29078*e.w/43200,y:3952*e.h/43200},f.push(a),n=a.x,t=a.y,y=4857,g=6595,c=-8950887,(m=(o=1091722)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:22141*e.w/43200,y:4720*e.h/43200},f.push(a),n=a.x,t=a.y,y=4365,g=5945,c=-9809656,(m=(o=1061181)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:14e3*e.w/43200,y:5192*e.h/43200},f.push(a),n=a.x,t=a.y,y=6753,g=9190,c=-4002417,(m=(o=739161)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:4127*e.w/43200,y:15789*e.h/43200},f.push(a),n=a.x,t=a.y,y=6753,g=9190,c=9459261,(m=(o=711490)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.cloud.updateShapeGuides=e=>{e.il=2977*e.w/21600,e.it=3262*e.h/21600,e.ir=17087*e.w/21600,e.ib=17337*e.h/21600,e.g27=67*e.w/21600,e.g28=21577*e.h/21600,e.g29=21582*e.w/21600,e.g30=1235*e.h/21600},C.cloudCallout={name:"cloudCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.cloudCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=-20833,h.adj2=62500,h},C.cloudCallout.getAdjustValueNames=()=>["adj1","adj2"],C.cloudCallout.updateShapeGuides=e=>{e.dxPos=e.w*e.adj1/1e5,e.dyPos=e.h*e.adj2/1e5,e.xPos=(e.l+e.r)/2+e.dxPos-0,e.yPos=(e.t+e.b)/2+e.dyPos-0,e.ht=e.h/2*Math.cos(p(e.dxPos,e.dyPos)),e.wt=e.w/2*Math.sin(p(e.dxPos,e.dyPos)),e.g2=e.w/2*Math.cos(p(e.ht,e.wt)),e.g3=e.h/2*Math.sin(p(e.ht,e.wt)),e.g4=(e.l+e.r)/2+e.g2-0,e.g5=(e.t+e.b)/2+e.g3-0,e.g6=e.g4+0-e.xPos,e.g7=e.g5+0-e.yPos,e.g8=Math.sqrt(Math.pow(e.g6,2)+Math.pow(e.g7,2)+0),e.g9=6600*Math.min(e.w,e.h)/21600,e.g10=e.g8+0-e.g9,e.g11=+e.g10/3,e.g12=1800*Math.min(e.w,e.h)/21600,e.g13=e.g11+e.g12-0,e.g14=e.g13*e.g6/e.g8,e.g15=e.g13*e.g7/e.g8,e.g16=e.g14+e.xPos-0,e.g17=e.g15+e.yPos-0,e.g18=4800*Math.min(e.w,e.h)/21600,e.g19=2*e.g11/1,e.g20=e.g18+e.g19-0,e.g21=e.g20*e.g6/e.g8,e.g22=e.g20*e.g7/e.g8,e.g23=e.g21+e.xPos-0,e.g24=e.g22+e.yPos-0,e.g25=1200*Math.min(e.w,e.h)/21600,e.g26=600*Math.min(e.w,e.h)/21600,e.x23=e.xPos+e.g26-0,e.x24=e.g16+e.g25-0,e.x25=e.g23+e.g12-0,e.il=2977*e.w/21600,e.it=3262*e.h/21600,e.ir=17087*e.w/21600,e.ib=17337*e.h/21600,e.g27=67*e.w/21600,e.g28=21577*e.h/21600,e.g29=21582*e.w/21600,e.g30=1235*e.h/21600,e.pang=108e5*p(e.dxPos,e.dyPos)/Math.PI},C.cloudCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.cloudCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>108e5,n.pos=t=>({x:t.g27,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.g28}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.g29,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.g30}),h.push(n),(n={}).ang=t=>t.pang,n.pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.cloudCallout.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.cloudCallout.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:3900*e.w/43200,y:14370*e.h/43200},f.push(a),n=a.x,t=a.y,y=6753,g=9190,c=-11429249,(m=(o=7426832)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5333,g=7267,c=-8646143,(m=(o=5396714)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7267*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7267*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4365,g=5945,c=-8748475,(m=(o=5983381)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4857,g=6595,c=-7859164,(m=(o=7034504)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5333,g=7273,c=-4722533,(m=(o=6541615)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=6775,g=9220,c=-2776035,(m=(o=7816140)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6775*e.w/43200,ry:9220*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6775*e.w/43200,ry:9220*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5785,g=7867,c=37501,(m=(o=6842e3)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=6752,g=9215,c=1347096,(m=(o=6910353)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=7720,g=10543,c=3974558,(m=(o=4542661)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:7720*e.w/43200,ry:10543*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:7720*e.w/43200,ry:10543*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4360,g=5918,c=-16496525,(m=(o=8804134)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=4345,g=5945,c=-14809710,(m=(o=9151131)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x23,y:e.yPos},f.push(a),n=a.x,t=a.y,y=e.g26,g=e.g26,c=0,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.g26,ry:e.g26,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.g26,ry:e.g26,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x24,y:e.g17},f.push(a),n=a.x,t=a.y,y=e.g25,g=e.g25,c=0,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.g25,ry:e.g25,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.g25,ry:e.g25,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x25,y:e.g24},f.push(a),n=a.x,t=a.y,y=e.g12,g=e.g12,c=0,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.g12,ry:e.g12,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.g12,ry:e.g12,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:4693*e.w/43200,y:26177*e.h/43200},f.push(a),n=a.x,t=a.y,y=4345,g=5945,c=5204520,(m=(o=1585770)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4345*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:6928*e.w/43200,y:34899*e.h/43200},f.push(a),n=a.x,t=a.y,y=4360,g=5918,c=4416628,(m=(o=686848)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4360*e.w/43200,ry:5918*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:16478*e.w/43200,y:39090*e.h/43200},f.push(a),n=a.x,t=a.y,y=6752,g=9215,c=8257449,(m=(o=844866)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:28827*e.w/43200,y:34751*e.h/43200},f.push(a),n=a.x,t=a.y,y=6752,g=9215,c=387196,(m=(o=959901)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6752*e.w/43200,ry:9215*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:34129*e.w/43200,y:22954*e.h/43200},f.push(a),n=a.x,t=a.y,y=5785,g=7867,c=-4217541,(m=(o=4255042)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5785*e.w/43200,ry:7867*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:41798*e.w/43200,y:15354*e.h/43200},f.push(a),n=a.x,t=a.y,y=5333,g=7273,c=1819082,(m=(o=1665090)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5333*e.w/43200,ry:7273*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:38324*e.w/43200,y:5426*e.h/43200},f.push(a),n=a.x,t=a.y,y=4857,g=6595,c=-824660,(m=(o=891534)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:29078*e.w/43200,y:3952*e.h/43200},f.push(a),n=a.x,t=a.y,y=4857,g=6595,c=-8950887,(m=(o=1091722)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4857*e.w/43200,ry:6595*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:22141*e.w/43200,y:4720*e.h/43200},f.push(a),n=a.x,t=a.y,y=4365,g=5945,c=-9809656,(m=(o=1061181)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:4365*e.w/43200,ry:5945*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:14e3*e.w/43200,y:5192*e.h/43200},f.push(a),n=a.x,t=a.y,y=6753,g=9190,c=-4002417,(m=(o=739161)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:4127*e.w/43200,y:15789*e.h/43200},f.push(a),n=a.x,t=a.y,y=6753,g=9190,c=9459261,(m=(o=711490)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,43200*n/e.w,43200*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:6753*e.w/43200,ry:9190*e.h/43200,x:d.x*e.w/43200,y:d.y*e.h/43200,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.corner={name:"corner",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.corner.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.corner.getAdjustValueNames=()=>["adj1","adj2"],C.corner.updateShapeGuides=e=>{e.maxAdj1=1e5*e.h/Math.min(e.w,e.h),e.maxAdj2=1e5*e.w/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.x1=Math.min(e.w,e.h)*e.a2/1e5,e.dy1=Math.min(e.w,e.h)*e.a1/1e5,e.y1=e.b+0-e.dy1,e.cx1=+e.x1/2,e.cy1=(e.y1+e.b)/2,e.d=e.w+0-e.h,e.it=e.d>0?e.y1:e.t,e.ir=e.d>0?e.r:e.x1},C.corner._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.corner.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.cy1}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.cx1,y:t.t}),h.push(n),h},C.corner.getTextRect=e=>({l:e.l,t:e.it,r:e.ir,b:e.b}),C.corner.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.cube={name:"cube",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.cube.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h},C.cube.getAdjustValueNames=()=>["adj"],C.cube.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,1e5)),e.y1=Math.min(e.w,e.h)*e.a/1e5,e.y4=e.b+0-e.y1,e.y2=+e.y4/2,e.y3=(e.y1+e.b)/2,e.x4=e.r+0-e.y1,e.x2=+e.x4/2,e.x3=(e.y1+e.r)/2},C.cube._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),h},C.cube.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.y1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y3}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y2}),h.push(n),h},C.cube.getTextRect=e=>({l:e.l,t:e.y1,r:e.x4,b:e.b}),C.cube.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.y1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"lightenLess"}),n=[],t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.y1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"M",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.curvedConnector2={name:"curvedConnector2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedConnector2.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedConnector2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"C",x1:e.w/2,y1:e.t,x2:e.r,y2:e.h/2,x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.curvedConnector3={name:"curvedConnector3",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedConnector3.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h},C.curvedConnector3.getAdjustValueNames=()=>["adj1"],C.curvedConnector3.updateShapeGuides=e=>{e.x2=e.w*e.adj1/1e5,e.x1=(e.l+e.x2)/2,e.x3=(e.r+e.x2)/2,e.y3=3*e.h/4},C.curvedConnector3._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),h},C.curvedConnector3.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedConnector3.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"C",x1:e.x1,y1:e.t,x2:e.x2,y2:e.h/4,x:e.x2,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"C",x1:e.x2,y1:e.y3,x2:e.x3,y2:e.b,x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.curvedConnector4={name:"curvedConnector4",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedConnector4.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.curvedConnector4.getAdjustValueNames=()=>["adj1","adj2"],C.curvedConnector4.updateShapeGuides=e=>{e.x2=e.w*e.adj1/1e5,e.x1=(e.l+e.x2)/2,e.x3=(e.r+e.x2)/2,e.x4=(e.x2+e.x3)/2,e.x5=(e.x3+e.r)/2,e.y4=e.h*e.adj2/1e5,e.y1=(e.t+e.y4)/2,e.y2=(e.t+e.y1)/2,e.y3=(e.y1+e.y4)/2,e.y5=(e.b+e.y4)/2},C.curvedConnector4._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.y4}),h.push(n),h},C.curvedConnector4.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedConnector4.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"C",x1:e.x1,y1:e.t,x2:e.x2,y2:e.y2,x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"C",x1:e.x2,y1:e.y3,x2:e.x4,y2:e.y4,x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"C",x1:e.x5,y1:e.y4,x2:e.r,y2:e.y5,x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.curvedConnector5={name:"curvedConnector5",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedConnector5.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h.adj3=5e4,h},C.curvedConnector5.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.curvedConnector5.updateShapeGuides=e=>{e.x3=e.w*e.adj1/1e5,e.x6=e.w*e.adj3/1e5,e.x1=(e.x3+e.x6)/2,e.x2=(e.l+e.x3)/2,e.x4=(e.x3+e.x1)/2,e.x5=(e.x6+e.x1)/2,e.x7=(e.x6+e.r)/2,e.y4=e.h*e.adj2/1e5,e.y1=(e.t+e.y4)/2,e.y2=(e.t+e.y1)/2,e.y3=(e.y1+e.y4)/2,e.y5=(e.b+e.y4)/2,e.y6=(e.y5+e.y4)/2,e.y7=(e.y5+e.b)/2},C.curvedConnector5._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x3,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.y4}),h.push(n),(n={}).pos=t=>({x:t.x6,y:t.y5}),h.push(n),h},C.curvedConnector5.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedConnector5.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"C",x1:e.x2,y1:e.t,x2:e.x3,y2:e.y2,x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"C",x1:e.x3,y1:e.y3,x2:e.x4,y2:e.y4,x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"C",x1:e.x5,y1:e.y4,x2:e.x6,y2:e.y6,x:e.x6,y:e.y5},n.push(t),t.x,t.y,t={action:"C",x1:e.x6,y1:e.y7,x2:e.x7,y2:e.b,x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.curvedDownArrow={name:"curvedDownArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedDownArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=5e4,h.adj3=25e3,h},C.curvedDownArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.curvedDownArrow.updateShapeGuides=e=>{e.maxAdj2=5e4*e.w/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.aw=Math.min(e.w,e.h)*e.a2/1e5,e.q1=(e.th+e.aw)/4,e.wR=e.w/2+0-e.q1,e.q7=2*e.wR/1,e.q8=e.q7*e.q7/1,e.q9=e.th*e.th/1,e.q10=e.q8+0-e.q9,e.q11=Math.sqrt(e.q10),e.idy=e.q11*e.h/e.q7,e.maxAdj3=1e5*e.idy/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.ah=Math.min(e.w,e.h)*e.adj3/1e5,e.x3=e.wR+e.th-0,e.q2=e.h*e.h/1,e.q3=e.ah*e.ah/1,e.q4=e.q2+0-e.q3,e.q5=Math.sqrt(e.q4),e.dx=e.q5*e.wR/e.h,e.x5=e.wR+e.dx-0,e.x7=e.x3+e.dx-0,e.q6=e.aw+0-e.th,e.dh=+e.q6/2,e.x4=e.x5+0-e.dh,e.x8=e.x7+e.dh-0,e.aw2=+e.aw/2,e.x6=e.r+0-e.aw2,e.y1=e.b+0-e.ah,e.swAng=108e5*p(e.ah,e.dx)/Math.PI,e.mswAng=0-e.swAng,e.iy=e.b+0-e.idy,e.ix=(e.wR+e.x3)/2,e.q12=+e.th/2,e.dang2=108e5*p(e.idy,e.q12)/Math.PI,e.stAng=162e5+e.swAng-0,e.stAng2=162e5-e.dang2,e.swAng2=e.dang2+0-54e5,e.swAng3=54e5+e.dang2-0},C.curvedDownArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x7,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x4,y:t.b}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y1}),h.push(n),h},C.curvedDownArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.ix,y:t.t}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.q12,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x4,y:t.y1}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x6,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x8,y:t.y1}),h.push(n),h},C.curvedDownArrow.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedDownArrow.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x6,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x5,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng,o=e.mswAng%216e5,(m=e.mswAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.t},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=162e5,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.ix,y:e.iy},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng2,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=108e5,o=e.swAng3%216e5,(m=e.swAng3!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.ix,y:e.iy},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng2,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.t},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=162e5,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x5,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng,o=e.mswAng%216e5,(m=e.mswAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.curvedLeftArrow={name:"curvedLeftArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedLeftArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=5e4,h.adj3=25e3,h},C.curvedLeftArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.curvedLeftArrow.updateShapeGuides=e=>{e.maxAdj2=5e4*e.h/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.a1=Math.max(0,Math.min(e.adj1,e.a2)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.aw=Math.min(e.w,e.h)*e.a2/1e5,e.q1=(e.th+e.aw)/4,e.hR=e.h/2+0-e.q1,e.q7=2*e.hR/1,e.q8=e.q7*e.q7/1,e.q9=e.th*e.th/1,e.q10=e.q8+0-e.q9,e.q11=Math.sqrt(e.q10),e.idx=e.q11*e.w/e.q7,e.maxAdj3=1e5*e.idx/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.ah=Math.min(e.w,e.h)*e.a3/1e5,e.y3=e.hR+e.th-0,e.q2=e.w*e.w/1,e.q3=e.ah*e.ah/1,e.q4=e.q2+0-e.q3,e.q5=Math.sqrt(e.q4),e.dy=e.q5*e.hR/e.w,e.y5=e.hR+e.dy-0,e.y7=e.y3+e.dy-0,e.q6=e.aw+0-e.th,e.dh=+e.q6/2,e.y4=e.y5+0-e.dh,e.y8=e.y7+e.dh-0,e.aw2=+e.aw/2,e.y6=e.b+0-e.aw2,e.x1=e.l+e.ah-0,e.swAng=108e5*p(e.ah,e.dy)/Math.PI,e.mswAng=0-e.swAng,e.ix=e.l+e.idx-0,e.iy=(e.hR+e.y3)/2,e.q12=+e.th/2,e.dang2=108e5*p(e.idx,e.q12)/Math.PI,e.swAng2=e.dang2+0-e.swAng,e.swAng3=e.swAng+e.dang2-0,e.stAng3=0-e.dang2},C.curvedLeftArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y5}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y4}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.b}),h.push(n),h},C.curvedLeftArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.q12}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y4}),h.push(n),(n={}).ang=t=>t.cd3,n.pos=t=>({x:t.l,y:t.y6}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.y8}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.iy}),h.push(n),h},C.curvedLeftArrow.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedLeftArrow.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y5},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=e.swAng,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w,g=e.hR,c=e.stAng3,o=e.swAng3%216e5,(m=e.swAng3!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y8},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.r,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.r,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=0,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y8},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y5},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=e.swAng,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.curvedRightArrow={name:"curvedRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedRightArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=5e4,h.adj3=25e3,h},C.curvedRightArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.curvedRightArrow.updateShapeGuides=e=>{e.maxAdj2=5e4*e.h/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.a1=Math.max(0,Math.min(e.adj1,e.a2)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.aw=Math.min(e.w,e.h)*e.a2/1e5,e.q1=(e.th+e.aw)/4,e.hR=e.h/2+0-e.q1,e.q7=2*e.hR/1,e.q8=e.q7*e.q7/1,e.q9=e.th*e.th/1,e.q10=e.q8+0-e.q9,e.q11=Math.sqrt(e.q10),e.idx=e.q11*e.w/e.q7,e.maxAdj3=1e5*e.idx/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.ah=Math.min(e.w,e.h)*e.a3/1e5,e.y3=e.hR+e.th-0,e.q2=e.w*e.w/1,e.q3=e.ah*e.ah/1,e.q4=e.q2+0-e.q3,e.q5=Math.sqrt(e.q4),e.dy=e.q5*e.hR/e.w,e.y5=e.hR+e.dy-0,e.y7=e.y3+e.dy-0,e.q6=e.aw+0-e.th,e.dh=+e.q6/2,e.y4=e.y5+0-e.dh,e.y8=e.y7+e.dh-0,e.aw2=+e.aw/2,e.y6=e.b+0-e.aw2,e.x1=e.r+0-e.ah,e.swAng=108e5*p(e.ah,e.dy)/Math.PI,e.stAng=108e5-e.swAng,e.mswAng=0-e.swAng,e.ix=e.r+0-e.idx,e.iy=(e.hR+e.y3)/2,e.q12=+e.th/2,e.dang2=108e5*p(e.idx,e.q12)/Math.PI,e.swAng2=e.dang2+0-54e5,e.swAng3=54e5+e.dang2-0,e.stAng3=108e5-e.dang2},C.curvedRightArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y5}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y4}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.b}),h.push(n),h},C.curvedRightArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.iy}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.y8}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y6}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x1,y:t.y4}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.q12}),h.push(n),h},C.curvedRightArrow.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedRightArrow.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.hR},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=108e5,o=e.mswAng%216e5,(m=e.mswAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y8},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y7},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.r,y:e.th},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=162e5,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w,g=e.hR,c=e.stAng3,o=e.swAng3%216e5,(m=e.swAng3!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:e.hR},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=108e5,o=e.mswAng%216e5,(m=e.mswAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y8},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y7},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.hR},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.th},f.push(a),n=a.x,t=a.y,y=e.w,g=e.hR,c=162e5,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.curvedUpArrow={name:"curvedUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.curvedUpArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=5e4,h.adj3=25e3,h},C.curvedUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.curvedUpArrow.updateShapeGuides=e=>{e.maxAdj2=5e4*e.w/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.aw=Math.min(e.w,e.h)*e.a2/1e5,e.q1=(e.th+e.aw)/4,e.wR=e.w/2+0-e.q1,e.q7=2*e.wR/1,e.q8=e.q7*e.q7/1,e.q9=e.th*e.th/1,e.q10=e.q8+0-e.q9,e.q11=Math.sqrt(e.q10),e.idy=e.q11*e.h/e.q7,e.maxAdj3=1e5*e.idy/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.ah=Math.min(e.w,e.h)*e.adj3/1e5,e.x3=e.wR+e.th-0,e.q2=e.h*e.h/1,e.q3=e.ah*e.ah/1,e.q4=e.q2+0-e.q3,e.q5=Math.sqrt(e.q4),e.dx=e.q5*e.wR/e.h,e.x5=e.wR+e.dx-0,e.x7=e.x3+e.dx-0,e.q6=e.aw+0-e.th,e.dh=+e.q6/2,e.x4=e.x5+0-e.dh,e.x8=e.x7+e.dh-0,e.aw2=+e.aw/2,e.x6=e.r+0-e.aw2,e.y1=e.t+e.ah-0,e.swAng=108e5*p(e.ah,e.dx)/Math.PI,e.mswAng=0-e.swAng,e.iy=e.t+e.idy-0,e.ix=(e.wR+e.x3)/2,e.q12=+e.th/2,e.dang2=108e5*p(e.idy,e.q12)/Math.PI,e.swAng2=e.dang2+0-e.swAng,e.mswAng2=0-e.swAng2,e.stAng3=54e5-e.swAng,e.swAng3=e.swAng+e.dang2-0,e.stAng2=54e5-e.dang2},C.curvedUpArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x7,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x4,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y1}),h.push(n),h},C.curvedUpArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x6,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x4,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.q12,y:t.t}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ix,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x8,y:t.y1}),h.push(n),h},C.curvedUpArrow.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.curvedUpArrow.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x6,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng3,o=e.swAng3%216e5,(m=e.swAng3!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng2,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.wR,y:e.b},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.th,y:e.t},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.ix,y:e.iy},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng2,o=e.swAng2%216e5,(m=e.swAng2!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=e.stAng3,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.wR,y:e.b},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.th,y:e.t},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.h,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.h,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.decagon={name:"decagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.decagon.getDefaultAdjustValues=e=>{let h={};return h.vf=105146,h},C.decagon.getAdjustValueNames=()=>["vf"],C.decagon.updateShapeGuides=e=>{e.shd2=e.h/2*e.vf/1e5,e.dx1=e.w/2*Math.cos(216e4*Math.PI/108e5),e.dx2=e.w/2*Math.cos(432e4*Math.PI/108e5),e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.dy1=e.shd2*Math.sin(432e4*Math.PI/108e5),e.dy2=e.shd2*Math.sin(216e4*Math.PI/108e5),e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+e.dy2-0,e.y4=(e.t+e.b)/2+e.dy1-0},C.decagon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.y4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.y1}),h.push(n),h},C.decagon.getTextRect=e=>({l:e.x1,t:e.y2,r:e.x4,b:e.y3}),C.decagon.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.diagStripe={name:"diagStripe",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.diagStripe.getDefaultAdjustValues=e=>{let h={};return h.adj=5e4,h},C.diagStripe.getAdjustValueNames=()=>["adj"],C.diagStripe.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,1e5)),e.x2=e.w*e.a/1e5,e.x1=+e.x2/2,e.x3=(e.x2+e.r)/2,e.y2=e.h*e.a/1e5,e.y1=+e.y2/2,e.y3=(e.y2+e.b)/2},C.diagStripe._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),h},C.diagStripe.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),h},C.diagStripe.getTextRect=e=>({l:e.l,t:e.t,r:e.x3,b:e.y3}),C.diagStripe.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.diamond={name:"diamond",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.diamond.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.diamond.getTextRect=e=>({l:e.w/4,t:e.h/4,r:e.ir,b:e.ib}),C.diamond.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.diamond.updateShapeGuides=e=>{e.ir=3*e.w/4,e.ib=3*e.h/4},C.dodecagon={name:"dodecagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.dodecagon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y1}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y3}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),h},C.dodecagon.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x4,b:e.y4}),C.dodecagon.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y3},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.dodecagon.updateShapeGuides=e=>{e.x1=2894*e.w/21600,e.x2=7906*e.w/21600,e.x3=13694*e.w/21600,e.x4=18706*e.w/21600,e.y1=2894*e.h/21600,e.y2=7906*e.h/21600,e.y3=13694*e.h/21600,e.y4=18706*e.h/21600},C.donut={name:"donut",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.donut.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h},C.donut.getAdjustValueNames=()=>["adj"],C.donut.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dr=Math.min(e.w,e.h)*e.a/1e5,e.iwd2=e.w/2+0-e.dr,e.ihd2=e.h/2+0-e.dr,e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.donut._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.dr,y:(t.t+t.b)/2}),h.push(n),h},C.donut.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),h},C.donut.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.donut.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.dr,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.iwd2,g=e.ihd2,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.iwd2,g=e.ihd2,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.iwd2,g=e.ihd2,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.iwd2,g=e.ihd2,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.doubleWave={name:"doubleWave",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.doubleWave.getDefaultAdjustValues=e=>{let h={};return h.adj1=6250,h.adj2=0,h},C.doubleWave.getAdjustValueNames=()=>["adj1","adj2"],C.doubleWave.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,12500)),e.a2=Math.max(-1e4,Math.min(e.adj2,1e4)),e.y1=e.h*e.a1/1e5,e.dy2=10*e.y1/3,e.y2=e.y1+0-e.dy2,e.y3=e.y1+e.dy2-0,e.y4=e.b+0-e.y1,e.y5=e.y4+0-e.dy2,e.y6=e.y4+e.dy2-0,e.dx1=e.w*e.a2/1e5,e.of2=e.w*e.a2/5e4,e.x1=Math.abs(e.dx1),e.dx2=e.of2>0?0:e.of2,e.x2=e.l+0-e.dx2,e.dx8=e.of2>0?e.of2:0,e.x8=e.r+0-e.dx8,e.dx3=(e.dx2+e.x8)/6,e.x3=e.x2+e.dx3-0,e.dx4=(e.dx2+e.x8)/3,e.x4=e.x2+e.dx4-0,e.x5=(e.x2+e.x8)/2,e.x6=e.x5+e.dx3-0,e.x7=(e.x6+e.x8)/2,e.x9=e.l+e.dx8-0,e.x15=e.r+e.dx2-0,e.x10=e.x9+e.dx3-0,e.x11=e.x9+e.dx4-0,e.x12=(e.x9+e.x15)/2,e.x13=e.x12+e.dx3-0,e.x14=(e.x13+e.x15)/2,e.x16=e.r+0-e.x1,e.xAdj=(e.l+e.r)/2+e.dx1-0,e.il=Math.max(e.x2,e.x9),e.ir=Math.min(e.x8,e.x15),e.it=e.h*e.a1/5e4,e.ib=e.b+0-e.it},C.doubleWave._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.xAdj,y:t.b}),h.push(n),h},C.doubleWave.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.x12,y:t.y1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x5,y:t.y4}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x16,y:(t.t+t.b)/2}),h.push(n),h},C.doubleWave.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.doubleWave.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"C",x1:e.x3,y1:e.y2,x2:e.x4,y2:e.y3,x:e.x5,y:e.y1},n.push(t),t.x,t.y,t={action:"C",x1:e.x6,y1:e.y2,x2:e.x7,y2:e.y3,x:e.x8,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x15,y:e.y4},n.push(t),t.x,t.y,t={action:"C",x1:e.x14,y1:e.y6,x2:e.x13,y2:e.y5,x:e.x12,y:e.y4},n.push(t),t.x,t.y,t={action:"C",x1:e.x11,y1:e.y6,x2:e.x10,y2:e.y5,x:e.x9,y:e.y4},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.downArrow={name:"downArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.downArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.downArrow.getAdjustValueNames=()=>["adj1","adj2"],C.downArrow.updateShapeGuides=e=>{e.maxAdj2=1e5*e.h/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.dy1=Math.min(e.w,e.h)*e.a2/1e5,e.y1=e.b+0-e.dy1,e.dx1=e.w*e.a1/2e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+e.dx1-0,e.dy2=e.x1*e.dy1/(e.w/2),e.y2=e.y1+e.dy2-0},C.downArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),h},C.downArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y1}),h.push(n),h},C.downArrow.getTextRect=e=>({l:e.x1,t:e.t,r:e.x2,b:e.y2}),C.downArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.upArrow={name:"upArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.upArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.upArrow.getAdjustValueNames=()=>["adj1","adj2"],C.upArrow.updateShapeGuides=e=>{e.maxAdj2=1e5*e.h/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.dy2=Math.min(e.w,e.h)*e.a2/1e5,e.y2=e.t+e.dy2-0,e.dx1=e.w*e.a1/2e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+e.dx1-0,e.dy1=e.x1*e.dy2/(e.w/2),e.y1=e.y2+0-e.dy1},C.upArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.b}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),h},C.upArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y2}),h.push(n),h},C.upArrow.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x2,b:e.b}),C.upArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.downArrowCallout={name:"downArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.downArrowCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h.adj4=64977,h},C.downArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.downArrowCallout.updateShapeGuides=e=>{e.maxAdj2=5e4*e.w/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.maxAdj3=1e5*e.h/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.q2=e.a3*Math.min(e.w,e.h)/e.h,e.maxAdj4=1e5-e.q2,e.a4=Math.max(0,Math.min(e.adj4,e.maxAdj4)),e.dx1=Math.min(e.w,e.h)*e.a2/1e5,e.dx2=Math.min(e.w,e.h)*e.a1/2e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.dy3=Math.min(e.w,e.h)*e.a3/1e5,e.y3=e.b+0-e.dy3,e.y2=e.h*e.a4/1e5,e.y1=+e.y2/2},C.downArrowCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.b}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),h},C.downArrowCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y1}),h.push(n),h},C.downArrowCallout.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.y2}),C.downArrowCallout.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.ellipse={name:"ellipse",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.ellipse.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),h},C.ellipse.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.ellipse.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.ellipse.updateShapeGuides=e=>{e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.ellipseRibbon={name:"ellipseRibbon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.ellipseRibbon.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=5e4,h.adj3=12500,h},C.ellipseRibbon.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.ellipseRibbon.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(25e3,Math.min(e.adj2,75e3)),e.q10=1e5-e.a1,e.q11=+e.q10/2,e.q12=e.a1+0-e.q11,e.minAdj3=Math.max(0,e.q12),e.a3=Math.max(e.minAdj3,Math.min(e.adj3,e.a1)),e.dx2=e.w*e.a2/2e5,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=e.x2+e.w/8-0,e.x4=e.r+0-e.x3,e.x5=e.r+0-e.x2,e.x6=e.r+0-e.w/8,e.dy1=e.h*e.a3/1e5,e.f1=4*e.dy1/e.w,e.q1=e.x3*e.x3/e.w,e.q2=e.x3+0-e.q1,e.y1=e.f1*e.q2/1,e.cx1=+e.x3/2,e.cy1=e.f1*e.cx1/1,e.cx2=e.r+0-e.cx1,e.q1=e.h*e.a1/1e5,e.dy3=e.q1+0-e.dy1,e.q3=e.x2*e.x2/e.w,e.q4=e.x2+0-e.q3,e.q5=e.f1*e.q4/1,e.y3=e.q5+e.dy3-0,e.q6=e.dy1+e.dy3-e.y3,e.q7=e.q6+e.dy1-0,e.cy3=e.q7+e.dy3-0,e.rh=e.b+0-e.q1,e.q8=14*e.dy1/16,e.y2=(e.q8+e.rh)/2,e.y5=e.q5+e.rh-0,e.y6=e.y3+e.rh-0,e.cx4=+e.x2/2,e.q9=e.f1*e.cx4/1,e.cy4=e.q9+e.rh-0,e.cx5=e.r+0-e.cx4,e.cy6=e.cy3+e.rh-0,e.y7=e.y1+e.dy3-0,e.cy7=e.q1+e.q1-e.y7,e.y8=e.b+0-e.dy1},C.ellipseRibbon._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.q1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y8}),h.push(n),h},C.ellipseRibbon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.q1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/8,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:t.y2}),h.push(n),h},C.ellipseRibbon.getTextRect=e=>({l:e.x2,t:e.q1,r:e.x5,b:e.y6}),C.ellipseRibbon.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx1,y1:e.cy1,x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy3,x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx2,y1:e.cy1,x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.rh},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx5,y1:e.cy4,x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y6},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy6,x:e.x2,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx4,y1:e.cy4,x:e.l,y:e.rh},n.push(t),t.x,t.y,t={action:"L",x:e.w/8,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x3,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy3,x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y7},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy7,x:e.x3,y:e.y7},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx1,y1:e.cy1,x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy3,x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx2,y1:e.cy1,x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.rh},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx5,y1:e.cy4,x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y6},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy6,x:e.x2,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx4,y1:e.cy4,x:e.l,y:e.rh},n.push(t),t.x,t.y,t={action:"L",x:e.w/8,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"M",x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"M",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y7},n.push(t),t.x,t.y,t={action:"M",x:e.x4,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.ellipseRibbon2={name:"ellipseRibbon2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.ellipseRibbon2.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=5e4,h.adj3=12500,h},C.ellipseRibbon2.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.ellipseRibbon2.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(25e3,Math.min(e.adj2,75e3)),e.q10=1e5-e.a1,e.q11=+e.q10/2,e.q12=e.a1+0-e.q11,e.minAdj3=Math.max(0,e.q12),e.a3=Math.max(e.minAdj3,Math.min(e.adj3,e.a1)),e.dx2=e.w*e.a2/2e5,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=e.x2+e.w/8-0,e.x4=e.r+0-e.x3,e.x5=e.r+0-e.x2,e.x6=e.r+0-e.w/8,e.dy1=e.h*e.a3/1e5,e.f1=4*e.dy1/e.w,e.q1=e.x3*e.x3/e.w,e.q2=e.x3+0-e.q1,e.u1=e.f1*e.q2/1,e.y1=e.b+0-e.u1,e.cx1=+e.x3/2,e.cu1=e.f1*e.cx1/1,e.cy1=e.b+0-e.cu1,e.cx2=e.r+0-e.cx1,e.q1=e.h*e.a1/1e5,e.dy3=e.q1+0-e.dy1,e.q3=e.x2*e.x2/e.w,e.q4=e.x2+0-e.q3,e.q5=e.f1*e.q4/1,e.u3=e.q5+e.dy3-0,e.y3=e.b+0-e.u3,e.q6=e.dy1+e.dy3-e.u3,e.q7=e.q6+e.dy1-0,e.cu3=e.q7+e.dy3-0,e.cy3=e.b+0-e.cu3,e.rh=e.b+0-e.q1,e.q8=14*e.dy1/16,e.u2=(e.q8+e.rh)/2,e.y2=e.b+0-e.u2,e.u5=e.q5+e.rh-0,e.y5=e.b+0-e.u5,e.u6=e.u3+e.rh-0,e.y6=e.b+0-e.u6,e.cx4=+e.x2/2,e.q9=e.f1*e.cx4/1,e.cu4=e.q9+e.rh-0,e.cy4=e.b+0-e.cu4,e.cx5=e.r+0-e.cx4,e.cu6=e.cu3+e.rh-0,e.cy6=e.b+0-e.cu6,e.u7=e.u1+e.dy3-0,e.y7=e.b+0-e.u7,e.cu7=e.q1+e.q1-e.u7,e.cy7=e.b+0-e.cu7},C.ellipseRibbon2._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.rh}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.dy1}),h.push(n),h},C.ellipseRibbon2.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/8,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.rh}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:t.y2}),h.push(n),h},C.ellipseRibbon2.getTextRect=e=>({l:e.x2,t:e.y6,r:e.x5,b:e.rh}),C.ellipseRibbon2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx1,y1:e.cy1,x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy3,x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx2,y1:e.cy1,x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.q1},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx5,y1:e.cy4,x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y6},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy6,x:e.x2,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx4,y1:e.cy4,x:e.l,y:e.q1},n.push(t),t.x,t.y,t={action:"L",x:e.w/8,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x3,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy3,x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y7},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy7,x:e.x3,y:e.y7},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.w/8,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.q1},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx4,y1:e.cy4,x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y6},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy6,x:e.x5,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx5,y1:e.cy4,x:e.r,y:e.q1},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx2,y1:e.cy1,x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"Q",x1:(e.l+e.r)/2,y1:e.cy3,x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"Q",x1:e.cx1,y1:e.cy1,x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"M",x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"M",x:e.x3,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"M",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y7},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.flowChartAlternateProcess={name:"flowChartAlternateProcess",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartAlternateProcess.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartAlternateProcess.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.flowChartAlternateProcess.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:Math.min(e.w,e.h)/6},f.push(a),n=a.x,t=a.y,y=Math.min(e.w,e.h)/6,g=Math.min(e.w,e.h)/6,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,y=Math.min(e.w,e.h)/6,g=Math.min(e.w,e.h)/6,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,y=Math.min(e.w,e.h)/6,g=Math.min(e.w,e.h)/6,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:Math.min(e.w,e.h)/6,y:e.b},f.push(a),n=a.x,t=a.y,y=Math.min(e.w,e.h)/6,g=Math.min(e.w,e.h)/6,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:Math.min(e.w,e.h)/6,ry:Math.min(e.w,e.h)/6,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartAlternateProcess.updateShapeGuides=e=>{e.x2=e.r+0-Math.min(e.w,e.h)/6,e.y2=e.b+0-Math.min(e.w,e.h)/6,e.il=Math.min(e.w,e.h)/6*29289/1e5,e.ir=e.r+0-e.il,e.ib=e.b+0-e.il},C.flowChartCollate={name:"flowChartCollate",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartCollate.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),h},C.flowChartCollate.getTextRect=e=>({l:e.w/4,t:e.h/4,r:e.ir,b:e.ib}),C.flowChartCollate.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartCollate.updateShapeGuides=e=>{e.ir=3*e.w/4,e.ib=3*e.h/4},C.flowChartConnector={name:"flowChartConnector",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartConnector.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),h},C.flowChartConnector.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.flowChartConnector.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartConnector.updateShapeGuides=e=>{e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.flowChartDecision={name:"flowChartDecision",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartDecision.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartDecision.getTextRect=e=>({l:e.w/4,t:e.h/4,r:e.ir,b:e.ib}),C.flowChartDecision.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartDecision.updateShapeGuides=e=>{e.ir=3*e.w/4,e.ib=3*e.h/4},C.flowChartDelay={name:"flowChartDelay",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartDelay.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartDelay.getTextRect=e=>({l:e.l,t:e.it,r:e.ir,b:e.ib}),C.flowChartDelay.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartDelay.updateShapeGuides=e=>{e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.flowChartDisplay={name:"flowChartDisplay",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartDisplay.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartDisplay.getTextRect=e=>({l:e.w/6,t:e.t,r:e.x2,b:e.b}),C.flowChartDisplay.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o;return f=[],n=0,t=0,a={action:"M",x:0*e.w/6,y:3*e.h/6},f.push(a),n=a.x,t=a.y,a={action:"L",x:+e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,a={action:"L",x:5*e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,y=162e5,(o=(g=108e5)==0)&&(g=108e5),c=w(1,3,y*Math.PI/108e5,6*n/e.w,6*t/e.h,(y+g)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:c.x*e.w/6,y:c.y*e.h/6,a:0,b:+(Math.abs(g)>108e5),c:g<0?0:1},f.push(a),o&&(n=a.x,t=a.y,y-=108e5,c=w(1,3,y*Math.PI/108e5,n,t,(y+(g=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:c.x*e.w/6,y:c.y*e.h/6,a:0,b:+(Math.abs(g)>108e5),c:g<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:+e.w/6,y:6*e.h/6},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartDisplay.updateShapeGuides=e=>{e.x2=5*e.w/6},C.flowChartDocument={name:"flowChartDocument",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartDocument.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartDocument.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.y1}),C.flowChartDocument.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:17322*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:10800*e.w/21600,y1:17322*e.h/21600,x2:10800*e.w/21600,y2:23922*e.h/21600,x:0*e.w/21600,y:20172*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartDocument.updateShapeGuides=e=>{e.y1=17322*e.h/21600,e.y2=20172*e.h/21600},C.flowChartExtract={name:"flowChartExtract",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartExtract.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/4,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartExtract.getTextRect=e=>({l:e.w/4,t:(e.t+e.b)/2,r:e.x2,b:e.b}),C.flowChartExtract.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartExtract.updateShapeGuides=e=>{e.x2=3*e.w/4},C.flowChartInputOutput={name:"flowChartInputOutput",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartInputOutput.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x4,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/10,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartInputOutput.getTextRect=e=>({l:e.w/5,t:e.t,r:e.x5,b:e.b}),C.flowChartInputOutput.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:+e.w/5,y:0*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:5*e.w/5,y:0*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:4*e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartInputOutput.updateShapeGuides=e=>{e.x3=2*e.w/5,e.x4=3*e.w/5,e.x5=4*e.w/5,e.x6=9*e.w/10},C.flowChartInternalStorage={name:"flowChartInternalStorage",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartInternalStorage.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartInternalStorage.getTextRect=e=>({l:e.w/8,t:e.h/8,r:e.r,b:e.b}),C.flowChartInternalStorage.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:+e.w/8,y:0*e.h/8},n.push(t),t.x,t.y,t={action:"L",x:+e.w/8,y:8*e.h/8},n.push(t),t.x,t.y,t={action:"M",x:0*e.w/8,y:+e.h/8},n.push(t),t.x,t.y,t={action:"L",x:8*e.w/8,y:+e.h/8},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:0*e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.flowChartMagneticDisk={name:"flowChartMagneticDisk",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartMagneticDisk.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.h/3}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartMagneticDisk.getTextRect=e=>({l:e.l,t:e.h/3,r:e.r,b:e.y3}),C.flowChartMagneticDisk.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:0*e.w/6,y:+e.h/6},f.push(a),n=a.x,t=a.y,y=3,g=1,c=108e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:6*e.w/6,y:5*e.h/6},f.push(a),n=a.x,t=a.y,y=3,g=1,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:6*e.w/6,y:+e.h/6},f.push(a),n=a.x,t=a.y,y=3,g=1,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),f=[],n=0,t=0,a={action:"M",x:0*e.w/6,y:+e.h/6},f.push(a),n=a.x,t=a.y,y=3,g=1,c=108e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:6*e.w/6,y:5*e.h/6},f.push(a),n=a.x,t=a.y,y=3,g=1,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:3*e.w/6,ry:+e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.flowChartMagneticDisk.updateShapeGuides=e=>{e.y3=5*e.h/6},C.flowChartMagneticDrum={name:"flowChartMagneticDrum",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartMagneticDrum.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartMagneticDrum.getTextRect=e=>({l:e.w/6,t:e.t,r:e.x2,b:e.b}),C.flowChartMagneticDrum.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:+e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,a={action:"L",x:5*e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,y=1,g=3,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:+e.w/6,y:6*e.h/6},f.push(a),n=a.x,t=a.y,y=1,g=3,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:5*e.w/6,y:6*e.h/6},f.push(a),n=a.x,t=a.y,y=1,g=3,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),f=[],n=0,t=0,a={action:"M",x:+e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,a={action:"L",x:5*e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,y=1,g=3,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:+e.w/6,y:6*e.h/6},f.push(a),n=a.x,t=a.y,y=1,g=3,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.flowChartMagneticDrum.updateShapeGuides=e=>{e.x2=2*e.w/3},C.flowChartMagneticTape={name:"flowChartMagneticTape",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartMagneticTape.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartMagneticTape.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.flowChartMagneticTape.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:(e.l+e.r)/2,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,o=e.ang1%216e5,(m=e.ang1!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.ib},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartMagneticTape.updateShapeGuides=e=>{e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0,e.ang1=108e5*p(e.w,e.h)/Math.PI},C.flowChartManualInput={name:"flowChartManualInput",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartManualInput.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.hd10}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartManualInput.getTextRect=e=>({l:e.l,t:e.h/5,r:e.r,b:e.b}),C.flowChartManualInput.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/5,y:+e.h/5},n.push(t),t.x,t.y,t={action:"L",x:5*e.w/5,y:0*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:5*e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartManualOperation={name:"flowChartManualOperation",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartManualOperation.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/10,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartManualOperation.getTextRect=e=>({l:e.w/5,t:e.t,r:e.x3,b:e.b}),C.flowChartManualOperation.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/5,y:0*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:5*e.w/5,y:0*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:4*e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:+e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartManualOperation.updateShapeGuides=e=>{e.x3=4*e.w/5,e.x4=9*e.w/10},C.flowChartMerge={name:"flowChartMerge",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartMerge.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/4,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartMerge.getTextRect=e=>({l:e.w/4,t:e.t,r:e.x2,b:(e.t+e.b)/2}),C.flowChartMerge.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartMerge.updateShapeGuides=e=>{e.x2=3*e.w/4},C.flowChartMultidocument={name:"flowChartMultidocument",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartMultidocument.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x4,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y8}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartMultidocument.getTextRect=e=>({l:e.l,t:e.y2,r:e.x5,b:e.y8}),C.flowChartMultidocument.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/21600,y:20782*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:9298*e.w/21600,y1:23542*e.h/21600,x2:9298*e.w/21600,y2:18022*e.h/21600,x:18595*e.w/21600,y:18022*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18595*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:1532*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:1532*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2e4*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2e4*e.w/21600,y:16252*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:19298*e.w/21600,y1:16252*e.h/21600,x2:18595*e.w/21600,y2:16352*e.h/21600,x:18595*e.w/21600,y:16352*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18595*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:2972*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2972*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:14392*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:20800*e.w/21600,y1:14392*e.h/21600,x2:2e4*e.w/21600,y2:14467*e.h/21600,x:2e4*e.w/21600,y:14467*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2e4*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:0*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18595*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18595*e.w/21600,y:18022*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:9298*e.w/21600,y1:18022*e.h/21600,x2:9298*e.w/21600,y2:23542*e.h/21600,x:0*e.w/21600,y:20782*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:1532*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:1532*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2e4*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2e4*e.w/21600,y:16252*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:19298*e.w/21600,y1:16252*e.h/21600,x2:18595*e.w/21600,y2:16352*e.h/21600,x:18595*e.w/21600,y:16352*e.h/21600},n.push(t),t.x,t.y,t={action:"M",x:2972*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2972*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:14392*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:20800*e.w/21600,y1:14392*e.h/21600,x2:2e4*e.w/21600,y2:14467*e.h/21600,x:2e4*e.w/21600,y:14467*e.h/21600},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:0*e.w/21600,y:20782*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:9298*e.w/21600,y1:23542*e.h/21600,x2:9298*e.w/21600,y2:18022*e.h/21600,x:18595*e.w/21600,y:18022*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18595*e.w/21600,y:16352*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:18595*e.w/21600,y1:16352*e.h/21600,x2:19298*e.w/21600,y2:16252*e.h/21600,x:2e4*e.w/21600,y:16252*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2e4*e.w/21600,y:14467*e.h/21600},n.push(t),t.x,t.y,t={action:"C",x1:2e4*e.w/21600,y1:14467*e.h/21600,x2:20800*e.w/21600,y2:14392*e.h/21600,x:21600*e.w/21600,y:14392*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2972*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:2972*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:1532*e.w/21600,y:1815*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:1532*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/21600,y:3675*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"none"}),h},C.flowChartMultidocument.updateShapeGuides=e=>{e.y2=3675*e.h/21600,e.y8=20782*e.h/21600,e.x3=9298*e.w/21600,e.x4=12286*e.w/21600,e.x5=18595*e.w/21600},C.flowChartOffpageConnector={name:"flowChartOffpageConnector",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartOffpageConnector.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartOffpageConnector.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.y1}),C.flowChartOffpageConnector.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/10,y:0*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:10*e.w/10,y:0*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:10*e.w/10,y:8*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:5*e.w/10,y:10*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/10,y:8*e.h/10},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartOffpageConnector.updateShapeGuides=e=>{e.y1=4*e.h/5},C.flowChartOnlineStorage={name:"flowChartOnlineStorage",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartOnlineStorage.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartOnlineStorage.getTextRect=e=>({l:e.w/6,t:e.t,r:e.x2,b:e.b}),C.flowChartOnlineStorage.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:+e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,a={action:"L",x:6*e.w/6,y:0*e.h/6},f.push(a),n=a.x,t=a.y,y=1,g=3,c=162e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:+e.w/6,y:6*e.h/6},f.push(a),n=a.x,t=a.y,y=1,g=3,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,6*n/e.w,6*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:+e.w/6,ry:3*e.h/6,x:d.x*e.w/6,y:d.y*e.h/6,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartOnlineStorage.updateShapeGuides=e=>{e.x2=5*e.w/6},C.flowChartOr={name:"flowChartOr",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartOr.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),h},C.flowChartOr.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.flowChartOr.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:(e.l+e.r)/2,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.flowChartOr.updateShapeGuides=e=>{e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.flowChartPredefinedProcess={name:"flowChartPredefinedProcess",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartPredefinedProcess.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartPredefinedProcess.getTextRect=e=>({l:e.w/8,t:e.t,r:e.x2,b:e.b}),C.flowChartPredefinedProcess.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:+e.w/8,y:0*e.h/8},n.push(t),t.x,t.y,t={action:"L",x:+e.w/8,y:8*e.h/8},n.push(t),t.x,t.y,t={action:"M",x:7*e.w/8,y:0*e.h/8},n.push(t),t.x,t.y,t={action:"L",x:7*e.w/8,y:8*e.h/8},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:0*e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.flowChartPredefinedProcess.updateShapeGuides=e=>{e.x2=7*e.w/8},C.flowChartPreparation={name:"flowChartPreparation",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartPreparation.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartPreparation.getTextRect=e=>({l:e.w/5,t:e.t,r:e.x2,b:e.b}),C.flowChartPreparation.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/10,y:5*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/10,y:0*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:8*e.w/10,y:0*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:10*e.w/10,y:5*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:8*e.w/10,y:10*e.h/10},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/10,y:10*e.h/10},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartPreparation.updateShapeGuides=e=>{e.x2=4*e.w/5},C.flowChartProcess={name:"flowChartProcess",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartProcess.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartProcess.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.flowChartProcess.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:0*e.h/1},n.push(t),t.x,t.y,t={action:"L",x:+e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/1,y:+e.h/1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartPunchedCard={name:"flowChartPunchedCard",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartPunchedCard.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartPunchedCard.getTextRect=e=>({l:e.l,t:e.h/5,r:e.r,b:e.b}),C.flowChartPunchedCard.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/5,y:+e.h/5},n.push(t),t.x,t.y,t={action:"L",x:+e.w/5,y:0*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:5*e.w/5,y:0*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:5*e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/5,y:5*e.h/5},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.flowChartPunchedTape={name:"flowChartPunchedTape",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartPunchedTape.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.hd10}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartPunchedTape.getTextRect=e=>({l:e.l,t:e.h/5,r:e.r,b:e.ib}),C.flowChartPunchedTape.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:0*e.w/20,y:2*e.h/20},f.push(a),n=a.x,t=a.y,y=5,g=2,c=108e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,20*n/e.w,20*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5,g=2,c=108e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,20*n/e.w,20*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:20*e.w/20,y:18*e.h/20},f.push(a),n=a.x,t=a.y,y=5,g=2,c=0,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,20*n/e.w,20*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=5,g=2,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,20*n/e.w,20*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:5*e.w/20,ry:2*e.h/20,x:d.x*e.w/20,y:d.y*e.h/20,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartPunchedTape.updateShapeGuides=e=>{e.y2=9*e.h/10,e.ib=4*e.h/5},C.flowChartSort={name:"flowChartSort",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartSort.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartSort.getTextRect=e=>({l:e.w/4,t:e.h/4,r:e.ir,b:e.ib}),C.flowChartSort.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:0*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:0*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),n=[],t={action:"M",x:0*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:0*e.h/2},n.push(t),t.x,t.y,t={action:"L",x:2*e.w/2,y:+e.h/2},n.push(t),t.x,t.y,t={action:"L",x:+e.w/2,y:2*e.h/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.flowChartSort.updateShapeGuides=e=>{e.ir=3*e.w/4,e.ib=3*e.h/4},C.flowChartSummingJunction={name:"flowChartSummingJunction",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartSummingJunction.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),h},C.flowChartSummingJunction.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.flowChartSummingJunction.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.il,y:e.it},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.ir,y:e.ib},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ir,y:e.it},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.il,y:e.ib},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.flowChartSummingJunction.updateShapeGuides=e=>{e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.flowChartTerminator={name:"flowChartTerminator",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.flowChartTerminator.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.flowChartTerminator.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.flowChartTerminator.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:3475*e.w/21600,y:0*e.h/21600},f.push(a),n=a.x,t=a.y,a={action:"L",x:18125*e.w/21600,y:0*e.h/21600},f.push(a),n=a.x,t=a.y,y=3475,g=10800,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,21600*n/e.w,21600*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:3475*e.w/21600,ry:10800*e.h/21600,x:d.x*e.w/21600,y:d.y*e.h/21600,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:3475*e.w/21600,ry:10800*e.h/21600,x:d.x*e.w/21600,y:d.y*e.h/21600,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:3475*e.w/21600,y:21600*e.h/21600},f.push(a),n=a.x,t=a.y,y=3475,g=10800,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,21600*n/e.w,21600*t/e.h,(c+o)*Math.PI/108e5),a={action:"A",rx:3475*e.w/21600,ry:10800*e.h/21600,x:d.x*e.w/21600,y:d.y*e.h/21600,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:3475*e.w/21600,ry:10800*e.h/21600,x:d.x*e.w/21600,y:d.y*e.h/21600,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.flowChartTerminator.updateShapeGuides=e=>{e.il=1018*e.w/21600,e.ir=20582*e.w/21600,e.it=3163*e.h/21600,e.ib=18437*e.h/21600},C.foldedCorner={name:"foldedCorner",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.foldedCorner.getDefaultAdjustValues=e=>{let h={};return h.adj=16667,h},C.foldedCorner.getAdjustValueNames=()=>["adj"],C.foldedCorner.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dy2=Math.min(e.w,e.h)*e.a/1e5,e.dy1=+e.dy2/5,e.x1=e.r+0-e.dy2,e.x2=e.x1+e.dy1-0,e.y2=e.b+0-e.dy2,e.y1=e.y2+e.dy1-0},C.foldedCorner._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.b}),h.push(n),h},C.foldedCorner.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.foldedCorner.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.y2}),C.foldedCorner.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"norm"}),n=[],t={action:"M",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],t={action:"M",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.frame={name:"frame",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.frame.getDefaultAdjustValues=e=>{let h={};return h.adj1=12500,h},C.frame.getAdjustValueNames=()=>["adj1"],C.frame.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.x1=Math.min(e.w,e.h)*e.a1/1e5,e.x4=e.r+0-e.x1,e.y4=e.b+0-e.x1},C.frame._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.frame.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.frame.getTextRect=e=>({l:e.x1,t:e.x1,r:e.x4,b:e.y4}),C.frame.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.x1,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.x1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.halfFrame={name:"halfFrame",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.halfFrame.getDefaultAdjustValues=e=>{let h={};return h.adj1=33333,h.adj2=33333,h},C.halfFrame.getAdjustValueNames=()=>["adj1","adj2"],C.halfFrame.updateShapeGuides=e=>{e.maxAdj2=1e5*e.w/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.x1=Math.min(e.w,e.h)*e.a2/1e5,e.g1=e.h*e.x1/e.w,e.g2=e.h+0-e.g1,e.maxAdj1=1e5*e.g2/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.y1=Math.min(e.w,e.h)*e.a1/1e5,e.dx2=e.y1*e.w/e.h,e.x2=e.r+0-e.dx2,e.dy2=e.x1*e.h/e.w,e.y2=e.b+0-e.dy2,e.cx1=+e.x1/2,e.cy1=(e.y2+e.b)/2,e.cx2=(e.x2+e.r)/2,e.cy2=+e.y1/2},C.halfFrame._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.halfFrame.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.cx2,y:t.cy2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.cx1,y:t.cy1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.halfFrame.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.halfFrame.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.heart={name:"heart",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.heart.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.h/4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),h},C.heart.getTextRect=e=>({l:e.il,t:e.h/4,r:e.ir,b:e.ib}),C.heart.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:(e.l+e.r)/2,y:e.h/4},n.push(t),t.x,t.y,t={action:"C",x1:e.x3,y1:e.y1,x2:e.x4,y2:e.h/4,x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"C",x1:e.x1,y1:e.h/4,x2:e.x2,y2:e.y1,x:(e.l+e.r)/2,y:e.h/4},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.heart.updateShapeGuides=e=>{e.dx1=49*e.w/48,e.dx2=10*e.w/48,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.y1=e.t+0-e.h/3,e.il=+e.w/6,e.ir=5*e.w/6,e.ib=2*e.h/3},C.heptagon={name:"heptagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.heptagon.getDefaultAdjustValues=e=>{let h={};return h.hf=102572,h.vf=105210,h},C.heptagon.getAdjustValueNames=()=>["hf","vf"],C.heptagon.updateShapeGuides=e=>{e.swd2=e.w/2*e.hf/1e5,e.shd2=e.h/2*e.vf/1e5,e.svc=(e.t+e.b)/2*e.vf/1e5,e.dx1=97493*e.swd2/1e5,e.dx2=78183*e.swd2/1e5,e.dx3=43388*e.swd2/1e5,e.dy1=62349*e.shd2/1e5,e.dy2=22252*e.shd2/1e5,e.dy3=90097*e.shd2/1e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+0-e.dx3,e.x4=(e.l+e.r)/2+e.dx3-0,e.x5=(e.l+e.r)/2+e.dx2-0,e.x6=(e.l+e.r)/2+e.dx1-0,e.y1=e.svc+0-e.dy1,e.y2=e.svc+e.dy2-0,e.y3=e.svc+e.dy3-0,e.ib=e.b+0-e.y1},C.heptagon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x5,y:t.y1}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x4,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x2,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.heptagon.getTextRect=e=>({l:e.x2,t:e.y1,r:e.x5,b:e.ib}),C.heptagon.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.hexagon={name:"hexagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.hexagon.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h.vf=115470,h},C.hexagon.getAdjustValueNames=()=>["adj","vf"],C.hexagon.updateShapeGuides=e=>{e.maxAdj=5e4*e.w/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.shd2=e.h/2*e.vf/1e5,e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.dy1=e.shd2*Math.sin(36e5*Math.PI/108e5),e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+e.dy1-0,e.q1=-1*e.maxAdj/2,e.q2=e.a+e.q1-0,e.q3=e.q2>0?4:2,e.q4=e.q2>0?3:2,e.q5=e.q2>0?e.q1:0,e.q6=(e.a+e.q5)/e.q1,e.q7=-(e.q6*e.q4/1),e.q8=e.q3+e.q7-0,e.il=e.w*e.q8/24,e.it=e.h*e.q8/24,e.ir=e.r+0-e.il,e.ib=e.b+0-e.it},C.hexagon._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.hexagon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.y1}),h.push(n),h},C.hexagon.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.hexagon.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.homePlate={name:"homePlate",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.homePlate.getDefaultAdjustValues=e=>{let h={};return h.adj=5e4,h},C.homePlate.getAdjustValueNames=()=>["adj"],C.homePlate.updateShapeGuides=e=>{e.maxAdj=1e5*e.w/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.dx1=Math.min(e.w,e.h)*e.a/1e5,e.x1=e.r+0-e.dx1,e.ir=(e.x1+e.r)/2,e.x2=+e.x1/2},C.homePlate._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.homePlate.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.homePlate.getTextRect=e=>({l:e.l,t:e.t,r:e.ir,b:e.b}),C.homePlate.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.horizontalScroll={name:"horizontalScroll",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.horizontalScroll.getDefaultAdjustValues=e=>{let h={};return h.adj=12500,h},C.horizontalScroll.getAdjustValueNames=()=>["adj"],C.horizontalScroll.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,25e3)),e.ch=Math.min(e.w,e.h)*e.a/1e5,e.ch2=+e.ch/2,e.ch4=+e.ch/4,e.y3=e.ch+e.ch2-0,e.y4=e.ch+e.ch-0,e.y6=e.b+0-e.ch,e.y7=e.b+0-e.ch2,e.y5=e.y6+0-e.ch2,e.x3=e.r+0-e.ch,e.x4=e.r+0-e.ch2},C.horizontalScroll._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.ch,y:t.t}),h.push(n),h},C.horizontalScroll.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.ch}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y6}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.horizontalScroll.getTextRect=e=>({l:e.ch,t:e.ch,r:e.x4,b:e.y6}),C.horizontalScroll.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.r,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.ch2,y:e.ch},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y7},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=108e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y6},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ch2,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=0,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.ch2,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=0,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x4,y:e.ch},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=-162e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=108e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=108e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y5},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.y7},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x3,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.ch},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:e.x4,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:e.ch2,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.ch2,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=108e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:e.ch,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.y6},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.irregularSeal1={name:"irregularSeal1",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.irregularSeal1.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x24,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y6}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x12,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y18}),h.push(n),h},C.irregularSeal1.getTextRect=e=>({l:e.x5,t:e.y3,r:e.x21,b:e.y9}),C.irregularSeal1.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:10800*e.w/21600,y:5800*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14522*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14155*e.w/21600,y:5325*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18380*e.w/21600,y:4457*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:16702*e.w/21600,y:7315*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21097*e.w/21600,y:8137*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:17607*e.w/21600,y:10475*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:13290*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:16837*e.w/21600,y:12942*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18145*e.w/21600,y:18095*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14020*e.w/21600,y:14457*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:13247*e.w/21600,y:19737*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:10532*e.w/21600,y:14935*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:8485*e.w/21600,y:21600*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:7715*e.w/21600,y:15627*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:4762*e.w/21600,y:17617*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:5667*e.w/21600,y:13937*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:135*e.w/21600,y:14587*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:3722*e.w/21600,y:11775*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/21600,y:8615*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:4627*e.w/21600,y:7617*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:370*e.w/21600,y:2295*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:7312*e.w/21600,y:6320*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:8352*e.w/21600,y:2295*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.irregularSeal1.updateShapeGuides=e=>{e.x5=4627*e.w/21600,e.x12=8485*e.w/21600,e.x21=16702*e.w/21600,e.x24=14522*e.w/21600,e.y3=6320*e.h/21600,e.y6=8615*e.h/21600,e.y9=13937*e.h/21600,e.y18=13290*e.h/21600},C.irregularSeal2={name:"irregularSeal2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.irregularSeal2.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y8}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x16,y:t.y16}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y24}),h.push(n),h},C.irregularSeal2.getTextRect=e=>({l:e.x5,t:e.y3,r:e.x19,b:e.y17}),C.irregularSeal2.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:11462*e.w/21600,y:4342*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14790*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14525*e.w/21600,y:5777*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18007*e.w/21600,y:3172*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:16380*e.w/21600,y:6532*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:6645*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:16985*e.w/21600,y:9402*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18270*e.w/21600,y:11290*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:16380*e.w/21600,y:12310*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:18877*e.w/21600,y:15632*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14640*e.w/21600,y:14350*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14942*e.w/21600,y:17370*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:12180*e.w/21600,y:15935*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:11612*e.w/21600,y:18842*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:9872*e.w/21600,y:17370*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:8700*e.w/21600,y:19712*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:7527*e.w/21600,y:18125*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:4917*e.w/21600,y:21600*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:4805*e.w/21600,y:18240*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:1285*e.w/21600,y:17825*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:3330*e.w/21600,y:15370*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/21600,y:12877*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:3935*e.w/21600,y:11592*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:1172*e.w/21600,y:8270*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:5372*e.w/21600,y:7817*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:4502*e.w/21600,y:3625*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:8550*e.w/21600,y:6382*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:9722*e.w/21600,y:1887*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.irregularSeal2.updateShapeGuides=e=>{e.x2=9722*e.w/21600,e.x5=5372*e.w/21600,e.x16=11612*e.w/21600,e.x19=14640*e.w/21600,e.y2=1887*e.h/21600,e.y3=6382*e.h/21600,e.y8=12877*e.h/21600,e.y14=19712*e.h/21600,e.y16=18842*e.h/21600,e.y17=15935*e.h/21600,e.y24=6645*e.h/21600},C.leftArrow={name:"leftArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.leftArrow.getAdjustValueNames=()=>["adj1","adj2"],C.leftArrow.updateShapeGuides=e=>{e.maxAdj2=1e5*e.w/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.dx2=Math.min(e.w,e.h)*e.a2/1e5,e.x2=e.l+e.dx2-0,e.dy1=e.h*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+e.dy1-0,e.dx1=e.y1*e.dx2/(e.h/2),e.x1=e.x2+0-e.dx1},C.leftArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.r,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.leftArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.leftArrow.getTextRect=e=>({l:e.x1,t:e.y1,r:e.r,b:e.y2}),C.leftArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.leftArrowCallout={name:"leftArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftArrowCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h.adj4=64977,h},C.leftArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.leftArrowCallout.updateShapeGuides=e=>{e.maxAdj2=5e4*e.h/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.maxAdj3=1e5*e.w/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.q2=e.a3*Math.min(e.w,e.h)/e.w,e.maxAdj4=1e5-e.q2,e.a4=Math.max(0,Math.min(e.adj4,e.maxAdj4)),e.dy1=Math.min(e.w,e.h)*e.a2/1e5,e.dy2=Math.min(e.w,e.h)*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+e.dy2-0,e.y4=(e.t+e.b)/2+e.dy1-0,e.x1=Math.min(e.w,e.h)*e.a3/1e5,e.dx2=e.w*e.a4/1e5,e.x2=e.r+0-e.dx2,e.x3=(e.x2+e.r)/2},C.leftArrowCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.b}),h.push(n),h},C.leftArrowCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.leftArrowCallout.getTextRect=e=>({l:e.x2,t:e.t,r:e.r,b:e.b}),C.leftArrowCallout.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.leftBrace={name:"leftBrace",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftBrace.getDefaultAdjustValues=e=>{let h={};return h.adj1=8333,h.adj2=5e4,h},C.leftBrace.getAdjustValueNames=()=>["adj1","adj2"],C.leftBrace.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,1e5)),e.q1=1e5-e.a2,e.q2=Math.min(e.q1,e.a2),e.q3=+e.q2/2,e.maxAdj1=e.q3*e.h/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.y1=Math.min(e.w,e.h)*e.a1/1e5,e.y3=e.h*e.a2/1e5,e.y4=e.y3+e.y1-0,e.dx1=e.w/2*Math.cos(27e5*Math.PI/108e5),e.dy1=e.y1*Math.sin(27e5*Math.PI/108e5),e.il=e.r+0-e.dx1,e.it=e.y1+0-e.dy1,e.ib=e.b+e.dy1-e.y1},C.leftBrace._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y3}),h.push(n),h},C.leftBrace.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.r,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y3}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.r,y:t.b}),h.push(n),h},C.leftBrace.getTextRect=e=>({l:e.il,t:e.it,r:e.r,b:e.ib}),C.leftBrace.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.leftBracket={name:"leftBracket",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftBracket.getDefaultAdjustValues=e=>{let h={};return h.adj=8333,h},C.leftBracket.getAdjustValueNames=()=>["adj"],C.leftBracket.updateShapeGuides=e=>{e.maxAdj=5e4*e.h/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.y1=Math.min(e.w,e.h)*e.a/1e5,e.y2=e.b+0-e.y1,e.dx1=e.w*Math.cos(27e5*Math.PI/108e5),e.dy1=e.y1*Math.sin(27e5*Math.PI/108e5),e.il=e.r+0-e.dx1,e.it=e.y1+0-e.dy1,e.ib=e.b+e.dy1-e.y1},C.leftBracket._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),h},C.leftBracket.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.r,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.r,y:t.b}),h.push(n),h},C.leftBracket.getTextRect=e=>({l:e.il,t:e.it,r:e.r,b:e.ib}),C.leftBracket.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.leftRightArrow={name:"leftRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftRightArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.leftRightArrow.getAdjustValueNames=()=>["adj1","adj2"],C.leftRightArrow.updateShapeGuides=e=>{e.maxAdj2=5e4*e.w/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.x2=Math.min(e.w,e.h)*e.a2/1e5,e.x3=e.r+0-e.x2,e.dy=e.h*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy,e.y2=(e.t+e.b)/2+e.dy-0,e.dx1=e.y1*e.x2/(e.h/2),e.x1=e.x2+0-e.dx1,e.x4=e.x3+e.dx1-0},C.leftRightArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x3,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.leftRightArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),h},C.leftRightArrow.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x4,b:e.y2}),C.leftRightArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.leftRightArrowCallout={name:"leftRightArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftRightArrowCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h.adj4=48123,h},C.leftRightArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.leftRightArrowCallout.updateShapeGuides=e=>{e.maxAdj2=5e4*e.h/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.maxAdj3=5e4*e.w/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.q2=e.a3*Math.min(e.w,e.h)/(e.w/2),e.maxAdj4=1e5-e.q2,e.a4=Math.max(0,Math.min(e.adj4,e.maxAdj4)),e.dy1=Math.min(e.w,e.h)*e.a2/1e5,e.dy2=Math.min(e.w,e.h)*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+e.dy2-0,e.y4=(e.t+e.b)/2+e.dy1-0,e.x1=Math.min(e.w,e.h)*e.a3/1e5,e.x4=e.r+0-e.x1,e.dx2=e.w*e.a4/2e5,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0},C.leftRightArrowCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.b}),h.push(n),h},C.leftRightArrowCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.leftRightArrowCallout.getTextRect=e=>({l:e.x2,t:e.t,r:e.x3,b:e.b}),C.leftRightArrowCallout.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.leftRightUpArrow={name:"leftRightUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftRightUpArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h},C.leftRightUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.leftRightUpArrow.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.q1=1e5-e.maxAdj1,e.maxAdj3=+e.q1/2,e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.x1=Math.min(e.w,e.h)*e.a3/1e5,e.dx2=Math.min(e.w,e.h)*e.a2/1e5,e.x2=(e.l+e.r)/2+0-e.dx2,e.x5=(e.l+e.r)/2+e.dx2-0,e.dx3=Math.min(e.w,e.h)*e.a1/2e5,e.x3=(e.l+e.r)/2+0-e.dx3,e.x4=(e.l+e.r)/2+e.dx3-0,e.x6=e.r+0-e.x1,e.dy2=Math.min(e.w,e.h)*e.a2/5e4,e.y2=e.b+0-e.dy2,e.y4=e.b+0-e.dx2,e.y3=e.y4+0-e.dx3,e.y5=e.y4+e.dx3-0,e.il=e.dx3*e.x1/e.dx2,e.ir=e.r+0-e.il},C.leftRightUpArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x3,y:t.x1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.x1}),h.push(n),h},C.leftRightUpArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y5}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y4}),h.push(n),h},C.leftRightUpArrow.getTextRect=e=>({l:e.il,t:e.y3,r:e.ir,b:e.y5}),C.leftRightUpArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.leftUpArrow={name:"leftUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.leftUpArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h},C.leftUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.leftUpArrow.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.maxAdj3=1e5-e.maxAdj1,e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.x1=Math.min(e.w,e.h)*e.a3/1e5,e.dx2=Math.min(e.w,e.h)*e.a2/5e4,e.x2=e.r+0-e.dx2,e.y2=e.b+0-e.dx2,e.dx4=Math.min(e.w,e.h)*e.a2/1e5,e.x4=e.r+0-e.dx4,e.y4=e.b+0-e.dx4,e.dx3=Math.min(e.w,e.h)*e.a1/2e5,e.x3=e.x4+0-e.dx3,e.x5=e.x4+e.dx3-0,e.y3=e.y4+0-e.dx3,e.y5=e.y4+e.dx3-0,e.il=e.dx3*e.x1/e.dx4,e.cx1=(e.x1+e.x5)/2,e.cy1=(e.x1+e.y5)/2},C.leftUpArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x3,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.x1}),h.push(n),h},C.leftUpArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x4,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x2,y:t.x1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.cx1,y:t.y5}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x5,y:t.cy1}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.x1}),h.push(n),h},C.leftUpArrow.getTextRect=e=>({l:e.il,t:e.y3,r:e.x4,b:e.y5}),C.leftUpArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.lightningBolt={name:"lightningBolt",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.lightningBolt.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y6}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x5,y:t.y11}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.r,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x11,y:t.y7}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x8,y:t.y2}),h.push(n),h},C.lightningBolt.getTextRect=e=>({l:e.x4,t:e.y4,r:e.x9,b:e.y10}),C.lightningBolt.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:8472*e.w/21600,y:0*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:12860*e.w/21600,y:6080*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:11050*e.w/21600,y:6797*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:16577*e.w/21600,y:12007*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:14767*e.w/21600,y:12877*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:21600*e.w/21600,y:21600*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:10012*e.w/21600,y:14915*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:12222*e.w/21600,y:13987*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:5022*e.w/21600,y:9705*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:7602*e.w/21600,y:8382*e.h/21600},n.push(t),t.x,t.y,t={action:"L",x:0*e.w/21600,y:3890*e.h/21600},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.lightningBolt.updateShapeGuides=e=>{e.x1=5022*e.w/21600,e.x3=8472*e.w/21600,e.x4=8757*e.w/21600,e.x5=10012*e.w/21600,e.x8=12860*e.w/21600,e.x9=13917*e.w/21600,e.x11=16577*e.w/21600,e.y1=3890*e.h/21600,e.y2=6080*e.h/21600,e.y4=7437*e.h/21600,e.y6=9705*e.h/21600,e.y7=12007*e.h/21600,e.y10=14277*e.h/21600,e.y11=14915*e.h/21600},C.line={name:"line",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.line.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.l,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.r,y:t.b}),h.push(n),h},C.line.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.lineInv={name:"lineInv",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.lineInv.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.l,y:t.b}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.r,y:t.t}),h.push(n),h},C.lineInv.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.mathDivide={name:"mathDivide",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.mathDivide.getDefaultAdjustValues=e=>{let h={};return h.adj1=23520,h.adj2=5880,h.adj3=11760,h},C.mathDivide.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.mathDivide.updateShapeGuides=e=>{e.a1=Math.max(1e3,Math.min(e.adj1,36745)),e.ma1=0-e.a1,e.ma3h=(73490+e.ma1)/4,e.ma3w=36745*e.w/e.h,e.maxAdj3=Math.min(e.ma3h,e.ma3w),e.a3=Math.max(1e3,Math.min(e.adj3,e.maxAdj3)),e.m4a3=-4*e.a3/1,e.maxAdj2=73490+e.m4a3-e.a1,e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.dy1=e.h*e.a1/2e5,e.yg=e.h*e.a2/1e5,e.rad=e.h*e.a3/1e5,e.dx1=73490*e.w/2e5,e.y3=(e.t+e.b)/2+0-e.dy1,e.y4=(e.t+e.b)/2+e.dy1-0,e.a=e.yg+e.rad-0,e.y2=e.y3+0-e.a,e.y1=e.y2+0-e.rad,e.y5=e.b+0-e.y1,e.x1=(e.l+e.r)/2+0-e.dx1,e.x3=(e.l+e.r)/2+e.dx1-0,e.x2=(e.l+e.r)/2+0-e.rad},C.mathDivide._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.mathDivide.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x3,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y5}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),h.push(n),h},C.mathDivide.getTextRect=e=>({l:e.x1,t:e.y3,r:e.x3,b:e.y4}),C.mathDivide.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:(e.l+e.r)/2,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.rad,g=e.rad,c=162e5,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.rad,ry:e.rad,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.rad,ry:e.rad,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:(e.l+e.r)/2,y:e.y5},f.push(a),n=a.x,t=a.y,y=e.rad,g=e.rad,c=54e5,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.rad,ry:e.rad,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.rad,ry:e.rad,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x1,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.mathEqual={name:"mathEqual",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.mathEqual.getDefaultAdjustValues=e=>{let h={};return h.adj1=23520,h.adj2=11760,h},C.mathEqual.getAdjustValueNames=()=>["adj1","adj2"],C.mathEqual.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,36745)),e["2a1"]=2*e.a1/1,e.mAdj2=1e5-e["2a1"],e.a2=Math.max(0,Math.min(e.adj2,e.mAdj2)),e.dy1=e.h*e.a1/1e5,e.dy2=e.h*e.a2/2e5,e.dx1=73490*e.w/2e5,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+e.dy2-0,e.y1=e.y2+0-e.dy1,e.y4=e.y3+e.dy1-0,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+e.dx1-0,e.yC1=(e.y1+e.y2)/2,e.yC2=(e.y3+e.y4)/2},C.mathEqual._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y2}),h.push(n),h},C.mathEqual.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:t.yC1}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:t.yC2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.yC1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.yC2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),h.push(n),h},C.mathEqual.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x2,b:e.y4}),C.mathEqual.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.mathMinus={name:"mathMinus",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.mathMinus.getDefaultAdjustValues=e=>{let h={};return h.adj1=23520,h},C.mathMinus.getAdjustValueNames=()=>["adj1"],C.mathMinus.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.dy1=e.h*e.a1/2e5,e.dx1=73490*e.w/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+e.dy1-0,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+e.dx1-0},C.mathMinus._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),h},C.mathMinus.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),h.push(n),h},C.mathMinus.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x2,b:e.y2}),C.mathMinus.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.mathMultiply={name:"mathMultiply",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.mathMultiply.getDefaultAdjustValues=e=>{let h={};return h.adj1=23520,h},C.mathMultiply.getAdjustValueNames=()=>["adj1"],C.mathMultiply.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,51965)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.a=108e5*p(e.w,e.h)/Math.PI,e.sa=+Math.sin(e.a*Math.PI/108e5),e.ca=+Math.cos(e.a*Math.PI/108e5),e.ta=+Math.tan(e.a*Math.PI/108e5),e.dl=Math.sqrt(Math.pow(e.w,2)+Math.pow(e.h,2)+0),e.rw=51965*e.dl/1e5,e.lM=e.dl+0-e.rw,e.xM=e.ca*e.lM/2,e.yM=e.sa*e.lM/2,e.dxAM=e.sa*e.th/2,e.dyAM=e.ca*e.th/2,e.xA=e.xM+0-e.dxAM,e.yA=e.yM+e.dyAM-0,e.xB=e.xM+e.dxAM-0,e.yB=e.yM+0-e.dyAM,e.xBC=(e.l+e.r)/2+0-e.xB,e.yBC=e.xBC*e.ta/1,e.yC=e.yBC+e.yB-0,e.xD=e.r+0-e.xB,e.xE=e.r+0-e.xA,e.yFE=(e.t+e.b)/2+0-e.yA,e.xFE=+e.yFE/e.ta,e.xF=e.xE+0-e.xFE,e.xL=e.xA+e.xFE-0,e.yG=e.b+0-e.yA,e.yH=e.b+0-e.yB,e.yI=e.b+0-e.yC,e.xC2=e.r+0-e.xM,e.yC3=e.b+0-e.yM},C.mathMultiply._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.th}),h.push(n),h},C.mathMultiply.getConnections=e=>{let h=[],n;return(n={}).ang=t=>108e5,n.pos=t=>({x:t.xM,y:t.yM}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.xC2,y:t.yM}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.xC2,y:t.yC3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.xM,y:t.yC3}),h.push(n),h},C.mathMultiply.getTextRect=e=>({l:e.xA,t:e.yB,r:e.xE,b:e.yH}),C.mathMultiply.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.xA,y:e.yA},n.push(t),t.x,t.y,t={action:"L",x:e.xB,y:e.yB},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.yC},n.push(t),t.x,t.y,t={action:"L",x:e.xD,y:e.yB},n.push(t),t.x,t.y,t={action:"L",x:e.xE,y:e.yA},n.push(t),t.x,t.y,t={action:"L",x:e.xF,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.xE,y:e.yG},n.push(t),t.x,t.y,t={action:"L",x:e.xD,y:e.yH},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.yI},n.push(t),t.x,t.y,t={action:"L",x:e.xB,y:e.yH},n.push(t),t.x,t.y,t={action:"L",x:e.xA,y:e.yG},n.push(t),t.x,t.y,t={action:"L",x:e.xL,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.mathNotEqual={name:"mathNotEqual",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.mathNotEqual.getDefaultAdjustValues=e=>{let h={};return h.adj1=23520,h.adj2=66e5,h.adj3=11760,h},C.mathNotEqual.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.mathNotEqual.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.crAng=Math.max(42e5,Math.min(e.adj2,66e5)),e["2a1"]=2*e.a1/1,e.maxAdj3=1e5-e["2a1"],e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.dy1=e.h*e.a1/1e5,e.dy2=e.h*e.a3/2e5,e.dx1=73490*e.w/2e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x8=(e.l+e.r)/2+e.dx1-0,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+e.dy2-0,e.y1=e.y2+0-e.dy1,e.y4=e.y3+e.dy1-0,e.cadj2=e.crAng+0-54e5,e.xadj2=e.h/2*Math.tan(e.cadj2*Math.PI/108e5),e.len=Math.sqrt(Math.pow(e.xadj2,2)+Math.pow(e.h/2,2)+0),e.bhw=e.len*e.dy1/(e.h/2),e.bhw2=+e.bhw/2,e.x7=(e.l+e.r)/2+e.xadj2-e.bhw2,e.dx67=e.xadj2*e.y1/(e.h/2),e.x6=e.x7+0-e.dx67,e.dx57=e.xadj2*e.y2/(e.h/2),e.x5=e.x7+0-e.dx57,e.dx47=e.xadj2*e.y3/(e.h/2),e.x4=e.x7+0-e.dx47,e.dx37=e.xadj2*e.y4/(e.h/2),e.x3=e.x7+0-e.dx37,e.dx27=2*e.xadj2/1,e.x2=e.x7+0-e.dx27,e.rx7=e.x7+e.bhw-0,e.rx6=e.x6+e.bhw-0,e.rx5=e.x5+e.bhw-0,e.rx4=e.x4+e.bhw-0,e.rx3=e.x3+e.bhw-0,e.rx2=e.x2+e.bhw-0,e.dx7=e.dy1*(e.h/2)/e.len,e.rxt=e.x7+e.dx7-0,e.lxt=e.rx7+0-e.dx7,e.rx=e.cadj2>0?e.rxt:e.rx7,e.lx=e.cadj2>0?e.x7:e.lxt,e.dy3=e.dy1*e.xadj2/e.len,e.dy4=0-e.dy3,e.ry=e.cadj2>0?e.dy3:e.t,e.ly=e.cadj2>0?e.t:e.dy4,e.dlx=e.w+0-e.rx,e.drx=e.w+0-e.lx,e.dly=e.h+0-e.ry,e.dry=e.h+0-e.ly,e.xC1=(e.rx+e.lx)/2,e.xC2=(e.drx+e.dlx)/2,e.yC1=(e.ry+e.ly)/2,e.yC2=(e.y1+e.y2)/2,e.yC3=(e.y3+e.y4)/2,e.yC4=(e.dry+e.dly)/2},C.mathNotEqual._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.lx,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y2}),h.push(n),h},C.mathNotEqual.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x8,y:t.yC2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x8,y:t.yC3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.xC2,y:t.yC4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.yC2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.yC3}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.xC1,y:t.yC1}),h.push(n),h},C.mathNotEqual.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x8,b:e.y4}),C.mathNotEqual.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.lx,y:e.ly},n.push(t),t.x,t.y,t={action:"L",x:e.rx,y:e.ry},n.push(t),t.x,t.y,t={action:"L",x:e.rx6,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.rx5,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.rx4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.rx3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.drx,y:e.dry},n.push(t),t.x,t.y,t={action:"L",x:e.dlx,y:e.dly},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.mathPlus={name:"mathPlus",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.mathPlus.getDefaultAdjustValues=e=>{let h={};return h.adj1=23520,h},C.mathPlus.getAdjustValueNames=()=>["adj1"],C.mathPlus.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,73490)),e.dx1=73490*e.w/2e5,e.dy1=73490*e.h/2e5,e.dx2=Math.min(e.w,e.h)*e.a1/2e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dx2,e.y3=(e.t+e.b)/2+e.dx2-0,e.y4=(e.t+e.b)/2+e.dy1-0},C.mathPlus._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),h},C.mathPlus.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),h.push(n),h},C.mathPlus.getTextRect=e=>({l:e.x1,t:e.y2,r:e.x4,b:e.y3}),C.mathPlus.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.moon={name:"moon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.moon.getDefaultAdjustValues=e=>{let h={};return h.adj=5e4,h},C.moon.getAdjustValueNames=()=>["adj"],C.moon.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,87500)),e.g0=Math.min(e.w,e.h)*e.a/1e5,e.g0w=e.g0*e.w/Math.min(e.w,e.h),e.g1=Math.min(e.w,e.h)+0-e.g0,e.g2=e.g0*e.g0/e.g1,e.g3=Math.min(e.w,e.h)*Math.min(e.w,e.h)/e.g1,e.g4=2*e.g3/1,e.g5=e.g4+0-e.g2,e.g6=e.g5+0-e.g0,e.g6w=e.g6*e.w/Math.min(e.w,e.h),e.g7=+e.g5/2,e.g8=e.g7+0-e.g0,e.dy1=e.g8*(e.h/2)/Math.min(e.w,e.h),e.g10h=(e.t+e.b)/2+0-e.dy1,e.g11h=(e.t+e.b)/2+e.dy1-0,e.g12=9598*e.g0/32768,e.g12w=e.g12*e.w/Math.min(e.w,e.h),e.g13=Math.min(e.w,e.h)+0-e.g12,e.q1=Math.min(e.w,e.h)*Math.min(e.w,e.h)/1,e.q2=e.g13*e.g13/1,e.q3=e.q1+0-e.q2,e.q4=Math.sqrt(e.q3),e.dy4=e.q4*(e.h/2)/Math.min(e.w,e.h),e.g15h=(e.t+e.b)/2+0-e.dy4,e.g16h=(e.t+e.b)/2+e.dy4-0,e.g17w=e.g6w+0-e.g0w,e.g18w=+e.g17w/2,e.dx2p=e.g0w+e.g18w-e.w,e.dx2=-1*e.dx2p/1,e.dy2=-(e.h/2*1)/1,e.stAng1=108e5*p(e.dx2,e.dy2)/Math.PI,e.enAngp1=108e5*p(e.dx2,e.h/2)/Math.PI,e.enAng1=e.enAngp1+0-216e5,e.swAng1=e.enAng1+0-e.stAng1},C.moon._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.g0w,y:(t.t+t.b)/2}),h.push(n),h},C.moon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.r,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.r,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.g0w,y:(t.t+t.b)/2}),h.push(n),h},C.moon.getTextRect=e=>({l:e.g12w,t:e.g15h,r:e.g0w,b:e.g16h}),C.moon.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w,g=e.h/2,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.g18w,g=e.dy1,c=e.stAng1,o=e.swAng1%216e5,(m=e.swAng1!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.g18w,ry:e.dy1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.g18w,ry:e.dy1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.noSmoking={name:"noSmoking",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.noSmoking.getDefaultAdjustValues=e=>{let h={};return h.adj=18750,h},C.noSmoking.getAdjustValueNames=()=>["adj"],C.noSmoking.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dr=Math.min(e.w,e.h)*e.a/1e5,e.iwd2=e.w/2+0-e.dr,e.ihd2=e.h/2+0-e.dr,e.ang=108e5*p(e.w,e.h)/Math.PI,e.ct=e.ihd2*Math.cos(e.ang*Math.PI/108e5),e.st=e.iwd2*Math.sin(e.ang*Math.PI/108e5),e.m=Math.sqrt(Math.pow(e.ct,2)+Math.pow(e.st,2)+0),e.n=e.iwd2*e.ihd2/e.m,e.drd2=+e.dr/2,e.dang=108e5*p(e.n,e.drd2)/Math.PI,e["2dang"]=2*e.dang/1,e.swAng=-108e5+e["2dang"]-0,e.t3=108e5*p(e.w,e.h)/Math.PI,e.stAng1=e.t3+0-e.dang,e.stAng2=e.stAng1+0-108e5,e.ct1=e.ihd2*Math.cos(e.stAng1*Math.PI/108e5),e.st1=e.iwd2*Math.sin(e.stAng1*Math.PI/108e5),e.m1=Math.sqrt(Math.pow(e.ct1,2)+Math.pow(e.st1,2)+0),e.n1=e.iwd2*e.ihd2/e.m1,e.dx1=e.n1*Math.cos(e.stAng1*Math.PI/108e5),e.dy1=e.n1*Math.sin(e.stAng1*Math.PI/108e5),e.x1=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+e.dy1-0,e.x2=(e.l+e.r)/2+0-e.dx1,e.y2=(e.t+e.b)/2+0-e.dy1,e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.noSmoking._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.dr,y:(t.t+t.b)/2}),h.push(n),h},C.noSmoking.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),h},C.noSmoking.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.noSmoking.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.iwd2,g=e.ihd2,c=e.stAng1,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x2,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.iwd2,g=e.ihd2,c=e.stAng2,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.iwd2,ry:e.ihd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.notchedRightArrow={name:"notchedRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.notchedRightArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.notchedRightArrow.getAdjustValueNames=()=>["adj1","adj2"],C.notchedRightArrow.updateShapeGuides=e=>{e.maxAdj2=1e5*e.w/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.dx2=Math.min(e.w,e.h)*e.a2/1e5,e.x2=e.r+0-e.dx2,e.dy1=e.h*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+e.dy1-0,e.x1=e.dy1*e.dx2/(e.h/2),e.x3=e.r+0-e.x1},C.notchedRightArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.r,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.notchedRightArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.notchedRightArrow.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x3,b:e.y2}),C.notchedRightArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.octagon={name:"octagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.octagon.getDefaultAdjustValues=e=>{let h={};return h.adj=29289,h},C.octagon.getAdjustValueNames=()=>["adj"],C.octagon.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.y2=e.b+0-e.x1,e.il=+e.x1/2,e.ir=e.r+0-e.il,e.ib=e.b+0-e.il},C.octagon._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.octagon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.x1}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.x1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.octagon.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.octagon.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.parallelogram={name:"parallelogram",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.parallelogram.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h},C.parallelogram.getAdjustValueNames=()=>["adj"],C.parallelogram.updateShapeGuides=e=>{e.maxAdj=1e5*e.w/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.x1=Math.min(e.w,e.h)*e.a/2e5,e.x2=Math.min(e.w,e.h)*e.a/1e5,e.x6=e.r+0-e.x1,e.x5=e.r+0-e.x2,e.x3=+e.x5/2,e.x4=e.r+0-e.x3,e.il=e.w/2*e.a/e.maxAdj,e.q1=5*e.a/e.maxAdj,e.q2=(1+e.q1)/12,e.il=e.q2*e.w/1,e.it=e.q2*e.h/1,e.ir=e.r+0-e.il,e.ib=e.b+0-e.it,e.q3=e.h*((e.l+e.r)/2)/e.x2,e.y1=Math.max(0,Math.min(e.q3,e.h)),e.y2=e.b+0-e.y1},C.parallelogram._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.parallelogram.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x4,y:t.t}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),h},C.parallelogram.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.parallelogram.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.pentagon={name:"pentagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.pentagon.getDefaultAdjustValues=e=>{let h={};return h.hf=105146,h.vf=110557,h},C.pentagon.getAdjustValueNames=()=>["hf","vf"],C.pentagon.updateShapeGuides=e=>{e.swd2=e.w/2*e.hf/1e5,e.shd2=e.h/2*e.vf/1e5,e.svc=(e.t+e.b)/2*e.vf/1e5,e.dx1=e.swd2*Math.cos(108e4*Math.PI/108e5),e.dx2=e.swd2*Math.cos(1836e4*Math.PI/108e5),e.dy1=e.shd2*Math.sin(108e4*Math.PI/108e5),e.dy2=e.shd2*Math.sin(1836e4*Math.PI/108e5),e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.y1=e.svc+0-e.dy1,e.y2=e.svc+0-e.dy2,e.it=e.y1*e.dx2/e.dx1},C.pentagon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y1}),h.push(n),h},C.pentagon.getTextRect=e=>({l:e.x2,t:e.it,r:e.x3,b:e.y2}),C.pentagon.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.pie={name:"pie",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.pie.getDefaultAdjustValues=e=>{let h={};return h.adj1=0,h.adj2=162e5,h},C.pie.getAdjustValueNames=()=>["adj1","adj2"],C.pie.updateShapeGuides=e=>{e.stAng=Math.max(0,Math.min(e.adj1,21599999)),e.enAng=Math.max(0,Math.min(e.adj2,21599999)),e.sw1=e.enAng+0-e.stAng,e.sw2=e.sw1+216e5-0,e.swAng=e.sw1>0?e.sw1:e.sw2,e.wt1=e.w/2*Math.sin(e.stAng*Math.PI/108e5),e.ht1=e.h/2*Math.cos(e.stAng*Math.PI/108e5),e.dx1=e.w/2*Math.cos(p(e.ht1,e.wt1)),e.dy1=e.h/2*Math.sin(p(e.ht1,e.wt1)),e.x1=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+e.dy1-0,e.wt2=e.w/2*Math.sin(e.enAng*Math.PI/108e5),e.ht2=e.h/2*Math.cos(e.enAng*Math.PI/108e5),e.dx2=e.w/2*Math.cos(p(e.ht2,e.wt2)),e.dy2=e.h/2*Math.sin(p(e.ht2,e.wt2)),e.x2=(e.l+e.r)/2+e.dx2-0,e.y2=(e.t+e.b)/2+e.dy2-0,e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.pie._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.y2}),h.push(n),h},C.pie.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.pie.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.pie.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=e.stAng,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.plaque={name:"plaque",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.plaque.getDefaultAdjustValues=e=>{let h={};return h.adj=16667,h},C.plaque.getAdjustValueNames=()=>["adj"],C.plaque.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.y2=e.b+0-e.x1,e.il=70711*e.x1/1e5,e.ir=e.r+0-e.il,e.ib=e.b+0-e.il},C.plaque._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.plaque.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.plaque.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.plaque.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.b},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.plus={name:"plus",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.plus.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h},C.plus.getAdjustValueNames=()=>["adj"],C.plus.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.y2=e.b+0-e.x1,e.d=e.w+0-e.h,e.il=e.d>0?e.l:e.x1,e.ir=e.d>0?e.r:e.x2,e.it=e.d>0?e.x1:e.t,e.ib=e.d>0?e.y2:e.b},C.plus._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.plus.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.plus.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.plus.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.quadArrow={name:"quadArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.quadArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=22500,h.adj2=22500,h.adj3=22500,h},C.quadArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.quadArrow.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.q1=1e5-e.maxAdj1,e.maxAdj3=+e.q1/2,e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.x1=Math.min(e.w,e.h)*e.a3/1e5,e.dx2=Math.min(e.w,e.h)*e.a2/1e5,e.x2=(e.l+e.r)/2+0-e.dx2,e.x5=(e.l+e.r)/2+e.dx2-0,e.dx3=Math.min(e.w,e.h)*e.a1/2e5,e.x3=(e.l+e.r)/2+0-e.dx3,e.x4=(e.l+e.r)/2+e.dx3-0,e.x6=e.r+0-e.x1,e.y2=(e.t+e.b)/2+0-e.dx2,e.y5=(e.t+e.b)/2+e.dx2-0,e.y3=(e.t+e.b)/2+0-e.dx3,e.y4=(e.t+e.b)/2+e.dx3-0,e.y6=e.b+0-e.x1,e.il=e.dx3*e.x1/e.dx2,e.ir=e.r+0-e.il},C.quadArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x3,y:t.x1}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.x1}),h.push(n),h},C.quadArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.quadArrow.getTextRect=e=>({l:e.il,t:e.y3,r:e.ir,b:e.y4}),C.quadArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.x1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y5},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.quadArrowCallout={name:"quadArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.quadArrowCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=18515,h.adj2=18515,h.adj3=18515,h.adj4=48123,h},C.quadArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.quadArrowCallout.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.maxAdj3=5e4-e.a2,e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.q2=2*e.a3/1,e.maxAdj4=1e5-e.q2,e.a4=Math.max(e.a1,Math.min(e.adj4,e.maxAdj4)),e.dx2=Math.min(e.w,e.h)*e.a2/1e5,e.dx3=Math.min(e.w,e.h)*e.a1/2e5,e.ah=Math.min(e.w,e.h)*e.a3/1e5,e.dx1=e.w*e.a4/2e5,e.dy1=e.h*e.a4/2e5,e.x8=e.r+0-e.ah,e.x2=(e.l+e.r)/2+0-e.dx1,e.x7=(e.l+e.r)/2+e.dx1-0,e.x3=(e.l+e.r)/2+0-e.dx2,e.x6=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+0-e.dx3,e.x5=(e.l+e.r)/2+e.dx3-0,e.y8=e.b+0-e.ah,e.y2=(e.t+e.b)/2+0-e.dy1,e.y7=(e.t+e.b)/2+e.dy1-0,e.y3=(e.t+e.b)/2+0-e.dx2,e.y6=(e.t+e.b)/2+e.dx2-0,e.y4=(e.t+e.b)/2+0-e.dx3,e.y5=(e.t+e.b)/2+e.dx3-0},C.quadArrowCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x4,y:t.ah}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.ah}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),h},C.quadArrowCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.quadArrowCallout.getTextRect=e=>({l:e.x2,t:e.y2,r:e.x7,b:e.y7}),C.quadArrowCallout.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.ah,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.ah,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.ah},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.ah},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.ah},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.ah},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.ah,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.ah,y:e.y6},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.rect={name:"rect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.rect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.rect.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.rect.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.ribbon={name:"ribbon",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.ribbon.getDefaultAdjustValues=e=>{let h={};return h.adj1=16667,h.adj2=5e4,h},C.ribbon.getAdjustValueNames=()=>["adj1","adj2"],C.ribbon.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,33333)),e.a2=Math.max(25e3,Math.min(e.adj2,75e3)),e.x10=e.r+0-e.w/8,e.dx2=e.w*e.a2/2e5,e.x2=(e.l+e.r)/2+0-e.dx2,e.x9=(e.l+e.r)/2+e.dx2-0,e.x3=e.x2+e.w/32-0,e.x8=e.x9+0-e.w/32,e.x5=e.x2+e.w/8-0,e.x6=e.x9+0-e.w/8,e.x4=e.x5+0-e.w/32,e.x7=e.x6+e.w/32-0,e.y1=e.h*e.a1/2e5,e.y2=e.h*e.a1/1e5,e.y4=e.b+0-e.y2,e.y3=+e.y4/2,e.hR=e.h*e.a1/4e5,e.y5=e.b+0-e.hR,e.y6=e.y2+0-e.hR},C.ribbon._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.ribbon.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/8,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x10,y:t.y3}),h.push(n),h},C.ribbon.getTextRect=e=>({l:e.x2,t:e.y2,r:e.x9,b:e.b}),C.ribbon.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x10,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y5},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.w/8,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x5,y:e.hR},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x5,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x6,y:e.hR},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x10,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y5},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.w/8,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x5,y:e.hR},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x5,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x6,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.hR},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x2,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x9,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.ribbon2={name:"ribbon2",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.ribbon2.getDefaultAdjustValues=e=>{let h={};return h.adj1=16667,h.adj2=5e4,h},C.ribbon2.getAdjustValueNames=()=>["adj1","adj2"],C.ribbon2.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,33333)),e.a2=Math.max(25e3,Math.min(e.adj2,75e3)),e.x10=e.r+0-e.w/8,e.dx2=e.w*e.a2/2e5,e.x2=(e.l+e.r)/2+0-e.dx2,e.x9=(e.l+e.r)/2+e.dx2-0,e.x3=e.x2+e.w/32-0,e.x8=e.x9+0-e.w/32,e.x5=e.x2+e.w/8-0,e.x6=e.x9+0-e.w/8,e.x4=e.x5+0-e.w/32,e.x7=e.x6+e.w/32-0,e.dy1=e.h*e.a1/2e5,e.y1=e.b+0-e.dy1,e.dy2=e.h*e.a1/1e5,e.y2=e.b+0-e.dy2,e.y4=e.t+e.dy2-0,e.y3=(e.y4+e.b)/2,e.hR=e.h*e.a1/4e5,e.y6=e.b+0-e.hR,e.y7=e.y1+0-e.hR},C.ribbon2._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.b}),h.push(n),h},C.ribbon2.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.w/8,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x10,y:t.y3}),h.push(n),h},C.ribbon2.getTextRect=e=>({l:e.x2,t:e.t,r:e.x9,b:e.y2}),C.ribbon2.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x10,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.hR},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.w/8,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x5,y:e.y6},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x5,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x6,y:e.y6},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.w/8,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.hR},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x10,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.b},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=54e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/32,g=e.hR,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/32,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x5,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x5,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x6,y:e.y6},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x2,y:e.y7},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y7},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.rightArrow={name:"rightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.rightArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.rightArrow.getAdjustValueNames=()=>["adj1","adj2"],C.rightArrow.updateShapeGuides=e=>{e.maxAdj2=1e5*e.w/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.dx1=Math.min(e.w,e.h)*e.a2/1e5,e.x1=e.r+0-e.dx1,e.dy1=e.h*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+e.dy1-0,e.dx2=e.y1*e.dx1/(e.h/2),e.x2=e.x1+e.dx2-0},C.rightArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.rightArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.rightArrow.getTextRect=e=>({l:e.l,t:e.y1,r:e.x2,b:e.y2}),C.rightArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.rightArrowCallout={name:"rightArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.rightArrowCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h.adj4=64977,h},C.rightArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.rightArrowCallout.updateShapeGuides=e=>{e.maxAdj2=5e4*e.h/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.maxAdj3=1e5*e.w/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.q2=e.a3*Math.min(e.w,e.h)/e.w,e.maxAdj4=1e5-e.q2,e.a4=Math.max(0,Math.min(e.adj4,e.maxAdj4)),e.dy1=Math.min(e.w,e.h)*e.a2/1e5,e.dy2=Math.min(e.w,e.h)*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+e.dy2-0,e.y4=(e.t+e.b)/2+e.dy1-0,e.dx3=Math.min(e.w,e.h)*e.a3/1e5,e.x3=e.r+0-e.dx3,e.x2=e.w*e.a4/1e5,e.x1=+e.x2/2},C.rightArrowCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x3,y:t.y2}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x3,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.b}),h.push(n),h},C.rightArrowCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.rightArrowCallout.getTextRect=e=>({l:e.l,t:e.t,r:e.x2,b:e.b}),C.rightArrowCallout.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.rightBrace={name:"rightBrace",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.rightBrace.getDefaultAdjustValues=e=>{let h={};return h.adj1=8333,h.adj2=5e4,h},C.rightBrace.getAdjustValueNames=()=>["adj1","adj2"],C.rightBrace.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,1e5)),e.q1=1e5-e.a2,e.q2=Math.min(e.q1,e.a2),e.q3=+e.q2/2,e.maxAdj1=e.q3*e.h/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.y1=Math.min(e.w,e.h)*e.a1/1e5,e.y3=e.h*e.a2/1e5,e.y2=e.y3+0-e.y1,e.y4=e.b+0-e.y1,e.dx1=e.w/2*Math.cos(27e5*Math.PI/108e5),e.dy1=e.y1*Math.sin(27e5*Math.PI/108e5),e.ir=e.l+e.dx1-0,e.it=e.y1+0-e.dy1,e.ib=e.b+e.dy1-e.y1},C.rightBrace._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y3}),h.push(n),h},C.rightBrace.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.l,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.r,y:t.y3}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.l,y:t.b}),h.push(n),h},C.rightBrace.getTextRect=e=>({l:e.l,t:e.it,r:e.ir,b:e.ib}),C.rightBrace.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=108e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:(e.l+e.r)/2,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.y1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.rightBracket={name:"rightBracket",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.rightBracket.getDefaultAdjustValues=e=>{let h={};return h.adj=8333,h},C.rightBracket.getAdjustValueNames=()=>["adj"],C.rightBracket.updateShapeGuides=e=>{e.maxAdj=5e4*e.h/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.y1=Math.min(e.w,e.h)*e.a/1e5,e.y2=e.b+0-e.y1,e.dx1=e.w*Math.cos(27e5*Math.PI/108e5),e.dy1=e.y1*Math.sin(27e5*Math.PI/108e5),e.ir=e.l+e.dx1-0,e.it=e.y1+0-e.dy1,e.ib=e.b+e.dy1-e.y1},C.rightBracket._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.r,y:t.y1}),h.push(n),h},C.rightBracket.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.l,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.l,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.rightBracket.getTextRect=e=>({l:e.l,t:e.it,r:e.ir,b:e.ib}),C.rightBracket.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.w,g=e.y1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w,ry:e.y1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.round1Rect={name:"round1Rect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.round1Rect.getDefaultAdjustValues=e=>{let h={};return h.adj=16667,h},C.round1Rect.getAdjustValueNames=()=>["adj"],C.round1Rect.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dx1=Math.min(e.w,e.h)*e.a/1e5,e.x1=e.r+0-e.dx1,e.idx=29289*e.dx1/1e5,e.ir=e.r+0-e.idx},C.round1Rect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.round1Rect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.round1Rect.getTextRect=e=>({l:e.l,t:e.t,r:e.ir,b:e.b}),C.round1Rect.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.t},f.push(a),n=a.x,t=a.y,y=e.dx1,g=e.dx1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.dx1,ry:e.dx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.dx1,ry:e.dx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.round2DiagRect={name:"round2DiagRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.round2DiagRect.getDefaultAdjustValues=e=>{let h={};return h.adj1=16667,h.adj2=0,h},C.round2DiagRect.getAdjustValueNames=()=>["adj1","adj2"],C.round2DiagRect.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.x1=Math.min(e.w,e.h)*e.a1/1e5,e.y1=e.b+0-e.x1,e.a=Math.min(e.w,e.h)*e.a2/1e5,e.x2=e.r+0-e.a,e.y2=e.b+0-e.a,e.dx1=29289*e.x1/1e5,e.dx2=29289*e.a/1e5,e.d=e.dx1+0-e.dx2,e.dx=e.d>0?e.dx1:e.dx2,e.ir=e.r+0-e.dx,e.ib=e.b+0-e.dx},C.round2DiagRect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.round2DiagRect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.round2DiagRect.getTextRect=e=>({l:e.dx,t:e.dx,r:e.ir,b:e.ib}),C.round2DiagRect.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.a,g=e.a,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.a,ry:e.a,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.a,ry:e.a,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.a,y:e.b},f.push(a),n=a.x,t=a.y,y=e.a,g=e.a,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.a,ry:e.a,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.a,ry:e.a,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.round2SameRect={name:"round2SameRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.round2SameRect.getDefaultAdjustValues=e=>{let h={};return h.adj1=16667,h.adj2=0,h},C.round2SameRect.getAdjustValueNames=()=>["adj1","adj2"],C.round2SameRect.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.tx1=Math.min(e.w,e.h)*e.a1/1e5,e.tx2=e.r+0-e.tx1,e.bx1=Math.min(e.w,e.h)*e.a2/1e5,e.bx2=e.r+0-e.bx1,e.by1=e.b+0-e.bx1,e.d=e.tx1+0-e.bx1,e.tdx=29289*e.tx1/1e5,e.bdx=29289*e.bx1/1e5,e.il=e.d>0?e.tdx:e.bdx,e.ir=e.r+0-e.il,e.ib=e.b+0-e.bdx},C.round2SameRect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.tx2,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.bx1,y:t.b}),h.push(n),h},C.round2SameRect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.round2SameRect.getTextRect=e=>({l:e.il,t:e.tdx,r:e.ir,b:e.ib}),C.round2SameRect.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.tx1,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.tx2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.tx1,g=e.tx1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.tx1,ry:e.tx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.tx1,ry:e.tx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.by1},f.push(a),n=a.x,t=a.y,y=e.bx1,g=e.bx1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bx1,ry:e.bx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bx1,ry:e.bx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.bx1,y:e.b},f.push(a),n=a.x,t=a.y,y=e.bx1,g=e.bx1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bx1,ry:e.bx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bx1,ry:e.bx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.tx1},f.push(a),n=a.x,t=a.y,y=e.tx1,g=e.tx1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.tx1,ry:e.tx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.tx1,ry:e.tx1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.roundRect={name:"roundRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.roundRect.getDefaultAdjustValues=e=>{let h={};return h.adj=16667,h},C.roundRect.getAdjustValueNames=()=>["adj"],C.roundRect.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.x1=Math.min(e.w,e.h)*e.a/1e5,e.x2=e.r+0-e.x1,e.y2=e.b+0-e.x1,e.il=29289*e.x1/1e5,e.ir=e.r+0-e.il,e.ib=e.b+0-e.il},C.roundRect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.roundRect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.roundRect.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.roundRect.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.b},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.rtTriangle={name:"rtTriangle",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.rtTriangle.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.l,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.l,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.r,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),h.push(n),h},C.rtTriangle.getTextRect=e=>({l:e.w/12,t:e.it,r:e.ir,b:e.ib}),C.rtTriangle.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.rtTriangle.updateShapeGuides=e=>{e.it=7*e.h/12,e.ir=7*e.w/12,e.ib=11*e.h/12},C.smileyFace={name:"smileyFace",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.smileyFace.getDefaultAdjustValues=e=>{let h={};return h.adj=4653,h},C.smileyFace.getAdjustValueNames=()=>["adj"],C.smileyFace.updateShapeGuides=e=>{e.a=Math.max(-4653,Math.min(e.adj,4653)),e.x1=4969*e.w/21699,e.x2=6215*e.w/21600,e.x3=13135*e.w/21600,e.x4=16640*e.w/21600,e.y1=7570*e.h/21600,e.y3=16515*e.h/21600,e.dy2=e.h*e.a/1e5,e.y2=e.y3+0-e.dy2,e.y4=e.y3+e.dy2-0,e.dy3=e.h*e.a/5e4,e.y5=e.y4+e.dy3-0,e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0,e.wR=1125*e.w/21600,e.hR=1125*e.h/21600},C.smileyFace._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.y4}),h.push(n),h},C.smileyFace.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),h},C.smileyFace.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.smileyFace.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x2,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.hR,c=108e5,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"M",x:e.x3,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.hR,c=108e5,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"Q",x1:(e.l+e.r)/2,y1:e.y5,x:e.x4,y:e.y2},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.snip1Rect={name:"snip1Rect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.snip1Rect.getDefaultAdjustValues=e=>{let h={};return h.adj=16667,h},C.snip1Rect.getAdjustValueNames=()=>["adj"],C.snip1Rect.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dx1=Math.min(e.w,e.h)*e.a/1e5,e.x1=e.r+0-e.dx1,e.it=+e.dx1/2,e.ir=(e.x1+e.r)/2},C.snip1Rect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.snip1Rect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.snip1Rect.getTextRect=e=>({l:e.l,t:e.it,r:e.ir,b:e.b}),C.snip1Rect.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.dx1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.snip2DiagRect={name:"snip2DiagRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.snip2DiagRect.getDefaultAdjustValues=e=>{let h={};return h.adj1=0,h.adj2=16667,h},C.snip2DiagRect.getAdjustValueNames=()=>["adj1","adj2"],C.snip2DiagRect.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.lx1=Math.min(e.w,e.h)*e.a1/1e5,e.lx2=e.r+0-e.lx1,e.ly1=e.b+0-e.lx1,e.rx1=Math.min(e.w,e.h)*e.a2/1e5,e.rx2=e.r+0-e.rx1,e.ry1=e.b+0-e.rx1,e.d=e.lx1+0-e.rx1,e.dx=e.d>0?e.lx1:e.rx1,e.il=+e.dx/2,e.ir=e.r+0-e.il,e.ib=e.b+0-e.il},C.snip2DiagRect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.lx1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.rx2,y:t.t}),h.push(n),h},C.snip2DiagRect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.snip2DiagRect.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.snip2DiagRect.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.lx1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.rx2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.rx1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.ly1},n.push(t),t.x,t.y,t={action:"L",x:e.lx2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.rx1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.ry1},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.lx1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.snip2SameRect={name:"snip2SameRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.snip2SameRect.getDefaultAdjustValues=e=>{let h={};return h.adj1=16667,h.adj2=0,h},C.snip2SameRect.getAdjustValueNames=()=>["adj1","adj2"],C.snip2SameRect.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.tx1=Math.min(e.w,e.h)*e.a1/1e5,e.tx2=e.r+0-e.tx1,e.bx1=Math.min(e.w,e.h)*e.a2/1e5,e.bx2=e.r+0-e.bx1,e.by1=e.b+0-e.bx1,e.d=e.tx1+0-e.bx1,e.dx=e.d>0?e.tx1:e.bx1,e.il=+e.dx/2,e.ir=e.r+0-e.il,e.it=+e.tx1/2,e.ib=(e.by1+e.b)/2},C.snip2SameRect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.tx2,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.bx1,y:t.b}),h.push(n),h},C.snip2SameRect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.snip2SameRect.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.snip2SameRect.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.tx1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.tx2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.tx1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.by1},n.push(t),t.x,t.y,t={action:"L",x:e.bx2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.bx1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.by1},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.tx1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.snipRoundRect={name:"snipRoundRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.snipRoundRect.getDefaultAdjustValues=e=>{let h={};return h.adj1=16667,h.adj2=16667,h},C.snipRoundRect.getAdjustValueNames=()=>["adj1","adj2"],C.snipRoundRect.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,5e4)),e.a2=Math.max(0,Math.min(e.adj2,5e4)),e.x1=Math.min(e.w,e.h)*e.a1/1e5,e.dx2=Math.min(e.w,e.h)*e.a2/1e5,e.x2=e.r+0-e.dx2,e.il=29289*e.x1/1e5,e.ir=(e.x2+e.r)/2},C.snipRoundRect._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.snipRoundRect.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.snipRoundRect.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.b}),C.snipRoundRect.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.x1,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.dx2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.x1},f.push(a),n=a.x,t=a.y,y=e.x1,g=e.x1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.x1,ry:e.x1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.star10={name:"star10",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star10.getDefaultAdjustValues=e=>{let h={};return h.adj=42533,h.hf=105146,h},C.star10.getAdjustValueNames=()=>["adj","hf"],C.star10.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.swd2=e.w/2*e.hf/1e5,e.dx1=95106*e.swd2/1e5,e.dx2=58779*e.swd2/1e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.dy1=e.h/2*80902/1e5,e.dy2=e.h/2*30902/1e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+e.dy2-0,e.y4=(e.t+e.b)/2+e.dy1-0,e.iwd2=e.swd2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx1=80902*e.iwd2/1e5,e.sdx2=30902*e.iwd2/1e5,e.sdy1=95106*e.ihd2/1e5,e.sdy2=58779*e.ihd2/1e5,e.sx1=(e.l+e.r)/2+0-e.iwd2,e.sx2=(e.l+e.r)/2+0-e.sdx1,e.sx3=(e.l+e.r)/2+0-e.sdx2,e.sx4=(e.l+e.r)/2+e.sdx2-0,e.sx5=(e.l+e.r)/2+e.sdx1-0,e.sx6=(e.l+e.r)/2+e.iwd2-0,e.sy1=(e.t+e.b)/2+0-e.sdy1,e.sy2=(e.t+e.b)/2+0-e.sdy2,e.sy3=(e.t+e.b)/2+e.sdy2-0,e.sy4=(e.t+e.b)/2+e.sdy1-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star10._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star10.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.y4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.y1}),h.push(n),h},C.star10.getTextRect=e=>({l:e.sx2,t:e.sy2,r:e.sx5,b:e.sy3}),C.star10.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star12={name:"star12",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star12.getDefaultAdjustValues=e=>{let h={};return h.adj=37500,h},C.star12.getAdjustValueNames=()=>["adj"],C.star12.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dx1=e.w/2*Math.cos(18e5*Math.PI/108e5),e.dy1=e.h/2*Math.sin(36e5*Math.PI/108e5),e.x1=(e.l+e.r)/2+0-e.dx1,e.x3=3*e.w/4,e.x4=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+0-e.dy1,e.y3=3*e.h/4,e.y4=(e.t+e.b)/2+e.dy1-0,e.iwd2=e.w/2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx1=e.iwd2*Math.cos(9e5*Math.PI/108e5),e.sdx2=e.iwd2*Math.cos(27e5*Math.PI/108e5),e.sdx3=e.iwd2*Math.cos(45e5*Math.PI/108e5),e.sdy1=e.ihd2*Math.sin(45e5*Math.PI/108e5),e.sdy2=e.ihd2*Math.sin(27e5*Math.PI/108e5),e.sdy3=e.ihd2*Math.sin(9e5*Math.PI/108e5),e.sx1=(e.l+e.r)/2+0-e.sdx1,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+0-e.sdx3,e.sx4=(e.l+e.r)/2+e.sdx3-0,e.sx5=(e.l+e.r)/2+e.sdx2-0,e.sx6=(e.l+e.r)/2+e.sdx1-0,e.sy1=(e.t+e.b)/2+0-e.sdy1,e.sy2=(e.t+e.b)/2+0-e.sdy2,e.sy3=(e.t+e.b)/2+0-e.sdy3,e.sy4=(e.t+e.b)/2+e.sdy3-0,e.sy5=(e.t+e.b)/2+e.sdy2-0,e.sy6=(e.t+e.b)/2+e.sdy1-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star12._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star12.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.h/4}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.w/4,y:t.y4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.h/4}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.w/4,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.y1}),h.push(n),h},C.star12.getTextRect=e=>({l:e.sx2,t:e.sy2,r:e.sx5,b:e.sy5}),C.star12.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.h/4},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.w/4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.h/4},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy5},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:e.w/4,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy5},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy4},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star16={name:"star16",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star16.getDefaultAdjustValues=e=>{let h={};return h.adj=37500,h},C.star16.getAdjustValueNames=()=>["adj"],C.star16.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dx1=e.w/2*92388/1e5,e.dx2=e.w/2*70711/1e5,e.dx3=e.w/2*38268/1e5,e.dy1=e.h/2*92388/1e5,e.dy2=e.h/2*70711/1e5,e.dy3=e.h/2*38268/1e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+0-e.dx3,e.x4=(e.l+e.r)/2+e.dx3-0,e.x5=(e.l+e.r)/2+e.dx2-0,e.x6=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+0-e.dy3,e.y4=(e.t+e.b)/2+e.dy3-0,e.y5=(e.t+e.b)/2+e.dy2-0,e.y6=(e.t+e.b)/2+e.dy1-0,e.iwd2=e.w/2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx1=98079*e.iwd2/1e5,e.sdx2=83147*e.iwd2/1e5,e.sdx3=55557*e.iwd2/1e5,e.sdx4=19509*e.iwd2/1e5,e.sdy1=98079*e.ihd2/1e5,e.sdy2=83147*e.ihd2/1e5,e.sdy3=55557*e.ihd2/1e5,e.sdy4=19509*e.ihd2/1e5,e.sx1=(e.l+e.r)/2+0-e.sdx1,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+0-e.sdx3,e.sx4=(e.l+e.r)/2+0-e.sdx4,e.sx5=(e.l+e.r)/2+e.sdx4-0,e.sx6=(e.l+e.r)/2+e.sdx3-0,e.sx7=(e.l+e.r)/2+e.sdx2-0,e.sx8=(e.l+e.r)/2+e.sdx1-0,e.sy1=(e.t+e.b)/2+0-e.sdy1,e.sy2=(e.t+e.b)/2+0-e.sdy2,e.sy3=(e.t+e.b)/2+0-e.sdy3,e.sy4=(e.t+e.b)/2+0-e.sdy4,e.sy5=(e.t+e.b)/2+e.sdy4-0,e.sy6=(e.t+e.b)/2+e.sdy3-0,e.sy7=(e.t+e.b)/2+e.sdy2-0,e.sy8=(e.t+e.b)/2+e.sdy1-0,e.idx=e.iwd2*Math.cos(27e5*Math.PI/108e5),e.idy=e.ihd2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.it=(e.t+e.b)/2+0-e.idy,e.ir=(e.l+e.r)/2+e.idx-0,e.ib=(e.t+e.b)/2+e.idy-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star16._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star16.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x5,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:t.y3}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:t.y4}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x5,y:t.y5}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x4,y:t.y6}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y6}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x2,y:t.y5}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y4}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x3,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x4,y:t.y1}),h.push(n),h},C.star16.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.star16.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx7,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx8,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx8,y:e.sy5},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx7,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy7},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy8},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy8},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy7},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy5},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star24={name:"star24",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star24.getDefaultAdjustValues=e=>{let h={};return h.adj=37500,h},C.star24.getAdjustValueNames=()=>["adj"],C.star24.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dx1=e.w/2*Math.cos(9e5*Math.PI/108e5),e.dx2=e.w/2*Math.cos(18e5*Math.PI/108e5),e.dx3=e.w/2*Math.cos(27e5*Math.PI/108e5),e.dx4=e.w/4,e.dx5=e.w/2*Math.cos(45e5*Math.PI/108e5),e.dy1=e.h/2*Math.sin(45e5*Math.PI/108e5),e.dy2=e.h/2*Math.sin(36e5*Math.PI/108e5),e.dy3=e.h/2*Math.sin(27e5*Math.PI/108e5),e.dy4=e.h/4,e.dy5=e.h/2*Math.sin(9e5*Math.PI/108e5),e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+0-e.dx3,e.x4=(e.l+e.r)/2+0-e.dx4,e.x5=(e.l+e.r)/2+0-e.dx5,e.x6=(e.l+e.r)/2+e.dx5-0,e.x7=(e.l+e.r)/2+e.dx4-0,e.x8=(e.l+e.r)/2+e.dx3-0,e.x9=(e.l+e.r)/2+e.dx2-0,e.x10=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+0-e.dy3,e.y4=(e.t+e.b)/2+0-e.dy4,e.y5=(e.t+e.b)/2+0-e.dy5,e.y6=(e.t+e.b)/2+e.dy5-0,e.y7=(e.t+e.b)/2+e.dy4-0,e.y8=(e.t+e.b)/2+e.dy3-0,e.y9=(e.t+e.b)/2+e.dy2-0,e.y10=(e.t+e.b)/2+e.dy1-0,e.iwd2=e.w/2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx1=99144*e.iwd2/1e5,e.sdx2=92388*e.iwd2/1e5,e.sdx3=79335*e.iwd2/1e5,e.sdx4=60876*e.iwd2/1e5,e.sdx5=38268*e.iwd2/1e5,e.sdx6=13053*e.iwd2/1e5,e.sdy1=99144*e.ihd2/1e5,e.sdy2=92388*e.ihd2/1e5,e.sdy3=79335*e.ihd2/1e5,e.sdy4=60876*e.ihd2/1e5,e.sdy5=38268*e.ihd2/1e5,e.sdy6=13053*e.ihd2/1e5,e.sx1=(e.l+e.r)/2+0-e.sdx1,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+0-e.sdx3,e.sx4=(e.l+e.r)/2+0-e.sdx4,e.sx5=(e.l+e.r)/2+0-e.sdx5,e.sx6=(e.l+e.r)/2+0-e.sdx6,e.sx7=(e.l+e.r)/2+e.sdx6-0,e.sx8=(e.l+e.r)/2+e.sdx5-0,e.sx9=(e.l+e.r)/2+e.sdx4-0,e.sx10=(e.l+e.r)/2+e.sdx3-0,e.sx11=(e.l+e.r)/2+e.sdx2-0,e.sx12=(e.l+e.r)/2+e.sdx1-0,e.sy1=(e.t+e.b)/2+0-e.sdy1,e.sy2=(e.t+e.b)/2+0-e.sdy2,e.sy3=(e.t+e.b)/2+0-e.sdy3,e.sy4=(e.t+e.b)/2+0-e.sdy4,e.sy5=(e.t+e.b)/2+0-e.sdy5,e.sy6=(e.t+e.b)/2+0-e.sdy6,e.sy7=(e.t+e.b)/2+e.sdy6-0,e.sy8=(e.t+e.b)/2+e.sdy5-0,e.sy9=(e.t+e.b)/2+e.sdy4-0,e.sy10=(e.t+e.b)/2+e.sdy3-0,e.sy11=(e.t+e.b)/2+e.sdy2-0,e.sy12=(e.t+e.b)/2+e.sdy1-0,e.idx=e.iwd2*Math.cos(27e5*Math.PI/108e5),e.idy=e.ihd2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.it=(e.t+e.b)/2+0-e.idy,e.ir=(e.l+e.r)/2+e.idx-0,e.ib=(e.t+e.b)/2+e.idy-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star24._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star24.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.star24.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.star24.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy5},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx7,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx8,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx9,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx10,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x9,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx11,y:e.sy5},n.push(t),t.x,t.y,t={action:"L",x:e.x10,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.sx12,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx12,y:e.sy7},n.push(t),t.x,t.y,t={action:"L",x:e.x10,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.sx11,y:e.sy8},n.push(t),t.x,t.y,t={action:"L",x:e.x9,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.sx10,y:e.sy9},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:e.sx9,y:e.sy10},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y9},n.push(t),t.x,t.y,t={action:"L",x:e.sx8,y:e.sy11},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y10},n.push(t),t.x,t.y,t={action:"L",x:e.sx7,y:e.sy12},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy12},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y10},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy11},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y9},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy10},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy9},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy8},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy7},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star32={name:"star32",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star32.getDefaultAdjustValues=e=>{let h={};return h.adj=37500,h},C.star32.getAdjustValueNames=()=>["adj"],C.star32.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dx1=e.w/2*98079/1e5,e.dx2=e.w/2*92388/1e5,e.dx3=e.w/2*83147/1e5,e.dx4=e.w/2*Math.cos(27e5*Math.PI/108e5),e.dx5=e.w/2*55557/1e5,e.dx6=e.w/2*38268/1e5,e.dx7=e.w/2*19509/1e5,e.dy1=e.h/2*98079/1e5,e.dy2=e.h/2*92388/1e5,e.dy3=e.h/2*83147/1e5,e.dy4=e.h/2*Math.sin(27e5*Math.PI/108e5),e.dy5=e.h/2*55557/1e5,e.dy6=e.h/2*38268/1e5,e.dy7=e.h/2*19509/1e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+0-e.dx3,e.x4=(e.l+e.r)/2+0-e.dx4,e.x5=(e.l+e.r)/2+0-e.dx5,e.x6=(e.l+e.r)/2+0-e.dx6,e.x7=(e.l+e.r)/2+0-e.dx7,e.x8=(e.l+e.r)/2+e.dx7-0,e.x9=(e.l+e.r)/2+e.dx6-0,e.x10=(e.l+e.r)/2+e.dx5-0,e.x11=(e.l+e.r)/2+e.dx4-0,e.x12=(e.l+e.r)/2+e.dx3-0,e.x13=(e.l+e.r)/2+e.dx2-0,e.x14=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+0-e.dy2,e.y3=(e.t+e.b)/2+0-e.dy3,e.y4=(e.t+e.b)/2+0-e.dy4,e.y5=(e.t+e.b)/2+0-e.dy5,e.y6=(e.t+e.b)/2+0-e.dy6,e.y7=(e.t+e.b)/2+0-e.dy7,e.y8=(e.t+e.b)/2+e.dy7-0,e.y9=(e.t+e.b)/2+e.dy6-0,e.y10=(e.t+e.b)/2+e.dy5-0,e.y11=(e.t+e.b)/2+e.dy4-0,e.y12=(e.t+e.b)/2+e.dy3-0,e.y13=(e.t+e.b)/2+e.dy2-0,e.y14=(e.t+e.b)/2+e.dy1-0,e.iwd2=e.w/2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx1=99518*e.iwd2/1e5,e.sdx2=95694*e.iwd2/1e5,e.sdx3=88192*e.iwd2/1e5,e.sdx4=77301*e.iwd2/1e5,e.sdx5=63439*e.iwd2/1e5,e.sdx6=47140*e.iwd2/1e5,e.sdx7=29028*e.iwd2/1e5,e.sdx8=9802*e.iwd2/1e5,e.sdy1=99518*e.ihd2/1e5,e.sdy2=95694*e.ihd2/1e5,e.sdy3=88192*e.ihd2/1e5,e.sdy4=77301*e.ihd2/1e5,e.sdy5=63439*e.ihd2/1e5,e.sdy6=47140*e.ihd2/1e5,e.sdy7=29028*e.ihd2/1e5,e.sdy8=9802*e.ihd2/1e5,e.sx1=(e.l+e.r)/2+0-e.sdx1,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+0-e.sdx3,e.sx4=(e.l+e.r)/2+0-e.sdx4,e.sx5=(e.l+e.r)/2+0-e.sdx5,e.sx6=(e.l+e.r)/2+0-e.sdx6,e.sx7=(e.l+e.r)/2+0-e.sdx7,e.sx8=(e.l+e.r)/2+0-e.sdx8,e.sx9=(e.l+e.r)/2+e.sdx8-0,e.sx10=(e.l+e.r)/2+e.sdx7-0,e.sx11=(e.l+e.r)/2+e.sdx6-0,e.sx12=(e.l+e.r)/2+e.sdx5-0,e.sx13=(e.l+e.r)/2+e.sdx4-0,e.sx14=(e.l+e.r)/2+e.sdx3-0,e.sx15=(e.l+e.r)/2+e.sdx2-0,e.sx16=(e.l+e.r)/2+e.sdx1-0,e.sy1=(e.t+e.b)/2+0-e.sdy1,e.sy2=(e.t+e.b)/2+0-e.sdy2,e.sy3=(e.t+e.b)/2+0-e.sdy3,e.sy4=(e.t+e.b)/2+0-e.sdy4,e.sy5=(e.t+e.b)/2+0-e.sdy5,e.sy6=(e.t+e.b)/2+0-e.sdy6,e.sy7=(e.t+e.b)/2+0-e.sdy7,e.sy8=(e.t+e.b)/2+0-e.sdy8,e.sy9=(e.t+e.b)/2+e.sdy8-0,e.sy10=(e.t+e.b)/2+e.sdy7-0,e.sy11=(e.t+e.b)/2+e.sdy6-0,e.sy12=(e.t+e.b)/2+e.sdy5-0,e.sy13=(e.t+e.b)/2+e.sdy4-0,e.sy14=(e.t+e.b)/2+e.sdy3-0,e.sy15=(e.t+e.b)/2+e.sdy2-0,e.sy16=(e.t+e.b)/2+e.sdy1-0,e.idx=e.iwd2*Math.cos(27e5*Math.PI/108e5),e.idy=e.ihd2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.it=(e.t+e.b)/2+0-e.idy,e.ir=(e.l+e.r)/2+e.idx-0,e.ib=(e.t+e.b)/2+e.idy-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star32._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star32.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.star32.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.star32.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy8},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy7},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy5},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx7,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx8,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx9,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx10,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x9,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx11,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x10,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx12,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x11,y:e.y4},n.push(t),t.x,t.y,t={action:"L",x:e.sx13,y:e.sy5},n.push(t),t.x,t.y,t={action:"L",x:e.x12,y:e.y5},n.push(t),t.x,t.y,t={action:"L",x:e.sx14,y:e.sy6},n.push(t),t.x,t.y,t={action:"L",x:e.x13,y:e.y6},n.push(t),t.x,t.y,t={action:"L",x:e.sx15,y:e.sy7},n.push(t),t.x,t.y,t={action:"L",x:e.x14,y:e.y7},n.push(t),t.x,t.y,t={action:"L",x:e.sx16,y:e.sy8},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx16,y:e.sy9},n.push(t),t.x,t.y,t={action:"L",x:e.x14,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:e.sx15,y:e.sy10},n.push(t),t.x,t.y,t={action:"L",x:e.x13,y:e.y9},n.push(t),t.x,t.y,t={action:"L",x:e.sx14,y:e.sy11},n.push(t),t.x,t.y,t={action:"L",x:e.x12,y:e.y10},n.push(t),t.x,t.y,t={action:"L",x:e.sx13,y:e.sy12},n.push(t),t.x,t.y,t={action:"L",x:e.x11,y:e.y11},n.push(t),t.x,t.y,t={action:"L",x:e.sx12,y:e.sy13},n.push(t),t.x,t.y,t={action:"L",x:e.x10,y:e.y12},n.push(t),t.x,t.y,t={action:"L",x:e.sx11,y:e.sy14},n.push(t),t.x,t.y,t={action:"L",x:e.x9,y:e.y13},n.push(t),t.x,t.y,t={action:"L",x:e.sx10,y:e.sy15},n.push(t),t.x,t.y,t={action:"L",x:e.x8,y:e.y14},n.push(t),t.x,t.y,t={action:"L",x:e.sx9,y:e.sy16},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx8,y:e.sy16},n.push(t),t.x,t.y,t={action:"L",x:e.x7,y:e.y14},n.push(t),t.x,t.y,t={action:"L",x:e.sx7,y:e.sy15},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y13},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy14},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y12},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy13},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y11},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy12},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y10},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy11},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y9},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy10},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y8},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy9},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star4={name:"star4",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star4.getDefaultAdjustValues=e=>{let h={};return h.adj=12500,h},C.star4.getAdjustValueNames=()=>["adj"],C.star4.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.iwd2=e.w/2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx=e.iwd2*Math.cos(27e5*Math.PI/108e5),e.sdy=e.ihd2*Math.sin(27e5*Math.PI/108e5),e.sx1=(e.l+e.r)/2+0-e.sdx,e.sx2=(e.l+e.r)/2+e.sdx-0,e.sy1=(e.t+e.b)/2+0-e.sdy,e.sy2=(e.t+e.b)/2+e.sdy-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star4._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star4.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.star4.getTextRect=e=>({l:e.sx1,t:e.sy1,r:e.sx2,b:e.sy2}),C.star4.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star5={name:"star5",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star5.getDefaultAdjustValues=e=>{let h={};return h.adj=19098,h.hf=105146,h.vf=110557,h},C.star5.getAdjustValueNames=()=>["adj","hf","vf"],C.star5.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.swd2=e.w/2*e.hf/1e5,e.shd2=e.h/2*e.vf/1e5,e.svc=(e.t+e.b)/2*e.vf/1e5,e.dx1=e.swd2*Math.cos(108e4*Math.PI/108e5),e.dx2=e.swd2*Math.cos(1836e4*Math.PI/108e5),e.dy1=e.shd2*Math.sin(108e4*Math.PI/108e5),e.dy2=e.shd2*Math.sin(1836e4*Math.PI/108e5),e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.y1=e.svc+0-e.dy1,e.y2=e.svc+0-e.dy2,e.iwd2=e.swd2*e.a/5e4,e.ihd2=e.shd2*e.a/5e4,e.sdx1=e.iwd2*Math.cos(2052e4*Math.PI/108e5),e.sdx2=e.iwd2*Math.cos(324e4*Math.PI/108e5),e.sdy1=e.ihd2*Math.sin(324e4*Math.PI/108e5),e.sdy2=e.ihd2*Math.sin(2052e4*Math.PI/108e5),e.sx1=(e.l+e.r)/2+0-e.sdx1,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+e.sdx2-0,e.sx4=(e.l+e.r)/2+e.sdx1-0,e.sy1=e.svc+0-e.sdy1,e.sy2=e.svc+0-e.sdy2,e.sy3=e.svc+e.ihd2-0,e.yAdj=e.svc+0-e.ihd2},C.star5._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star5.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:t.y1}),h.push(n),h},C.star5.getTextRect=e=>({l:e.sx1,t:e.sy1,r:e.sx4,b:e.sy3}),C.star5.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star6={name:"star6",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star6.getDefaultAdjustValues=e=>{let h={};return h.adj=28868,h.hf=115470,h},C.star6.getAdjustValueNames=()=>["adj","hf"],C.star6.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.swd2=e.w/2*e.hf/1e5,e.dx1=e.swd2*Math.cos(18e5*Math.PI/108e5),e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+e.dx1-0,e.y2=(e.t+e.b)/2+e.h/4-0,e.iwd2=e.swd2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx2=+e.iwd2/2,e.sx1=(e.l+e.r)/2+0-e.iwd2,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+e.sdx2-0,e.sx4=(e.l+e.r)/2+e.iwd2-0,e.sdy1=e.ihd2*Math.sin(36e5*Math.PI/108e5),e.sy1=(e.t+e.b)/2+0-e.sdy1,e.sy2=(e.t+e.b)/2+e.sdy1-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star6._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star6.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:t.h/4}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.h/4}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.star6.getTextRect=e=>({l:e.sx1,t:e.sy1,r:e.sx4,b:e.sy2}),C.star6.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.h/4},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.h/4},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star7={name:"star7",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star7.getDefaultAdjustValues=e=>{let h={};return h.adj=34601,h.hf=102572,h.vf=105210,h},C.star7.getAdjustValueNames=()=>["adj","hf","vf"],C.star7.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.swd2=e.w/2*e.hf/1e5,e.shd2=e.h/2*e.vf/1e5,e.svc=(e.t+e.b)/2*e.vf/1e5,e.dx1=97493*e.swd2/1e5,e.dx2=78183*e.swd2/1e5,e.dx3=43388*e.swd2/1e5,e.dy1=62349*e.shd2/1e5,e.dy2=22252*e.shd2/1e5,e.dy3=90097*e.shd2/1e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+0-e.dx3,e.x4=(e.l+e.r)/2+e.dx3-0,e.x5=(e.l+e.r)/2+e.dx2-0,e.x6=(e.l+e.r)/2+e.dx1-0,e.y1=e.svc+0-e.dy1,e.y2=e.svc+e.dy2-0,e.y3=e.svc+e.dy3-0,e.iwd2=e.swd2*e.a/5e4,e.ihd2=e.shd2*e.a/5e4,e.sdx1=97493*e.iwd2/1e5,e.sdx2=78183*e.iwd2/1e5,e.sdx3=43388*e.iwd2/1e5,e.sx1=(e.l+e.r)/2+0-e.sdx1,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+0-e.sdx3,e.sx4=(e.l+e.r)/2+e.sdx3-0,e.sx5=(e.l+e.r)/2+e.sdx2-0,e.sx6=(e.l+e.r)/2+e.sdx1-0,e.sdy1=90097*e.ihd2/1e5,e.sdy2=22252*e.ihd2/1e5,e.sdy3=62349*e.ihd2/1e5,e.sy1=e.svc+0-e.sdy1,e.sy2=e.svc+0-e.sdy2,e.sy3=e.svc+e.sdy3-0,e.sy4=e.svc+e.ihd2-0,e.yAdj=e.svc+0-e.ihd2},C.star7._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star7.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.x5,y:t.y1}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x6,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x4,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x3,y:t.y3}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x2,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),h},C.star7.getTextRect=e=>({l:e.sx2,t:e.sy1,r:e.sx5,b:e.sy3}),C.star7.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx6,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x6,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx5,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy3},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.star8={name:"star8",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.star8.getDefaultAdjustValues=e=>{let h={};return h.adj=37500,h},C.star8.getAdjustValueNames=()=>["adj"],C.star8.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,5e4)),e.dx1=e.w/2*Math.cos(27e5*Math.PI/108e5),e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+e.dx1-0,e.dy1=e.h/2*Math.sin(27e5*Math.PI/108e5),e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+e.dy1-0,e.iwd2=e.w/2*e.a/5e4,e.ihd2=e.h/2*e.a/5e4,e.sdx1=92388*e.iwd2/1e5,e.sdx2=38268*e.iwd2/1e5,e.sdy1=92388*e.ihd2/1e5,e.sdy2=38268*e.ihd2/1e5,e.sx1=(e.l+e.r)/2+0-e.sdx1,e.sx2=(e.l+e.r)/2+0-e.sdx2,e.sx3=(e.l+e.r)/2+e.sdx2-0,e.sx4=(e.l+e.r)/2+e.sdx1-0,e.sy1=(e.t+e.b)/2+0-e.sdy1,e.sy2=(e.t+e.b)/2+0-e.sdy2,e.sy3=(e.t+e.b)/2+e.sdy2-0,e.sy4=(e.t+e.b)/2+e.sdy1-0,e.yAdj=(e.t+e.b)/2+0-e.ihd2},C.star8._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),h.push(n),h},C.star8.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x1,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.y1}),h.push(n),h},C.star8.getTextRect=e=>({l:e.sx1,t:e.sy1,r:e.sx4,b:e.sy4}),C.star8.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy1},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.sx4,y:e.sy3},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx3,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.sx2,y:e.sy4},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.sx1,y:e.sy3},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.straightConnector1={name:"straightConnector1",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.straightConnector1.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.straightConnector1.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"none"}),h},C.stripedRightArrow={name:"stripedRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.stripedRightArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.stripedRightArrow.getAdjustValueNames=()=>["adj1","adj2"],C.stripedRightArrow.updateShapeGuides=e=>{e.maxAdj2=84375*e.w/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.x4=5*Math.min(e.w,e.h)/32,e.dx5=Math.min(e.w,e.h)*e.a2/1e5,e.x5=e.r+0-e.dx5,e.dy1=e.h*e.a1/2e5,e.y1=(e.t+e.b)/2+0-e.dy1,e.y2=(e.t+e.b)/2+e.dy1-0,e.dx6=e.dy1*e.dx5/(e.h/2),e.x6=e.r+0-e.dx6},C.stripedRightArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x5,y:t.t}),h.push(n),h},C.stripedRightArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x5,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x5,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.stripedRightArrow.getTextRect=e=>({l:e.x4,t:e.y1,r:e.x6,b:e.y2}),C.stripedRightArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:Math.min(e.w,e.h)/32,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:Math.min(e.w,e.h)/32,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:Math.min(e.w,e.h)/16,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:Math.min(e.w,e.h)/8,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:Math.min(e.w,e.h)/8,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:Math.min(e.w,e.h)/16,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,t={action:"M",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:(e.t+e.b)/2},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x5,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.sun={name:"sun",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.sun.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h},C.sun.getAdjustValueNames=()=>["adj"],C.sun.updateShapeGuides=e=>{e.a=Math.max(12500,Math.min(e.adj,46875)),e.g0=5e4-e.a,e.g1=30274*e.g0/32768,e.g2=12540*e.g0/32768,e.g3=e.g1+5e4-0,e.g4=e.g2+5e4-0,e.g5=5e4-e.g1,e.g6=5e4-e.g2,e.g7=23170*e.g0/32768,e.g8=5e4+e.g7-0,e.g9=5e4-e.g7,e.g10=3*e.g5/4,e.g11=3*e.g6/4,e.g12=e.g10+3662-0,e.g13=e.g11+3662-0,e.g14=e.g11+12500-0,e.g15=1e5-e.g10,e.g16=1e5-e.g12,e.g17=1e5-e.g13,e.g18=1e5-e.g14,e.ox1=18436*e.w/21600,e.oy1=3163*e.h/21600,e.ox2=3163*e.w/21600,e.oy2=18436*e.h/21600,e.x8=e.w*e.g8/1e5,e.x9=e.w*e.g9/1e5,e.x10=e.w*e.g10/1e5,e.x12=e.w*e.g12/1e5,e.x13=e.w*e.g13/1e5,e.x14=e.w*e.g14/1e5,e.x15=e.w*e.g15/1e5,e.x16=e.w*e.g16/1e5,e.x17=e.w*e.g17/1e5,e.x18=e.w*e.g18/1e5,e.x19=e.w*e.a/1e5,e.wR=e.w*e.g0/1e5,e.hR=e.h*e.g0/1e5,e.y8=e.h*e.g8/1e5,e.y9=e.h*e.g9/1e5,e.y10=e.h*e.g10/1e5,e.y12=e.h*e.g12/1e5,e.y13=e.h*e.g13/1e5,e.y14=e.h*e.g14/1e5,e.y15=e.h*e.g15/1e5,e.y16=e.h*e.g16/1e5,e.y17=e.h*e.g17/1e5,e.y18=e.h*e.g18/1e5},C.sun._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x19,y:(t.t+t.b)/2}),h.push(n),h},C.sun.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),h},C.sun.getTextRect=e=>({l:e.x9,t:e.y9,r:e.x8,b:e.y8}),C.sun.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.r,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x15,y:e.y18},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x15,y:e.y14},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ox1,y:e.oy1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x16,y:e.y13},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x17,y:e.y12},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:(e.l+e.r)/2,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x18,y:e.y10},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x14,y:e.y10},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ox2,y:e.oy1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x13,y:e.y12},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x12,y:e.y13},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x10,y:e.y14},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x10,y:e.y18},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ox2,y:e.oy2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x12,y:e.y17},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x13,y:e.y16},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:(e.l+e.r)/2,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x14,y:e.y15},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x18,y:e.y15},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ox1,y:e.oy2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x17,y:e.y16},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x16,y:e.y17},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x19,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.wR,g=e.hR,c=108e5,(m=(o=0)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.wR,ry:e.hR,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.teardrop={name:"teardrop",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.teardrop.getDefaultAdjustValues=e=>{let h={};return h.adj=1e5,h},C.teardrop.getAdjustValueNames=()=>["adj"],C.teardrop.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,2e5)),e.r2=Math.sqrt(2),e.tw=e.w/2*e.r2/1,e.th=e.h/2*e.r2/1,e.sw=e.tw*e.a/1e5,e.sh=e.th*e.a/1e5,e.dx1=e.sw*Math.cos(27e5*Math.PI/108e5),e.dy1=e.sh*Math.sin(27e5*Math.PI/108e5),e.x1=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+0-e.dy1,e.x2=((e.l+e.r)/2+e.x1)/2,e.y2=((e.t+e.b)/2+e.y1)/2,e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.teardrop._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),h},C.teardrop.getConnections=e=>{let h=[],n;return(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.x1,y:t.y1}),h.push(n),h},C.teardrop.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.teardrop.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Q",x1:e.x2,y1:e.t,x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"Q",x1:e.r,y1:e.y2,x:e.r,y:(e.t+e.b)/2},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.trapezoid={name:"trapezoid",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.trapezoid.getDefaultAdjustValues=e=>{let h={};return h.adj=25e3,h},C.trapezoid.getAdjustValueNames=()=>["adj"],C.trapezoid.updateShapeGuides=e=>{e.maxAdj=5e4*e.w/Math.min(e.w,e.h),e.a=Math.max(0,Math.min(e.adj,e.maxAdj)),e.x1=Math.min(e.w,e.h)*e.a/2e5,e.x2=Math.min(e.w,e.h)*e.a/1e5,e.x3=e.r+0-e.x2,e.x4=e.r+0-e.x1,e.il=e.w/3*e.a/e.maxAdj,e.it=e.h/3*e.a/e.maxAdj,e.ir=e.r+0-e.il},C.trapezoid._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.trapezoid.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x4,y:(t.t+t.b)/2}),h.push(n),h},C.trapezoid.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.b}),C.trapezoid.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.triangle={name:"triangle",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.triangle.getDefaultAdjustValues=e=>{let h={};return h.adj=5e4,h},C.triangle.getAdjustValueNames=()=>["adj"],C.triangle.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,1e5)),e.x1=e.w*e.a/2e5,e.x2=e.w*e.a/1e5,e.x3=e.x1+e.w/2-0},C.triangle._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:t.t}),h.push(n),h},C.triangle.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:t.x2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.l,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.r,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x3,y:(t.t+t.b)/2}),h.push(n),h},C.triangle.getTextRect=e=>({l:e.x1,t:(e.t+e.b)/2,r:e.x3,b:e.b}),C.triangle.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.upArrowCallout={name:"upArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.upArrowCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h.adj4=64977,h},C.upArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],C.upArrowCallout.updateShapeGuides=e=>{e.maxAdj2=5e4*e.w/Math.min(e.w,e.h),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.maxAdj3=1e5*e.h/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.q2=e.a3*Math.min(e.w,e.h)/e.h,e.maxAdj4=1e5-e.q2,e.a4=Math.max(0,Math.min(e.adj4,e.maxAdj4)),e.dx1=Math.min(e.w,e.h)*e.a2/1e5,e.dx2=Math.min(e.w,e.h)*e.a1/2e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+0-e.dx2,e.x3=(e.l+e.r)/2+e.dx2-0,e.x4=(e.l+e.r)/2+e.dx1-0,e.y1=Math.min(e.w,e.h)*e.a3/1e5,e.dy2=e.h*e.a4/1e5,e.y2=e.b+0-e.dy2,e.y3=(e.y2+e.b)/2},C.upArrowCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x2,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.x1,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),h},C.upArrowCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y2}),h.push(n),h},C.upArrowCallout.getTextRect=e=>({l:e.l,t:e.y2,r:e.r,b:e.b}),C.upArrowCallout.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x4,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x3,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.upDownArrow={name:"upDownArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.upDownArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=5e4,h.adj2=5e4,h},C.upDownArrow.getAdjustValueNames=()=>["adj1","adj2"],C.upDownArrow.updateShapeGuides=e=>{e.maxAdj2=5e4*e.h/Math.min(e.w,e.h),e.a1=Math.max(0,Math.min(e.adj1,1e5)),e.a2=Math.max(0,Math.min(e.adj2,e.maxAdj2)),e.y2=Math.min(e.w,e.h)*e.a2/1e5,e.y3=e.b+0-e.y2,e.dx1=e.w*e.a1/2e5,e.x1=(e.l+e.r)/2+0-e.dx1,e.x2=(e.l+e.r)/2+e.dx1-0,e.dy1=e.x1*e.y2/(e.w/2),e.y1=e.y2+0-e.dy1,e.y4=e.y3+e.dy1-0},C.upDownArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.x1,y:t.y3}),h.push(n),(n={}).pos=t=>({x:t.l,y:t.y2}),h.push(n),h},C.upDownArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:t.y3}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y3}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y2}),h.push(n),h},C.upDownArrow.getTextRect=e=>({l:e.x1,t:e.y1,r:e.x2,b:e.y4}),C.upDownArrow.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:(e.l+e.r)/2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y3},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.y2},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.uturnArrow={name:"uturnArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.uturnArrow.getDefaultAdjustValues=e=>{let h={};return h.adj1=25e3,h.adj2=25e3,h.adj3=25e3,h.adj4=43750,h.adj5=75e3,h},C.uturnArrow.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5"],C.uturnArrow.updateShapeGuides=e=>{e.a2=Math.max(0,Math.min(e.adj2,25e3)),e.maxAdj1=2*e.a2/1,e.a1=Math.max(0,Math.min(e.adj1,e.maxAdj1)),e.q2=e.a1*Math.min(e.w,e.h)/e.h,e.q3=1e5-e.q2,e.maxAdj3=e.q3*e.h/Math.min(e.w,e.h),e.a3=Math.max(0,Math.min(e.adj3,e.maxAdj3)),e.q1=e.a3+e.a1-0,e.minAdj5=e.q1*Math.min(e.w,e.h)/e.h,e.a5=Math.max(e.minAdj5,Math.min(e.adj5,1e5)),e.th=Math.min(e.w,e.h)*e.a1/1e5,e.aw2=Math.min(e.w,e.h)*e.a2/1e5,e.th2=+e.th/2,e.dh2=e.aw2+0-e.th2,e.y5=e.h*e.a5/1e5,e.ah=Math.min(e.w,e.h)*e.a3/1e5,e.y4=e.y5+0-e.ah,e.x9=e.r+0-e.dh2,e.bw=+e.x9/2,e.bs=Math.min(e.bw,e.y4),e.maxAdj4=1e5*e.bs/Math.min(e.w,e.h),e.a4=Math.max(0,Math.min(e.adj4,e.maxAdj4)),e.bd=Math.min(e.w,e.h)*e.a4/1e5,e.bd3=e.bd+0-e.th,e.bd2=Math.max(e.bd3,0),e.x3=e.th+e.bd2-0,e.x8=e.r+0-e.aw2,e.x6=e.x8+0-e.aw2,e.x7=e.x6+e.dh2-0,e.x4=e.x9+0-e.bd,e.x5=e.x7+0-e.bd2,e.cx=(e.th+e.x7)/2},C.uturnArrow._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.th,y:t.b}),h.push(n),(n={}).pos=t=>({x:t.x6,y:t.b}),h.push(n),(n={}).pos=t=>({x:t.x6,y:t.y4}),h.push(n),(n={}).pos=t=>({x:t.bd,y:t.t}),h.push(n),(n={}).pos=t=>({x:t.r,y:t.y5}),h.push(n),h},C.uturnArrow.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.x6,y:t.y4}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.x8,y:t.y5}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:t.y4}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.cx,y:t.t}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.th2,y:t.b}),h.push(n),h},C.uturnArrow.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.uturnArrow.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.bd},f.push(a),n=a.x,t=a.y,y=e.bd,g=e.bd,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bd,ry:e.bd,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bd,ry:e.bd,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.t},f.push(a),n=a.x,t=a.y,y=e.bd,g=e.bd,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bd,ry:e.bd,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bd,ry:e.bd,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x9,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x8,y:e.y5},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.x3},f.push(a),n=a.x,t=a.y,y=e.bd2,g=e.bd2,c=0,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bd2,ry:e.bd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bd2,ry:e.bd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.th},f.push(a),n=a.x,t=a.y,y=e.bd2,g=e.bd2,c=162e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.bd2,ry:e.bd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.bd2,ry:e.bd2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.th,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.verticalScroll={name:"verticalScroll",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.verticalScroll.getDefaultAdjustValues=e=>{let h={};return h.adj=12500,h},C.verticalScroll.getAdjustValueNames=()=>["adj"],C.verticalScroll.updateShapeGuides=e=>{e.a=Math.max(0,Math.min(e.adj,25e3)),e.ch=Math.min(e.w,e.h)*e.a/1e5,e.ch2=+e.ch/2,e.ch4=+e.ch/4,e.x3=e.ch+e.ch2-0,e.x4=e.ch+e.ch-0,e.x6=e.r+0-e.ch,e.x7=e.r+0-e.ch2,e.x5=e.x6+0-e.ch2,e.y3=e.b+0-e.ch,e.y4=e.b+0-e.ch2},C.verticalScroll._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.ch}),h.push(n),h},C.verticalScroll.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.ch,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x6,y:(t.t+t.b)/2}),h.push(n),h},C.verticalScroll.getTextRect=e=>({l:e.ch,t:e.ch,r:e.x6,b:e.y4}),C.verticalScroll.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.ch2,y:e.b},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.ch2,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=54e5,(m=(o=-108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.t},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x4,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"norm"}),f=[],n=0,t=0,a={action:"M",x:e.x4,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ch,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=162e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!1,fill:"darkenLess"}),f=[],n=0,t=0,a={action:"M",x:e.ch,y:e.y3},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.ch2},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x7,y:e.t},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x6,y:e.y4},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.ch2,y:e.b},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x3,y:e.t},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=54e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x4,y:e.ch2},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.x6,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x3,y:e.ch},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ch2,y:e.y3},f.push(a),n=a.x,t=a.y,y=e.ch4,g=e.ch4,c=162e5,(m=(o=108e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch4,ry:e.ch4,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.y4},f.push(a),n=a.x,t=a.y,a={action:"M",x:e.ch2,y:e.b},f.push(a),n=a.x,t=a.y,y=e.ch2,g=e.ch2,c=54e5,(m=(o=-54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.ch2,ry:e.ch2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.ch,y:e.y3},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"none"}),h},C.wave={name:"wave",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.wave.getDefaultAdjustValues=e=>{let h={};return h.adj1=12500,h.adj2=0,h},C.wave.getAdjustValueNames=()=>["adj1","adj2"],C.wave.updateShapeGuides=e=>{e.a1=Math.max(0,Math.min(e.adj1,2e4)),e.a2=Math.max(-1e4,Math.min(e.adj2,1e4)),e.y1=e.h*e.a1/1e5,e.dy2=10*e.y1/3,e.y2=e.y1+0-e.dy2,e.y3=e.y1+e.dy2-0,e.y4=e.b+0-e.y1,e.y5=e.y4+0-e.dy2,e.y6=e.y4+e.dy2-0,e.dx1=e.w*e.a2/1e5,e.of2=e.w*e.a2/5e4,e.x1=Math.abs(e.dx1),e.dx2=e.of2>0?0:e.of2,e.x2=e.l+0-e.dx2,e.dx5=e.of2>0?e.of2:0,e.x5=e.r+0-e.dx5,e.dx3=(e.dx2+e.x5)/3,e.x3=e.x2+e.dx3-0,e.x4=(e.x3+e.x5)/2,e.x6=e.l+e.dx5-0,e.x10=e.r+e.dx2-0,e.x7=e.x6+e.dx3-0,e.x8=(e.x7+e.x10)/2,e.x9=e.r+0-e.x1,e.xAdj=(e.l+e.r)/2+e.dx1-0,e.xAdj2=(e.l+e.r)/2+0-e.dx1,e.il=Math.max(e.x2,e.x6),e.ir=Math.min(e.x5,e.x10),e.it=e.h*e.a1/5e4,e.ib=e.b+0-e.it},C.wave._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.l,y:t.y1}),h.push(n),(n={}).pos=t=>({x:t.xAdj,y:t.b}),h.push(n),h},C.wave.getConnections=e=>{let h=[],n;return(n={}).ang=t=>54e5,n.pos=t=>({x:t.xAdj2,y:t.y1}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.xAdj,y:t.y4}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.x9,y:(t.t+t.b)/2}),h.push(n),h},C.wave.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.wave.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.x2,y:e.y1},n.push(t),t.x,t.y,t={action:"C",x1:e.x3,y1:e.y2,x2:e.x4,y2:e.y3,x:e.x5,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.x10,y:e.y4},n.push(t),t.x,t.y,t={action:"C",x1:e.x8,y1:e.y6,x2:e.x7,y2:e.y5,x:e.x6,y:e.y4},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.wedgeEllipseCallout={name:"wedgeEllipseCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.wedgeEllipseCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=-20833,h.adj2=62500,h},C.wedgeEllipseCallout.getAdjustValueNames=()=>["adj1","adj2"],C.wedgeEllipseCallout.updateShapeGuides=e=>{e.dxPos=e.w*e.adj1/1e5,e.dyPos=e.h*e.adj2/1e5,e.xPos=(e.l+e.r)/2+e.dxPos-0,e.yPos=(e.t+e.b)/2+e.dyPos-0,e.sdx=e.dxPos*e.h/1,e.sdy=e.dyPos*e.w/1,e.pang=108e5*p(e.sdx,e.sdy)/Math.PI,e.stAng=e.pang+66e4-0,e.enAng=e.pang+0-66e4,e.dx1=e.w/2*Math.cos(e.stAng*Math.PI/108e5),e.dy1=e.h/2*Math.sin(e.stAng*Math.PI/108e5),e.x1=(e.l+e.r)/2+e.dx1-0,e.y1=(e.t+e.b)/2+e.dy1-0,e.dx2=e.w/2*Math.cos(e.enAng*Math.PI/108e5),e.dy2=e.h/2*Math.sin(e.enAng*Math.PI/108e5),e.x2=(e.l+e.r)/2+e.dx2-0,e.y2=(e.t+e.b)/2+e.dy2-0,e.stAng1=108e5*p(e.dx1,e.dy1)/Math.PI,e.enAng1=108e5*p(e.dx2,e.dy2)/Math.PI,e.swAng1=e.enAng1+0-e.stAng1,e.swAng2=e.swAng1+216e5-0,e.swAng=e.swAng1>0?e.swAng1:e.swAng2,e.idx=e.w/2*Math.cos(27e5*Math.PI/108e5),e.idy=e.h/2*Math.sin(27e5*Math.PI/108e5),e.il=(e.l+e.r)/2+0-e.idx,e.ir=(e.l+e.r)/2+e.idx-0,e.it=(e.t+e.b)/2+0-e.idy,e.ib=(e.t+e.b)/2+e.idy-0},C.wedgeEllipseCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.wedgeEllipseCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.il,y:t.it}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.il,y:t.ib}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.ir,y:t.ib}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>162e5,n.pos=t=>({x:t.ir,y:t.it}),h.push(n),(n={}).ang=t=>t.pang,n.pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.wedgeEllipseCallout.getTextRect=e=>({l:e.il,t:e.it,r:e.ir,b:e.ib}),C.wedgeEllipseCallout.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.xPos,y:e.yPos},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.y1},f.push(a),n=a.x,t=a.y,y=e.w/2,g=e.h/2,c=e.stAng1,o=e.swAng%216e5,(m=e.swAng!==0&&o===0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.w/2,ry:e.h/2,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h},C.wedgeRectCallout={name:"wedgeRectCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.wedgeRectCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=-20833,h.adj2=62500,h},C.wedgeRectCallout.getAdjustValueNames=()=>["adj1","adj2"],C.wedgeRectCallout.updateShapeGuides=e=>{e.dxPos=e.w*e.adj1/1e5,e.dyPos=e.h*e.adj2/1e5,e.xPos=(e.l+e.r)/2+e.dxPos-0,e.yPos=(e.t+e.b)/2+e.dyPos-0,e.dx=e.xPos+0-(e.l+e.r)/2,e.dy=e.yPos+0-(e.t+e.b)/2,e.dq=e.dxPos*e.h/e.w,e.ady=Math.abs(e.dyPos),e.adq=Math.abs(e.dq),e.dz=e.ady+0-e.adq,e.xg1=e.dxPos>0?7:2,e.xg2=e.dxPos>0?10:5,e.x1=e.w*e.xg1/12,e.x2=e.w*e.xg2/12,e.yg1=e.dyPos>0?7:2,e.yg2=e.dyPos>0?10:5,e.y1=e.h*e.yg1/12,e.y2=e.h*e.yg2/12,e.t1=e.dxPos>0?e.l:e.xPos,e.xl=e.dz>0?e.l:e.t1,e.t2=e.dyPos>0?e.x1:e.xPos,e.xt=e.dz>0?e.t2:e.x1,e.t3=e.dxPos>0?e.xPos:e.r,e.xr=e.dz>0?e.r:e.t3,e.t4=e.dyPos>0?e.xPos:e.x1,e.xb=e.dz>0?e.t4:e.x1,e.t5=e.dxPos>0?e.y1:e.yPos,e.yl=e.dz>0?e.y1:e.t5,e.t6=e.dyPos>0?e.t:e.yPos,e.yt=e.dz>0?e.t6:e.t,e.t7=e.dxPos>0?e.yPos:e.y1,e.yr=e.dz>0?e.y1:e.t7,e.t8=e.dyPos>0?e.yPos:e.b,e.yb=e.dz>0?e.t8:e.b},C.wedgeRectCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.wedgeRectCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.wedgeRectCallout.getTextRect=e=>({l:e.l,t:e.t,r:e.r,b:e.b}),C.wedgeRectCallout.getPaths=e=>{let h=[],n,t;return n=[],t={action:"M",x:e.l,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.xt,y:e.yt},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.t},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y1},n.push(t),t.x,t.y,t={action:"L",x:e.xr,y:e.yr},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.r,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.x2,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.xb,y:e.yb},n.push(t),t.x,t.y,t={action:"L",x:e.x1,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.b},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y2},n.push(t),t.x,t.y,t={action:"L",x:e.xl,y:e.yl},n.push(t),t.x,t.y,t={action:"L",x:e.l,y:e.y1},n.push(t),t.x,t.y,t={action:"Z"},n.push(t),t.x,t.y,h.push({path:n,stroke:!0,fill:"norm"}),h},C.wedgeRoundRectCallout={name:"wedgeRoundRectCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:e=>({}),updateShapeGuides:e=>{},_getAdjustHandles:e=>[],getPaths:e=>[],getConnections:e=>[],getTextRect:e=>{}},C.wedgeRoundRectCallout.getDefaultAdjustValues=e=>{let h={};return h.adj1=-20833,h.adj2=62500,h.adj3=16667,h},C.wedgeRoundRectCallout.getAdjustValueNames=()=>["adj1","adj2","adj3"],C.wedgeRoundRectCallout.updateShapeGuides=e=>{e.dxPos=e.w*e.adj1/1e5,e.dyPos=e.h*e.adj2/1e5,e.xPos=(e.l+e.r)/2+e.dxPos-0,e.yPos=(e.t+e.b)/2+e.dyPos-0,e.dq=e.dxPos*e.h/e.w,e.ady=Math.abs(e.dyPos),e.adq=Math.abs(e.dq),e.dz=e.ady+0-e.adq,e.xg1=e.dxPos>0?7:2,e.xg2=e.dxPos>0?10:5,e.x1=e.w*e.xg1/12,e.x2=e.w*e.xg2/12,e.yg1=e.dyPos>0?7:2,e.yg2=e.dyPos>0?10:5,e.y1=e.h*e.yg1/12,e.y2=e.h*e.yg2/12,e.t1=e.dxPos>0?e.l:e.xPos,e.xl=e.dz>0?e.l:e.t1,e.t2=e.dyPos>0?e.x1:e.xPos,e.xt=e.dz>0?e.t2:e.x1,e.t3=e.dxPos>0?e.xPos:e.r,e.xr=e.dz>0?e.r:e.t3,e.t4=e.dyPos>0?e.xPos:e.x1,e.xb=e.dz>0?e.t4:e.x1,e.t5=e.dxPos>0?e.y1:e.yPos,e.yl=e.dz>0?e.y1:e.t5,e.t6=e.dyPos>0?e.t:e.yPos,e.yt=e.dz>0?e.t6:e.t,e.t7=e.dxPos>0?e.yPos:e.y1,e.yr=e.dz>0?e.y1:e.t7,e.t8=e.dyPos>0?e.yPos:e.b,e.yb=e.dz>0?e.t8:e.b,e.u1=Math.min(e.w,e.h)*e.adj3/1e5,e.u2=e.r+0-e.u1,e.v2=e.b+0-e.u1,e.il=29289*e.u1/1e5,e.ir=e.r+0-e.il,e.ib=e.b+0-e.il},C.wedgeRoundRectCallout._getAdjustHandles=e=>{let h=[],n;return(n={}).pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.wedgeRoundRectCallout.getConnections=e=>{let h=[],n;return(n={}).ang=t=>162e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.t}),h.push(n),(n={}).ang=t=>108e5,n.pos=t=>({x:t.l,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:(t.l+t.r)/2,y:t.b}),h.push(n),(n={}).ang=t=>0,n.pos=t=>({x:t.r,y:(t.t+t.b)/2}),h.push(n),(n={}).ang=t=>54e5,n.pos=t=>({x:t.xPos,y:t.yPos}),h.push(n),h},C.wedgeRoundRectCallout.getTextRect=e=>({l:e.il,t:e.il,r:e.ir,b:e.ib}),C.wedgeRoundRectCallout.getPaths=e=>{let h=[],n,t,f,a,y,g,c,o,d,m;return f=[],n=0,t=0,a={action:"M",x:e.l,y:e.u1},f.push(a),n=a.x,t=a.y,y=e.u1,g=e.u1,c=108e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.xt,y:e.yt},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.t},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.u2,y:e.t},f.push(a),n=a.x,t=a.y,y=e.u1,g=e.u1,c=162e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.xr,y:e.yr},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.r,y:e.v2},f.push(a),n=a.x,t=a.y,y=e.u1,g=e.u1,c=0,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.x2,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.xb,y:e.yb},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.x1,y:e.b},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.u1,y:e.b},f.push(a),n=a.x,t=a.y,y=e.u1,g=e.u1,c=54e5,(m=(o=54e5)==0)&&(o=108e5),d=w(y,g,c*Math.PI/108e5,n,t,(c+o)*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a),m&&(n=a.x,t=a.y,c-=108e5,d=w(y,g,c*Math.PI/108e5,n,t,(c+(o=108e5))*Math.PI/108e5),a={action:"A",rx:e.u1,ry:e.u1,x:d.x,y:d.y,a:0,b:+(Math.abs(o)>108e5),c:o<0?0:1},f.push(a)),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y2},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.xl,y:e.yl},f.push(a),n=a.x,t=a.y,a={action:"L",x:e.l,y:e.y1},f.push(a),n=a.x,t=a.y,a={action:"Z"},f.push(a),n=a.x,t=a.y,h.push({path:f,stroke:!0,fill:"norm"}),h}}},Mr={};function Ct(U){var C=Mr[U];if(C!==void 0)return C.exports;var b=Mr[U]={exports:{}};return xr[U](b,b.exports,Ct),b.exports}Ct.n=U=>{var C=U&&U.__esModule?()=>U.default:()=>U;return Ct.d(C,{a:C}),C},Ct.d=(U,C)=>{for(var b in C)Ct.o(C,b)&&!Ct.o(U,b)&&Object.defineProperty(U,b,{enumerable:!0,get:C[b]})},Ct.g=(()=>{if(typeof globalThis=="object")return globalThis;try{return this||Function("return this")()}catch{if(typeof window=="object")return window}})(),Ct.o=(U,C)=>Object.prototype.hasOwnProperty.call(U,C),Ct.r=U=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})};var zr={};(()=>{let U,C,b,p,T,w,e,h;Ct.r(zr),Ct.d(zr,{DocumentViewer:()=>bb});var n,t,f={};Ct.r(f),Ct.d(f,{adoptNode:()=>lx,appendAllChilds:()=>dx,applyAllCssStyleRules:()=>ox,applyCssStyleRule:()=>cc,child:()=>Io,clearChilds:()=>sn,cloneWithTag:()=>W0,contains:()=>Ri,createCanvas:()=>wa,createCanvasRenderingContext2D:()=>Ma,createHTMLIFrame:()=>mn,createHTMLImageElement:()=>Mo,domChildCount:()=>gi,domChildLength:()=>gi,domIndex:()=>Yr,domIndexUnder:()=>mx,domUnder:()=>pi,elt:()=>fx,ensureCSSAdded:()=>xx,ensureDocumentFragment:()=>Co,exitFullscreen:()=>lc,extractCSSFontFaceRulesText:()=>_o,findCorrespondingDescendant:()=>gx,findIndexAlong:()=>gc,firstDescendant:()=>Ti,firstElementDescendant:()=>ea,focus:()=>Jy,forEachNode:()=>dc,generateResourceString:()=>ba,getCustomData:()=>ax,getElementCategoryList:()=>G0,getElementCategoryTags:()=>H0,getFullscreenChangeEventName:()=>Ky,getHTMLScriptSrc:()=>ix,getIndex:()=>Yr,getRangeClientRect:()=>uc,getReadyState:()=>nc,getSelectionRange:()=>sx,insertBackward:()=>So,insertCSS:()=>yx,insertForward:()=>cx,isCommentNode:()=>j0,isDisplayed:()=>va,isDocumentFragmentNode:()=>E0,isDom:()=>hx,isElementCategory:()=>Wr,isElementNode:()=>cr,isFullscreen:()=>ma,isHidden:()=>pc,isNode:()=>an,isShown:()=>ux,isSvgElement:()=>zs,isTextNode:()=>ci,loadFontFaces:()=>hc,matchesChild:()=>on,openWindow:()=>rx,prependAllChilds:()=>px,remove:()=>_a,requestFullscreen:()=>oc,resetDocument:()=>wo,setCustomData:()=>nx,setDisplay:()=>vx,setOpacity:()=>bx,setTranslate:()=>Mx,svgNS:()=>Uh,toggleFullscreen:()=>Qy,waitReadyStateComplete:()=>Yy,waitReadyStateInteractive:()=>Xy,xlinkNS:()=>$h});var a={};Ct.r(a),Ct.d(a,{BLANK_AS:()=>Bi,CHART_TYPE:()=>Wt,DEFAULT:()=>ar,DIRECTION:()=>Fx,GROUPING:()=>Xo,LABEL_POSITION:()=>Hx,LEGEND_POSITION:()=>Gx,LINE_DASH:()=>Wx,MARKER_SYMBOL:()=>Or,ORIENTATION:()=>Ra});var y={};function g(l){return l||Object.create(null)}Ct.r(y),Ct.d(y,{PLOT_STYLE:()=>Bt,ensureString:()=>ja,getFontHeight:()=>fi,isDefined:()=>Nr,isEmpty:()=>Oa,isFunction:()=>td,isNumber:()=>zt,isString:()=>rd,parseHexColor:()=>Yo,trimArray:()=>Na});let c=l=>{let r=typeof l=="number"?l:l?Number(l):NaN;return isFinite(r)?r:void 0},o={number:c,nonZeroNumber:l=>{let r=c(l);return typeof r=="number"&&r!==0?r:void 0},nonNegativeNumber:l=>{let r=c(l);return typeof r=="number"&&r>=0?r:void 0},positiveNumber:l=>{let r=c(l);return typeof r=="number"&&r>0?r:void 0},betweenZeroOneNumber:l=>{let r=c(l);return typeof r=="number"&&r>=0&&r<=1?r:void 0},integer:l=>{let r=c(l);return typeof r=="number"?Math.round(r):void 0},string:l=>typeof l=="string"?l:typeof l=="number"&&isFinite(l)?String(l):void 0,boolean:l=>l==null?void 0:!!l},d=Object.freeze(Object.create(null)),m=Object.freeze([]);function _(){}function M(){return null}function S(){return!0}function A(){return!1}function I(l){return l!=null}function k(){throw Error("Must override me.")}function D(l,r){l||function(i){throw Error(i||"Assertion failed.")}(r)}let L=function l(r,i,s){if(s===void 0&&(s={}),r===i)return!0;if(!(r&&typeof r=="object")||!(i&&typeof i=="object"))return!1;let u=Array.isArray(r);if(Array.isArray(i)!=u)return!1;if(u){if(r.length!=i.length)return!1;for(let x=0;x<r.length;x++)if(!l(r[x],i[x]))return!1}else{for(let x in r){if(!(x in i))return!1;if(typeof s[x]=="function"){if(!s[x](r[x],i[x]))return!1}else if(!l(r[x],i[x]))return!1}for(let x in i)if(!(x in r))return!1}return!0};function R(l,r,i){for(let s in l)if(Object.prototype.hasOwnProperty.call(l,s)&&r.call(i,l[s],s,l))break}function O(l,r,i,s){s!==!0&&(s===!1?r in l.prototype:l.prototype.hasOwnProperty(r))||(l.prototype[r]=i)}function N(l,r,i){var s,u,x,v,P,j,F;return s=l,u=r,x=void 0,v=i,P=s,j=u,F={configurable:!0,set:x,get:v},void Object.defineProperty(P.prototype,j,F)}function z(l,r){return l>=0?l%r:(r- -l%r)%r}function V(l,r,i){if(typeof l=="number"){if(l<0)return-1;if(l>0)return 1;if(r&&l===0)return 0}return typeof i=="number"?V(i,r):+!r}function B(l,r,i){i===void 0&&(i=1e-6);let s=l-r;return s>i?1:s<-i?-1:0}function G(l){return Number.isInteger(Number(l))}class E{constructor(r,i){this.fn=r,this.args=i,this.timer=void 0,this.flush=this.flush.bind(this)}isDelaying(){return this.timer!==void 0}getRemainingTime(){return this.dueTime===void 0?0:Math.max(Math.round(this.dueTime-performance.now()),0)}cancel(){return!!this.isDelaying()&&(clearTimeout(this.timer),this.timer=void 0,this.dueTime=void 0,!0)}flush(){this.cancel()&&this.fn?.apply(null,this.args??[])}delay(r,i,s){this.cancel(),i&&(this.fn=i),s&&(this.args=s),this.timer=setTimeout(this.flush,r),this.dueTime=performance.now()+r}maybeDelay(r,i,s){this.isDelaying()||this.delay(r,i,s)}}function H(l){for(let r in l)return!1;return!0}function W(l,r,i){return i.forEach(s=>{let u=s in r?r[s]:void 0;u!==void 0&&(l[s]=u)}),l}function $(l,r){return W(Object.create(null),l,r)}function Z(l,r,i){let s=null;return R(l,(u,x,v)=>!!r.call(i,u,x,v)&&(s=x,!0)),s}function Q(l,r,i){let s=!0;return R(l,(u,x,v)=>!r.call(i,u,x,v)&&(s=!1,!0)),s}function Y(l,r,i){let s=Object.create(null);return R(l,(u,x,v)=>{s[x]=r.call(i,u,x,v)}),s}function K(l,r,i){return R(l,(s,u,x)=>{i=r(i,s,u,x)}),i}function ne(l){return K(l,(r,i,s)=>(r[i]=s,r),Object.create(null))}class X{constructor(r){this.content=r}find(r){for(let i=0;i<this.content.length;i+=2)if(this.content[i]==r)return i;return-1}get(r){let i=this.find(r);return i==-1?void 0:this.content[i+1]}update(r,i,s){let u=s&&s!=r?this.remove(s):this,x=u.find(r),v=u.content.slice();return x==-1?v.push(s||r,i):(v[x+1]=i,s&&(v[x]=s)),new X(v)}remove(r){let i=this.find(r);if(i==-1)return this;let s=this.content.slice();return s.splice(i,2),new X(s)}addToStart(r,i){return new X([r,i].concat(this.remove(r).content))}addToEnd(r,i){let s=this.remove(r).content.slice();return s.push(r,i),new X(s)}addBefore(r,i,s){let u=this.remove(i),x=u.content.slice(),v=u.find(r);return x.splice(v==-1?x.length:v,0,i,s),new X(x)}forEach(r){for(let i=0;i<this.content.length;i+=2)r(this.content[i],this.content[i+1])}prepend(r){return(r=X.from(r)).size?new X(r.content.concat(this.subtract(r).content)):this}append(r){return(r=X.from(r)).size?new X(this.subtract(r).content.concat(r.content)):this}subtract(r){let i=this;return X.from(r).forEach(s=>i=i.remove(s)),i}get size(){return this.content.length>>1}static from(r){if(r instanceof X)return r;let i=[];if(r)for(let s in r)i.push(s,r[s]);return new X(i)}}class ee{constructor(r,i,s){this.list=r,this.value=i,this.next=s}findPrev(){let r=null,i;if(this.list.forEach(function(s){if(s===this)return i=!0,!0;r=s},this,{keep_current:!0,early_return:!0}),!i)throw Error("List item is not attached to list.");return r}attach(r){this.list&&this.unlink(),this.list=r}detach(){this.list=null,this.next=null}static _link(r,i,s){return r&&(r.next=i),i.next=s,i}static link(r,i,s){let u=(r||s).list;return i.attach(u),++u.length,u.head===s?u.head=i:u.tail===r&&(u.tail=i),this._link(r,i,s)}linkNext(r){return this.constructor.link(this,r,this.next)}linkPrev(r){let i=this.findPrev();return this.constructor.link(i,r,this)}static _unlink(r,i,s){return r&&(r.next=s),i}static unlink(r,i,s){let u=i.list;return i.detach(),u.length===1?u.clear():(--u.length,u.head===i?u.head=s:u.tail===i&&(u.tail=r),u.current===i&&(u.current=null)),this._unlink(r,i,s)}unlink(){return this.constructor.unlink(this.findPrev(),this,this.next)}unlinkNext(){let r=this.next;return r&&this.constructor.unlink(this,r,r.next),r}unlinkPrev(){let r=this.findPrev();return r&&r.unlink(),r}}class ae{constructor(r){this.length=0,this.head=null,this.tail=null,this.current=null,r&&r.forEach(this.append,this)}get headValue(){return this.getItemValue(this.head)}get tailValue(){return this.getItemValue(this.tail)}get currentValue(){return this.getItemValue(this.current)}createItem(r){return new ee(null,r)}getItemValue(r){return r?r.value:null}forEach(r,i,s){s===void 0&&(s=d);let{from_start:u,keep_current:x,early_return:v}=s,P=u?this.head:this.current;for(;P;){let j=P.next;x||(this.current=P);let F=r.call(i,P,this);if(v&&F!=null)return F;P=j}x||(this.current=null)}_init(r){return r.attach(this),this.length=1,this.current=this.head=this.tail=r}init(r){return this._init(this.createItem(r))}_prepend(r){return this.head?this.head.linkPrev(r):this._init(r)}prepend(r){return this._prepend(this.createItem(r))}_append(r){return this.tail?this.tail.linkNext(r):this._init(r)}append(r){return this._append(this.createItem(r))}_insertAfter(r){return this.current&&this.current.linkNext(r)}insertAfter(r){return this._insertAfter(this.createItem(r))}_insertBefore(r){return this.current&&this.current.linkPrev(r)}insertBefore(r){return this._insertBefore(this.createItem(r))}clear(){this.length=0,this.current=this.head=this.tail=null}unshift(){return this.head&&this.head.unlink()}pop(r){return this.tail&&this.tail.unlink()}removeAfter(){return this.current&&this.current.unlinkNext()}removeBefore(){return this.current&&this.current.unlinkPrev()}reset(r){return this.current=r?this.tail:this.head}next(){return this.current&&(this.current=this.current.next)}clone(){let r=new this.constructor;return this.length&&this.forEach(function(i){r.append(i.value)},this,{from_start:!0,keep_current:!0}),r}}class oe extends ee{constructor(r,i,s,u){super(r,i,u),this.prev=s}findPrev(){return this.prev}detach(){this.prev=null,super.detach()}static _link(r,i,s){return s&&(s.prev=i),i.prev=r,super._link(r,i,s)}static _unlink(r,i,s){return s&&(s.prev=r),super._unlink(r,i,s)}}class se extends ae{createItem(r){return new oe(null,r)}prev(){return this.current&&(this.current=this.current.prev)}}function ge(l){l===void 0&&(l=10);let r="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;s<l;s++)r+=i.charAt(Math.floor(Math.random()*i.length));return r}function fe(l,r){let i;if(l.isSimpleDOM===!0){do i=ge(10);while(l.synoIdMap.hasOwnProperty(i)===!0);l.synoIdMap[i]=r}else do i=ge(10);while(l.querySelector("["+r+'="'+i+'"]'));return i}function le(l,r){let i=l.x-r.x,s=l.y-r.y;return i*i+s*s}function ue(l){return l?JSON.parse(JSON.stringify(l)):Object.create(null)}function he(l,r,i,s){s===void 0&&(s=!0);let u=r||Object.create(null);if(i===!0&&(u=ue(u)),!l)return u;if(s===!0)for(let x in l)u[x]=l[x];else Array.isArray(s)&&s.forEach(function(x){l[x]!==void 0&&(u[x]=l[x])});return u}function pe(){let l=Object.create(null);for(let r=0,i=arguments.length;r<i;++r)l[arguments[r]]=r;return Object.freeze(l)}function ye(l,r,i,s){if(l===r)return!0;if(!l||!r||typeof l!="object"||typeof r!="object")return!1;let u=Array.isArray(l);if(u!==Array.isArray(r))return!1;if(s==null)if(u){let x=l.length;if(x!==r.length)return!1;for(let v=0;v<x;++v)if(!i(l[v],r[v],v))return!1;return!0}else{for(let x in l)if(!(x in r)||!i(l[x],r[x],x))return!1;for(let x in r)if(!(x in l))return!1;return!0}if(Array.isArray(s)){for(let x=0,v=s.length;x<v;++x){let P=s[x];if(!i(l[P],r[P],P))return!1}return!0}return i(l[s],r[s],s)}function ve(l,r){return l===r}function Ae(l,r){return ye(l,r,Ae)}function _e(l,r,i,s){s===void 0&&(s="value");let u=function(v,P){for(let j=v;j;j=Object.getPrototypeOf(j)){let F=Object.getOwnPropertyDescriptor(j,P);if(F)return F}}(l,r),x=u&&typeof u[s]=="function"?u[s]:null;return function(){return i.call(this,x,...arguments)}}function Pe(l,r,i,s){return!!function(u,x,v){switch(v){case"has":return!(x in u);case"own":return!u.hasOwnProperty(x);default:return!0}}(l,r,s)&&(Object.defineProperty(l,r,i),!0)}function Oe(l,r,i,s){return Pe(l,r,{configurable:!0,enumerable:!0,writable:!0,value:i},s)}function ke(l,r,i,s,u){return s&&(i=_e(l,r,i,"get")),Pe(l,r,{configurable:!0,set:void 0,get:i},u)}function De(l,r,i,s){return ke(l,r,()=>i,!1,s)}function Ce(l,r,i,s,u){return s&&(i=_e(l,r,i)),Oe(l,r,i,u)}let Le=Math.PI/180,Ve=180/Math.PI;var Ge=/\s/;let Je=function(l){for(var r=l.length;r--&&Ge.test(l.charAt(r)););return r};var rt=/^\s+/;let it=function(l){var r=typeof l;return l!=null&&(r=="object"||r=="function")};var mt=typeof Ls=="object"&&Ls&&Ls.Object===Object&&Ls,ct=typeof self=="object"&&self&&self.Object===Object&&self,et=mt||ct||Function("return this")(),Ke=et.Symbol,ft=Object.prototype,at=ft.hasOwnProperty,nt=ft.toString,yt=Ke?Ke.toStringTag:void 0;let dt=function(l){var r=at.call(l,yt),i=l[yt];try{l[yt]=void 0;var s=!0}catch{}var u=nt.call(l);return s&&(r?l[yt]=i:delete l[yt]),u};var bt=Object.prototype.toString,vt=Ke?Ke.toStringTag:void 0;let me=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":vt&&vt in Object(l)?dt(l):bt.call(l)},Ie=function(l){return l!=null&&typeof l=="object"},Ee=function(l){return typeof l=="symbol"||Ie(l)&&me(l)=="[object Symbol]"};var je=NaN,ze=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,He=/^0o[0-7]+$/i,$e=parseInt;let We=function(l){if(typeof l=="number")return l;if(Ee(l))return je;if(it(l)){var r,i=typeof l.valueOf=="function"?l.valueOf():l;l=it(i)?i+"":i}if(typeof l!="string")return l===0?l:+l;l=(r=l)?r.slice(0,Je(r)+1).replace(rt,""):r;var s=Fe.test(l);return s||He.test(l)?$e(l.slice(2),s?2:8):ze.test(l)?je:+l},qe=function(l,r,i){var s,u,x;return i===void 0&&(i=r,r=void 0),i!==void 0&&(i=(i=We(i))==i?i:0),r!==void 0&&(r=(r=We(r))==r?r:0),s=We(l),u=r,x=i,s==s&&(x!==void 0&&(s=s<=x?s:x),u!==void 0&&(s=s>=u?s:u)),s};function Ye(l,r){return isNaN(l=Number(l))?0:qe(l=l>=0?Math.floor(l):r+(l=Math.ceil(l)),0,r)}function st(l,r,i){return[l=l===void 0?0:Ye(l,i),l>(r=r===void 0?i:Ye(r,i))?l:r]}function pt(){for(var l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];let s=r.length;if(s===0)return[];if(s===1)return r[0].slice();if(s===2){let u=r[1];return r[0].filter(x=>u.includes(x))}{let u=r[0].slice();for(let x=1;x<s;++x){if(!u.length||!r[x].length)return[];let v=new Set;r[x].forEach(v.add,v),u=u.filter(v.has,v)}return u}}function _t(){for(var l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];let s=r.filter(x=>!!(x&&x.length)),u=s.length;if(u===0)return[];if(u===1)return s[0].slice();if(u!==2)return Array.from(s.reduce((x,v)=>(v.forEach(x.add,x),x),new Set));{let x=s[0];return s[1].reduce((v,P)=>(x.includes(P)||v.push(P),v),x.slice())}}function Ot(l,r){let i=new Set(r);return l.filter(s=>!i.has(s))}let Nt=/(?:https?:\/\/|www\.(?:[-\w@:%\\+~#=]+\.)+[a-zA-Z]{2,6}\b)/g,Fr=RegExp(`${Nt.source}[\\u0021-\\u007E]*`,"g"),kr={newLine:/(?:\r\n|\r|\n)/g,linkHttpHost:Nt,linkHttp:Fr,linkMailTo:/(?:mailto:)?(?:[^<>()[\]\\,;:\s@"]+|".+")@(?:\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]|(?:[a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})/g},_r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},_h=/[&<>"]/g,Ah=/[&<>]/g;function Gr(l){return l&&_h.test(l)?l.replace(_h,function(r){return _r[r]}):l}function Sh(l){return l&&Ah.test(l)?l.replace(Ah,function(r){return _r[r]}):l}let Lr=function(l,r,i){return Object.getOwnPropertyNames(r).forEach(s=>{if(Object.prototype.hasOwnProperty.call(l,s))throw Error(`Trying to mixin duplicated member ${s}.`);Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(r,s))}),r},Ch=function(l,r,i){return Lr(l.prototype,r)};function Ih(l){return l>=0&&l<=31||l===127}function Ph(l){return l>=55296&&l<=57343}function Th(l){return l>=56320&&l<=57343}function Ds(l){return l>=0&&l<65536}function Rs(l){return l>=65536&&l<=1114111}function*Pi(l,r){r===void 0&&(r={});let{from:i=0,to:s=l.length,reversed:u=!1}=r;if(!(i>=0&&i<=l.length&&s>=0&&s<=l.length&&i<s))return;let x=u?-1:1,v=u?i:s,P=u?s:i;for(;;){let j;if(P===v||typeof(j=P+x===v?l.charCodeAt(u?P+x:P):function(re,te,ie){if(ie>0)return re.codePointAt(te);if(te>=1&&te<=re.length){let de=re.charCodeAt(te-1);if(!Th(de))return de;{let ce=te>=2?re.codePointAt(te-2):void 0;return ce!==void 0&&Rs(ce)?ce:de}}}(l,P,x))!="number")break;let F=Rs(j),q=F?2:1,J=P+q*x;yield{value:j,index:u?J:P,length:q,isSupplementary:F},P=J}}var C0=Ct(23395),I0=Ct.n(C0);let Os=(()=>{let l;return()=>l??(l=new(I0()))})();function*Ns(l,r){let i=Os(),s=0;for(;!(s>=l.length);){let u=i.nextBreak(l,s);yield{index:s,length:u-s},s=u}}function*kh(l,r){if(r?.reversed){yield l.length;let i=Array.from(Ns(l));for(let s=i.length-2;s>=0;--s){let{index:u,length:x}=i[s];yield u+x}}else for(let{index:i,length:s}of Ns(l))yield i+s}class P0{constructor(r){this.text=r,this.breakCache=[]}next(r){if(r<0)return 0;if(r>=this.text.length)return this.text.length;let{text:i,breakCache:s}=this,u=Os();for(;r>=s.length;){let x=u.nextBreak(i,s.length);for(let v=s.length;v<x;++v)s.push(x)}return s[r]}}function rn(l){return l.map(r=>Array.isArray(r)?r:[r,r]).sort((r,i)=>r[0]-i[0]).reduce((r,i)=>{var s;let u=r.length;if(u&&(s=r[u-1],Ds(s[0])===Ds(i[0])&&i[0]<=s[1]+1)){let x=r[u-1];x[1]<i[1]&&(r[u-1]=[x[0],i[1]])}else r.push(i);return r},[])}function rr(l,r){let i=typeof r=="string"?r.charCodeAt(0):r;for(let s of l){if(i>=s[0]&&i<=s[1])return!0;if(i<s[0])break}return!1}function er(l){return"\\u"+l.toString(16).padStart(4,"0")}let Lh=function(l){let r=Object.create(null);for(let i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r[i]=rn(l[i]));return r}({cjk:[[12544,12591],[12704,12735],[19968,40959],[13312,19903],[131072,173791],[173824,177983],[177984,178207],[178208,183983],[183984,191456],[63744,64255],[194560,195103],[12032,12255],[11904,12031],[12736,12783],[12272,12287]],kana:[[12352,12447],[12448,12543],[12784,12799],[65381,65439],[12688,12703],[110592,110847],[110848,110895],[110896,110959]],hangui:[[4352,4607],[43360,43391],[55216,55295],[12592,12687],[65440,65500],[44032,55215]],symbol:[[8192,11263],[11776,11903],[65024,65039],[65280,65519],[65520,65535]],symbolCjk:[[12288,12351],[94176,94207],[65072,65103],[65104,65135],[65040,65055],[12800,13055],[127488,127743],[13056,13311]],space:[[9,13],65279,32,160,[8192,8202],8239,8287],asciiTabNewline:[9,10,13],asciiWhitespace:[9,10,12,13,32],breakingSpace:[9,10,13,32,133,5760,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8232,8233,8287,12288,8203],surrogate:[[55296,57343]],joiningTypeLeft:[[43122,43122],[68301,68301],[68311,68311],[68864,68864]],joiningTypeRight:[[1570,1573],[1575,1575],[1577,1577],[1583,1586],[1608,1608],[1649,1651],[1653,1655],[1672,1689],[1728,1728],[1731,1739],[1741,1741],[1743,1743],[1746,1747],[1749,1749],[1774,1775],[1808,1808],[1813,1817],[1822,1822],[1832,1832],[1834,1834],[1836,1836],[1839,1839],[1869,1869],[1881,1883],[1899,1900],[1905,1905],[1907,1908],[1912,1913],[2112,2112],[2118,2119],[2121,2121],[2132,2132],[2151,2151],[2153,2154],[2218,2220],[2222,2222],[2225,2226],[2233,2233],[68293,68293],[68295,68295],[68297,68298],[68302,68306],[68317,68317],[68321,68321],[68324,68324],[68335,68335],[68481,68481],[68483,68485],[68489,68489],[68492,68492],[68494,68495],[68497,68497],[68521,68524],[68898,68898],[69427,69427],[69460,69460]],joiningTypeDual:[[1568,1568],[1574,1574],[1576,1576],[1578,1582],[1587,1599],[1601,1607],[1609,1610],[1646,1647],[1656,1671],[1690,1727],[1729,1730],[1740,1740],[1742,1742],[1744,1745],[1786,1788],[1791,1791],[1810,1812],[1818,1821],[1823,1831],[1833,1833],[1835,1835],[1837,1838],[1870,1880],[1884,1898],[1901,1904],[1906,1906],[1909,1911],[1914,1919],[1994,2026],[2113,2117],[2120,2120],[2122,2131],[2133,2133],[2144,2144],[2146,2149],[2152,2152],[2208,2217],[2223,2224],[2227,2228],[2230,2232],[2234,2237],[6151,6151],[6176,6264],[6279,6312],[6314,6314],[43072,43121],[68288,68292],[68307,68310],[68312,68316],[68318,68320],[68331,68334],[68480,68480],[68482,68482],[68486,68488],[68490,68491],[68493,68493],[68496,68496],[68525,68526],[68865,68897],[68899,68899],[69424,69426],[69428,69444],[69457,69459],[125184,125251]],joiningTypeTransparent:[[173,173],[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1756],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2273],[2275,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8203],[8206,8207],[8234,8238],[8288,8292],[8298,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531],[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125259],[917505,917505],[917536,917631],[917760,917999]],joiningTypeCausing:[[1600,1600],[2042,2042],[6154,6154],[8205,8205]]});function Hr(){for(var l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];return r.length===1?Lh[r[0]]:rn(r.reduce((s,u)=>(s.push(...Lh[u]),s),[]))}let Dh=(Object.keys({space:Hr("space"),symbol:rn([[0,25],[33,38],[40,44],[46,47],[58,64],[91,96],[123,127],171,187,[8220,8223]]),single:Hr("cjk","kana","symbolCjk"),surrogate:Hr("surrogate")}),Hr("joiningTypeLeft","joiningTypeDual")),Rh=Hr("joiningTypeRight","joiningTypeDual"),Jn=Hr("joiningTypeTransparent"),Xn=Hr("joiningTypeCausing"),Oh=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1519,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1564],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2046,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2144,2154],[2208,2228],[2230,2237],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],[67903,67903],[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[69376,69415],[69424,69445],[69457,69465],[69600,69622],[124928,125124],[125127,125135],[125184,125251],[125259,125259],[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]];function Yn(l,r){r===void 0&&(r="");let i=!0;for(let{value:s}of Pi(l))if(Ih(s)||Ph(s)){i=!1;break}return i?l:Array.from(Pi(l),s=>{let{value:u}=s;return Ih(u)||Ph(u)?r:String.fromCodePoint(u)}).join("")}class nn{}class Nh extends nn{write(r){return String(r)}read(r){let i=parseInt(r,10);return i>=0?i:NaN}}class jh extends nn{write(r){if(!r)return"";let i=--r%26;return String.fromCharCode((this.lowerCase?97:65)+i).repeat((r-i)/26+1)}read(r){if(!r)return 0;let i=r[0];if(!function(u){let x=u.charCodeAt(0);return x>=65&&x<=90||x>=97&&x<=122}(i)||!function(u,x){if(!u)return!x;x=(x||u)[0];for(let v=0,P=u.length;v<P;++v)if(u[v]!==x)return!1;return!0}(r,i))return NaN;let s=i.charCodeAt(0);return(r.length-1)*26+(s-(s>=97?97:65))+1}}let T0=["V","L","D"].reduce((l,r)=>(l[r]=l[r.toLowerCase()]=!0,l),Object.create(null)),js=K({I:1,IV:4,V:5,IX:9,X:10,XL:40,L:50,XC:90,C:100,CD:400,D:500,CM:900,M:1e3},(l,r,i)=>(l[i]=l[i.toLowerCase()]=r,l),Object.create(null)),k0=function(l){let r=[];for(let i=0;i<3;++i){let s=2*i,u=l[s],x=l[s+1],v=l[s+2],P=[""];for(let j=1;j<=3;++j)P.push(u.repeat(j));P.push(u+x),P.push(x);for(let j=1;j<=3;++j)P.push(x+u.repeat(j));P.push(u+v),r.push(P)}return r}(["I","V","X","L","C","D","M"]);class Eh extends nn{write(r){if(!r)return"";let i="";for(let s=0;s<3&&r;++s){let u=r%10;i=k0[s][u]+i,r=(r-u)/10}return"M".repeat(r)+i}read(r){let i=0,s=0,u=r.length,x=1e4;for(;s<u;){let v=r[s],P=js[v];if(P==null)return NaN;let j=1;for(;v===r[s+j];)++j;if(j>1){if(v.toUpperCase()!=="M"&&j>3||T0[v])return NaN;P*=j}else if(s+1<u){let F=js[r[s+1]];if(F!=null&&P<F){if((P=js[r.slice(s,s+2)])==null)return NaN;j=2}}if(P>=x)return NaN;x=P,i+=P,s+=j}return i}}class Es extends nn{getDigitMap(){return this.digitMap||(this.digitMap=this.digits.reduce((r,i,s)=>(r[i]=s,r),Object.create(null)))}getDigitString(r){return this.digits[r]||""}getDigitNumber(r){return this.getDigitMap()[r]??-1}write(r){let i="",s=String(r);for(let u=0,x=s.length;u<x;++u)i+=this.getDigitString(s[u]);return i}read(r){if(!r)return NaN;let i=0;for(let s=0,u=r.length;s<u;++s){let x=this.getDigitNumber(r[s]);if(x<0)return NaN;i=10*i+x}return i}constructor(...r){super(...r),this.digitMap=void 0}}class Vh extends Es{write(r){if(r<10||r>=100)return super.write(r);let i=r%10,s=(r-i)/10,u="";return s>1&&(u+=this.getDigitString(s)),u+=this.tenDigit,i&&(u+=this.getDigitString(i)),u}read(r){return NaN}}let Qn=["零","一","二","三","四","五","六","七","八","九"],L0=["零","壹","貳","參","肆","伍","陸","柒","捌","玖"],Vs=Qn.map((l,r)=>r?l:"○"),D0=Qn.map((l,r)=>r?l:"〇"),Kn=["十","百","千"],Bh=["拾","佰","仟"],R0=["萬","億","兆"],O0=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],N0=["万","亿","兆"];class zh extends nn{getDigit(r,i){return this.digits[r]}getUnit(r,i){return r===0||i===0?"":this.units[i-1]}getGroupUnit(r,i){if(!r||i===0)return"";let s=this.groups,u=i-1,x=s.length,v=u%x;return s[v]+s[x-1].repeat((u-v)/x)}writeGroup(r,i,s){let u="",x=!1,v=r.length;for(let P=0;P<v;++P){let j,F=parseInt(r[v-1-P],10);F===0?x?(x=!1,j=this.getDigit(0,0)):j="":(x=!0,j=this.getUnit(F,P),this.suppressTenDigit&&v===2&&F===1&&P===1&&i===s-1||(j=this.getDigit(F,P)+j)),u=j+u}return u+this.getGroupUnit(u,i)}splitNumber(r){let i=[];for(let s=r.length;s>0;s-=4)i.push(r.slice(Math.max(s-4,0),s));return i}write(r){return r?this.splitNumber(String(r)).map((i,s,u)=>this.writeGroup(i,s,u.length)).reverse().join(""):this.getDigit(0,0)}read(r){return NaN}constructor(...r){super(...r),this.suppressTenDigit=!0}}class Fh extends zh{constructor(...r){super(...r),this.groups=N0}}class Gh extends zh{constructor(...r){super(...r),this.groups=R0}}let Hh=Y({decimal:Nh,decimalZero:class extends Nh{write(l){return String(l).padStart(2,"0")}},lowerLetter:class extends jh{constructor(...l){super(...l),this.lowerCase=!0}},upperLetter:class extends jh{constructor(...l){super(...l),this.lowerCase=!1}},lowerRoman:class extends Eh{write(l){return super.write(l).toLowerCase()}},upperRoman:Eh,chineseCounting:class extends Vh{constructor(...l){super(...l),this.digits=Vs,this.tenDigit=Kn[0]}},chineseCountingThousand:class extends Fh{constructor(...l){super(...l),this.digits=Qn,this.units=Kn}},chineseLegalSimplified:class extends Fh{constructor(...l){super(...l),this.suppressTenDigit=!1,this.digits=O0,this.units=Bh}},ideographDigital:class extends Es{constructor(...l){super(...l),this.digits=D0}},ideographLegalTraditional:class extends Gh{constructor(...l){super(...l),this.suppressTenDigit=!1,this.digits=L0,this.units=Bh}},taiwaneseCounting:class extends Vh{constructor(...l){super(...l),this.digits=Vs,this.tenDigit=Kn[0]}},taiwaneseCountingThousand:class extends Gh{constructor(...l){super(...l),this.digits=Qn,this.units=Kn}},taiwaneseDigital:class extends Es{constructor(...l){super(...l),this.digits=Vs}}},l=>new l);function Wh(l,r){let i=r.find(s=>{let[u,x]=s;return x instanceof RegExp?x.test(l):typeof x=="function"&&x(l)});return i?i[0]:null}let Bs=typeof navigator>"u"?"node":Wh(navigator.userAgent,[["opera",/opera/i],["chrome",/chrome/i],["safari",/safari/i],["firefox",/gecko\/\d/i]]);function qh(){return Bs==="safari"}typeof navigator>"u"||Wh(navigator.userAgent,[["ios",()=>/iPhone|iPad|iPod/i.test(navigator.platform)],["ipad",()=>/MacIntel/i.test(navigator.platform)&&navigator.maxTouchPoints>1],["android",/android/i],["windows",/windows|win32/i],["linux",/linux/i],["mac",/Mac_PowerPC|Macintosh/i]]),function(){if(typeof performance>"u")return;let l=performance.getEntriesByType?.("navigation")[0]||performance.getEntries?.()[0];l&&l.nextHopProtocol}();let Uh="http://www.w3.org/2000/svg",$h="http://www.w3.org/1999/xlink";function an(l){return"nodeType"in l}function cr(l){return an(l)&&l.nodeType===l.ELEMENT_NODE}function ci(l){return an(l)&&l.nodeType===l.TEXT_NODE}function j0(l){return an(l)&&l.nodeType===l.COMMENT_NODE}function E0(l){return an(l)&&l.nodeType===l.DOCUMENT_FRAGMENT_NODE}function zs(l){return cr(l)&&"ownerSVGElement"in l}let Zh=["base","link","meta","noscript","script","style","template","title","command"],V0=["embed","iframe","object","head"].concat(Zh),Jh=["table","caption","col","colgroup","tbody","td","tfoot","th","thead","tr"],B0=["address","article","aside","blockquote","dd","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","menu","nav","ol","p","pre","section","ul"].concat(Jh),Fs={metadata:Zh,heading:["h1","h2","h3","h4","h5","h6","hgroup"],phrasing:["a","abbr","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","math","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","command","keygen"],embedded:["audio","canvas","embed","iframe","img","math","object","picture","svg","video"],ignored:V0,list:["ol","ul"],table:Jh,textblock:["p","li","h1","h2","h3","h4","h5","h6"],block:B0},z0=Object.keys(Fs),F0=Y(Fs,l=>l.reduce((r,i)=>(r[i.toLowerCase()]=r[i.toUpperCase()]=!0,r),Object.create(null)));function G0(){return z0}function H0(l){return Fs[l]}function Wr(l,r){return!!F0[r][typeof l=="string"?l.toLowerCase():l.tagName]}function Ti(l){let r,i=l.firstChild;if(!i)return null;for(;r=i.firstChild;)i=r;return i}function ea(l){let r,i=l.firstElementChild;if(!i)return null;for(;r=i.firstElementChild;)i=r;return i}function sn(l){let r;for(;r=l.lastChild;)r.remove()}function on(l,r){for(let i=l.firstElementChild;i;i=i.nextElementSibling)if(i.matches(r))return i;return null}function W0(l,r,i){if(l.tagName.toLowerCase()===r.toLowerCase())return l.cloneNode(i);let s=l.ownerDocument,u=zs(l)?s.createElementNS(Uh,r):s.createElement(r);for(let x of l.attributes){let{name:v,value:P}=x;v==="xlink:href"?u.setAttributeNS($h,v,P):u.setAttribute(v,P)}return i&&l.firstChild&&u.append(...l.cloneNode(!0).childNodes),u}function ta(l,r){Object.assign(l.style,r)}let q0=["xlink:href"].reduce((l,r)=>(l[r]=!0,l),Object.create(null)),U0=Object.prototype.hasOwnProperty;function Jt(l,r){for(let i in r)if(U0.call(r,i)){let s=r[i];if(s==null)continue;switch(i){case"class":case"classList":{let u=l.getAttribute("class");l.setAttribute("class",(u?u+" ":"")+function x(v){return v?Array.isArray(v)?v.reduce((P,j)=>(P.length&&P.at(-1)!==" "&&(P+=" "),P+=x(j)),""):v:""}(s));break}case"style":l.style.cssText=String(s);break;case"inline_style":ta(l,s);break;default:q0[i]?l.setAttributeNS("http://www.w3.org/1999/xlink",i,String(s)):l.setAttribute(i,String(s))}}}var $0=Ct(6103),Z0=Ct.n($0);let J0=(()=>{let l=["a","script","style","title"].reduce((r,i)=>(r[i]=!0,r),Object.create(null));return Z0().reduce((r,i)=>(l[i]||r.add(i),r),new Set)})();function It(l,r,i,s){if(!r){if(!globalThis.document)throw Error("Document is not provided");r=globalThis.document}return function u(x,v,P,j){if(x.nodeType!=null)return x;if(typeof x=="string")return v.createTextNode(x);if(Array.isArray(x)){let F,q=x[0];F=J0.has(q)?v.createElementNS("http://www.w3.org/2000/svg",q):v.createElement(q);let J=1,re=x[1];re==null?++J:re&&typeof re=="object"&&re.nodeType==null&&!Array.isArray(re)&&(++J,Jt(F,re));for(let te=J,ie=x.length;te<ie;++te){let de=x[te];de!=null&&(de===0?P?.call(j,F,x,te,J):typeof de=="function"?de(F):F.appendChild(u(de,v,P,j)))}return F}throw Error(`Invalid structure [${x}]`)}(l,r,i,s)}let X0=["inherit","initial","unset","revert","revert-layer"],Xh=function(){let l=Object.create(null);return l.px=.75,l.cm=72/2.54,l.mm=.1*l.cm,l.q=.025*l.cm,l.in=72,l.pc=12,l.pt=1,l}(),Yh=function(){let l=Object.create(null),r=1/Xh.px;return R(Xh,function(i,s){l[s]=i*r}),l.px=1,l}(),Y0=function(){let l=Object.create(null);return R(Yh,function(r,i){l[i]=1/r}),l.px=1,l}();function Gs(l,r,i){return r!=="%"||i?r||i!=="%"?l:100*l:.01*l}function Qt(l,r,i,s){var u,x,v,P;if(r&&(r=r.toLowerCase()),i&&(i=i.toLowerCase()),r===i)return l;let j=!(u=r)||u==="%",F=!(x=i)||x==="%";return j&&F?Gs(l,r,i):j?s==null?NaN:Gs(l*s,r,""):F?s==null?NaN:Gs(l/s,"",i):(v=r,P=i,l===0?0:l*Yh[v]*Y0[P])}function Lt(l,r,i){var s;let u=parseFloat(l);return isNaN(u)||(u=Qt(u,typeof(s=l)!="string"?"":s.trim().match(/[a-zA-Z%]*$/)[0].toLowerCase(),r,i)),u}var Q0=Ct(52250),K0=Ct.n(Q0);let Hs="transparent";function ln(l,r){if(!l)return null;if(l===Hs)return r?.disableTransparent?null:l;if((l.length===3||l.length===6||l.length===8)&&/^[0-9a-fA-F]+$/.test(l)&&(l="#"+l),r?.simple){var i;return(i=l)&&(i===Hs||(i.length===7||i.length===9)&&/^#[0-9a-fA-F]+$/.test(i))?l.toLowerCase():null}try{return new(K0())(l).hex().toLowerCase()}catch{return null}}let ey=ne(Object.assign(Object.create(null),{none:"none",solid:"solid",dotted:"dotted",dashed:"dashed"}));function Qh(l){var r,i;return r=l,i=ey,r?i[r]||"solid":null}function Ws(l){return(l=l.trim().replaceAll('"',"")).startsWith("'")&&l.endsWith("'")&&(l=l.slice(1,-1)),l}function Kh(l,r){return l.split(",",r).map(Ws).filter(i=>i)}function eu(l){return Kh(l,1)[0]??""}Object.assign(ne(Object.assign(Object.create(null),{none:"none",solid:"none",dotted:"2,2",dashed:"6,6"})),{none:"solid"});let ty=["Apple Symbols","Bookshelf Symbol 7","Marlett","Symbol","Webdings","Wingdings","Wingdings 2","Wingdings 3"].map(l=>l.toLowerCase());function tu(l,r){return[l[0]*r[0]+l[2]*r[1],l[1]*r[0]+l[3]*r[1],l[0]*r[2]+l[2]*r[3],l[1]*r[2]+l[3]*r[3],l[0]*r[4]+l[2]*r[5]+l[4],l[1]*r[4]+l[3]*r[5]+l[5]]}class sr{constructor(r){this.matrix=r}static from(r,i,s,u,x,v){return new sr([r,i,s,u,x,v])}static create(){return this.from(1,0,0,1,0,0)}static createTranslate(r,i){return r===void 0&&(r=0),i===void 0&&(i=0),this.from(1,0,0,1,r,i)}static createRotate(r,i,s){i===void 0&&(i=0),s===void 0&&(s=0);let u=r*Le,x=Math.sin(u),v=Math.cos(u);return this.from(v,x,-x,v,-i*v+s*x+i,-i*x-s*v+s)}static createScale(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),this.from(r,0,0,i,s*(1-r),u*(1-i))}static createFlip(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),typeof r=="boolean"&&(r=r?-1:1),typeof i=="boolean"&&(i=i?-1:1),this.createScale(Math.sign(r),Math.sign(i),s,u)}static createSkewY(r,i){i===void 0&&(i=0);let s=Math.tan(r*Le);return this.from(1,s,0,1,0,-i*s)}static applyTranslate(r,i,s){return{x:r.x+i,y:r.y+s}}static applyRotate(r,i,s,u){return s===void 0&&(s=0),u===void 0&&(u=0),this.createRotate(i,s,u).apply(r)}static applyScale(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.createScale(i,s,u,x).apply(r)}static applyFlip(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.createFlip(i,s,u,x).apply(r)}static applySkewY(r,i,s){return s===void 0&&(s=0),this.createSkewY(i,s).apply(r)}apply(r){let{x:i,y:s}=r,u=this.matrix;return{x:u[0]*i+u[2]*s+u[4],y:u[1]*i+u[3]*s+u[5]}}applyDirected(r){let i=z(r.ang,360)*Le,{x:s,y:u}=this.apply(r),{x,y:v}=this.apply({x:r.x+100*Math.cos(i),y:r.y+100*Math.sin(i)});return{x:s,y:u,ang:z(Math.atan2(v-u,x-s)*Ve,360)}}applyWithoutTranslate(r){let{x:i,y:s}=r,u=this.matrix;return{x:u[0]*i+u[2]*s,y:u[1]*i+u[3]*s}}inverse(){let r,i=this.matrix,s=i[0]*i[3]-i[1]*i[2];if(s===0)r=Array(6).fill(NaN);else{let u=1/s,x=i[0]*u,v=i[1]*u,P=i[2]*u,j=i[3]*u,F=i[4],q=i[5];r=[j,-v,-P,x,P*q-j*F,v*F-x*q]}return this.matrix=r,this}multiply(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];for(let u of i)this.matrix=tu(this.matrix,u.matrix);return this}preMultiply(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];for(let u=i.length-1;u>=0;--u)this.matrix=tu(i[u].matrix,this.matrix);return this}translate(r,i){return r===void 0&&(r=0),i===void 0&&(i=0),this.multiply(sr.createTranslate(r,i))}rotate(r,i,s){return i===void 0&&(i=0),s===void 0&&(s=0),this.multiply(sr.createRotate(r,i,s))}scale(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),this.multiply(sr.createScale(r,i,s,u))}flip(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),this.multiply(sr.createFlip(r,i,s,u))}skewY(r,i){return i===void 0&&(i=0),this.multiply(sr.createSkewY(r,i))}prependTranslate(r,i){return this.preMultiply(sr.createTranslate(r,i))}prependRotate(r,i,s){return i===void 0&&(i=0),s===void 0&&(s=0),this.preMultiply(sr.createRotate(r,i,s))}prependScale(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),this.preMultiply(sr.createScale(r,i,s,u))}prependFlip(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),this.preMultiply(sr.createFlip(r,i,s,u))}prependSkewY(r,i){return i===void 0&&(i=0),this.preMultiply(sr.createSkewY(r,i))}copy(){return new sr(this.matrix)}toString(){let r=this.matrix;return`matrix(${r[0]},${r[1]},${r[2]},${r[3]},${r[4]},${r[5]})`}}class ra{constructor(r){this.hasOnce=!1,this.handlers=[]}hasHandler(){return this.handlers.length>0}createHandler(r,i,s){return i===void 0&&(i=!1),s===void 0&&(s=0),{f:r,once:i,priority:s}}findIndex(r){return this.handlers.findIndex(i=>i.f===r)}splice(r,i){for(var s=arguments.length,u=Array(s>2?s-2:0),x=2;x<s;x++)u[x-2]=arguments[x];let v=this.handlers,P=v.slice(0,r);P.push(...u);for(let j=r+i;j<v.length;++j)P.push(v[j]);this.handlers=P}_add(r,i){let s=this.createHandler(r,i.once,i.priority);if(this.findIndex(s.f)>=0)return!1;s.once&&(this.hasOnce=!0);let u=this.handlers,x=u.length,v=0;for(;v<x&&!(u[v].priority<s.priority);++v);return this.splice(v,0,s),!0}add(r,i){return i===void 0&&(i=Object.create(null)),typeof i=="number"&&(i={priority:i}),this._add(r,i)}addOnce(r,i){return i===void 0&&(i=Object.create(null)),typeof i=="number"&&(i={priority:i}),this._add(r,{...i,once:!0})}remove(r,i){let s=this.findIndex(r);return!(s<0)&&(this.splice(s,1),!0)}retrieveHandlers(){let r=this.handlers;return this.hasOnce&&(this.hasOnce=!1,this.handlers=r.filter(i=>!i.once)),r}}class ut extends ra{dispatch(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=this.retrieveHandlers(),x=u.length;for(let v=0;v<x;++v)u[v].f.apply(null,i)}}class qr extends ra{constructor(r){super(r);let{pipelineTransformer:i,pipelineParameterIndex:s=0}=r??{};if(!Number.isInteger(s)||s<0)throw RangeError("The parameter index must be unsigned integer.");this.pipelineTransformer=i,this.pipelineParameterIndex=s}dispatch(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let{pipelineTransformer:u,pipelineParameterIndex:x}=this,v=this.retrieveHandlers(),P=v.length;for(let j=0;j<P;++j){let F=v[j].f.apply(null,i);i[x]=u?u(F,i[x]):F}return i[x]}}class Dr extends ra{dispatch(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=this.retrieveHandlers(),x=u.length;for(let v=0;v<x;++v){let P=u[v].f.apply(null,i);if(P)return P}}}class ru extends ra{dispatch(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=Promise.resolve(i[0]),x=this.retrieveHandlers(),v=x.length;for(let P=0;P<v;++P){let j=x[P].f;u=u.then(F=>(i[0]=F,j.call(null,...i)))}return u}}let qs=new WeakMap;function ia(l,r){return function(i){let s,u=qs.get(i);if(u)return u;let x=[];for(let v of function*(P){for(let j=P;j;j=Object.getPrototypeOf(j))yield j}(i)){if(s=qs.get(v))break;x.push(v)}for(let v of x.reverse())s=function(P,j){if(!Object.hasOwn(P,"getSelfPropertyName"))return j??new Set;let F=new Set(j);var q=P.getSelfPropertyName?.();if(q)for(let J of Array.isArray(q)?q:[q])J&&F.add(J);return F}(v,s),qs.set(v,s);return s??new Set}(l).has(r)}class iu{constructor(r,i){if(i.length===0||i.length%3!=0)throw RangeError(`Invalid path length: ${i.length}`);this.pos=r,this.path=i}static ensurePath(r){return r?r.slice():[]}static _resolve(r,i,s,u){if(!(u>=0&&u<=i.getContentSize()))throw RangeError(`Offset ${u} out of range [0, ${i.getContentSize()}].`);let x=this.ensurePath(r),v=s+u;for(;;){let{index:P,offset:j}=i.findIndex(u),F=u-j;if(x.push(i,P,s+j),!F||(i=i.child(P)).isText)break;u=F-1,s+=j+1}return new this(v,x)}static _resolveIndex(r,i,s,u){let x=this.ensurePath(r);Array.isArray(u)||(u=[u]);let v=u.length;if(!x.length&&!v)throw RangeError("Invalid to resolve empty index array on empty path.");for(let P=0;P<v;++P){if(P!==0&&i.type.isLeaf)throw RangeError(`Invalid to resolve index inside leaf node ${i.type.name}.`);let j=u[P];if(!(j>=0&&j<=i.childCount)){let q=`Index ${j} out of range [0, ${i.childCount}]`;throw P!==0&&(q+=` in node ${i.type.name}}`),RangeError(q+".")}let F=i.offsetAt(j);x.push(i,j,s+F),i=i.maybeChild(j),s+=F+1}return new this(s-1,x)}}class ry extends iu{static resolve(r,i){return this._resolve(null,r,0,i)}}class iy{constructor(r,i){this._pos=r,this._path=i}get depth(){return this._path.length/2}get pos(){return this.isAtEnd()?-1:this._pos}get index(){if(this.isAtEnd())return-1;let r=this._path;return r[r.length-1]}get parent(){if(this.isAtEnd())return null;let r=this._path;return r[r.length-2]}get parentNode(){let r=this.parent;return r&&r.type?r:null}get node(){let r=this.parent;return r?r.maybeChild(this.index):null}isAtEnd(){return this.depth===0}move(r,i){this._pos+=i.nodeSize*r;let s=this._path;s[s.length-1]+=r}enter(r,i){this._pos+=r;let s=this._path;r>0?s.push(i,0):(--s[s.length-1],s.push(i,i.childCount))}leave(r){this._pos+=r;let i=this._path;i.length-=2,r>0&&++i[i.length-1]}next(r){if(r===void 0&&(r=!1),this.isAtEnd())return this;let i=this.node;return i?r||i.type.isLeaf?this.move(1,i):this.enter(1,i):this.leave(1),this}prev(r){if(r===void 0&&(r=!1),this.isAtEnd())return this;let i=this.index;if(i){let s=this.parent.maybeChild(i-1);r||s.type.isLeaf?this.move(-1,s):this.enter(-1,s)}else this.leave(-1);return this}walk(r,i){return r>0?this.next(i):this.prev(i)}clone(){return new this.constructor(this._pos,this._path.slice())}static create(r,i,s){s===void 0&&(s=-1);let u=ry.resolve(r,i).path,x=[];for(let P=0,j=u.length;P<j;P+=3)x.push(u[P],u[P+1]);let v=i-u[u.length-1];if(v&&(i-=v,s>0)){let P=x.length;i+=x[P-2].child(x[P-1]).nodeSize,++x[P-1]}return new this(i,x)}}function nu(l){let r=function(i){try{return JSON.stringify(i)}catch{return}}(l);return r!==void 0&&r.length>2?r:void 0}function au(l){if(!l)return;let r=function(i){try{return JSON.parse(i)}catch{return}}(l);return r&&typeof r=="object"&&!Array.isArray(r)?r:void 0}let mr=Object.prototype.hasOwnProperty;function na(l){let r;for(;(r=l.length)&&l[r-1]==null;)l.pop();return l}class ny{assertAvailable(){if(this.hasValue()){if(this.optional)throw Error("Can not create attribute with both default value and `optional`.");if(this.deep)throw Error("Can not create attribute with both default value and `deep`.");if(this.array)throw Error("Can not create attribute with both default value and `array`.")}if(this.deep&&this.array)throw Error("Can not create attribute with both `deep` and `array`.");if(this.deep){if(this.normalizer)throw Error("Can not create attribute with both `deep` and `normalizer`.");if(this.optional&&this.constructor.isAttrsRequired(this.deep))throw Error("Can not create attribute with both `deep` and `optional` while there is required attribute inside `deep`.")}if(this.array&&this.normalizer)throw Error("Can not create attribute with both `array` and `normalizer`.");if(this.normalizer){if(this.hasValue()){let i=this.getValue();if(i!=this.normalizeValue(i))throw Error(`Given default value can not pass given normalizer. ${JSON.stringify(i)} => ${JSON.stringify(this.normalizeValue(i))}`)}let r=this.getEmptyValue();if(r!=null){let i=this.normalizeValue(r);if(i!=null&&r!==i)throw Error(`Given empty value can not pass given normalizer. ${JSON.stringify(r)} => ${JSON.stringify(this.normalizeValue(r))}`)}}if(!this.settable&&this.clearable)throw Error("Can not create attribute with clearable but non-settable.")}isRequired(r){return this.constructor.isAttrRequired(this,r)}static defaultAttrs(r){let i=Object.create(null);for(let s in r)if(mr.call(r,s)){let u,x=r[s];if(x.optional)continue;if(x.deep?u=this.defaultAttrs(x.deep):x.array?u=[]:typeof x.default!="function"&&(u=x.default),u==null)return null;i[s]=u}return i}static emptyAttrs(r){let i=Object.create(null);for(let s in r)if(mr.call(r,s)){let u=r[s].getEmptyValue();u!=null&&(i[s]=u)}return i}static isAttrRequired(r,i){return!(r.optional||r.hasValue())&&(r.deep?this.isAttrsRequired(r.deep,i):i==null)}static isAttrsRequired(r,i){for(let s in r)if(mr.call(r,s)&&this.isAttrRequired(r[s],i&&i[s]))return!0;return!1}static checkAttr(r,i,s){if(!r||!r.settable)return!1;if(i==null)return!r.isRequired();if(r.deep){if(!this.checkAttrs(r.deep,i))return!1}else if(r.array){let u=r.array;if(Array.isArray(i)){for(let x=0,v=i.length;x<v;++x)if(!this.checkAttr(u,i[x],s))return!1}else if(s){for(let x in i)if(mr.call(i,x)&&G(x)&&!this.checkAttr(u,i[x],s))return!1}else return!1}return!0}static checkAttrs(r,i,s){if(!i)return!0;for(let u in i)if(mr.call(i,u)&&!this.checkAttr(r[u],i[u],s))return!1;return!0}static copyAttr(r,i,s,u){if(!r||s===void 0)return i??null;if(s===null)return null;if(r.deep)i=this.copyAttrs(r.deep,i,s,u);else if(r.array){if(Array.isArray(s))i=s;else if(u){let x=r.array,v=i?i.slice():[];for(let P in s)mr.call(s,P)&&G(P)&&(v[P]=this.copyAttr(x,i&&i[P],s[P],u));i=na(v)}}else i=s;return i}static copyAttrs(r,i,s,u){if(!s)return i||Object.create(null);let x=Object.assign(Object.create(null),i);for(let v in s)if(mr.call(s,v)){let P=this.copyAttr(r[v],i&&i[v],s[v],u);P==null?delete x[v]:x[v]=P}return x}static invertAttr(r,i,s,u){if(r&&s!==void 0){if(i==null)return null;if(s===null)return i??null;if(r.deep)i=this.invertAttrs(r.deep,i,s,u);else if(r.array&&!Array.isArray(s)&&u){let x=r.array,v=Object.create(null);for(let P in s)mr.call(s,P)&&G(P)&&(v[P]=this.invertAttr(x,i[P],s[P],u));i=v}return i}}static invertAttrs(r,i,s,u){if(!s)return null;let x=Object.create(null);for(let v in s)mr.call(s,v)&&(x[v]=this.invertAttr(r[v],i&&i[v],s[v],u));return x}static computeAttrsEmptyValue(r){let i;for(let s in r)if(mr.call(r,s)){let u=r[s],x=u.getEmptyValue();if(x==null){if(!u.hasValue())continue;x=u.getValue()}i||(i=Object.create(null)),i[s]=x}return i}static isAttrCopyable(r){return!(r.copyable<=0)&&(r.deep?this.isAttrsCopyable(r.deep):!r.array||this.isAttrCopyable(r.array))}static isAttrsCopyable(r){for(let i in r)if(mr.call(r,i)&&!this.isAttrCopyable(r[i]))return!1;return!0}static copyableAttr(r,i){if(i==null)return i;if(r.copyable===0)i=r.copyTransformer?r.copyTransformer(i)??null:null;else if(r.deep)i=this.copyableAttrs(r.deep,i);else if(r.array&&Array.isArray(i)){let s,u=r.array;for(let x=0,v=i.length;x<v;++x){let P=i[x],j=this.copyableAttr(u,P);P!==j&&(s||(s=i.slice()),s[x]=j)}s&&(i=na(s))}return i}static copyableAttrs(r,i){let s;for(let u in r)if(mr.call(r,u)){let x=r[u],v=x.copyable<0,P=i[u],j=this.copyableAttr(x,P);(P!==j||P!=null&&v)&&(s||(s=Object.assign(Object.create(null),i)),v?(delete s[u],s["__"+u]=j):j==null?delete s[u]:s[u]=j)}return s||i}static mergeAttrs(r){let i=Object.create(null),s=arguments.length;for(let u=0,x=r.length;u<x;++u){let v,P,j=r[u];for(let F=1;F<s;++F)if(v=arguments[F][j],v!=null&&v!==""){P=!0;break}i[j]=P?v:null}return i}}function hn(l){return l&&typeof l=="object"?l:null}class Te extends ny{static#e=this.empty=new Te;static#t=this.optional=new Te({optional:!0});static#r=this.id=new Te({default:ge,copyable:-1});constructor(r=Object.create(null)){super(),this.default=r.default,this.empty_value=r.empty_value??void 0,this.optional=!!r.optional,this.deep=r.deep,this.array=r.array,this.normalizer=this.ensureNormalizer(r.normalizer),this.clearable=!!r.clearable,this.hidden=!!r.hidden,this.copyable=typeof r.copyable=="number"?V(r.copyable,!0,1):+(r.copyable!==!1),this.copyTransformer=r.copyTransformer,this.backward=!!r.backward,this.settable=r.settable!==!1,this.options=r,!this.optional||!this.deep||"empty_value"in r||(this.empty_value=this.constructor.computeAttrsEmptyValue(this.deep)),this.assertAvailable()}ensureNormalizer(r){return typeof r=="string"?this.constructor.getPresetNormalizer(r):Array.isArray(r)?i=>r.includes(i)?i:null:r}getEmptyValue(){return this.empty_value}getDefaultValue(){return this.getEmptyValue()}hasValue(){return this.default!=null}getValue(){let r=this.default;if(r==null)throw Error("No value in attribute.");return typeof r=="function"?r():r}normalizeValue(r,i){return i===void 0&&(i=!1),r!=null&&this.normalizer&&(r=this.normalizer.call(null,r)),r??(i?this.getEmptyValue():void 0)}copy(r){let i={...this.options,...r};return new this.constructor(i)}static isSettableAttr(r){return!!r.settable&&(r.deep?this.isSettableAttrs(r.deep):!r.array||this.isSettableAttr(r.array))}static isSettableAttrs(r){return Q(r,i=>this.isSettableAttr(i))}static settableAttrValue(r,i){if(r.settable)return i==null?null:(r.deep&&(i=this.settableAttrValues(r.deep,i)),i)}static settableAttrValues(r,i){let s=hn(i);return s?K(s,(u,x,v)=>{let P=r[v];if(P){let j=this.settableAttrValue(P,x);j!==void 0&&(u[v]=j)}return u},Object.create(null)):null}static completeAttrValue(r,i){return i==null?null:(r.deep&&(i=this.completeAttrValues(r.deep,i)),i)}static completeAttrValues(r,i){let s=hn(i),u=Object.create(null);for(let[x,v]of Object.entries(r))u[x]=this.completeAttrValue(v,s?.[x])??null;return u}static computeAttr(r,i){let s;if(r.optional&&i==null)return;if(r.deep)s=this.computeAttrs(r.deep,i);else if(r.array)if(Array.isArray(i)){let x,v=r.array;for(let P=0,j=i.length;P<j;++P){let F=i[P],q=this.computeAttr(v,F);F!==q&&(x||(x=i.slice()),x[P]=q)}s=x?na(x):i}else s=[];else s=i??r.getValue();let u=r.normalizeValue(s);if(u!=null)return u;if(i==null)throw Error("Infinity recursion detected. The preset attribute value must always pass the normalizer.");return this.computeAttr(r,null)}static computeAttrs(r,i){let s=hn(i),u=Object.create(null);for(let[x,v]of Object.entries(r)){let P=this.computeAttr(v,s?.[x]);P!=null&&(u[x]=P)}return u}static clearBackwardAttrValues(r,i){let s,u=hn(i);return R(r,(x,v)=>{x.backward&&(s||(s={...u}),s[v]=null)}),s||u||null}static normalizeAttrValue(r,i){let s;if(i!=null){if(r.deep)s=this.normalizeAttrValues(r.deep,i);else if(r.array)if(Array.isArray(i)){let u,x=r.array;for(let v=0,P=i.length;v<P;++v){let j=i[v],F=this.normalizeAttrValue(x,j);j!==F&&(u||(u=i.slice()),u[v]=F)}s=u?na(u):s}else s=void 0;else s=r.normalizeValue(i);return s}}static normalizeAttrValues(r,i){let s,u=hn(i);if(u)return R(r,(x,v)=>{let P=u[v],j=this.normalizeAttrValue(x,P);(j==null||P!==j)&&(s||(s={...u}),j==null?delete s[v]:s[v]=j)}),s||u}static mergeTypeAttrs(r){for(var i=arguments.length,s=Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];let x=Object.assign(Object.create(null),r);for(let v=0,P=s.length;v<P;++v){let j=s[v];j&&R(j,(F,q)=>{if(F==null)delete x[q];else if(F instanceof Te)x[q]=F;else{let J=x[q];if(!J)throw RangeError(`Base attribute \`${q}\` is missing.`);x[q]=J.copy(F)}})}return x}static getPresetNormalizer(r){return o[r]}static createMarksNormalizer(r){return i=>this.normalizeArrayValue(i,s=>{let u=s&&s._?s:void 0;if(!u)return;let x=r(u);return x==null?void 0:typeof x=="boolean"?x?u:void 0:x},{pruneEmpty:!0})}static createArrayNormalizer(r,i){let s;return s=typeof r=="function"?r:u=>this.normalizeAttrValue(r,u),u=>this.normalizeArrayValue(u,s,i)}static normalizeArrayValue(r,i,s){let u;if(s===void 0&&(s=d),!Array.isArray(r))return null;for(let v=0,P=r.length;v<P;++v){let j=r[v]??null,F=i(j)??null;j!==F&&(u||(u=r.slice()),u[v]=F)}let x=u||r;return s.allowNull||x.every(I)||(x=x.filter(I)),s.pruneEmpty&&x.length===0&&(x=null),x}static create(r){return r?new this(r):this.empty}static createOptional(r){return r?new this({...r,optional:!0}):this.optional}}class aa{constructor(r,i){this.name=r,this.schema=i,this.type=this,this.attrKeys=void 0,this.defaultAttrValues=void 0,this.presetAttrValues=void 0,this._isSettableAttrs=void 0,this.getFreezeList().forEach(s=>{let u=this[s];u!==void 0&&Object.defineProperty(this,s,{value:u})})}getFreezeList(){return["className"]}static getSelfPropertyName(){}get classPrefix(){return"syno-o-doc-pm-"}get className(){return this.classPrefix+this.name.replace(/_/g,"-")}static is(r){return ia(this,r)}is(r){return r===this.name||ia(this.constructor,r)||(function(i){let s=i.charCodeAt(0);return s>=65&&s<=90}(r[0])?!!this[`is${r}`]:!!this[r])}get attrs(){return d}getAttrKeys(){return this.attrKeys??=Object.keys(this.attrs)}getDefaultAttrValues(){return this.defaultAttrValues??=Te.emptyAttrs(this.attrs)}getPresetAttrValues(){return this.presetAttrValues!==void 0?this.presetAttrValues:this.presetAttrValues=Te.defaultAttrs(this.attrs)}computeCopyableAttrValues(r){return Te.copyableAttrs(this.attrs,r)}isSettableAttrs(){return this._isSettableAttrs!==void 0?this._isSettableAttrs:this._isSettableAttrs=Te.isSettableAttrs(this.attrs)}settableAttrValues(r){return Te.settableAttrValues(this.attrs,r)}completeAttrValues(r){return Te.completeAttrValues(this.attrs,r)}clearBackwardAttrValues(r){return Te.clearBackwardAttrValues(this.attrs,r)}normalizeAttrValues(r){return Te.normalizeAttrValues(this.attrs,r)}static ensureFilter(r){return r?typeof r=="string"?i=>i.is(r):r:A}}class ay extends aa{}class su{constructor(r,i){this.type=r,this.attrs=i}get name(){return this.type.name}get schema(){return this.type.schema}is(r){return this.type.is(r)}getAttrValue(r,i){i===void 0&&(i=!1);let s=this.attrs[r];if(!i&&s==null){let u=this.type.attrs[r];u&&(s=u.getEmptyValue())}return s??null}hasAttrValue(r,i){return i===void 0&&(i=!1),this.getAttrValue(r,i)!=null}}class sy extends iu{indexAfter(r){return r=this.resolveDepth(r),this.index(r)+(r==this.depth&&this.atNodeBoundary?0:1)}get nodeAfter(){let r=this.parent,i=this.index(this.depth);if(i==r.childCount)return null;let s=this.innerOffset,u=r.child(i);return s?r.child(i).cut(s):u}get nodeBefore(){let r=this.index(this.depth),i=this.innerOffset;return i?this.parent.child(r).cut(0,i):r==0?null:this.parent.child(r-1)}sameDepth(r){return this.commonDepth(r)}commonDepth(r){let i=0,s=Math.min(this.depth,r.depth);for(;i<s&&this.index(i)==r.index(i);)++i;return i}commonNode(r){return this.node(this.commonDepth(r))}blockRange(r,i){if(r===void 0&&(r=this),r.pos<this.pos)return r.blockRange(this,i);for(let s=this.depth-(this.parent.isTextblock||this.pos==r.pos?1:0);s>=0;s--)if(r.pos<=this.end(s)&&(!i||i(this.node(s))))return new oy(this,r,s)}sameParent(r){return this.pos-this.parentOffset==r.pos-r.parentOffset}toString(){let r="";for(let i=1;i<=this.depth;i++)r+=(r?"/":"")+this.node(i).type.name+"_"+this.index(i-1);return r+":"+this.parentOffset}plusOne(){if(this.index()===this.parent.childCount)return this;let r=this.path.slice(),i=this.parent.child(r[r.length-2]++).nodeSize-this.innerOffset,s=r[r.length-1]=this.pos+i;return new this.constructor(s,r,this.parentOffset+i)}minusOne(){let r,i,s=this.innerOffset;return s?(r=this.path,i=s):this.index()!==0&&(r=this.path.slice(),i=this.parent.child(--r[r.length-2]).nodeSize,r[r.length-1]-=i),r?new this.constructor(r[r.length-1],r,this.parentOffset-i):this}map(r,i,s){return r.resolve(i.map(this.pos,s))}textblockDepth(r){let i=-1;for(let s=this.depth+1;s>0;--s){let u=this.node(s);if(u){if(u.type.isTextblock){if(i=s,r<0)break}else if(!u.type.isText)break}}return i}eq(r){return this.pos===r.pos&&this.doc===r.doc}eqChanged(r){if(this.eq(r))return!0;let i=this.self,s=r.self;if(!i&&!s){if(this.parentOffset!==r.parentOffset)return!1;i=this.parent,s=r.parent}if(i!==s||this.depth!==r.depth)return!1;for(let u=0;u<=this.depth;++u){let x=this.node(u),v=r.node(u);if(x!==v){if(x.dom!==v.dom)return!1}else break}return!0}eqChangedLoose(r){if(this.pos===r.pos)return!0;let i=this.self,s=r.self;if(!i||!s){if(this.parentOffset!==r.parentOffset||i&&!i.isText||s&&!s.isText)return!1;i=this.parent,s=r.parent}return i===s||i.dom&&i.dom===s.dom}}class oy{constructor(r,i,s){this.$from=r,this.$to=i,this.depth=s}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}class ly{constructor(r,i=r.depth+1,s=r.before(i),u=r.node(i)){this.$pos=r,this.depth=i,this.pos=s,this.node=u}static getResolvedPos(r){return r&&r.$pos}static getDepth(r){return r?r.depth:NaN}static getPos(r){return r?r.pos:NaN}static getNode(r){return r&&r.node}}function ou(l,r,i){if(!l)return r;let s=i&&l.isInSet(i);return r=s?s.addToSet(r):l.removeFromSet(r)}function sa(l){return l.reduce((r,i)=>(r[i._]=i,r),Object.create(null))}class hy extends su{static mergeSetJSON(){let r,i;for(let s=arguments.length-1;s>=0;--s){let u=arguments[s];if(u&&u.length)if(r){i||(i=(r=r.slice()).reduce((x,v)=>(x[v._]=!0,x),Object.create(null)));for(let x=u.length-1;x>=0;--x){let v=u[x];v._ in i||(i[v._]=!0,r.push(v))}}else r=u}return r||this.none}static trimSet(r,i){if(!r||!r.length||!i||!i.length)return null;let s=r;for(let u=i.length-1;u>=0;--u)s=i[u].removeFromSet(s);return s!==r?s:null}static trimSetJSON(r,i){if(!r||!r.length||!i||!i.length)return null;let s=sa(r),u=sa(i),x=!1;return r.forEach(v=>{let P=v._,j=u[P];j&&ye(j,s[P],Ae,void 0)&&(x=!0,delete s[P])}),x?K(s,(v,P)=>(v.push(P),v),[]):null}static filterSet(r,i){let s;for(let u=0,x=r.length;u<x;++u){let v=r[u];i(v)?s&&s.push(v):s||(s=r.slice(0,u))}return s||r}addToSet(r){for(let i=0;i<r.length;i++){let s=r[i];if(s.type==this.type){let u;if(this.type.supportMerge){let v=this.type.merge(s,this);if(v===s)return r;u=v}else{if(this.eq(s))return r;u=this}let x=r.slice();return x[i]=u,x}if(s.type.rank>this.type.rank)return r.slice(0,i).concat(this).concat(r.slice(i))}return r.concat(this)}removeFromSet(r){for(let i=0;i<r.length;i++){let s=r[i];if(s.type===this.type){if(this.type.supportMerge){let u=this.type.split(s,this);if(u===s)break;{let x=r.slice();return u?x[i]=u:x.splice(i,1),x}}else if(this.eq(r[i]))return r.slice(0,i).concat(r.slice(i+1))}if(s.type.rank>this.type.rank)break}return r}isInSet(r){for(let i=0;i<r.length;i++)if(this.eq(r[i]))return!0;return!1}eq(r){return this==r||this.type==r.type&&!!L(r.attrs,this.attrs,this.type.checker)}static sameSet(r,i){if(r==i)return!0;if(r.length!=i.length)return!1;for(let s=0;s<r.length;s++)if(!r[s].eq(i[s]))return!1;return!0}static sameSetJSON(r,i){return r==i||r.length==i.length&&ye(sa(r),sa(i),Ae,void 0)}static computeActiveMark(r,i,s){return i=function(u,x,v){let P=u.maybeMarkType("link");if(!P)return x;let j=P.isInSet(x);if(!j)return x;let F=v&&P.isInSet(v);if(F){if(F.eq(j))return x;x=P.removeFromSet(x),v=null}return x=ou(u.maybeMarkType("color"),x,v),x=ou(u.maybeMarkType("underline"),x,v)}(r,i,s),this.filterSet(i,u=>u.type.inclusiveBefore||s&&u.isInSet(s))}}class Qe extends hy{static#e=this.none=[];constructor(r,i){super(r,i)}getValue(){let r=this.getAttrValue(this.type.valueKey);if(r==null)throw Error(`There is no valid value in attribute with name \`${this.type.valueKey}\`.`);return r}toJSON(r){r===void 0&&(r=d);let i=this.type.name,s={_:i,...this.attrsToJSON(r)};return s._=i,s}toJSONString(r){return r===void 0&&(r=d),`{"_":${JSON.stringify(this.type.name)}${this.attrsToJSONString(r)}}`}async toJSONStream(r,i){i===void 0&&(i=d),await r.write(`{"_":${JSON.stringify(this.type.name)}`),await this.attrsToJSONStream(r,i),await r.write("}")}attrsToJSON(r){let i=this.type.computeJsonConversionAttrs(this,r);if(!H(i))return i}attrsToJSONString(r){let i=this.attrsToJSON(r);if(!i)return"";let s=JSON.stringify(i);return s.length>=2&&(s=s.slice(1,-1))&&(s=`,${s}`),s}async attrsToJSONStream(r,i){let s=this.attrsToJSONString(i);s&&await r.write(s)}static fromJSON(r,i){let s=r.markType(i._),u=null;for(let x in i)x!=="_"&&(u||(u=Object.create(null)),u[x]=i[x]);return s.create(u)}static*iterateMarks(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];for(let u of i)u&&(Array.isArray(u)?yield*u:yield u)}static*iterateMarksAsMarkSet(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];for(let u of i)u&&(Array.isArray(u)?yield u:yield[u])}static intersectMarks(){let r;for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];for(let P of this.iterateMarks(...s)){r=P.type.schema;break}if(!r)return this.none;let x=[...this.iterateMarksAsMarkSet(...s)],v=x.length;if(v===0)return this.none;{if(v===1)return x[0];let P=[];for(let j of r.markTypes()){let F=x.map(J=>j.findFromSet(J));if(F.some(J=>!J))continue;let q=F[0];if(j.supportMerge)for(let J=1;J<v&&(q=j.intersect(q,F[J]));++J);else for(let J=1;J<v;++J)if(!q.eq(F[J])){q=null;break}q&&P.push(q)}return this.setFrom(P)}}static mergeSet(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=this.none;for(let x of this.iterateMarksAsMarkSet(...i))if(u.length)for(let v=x.length-1;v>=0;--v)u=x[v].addToSet(u);else u=x;return u}static setToStyle(r,i){let s=i?.ignoreMarks,u=s!==void 0?Array.isArray(s)?s:[s]:void 0,x=Object.create(null),v=null;if(r.forEach(P=>{if(!P.type.hasCss||u&&u.some(P.is,P))return;if(P.is("Script")){if(v&&v.getValue()&&!P.getValue())return;v=P}let{type:j,key:F,value:q}=P.type.getCssStyle(P);j==="append"&&typeof x[F]=="string"?x[F]+=" "+q:x[F]=q}),v&&v.getValue()){let P=x["font-size"]?Lt(x["font-size"],"pt",11):v.schema.markType("font_size").getDefaultMark().getValue();x["font-size"]=P*v.type.fontSizeRatio+"pt"}return x}static setToDOMStyle(r,i,s){ta(i,this.setToStyle(r,s))}static setFrom(r){if(!r)return this.none;if(!Array.isArray(r))return[r];if(r.length<=1)return r.length===0?this.none:r;{let i=r.slice().sort((s,u)=>s.type.rank-u.type.rank);for(let s=i.length-1;s>0;--s)i[s].type===i[s-1].type&&i.splice(s-1,1);return i}}static setToJSON(r,i){return r.length===0?this.none:r.map(s=>s.toJSON(i))}static setFromJSON(r,i){return i.length===0?this.none:this.setFrom(i.map(s=>this.fromJSON(r,s)))}}let lu=[],Us=0;function hu(l){if("type"in l&&l.type.isLeaf)throw RangeError(`Leaf node ${l.name} could not be resolved.`)}class dr extends sy{constructor(r,i){super(r,i),this.pos=r,this.path=i,this.depth=i.length/3-1}resolveDepth(r){return r==null?this.depth:r<0?this.depth+r:r}get parentOffset(){return this.pos-this.start()}get schema(){let r=(this.root.firstChild||this.root).type;if(!r)throw Error("Failed to get schema.");return r.schema}get root(){return this.node(0)}get doc(){return this.root}get parent(){return this.node()}get self(){return this._self!==void 0?this._self:this._self=this.atNodeBoundary?this.parent.maybeChild(this.index(this.depth)):null}node(r){let i=(r=this.resolveDepth(r))===this.depth+1?this.self:this.path[3*r];if(!i)throw RangeError(`No node at given depth ${r}.`);return i}index(r){r=this.resolveDepth(r);let i=this.path[3*r+1];if(typeof i!="number")throw RangeError(`No index at given depth ${r}.`);return i}get atStart(){return this.pos===this.start()}get atEnd(){return this.pos===this.end()}get atNodeBoundary(){return this.innerOffset===0}get innerOffset(){return this.pos-this.path[this.path.length-1]}before(r){if(!(r=this.resolveDepth(r)))throw RangeError("There is no position before the top-level node.");return r===this.depth+1?this.pos:this.path[3*r-1]}after(r){if(!(r=this.resolveDepth(r)))throw RangeError("There is no position after the top-level node.");return r===this.depth+1?this.pos:this.path[3*r-1]+this.path[3*r].nodeSize}start(r){return(r=this.resolveDepth(r))===0?0:this.path[3*r-1]+1}end(r){return r=this.resolveDepth(r),this.start(r)+this.node(r).getContentSize()}getMarks(r){let i,s=this.parent;if(!("type"in s)||!s.is("Textblock"))return Qe.none;if(s.childCount===0)return s.is("MarksBlock")?s.textMarks:Qe.none;if(!this.atNodeBoundary)return s.child(this.index()).marks;let u=r?.usePureNodeMarks??!1;i=this.atStart?1:this.atEnd?-1:r?.bias??-1;let x=this.index(),v=s.child(x+(i>0?0:-1));if(u)return v.marks;{let P=s.maybeChild(x+(i>0?-1:0));return Qe.computeActiveMark(this.schema,v.marks,P?P.marks:s.type.getInheritedTextMarks(s))}}forEach(r,i){for(let s=this.depth+ +!!this.self;s>=0;--s){let u=this.node(s);if(u&&r.call(i,s,u))return}}findDepth(r,i){let s,u,x;i===void 0&&(i=d),r.startsWith("is")&&(r=r.slice(2));let v=this.depth+(i.excludeSelf||!this.self?0:1);i.reversed||typeof i.dir=="number"&&i.dir>0?(s=i.startDepth!=null?qe(i.startDepth,1,v+1):1,u=i.endDepth!=null?qe(i.endDepth+1,s,v+1):v+1,x=1):(s=i.startDepth!=null?qe(i.startDepth,0,v):v,u=i.endDepth!=null?qe(i.endDepth-1,0,s):0,x=-1);let P=i.stopAt;for(;s!==u;s+=x){let j=this.node(s);if(j&&j.type){if(P&&j.is(P))break;if(j.is(r))return s}}return NaN}findNode(r,i){let s=this.findDepth(r,i);return isNaN(s)?null:this.node(s)}findPos(r,i){let s=this.findDepth(r,i);return isNaN(s)?-1:this.before(s)}findIndex(r,i){let s=this.findDepth(r,i);return isNaN(s)?-1:this.index(s)}findData(r,i){let s=this.findDepth(r,i);return isNaN(s)?null:{depth:s,node:this.node(s),pos:this.before(s)}}exists(r,i){return!isNaN(this.findDepth(r,i))}lift(r,i){let s=this.depth,u=this.pos,x=r>0?"end":"start";for(;s>0&&u===this[x](s)&&this.node(s).is("EditableType")&&(!i||i(this,s));)--s;return s===this.depth?this:this.shrink(s,r>0)}static expandRange(r,i,s){return{$from:r.lift(-1,s),$to:i.lift(1,s)}}toStart(){return this.toSibling(0)}toEnd(){return this.toSibling(this.parent.childCount)}toSibling(r){return r===this.index()&&this.innerOffset===0?this:this.shrink(-1).extendIndex(r)}maybeShrink(r,i){let s;if(i===void 0&&(i=!1),typeof r=="number")s=this.resolveDepth(r);else{let x=this.findDepth(r);if(!x)return null;s=x-1}if(isNaN(s)||s<0||s>this.depth)return null;if(s===this.depth&&!i)return this;let u=this.path.slice(0,(s+1)*3);if(i){let x=this.node(s+1);u[u.length-2]+=1,u[u.length-1]+=x.nodeSize}return new this.constructor(u[u.length-1],u)}shrink(r,i){i===void 0&&(i=!1);let s=this.maybeShrink(r,i);if(!s)throw RangeError(`Depth matching predicate [${r}] is out of range.`);return s}extend(r){let i=this.self;if(!i)throw RangeError(`There is no node at given position ${this.pos} for extending.`);return this.constructor._resolve(this.path,i,this.pos+1,r)}extendIndex(r){let i=this.self;if(!i)throw RangeError(`There is no node at given position ${this.pos} for extending.`);return this.constructor._resolveIndex(this.path,i,this.pos+1,r)}static _resolve(r,i,s,u){return hu(i),super._resolve(r,i,s,u)}static _resolveIndex(r,i,s,u){return hu(i),super._resolveIndex(r,i,s,u)}static resolve(r,i){return this._resolve(null,r,0,i)}static resolveCached(r,i){for(let u of lu)if(u.pos===i&&u.root===r)return u;let s=lu[Us]=this.resolve(r,i);return Us=(Us+1)%6,s}static resolveIndex(r,i){return this._resolveIndex(null,r,0,i)}static resolveCommon(r,i,s){let u=this.resolve(r,i),x=this.resolve(r,s),v=u.commonDepth(x);return v?u.shrink(v-1):null}}let $s={index:0,offset:0};function Zs(l,r){return $s.index=l,$s.offset=r,$s}function uu(l,r){if(l.nodeSize!==r.nodeSize)throw RangeError(`Size of mapped node has changed from ${l.nodeSize} to ${r.nodeSize}.`)}function cu(l,r,i,s){return l.is("Text")?l.text.slice(Math.max(i,r)-r,Math.min(s,r+l.nodeSize)-r):l.type.getAltText(l)}let Js=l=>(l===void 0&&(l=class{}),class extends l{getContent(){throw Error("getContent must be implemented")}getContentSize(){throw Error("getContentSize must be implemented")}isEmpty(){return this.getContentSize()===0}get empty(){return this.isEmpty()}assertIndex(r){if(r<0||r>this.childCount)throw RangeError(`Index ${r} out of range for ${this.childCount} with size ${this.getContentSize()}.`)}assertOffset(r){if(r<0||r>this.getContentSize())throw RangeError(`Offset ${r} out of range for ${this.getContentSize()} with count ${this.childCount}.`)}findIndex(r,i){i===void 0&&(i=-1),this.assertOffset(r);let s=null;return this.forEach((u,x,v)=>{let P=x+u.nodeSize;if(r<P)return s=r===x||i<0?Zs(v,x):Zs(v+1,P),!0},this,!0),s||Zs(this.childCount,this.getContentSize())}get childCount(){return this.getContent().length}get firstChild(){return this.maybeChild(0)}get lastChild(){let r=this.childCount;return r?this.maybeChild(r-1):null}maybeChild(r){return this.getContent()[r]||null}child(r){let i=this.maybeChild(r);if(!i)throw RangeError(`Index ${r} out of range for ${this.childCount} with size ${this.getContentSize()}.`);return i}childs(){return this.getContent().slice()}childBefore(r){if(r===0)return{node:null,index:0,offset:0};let{index:i,offset:s}=this.findIndex(r);if(s!==r)return{node:this.child(i),index:i,offset:s};{let u=this.child(i-1);return{node:u,index:i-1,offset:s-u.nodeSize}}}childAfter(r){let{index:i,offset:s}=this.findIndex(r);return{node:this.maybeChild(i),index:i,offset:s}}nodeAt(r){let i=(x,v)=>{let{index:P,offset:j}=x.findIndex(v);return{node:x.maybeChild(P),offset:j}},{node:s,offset:u}=i(this,r);for(;s;){if(u===r||s.type.isText)return s;r-=u+1,{node:s,offset:u}=i(s,r)}return null}indexOf(r,i){return i===void 0&&(i=0),this.getContent().indexOf(r,i)}index(r,i){return this.indexOf(r,i)}offsetAt(r){let i;this.assertIndex(r);let s=this.childCount;if(2*r<s){i=0;for(let u=0;u<r;++u)i+=this.child(u).nodeSize}else{i=this.getContentSize();for(let u=s-1;u>=r;--u)i-=this.child(u).nodeSize}return i}sizeBetween(r,i){let s;if([r,i]=st(r,i,this.childCount),r>=i)return 0;let u=this.childCount;if((i-r)*2<u)for(s=0;r<i;++r)s+=this.child(r).nodeSize;else{s=this.getContentSize();for(let x=0;x<r;++x)s-=this.child(x).nodeSize;for(let x=i;x<u;++x)s-=this.child(x).nodeSize}return s}doQueryChild(r,i,s){let u=!!s||void 0;this.forEach((x,v,P)=>{if(x.type.is(i))return r.push({node:x,offset:v,index:P}),u},this,!0)}queryChild(r,i){i===void 0&&(i=!1);let s=[];if(this.doQueryChild(s,r,!0),i&&!s.length)throw RangeError(`There is no child matched with \`${r}\`.`);return s[0]||null}queryChildNode(r,i){let s=this.queryChild(r,i);return s?s.node:null}queryChildOffset(r,i){let s=this.queryChild(r,i);return s?s.offset:-1}queryChildOffsetRange(r,i){let s=this.queryChild(r,i);return s?[s.offset,s.offset+s.node.nodeSize]:null}queryChildResolvedPos(r,i){let s=this.queryChild(r,i);return s?dr.resolveIndex(this,s.index):null}queryChildIndex(r,i){let s=this.queryChild(r,i);return s?s.index:-1}queryAllChild(r){let i=[];return this.doQueryChild(i,r,!1),i}queryAllChildNode(r){return this.queryAllChild(r).map(i=>i.node)}queryAllChildOffset(r){return this.queryAllChild(r).map(i=>i.offset)}queryAllChildOffsetRange(r){return this.queryAllChild(r).map(i=>[i.offset,i.offset+i.node.nodeSize])}queryAllChildIndex(r){return this.queryAllChild(r).map(i=>i.index)}doQuery(r,i,s,u){let x=!1;s.startsWith("/")&&(x=!0,s=s.slice(1));let v=s.indexOf("/"),P=v>=0?s.slice(0,v):s,j=v>=0?s.slice(v):"";if(!P)return;let F=(q,J)=>{if(q.type.is(P)&&(j?q.doQuery(r,i+J+1,j,u):r.push({node:q,offset:i+J}),u&&r.length))return!0};x?this.forEach(F,this,!0):this.descendants(F)}query(r,i){i===void 0&&(i=!1);let s=[];if(this.doQuery(s,0,r,!0),i&&!s.length)throw RangeError(`There is no node matched with \`${r}\`.`);return s[0]||null}queryNode(r,i){let s=this.query(r,i);return s?s.node:null}queryOffset(r,i){let s=this.query(r,i);return s?s.offset:-1}queryOffsetRange(r,i){let s=this.query(r,i);return s?[s.offset,s.offset+s.node.nodeSize]:null}queryResolvedPos(r,i){let s=this.query(r,i);return s?dr.resolve(this,s.offset):null}queryAll(r){let i=[];return this.doQuery(i,0,r,!1),i}queryAllNode(r){return this.queryAll(r).map(i=>i.node)}queryAllOffset(r){return this.queryAll(r).map(i=>i.offset)}queryAllOffsetRange(r){return this.queryAll(r).map(i=>[i.offset,i.offset+i.node.nodeSize])}*iterateChildren(r,i){r===void 0&&(r=0),i===void 0&&(i=this.childCount);for(let s=r,u=this.offsetAt(r);s<i;){let x=this.maybeChild(s);if(!x)return;yield{node:x,offset:u,index:s},++s,u+=x.nodeSize}}*iterateChildrenByOffset(r,i){r===void 0&&(r=0),i===void 0&&(i=this.getContentSize());for(let{index:s,offset:u}=this.findIndex(r);u<i;){let x=this.maybeChild(s);if(!x)return;yield{node:x,offset:u,index:s},++s,u+=x.nodeSize}}forRange(r,i,s,u,x){for(let{node:v,offset:P,index:j}of this.iterateChildren(r??void 0,i!=null?i+1:void 0)){let F=s.call(u,v,P,j);if(x&&F!=null)return F}}forEach(r,i,s){for(let{node:u,offset:x,index:v}of this.iterateChildren()){let P=r.call(i,u,x,v);if(s&&P!=null)return P}}nodesInside(r,i,s,u){let x;u===void 0&&(u=Object.create(null));let v=u.preset;v&&(v==="editor"&&(u={overrideRoot:"ContentEditable",skipInlineContent:!0,...u}),u.preset=void 0);let{start:P=0,parent:j=null,overrideRoot:F,skipOutOfRange:q,skipInlineContent:J,enableLeaving:re}=u;if(F!=null){u.overrideRoot=void 0;let te=function(ie,de,ce,xe){let we=dr.resolveCommon(ie,de,ce);return we?xe===!0?{node:we.self,pos:we.pos}:typeof xe=="string"?we.findData(xe):typeof xe!="number"||xe===0?null:{node:we.node(xe),pos:we.before(xe)}:null}(this,r,i,F);if(te){let ie=te.pos+1;return u.start=(u.start||0)+ie,te.node.nodesInside(r-ie,i-ie,s,u)}}if(q){u.skipOutOfRange=void 0;let te=s,ie=P+r,de=P+i;s=(ce,xe,we,Me,Se)=>{if(ce.is("Text"))return te(ce,xe,we,Me,Se);{let Re=Se?xe+1+ce.getContentSize():xe;if(Re>=ie&&Re<de)return te(ce,xe,we,Me,Se)}}}for(let{node:te,offset:ie,index:de}of this.iterateChildrenByOffset(r,i)){let ce=P+ie;if((x=s(te,ce,de,j,!1))===!0)return!0;if(x!==!1&&(!J||!te.is("Inline"))){let xe=te.getContentSize();if(xe){let we=ie+1;if(u.start=P+we,u.parent=te,(x=te.content.nodesInside(Math.max(0,r-we),Math.min(xe,i-we),s,u))===!0)return!0}}if(re&&!te.type.isLeaf&&(x=s(te,ce,de,j,!0))===!0)return!0}return x}descendants(r,i){return this.nodesInside(0,this.getContentSize(),r,i)}mapNodesInside(r,i,s,u){u===void 0&&(u=Object.create(null));let{start:x=0,parent:v=null,skipInlineContent:P,enableLeaving:j}=u,F=this.getContent().slice();for(let{node:q,offset:J,index:re}of this.iterateChildrenByOffset(r,i)){let te=s(q,x+J,re,v,!1);if(uu(q,te),!P||!q.is("Inline")){let ie=J+1;u.start=x+ie,te=te.mapNodesInside(Math.max(0,r-ie),Math.min(te.getContentSize(),i-ie),s,u)}j&&!te.type.isLeaf&&uu(q,te=s(te,x+J,re,v,!0)),F[re]=te}return F}mapDescendants(r,i){return this.mapNodesInside(0,this.getContentSize(),r,i)}textBetween(r,i,s){s===void 0&&(s=d);let{blockSeparator:u="",inlineSeparator:x="",endOfLine:v=`
`,tabText:P="	",prependListItem:j,forceSeparateBlock:F,keepInlineSize:q}=function(ie){ie===void 0&&(ie=d);let{blockSeparator:de="",forceSeparateBlock:ce=!1,keepInlineSize:xe=!1}=ie,{inlineSeparator:we="",endOfLine:Me=`
`,tabText:Se="	"}=ie,Re=typeof ie.prependListItem=="object"?ie.prependListItem:ie.prependListItem?d:null,Be=Re&&{listItemIndentText:Re.listItemIndentText??"	"};return xe&&(we.length!==1&&(we=we?we[0]:" "),Me.length!==1&&(Me=`
`),Se.length!==1&&(Se="	")),{blockSeparator:de,inlineSeparator:we,endOfLine:Me,prependListItem:Be,tabText:Se,forceSeparateBlock:ce,keepInlineSize:xe}}(s),J="",re=!0,te=!0;return this.nodesInside(r,i,(ie,de)=>{if(ie.is("Inline")){let ce=cu(ie,de,r,i);return ce?(v!==`
`&&(ce=ce.replace(`
`,v)),P!=="	"&&(ce=ce.replace("	",P))):ce=q?x.repeat(ie.nodeSize):x,ce&&(J+=ce,re=!1),!1}ie.is("Textblock")&&(te?te=!1:(!re||F)&&(J+=u,re=!0),j&&de>=r&&ie.is("ListBlock")&&ie.type.isValidListBlock(ie)&&(j.listItemIndentText&&(J+=j.listItemIndentText.repeat(ie.getAttrValue("listLevel")??0)),J+=ie.type.getListText(ie)+"	",re=!1))},{skipInlineContent:!0,overrideRoot:!0}),J}textDescendants(r){return this.textBetween(0,this.getContentSize(),r)}containTextBetween(r,i,s){var u;let{includeBlockSeparator:x,includeInlineObject:v,ignoreWhiteSpace:P}=((u=s)===void 0&&(u=d),{includeBlockSeparator:u.includeBlockSeparator??!1,includeInlineObject:u.includeInlineObject??!1,ignoreWhiteSpace:u.ignoreWhiteSpace??!1}),j=P?/^\s+$/:void 0,F=!1,q=!0;return this.nodesInside(r,i,(J,re)=>{if(J.is("Inline")){let te=cu(J,re,r,i);if(te){if(!j?.test(te))return F=!0,!0}else if(v)return F=!0,!0;return!1}if(J.is("Textblock")){if(q)q=!1;else if(x)return F=!0,!0}},{skipInlineContent:!0,overrideRoot:!0}),F}containTextDescendants(r){return this.containTextBetween(0,this.getContentSize(),r)}walkPos(r,i,s,u){u===void 0&&(u=d);let{start:x=0,parent:v}=u,P=iy.create(v||this,r,-i);for(;;){let j=i>0?P:P.clone().prev();if(j.isAtEnd())return;let F=s(x+j.pos,j.node,j.index,j.parentNode),q=!1;if(F===!0)return;F===!1&&(q=!0),P.walk(i,q)}}posBetween(r,i,s,u){let x=i-r;x!==0&&this.walkPos(r,x,(v,P,j,F)=>(x>0?v>=i:v<i)||s(v,P,j,F),u)}});class uy extends Js(su){}class cy extends Js(){toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}nodesBetween(r,i,s,u,x){for(let v=0,P=0;P<i;v++){let j=this.content[v];if(!j)break;let F=P+j.nodeSize;if(F>r&&s(j,u+P,x,v)!==!1&&j.content.size){let q=P+1;j.nodesBetween(Math.max(0,r-q),Math.min(j.content.size,i-q),s,u+q)}P=F}}cut(r,i){if(i==null&&(i=this.size),r==0&&i==this.size)return this;let s=[],u=0;if(i>r)for(let x=0,v=0;v<i;x++){let P=this.content[x],j=v+P.nodeSize;j>r&&((v<r||j>i)&&(P=P.isText?P.cut(Math.max(0,r-v),Math.min(P.text.length,i-v)):P.cut(Math.max(0,r-v-1),Math.min(P.content.size,i-v-1))),s.push(P),u+=P.nodeSize),v=j}return new this.constructor(s,u)}cutByIndex(r,i){return r==i?this.constructor.empty:r==0&&i==this.content.length?this:new this.constructor(this.content.slice(r,i))}dropByIndex(r,i){return[r,i]=st(r,i,this.childCount),r>=i?this:r==0&&i==this.content.length?this.constructor.empty:new this.constructor(this.content.slice(0,r).concat(this.content.slice(i,this.content.length)))}append(){let r=arguments.length;if(!r)return this;let i=this.content.slice(),s=this.size;for(let v=0;v<r;++v){var u,x;let P=arguments[v];if(!P)continue;let{content:j,size:F}=this.constructor.from(P);if(!F)continue;let q=0,J=(u=i[i.length-1],x=j[0],u&&x&&u.type.isText&&u.sameMarkup(x)?u.copyWithText(u.text+x.text):null);for(J&&(i[i.length-1]=J,q=1);q<j.length;++q)i.push(j[q]);s+=F}return new this.constructor(i,s)}prepend(){if(!arguments.length)return this;let i=Array.prototype.slice.call(arguments,1);return i.push(this),this.constructor.from(arguments[0]).append(...i)}replaceChild(r,i){let s=this.content[r];if(s==i)return this;let u=this.content.slice(),x=this.size+i.nodeSize-s.nodeSize;return u[r]=i,new this.constructor(u,x)}static fromArray(r){if(!r.length)return this.empty;let i,s=0;for(let u=0;u<r.length;u++){let x=r[u];s+=x.nodeSize,u&&x.isText&&r[u-1].sameMarkup(x)?(i||(i=r.slice(0,u)),i[i.length-1]=x.copyWithText(i[i.length-1].text+x.text)):i&&i.push(x)}return new this(i||r,s)}eq(r){if(this.content.length!=r.content.length)return!1;for(let i=0;i<this.content.length;i++)if(!this.content[i].eq(r.content[i]))return!1;return!0}findDiffStart(r,i){return i===void 0&&(i=0),function s(u,x,v){for(let P=0;;P++){if(P==u.childCount||P==x.childCount)return u.childCount==x.childCount?null:v;let j=u.child(P),F=x.child(P);if(j==F){v+=j.nodeSize;continue}if(!j.sameMarkup(F))return v;if(j.isText&&j.text!=F.text){let q=j.text.replace(/\s/g," "),J=F.text.replace(/\s/g," ");if(q!=J){for(let re=0;q[re]==J[re];re++)v++;return v}}if(j.content.size||F.content.size){let q=s(j.content,F.content,v+1);if(q!=null)return q}v+=j.nodeSize}}(this,r,i)}findDiffEnd(r,i,s){return i===void 0&&(i=this.size),s===void 0&&(s=r.size),function u(x,v,P,j){for(let F=x.childCount,q=v.childCount;;){if(F==0||q==0)return F==q?null:{a:P,b:j};let J=x.child(--F),re=v.child(--q),te=J.nodeSize;if(J==re){P-=te,j-=te;continue}if(!J.sameMarkup(re))return{a:P,b:j};if(J.isText&&J.text!=re.text){let ie=J.text.replace(/\s/g," "),de=re.text.replace(/\s/g," ");if(ie!=de){let ce=0,xe=Math.min(ie.length,de.length);for(;ce<xe&&ie[ie.length-ce-1]==de[de.length-ce-1];)ce++,P--,j--;return{a:P,b:j}}}if(J.content.size||re.content.size){let ie=u(J.content,re.content,P-1,j-1);if(ie)return ie}P-=te,j-=te}}(this,r,i,s)}}function oa(l){let r=l?.document??window.document;if(!r)throw Error("A document must be given in a non-browser environment.");return r}class xt extends cy{static#e=this.empty=new xt(m,0);constructor(r,i){super(),this.content=r,this.size=i??r.reduce((s,u)=>s+u.nodeSize,0)}*[Symbol.iterator](){yield*this.iterateChildren()}getContent(){return this.content}getContentSize(){return this.size}mapNodesInside(r,i,s,u){return this.constructor.from(super.mapNodesInside(r,i,s,u))}map(r,i){let s=[];return this.forEach((u,x,v)=>{s.push(r.call(i,u,x,v))}),this.constructor.from(s)}splice(r,i){let s;for(var u=arguments.length,x=Array(u>2?u-2:0),v=2;v<u;v++)x[v-2]=arguments[v];let P=0,j=[];x.forEach(q=>{q instanceof xt?(j.push(...q.content),P+=q.size):Array.isArray(q)?(j.push(...q),P+=q.reduce((J,re)=>J+re.nodeSize,0)):q&&(j.push(q),P+=q.nodeSize)});let F=r+i;return r===0?s=j:(s=this.content.slice(0,r)).push(...j),s.push(...this.content.slice(F)),this.constructor.create(s,this.size-this.sizeBetween(r,F)+P)}swap(r,i){if(this.getContentSize()===0)return this;let s=this.getContent();if(r=Ye(r,s.length),i=Ye(i,s.length),r===i)return this;let u=s.slice(),x=u[r];return u[r]=u[i],u[i]=x,this.constructor.create(u,this.getContentSize())}move(r,i){return this.moveTo(r,qe(r+i,0,this.getContent().length-1))}moveTo(r,i){if(this.getContentSize()===0)return this;let s=this.getContent(),u=s.length;if(r=qe(Ye(r,u),0,u-1),i=qe(Ye(i,u),0,u-1),r===i)return this;let x=s.slice(0,Math.min(r,i));return r<i?x.push(...s.slice(r+1,i+1),s[r]):x.push(s[r],...s.slice(i,r)),x.push(...s.slice(Math.max(r,i)+1)),this.constructor.create(x,this.getContentSize())}deepCopy(r){let i=this.getContent();return i.length===0?this:this.constructor.fromJSON(i[0].type.schema,this.toJSON(r))}render(r){return this.isEmpty()?oa(r).createDocumentFragment():this.child(0).schema.getDomRenderer().renderFragment(this,r)}toJSON(r){return this.content.map(i=>i.toJSON(r))}toJSONString(r){return`[${this.content.reduce((s,u)=>(s&&(s+=","),s+=u.toJSONString(r)),"")}]`}async toJSONStream(r,i){await r.write("[");let s=this.content;for(let u=0;u<s.length;++u)u!==0&&await r.write(","),await s[u].toJSONStream(r,i);await r.write("]")}static create(r,i){return r.length?new this(r,i):this.empty}static fromJSON(r,i){return i&&i.length?this.create(i.map(r.nodeFromJSON)):this.empty}static from(r){return r?r instanceof xt?r:Array.isArray(r)?this.fromArray(r):this.create([r],r.nodeSize):this.empty}static jsonFrom(r){return r?Array.isArray(r)?r:[r]:[]}}class ot extends Js(){static#e=this.empty=new ot(xt.empty,0,0);constructor(r,i,s,u){super(),this.content=xt.from(r),this.openLeft=i||0,this.openRight=s||0,this.possibleParent=u||null}get size(){return this.content.size-this.openLeft-this.openRight}getContent(){return this.content.getContent()}getContentSize(){return this.content.getContentSize()}mapNodesInside(r,i,s,u){u===void 0&&(u=Object.create(null)),u.start=(u.start||0)-this.openLeft;let x=this.possibleParent;return x&&(u.parent=x),this.constructor.from(super.mapNodesInside(r,i,s,u),this.openLeft,this.openRight,x)}walkPos(r,i,s,u){u===void 0&&(u=Object.create(null)),u.start=(u.start||0)-this.openLeft,super.walkPos(r,i,s,u)}insertAt(r,i){let s=function u(x,v,P,j){let{index:F,offset:q}=x.findIndex(v);if(q===v||x.child(F).isText)return x.cut(0,v).append(P).append(x.cut(v));{let J=x.child(F),re=u(J.content,v-q-1,P);return re&&x.replaceChild(F,J.copy(re))}}(this.content,r+this.openLeft,i);return s?this.constructor.from(s,this.openLeft,this.openRight):null}removeBetween(r,i){return r===i?this:this.constructor.from(function s(u,x,v){let{index:P,offset:j}=u.findIndex(x),F=u.child(P),{index:q,offset:J}=u.findIndex(v);if(j===x||F.isText){if(J!==v&&!u.child(q).isText)throw RangeError(`Removing non-flat range [${x}, ${v}].`);return u.cut(0,x).append(u.cut(v))}if(P!==q)throw RangeError(`Removing non-flat range [${x}, ${v}].`);return u.replaceChild(P,F.copy(s(F.content,x-j-1,v-j-1)))}(this.content,r+this.openLeft,i+this.openLeft),this.openLeft,this.openRight)}toString(){return`${this.content}(${this.openLeft},${this.openRight})`}deepCopy(r){let i=this.getContent();return i.length===0?this:this.constructor.fromJSON(i[0].type.schema,this.toJSON(r))}toJSON(r){return this.content.size?{content:this.content.toJSON(r),openLeft:this.openLeft,openRight:this.openRight}:null}static fromJSON(r,i){return i?new ot(xt.fromJSON(r,i.content),i.openLeft,i.openRight):ot.empty}static from(r,i,s,u){return i===void 0&&(i=0),s===void 0&&(s=0),r?r instanceof ot?r:new this(xt.from(r),i,s,u):ot.empty}static jsonFrom(r){if(!r)return{content:null,openLeft:0,openRight:0};if("openLeft"in r)return r;{let i=xt.jsonFrom(r);return{content:i.length>0?i:null,openLeft:0,openRight:0}}}}let dy=0;class Ur{constructor(){this._state=[]}static registerIndex(){return dy++}set(r,i){this._state[r]=i}get(r){return this._state[r]}pushToStack(r,i){let s=this._state[r];s instanceof Array||(this._state[r]=s=[]),s.push(i)}popFromStack(r){let i=this._state[r];if(!(i instanceof Array)||i.length===0)return;let s=i[i.length-1];return i.splice(i.length-1,1),s}topOfStack(r){let i=this._state[r];if(i instanceof Array&&i.length!==0)return i[i.length-1]}setRootNode(r){this.set(du,r)}getRootNode(){return this.get(du)}pushTableInfo(r){this.pushToStack(Xs,r)}popTableInfo(){return this.popFromStack(Xs)}topTableInfo(){return this.topOfStack(Xs)}setTableInfo(r,i){let s=this.topTableInfo();s&&(s[r]=i)}getTableInfo(r){let i=this.topTableInfo();return i&&i[r]}setTableNode(r){r?(this.pushTableInfo({}),this.setTableInfo(pu,r)):this.popTableInfo()}getTableNode(){return this.getTableInfo(pu)}setTableRowIndex(r){this.setTableInfo(gu,r)}setTableColIndex(r){this.setTableInfo(fu,r)}getTableRowIndex(){return this.getTableInfo(gu)}getTableColIndex(){return this.getTableInfo(fu)}setTableUpdateInfoMap(r){return this.setTableInfo(yu,r)}getTableUpdateInfoMap(){return this.getTableInfo(yu)}pushListMap(r){this.pushToStack(Ys,r)}popListMap(r){this.popFromStack(Ys)}getListMap(){return this.topOfStack(Ys)}getListConfigs(r){let i=this.getListMap();return i&&i[r]}}let du=Ur.registerIndex(),Xs=Ur.registerIndex(),pu=Ur.registerIndex(),gu=Ur.registerIndex(),fu=Ur.registerIndex(),yu=Ur.registerIndex(),Ys=Ur.registerIndex();class py{constructor(){this.update_maps={},this.phase_index=0,this.FROM_PARENT=this.phase_index++,this.UPDATE_START=this.phase_index++,this.UPDATE_END=this.phase_index++,this.SELF_START=this.phase_index++,this.SELF_END=this.phase_index++,this.INHERITED_START=this.phase_index++,this.INHERITED_END=this.phase_index++,this.BEFORE_CHILD=this.phase_index++,this.AFTER_CHILD=this.phase_index++}getSchemaMaps(r){return this.update_maps[r]||(this.update_maps[r]=[])}getMap(r,i){if(!(r>=0&&r<this.phase_index))throw RangeError("Given phase is invalid.");let s=this.getSchemaMaps(i);return s[r]||(s[r]=[])}createMapItem(r,i,s){if(typeof r!="string"||i!==null&&typeof i!="string"||typeof s!="function")throw Error("Type of map item is error.");return{name:r,type:i,func:s}}register(r,i,s,u,x){let v=this.getMap(r,i);v.some(P=>P.name===s&&P.type===u&&P.func===x)||v.push(this.createMapItem(s,u,x))}unregister(r,i,s){let u=this.getMap(r,i);for(let x=u.length-1;x>=0;--x)u[x].name===s&&u.splice(x,1)}reorder(r,i,s){let u=this.getMap(r,i);for(let x=0,v=u.length;x<v;++x)u[x].name===s&&(u.push(...u.splice(x,1)),--x,--v)}}class tt{constructor(r,i){this.global_state=r,this.state_map=i}runMap(r,i,s){let u=this.state_map.getMap(r,i.type.name),x=s?[i,s,this.global_state]:[i,this.global_state];s||(s=i);let v=s.getStateRank();for(let P=0;P<u.length;++P){let j=u[P];if(j.type&&!s.type.is(j.type))continue;let F=j.func.apply(null,x);F!==void 0&&F>v&&(v=F)}return v}runFromParent(r,i){r.getStateRank()<$r&&i.getStateRank()<$r||r.setMinStateRank(this.runMap(this.state_map.FROM_PARENT,r,i))}runUpdateStart(r){r.setMinStateRank(this.runMap(this.state_map.UPDATE_START,r))}runSelfStart(r){r.getStateRank()<$r||r.setMinStateRank(this.runMap(this.state_map.SELF_START,r))}runInheritedStart(r){return this.runMap(this.state_map.INHERITED_START,r)===Qs}runBeforeChild(r,i){this.runMap(this.state_map.BEFORE_CHILD,r,i)}runAfterChild(r,i){this.runMap(this.state_map.AFTER_CHILD,r,i)}runInheritedEnd(r){this.runMap(this.state_map.INHERITED_END,r)}runSelfEnd(r){r.getStateRank()<$r||this.runMap(this.state_map.SELF_END,r)}runUpdateEnd(r){this.runMap(this.state_map.UPDATE_END,r)}trimNode(r,i){return r.getStateRank()>=$r&&(r=r.type.trimNode(r,i)||r),r}run(r,i,s){let u;if(!r.type.enableLocalAttrs)return;let x=s.findInherit,v=s.partialUpdate;i&&this.runFromParent(r,i),this.runUpdateStart(r),this.runSelfStart(r),x&&this.runInheritedStart(r)&&(s.findInherit=!1),v&&r.getStateRank()>=mu&&(s.partialUpdate=!1);for(let P=0,j=r.childCount;P<j;++P){let F=r.child(P);if(this.runBeforeChild(r,F),!s.partialUpdate||F.getStateRank()>=un){let q=this.run(F,r,s);F!==q&&(F=q,r=r.duplicate(r.content.replaceChild(P,F))),F.getRenderRank()!==fy&&(u=yy)}this.runAfterChild(r,F)}return x&&this.runInheritedEnd(r),this.runSelfEnd(r),this.runUpdateEnd(r),s.trimNode&&(r=this.trimNode(r,i)),r.getStateRank()>=gy&&(u=xy),u!=null&&r.setMinRenderRank(u),r.setStateRank(xu),s.findInherit=x,s.partialUpdate=v,r}static _update(r,i){if(i===void 0&&(i=Object.create(null)),!r.type.is("RootType"))throw Error("Only root node can update state.");return r.type.enableLocalAttrs?(i.partialUpdate&&(i.findInherit=!0),i.force&&r.setMinStateRank($r),new tt(r.getGlobalState(),r.type.schema.state_map).run(r,null,i)):r}static update(r,i){i===void 0&&(i=Object.create(null));let s=this._update(r,i);if(s!==r)throw Error("Node is changed after state updating.");return s}static updateAndTrim(r,i){return i===void 0&&(i=Object.create(null)),i.trimNode=!0,this._update(r,i)}static shouldInherited(r){return r.getStateRank()>=$r}static markInheritNodePath(r){for(r.setMinStateRank(mu),r=r.state.parent;r&&r.getStateRank()<un;)r.setStateRank(un),r=r.state.parent;return Qs}static markInheritNodesPath(r,i,s){for(i===void 0&&(i=0),s===void 0&&(s=r.length);i<s;++i)this.markInheritNodePath(r[i]);return Qs}static maybeInherited(r,i,s,u){return this.shouldInherited(r)?this.markInheritNodesPath(i,s,u):xu}static markResolvedPos(r,i){let s;i===void 0&&(i=$r);for(let u=r.length+1;u>=0;--u){let x=r.node(u);x&&(x.setMinStateRank(s?un:i),s=!0)}}static markIndexArr(r,i,s){s===void 0&&(s=$r);let u=r;for(let x=0,v=i.length;x<v;++x)u.setMinStateRank(un),u=u.child(i[x]);u.setMinStateRank(s)}}let xu=tt.STATE_NONE=0,un=tt.STATE_PASSING=1,mu=tt.STATE_SCAN=2,$r=tt.STATE_UPDATE=3,gy=tt.STATE_REDRAW=4,Qs=tt.STATE_FIND=100,fy=tt.RENDER_NONE=0,yy=tt.RENDER_PASSING=1,xy=tt.RENDER_REDRAW=2,vu=Object.create(null),bu=tt.STATE_UPDATE,my=tt.RENDER_NONE;class vy extends uy{constructor(r,i,s,u,x=vu){super(r,i),this.content=s||xt.empty,this.marksRaw=u||Qe.none,this.type.enableLocalAttrs&&(this.node_id=ge(),this.state_rank="state_rank"in x?x.state_rank:bu,this.state=x.state&&he(x.state)),this.render_rank="render_rank"in x?x.render_rank:my,this.type.nodeConstructor(this,x),this.type.enableLocalAttrs&&!this.state&&(this.state=this.type.createDefaultLocalAttrs(this))}get node_id(){if(!this.type.enableLocalAttrs)throw Error(`Local attrs is not enabled for type ${this.type.name}`);return this.node_id_}set node_id(r){this.node_id_=r}get localAttrs(){if(!this.type.enableLocalAttrs)throw Error(`Local attrs is not enabled for type ${this.type.name}`);return this.state}set localAttrs(r){if(!this.type.enableLocalAttrs)throw Error(`Local attrs is not enabled for type ${this.type.name}`);this.state=r}getStateRank(){return this.state_rank}setStateRank(r){this.state_rank=r}setMinStateRank(r){r>this.state_rank&&(this.state_rank=r)}setMaxStateRank(r){r<this.state_rank&&(this.state_rank=r)}getRenderRank(){return this.render_rank}setRenderRank(r){this.render_rank=r}setMinRenderRank(r){r>this.render_rank&&(this.render_rank=r)}setMaxRenderRank(r){r<this.render_rank&&(this.render_rank=r)}resetRenderRank(){this.render_rank=tt.RENDER_NONE}get marks(){return this.type.enableLocalAttrs&&this.state.marks||this.marksRaw}set marks(r){throw Error("Cannot directly set marks.")}getMarks(r){return r?this.marksRaw:this.marks}getTextMarksJSON(r){return r?this.textMarksRawJSON:this.textMarksJSON}get textMarksRawJSON(){return this.attrs.textMarks||[]}get textMarksJSON(){return this.type.enableLocalAttrs&&this.state.text_marks_json||this.textMarksRawJSON}getTextMarks(r){return r?this.textMarksRaw:this.textMarks}get textMarksRaw(){return this.type.schema.marksFromJSON(this.textMarksRawJSON)}get textMarks(){return this.type.enableLocalAttrs&&this.state.text_marks||this.textMarksRaw}getListMarksJSON(r){return r?this.listMarksRawJSON:this.listMarksJSON}get listMarksRawJSON(){return this.getAttrValue("listMarks")||[]}get listMarksJSON(){return this.state.list_marks_json||this.listMarksRawJSON}getListMarks(r){return r?this.listMarksRaw:this.listMarks}get listMarksRaw(){return this.type.schema.marksFromJSON(this.listMarksRawJSON)}get listMarks(){return this.state.list_marks||this.listMarksRaw}eq(r){return this==r||this.sameMarkup(r,!0)&&this.content.eq(r.content)}shouldRender(r){if(this===r)return!1;if(this.type!==r.type||!Qe.sameSet(this.marks,r.marks))return!0;let i=this.attrs,s=r.attrs,u=!1;return R(this.type.attrs,(x,v)=>{if(!x.hidden)return u=!L(i[v],s[v])}),u}sameMarkup(r,i){return this==r||this.hasMarkup(r.type,r.attrs,r.getMarks(i),i)}hasMarkup(r,i,s,u){return this.type===r&&L(this.attrs,i||r.getPresetAttrValues()||vu)&&Qe.sameSet(this.getMarks(u),s||Qe.none)}defaultOptions(r){return he(r,{state:this.state,state_rank:this.state_rank,render_rank:this.render_rank})}duplicate(r,i,s){let u=new this.constructor(this.type,this.type.copyAttrs(this.attrs,i),r||this.content,s||this.marksRaw);return u.state=Object.assign(Object.create(null),this.state),u.state_rank=this.state_rank,u.render_rank=this.render_rank,u}copy(r,i,s,u){return u===void 0&&(u=Object.create(null)),s===null?s=this.getStateRank():s===void 0&&(s=bu),u.state_rank=s,new this.constructor(this.type,this.type.copyAttrs(this.attrs,i,u),r,this.marks,this.defaultOptions(u))}mark(r){return r=r||Qe.none,Qe.sameSet(r,this.marksRaw)&&Qe.sameSet(this.marks,this.marksRaw)?this:new this.constructor(this.type,this.attrs,this.content,r,this.defaultOptions())}cut(r,i){return this.copy(this.content.cut(r,i))}slice(r,i){if(i===void 0&&(i=this.content.size),r==i)return ot.empty;let s=this.resolve(r),u=this.resolve(i),x=s.sameDepth(u),v=s.start(x),P=s.node(x);return new ot(P.content.cut(s.pos-v,u.pos-v),s.depth-x,u.depth-x,P)}nodesBetween(r,i,s,u){u===void 0&&(u=0),this.content.nodesBetween(r,i,s,u,this)}marksAt(r,i){return this.resolve(r).getMarks(i)}rangeHasMark(r,i,s){let u=!1;return this.nodesBetween(r,i,x=>(s.isInSet(x.marks)&&(u=!0),!u)),u}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}contentMatchAt(r){return this.type.contentExpr.getMatchAt(this.attrs,this.content,r)}canReplace(r,i,s,u,x){return this.type.contentExpr.checkReplace(this.attrs,this.content,r,i,s,u,x)}canReplaceWith(r,i,s,u,x){return this.type.contentExpr.checkReplaceWith(this.attrs,this.content,r,i,s,u,x||Qe.none)}canAppend(r){return r.content.size?this.canReplace(this.childCount,this.childCount,r.content):this.type.compatibleContent(r.type)}defaultContentType(r){let i=this.contentMatchAt(r)?.nextElement;return i&&i.defaultType()}getDOM(){return this.dom}setDOM(r){this.dom=r}}class Ks extends Error{constructor(r=""){super(r),this.message!==r&&(this.message=r,Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error(r).stack)}get name(){return this.constructor.name||"ProseMirrorError"}}class Ar extends Ks{}function wu(l,r,i){if(i.openLeft>l.depth)throw new Ar("Inserted content deeper than insertion position");if(l.depth-i.openLeft!=r.depth-i.openRight)throw new Ar("Inconsistent open depths");return function s(u,x,v,P){let j=u.index(P),F=u.node(P);if(j==x.index(P)&&P<u.depth-v.openLeft){let q=s(u,x,v,P+1);return F.duplicate(F.content.replaceChild(j,q))}if(!v.content.size)return Mu(F,ha(u,x,P));{let{start:q,end:J}=function(re,te){let ie=te.depth-re.openLeft,de=te.node(ie).copy(re.content,null,null);for(let ce=ie-1;ce>=0;--ce)de=te.node(ce).copy(xt.from(de),null,null);return{start:de.resolveNoCache(re.openLeft+ie,!1),end:de.resolveNoCache(de.content.size-re.openRight-ie,!1)}}(v,u);return Mu(F,function re(te,ie,de,ce,xe){var we,Me,Se;let Re=te.depth>xe&&eo(te,ie,xe+1),Be=ce.depth>xe&&eo(de,ce,xe+1),Ue=[];return cn(null,te,xe,Ue),Re&&Be&&ie.index(xe)==de.index(xe)?(we=la(_u(Re,Be),re(te,ie,de,ce,xe+1)),te.node(xe),Ue.push(we)):(Re&&(Me=la(Re,ha(te,ie,xe+1)),te.node(xe),Ue.push(Me)),cn(ie,de,xe,Ue),Be&&(Se=la(Be,ha(de,ce,xe+1)),de.node(xe),Ue.push(Se))),cn(ce,null,xe,Ue),xt.fromArray(Ue)}(u,q,J,x,P))}}(l,r,i,0)}function Mu(l,r){if(!l.type.validContent(r,l.attrs))throw new Ar("Invalid content for node "+l.type.name);return l.duplicate(r)}function eo(l,r,i){return _u(l.node(i),r.node(i))}function _u(l,r){if(!r.type.compatibleContent(l.type))throw new Ar("Cannot join "+r.type.name+" onto "+l.type.name);let i=l.type.attrs,s=r.type.attrs,u=K(i,(x,v,P)=>{if(v.backward&&s[P]&&s[P].backward){let j=r.getAttrValue(P);j!==l.getAttrValue(P)&&(x||(x=Object.create(null)),x[P]=j)}return x},null);return u?l.copy(l.content,u,null):l}function cn(l,r,i,s){var u,x,v;let P=(r||l).node(i),j=0,F=r?r.index(i):P.childCount;l&&(j=l.index(i),l.depth>i?j++:!l.atNodeBoundary&&(u=l.nodeAfter,l.parent,s.push(u),j++));for(let q=j;q<F;++q)x=P.child(q),s.push(x);r&&r.depth==i&&!r.atNodeBoundary&&(v=r.nodeBefore,r.parent,s.push(v))}function la(l,r){if(!l.type.validContent(r,l.attrs))throw new Ar("Invalid content for node "+l.type.name);return l.copy(r,null,null)}function ha(l,r,i){let s=[];if(cn(null,l,i,s),l.depth>i){var u;u=la(eo(l,r,i+1),ha(l,r,i+1)),l.node(i),s.push(u)}return cn(r,null,i,s),xt.fromArray(s)}function Au(l,r){for(let i=l.length-1;i>=0;i--)r=`${l[i].type.name}(${r})`;return r}class pr extends vy{constructor(r,i,s,u,x){typeof s=="string"&&(s=xt.empty),super(r,i,s,u,x)}setState(r,i){this.state[r]=i}getState(r,i){return this.state[r]??i}getContent(){return this.content.getContent()}getContentSize(){return this.content.getContentSize()}nodesInside(r,i,s,u){return u&&typeof u!="number"||(u={start:u||0}),u.parent=this,super.nodesInside(r,i,s,u)}mapNodesInside(r,i,s,u){return u===void 0&&(u=Object.create(null)),u.parent=this,this.copyWithContent(super.mapNodesInside(r,i,s,u))}walkPos(r,i,s,u){return u===void 0&&(u=Object.create(null)),u.parent=this,super.walkPos(r,i,s,u)}get selfSize(){return this.type.isLeaf?1:2}get nodeSize(){return this.selfSize+this.content.size}resolve(r){return dr.resolveCached(this,r)}resolveNoCache(r){return dr.resolve(this,r)}resolveIndex(r){return dr.resolveIndex(this,r)}resolveCommon(r,i){return dr.resolveCommon(this,r,i)}replaceSimple(r,i,s){if(s===void 0&&(s=ot.empty),r===i&&s.size===0)return this;this.setMinStateRank(tt.STATE_UPDATE);let u=wu(this.resolve(r),this.resolve(i),s);return u.setMinStateRank(tt.STATE_UPDATE),u}replace(r,i,s){return this.replaceSimple(r,i,s)}replaceAll(r){return this.replace(0,this.getContentSize(),r)}deepCopy(r){return this.constructor.fromJSON(this.type.schema,this.toJSON(r))}copyWithAttrs(r){return this.copy(this.content,r)}copyWithContent(r){return this.copy(xt.from(r))}duplicateWithAttrs(r){return this.duplicate(this.content,r)}duplicateWithContent(r){return this.duplicate(xt.from(r))}render(r){return this.schema.getDomRenderer().renderNode(this,r)}toString(){let r=this.type.name;return this.content.size&&(r+="("+this.content.toStringInner()+")"),Au(this.marks,r)}toJSON(r){r===void 0&&(r=Object.create(null));let i={type:this.type.name},s=this.attrsToJSON(r);s&&(i.attrs=s);let u=this.contentToJSON(r);u&&(i.content=u);let x=this.marksToJSON(r);return x&&(i.marks=x),i}toJSONString(r){return r===void 0&&(r=Object.create(null)),`{${this.memberToJSONString(r)}}`}memberToJSONString(r){return`"type":${JSON.stringify(this.type.name)}`+this.attrsToJSONString(r)+this.contentToJSONString(r)+this.marksToJSONString(r)}async toJSONStream(r,i){i===void 0&&(i=Object.create(null)),await r.write("{"),await this.memberToJSONStream(r,i),await r.write("}")}async memberToJSONStream(r,i){await r.write(`"type":${JSON.stringify(this.type.name)}`),await this.attrsToJSONStream(r,i),await this.contentToJSONStream(r,i),await this.marksToJSONStream(r,i)}attrsToJSON(r){let i=this.type.computeJsonConversionAttrs(this,r);if(!H(i))return i}attrsToJSONString(r){let i=this.attrsToJSON(r);return i?`,"attrs":${JSON.stringify(i)}`:""}async attrsToJSONStream(r,i){this.type.collectFileIds(r.file,this);let s=this.attrsToJSONString(i);s&&await r.write(s)}contentToJSON(r){let i=this.content;if(i.size!==0)return i.toJSON(this.type.overrideJsonConversionContentOptions(this,r))}contentToJSONString(r){let i=this.content;return i.size===0?"":`,"content":${i.toJSONString(this.type.overrideJsonConversionContentOptions(this,r))}`}async contentToJSONStream(r,i){let s=this.content;s.size!==0&&(await r.write(',"content":'),await s.toJSONStream(r,this.type.overrideJsonConversionContentOptions(this,i)))}marksToJSON(r){let i=this.type.computeJsonConversionMarks(this,r);if(i.length===0)return;let{markFilter:s}=r;if(!s)return i.map(u=>u.toJSON(r));{let u=[];for(let x of i){let v=x.toJSON(r);s(v)&&u.push(v)}return u}}marksToJSONString(r){let i=this.type.computeJsonConversionMarks(this,r);return i.length===0?"":`,"marks":[${i.reduce((u,x)=>(u&&(u+=","),u+=x.toJSONString(r)),"")}]`}async marksToJSONStream(r,i){let s=this.type.computeJsonConversionMarks(this,i);if(s.length!==0){await r.write(',"marks":[');for(let u=0;u<s.length;++u)u!==0&&await r.write(","),await s[u].toJSONStream(r,i);await r.write("]")}}static fromJSON(r,i){return r.nodeType(i.type).create(i.attrs,typeof i.text=="string"?i.text:xt.fromJSON(r,i.content),i.marks&&i.marks.map(r.markFromJSON).sort((s,u)=>s.type.rank-u.type.rank))}}class Su extends pr{constructor(r,i,s,u,x){if(super(r,i,xt.empty,u,x),!s)throw RangeError("Empty text nodes are not allowed");this.text=s}mapNodesInside(r,i,s,u){return this}textBetween(r,i,s){return this.text.slice(r,i)}textDescendants(r){return this.text}get selfSize(){return this.text.length}get nodeSize(){return this.text.length}eq(r){return this.sameMarkup(r,!0)&&this.text===r.text}duplicate(r,i,s){return super.duplicate(r||this.text,i,s)}copyWithText(r,i){return new this.constructor(this.type,this.attrs,r,i??this.marks,this.defaultOptions())}duplicateWithText(r,i){return this.duplicate(r,null,i)}cut(r,i){return r===void 0&&(r=0),i===void 0&&(i=this.text.length),this.copyWithText(this.text.slice(r,i))}mark(r){return r=r||Qe.none,Qe.sameSet(r,this.marksRaw)&&Qe.sameSet(this.marks,this.marksRaw)?this:this.copyWithText(this.text,r)}toString(){return Au(this.marks,JSON.stringify(this.text))}toJSON(r){return{...super.toJSON(r),text:Yn(this.text," ")}}memberToJSONString(r){return`${super.memberToJSONString(r)},"text":${JSON.stringify(Yn(this.text," "))}`}async memberToJSONStream(r,i){await super.memberToJSONStream(r,i),await r.write(`,"text":${JSON.stringify(Yn(this.text," "))}`)}}let by=Object.create(null);class to extends pr{constructor(r,i,s,u,x=by){super(r,i,s,u,x),this.type.enableLocalAttrs&&(this.global_state=x.global_state||this.createGlobalState())}createGlobalState(){return new Ur}getGlobalState(){return this.global_state}defaultOptions(r){return"global_state"in(r=super.defaultOptions(r))||(r.global_state=this.global_state),r}duplicate(r,i,s){let u=super.duplicate(...arguments);return u.global_state=this.getGlobalState(),u}maybeUpdateState(r){this.getStateRank()!==tt.STATE_NONE&&this.updateState(r)}updateState(r){return tt.update(this,r)}updateStateAndTrim(r){return tt.updateAndTrim(this,r)}replace(r,i,s,u){if(s===void 0&&(s=ot.empty),u===void 0&&(u=tt.STATE_UPDATE),r===i&&s.size===0)return this;let x=this.resolve(r),v=this.resolve(i),P=wu(x,v,s),j=P.resolve(r),F=P.resolve(r+s.size),q=Math.min(x.sameDepth(v),j.sameDepth(F));return Cu(x,v,q,u),Cu(j,F,q,u),P.updateStateAndTrim({partialUpdate:!0})}replaceRootAttrs(r){let i=this.copy(this.content,r);return this.setMinStateRank(tt.STATE_UPDATE),i.updateState(),i}}function Cu(l,r,i,s){let u=l.node(i);if(!u||u!==r.node(i))throw Error("Given depth is not common depth.");for(let x=i-1;x>=0;--x)l.node(x).setMinStateRank(tt.STATE_PASSING);if(u.setMinStateRank(tt.STATE_PASSING),u.isTextblock)u.forEach(x=>{x.setMinStateRank(s)});else{let x=l.index(i),v=r.index(i);r.before(i+1)===r.pos&&--v;for(let P=x;P<=v;++P)u.child(P).setMinStateRank(s)}}class ro extends ay{constructor(r,i,s){super(r,i),this.isAttrsCopyable=Te.isAttrsCopyable(this.attrs),this.contentExpr=null,this.enableLocalAttrs&&(this.state_map=i.state_map,this.registerLocalAttrsUpdateMap())}getFreezeList(){let r=super.getFreezeList();return r.push("attrs","clearable"),r}getStateMap(){if(this.enableLocalAttrs)return this.state_map}get isBlock(){return!1}get isTextblock(){return!1}get isInline(){return!1}get isText(){return!1}get isLeaf(){return this.contentExpr.isLeaf}get selectable(){return!1}get clearable(){return Z(this.attrs,r=>r.clearable,void 0)!==null}get copyable(){return!0}get canSelectionLeave(){return!0}get draggable(){return!1}get textDraggable(){return!0}get unbreakable(){return!1}get needHeightCalculating(){return!1}get deleteWhenEmpty(){return!1}get Node(){return pr}getLeftPaddingWidth(r){return 0}getRightPaddingWidth(r){return 0}getTopPaddingHeight(r){return 0}getBottomPaddingHeight(r){return 0}getPaddingHeight(r){return this.getTopPaddingHeight(r)+this.getBottomPaddingHeight(r)}compatibleContent(r){return this==r||this.contentExpr.compatible(r.contentExpr)}isAttrsRequired(r){return Te.isAttrsRequired(this.attrs,r)}computeAttrs(r){return!r&&this.getPresetAttrValues()?this.getPresetAttrValues():Te.computeAttrs(this.attrs,r)}copyAttrs(r,i,s){let u=r;return s&&s.filter_copyable&&(u=Te.copyableAttrs(this.attrs,u)),(u=Te.copyAttrs(this.attrs,u,i,s&&s.loose))===r?u:Te.computeAttrs(this.attrs,u)}invertAttrs(r,i,s){return Te.invertAttrs(this.attrs,r,i,s&&s.loose)}nodeConstructor(r,i){}static compile(r,i){let s=Object.create(null);if(r.forEach((u,x)=>s[u]=new x.type(u,i,x)),!s.doc)throw RangeError("Every schema needs a 'doc' type");if(!s.text)throw RangeError("Every schema needs a 'text' type");return s}get enableLocalAttrs(){return!0}static findFuncStack(r,i){let s=[];for(let u=r;u[i];u=Object.getPrototypeOf(u))u.hasOwnProperty(i)&&s.push(u[i]);return s}createDefaultLocalAttrs(r){return{cached_attrs:Object.create(null)}}registerLocalAttrsUpdateMap(){let r=ro.findFuncStack(this,"registerSelfLocalAttrsUpdateMap"),i=this.state_map;for(let s=r.length-1;s>=0;--s)r[s].call(this,i)}registerSelfLocalAttrsUpdateMap(r){r.register(r.UPDATE_END,this.name,"set_parent_node",null,(function(i){i.forEach(function(s){s.type.enableLocalAttrs&&(s.state.parent=i)})}).bind(this)),r.register(r.SELF_END,this.name,"cache_attrs",null,(function(i){i.state.cached_attrs=i.attrs}).bind(this))}storeAttrToState(r,i){return r.state[i]=i in r.attrs?r.attrs[i]:this.attrs[i].getDefaultValue()}storeInheritedAttrToState(r,i){return r.state[i]=i in r.attrs?r.attrs[i]:r.state["inherited_"+i]}}class Zr extends ro{constructor(r,i,s){super(r,i,s)}get printable(){return!0}get allowContentMatchInside(){return!0}getFileId(r){}collectFileIds(r,i){let s=i.type.getFileId(i);s&&(Array.isArray(s)?r.push(...s):r.push(s))}initContentExpression(r){this.contentExpr=r}validContent(r,i){return this.contentExpr.matches(i,r)}trimNode(r,i){}_create(r,i,s){return new this.Node(this,r,i,Qe.setFrom(s))}create(r,i,s,u){switch(u){case"check":return this.createChecked(r,i,s);case"fill":return this.maybeCreateFilled(r,i,s);default:return this.createComputed(r,i,s)}}createFromDOM(r,i,s,u){return this.createComputed(r,i,s)}createComputed(r,i,s){return this._create(this.computeAttrs(r),xt.from(typeof i=="string"?null:i),s)}maybeCreateChecked(r,i,s){return typeof i=="string"?null:(r=this.computeAttrs(r),i=xt.from(i),this.validContent(i,r)?this._create(r,i,s):null)}createChecked(r,i,s){let u=this.maybeCreateChecked(r,i,s);if(!u)throw RangeError(`Invalid content for node ${this.name}`);return u}maybeCreateFilled(r,i,s){if(typeof i=="string")return null;if(r=this.computeAttrs(r),(i=xt.from(i)).size){let v=this.contentExpr.start(r).fillBefore(i);if(!v)return null;i=v.append(i)}let u=this.contentExpr.getMatchAt(r,i);if(!u)return null;let x=u.fillBefore(xt.empty,!0);return x?(i=i.append(x),this._create(r,i,s)):null}createFilled(r,i,s){let u=this.maybeCreateFilled(r,i,s);if(!u)throw RangeError(`Unable to fill a valid content for node ${this.name}`);return u}createAndFill(r,i,s){return this.maybeCreateFilled(r,i,s)}get matchDOMTag(){return null}parseDOM(r,i){let s=this.parseAttrs(r,i),u=this.parseContent(r,i);return u?[s,u]:s}parseAttrs(r,i){let{parser:s}=i,u=Object.create(null),x=au(r.getAttribute("data-syno-attrs")??"");return x&&(u=this.parseAttrsFromJson(u,x,i)),u=this.parseAttrsFromDom(u,r,i),s&&(u=this.parseAttrsFromParser(u,s,i)),u}parseAttrsFromJson(r,i,s){return Object.assign(r,i)}parseAttrsFromDom(r,i,s){return r}parseAttrsFromParser(r,i,s){return r}parseContent(r,i){return this.parseContentSyno(r,i)}parseContentSyno(r,i){let s,u=r.getAttribute("data-syno-content");if(!u)return null;try{s=JSON.parse(u)}catch{}let x=null;if(typeof s=="object"&&s&&Array.isArray(s))try{x=this.schema.nodesFromJSON(s)}catch{}return x}renderAttrs(r,i,s){r||(r=Object.create(null)),this.renderAttrsDom(r,i,s);let u=s.target;if(u==="editor"||u==="viewer"||u==="general")r.class=[this.className,this.printable?"":"ProseMirror-non-printable",r.class];else if(u==="clipboard"){let x=nu(this.renderAttrsJson(Object.create(null),i,s));if(x&&(r["data-syno-attrs"]=x),u==="clipboard"){let v=this.renderContentSyno(i,s);if(v)try{r["data-syno-content"]=JSON.stringify(v.toJSON(s))}catch{}}}return r}renderAttrsDom(r,i,s){return r}renderAttrsJson(r,i,s){return r}renderContentSyno(r,i){return null}toDOM(r,i){return i.target==="clipboard"?this.toCopyDOM(r,i):this.toRenderDOM(r,i)}toRenderDOM(r,i){throw Error("Override me!")}toCopyDOM(r,i){return this.toRenderDOM(r,i)}queryDom(r,i,s){let u=r.matches(i)?r:r.querySelector(i);if(s&&!u)throw RangeError(`There is no child matched with \`${i}\`.`);return u}computeJsonConversionAttrs(r,i){let s=r.attrs,u=i.target;return u==="clipboard"?this.isAttrsCopyable?s:Te.copyableAttrs(this.attrs,s):u==="replace"?this.isSettableAttrs()?s:this.settableAttrValues(s)??{}:s}computeJsonConversionMarks(r,i){let{target:s,useComputedStyle:u}=i,x=r.getMarks(s!=="clipboard"||!u);return x.length?s==="clipboard"?x.filter(v=>v.type.copyable):s==="replace"?x.filter(v=>v.type.settable):x:x}overrideJsonConversionContentOptions(r,i){return i}}class wy extends Zr{static getSelfPropertyName(){return"RootType"}get unbreakable(){return!0}get Node(){return to}get attrs(){return{schema:Te.create({default:1}),type:Te.create({default:""})}}createDefaultContentStyles(){return{}}toRenderDOM(){return["div",null,0]}}class ri extends Zr{get isNonEditableType(){return!0}get allowContentMatchInside(){return!1}get unbreakable(){return!0}toRenderDOM(r,i){return["div",this.renderAttrs(null,r,i),this.is("Leaf")?null:0]}}class di extends Zr{static getSelfPropertyName(){return"EditableType"}get needHeightCalculating(){return!0}getTextRectInfo(r,i){return r.state.parent_text_rect_info||{left:0,width:0}}setStateTextRectInfo(r,i){return r.state.text_rect_info=this.getTextRectInfo(r,i),tt.STATE_UPDATE}registerSelfLocalAttrsUpdateMap(){let r=this.getStateMap();r.register(r.FROM_PARENT,this.name,"set_parent_text_rect_info",null,(i,s)=>{let u=s.state.text_rect_info;return u&&u!==i.state.parent_text_rect_info?(i.state.parent_text_rect_info=u,tt.STATE_UPDATE):tt.STATE_NONE}),r.register(r.SELF_START,this.name,"set_text_rect_info",null,this.setStateTextRectInfo.bind(this))}}class ua extends di{get isBlock(){return!0}getBlockContentDOM(r){return r.firstChild}toDOM(r,i){let s=super.toDOM(r,i);return(i.target==="editor"||i.target==="viewer"||i.target==="general")&&(s=["div",{class:this.classPrefix+"block"},s]),s}toRenderDOM(r,i){return this.renderBlockStructure(r,i)}toCopyDOM(r,i){return this.renderBlockStructure(r,i)}renderBlockStructure(r,i){throw Error("Override me!")}}class Iu extends ua{get isContainerBlock(){return!0}}class Pu extends ua{get isTextblock(){return!0}}class My extends Pu{get isParagraph(){return!0}get selectable(){return!0}setStateTextRectInfo(r,i){return super.setStateTextRectInfo(r,i),tt.STATE_REDRAW}get matchDOMTag(){let r=(i,s)=>this.parseDOM(i,s);return["p","h1","h2","h3","h4","h5","h6"].reduce((i,s)=>(i[s]=r,i),Object.create(null))}renderAttrsDom(r,i,s){return super.renderAttrsDom(r,i,s),Object.assign(r.inline_style||(r.inline_style=Object.create(null)),{"padding-left":"0px","padding-top":"0px","padding-right":"0px","padding-bottom":"0px","margin-left":"0px","margin-top":"0px","margin-right":"0px","margin-bottom":"0px"}),r}}class Tu extends di{static getSelfPropertyName(){return"Inline"}get isInline(){return!0}get needHeightCalculating(){return!1}getAltText(r){return""}nodeConstructor(r,i){super.nodeConstructor(r,i),r.type.enableLocalAttrs&&r.state&&(r.state=null)}createDefaultLocalAttrs(r){let i=super.createDefaultLocalAttrs(r);return i.cached_marks=[],i}registerSelfLocalAttrsUpdateMap(){let r=this.getStateMap();r.register(r.SELF_END,this.name,"cache_marks",null,i=>{i.state.cached_marks=i.marksRaw}),r.register(r.FROM_PARENT,this.name,"inherit_text_marks","isMarksBlock",(i,s)=>{let u=i.state,x=s.state;return u.inherited_text_marks===x.inherited_text_marks?tt.STATE_NONE:(u.inherited_text_marks=x.inherited_text_marks,u.inherit=!0,tt.STATE_UPDATE)}),r.register(r.SELF_END,this.name,"clear_inherit_flag",null,i=>{i.state.inherit=!1}),r.register(r.SELF_START,this.name,"merge_marks",null,i=>{let s=i.state;return s.inherit||s.cached_marks!==i.marksRaw?(s.marks=Qe.mergeSet(s.inherited_text_marks,i.marksRaw),tt.STATE_REDRAW):tt.STATE_NONE})}trimNode(r,i){r=super.trimNode(r,i)||r;let s=Qe.trimSet(r.marksRaw,r.state.inherited_text_marks);return s&&(r=r.duplicate(null,null,s)),r}}class ca extends Tu{static getSelfPropertyName(){return"NonTextInline"}}class da extends ca{static getSelfPropertyName(){return"InlineObject"}get selectable(){return!0}get draggable(){return!0}getObjectBorder(r){return{left:0,top:0,right:0,bottom:0}}renderAttrsDom(r,i,s){return super.renderAttrsDom(r,i,s),Object.assign(r.inline_style||(r.inline_style=Object.create(null)),{display:"inline-block","white-space":"nowrap"}),r}}class _y extends ca{static getSelfPropertyName(){return"InlineFieldText"}get selectable(){return!0}get draggable(){return!1}}class Ay extends aa{constructor(r,i,s){super(r,s);let u=this.attrs;if(Object.defineProperty(this,"attrs",{value:u}),!u[this.valueKey])throw Error(`Attribute ${this.valueKey} is not defined in mark ${r}.`);this.rank=i}get classPrefix(){return"syno-o-doc-pm-mark-"}get copyable(){return!0}get clearable(){return!0}get settable(){return!0}get inclusiveBefore(){return!0}get supportTextblock(){return!0}get supportListBlock(){return!0}get valueKey(){return"value"}get hasCss(){return!1}get attrs(){return{}}toDOM(r,i){throw Error("Failed to override MarkType.toDOM")}get matchDOMTag(){return null}get matchDOMStyle(){return null}}class Rr extends Ay{constructor(r,i,s){super(r,i,s),this.defaultMark=void 0,this.presetMark=void 0}getDefaultValue(){return this.getDefaultAttrValues()[this.valueKey]}createDefaultMark(){return this.doCreate(this.getDefaultAttrValues())}getDefaultMark(){return this.defaultMark??=this.createDefaultMark()}createPresetMark(){return this.doCreate(Object.create(null))}getPresetMark(){return this.presetMark??=this.createPresetMark()}isInSet(r){return this.findFromSet(r)}findFromSet(r){return r.find(i=>i.type===this)??null}findIndexFromSet(r){return r.findIndex(i=>i.type===this)}removeFromSet(r){let i=this.findIndexFromSet(r);if(i<0)return r;let s=r.slice();return s.splice(i,1),s}doCreate(r){return new Qe(this,Te.computeAttrs(this.attrs,r))}create(r){return!r||H(r)?this.getPresetMark():this.doCreate(r)}computeJsonConversionAttrs(r,i){return r.attrs}static compile(r,i){let s=Object.create(null),u=0;for(let[x,v]of i){if(s[x])throw RangeError(`Duplicate mark type name: ${x}`);s[x]=new v(x,u++,r)}return s}}class Jr extends Rr{static getSelfPropertyName(){return"Css"}get hasCss(){return!0}get cssType(){return"overwrite"}get cssName(){throw Error("Must override!")}get cssDefaultValue(){throw Error("Must override!")}getCssStyle(r){return{type:this.cssType,key:this.cssName,value:this.getCssValue(r)}}toDOM(r,i){return["span",{inline_style:{[this.cssName]:this.getCssValue(r)}}]}}class pa extends Jr{static getSelfPropertyName(){return"ToggleableCss"}get cssValue(){throw Error("Must override!")}get attrs(){return{value:Te.create({default:!0,empty_value:!1,normalizer:"boolean"})}}getCssValue(r){return r.getValue()?this.cssValue:this.cssDefaultValue}computeJsonConversionAttrs(r,i){return this.getAttrKeys().length===1&&r.getValue()===!0?d:r.attrs}create(r){return r&&r.is_on!=null&&r.value==null&&(r={...r,value:r.is_on,is_on:void 0}),super.create(r)}}class io{constructor(r,i,s){this.nodeType=r,this.elements=i,this.inlineContent=s}get isLeaf(){return this.elements.length==0}start(r){return new ga(this,r,0,0)}matches(r,i,s,u){return this.start(r).matchToEnd(i,s,u)}getMatchAt(r,i,s){return s===void 0&&(s=i.childCount),this.elements.length==1?new ga(this,r,0,s):this.start(r).matchFragment(i,0,s)}checkReplace(r,i,s,u,x,v,P){if(x===void 0&&(x=xt.empty),v===void 0&&(v=0),P===void 0&&(P=x.childCount),this.elements.length==1){let F=this.elements[0];if(!ku(F,i.childCount-(u-s)+(P-v),r,this))return!1;for(let q=v;q<P;q++)if(!F.matches(x.child(q),r,this))return!1;return!0}let j=this.getMatchAt(r,i,s)?.matchFragment(x,v,P);return!!j&&j.matchToEnd(i,u)}checkReplaceWith(r,i,s,u,x,v,P){if(this.elements.length==1){let F=this.elements[0];return!!ku(F,i.childCount-(u-s)+1,r,this)&&F.matchesType(x,v,P,r,this)}let j=this.getMatchAt(r,i,s)?.matchType(x,v,P);return!!j&&j.matchToEnd(i,u)}compatible(r){for(let i=0;i<this.elements.length;i++){let s=this.elements[i];for(let u=0;u<r.elements.length;u++)if(r.elements[u].compatible(s))return!0}return!1}generateContent(r){return this.start(r).fillBefore(xt.empty,!0)}static parse(r,i,s){let u=[],x=0,v=null;for(;(x+=/^\s*/.exec(i.slice(x))[0].length)!=i.length;){let P=/^(?:(\w+)|\(\s*(\w+(?:\s*\|\s*\w+)*)\s*\))/.exec(i.slice(x));if(!P)throw SyntaxError("Invalid content expression '"+i+"' at "+x);x+=P[0].length;let j=/^\[([^\]]+)\]/.exec(i.slice(x));j&&(x+=j[0].length);let F=/^<(?:(_)|\s*(\w+(?:\s+\w+)*)\s*)>/.exec(i.slice(x));F&&(x+=F[0].length);let q=/^(?:([+*?])|\{\s*(\d+|\.\w+)\s*(,\s*(\d+|\.\w+)?)?\s*\})/.exec(i.slice(x));q&&(x+=q[0].length);let J=function(xe,we,Me){let{nodes:Se,groups:Re}=xe,Be=[];return Me.forEach(Ue=>{let Ze=Se[Ue]?[Se[Ue]]:Re[Ue];if(!Ze)throw SyntaxError("Node type or group '"+Ue+"' does not exist");for(let lt=0,At=Ze.length;lt<At;++lt){let ht=Ze[lt];Be.indexOf(ht)==-1&&Be.push(ht)}}),Be}(r.schema,0,P[1]?[P[1]]:P[2].split(/\s*\|\s*/));for(let xe=0;xe<J.length;xe++)if(v==null)v=J[xe].isInline;else if(v!=J[xe].isInline)throw SyntaxError("Mixing inline and block content in a single node");let re=j?function(xe,we){let Me=we.split(/\s*,\s*/),Se=Object.create(null);for(let Re=0;Re<Me.length;Re++){let Be=/^(\w+)=(\w+|"(?:\\.|[^\\])*"|\.\w+)$/.exec(Me[Re]);if(!Be)throw SyntaxError("Invalid attribute syntax: "+Me[Re]);Se[Be[1]]=ao(xe,Be[2])}return Se}(r,j[1]):null,te=!!F&&(!!F[1]||function(xe,we){let Me=[];for(let Se=0;Se<we.length;Se++){let Re=xe.marks[we[Se]];if(Re)Me.push(Re);else throw SyntaxError("Unknown mark type: '"+we[Se]+"'")}return Me}(r.schema,F[2].split(/\s+/))),{min:ie,max:de}=function(xe,we){let Me=1,Se=1;if(we&&(we[1]=="+"?Se=2e9:we[1]=="*"?(Me=0,Se=2e9):we[1]=="?"?Me=0:we[2]&&(Me=ao(xe,we[2]),Se=we[3]?we[4]?ao(xe,we[4]):2e9:Me),Se==0||Me>Se))throw SyntaxError("Invalid repeat count in '"+we[0]+"'");return{min:Me,max:Se}}(r,q);if(ie!=0&&J[0].isAttrsRequired(re))throw SyntaxError("Node type "+P[0]+" in type "+r.name+" is required, but has non-optional attributes");let ce=new Sy(J,re,te,ie,de);for(let xe=u.length-1;xe>=0;xe--){let we=u[xe];if(we.min!=we.max&&we.overlaps(ce))throw SyntaxError("Possibly ambiguous overlapping adjacent content expressions in '"+i+"'");if(we.min!=0)break}u.push(ce)}return new io(r,u,!!v)}}class Sy{constructor(r,i,s,u,x){this.nodeTypes=r,this.attrs=i,this.marks=s,this.min=u,this.max=x}matchesType(r,i,s,u,x){if(this.nodeTypes.indexOf(r)==-1)return!1;if(this.attrs){if(!i)return!1;for(let v in this.attrs)if((i[v]!=null?i[v]:r.attrs[v].getEmptyValue())!=dn(this.attrs[v],u,x))return!1}if(this.marks===!0)return!0;if(this.marks===!1)return s.length==0;for(let v=0;v<s.length;v++)if(this.marks.indexOf(s[v].type)==-1)return!1;return!0}matches(r,i,s){return this.matchesType(r.type,r.attrs,r.marks,i,s)}compatible(r){for(let i=0;i<this.nodeTypes.length;i++)if(r.nodeTypes.indexOf(this.nodeTypes[i])!=-1)return!0;return!1}constrainedAttrs(r,i){if(!this.attrs)return null;let s=Object.create(null);for(let u in this.attrs)s[u]=dn(this.attrs[u],r,i);return s}createFiller(r,i){let s=this.nodeTypes[0],u=s.computeAttrs(this.constrainedAttrs(r,i));return s.create(u,s.contentExpr.generateContent(u))}defaultType(){return this.nodeTypes[0].getPresetAttrValues()&&this.nodeTypes[0]}overlaps(r){return this.nodeTypes.some(i=>r.nodeTypes.indexOf(i)>-1)}allowsMark(r){return this.marks===!0||this.marks&&this.marks.indexOf(r)>-1}}class ga{constructor(r,i,s,u){this.expr=r,this.attrs=i,this.index=s,this.count=u}get element(){return this.expr.elements[this.index]}get nextElement(){for(let r=this.index,i=this.count;r<this.expr.elements.length;r++){let s=this.expr.elements[r];if(this.resolveValue(s.max)>i)return s;i=0}return null}move(r,i){return new ga(this.expr,this.attrs,r,i)}resolveValue(r){return r instanceof no?dn(r,this.attrs,this.expr):r}matchNode(r){return this.matchType(r.type,r.attrs,r.marks)}matchType(r,i,s){s===void 0&&(s=Qe.none);for(let{index:u,count:x}=this;u<this.expr.elements.length;u++,x=0){let v=this.expr.elements[u];if(x<this.resolveValue(v.max)&&v.matchesType(r,i,s,this.attrs,this.expr))return x++,this.move(u,x);if(x<this.resolveValue(v.min))return null}}matchFragment(r,i,s){if(i===void 0&&(i=0),s===void 0&&(s=r.childCount),i==s)return this;let u=i,x=this.expr.elements.length;for(let{index:v,count:P}=this;v<x;v++,P=0){let j=this.expr.elements[v],F=this.resolveValue(j.max);for(;P<F&&j.matches(r.child(u),this.attrs,this.expr);)if(P++,++u==s)return this.move(v,P);if(P<this.resolveValue(j.min))return null}return!1}matchToEnd(r,i,s){let u=this.matchFragment(r,i,s);return u&&u.validEnd()||!1}validEnd(){for(let r=this.index,i=this.count;r<this.expr.elements.length;r++,i=0)if(i<this.resolveValue(this.expr.elements[r].min))return!1;return!0}fillBefore(r,i,s){let u=[],x=this,v=s||0,P=this.expr.elements.length;for(;;){let j=x.matchFragment(r,v);if(j&&(!i||j.validEnd()))return xt.from(u);if(j===!1)return null;let F=x.element;if(x.count<this.resolveValue(F.min))u.push(F.createFiller(this.attrs,this.expr)),x=x.move(x.index,x.count+1);else if(x.index<P)x=x.move(x.index+1,0);else return r.childCount>v?null:xt.from(u)}}possibleContent(){let r=[];for(let i=this.index,s=this.count;i<this.expr.elements.length;i++,s=0){let u=this.expr.elements[i],x=u.constrainedAttrs(this.attrs,this.expr);if(s<this.resolveValue(u.max))for(let v=0;v<u.nodeTypes.length;v++){let P=u.nodeTypes[v];P.isAttrsRequired(x)||r.push({type:P,attrs:x})}if(this.resolveValue(u.min)>s)break}return r}allowsMark(r){return this.element.allowsMark(r)}findWrapping(r,i){let s=Object.create(null),u={match:this,via:null},x=[u];for(;x.length;){let v=x.shift(),P=v.match;if(P.matchType(r,i)){let F=[];for(let q=v;q!=u;q=q.via)F.push({type:q.match.expr.nodeType,attrs:q.match.attrs});return F.reverse()}let j=P.possibleContent();for(let F=0;F<j.length;F++){let{type:q,attrs:J}=j[F],re=q.computeAttrs(J);!q.isLeaf&&q.allowContentMatchInside&&!(q.name in s)&&(v==u||P.matchType(q,re)?.validEnd())&&(x.push({match:q.contentExpr.start(re),via:v}),s[q.name]=!0)}}}}class no{constructor(r){this.attr=r}}function ao(l,r){if(r.charAt(0)!=".")return JSON.parse(r);{let i=r.slice(1);if(!l.attrs[i])throw SyntaxError("Node type "+l.name+" has no attribute "+i);return new no(i)}}function dn(l,r,i){if(!(l instanceof no))return l;let s=r&&r[l.attr];if(s!==void 0)return s;let u=i.nodeType.getPresetAttrValues();return u?u[l.attr]:void 0}function ku(l,r,i,s){return r>=dn(l.min,i,s)&&r<=dn(l.max,i,s)}let Cy=function(l,r,i){var s=-1,u=l.length;r<0&&(r=-r>u?0:u+r),(i=i>u?u:i)<0&&(i+=u),u=r>i?0:i-r>>>0,r>>>=0;for(var x=Array(u);++s<u;)x[s]=l[s+r];return x},Iy=function(l,r,i){var s=l.length;return i=i===void 0?s:i,Cy(l,r,i)};var Py=RegExp("[\\u200d\uD800-\uDFFF\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let Lu=function(l){return Py.test(l)};var Du="\uD800-\uDFFF",so="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",oo="\uD83C[\uDFFB-\uDFFF]",Ru="[^"+Du+"]",Ou="(?:\uD83C[\uDDE6-\uDDFF]){2}",Nu="[\uD800-\uDBFF][\uDC00-\uDFFF]",ju="(?:"+so+"|"+oo+")?",Eu="[\\ufe0e\\ufe0f]?",Ty="(?:\\u200d(?:"+[Ru,Ou,Nu].join("|")+")"+Eu+ju+")*",ky=RegExp(oo+"(?="+oo+")|"+("(?:"+[Ru+so+"?",so,Ou,Nu,"["+Du+"]"].join("|"))+")"+(Eu+ju+Ty),"g");let Ly=function(l,r){for(var i=-1,s=l==null?0:l.length,u=Array(s);++i<s;)u[i]=r(l[i],i,l);return u};var pn=Array.isArray,Vu=Ke?Ke.prototype:void 0,Bu=Vu?Vu.toString:void 0;let Dy=function l(r){if(typeof r=="string")return r;if(pn(r))return Ly(r,l)+"";if(Ee(r))return Bu?Bu.call(r):"";var i=r+"";return i=="0"&&1/r==-1/0?"-0":i},lo=function(l){return l==null?"":Dy(l)},Xr=function(l){var r,i=Lu(l=lo(l))?Lu(r=l)?r.match(ky)||[]:r.split(""):void 0,s=i?i[0]:l.charAt(0),u=i?Iy(i,1).join(""):l.slice(1);return s.toUpperCase()+u};class Ry{compile(){let r=this.spec;this.name=r.name;let i=this.name.replace(/_[a-zA-Z]/,s=>s[1].toUpperCase());0>i.indexOf("_")&&(this["is"+Xr(i)]=!0),this.state_map=new py,this.nodeSpec=X.from(r.nodes),this.groupSpec=X.from(r.groups),this.marks=Rr.compile(this,r.marks),this.attr_marks=Rr.compile(this,r.attr_marks),this.nodes=Zr.compile(this.nodeSpec,this),this.groups=this.compileGroups(this.groupSpec,this),this.parsers=r.parsers??{},this.version=this.nodes.doc.attrs.schema.getValue(),R(this.nodes,function(s,u){if(u in this.marks||u in this.attr_marks)throw RangeError(`Type name (${u}) can not be both a node and a mark`);s.initContentExpression(io.parse(s,this.nodeSpec.get(u).content||"",this.nodeSpec))},this)}compileGroups(r,i){let s=Object.create(null);return r.forEach(function(u,x){s[u]=x.map(function(v){let P=i.nodeType(v);return(P.group||(P.group=[])).push(u),P})}),s}node(r,i,s,u,x){if(typeof r=="string")r=this.nodeType(r);else if(r instanceof Zr){if(r.schema!=this)throw RangeError("Node type from different schema used ("+r.name+")")}else throw RangeError("Invalid node type: "+r);let v=r.create(i,s,u,x||"check");if(!v)throw RangeError(`Invalid content for node ${r.name}`);return v}inline(r,i,s){return this.node(r,i,null,s)}text(r,i){return this.nodeType("text").create(null,r,i)}nodeFrom(r,i){return r instanceof pr?r:Array.isArray(r)?this.node(r[0],r[1],r[0]==="text"?r[3]:this.nodesFrom(r.slice(3),i),this.marksFrom(r[2]),i):this.node(r.type,r.attrs,r.type==="text"?r.text:this.nodesFrom(r.content,i),this.marksFrom(r.marks),i)}nodesFrom(r,i){return xt.from(r&&r.length?r.reduce((s,u)=>(u&&s.push(this.nodeFrom(u,i)),s),[]):null)}}function zu(l,r){return r?K(r,(i,s,u)=>{var x;if((x=s)&&typeof x=="function"&&!(x===Rr||x.prototype instanceof Rr)){let P=l.find(j=>{let[F]=j;return F===u})?.[1];if(!P)throw Error(`Failed to merge mark item spec by function without base spec: ${u}`);s=s(P,l)}let v=i.findIndex(P=>{let[j]=P;return j===u});return s==null?v>=0&&i.splice(v,1):v>=0?i[v]=[u,s]:i.push([u,s]),i},l.slice()):l}let ho=Object.create(null);function ki(l,r,i,s,u,x,v){if(r.type.isTextblock)return uo.getSelectionType("text").create(l,u);typeof v!="object"&&(v={text_only:!!v});let{text_only:P,hidden_cell:j}=v;for(let F=s-+(x<0),q=x<0?-1:r.childCount;F!==q;F+=x){let J=r.child(F);if(J.type.isLeaf){if(!P&&J.type.selectable)return uo.getSelectionType("node").create(l,u-(x<0?J.nodeSize:0))}else{let re;if(J.type.isTableCell&&J.state.display===!1){if(j!=="skip"){let te=l.resolve(i-1),{node:ie,offset:de,row:ce,col_span:xe}=te.parent.getDisplayCellData(te.index(),F);if(x<0||ce!==te.index()&&xe!==r.childCount){let we=te.start()+de+1;re=ki(l,ie,we,x<0?J.childCount:0,we+(x<0?ie.content.size:0),x,v)}}}else J.type.isStyleEditor||(re=ki(l,J,u-(x<0?J.nodeSize:0)+1,x<0?J.childCount:0,u+x,x,v));if(re)return re}u+=J.nodeSize*x}return null}class uo{getRange(){return[this.from,this.to]}toJSON(){return{type:this.selectionName,range:this.getRange()}}static fromJSON(r,i,s){return this.getSelectionType(i.type).create(r,i.range[0],i.range[1],s)}static registerJSONType(r,i){if(r in ho)throw RangeError(`Duplicate use of SelectionRange JSON name ${r}.`);return ho[r]=i,i.prototype.selectionName=r,i}static getSelectionType(r){return ho[r]}map(r,i,s){return this.constructor.fromJSON(r,this.constructor.mapJSON(this.toJSON(),i),s)}static mapRange(r,i){throw Error("Implement this function.")}static mapJSON(r,i){return this.getSelectionType(r.type)._mapJSON(r,i)}static _mapJSON(r,i){return{...r,range:this.mapRange(r.range,i)}}toMultiSelection(r){return k()}static findFrom(r,i,s){if(r.parent.isTextblock)return this.getSelectionType("text").createResolved(r);i=V(i);let u=r.doc;if(r.atNodeBoundary){let v=i<0?r.index()>0?r.parent.child(r.index()-1):null:r.self;if(v&&!v.type.canSelectionLeave)return ki(u,v,r.pos-(i<0?v.nodeSize:0)+1,i<0?v.childCount:0,r.pos+i,i,s)}let x=0;for(let v=r.depth;v>=0;--v){let P=r.node(v),j=i<0?r.before(v+1):r.after(v+1),F=ki(u,P,r.start(v),r.index(v)+x,j,i,s);if(F)return F;if(P.type.canSelectionLeave===!1)return null;x=i<0?0:1}}static findNear(r,i,s,u){i===void 0&&(i=1);let x=this.findFrom(r,i,s)||this.findFrom(r,-i,s)||(u?null:this.findAtBoundary(r.doc,i,s));if(!x)throw RangeError("Searching for selection in invalid document "+r.node(0));return x}static findRange(r,i){i===void 0&&(i=r);let s=r.pos===i.pos;return r=this.findNear(r,1,!0).$from,(s||(i=this.findNear(i,-1,!0).$to).pos<r.pos)&&(i=r),this.getSelectionType("text").createResolved(r,i)}static findAtBoundary(r,i,s){return i<0?this.findAtEnd(r,s):this.findAtStart(r,s)}static findAtStart(r,i){return ki(r,r,0,0,0,1,i)}static findAtEnd(r,i){return ki(r,r,0,r.childCount,r.content.size,-1,i)}}class St extends uo{constructor(r,i){super(),this.$from=r,this.$to=i}get isSelection(){return!0}get isMultiSelection(){return!1}get from(){return this.$from.pos}get to(){return this.$to.pos}get empty(){return this.from===this.to}get root(){return this.$from.root}get doc(){return this.root}get schema(){return this.root.schema}static getSelfPropertyName(){}is(r){return ia(this.constructor,r)}textBetween(r){return this.root.textBetween(this.from,this.to,r)}containTextBetween(r){return this.root.containTextBetween(this.from,this.to,r)}getMarks(r){return this.$from.getMarks({...r,bias:this.empty?-1:1})}getExpandedRange(){return{$from:this.$from,$to:this.$to}}_eq(r,i){return r instanceof this.constructor&&this.$from[i](r.$from)&&this.$to[i](r.$to)}eq(r){return this._eq(r,"eq")}eqChanged(r){return this._eq(r,"eqChanged")}eqChangedLoose(r){return this._eq(r,"eqChangedLoose")}commonDepth(){return this.$from.commonDepth(this.$to)}commonNode(){return this.$from.commonNode(this.$to)}ensureSelection(r){return this.toMultiSelection(r)}static checkAvailable(r){throw Error("Override me.")}static create(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];throw Error("Override me.")}static createResolved(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];throw Error("Override me.")}}class or extends St{constructor(r,i=r){let s=r.pos>i.pos;super(s?i:r,s?r:i),this.$anchor=r,this.$head=i}static getSelfPropertyName(){return"Text"}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get inverted(){return this.anchor>this.head}getSidePos(r){switch(r){case"from":return this.$from;case"to":return this.$to;case"head":return this.$head;case"anchor":return this.$anchor;default:throw RangeError(`Invalid side: ${r}`)}}isSpanningTextblock(){return this.$from.before()!==this.$to.before()}collapse(r){return r===void 0&&(r="head"),this.empty?this:new this.constructor(this.getSidePos(r))}invert(){return this.empty?this:new this.constructor(this.$head,this.$anchor)}containPos(r,i){let s=i?.bias??0,{$from:{pos:u},$to:{pos:x}}=i?.useExpandedRange?this.getExpandedRange():this;return(r>u||r===u&&s>=0)&&(r<x||r===x&&s<=0)}getExpandedRange(){let{$from:r,$to:i}=this,s={endDepth:this.commonDepth()+1},u=r.findDepth("selectionExtendable",s),x=i.findDepth("selectionExtendable",s);return u&&(r=r.shrink(u-1)),x&&(i=i.shrink(x-1,!0)),{$from:r,$to:i}}expand(r){r===void 0&&(r=0);let{$from:i,$to:s}=this.getExpandedRange(),u=this.inverted,x=r<=0?u?s:i:this.$anchor,v=r>=0?u?i:s:this.$head,P=x.pos===this.anchor?x:or.findFrom(x,u?1:-1)?.$from??x,j=v.pos===this.head?v:or.findFrom(v,u?-1:1)?.$from??v;return P.pos===this.anchor&&j.pos===this.head?this:this.constructor.createResolved(P,j,!0)||this}_eq(r,i){return r instanceof this.constructor&&this.inverted===r.inverted&&this.to-this.from==r.to-r.from&&this.$from[i](r.$from)}getRange(){return[this.anchor,this.head]}static mapRange(r,i){return[i.map(r[0]),i.map(r[1])]}static checkAvailable(r){return!!r.parent.isTextblock}static create(r,i,s,u){return this.createResolved(i==null?null:r.resolve(i),s==null?null:r.resolve(s),u)}static createResolved(r,i,s){if(!r&&!i)throw Error("One should give at least `anchor` or `head`.");return r||(r=i),i||(i=r),this.checkAvailable(i)?this.checkAvailable(r)?new this(r,i):s?null:new this(i):s?null:St.findNear(i,1,{text_only:!0})}}St.registerJSONType("text",or);class gr extends St{constructor(r){super(r,r.plusOne()),this.node=r.nodeAfter}static getSelfPropertyName(){return"Node"}_eq(r,i){return r instanceof this.constructor&&this.$from[i](r.$from)}containPos(r,i){let s=i?.bias??0;return(r>this.from||r===this.from&&s>=0)&&r<this.to}static mapRange(r,i){if(r[1]<0)return[i.mapNode(r[0],1),-1];{let s=i.mapNodeRange(r[0],r[1]);return[s.from,s.deleted?-1:s.to]}}static checkAvailable(r){let i=r.self;return!!(i&&i.type.selectable)}static create(r,i,s,u){let x=r.resolve(i);return this.checkAvailable(x)&&(s==null||s===i+x.self.nodeSize)?new this(x):u?null:St.findNear(x)}static createResolved(r,i){return this.checkAvailable(r)?new this(r):i?null:St.findNear(r)}}St.registerJSONType("node",gr);let co=Object.create(null);class Oy{get isSelection(){return!1}get isMultiSelection(){return!0}get supportMulti(){return!1}get copyable(){return!this.selection().empty}get pastable(){return!0}get insideEditor(){return!0}get typable(){return!0}get spellCheckable(){return!0}get selectionIndex(){return this.selections.length-1}get length(){return this.selections.length}get empty(){return this.length===0}get single(){return this.length===1}get multi(){return this.length>1}findEditor(){if(!this.insideEditor)throw Error("Try to find editor from multi-selection which is not inside an editor.");let r=this.$from(),i=r.findDepth("ContentEditable");return isNaN(i)?null:r.shrink(i-1)}_insert(r){let i=this.index(r),s=this.selections.slice();return i%1==0?s.length>1&&s.splice(i,1):s.push(r),new this.constructor(s,this.defaultOptions)}insert(r){return this.supportMulti&&this.constructor.checkSelectionAvailable(r)?this._insert(r):r.toMultiSelection(this.defaultOptions)}$from(r){let i=this.selection(r);return i&&i.$from}$to(r){let i=this.selection(r);return i&&i.$to}from(r){let i=this.selection(r);return i&&i.from}to(r){let i=this.selection(r);return i&&i.to}index(r){for(let i=0;i<this.selections.length;++i)if(r.eq(this.selections[i]))return i;return-.5}has(r){return this.index(r)%1==0}forEach(r,i,s){for(let u=0,x=this.selections.length;u<x;++u){let v=r.call(i,this.selections[u],u);if(s&&v!=null)return v}}eqType(r){return r instanceof this.constructor}_eq(r,i){if(!this.eqType(r)||this.selections.length!==r.selections.length)return!1;for(let s=this.selections.length-1;s>=0;--s)if(!this.selections[s][i](r.selections[s]))return!1;return!0}eq(r){return this._eq(r,"eq")}eqChanged(r){return this._eq(r,"eqChanged")}eqChangedLoose(r){return this._eq(r,"eqChangedLoose")}toJSON(){let r=[];for(let i=0,s=this.selections.length;i<s;++i)r.push(this.selections[i].toJSON());return{type:this.selectionName,selections:r,options:this.defaultOptions}}static registerJSONType(r,i){if(r in co)throw RangeError(`Duplicate use of MultiSelection JSON name ${r}.`);return co[r]=i,i.prototype.selectionName=r,i}static getSelectionType(r){return co[r]}toMultiSelection(){return this}toResolvedPosArray(r,i){r===void 0&&(r=0),i===void 0&&(i=this.selections.length);let s=[];for(let u=r;u<i;++u)s.push(this.selections[u].$from);return s}}class Vt extends Oy{constructor(r,i){super(),this.ranges=r,this.$editor=this.insideEditor?this.findEditor():null}get rangeCount(){return this.ranges.length}get selections(){return this.ranges}get root(){return this.getRange().root}get doc(){return this.root}get schema(){return this.root.schema}get defaultOptions(){return null}static getSelfPropertyName(){}is(r){return ia(this.constructor,r)||!!this[`isMulti${r}Selection`]}getResolvedEditor(){return this.$editor}getRanges(){return this.ranges}getRange(r){return this.ranges[r??this.selectionIndex]}selection(r){return this.getRange(r)}getTypableSelection(){return this.typable?this:null}containPos(r,i){return this.getRanges().some(s=>s.containPos(r,i))}contentToSlice(){return null}contentToJSON(r){return null}static fromJSON(r,i,s){s===void 0&&(s=!1);let u=[];for(let v of i.selections){let P=St.fromJSON(r,v,!0);P&&u.push(P)}let x=this.getSelectionType(i.type);return u.length?x.fromJSONSucc(r,i,u):s?null:x.fromJSONFailed(r,i)}static fromJSONSucc(r,i,s){return this.createSelected(s,!0,i.options)||this.fromJSONFailed(r,i)}static fromJSONFailed(r,i){throw Error("Implement me.")}map(r,i,s){let u=this.constructor;return u.fromJSON(r,u.mapJSON(this.toJSON(),i),s)}static mapJSON(r,i){return this.getSelectionType(r.type)._mapJSON(r,i)}static _mapJSON(r,i){return{...r,selections:r.selections.map(s=>St.mapJSON(s,i))}}ensureSelection(){return this}static checkSelectionAvailable(r){return!1}static filterSelections(r,i){return r.every(this.checkSelectionAvailable,this)?r:[]}static _createSelected(r,i){return r.length>1&&!this.prototype.supportMulti&&(r=[r[r.length-1]]),i=Object.assign(Object.create(null),i),(r=this.filterSelections(r,i)).length?new this(r,i):null}static createSelected(r,i,s){let u=this._createSelected(r,s);return i||u?u:this.createAdapted(r,i,s)}static _createResolved(r,i){return null}static createResolved(r,i,s){let u=this._createResolved(r,s);return i||u?u:this.createAdapted(r,i,s)}static adaptResolvedPos(r){return null}static adaptTextSelection(r){let i=this.adaptResolvedPos(r.$head),s=this.adaptResolvedPos(r.$anchor);return i&&s?i.concat(s):i||s}static adaptNodeSelection(r){return this.adaptResolvedPos(r.$from)}static adaptSelection(r){return r.is("Text")?this.adaptTextSelection(r):this.adaptNodeSelection(r)}static adaptContent(r){return r instanceof dr?this.adaptResolvedPos(r):this.adaptSelection(r)}static _createAdapted(r,i){return null}static createAdapted(r,i,s){let u=this._createAdapted(r,s);if(i||u)return u;if(!r.length)throw Error("Given resolved pos array is empty.");let x=r[r.length-1];return x instanceof dr||(x=x.is("Text")?x.$head:x.$from),this.createFailed(x,s)}static createFailed(r,i){return r.doc.type.schema.name!=="presentation"||r.exists("ContentEditable")?St.findNear(r).toMultiSelection(i):this.getSelectionType("slide_content").createFailed(r,i)}static fromRange(r,i){throw Error("Implement me.")}}class Ny extends Vt{constructor(r,i){super(r,i),this.bias=this.ensureHeadBias(i&&i.bias)}get isMultiTextSelection(){return!0}get defaultOptions(){return{bias:this.bias}}getTypableSelection(){let r,i,s=this.getRange();if(s.empty)return this;let u=s.$from,x=s.$to;if(u.findNode("TableCell")===x.findNode("TableCell"))return this;let v=u.findDepth("Table",{dir:1});r=isNaN(v)?u:St.findFrom(u.shrink(v-1),-1,!0).$from;let P=x.findDepth("Table",{dir:1});return i=isNaN(P)?x:St.findFrom(x.shrink(P-1,!0),1,!0).$from,or.createResolved(r,i).toMultiSelection()}ensureHeadBias(r){let i=this.getRange();r=r==null?i.empty||i.inverted?1:-1:r<0?-1:1;let s=i.$head;return r<0&&s.parentOffset!==0&&s.atNodeBoundary&&s.parent.child(s.index()-1).is("HardBreak")&&(r=1),r}$anchor(r){let i=this.getRange(r);return i&&i.$anchor}$head(r){let i=this.getRange(r);return i&&i.$head}anchor(r){let i=this.getRange(r);return i&&i.anchor}head(r){let i=this.getRange(r);return i&&i.head}static fromJSONFailed(r,i){return this.createFailed(r.resolve(i.selections[i.selections.length-1].range[1]),i.options)}}class fa extends Ny{replaceRange(r){return r&&r!==this.getRange()&&this.constructor.createSelected([r],!0)||this}collapse(){return this.replaceRange(this.getRange().collapse())}invert(){return this.replaceRange(this.getRange().invert())}expand(r){return this.replaceRange(this.getRange().expand(r))}contentToSlice(){let r=this.getRange();if(r.empty)return ot.empty;let{$from:i,$to:s}=r.getExpandedRange(),u=i.pos;for(let j=i.depth;j>0&&i.end(j)===u;--j)++u;let x=s.pos,v=i.root.slice(u,x),P=v.possibleParent;if(P?.is("Textblock")){let j;if(i.parent===s.parent&&s.pos-i.pos!==i.parent.content.size)for(let F of(j={},P.type.listAttrsList))j[F]=null;v=ot.from(P.copy(v.content,j),v.openLeft+1,v.openRight+1)}return v}static checkSelectionAvailable(r){return r.is("Text")}static filterSelections(r,i){return super.filterSelections(r,i)}static _createSelected(r,i){return super._createSelected(r,i)}static createSelected(r,i,s){return super.createSelected(r,i,s)}static _createResolved(r,i){let s=[];for(let u of r){let x=or.createResolved(u,u,!0);if(!x)return null;s.push(x)}return this._createSelected(s,i)}static adaptResolvedPos(r){let i=St.findNear(r,1,void 0,!0);return i?[i]:null}static _createAdapted(r,i){return this._createSelected(r.reduce((s,u)=>{let x=this.adaptContent(u);return x&&x.forEach(v=>{let P;(P=v instanceof dr?or.createResolved(v,null,!0):v)&&s.push(P)}),s},[]),i)}}Vt.registerJSONType("text",fa);let Fu=l=>class extends l{get copyable(){return!1}get pastable(){return!1}get typable(){return!1}get spellCheckable(){return!1}getTypableSelection(){return null}};class Gu extends Fu(fa){get isMultiHolderTextSelection(){return!0}static checkSelectionAvailable(r){return!!(super.checkSelectionAvailable(r)&&r.$from.parent.type.isHolderParagraph&&r.$to.parent.type.isHolderParagraph)}}Vt.registerJSONType("holder_text",Gu);class Hu extends fa{get isMultiCustomTextSelection(){return!0}get copyable(){return!1}get pastable(){return!1}get typable(){return!1}get spellCheckable(){return!1}getTypableSelection(){return null}static checkSelectionAvailable(r){return!!(super.checkSelectionAvailable(r)&&r.$from.parent.type.isStyleParagraph)}static filterSelections(r,i){return super.filterSelections(r,i).map(s=>s.collapse())}}Vt.registerJSONType("style_text",Hu);class jy extends Vt{indexPos(r){for(let i=0;i<this.ranges.length;++i)if(this.ranges[i].from===r)return i;return-.5}indexNode(r){for(let i=0;i<this.ranges.length;++i)if(this.ranges[i].node===r)return i;return-.5}hasPos(r){return this.indexPos(r)%1==0}hasNode(r){return this.indexNode(r)%1==0}node(r){let i=this.getRange(r);return i&&i.node}resolvedPos(r){return this.$from(r)}pos(r){return this.from(r)}static fromJSONFailed(r,i){return this.createFailed(r.resolve(i.selections[i.selections.length-1].range[0]),i.options)}getNodePosArr(){let r=[];for(let i of this.ranges)r.push(i.from);return r}toNodeArray(r,i){r===void 0&&(r=0),i===void 0&&(i=this.ranges.length);let s=[];for(let u=r;u<i;++u)s.push(this.ranges[u].node);return s}toPosArray(r,i){r===void 0&&(r=0),i===void 0&&(i=this.ranges.length);let s=[];for(let u=r;u<i;++u)s.push(this.ranges[u].from);return s}}class Li extends jy{get isMultiNodeSelection(){return!0}get copyable(){return this.getRange().node.type.copyable}contentToSlice(){let r=this.ranges.slice().sort((i,s)=>i.from-s.from).map(i=>i.node);return ot.from(r)}contentToJSON(r){let i=this.contentToSlice();return i&&i.toJSON(r)}static checkNode(r){return!0}static checkSelectionAvailable(r){return r.is("Node")&&this.checkNode(r.node)}static filterSelections(r,i){let s=super.filterSelections(r,i),u=s.length;if(u>1){let x=[],v=Object.create(null);for(let P=u-1;P>=0;--P){let j=s[P],F=j.from;v[F]||(v[F]=!0,x.push(j))}x.reverse(),s=x}return s}static _createSelected(r,i){return super._createSelected(r,i)}static _createResolved(r,i){let s=[];for(let u of r){let x=gr.createResolved(u,!0);if(!x)return null;s.push(x)}return this._createSelected(s,i)}static adaptResolvedPos(r){return r.self?[r]:null}static _createAdapted(r,i){return this._createSelected(r.reduce((s,u)=>{let x=this.adaptContent(u);return x&&x.forEach(v=>{let P;(P=v instanceof dr?gr.createResolved(v,!0):v)&&s.push(P)}),s},[]),i)}static create2(r,i,s,u){return this.createResolved(i.map(r.resolve,r),s,u)}}Vt.registerJSONType("node",Li);class po extends Li{get isMultiInlineNodeSelection(){return!0}get typable(){return this.schema.name==="document"&&this.getRange().node.is("Shape")}getTypableSelection(){if(!this.typable)return null;let r=St.findFrom(this.root.resolve(this.getRange().to-1),-1,!0);if(!r)return null;let i=Vt.fromRange(r);return i.is("Text")?i:null}static checkNode(r){return!!r.is("Inline")}static checkSelectionAvailable(r){return super.checkSelectionAvailable(r)&&!r.$from.parent.type.isInvisible}}Vt.registerJSONType("inline_node",po);class Wu extends po{get isMultiPageNumberSelection(){return!0}get copyable(){return!1}get pastable(){return!1}get typable(){return!1}get spellCheckable(){return!1}getTypableSelection(){return null}static checkTextSelection(r){return!!(r.is("Text")&&r.$from.parent.type.isPageNumberBlock&&r.$to.parent.type.isPageNumberBlock)}static checkSelectionAvailable(r){return super.checkSelectionAvailable(r)||this.checkTextSelection(r)}static checkNode(r){return r.type.isPageNumberText}static filterSelections(r,i){if(r.length===1){let s=r[0];this.checkTextSelection(s)&&(r=[gr.createResolved(s.$from.minusOne())])}return super.filterSelections(r,i)}static _createAdapted(r,i){return this.getSelectionType("text")._createAdapted.apply(this,arguments)}}Vt.registerJSONType("page_num",Wu);class qu extends Li{get isMultiBreakGraphSelection(){return!0}get pastable(){return!1}get spellCheckable(){return!1}get insideEditor(){return!1}get typable(){return this.getRange().node.is("Shape")}getTypableSelection(){if(!this.typable)return null;let r=St.findFrom(this.root.resolve(this.getRange().to-1),-1,!0);if(!r)return null;let i=Vt.fromRange(r);return i.is("Text")?i:null}static checkNode(r){return!!r.is("Inline")}static checkSelectionAvailable(r){return super.checkSelectionAvailable(r)&&!!r.$from.parent.type.isInvisible}}Vt.registerJSONType("break_graph",qu);class go extends Li{constructor(r,i){super(r,i),this.whole=!!(i&&i.whole)}get isMultiListSelection(){return!0}get copyable(){return!1}get pastable(){return!1}get defaultOptions(){return{whole:this.whole}}get listId(){return this.getRange().node.getAttrValue("listId")||""}get listLevel(){return this.getRange().node.getAttrValue("listLevel")||0}get listConfig(){return this.getRange().node.state.list_config}get listConfigs(){return this.getRange().node.state.list_configs}getListInfo(){let r=this.getRange().node;return{id:r.getAttrValue("listId")||"",level:r.getAttrValue("listLevel")||0,type:r.state.list_config.type,config:r.state.list_config}}getTypableSelection(){return St.findFrom(this.getRange().$from,1)?.toMultiSelection()??null}forEachList(r,i){if(this.whole){let s=this.getResolvedEditor();if(s){let{id:u,level:x}=this.getListInfo();s.self.descendants((v,P)=>{if(this.constructor.checkNode(v)&&v.getAttrValue("listId")===u&&v.getAttrValue("listLevel")===x)return!!r.call(i,v,P)},{start:s.pos+1,preset:"editor"})}}else{let s=this.getRange();r.call(i,s.node,s.from)}}static checkNode(r){return r.type.is("ListBlock")&&r.type.isValidListBlock(r)}static adaptResolvedPos(r){let i=-1;return r.forEach((s,u)=>!!u.is("ContentEditable")||(this.checkNode(u)?(i=s,!0):void 0)),i>=0?[r.shrink(i-1)]:null}}Vt.registerJSONType("list",go);class Uu extends Fu(go){get isMultiHolderListSelection(){return!0}static checkSelectionAvailable(r){return!!(super.checkSelectionAvailable(r)&&r.$from.self.type.isHolderParagraph)}}Vt.registerJSONType("holder_list",Uu);class gn extends Li{get isSpecial(){return!0}get supportMulti(){return!0}get pastable(){return!0}get insideEditor(){return!1}get typable(){return!1}getTypableSelection(){return null}static create(r,i,s){return this.createAdapted(r,i,s)}}Vt.registerJSONType("special_node",gn);class Di{constructor(){this.index_map=Object.create(null),this.row_idx_min=void 0,this.row_idx_max=void 0,this.col_idx_min=void 0,this.col_idx_max=void 0}getAt(r,i){if(r in this.index_map&&i in this.index_map[r])return this.index_map[r][i]}setAt(r,i,s){r in this.index_map||(this.index_map[r]=Object.create(null)),this.index_map[r][i]=s,(isNaN(this.row_idx_min)||r<this.row_idx_min)&&(this.row_idx_min=r),(isNaN(this.row_idx_max)||r>this.row_idx_max)&&(this.row_idx_max=r),(isNaN(this.col_idx_min)||i<this.col_idx_min)&&(this.col_idx_min=i),(isNaN(this.col_idx_max)||i>this.col_idx_max)&&(this.col_idx_max=i)}setRange(r,i,s,u,x){for(let v=r;v<=i;++v)for(let P=s;P<=u;++P)this.setAt(v,P,x)}flattenToArray(){let r=[];return Object.keys(this.index_map).forEach(i=>{let s=Object.keys(this.index_map[i]),u=Number(i);s.forEach(x=>{r.push({row_index:u,col_index:Number(x),data:this.index_map[i][x]})})}),r}toPosArray(r){let i=[],s=r.findData("Table");if(!s)return i;let u=s.pos;return s.node.forEach((x,v,P)=>{if(!(P in this.index_map))return;let j=this.index_map[P];x.forEach((F,q,J)=>{J in j&&i.push(u+1+v+1+q)})}),i}toResolvedPosArray(r){let i=this.toPosArray(r),s=r.doc;return i.map(u=>s.resolve(u))}forEach(r,i,s){for(let u in this.index_map){let x=this.index_map[u];for(let v in u=Number(u),x){let P=r.call(i,u,Number(v),x[v]);if(s&&P!=null)return P}}}forEachCell(r,i,s,u){let x,v,P,j;return this.forEach(function(F,q,J){let re=r.maybeChild(F),te=re&&re.maybeChild(q);if(re&&te)return P===F?v+=re.sizeBetween(j,q):(v=(x=P==null?r.offsetAt(F):x+r.sizeBetween(P,F))+1+re.offsetAt(q),P=F),j=q,i.call(s,te,v,F,q,J)},this,u)}getRectRowSize(){return isNaN(this.row_idx_max)?0:this.row_idx_max-this.row_idx_min+1}getRectColSize(){return isNaN(this.col_idx_max)?0:this.col_idx_max-this.col_idx_min+1}getRect(){return{top:this.row_idx_min,bottom:this.row_idx_max,left:this.col_idx_min,right:this.col_idx_max}}}class Ey{constructor(r,i,s){let u=r[0].findDepth("Table");if(isNaN(u))throw RangeError("Given resolved pos does not inside table");this.$table=r[0].shrink(u-1);let x=this.getIndexRectInfo(this.$table,r,i,s);this.sel_rect=x.rect,this.anchor=x.anchor,this.head=x.head;let v=this.$table.self;this.raw_idx_store_=v.getRawIdxStoreByRect(this.sel_rect),this.display_idx_store_=v.getDisplayIdxStoreByRect(this.sel_rect),this.op_idx_store_=v.getOpIdxStoreByRect(this.sel_rect)}getRawResolvedPosArray(){return this.raw_resolved_pos_arr_||(this.raw_resolved_pos_arr_=this.raw_idx_store_.toResolvedPosArray(this.$table)),this.raw_resolved_pos_arr_}getDisplayResolvedPosArray(){return this.display_resolved_pos_arr_||(this.display_resolved_pos_arr_=this.display_idx_store_.toResolvedPosArray(this.$table)),this.display_resolved_pos_arr_}getOpResolvedPosArray(){return this.op_resolved_pos_arr_||(this.op_resolved_pos_arr_=this.op_idx_store_.toResolvedPosArray(this.$table)),this.op_resolved_pos_arr_}get mergedCellResolvedPosArray(){return this.getOpResolvedPosArray().filter(r=>{let i=r.self.state;return(i.view_colspan>1||i.view_rowspan>1)&&i.display})}get tableDoms(){return this.$table.self.dom}get cellDoms(){return this.getDisplayResolvedPosArray().map(r=>r.self.dom)}isSquare(){let r=Object.keys(this.op_idx_store_.index_map).map(s=>Number(s));if(!r.length)return!1;for(let s=1;s<r.length;s++)if(r[s-1]+1!==r[s])return!1;let i=Object.keys(this.op_idx_store_.index_map[r[0]]).map(s=>Number(s));for(let s=1;s<i.length;s++)if(i[s-1]+1!==i[s])return!1;for(let s=1;s<r.length;s++){let u=Object.keys(this.op_idx_store_.index_map[r[s]]).map(x=>Number(x));if(u.length!==i.length)return!1;for(let x=0;x<i.length;x++)if(u[x]!==i[x])return!1}return!0}isOnlyOneVisibleCell(){return this.getDisplayResolvedPosArray().length===1}isSingleRow(){return Object.keys(this.op_idx_store_).length===1}isSingleCol(){let r=Object.keys(this.op_idx_store_);if(r.length===0)return!1;let i=Object.keys(this.op_idx_store_[r[0]]);if(i.length!==1)return!1;let s=i[0];for(let u=1;u<r.length;u++){let x=Object.keys(this.op_idx_store_[r[u]]);if(x.length!==1||x[0]!==s)return!1}return!0}canBeMerged(){return this.isSquare()&&!this.isOnlyOneVisibleCell()}canBeUnmerged(){return this.mergedCellResolvedPosArray.length>0}getIndexRect(r){let i;for(let s of r){let u,x,v,P;u=v=s.index(),x=P=s.index(-1),i?(i.top=Math.min(i.top,x),i.bottom=Math.max(i.bottom,P),i.left=Math.min(i.left,u),i.right=Math.max(i.right,v)):i={left:u,top:x,right:v,bottom:P}}return i}getCornerIndex(r,i,s){return{row:i?r.bottom:r.top,col:s?r.right:r.left}}getAnchorIndex(r,i,s){return this.getCornerIndex(r,i<0,s<0)}getHeadIndex(r,i,s){return this.getCornerIndex(r,i>0,s>0)}getIndexRectInfo(r,i,s,u){let x=r.self,v=this.getIndexRect(i),P=this.getAnchorIndex(v,s,u),j=this.getHeadIndex(v,s,u);return P=x.getEnsuredCellIndex(P.row,P.col),j=x.getEnsuredCellIndex(j.row,j.col),v.top=Math.min(P.row,j.row),v.bottom=Math.max(P.row,j.row),v.left=Math.min(P.col,j.col),v.right=Math.max(P.col,j.col),{rect:v,anchor:P,head:j}}}class Vy extends gn{constructor(r,i){let s=V(i&&i.dir_col,!1,1),u=V(i&&i.dir_row,!1,1),x=new Ey(r.map(q=>q.$from),u,s);super(x.getRawResolvedPosArray().map(q=>gr.createResolved(q,!0)),i),this.dir_col=s,this.dir_row=u,this.helper_=x;let v=i&&i.anchor,P,{$from:j,$to:F}=this.anchorSelection();if(v!=null&&v>=j.pos&&v<F.pos){if(P=j.doc.resolve(v),!or.checkAvailable(P)){let q=St.findNear(P,1,!0).$from;q.pos<j.pos&&q.pos>=F.pos&&(q=St.findNear(P,-1,!0).$from),P=q}}else P=St.findNear(j,1,!0).$from;this.$anchor=P}get isMultiCellSelection(){return!0}get insideEditor(){return!0}get defaultOptions(){return{dir_col:this.dir_col,dir_row:this.dir_row,anchor:this.$anchor.pos}}get typable(){return!0}getTypableSelection(){let r=this.headIndex,i=this.$table;r=i.self.getDisplayCellIndex(r.row,r.col);let s=St.findFrom(i.extendIndex([r.row,r.col]),1,!0).$from,u=St.findFrom(i.extendIndex([r.row,r.col+1]),-1,!0).$to;return or.createResolved(s,u).toMultiSelection()}get minRow(){return this.helper_.sel_rect.top}get maxRow(){return this.helper_.sel_rect.bottom}get minCol(){return this.helper_.sel_rect.left}get maxCol(){return this.helper_.sel_rect.right}get anchorIndex(){return this.helper_.anchor}get headIndex(){return this.helper_.head}get $table(){return this.helper_.$table}anchorSelection(){return this.ranges.find((function(r){let i=r.$from;return i.index()===this.anchorIndex.col&&i.index(-1)===this.anchorIndex.row}).bind(this))}headSelection(){return this.ranges.find((function(r){let i=r.$from;return i.index()===this.headIndex.col&&i.index(-1)===this.headIndex.row}).bind(this))}canBeMerged(){return this.helper_.canBeMerged()}canBeUnmerged(){return this.helper_.canBeUnmerged()}canDeleteRow(){return this.helper_.$table.self.getRowSize()>this.helper_.op_idx_store_.getRectRowSize()}canDeleteCol(){return this.helper_.$table.self.getColSize()>this.helper_.op_idx_store_.getRectColSize()}getRawResolvedPosArray(){return this.helper_.getRawResolvedPosArray()}getDisplayResolvedPosArray(){return this.helper_.getDisplayResolvedPosArray()}getOpResolvedPosArray(){return this.helper_.getOpResolvedPosArray()}forEachCell(r,i,s){let u=this.$table.pos+1;return this.$table.self.forEachCell(this.minRow,this.maxRow,this.minCol,this.maxCol,function(x,v,P,j){return r.call(i,x,u+v,P,j)},this,s)}forEachDisplayCell(r,i,s){let u=this.$table.pos+1;return this.$table.self.forEachDisplayCell(this.minRow,this.maxRow,this.minCol,this.maxCol,function(x,v,P,j){return r.call(i,x,u+v,P,j)},this,s)}forEachOperateCell(r,i,s){let u=this.$table.pos+1;return this.$table.self.forEachOperateCell(this.minRow,this.maxRow,this.minCol,this.maxCol,function(x,v,P,j){return r.call(i,x,u+v,P,j)},this,s)}contentToSlice(){let r=this.helper_.$table.self,i=this.helper_.op_idx_store_,s=i.getRect(),u=[];r.forRange(s.top,s.bottom,(P,j,F)=>{let q=[];P.forRange(s.left,s.right,(J,re,te)=>{let ie;ie=i.getAt(F,te)?J:r.type.schema.nodes.table_cell.createAndFill(J.attrs),q.push(ie)},this),u.push(P.copy(xt.fromArray(q)))},this);let x=r.attrs.colgroup.slice(s.left,s.right+1),v=r.copy(xt.fromArray(u),{colgroup:x});return ot.from([v])}contentToJSON(){return null}static _mapJSON(r,i){if((r=super._mapJSON(r,i)).options&&r.options.anchor!=null){let s=he(r.options);s.anchor=i.map(r.options.anchor),r.options=s}return r}static checkSelectionAvailable(r){return super.checkSelectionAvailable(r)||this.checkTextSelection(r)}static checkTextSelection(r){if(!r||!(r instanceof or))return!1;let{$from:i,$to:s}=r,u=i.findDepth("TableCell");if(isNaN(u))return!1;let x=s.findDepth("TableCell");return!isNaN(x)&&i.node(u-2)===s.node(x-2)&&i.node(u)!==s.node(x)}static checkNode(r){return!!r.type.isTableCell}static filterSelections(r,i){if(r.length===1){let s=r[0];if(this.checkTextSelection(s)){let u=s.$anchor.shrink("TableCell"),x=s.$head.shrink("TableCell");r=[gr.createResolved(u,!0),gr.createResolved(x,!0)],i=Object.assign(i,{dir_col:x.index()>=u.index()?1:-1,dir_row:x.index(-1)>=u.index(-1)?1:-1,anchor:s.anchor})}}return r.some(s=>s.is("Text"))||(r=super.filterSelections(r,i)).length>1&&!this.checkSameTable(r)?[]:r}static checkSameTable(r){let i=r[0].$from.findData("Table");if(!i)return!1;let s=i.node,u=i.depth;return r.every(x=>x.$from.node(u)===s)}}class fo extends Vy{getResolvedTable(){return this.$table}getCellSelectionHelper(){return this.helper_}getDisplayCellsRange(){let{top:r,bottom:i,left:s,right:u}=this.getCellSelectionHelper().display_idx_store_.getRect();return{row:[r,i],col:[s,u]}}static adaptTextSelection(r){let i=r.$from.commonDepth(r.$to);if(i===0)return null;let s=r.$from.shrink(i-1),u=s.self;if(u&&(u.type.isTable||u.type.isTableRow)){let x=this.adaptResolvedPos(r.$head),v=this.adaptResolvedPos(r.$anchor);return x&&v?x.concat(v):x||v}return this.adaptResolvedPos(s)}static adaptResolvedPos(r){let i=r.self;if(i){if(i.type.schema.name==="presentation"&&(i.is("TableBox")?i=(r=r.extend(i.getTextBlockOffset()+1)).self:i.is("TableBlock")&&(i=(r=r.extend(0)).self)),i.is("Table")){let u=[];return i.forEachCell(null,null,null,null,(x,v,P,j)=>{u.push(r.extendIndex([P,j]))}),u}if(i.is("TableRow")){let u=[];return i.forEach((x,v,P)=>{u.push(r.extendIndex([P]))}),u}}let s=-1;return r.forEach((u,x)=>!!x.is("ContentEditable")||(x.is("TableCell")?(s=u,!0):void 0)),s>=0?[r.shrink(s-1)]:null}}Vt.registerJSONType("cell",fo);class By extends gn{forEachFloating(r,i,s){return this.forEach(function(u){let{node:x,from:v}=u,P=r.call(i,x,v);return s&&P!=null?P:x.type.isObjectGroup?x.forEachFloating(function(j,F){return r.call(i,j,v+1+F)},this,s):P},this,s)}forEachBox(r,i,s){return this.forEach(function(u){let{node:x,from:v}=u;return x.type.isObjectGroup?x.forEachBox(function(P,j){return r.call(i,P,v+1+j)},this,s):r.call(i,x,v)},this,s)}static checkNode(r){return!!r.type.isFloatingObject}static filterSelections(r,i){if((r=super.filterSelections(r,i)).length>1){if(!this.checkSameSlide(r))return[];r=this.filterSelectionsInsideGroup(r)}return r}static checkSameSlide(r){let i=r[0].$from.findData("AbstractSlide");if(!i)return!1;let s=i.pos,u=s+i.node.nodeSize;return r.every(x=>x.from>s&&x.to<u)}static filterSelectionsInsideGroup(r,i){let s,u,x=r[0].$from.findDepth("ContentContainer")+1,v=[],P=r.length;for(let j=0;j<P;++j){let F=r[j].$from,q=F.depth+1!==x;v.push(q);let J=!!q&&F.before(x);s==null?s=J:s!==J&&(u=!0)}return u?super.filterSelections(r.map((j,F)=>v[F]?gr.createResolved(j.$from.shrink(x-1),!0):j),i):s===!1?r:this.flattenGroupSelections(r,i)}static flattenGroupSelections(r,i){let s=[];for(let u=0,x=r.length;u<x;++u)this._flattenGroupSelections(s,r[u]);return super.filterSelections(s,i)}static _flattenGroupSelections(r,i){let s=i.node;if(s.type.isObjectGroup&&i.$from.parent.type.isObjectGroup){let u=i.$from;s.forEachBox(function(x,v,P){r.push(gr.createResolved(u.extend(v),!0))})}else r.push(i)}static adaptResolvedPos(r){return(r=r.maybeShrink("FloatingObject"))?[r]:null}static createFailed(r,i){return this.getSelectionType("slide_content").createFailed(r,i)}}class $u extends By{get isMultiFloatingSelection(){return!0}get typable(){if(this.single){let r=this.getRange().node.type;return r.isWithTextBox&&!r.isMasterHolder&&!r.isLayoutHolder}return!1}static get type(){return"floating_object"}getTypableSelection(){let r;if(!this.typable)return null;let i=this.getRange(),s=i.node;if(s.type.isTableBox){let u=s.getTextBlockData(),x=i.doc.resolve(i.from+1+u.offset+1+u.node.firstChild.getCellOffset(0,0));r=St.findFrom(x.plusOne(),-1,!0)}else r=St.findFrom(i.$to,-1,!0);return r?r.toMultiSelection():null}*iterateFloatings(){for(let r of this.getRanges()){let{node:i,from:s}=r;yield*function*u(x,v){if(yield{node:x,pos:v},x.is("ObjectGroup"))for(let{node:P,offset:j}of x.iterateChildren())yield*u(P,v+1+j)}(i,s)}}contentToJSON(r){return super.contentToJSON({...r,use_abs_transform:!0})}}Vt.registerJSONType("floating",$u);class ya extends gn{constructor(r,i){if(super(r,i),!this.empty&&!(i&&i.skip_master_tracking)){let s=this.resolvedPos(),u=s.self,x=s.doc;if(u.type.isLayout||u.type.isSlide){let v=x.getMasterOffset(u.state.master_id);isNaN(v)||(this.active_master=gr.create(x,v))}if(u.type.isSlide){let v=x.getLayoutOffset(u.state.master_id,u.state.layout_id);isNaN(v)||(this.active_layout=gr.create(x,v))}}}get isMultiSlideSelection(){return!0}static get type(){return"slide"}get activeMasterSelection(){return this.active_master}get activeLayoutSelection(){return this.active_layout}findMasterSelection(){if("_master_sel"in this)return this._master_sel;let r=this.node();return this._master_sel=r.type.isSlide||r.type.isLayout?this.constructor.createAdapted([this.doc.resolve(this.doc.getMasterOffset(r.state.master_id))],!0):null}findLayoutSelection(){if("_layout_sel"in this)return this._layout_sel;let r=this.node();return this._layout_sel=r.type.isSlide?this.constructor.createAdapted([this.doc.resolve(this.doc.getLayoutOffset(r.state.master_id,r.state.layout_id))],!0):null}static checkNode(r){return!!r.type.isAbstractSlide}static filterSelections(r,i){if((r=super.filterSelections(r,i)).length>1){if(!this.checkSameSlideContainer(r))return[];let s=r[r.length-1];s.node.type.isMaster&&(r=[s])}return r}static checkSameSlideContainer(r){let i=r[0].$from.findData("AbstractSlideContainer");if(!i)return!1;let s=i.pos,u=s+i.node.nodeSize;return r.every(x=>x.from>s&&x.to<u)}static adaptResolvedPos(r){return r.parent.type.isAbstractSlideContainer&&!r.self?null:(r=r.maybeShrink("AbstractSlide"))?[r]:null}static createFailed(r,i){let s=r.findData("AbstractSlideContainer");if(!s)return St.findNear(r).toMultiSelection(i);let u=s.node.childCount;if(u===0)return this.getSelectionType("slide_container").createAdapted([r],!1,i);let x=s.depth;return x>r.depth?this.findFirstSlide(r.shrink(x-1).extendIndex(0),i):r.index(x)<u?this.findNextSlide(r.shrink(x),i):this.findLastSlide(r.shrink(x-1).extendIndex(u-1),i)}static findNextSlide(r,i){return this.createResolved([r],!1,i)}static findFirstSlide(r,i){return this.createResolved([r],!1,i)}static findLastSlide(r,i){return this.createResolved([r],!1,i)}}Vt.registerJSONType("slide",ya);let zy=Te.create({deep:{id:Te.id,slideId:Te.optional,title:Te.optional}});function yo(l,r){return{...l,slideId:l.slideId??null,indexStarted:r,contentLength:0}}Te.createOptional({empty_value:m,normalizer:Te.createArrayNormalizer(zy)}),Vt.registerJSONType("slide_separator",class extends ya{constructor(l,r){super(l,r),this.bias=0>(r&&r.bias)?-1:1,this.section=null,this.initCorrespondingSection(r?.sectionId)}get isMultiSlideSeparatorSelection(){return!0}get defaultOptions(){return{bias:this.bias,sectionId:this.sectionId}}get supportMulti(){return!1}get copyable(){return!1}get separatorIndex(){return this.showIndex+.5*this.showDirection}get showIndex(){return this.resolvedPos().index()}get showDirection(){return this.section?.dir??this.bias}get sectionId(){return this.section?.id??null}eqType(l){return l.isMultiSlideSelection}initCorrespondingSection(l){var r;if(l==null||this.node().type.isMaster||this.node().type.isLayout)return;let i=function(s,u){var x,v;let P;if(u.length===0)return[];let j=u.map(te=>({...te}));x=s[0],(v=j).length!==0&&(v.some(te=>te.slideId===x)||(v[0].slideId=x));let{slideIdToSettingIndexGetter:F,isSectionEmptyChecker:q}=function(te,ie){let de=function(xe){let we=new Set(xe);return Me=>{let{slideId:Se}=Me;return!(Se&&we.has(Se))}}(te),ce=new Map;return ie.forEach((xe,we)=>{let Me=xe.slideId;if(Me!==void 0){if(ce.has(Me)||de(xe)){xe.slideId=void 0;return}ce.set(Me,we)}}),{isSectionEmptyChecker:de,slideIdToSettingIndexGetter:xe=>ce.get(xe)}}(s,j),J=[],re=0;s.forEach((te,ie)=>{let de=F(te);if(de===void 0){if(!P)return;++P.contentLength;return}for(let ce=re;ce<de;++ce)if(q(j[ce])){J.push(yo(j[ce],ie));continue}re=Math.max(re,de),P=yo(j[de],ie),J.push(P),++P.contentLength});for(let te=re+1;te<j.length;++te)J.push(yo(j[te],s.length));return J}((r=this.doc).queryAll("/slide_container/slide").map(s=>{let{node:u}=s;return u.getAttrValue("id")}),r.queryChildNode("settings",!0).getAttrValue("sections")??[]).find(s=>s.id===l);this.updateRelatedSection(i??null)}updateRelatedSection(l){if(!l){this.section&&(this.bias=this.section.dir,this.section=null);return}let r=this.getRange().$from.index(),i=l.indexStarted-r;i===0?this.section={id:l.id,dir:-1}:i===1?this.section={id:l.id,dir:1}:(this.section=null,this.bias=i>0?1:-1)}static checkNode(l){return!!(l.type.isLayout||l.type.isSlide)}static findNextSlide(l,r){return this.createResolved([l],!1,Object.assign(Object.create(null),r,{bias:-1}))}static findFirstSlide(l,r){return this.createResolved([l],!1,Object.assign(Object.create(null),r,{bias:1}))}static findLastSlide(l,r){return this.createResolved([l],!1,Object.assign(Object.create(null),r,{bias:1}))}}),Vt.registerJSONType("slide_content",class extends ya{get isMultiSlideContentSelection(){return!0}get supportMulti(){return!1}get copyable(){return!1}eqType(l){return l.isMultiSlideSelection}});class Zu extends gn{get isMultiSlideContainerSelection(){return!0}get supportMulti(){return!1}get copyable(){return!1}static fromJSONSucc(r,i,s){let u=s[s.length-1];return this.checkSelectionAvailable(u)&&u.node.childCount?this.getSelectionType("slide").createResolved([u.$from.extendIndex([0])],!1,i.options):super.fromJSONSucc(r,i,s)}static checkNode(r){return!!r.type.isSlideContainer}static adaptResolvedPos(r){return(r=r.maybeShrink("SlideContainer"))?[r]:null}static createFailed(r,i){return St.findNear(r).toMultiSelection(i)}}Vt.registerJSONType("slide_container",Zu);let xo=[fo,Uu,Gu,Hu,Wu,po,fa,go,$u,ya,Zu,qu,Li];function Ju(l,r){return function(i){Array.isArray(i)&&(i=i[0]);for(let s=0;s<xo.length;++s)if(xo[s].checkSelectionAvailable(i))return xo[s];return Vt}(l).createSelected([l],!0,r)}St.prototype.toMultiSelection=function(l){return Ju(this,l)},Vt.fromRange=function(l,r){return Ju(l,r)};class Fy{parse(r){return this._parse(r),{node:this.finish(null),custom:this.finishCustom()}}parseContext(r){this._parse(r);let i=Math.min(this.root.openDepth,this.top.depth),s=this.finish(i),u=this.sliceFrom,x=s.content.size-i,v=s.resolve(u);for(let P=v.depth;P>=0&&u<x&&u===v.end(P);--P)++u;return{slice:s.slice(u,x),custom:this.finishCustom()}}_parse(r){let i=this.controller.getBlockSelector();return i&&Array.prototype.slice.call(r.querySelectorAll(i)).forEach(function(s){let u=s.previousSibling,x=s.nextSibling;u&&(Wr(u,"textblock")||Wr(u,"list"))||s.parentNode.insertBefore(s.ownerDocument.createElement("p"),s),x&&(Wr(x,"textblock")||Wr(x,"list"))||s.parentNode.insertBefore(s.ownerDocument.createElement("p"),x)},this),this.addAll(r,null,this.options.start,this.options.end)}addElement(r){let i=r.nodeName.toLowerCase();(!this.options.editableContent||(i!="br"||r.parentNode.getAttribute("synobr")==="true"||r.nextSibling)&&r.getAttribute("pm-ignore")!=="trailing-break")&&(this.getCustomParserManager().add(r,this),this.parseNodeType(r,i)||(this.top.type.isTextblock&&Wr(r,"block")&&this.sync(this.top.prev),this.addElementContent(r)),this.getCustomParserManager().remove(r,this))}addElementContent(r){if(Wr(r,"ignored"))return;let i=Wr(r,"block")?this.top:null;this.addAll(r,i),i&&this.sync(i)}addAll(r,i,s,u){let x=s||0;for(let v=s?r.childNodes[s]:r.firstChild,P=u==null?null:r.childNodes[u];v!=P;v=v.nextSibling,++x)this.addDOM(v),i&&Wr(v,"block")&&this.sync(i)}findPlace(r,i,s){let u,x;for(let v=this.top;;v=v.prev){let P=v.match.findWrapping(r,i);if(P&&(!u||u.length>P.length)&&(u=P,x=v,!P.length)||v.solid)break}return!!u&&(this.sync(x),u.forEach(v=>{let{type:P,attrs:j}=v;this._enter(P,P.parseAttrsFromParser(Object.assign(Object.create(null),j),this,this.options),!1,null,this.top.preserveWhitespace)}),!0)}addSucc(r,i){}open(r,i){let s=this.openLeft;return s==null&&(s=this.top.type.isTextblock&&r.isTextblock?1:0),s>0&&this.top.match.matchType(r,i)&&(s=0),this.openLeft=s,s===0||(--this.openLeft,!1)}openInsert(r,i,s,u){let x=this.insert(...arguments);return x&&(this.openLeft=0,this.addSucc(r,i)),x}insert(r,i,s,u){if(u===void 0&&(u=this.marks),!this.findPlace(r,i,u))return null;if(r.isText)return this.top.addText(s,u);{let x=r.maybeCreateChecked(i,s,u);return x?this.top.addNode(x):null}}openEnter(r,i,s){let u=null;return this.open(r,i)&&(u=this.enter(...arguments),!u)?null:(this.addSucc(r,i),u)}enter(r,i,s){return this.findPlace(r,i,this.marks)?this._enter(r,i,!0,null,s):null}_enter(r,i,s,u,x){let v=this.top.start(r,i,s,u,x);return v&&this.sync(v),v}leave(){this.top=this.top.prev}sync(r){for(;r&&r.isClosed();)r=r.prev;for(;;){for(let i=r;i;i=i.prev)if(i==this.top){this.top=r;return}this.leave()}}getMark(r,i){let s,u;if(s=this.schema.maybeMarkType(r))u="marks";else{if(!(s=this.schema.maybeAttrMarkType(r)))return null;u="attr_marks"}if(!s.hasCss)return null;let x=this[u];if(!x.length)return null;let v=s.isInSet(x);return v?(i&&(this[u]=s.removeFromSet(x)),v):null}getMarkValue(r,i){let s=this.getMark(r,i);return s?s.type.getCssValue(s):null}}class Gy{constructor(r=d){this.parsers=r,this.parsersList=Object.entries(r).filter(i=>!!i[1])}getParsersList(){return this.parsersList}getParser(r){return this.parsers[r]||null}init(r,i,s){this.getParsersList().forEach(u=>{let[x,v]=u;v.init&&v.init(r,i,s[x]||d)})}add(r,i){this.getParsersList().forEach(s=>{let[u,x]=s;x.add&&x.add(r,i)})}remove(r,i){this.getParsersList().forEach(s=>{let[u,x]=s;x.remove&&x.remove(r,i)})}finish(r,i,s){return this.getParsersList().forEach(u=>{let[x,v]=u;v.finish&&(r=v.finish(r,i,s))}),r}finishCustom(r){return this.getParsersList().reduce((i,s)=>{let[u,x]=s;return x.finishCustom&&(i[u]=x.finishCustom(r)),i},Object.create(null))}}function Xu(l){return l instanceof pr&&l.type.isText&&/\s+$/.test(l.text)}class fn{constructor(r,i,s,u,x,v,P){this.type=r,this.match=x||r.contentExpr.start(i),this.solid=s,this.content=[],this.prev=u,this.openChild=null,this.preserveWhitespace=v,this.options=P||u&&u.options,this.closed=!1}get attrs(){return this.match.attrs}isClosed(){return this.closed}assertOpened(){if(this.isClosed())throw Error("Current NodeBuilder is already closed.")}add(r,i,s,u){return r.isText?this.addText(s,u):this.addNode(r.create(i,s,u))}addText(r,i){if(!this.preserveWhitespace){r=r.replace(/\s+/g," ");let s=/^\s/.exec(r);if(s){let u=this.content[this.content.length-1];(!u||Xu(u))&&(r=r.slice(s[0].length))}}return r?this.addNode(this.type.schema.text(r,i)):null}addNode(r){this.assertOpened();let i=this.match.matchNode(r);return!i&&(r=function(s,u){let x=s.marks,v=x.length;return v===0||(x=x.filter(P=>u.allowsMark(P.type))).length===v?null:s.mark(x)}(r,this.match))&&(i=this.match.matchNode(r)),i?(this.closeChild(),this.content.push(r),this.match=i,r):null}start(r,i,s,u,x){this.assertOpened();let v=this.match.matchType(r,i);return v?(this.closeChild(),this.match=v,this.openChild=new fn(r,i,s,this,u,x,this.options)):null}closeChild(r){let i=this.openChild;i&&(this.openChild=null,i.close(r&&r-1),this.content.push(i))}close(r){this.isClosed()||(this.closed=!0,this.closeChild(r))}finish(r){this.close(r);let i=r&&r-1,s=this.content.map(u=>(u instanceof fn&&(u=u.finish(i)),u));if(this.content=null,!this.preserveWhitespace){let u=s.length-1,x=s[u];x&&Xu(x)&&(s[u]=x.copyWithText(x.text.trimEnd()))}return s=xt.from(s),r||(s=s.append(this.match.fillBefore(xt.empty,!0))),this.type.createFromDOM(this.match.attrs,s,null,this.options)}get depth(){let r=0;for(let i=this.prev;i;i=i.prev)r++;return r}get openDepth(){let r=0;for(let i=this.openChild;i;i=i.openChild)r++;return r}}class Yu extends Fy{constructor(r,i,s=Object.create(null)){super(),this.controller=r,this.options=s,this.schema=r.schema,this.customParser=new Gy({...this.schema.createCustomParsers(),...s.parsers}),this.breakTextblockWithBr=s.breakTextblockWithBr??!1,this.marks=s.marks||Qe.none,this.attr_marks=s.attr_marks||Qe.none,{top:this.top,root:this.root,sliceFrom:this.sliceFrom,openLeft:this.openLeft}=this.initNodeBuilder(i),s.state=s.parser=this,s.target=s.target||"clipboard",this.getCustomParserManager().init(this,i instanceof dr?i:null,s.parserOptions||d)}initNodeBuilder(r){return r instanceof dr?this.initFromResolvedPos(r):r instanceof pr?this.initFromNode(r):this.initFromNodeType(r||this.schema.nodeType("doc"))}initFromNodeType(r,i){let{options:s}=this,u=new fn(r,i||null,!0,null,null,s.preserveWhitespace,s);return{root:u,top:u,sliceFrom:0,openLeft:u.type.is("RootType")?0:s.openLeft}}initFromNode(r){return this.initFromNodeType(r.type,r.attrs)}initFromResolvedPos(r){let{options:i}=this,s=!!i.preserveWhitespace,u=r.depth,x=0,v=null,P=null;for(let j=0;j<=u;++j){let F=r.node(j),q=F.contentMatchAt(r.index(j));P=P?P.start(F.type,F.attrs,F.type.unbreakable,q,s):new fn(F.type,F.attrs,!0,null,q,s,i),(!v||F.type.unbreakable)&&(v=P,x=j)}if(!v||!P)throw Error("No valid root NodeBuilder.");return{root:v,top:P,sliceFrom:u-x,openLeft:v.type.is("RootType")?0:i.openLeft}}getCustomParserManager(){return this.customParser}getCustomParser(r){return this.getCustomParserManager().getParser(r)}getParser(r){return this.getCustomParser(r)}parseNodeType(r){if(this.breakTextblockWithBr&&r.nodeName.toLowerCase()==="br"){let i,s=this.top;return s.type.is("Textblock")?(i={type:s.type,attrs:s.type.computeCopyableAttrValues(s.attrs),content:null},this.sync(s.prev)):i={type:this.schema.getDefaultTextblockType(),attrs:null,content:null},this.openEnter(i.type,i.attrs,this.top.preserveWhitespace),!0}{let i=this.controller.matchNode(r,this.options);if(!i)return!1;let{type:s,attrs:u,content:x}=i;if(x||s.isLeaf)this.openInsert(s,u,x);else{let v=this.openEnter(s,u,this.top.preserveWhitespace);this.addAll(r,v),v&&this.sync(v.prev)}return!0}}parseMarks(r){let i=this.controller.matchMarks(r,this.options);this.marks=Qe.mergeSet(this.marks,i)}parseAttrMarks(r){let i=this.controller.matchAttrMarks(r,this.options);this.attr_marks=Qe.mergeSet(this.attr_marks,i)}finish(r){return this.getCustomParserManager().finish(this.root.finish(r),this.sliceFrom,this)}finishCustom(){return this.getCustomParserManager().finishCustom(this)}addDOM(r){if(ci(r))this.addText(r);else if(cr(r)){let i=r.getAttribute("pm-ignore");if(i)i==="self"&&this.addElementContent(r);else{let s=this.marks,u=this.attr_marks;this.parseMarks(r),this.parseAttrMarks(r),this.addElement(r),this.attr_marks=u,this.marks=s}}}addText(r){var i,s,u;let x=r.data;!(x=Yn(x=x.replace(/\t/g,"    ").replace((i="newLine",Object.prototype.hasOwnProperty.call(kr,i)?kr[i]:void 0)," ")))||!this.top.type.isTextblock&&(s=x,u=Hr("asciiWhitespace"),Array.prototype.every.call(s,v=>rr(u,v)))||this.openInsert(this.schema.nodeType("text"),null,x)}addMarks(r){this.marks=Qe.mergeSet(this.marks,r)}}function mo(l,r){let i=r.matchDOMTag;i&&R(i,(s,u)=>{l.push({type:r,selector:u,value:s})})}function Qu(l,r){let i=r.matchDOMStyle;i&&R(i,(s,u)=>{l.push({type:r,style:u,value:s})})}class Hy{constructor(r){this.schema=r,this.schemaMatchSpec=function(i){let s=[],u=[],x=[],v=[],P=[],j="",F=i.nodes;for(let re in F){let te=F[re],ie=s.length;mo(s,te);let de=s.length;if(ie!==de){let ce=te.group;if(ce&&(ce.indexOf("block")>=0||ce.indexOf("first_level_block")>=0)&&0>ce.indexOf("basic_block"))for(let xe=ie;xe<de;++xe)j&&(j+=", "),j+=s[xe].selector}}let q=i.marks;for(let re in q){let te=q[re];mo(u,te),Qu(x,te)}let J=i.attr_marks;for(let re in J){let te=J[re];mo(v,te),Qu(P,te)}return{nodeDomMatches:s,markDomMatches:u,markCssMatches:x,attrDomMatches:v,attrCssMatches:P,blockSelector:j}}(r)}parse(r,i,s){return new Yu(this,i||null,s).parse(r)}parseContext(r,i,s){return new Yu(this,i,s).parseContext(r)}getBlockSelector(){return this.schemaMatchSpec.blockSelector}matchNodeDom(r,i,s){let u,x;if(!i.matches(r.selector))return null;let v=null,P=r.value;if(P instanceof Function){let j=P(i,s);if(j===!1)return null;v=j}else v=P;return Array.isArray(v)?[u,x]=v:(u=v,x=null),{type:r.type,attrs:u,content:x}}matchNode(r,i){let s=this.schemaMatchSpec.nodeDomMatches;for(let u=0,x=s.length;u<x;++u){let v=this.matchNodeDom(s[u],r,i);if(v)return v}return null}matchMarkStyle(r,i,s){let u=i.style.getPropertyValue(r.style);if(!u)return null;let x=null,v=r.value;if(v instanceof Function){let P=v(u,i,s);if(P===!1)return null;x=P}else x=v;return r.type.create(x)}matchMarkDom(r,i,s){if(!i.matches(r.selector))return null;let u=null,x=r.value;if(x instanceof Function){let v=x(i,s);if(v===!1)return null;u=v}else u=x;return r.type.create(u)}_matchMarks(r,i,s,u){let x=[];for(let v=0,P=r.length;v<P;++v){let j=this.matchMarkDom(r[v],s,u);j&&x.push(j)}for(let v=0,P=i.length;v<P;++v){let j=this.matchMarkStyle(i[v],s,u);j&&x.push(j)}return x}matchMarks(r,i){let s=this.schemaMatchSpec;return this._matchMarks(s.markDomMatches,s.markCssMatches,r,i)}matchAttrMarks(r,i){let s=this.schemaMatchSpec;return this._matchMarks(s.attrDomMatches,s.attrCssMatches,r,i)}}class yn{constructor(r=Object.create(null)){r.target==null&&(r.target="general"),this.options=r,this.target=r.target,this.doc=oa(r),this.overrideChildContainer=r.overrideChildContainer,this.filterContentProgressiveRenderable=aa.ensureFilter(r.filterContentProgressiveRenderable),this.renderInlineFlat=r.renderInlineFlat??!0,this.listCountMap=void 0}getTarget(){return this.target}isTarget(r){return this.constructor.isTargetMatch(this.getTarget(),r)}onChildContainer(r,i){this.options.onChildContainer?.(r,i)}onRender(r,i,s,u){let{onRender:x,onAfterRender:v}=this.options;return x&&(i=x(r,i,s,u,this)),r.is("Inline")&&(i=this.wrapInline(r,i)),v&&v(r,i,s,u,this),i}onChange(r,i,s,u,x){let{onChange:v}=this.options;v&&v(r,i,s,u,x,this)}onAfterChildRender(r,i,s,u){let{onAfterChildRender:x,renderInlineFlat:v}=this.options;x&&x(r,i,s,u,this),typeof v=="function"&&r.is("Inline")&&v(r,i,s,u,this.options.ranges)}onMarkRender(r,i){let{onMarkRender:s}=this.options;s&&s(r,i,this)}renderStructure(r){if(!r){if(this.isTarget("display"))throw RangeError("Given render structure should exist.");return null}let i=null,s=It(r,this.doc,(u,x,v,P)=>{if(i)throw RangeError("Each structure must have at most one content hole.");if(i=u,v<x.length-1||v>P)throw RangeError("Content hole must be the only child of its parent node.")});return i&&this.onChildContainer(i,s),{dom:s,childContainer:i}}renderNodeStructure(r){let i=this.renderStructure(r.type.toDOM(r,this.options));if(!i)return null;if(this.isTarget("display")){let s=!r.is("Leaf");if(!!i.childContainer!==s)throw Error(`The render result must match the content expression in node ${r.name}.`)}return i}renderMarkStructure(r){let i=this.renderStructure(r.type.toDOM(r,this.options));if(!i)return null;if(i.childContainer)throw Error(`There must not be child container in the render result of mark ${r.name}.`);return i}*renderNode(r,i,s,u){let x=this.doRenderNode(r,s,u),{done:v,value:P}=x.next();if(v||!P.dom){yield{node:r,dom:null,pos:s,size:r.nodeSize},yield*x;return}let j=P.dom;i.appendChild(j),this.onChange(r,j,s,u,null);let F=P.size;if(F===r.nodeSize)this.onAfterChildRender(r,j,s,u),yield P,yield*x;else for(yield P;;){let{done:q,value:J}=x.next();if(q)break;J.dom&&this.onChange(r,j,s,u,{node:J.node,dom:J.dom,pos:J.pos,offset:J.pos-s-1}),(F+=J.size)===r.nodeSize&&this.onAfterChildRender(r,j,s,u),yield J}}*doRenderNode(r,i,s){return r.is("Text")?yield*this.doRenderTextNode(r,i,s):yield*this.doRenderNonTextNode(r,i,s)}*doRenderTextNode(r,i,s){let u,x=this.renderNodeStructure(r);if(!x)return void(yield{node:r,dom:null,pos:i,size:r.nodeSize});let{dom:v}=x;if(ci(v))(u=this.doc.createElement("span")).appendChild(v);else{if(!cr(v))throw Error("The render result of `TextNode` must be `Text` or `Element`.");u=v}u=this.onRender(r,u,i,s),yield{node:r,dom:u,pos:i,size:r.nodeSize}}*doRenderNonTextNode(r,i,s){let u=this.renderNodeStructure(r);if(!u)return void(yield{node:r,dom:null,pos:i,size:r.nodeSize});let{dom:x,childContainer:v}=u;if(!cr(x))throw Error(`The render result of non-text node ${r.name} must be \`Element\`.`);let P=this.onRender(r,x,i,s),j=r.selfSize;if(v){let F=this.renderFragment(r.content,()=>this.getChildContainer(r,x,v),i+1);if(!this.isContentProgressiveRenderable(r))for(let q=0,J=r.childCount;q<J;++q){let{done:re,value:te}=F.next();if(re)break;j+=te.size}yield{node:r,dom:P,pos:i,size:j},yield*F}else yield{node:r,dom:P,pos:i,size:j}}getChildContainer(r,i,s){return this.overrideChildContainer?this.overrideChildContainer.call(null,r,i,s):s}isContentProgressiveRenderable(r){return!(r.type.isLeaf||r.is("RootType"))&&this.filterContentProgressiveRenderable.call(null,r)}wrapInline(r,i){return this.renderInlineFlat&&(i=this.wrapInlineMarksFlat(i,r.marks)),r.type.is("Drawing")&&r.attrs.config.alignment==="break"||(i=this.wrapInlineSpan(i,r)),i}wrapInlineMarksFlat(r,i){for(let s=i.length-1;s>=0;--s){let u=this.renderMark(i[s]);u&&((ea(u)||u).appendChild(r),r=u)}return r}wrapInlineSpan(r,i){let s=this.doc.createElement("span");return s.appendChild(r),s}*renderFragment(r,i,s){if(r.isEmpty())return;let u=typeof i=="function"?i:()=>i;return r.child(0).is("Inline")?this.renderInlineFlat?yield*this.renderFragmentInlineFlat(r,u,s):yield*this.renderFragmentInline(r,u,s):yield*this.renderFragmentBlocks(r,u,s)}*renderFragmentBlocks(r,i,s){let u=null,x=[];return yield*this.doRenderFragmentBy(r,s,v=>{if(this.isTarget("clipboard"))if(v.type.is("ListBlock")&&v.type.isValidListBlock(v)){let P=v.getAttrValue("listId")??"",j=v.getAttrValue("listLevel")??0;P!==u&&(u=P,x.length=0);let F=this.listCountMap||(this.listCountMap=Object.create(null)),q=F[P]||(F[P]=[]),J=x.length-1;if(J<j){let re=x.at(-1)??i();for(let te=J+1;te<=j;++te){let ie=this.renderStructure(v.type.getPseudoListType().toDOM(v,{...this.options,list_level:te,list_index:q[te]||0}));if(!ie||!ie.childContainer)throw Error("The render result of `PseudoListType` must be `Element`.");re.appendChild(ie.dom),re=ie.childContainer,x.push(ie.childContainer)}}else J>j&&(x.length=j+1);q[j]=(q[j]||0)+1}else u=null,x.length=0;return x.length?x[x.length-1]:i()})}*renderFragmentInlineFlat(r,i,s){return yield*this.doRenderFragmentBy(r,s,i)}*renderFragmentInline(r,i,s){let u=[],x=i();return yield*this.doRenderFragmentBy(r,s,v=>{let P=v.marks,j=0;for(let F=Math.min(u.length,P.length);j<F&&P[j].eq(u[j].mark);++j);u.length=j,x=j>0?u[j-1].childContainer:i();for(let F=j;F<P.length;++F){let q=P[F],J=this.renderMark(q);J&&(x.appendChild(J),x=ea(J)||J),u.push({mark:q,childContainer:x})}return x})}*doRenderFragmentBy(r,i,s){let u=[];for(let{node:x,offset:v,index:P}of r){let j=i+v,F=this.renderNode(x,s(x,v,P),j,v);u.push(F);let{done:q,value:J}=F.next();if(q||!J.dom){yield{node:x,dom:null,pos:j,size:x.nodeSize};continue}yield J}for(let x of u)yield*x}renderMark(r){if(this.isTarget("clipboard")&&!r.type.copyable||r.is("ToggleableCss")&&!r.getValue())return null;let i=this.renderMarkStructure(r)?.dom;if(!i)return null;if(!cr(i))throw Error("The render result of `Mark` must be `Element`.");return this.onMarkRender(r,i),i}static isTargetMatch(r,i){return i==="major"?r==="editor"||r==="viewer":i==="minor"?r==="general"||r==="clipboard":i==="display"?r==="editor"||r==="viewer"||r==="general":r===i}static renderFragment(r,i,s){return new this(s).renderFragment(r,i,s?.pos??0)}static renderNode(r,i,s){return new this(s).renderNode(r,i,s?.pos??0,s?.offset??0)}}class Wy{constructor(r){}*getFragmentGenerator(r,i,s){let u=yn.renderFragment(r,i,s),x=s?.progressiveRenderContent??!1;for(let v=0,P=r.childCount;v<P;++v)u.next(),x&&(yield);x||(yield),yield*this.handleProgressiveGenerator(u,s)}*getNodeGenerator(r,i,s){let u=yn.renderNode(r,i,s);u.next(),yield,yield*this.handleProgressiveGenerator(u,s)}ensureProgressiveStopChecker(r){if(!r)return S;if(typeof r=="function")return r;if(typeof r=="object"){let{preset:i,value:s}=r;if(i==="time"){let u=Date.now();return()=>{let x=Date.now();return!(x-u<s)&&(u=x,!0)}}if(i==="size"){let u=0;return x=>{let{size:v}=x;return!((u+=v)<s)&&(u=0,!0)}}}return S}*handleProgressiveGenerator(r,i){let s=this.ensureProgressiveStopChecker(i?.progressiveStopThreshold);for(let u of r)s(u)&&(yield)}renderFragment(r,i){let s=oa(i).createDocumentFragment(),u=yn.renderFragment(r,s,i);for(;!u.next().done;);return s}renderNode(r,i){let s=oa(i).createDocumentFragment(),u=yn.renderNode(r,s,i);for(;!u.next().done;);return s}}class Ku extends Ry{constructor(r,i=Object.create(null)){for(let s of(super(),this.rawSpec=r,this.spec=r=this.transformSpec(r),this.data=i,this.compile(),this.preset=r.preset??null,this.domParser=void 0,this.domRenderer=void 0,this.defaultContentStyles=void 0,this.cached=Object.create(null),this.getBindList())){let u=this[s];typeof u=="function"&&(this[s]=u.bind(this))}}getBindList(){return["node","text","mark","nodeFromJSON","nodesFromJSON","markFromJSON","marksFromJSON","nodeFrom","nodesFrom","markFrom","marksFrom"]}static mergeSpec(r){for(var i=arguments.length,s=Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return function(x){for(var v=arguments.length,P=Array(v>1?v-1:0),j=1;j<v;j++)P[j-1]=arguments[j];return x=Object.assign(Object.create(null),x),P.forEach(F=>{(function(q,J){var re,te,ie,de,ce,xe,we;if(!J)return;let{name:Me,version:Se,nodes:Re,groups:Be,marks:Ue,attr_marks:Ze,preset:lt,parsers:At}=J;re=q.name,q.name=Me==null?re:typeof Me=="string"?Me:Me(re),te=q.version,q.version=Se==null?te:typeof Se=="number"?Se:Se(te),ie=q.nodes,q.nodes=Re?K(Re,(ht,wt,Tt)=>{typeof wt=="function"&&(wt=wt(ie[Tt]||null,ie));let Xt=function(Zt,tr){if(!tr)return null;let Rt=K(tr,(Ht,Dt,hr)=>{var Tr;if((Tr=Dt)&&typeof Tr=="function"&&!(Tr===Zr||Tr.prototype instanceof Zr)){if(!Zt)throw Error(`Failed to merge ${hr} in node item spec by function without base spec.`);Dt=Dt(Zt[hr],Zt)}return Dt==null?delete Ht[hr]:Ht[hr]=Dt,Ht},{...Zt});if(!Rt.type)throw Error("Invalid schema node item spec without a node type.");return Rt}(ht[Tt],wt);return Xt==null?delete ht[Tt]:ht[Tt]=Xt,ht},{...ie}):ie,de=q.groups,q.groups=Be?K(Be,(ht,wt,Tt)=>(typeof wt=="function"&&(wt=wt(de[Tt]||[],de)),wt==null?delete ht[Tt]:ht[Tt]=wt,ht),{...de}):de,q.marks=zu(q.marks,Ue),q.attr_marks=zu(q.attr_marks,Ze),ce=q.preset,q.preset=lt===void 0?ce:typeof lt=="function"?ht=>lt(ht,ce??null):lt,xe=q.parsers,q.parsers=At===void 0?xe:K(At,(ht,wt,Tt)=>(wt==null?delete ht[Tt]:ht[Tt]=wt,ht),{...xe}),we=q.getInitialSelection,q.getInitialSelection=J.getInitialSelection??we})(x,F)}),x}(r,...s)}transformSpec(r){return this.constructor.mergeSpec(r,{nodes:{doc:{type:i=>class extends i{get attrs(){return{...super.attrs,schema:Te.create({default:r.version})}}}}}})}getVersion(){return this.version}testVersion(r){return this.constructor.findSchemaVersion(r)===this.getVersion()}static findSchemaVersion(r){let i=r.attrs?.schema;return typeof i=="number"?i:-1}getPresetData(r,i){let s=function(u,x){let v;if((v=typeof x=="function"?x(u):x)==null)return u.getRootType().createFilled();if(typeof v!="string")return v;{let P=JSON.parse(v);if(!P||typeof P!="object")throw Error(`Given json string is invalid: ${v}`);return P}}(this,r);if(!this.testVersion(s))throw Error(`Mismatched schema version for preset data: ${this.constructor.findSchemaVersion(s)}, ${this.getVersion()}`);return s instanceof pr?i==="node"?s:s.toJSON():i==="node"?this.nodeFromJSON(s):s}getPreset(){return this.getPresetData(this.preset,"node")}getPresetJson(){return this.getPresetData(this.preset,"json")}getDomParser(){return this.domParser||(this.domParser=new Hy(this))}createCustomParsers(){return Y(this.parsers,r=>r(this))}getDomRenderer(){return this.domRenderer||(this.domRenderer=new Wy(this))}copy(r,i){let s=this.constructor;return new s(s.mergeSpec(this.rawSpec,r),i)}setCache(r,i){this.cached[r]=i}getCache(r){return this.cached[r]}maybeNodeType(r){return this.nodes[r]??null}nodeType(r){let i=this.maybeNodeType(r);if(!i)throw RangeError(`Unknown node type: ${r}`);return i}getRootType(){return this.nodeType("doc")}getDefaultTextblockType(){let r=this.groups?.block;if(!r)throw RangeError("There is no block types.");let i=r.find(s=>s.is("Textblock"));if(!i)throw RangeError("There is no textblock types.");return i}*nodeTypes(){let r=this.nodes;for(let i in r)Object.hasOwn(r,i)&&(yield r[i])}maybeMarkType(r){return this.marks[r]??null}markType(r){let i=this.maybeMarkType(r);if(!i)throw RangeError(`Unknown mark type: ${r}`);return i}*markTypes(){let r=this.marks;for(let i in r)Object.hasOwn(r,i)&&(yield r[i])}mark(r,i){if(typeof r=="string")r=this.markType(r);else if(r instanceof Rr){if(r.schema!==this)throw RangeError("Mark type from different schema used ("+r.name+")")}else throw RangeError("Invalid mark type: "+r);return r.create(i)}markFrom(r){return typeof r=="string"?this.markType(r).getPresetMark():r instanceof Rr?r.getPresetMark():r instanceof Qe?r:Array.isArray(r)?this.mark(r[0],r[1]):this.markFromJSON(r)}marksFrom(r){return Qe.setFrom(r&&r.length?r.map(this.markFrom,this):null)}maybeAttrMarkType(r){return this.attr_marks[r]??null}attrMarkType(r){let i=this.maybeAttrMarkType(r);if(!i)throw RangeError(`Unknown attr mark type: ${r}`);return i}getInitialSelection(r){return this.spec.getInitialSelection?this.spec.getInitialSelection.call(null,r):St.findAtStart(r,!0).toMultiSelection()}getDefaultContentStyles(){return this.defaultContentStyles||(this.defaultContentStyles=this.nodeType("doc").createDefaultContentStyles())}nodeFromJSON(r){return pr.fromJSON(this,r)}nodesFromJSON(r){return xt.fromJSON(this,r)}markFromJSON(r){return Qe.fromJSON(this,r)}marksFromJSON(r){return Qe.setFromJSON(this,r)}}let ec=new class{constructor(){this.arrow_size=12}createSvg(l,r){for(var i=arguments.length,s=Array(i>2?i-2:0),u=2;u<i;u++)s[u-2]=arguments[u];return["svg",{"pointer-events":"none",fill:"none",stroke:"none","fill-rule":"evenodd",overflow:"visible",width:((l=Math.ceil(l))||1)+"px",height:((r=Math.ceil(r))||1)+"px",inline_style:{position:"absolute"}},...s]}createGroup(){for(var l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];return["g",...r]}createGroupWithAttrs(l){l===void 0&&(l={});for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return["g",l,...i]}createChartGroup(l,r){let i=["image",{preserveAspectRatio:"none",x:"0",y:"0",width:Math.abs(r.width)+"",height:Math.abs(r.height)+""}];return this.createGroup(i)}setupDefaultPathAttrs(l,r){return l.d=r,l}makePathAttrs(l,r){let i=he(l);return this.setupDefaultPathAttrs(i,r)}createPathsGroup(l,r,i,s){s===void 0&&(s={});let u=[];for(let x=0;x<r.length;++x){let v=r[x];if(!v.define)continue;let P=i.call(this,l,v);u.push(["path",P])}return this.createGroupWithAttrs(s,...u)}createTriggerGroup(l,r){return this.createPathsGroup(l,r,function(i,s){let u=this.makePathAttrs(i,s.define);return u.class="syno-o-slide-pm-svg-element-trigger",u.fill=s.fill==="none"?"none":"#000000",u["fill-opacity"]="0",u.stroke="#000000",u["stroke-opacity"]="0",u["stroke-width"]="stroke-width"in u?Math.max(parseInt(u["stroke-width"]),10):10,u["stroke-dasharray"]=void 0,u},{"pointer-events":"visiblePainted"})}createPatternGroup(l,r,i){return l?this.createGroup(["pattern",{id:l,patternUnits:"userSpaceOnUse",patternContentUnits:"userSpaceOnUse",width:Math.abs(i.width)+"",height:Math.abs(i.height)+""},["image",{preserveAspectRatio:"none",x:"0",y:"0",width:Math.abs(i.width)+"",height:Math.abs(i.height)+""}]]):this.createGroup()}createShapeGroup(l,r,i,s){return this.createPathsGroup(l,r,function(u,x){let v=this.makePathAttrs(u,x.define);return s?v.fill="url(#"+s+")":"color"in x&&(v.fill=x.color),"stroke"in x&&!x.stroke&&(v.stroke="none"),v},i)}createShapeStrokeGroup(l,r){return"stroke-type"in l?this.createStrokeGroup(l,r):this.createGroup()}createStrokeGroup(l,r){return this.createPathsGroup(l,r,function(i,s){let u=this.makePathAttrs(i,s.define);return delete u.fill,delete u["fill-opacity"],u})}createLineGroup(l,r){return this.createPathsGroup(l,r,function(i,s){return this.makePathAttrs(i,s.define)})}createArrowGroup(l,r){return this.createPathsGroup(l,r,function(i,s){let u=this.makePathAttrs(i,s.define);return"color"in s?u.fill=s.color:u.fill=i.stroke,u["fill-opacity"]=i["stroke-opacity"],u["stroke-miterlimit"]=10,delete u["stroke-dasharray"],u})}createHighlightRect(l,r){return["rect",{rx:1,ry:1,fill:"none",stroke:"#000000","stroke-width":3}]}createHighlightRectGroup(l,r){return this.createGroup(this.createHighlightRect(l,r))}createDiv(){for(var l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];return["div",{inline_style:{position:"absolute"}},...r]}createNodeDiv(l){let r,i={class:l,inline_style:{position:"absolute",width:"0px",height:"0px"}};if(Array.isArray(arguments[1])||typeof arguments[1]!="object")r=1;else{let u=arguments[1];u.inline_style&&(he(u.inline_style,i.inline_style),delete u.inline_style),he(u,i),r=2}let s=["div",i];for(let u=r,x=arguments.length;u<x;++u)s.push(arguments[u]);return s}createInstanceTextDiv(l){for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return["div",{inline_style:{visibility:"hidden",position:"absolute",width:l.width+"px"}},...i]}createTriggerDiv(l,r){r===void 0&&(r={});for(var i=arguments.length,s=Array(i>2?i-2:0),u=2;u<i;u++)s[u-2]=arguments[u];return["div",{inline_style:he(r,{visibility:"hidden",position:"absolute",width:l.width+"px",height:l.height+"px"})},...s]}createIndicatorWrapper(l,r){return["div",{class:"ProseMirror-non-printable syno-o-pm-plugin-indicator-wrapper",inline_style:{position:"absolute",left:(l||0)+"px",top:(r||0)+"px"}}]}};var ir=Ct(24774);class vo{constructor(r,i,s){this.schema=r.type.schema,this.doc=r,this.commentStore=i,this._selection=null,this._multiSelection=null,this._storedMarks=null,this._cachedMarks=null,s&&this.select(s)}set comments(r){this.commentStore=r}get comments(){return this.commentStore}set comment_store(r){this.commentStore=r}get comment_store(){return this.commentStore}_setState(r,i,s,u){this.schema=r.type.schema,this.doc=r,this.commentStore=i,this.select(s,u)}setState(r,i,s){return this._setState(r,i,s,!1)}get selection(){return this._selection}get multiSelection(){return this._multiSelection}selectText(r,i,s){s===void 0&&(s=d);let u=or.create(this.doc,r,i,!s.useFallbackSelection);if(!u)throw RangeError(`Setting text selection with invalid anchor ${r} and head ${i}.`);return this.select(u,s.preserveMarks)}selectNode(r,i){i===void 0&&(i=d);let s=gr.create(this.doc,r,null,!i.useFallbackSelection);if(!s)throw RangeError(`Setting node selection with invalid node position ${r}.`);return this.select(s,i.preserveMarks)}clearSelection(){this._select(null)}select(r,i){return i===void 0&&(i=!1),r&&(r.doc!==this.doc?ir.default.error("Try to select at a different root node."):(r instanceof St&&(r=r.toMultiSelection()),this._select(r,i))),this}_select(r,i){i===void 0&&(i=!1),this._selection=r&&r.getRange(),this._multiSelection=r,i?this._cachedMarks=null:this.clearActiveMarks()}getStoredMarks(){return this._storedMarks}setStoredMarks(r){return this._storedMarks=r,r}clearStoredMarks(){this.setStoredMarks(null)}getActiveMarks(){let r=this.getStoredMarks()||this._cachedMarks;if(r)return r;let i=this.selection;return r=i&&i.is("Text")?i.getMarks():Qe.none,this._cachedMarks=r}setActiveMarks(r){return this.setStoredMarks(r)}clearActiveMarks(){this.clearStoredMarks(),this._cachedMarks=null}addActiveMarks(r){let i=this.getActiveMarks();return r?(Array.isArray(r)||(r=[r]),this.setActiveMarks(r.reduce((s,u)=>u.addToSet(s),i))):i}removeActiveMarks(r){let i=this.getActiveMarks();return r?(Array.isArray(r)||(r=[r]),this.setActiveMarks(r.reduce((s,u)=>u.removeFromSet(s),i))):i}}function tc(l,r){let i=l.x-r.x,s=l.y-r.y;return Math.sqrt(i*i+s*s)}let xn=Math.PI/180,rc=180/Math.PI,qy={left:0,top:1,right:2,bottom:3},Uy=[3,12,48,192],$y=[5,65,20,80],ic=Object.create(null);class Mt{static createDefault(){return[1,0,0,1,0,0]}static createTranslate(r,i){return r===void 0&&(r=0),i===void 0&&(i=0),[1,0,0,1,r,i]}static createRotate(r,i,s){i===void 0&&(i=0),s===void 0&&(s=0);let u=r*xn,x=Math.sin(u),v=Math.cos(u);return[v,x,-x,v,-i*v+s*x+i,-i*x-s*v+s]}static createScale(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),[r,0,0,i,s*(1-r),u*(1-i)]}static createFlip(r,i,s,u){return i===void 0&&(i=r),s===void 0&&(s=0),u===void 0&&(u=0),this.createScale(Math.sign(r),Math.sign(i),s,u)}static createSkewY(r,i){i===void 0&&(i=0);let s=Math.tan(r*xn);return[1,s,0,1,0,-i*s]}static apply(r,i){let s=r.x,u=r.y;return r.x=i[0]*s+i[2]*u+i[4],r.y=i[1]*s+i[3]*u+i[5],r}static applyNoTranslate(r,i){let s=r.x,u=r.y;return r.x=i[0]*s+i[2]*u,r.y=i[1]*s+i[3]*u,r}static applyTranslate(r,i,s){return r.x+=i,r.y+=s,r}static applyRotate(r,i,s,u){return s===void 0&&(s=0),u===void 0&&(u=0),this.apply(r,this.createRotate(i,s,u))}static applyScale(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.apply(r,this.createScale(i,s,u,x))}static applyFlip(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.apply(r,this.createFlip(i,s,u,x))}static applySkewY(r,i,s){return s===void 0&&(s=0),this.apply(r,this.createSkewY(i,s))}static reverse(r){let i=1/(r[0]*r[3]-r[1]*r[2]),s=r[0]*i,u=r[1]*i,x=r[2]*i,v=r[3]*i,P=r[4],j=r[5];return[v,-u,-x,s,x*j-v*P,u*P-s*j]}static multiply2(r,i){let s=[];return s.push(r[0]*i[0]+r[2]*i[1]),s.push(r[1]*i[0]+r[3]*i[1]),s.push(r[0]*i[2]+r[2]*i[3]),s.push(r[1]*i[2]+r[3]*i[3]),s.push(r[0]*i[4]+r[2]*i[5]+r[4]),s.push(r[1]*i[4]+r[3]*i[5]+r[5]),s}static multiply(){let r=arguments[0];for(let i=1;i<arguments.length;++i)r=this.multiply2(r,arguments[i]);return r}static translate(r,i,s){return i===void 0&&(i=0),s===void 0&&(s=0),this.multiply(r,this.createTranslate(i,s))}static rotate(r,i,s,u){return s===void 0&&(s=0),u===void 0&&(u=0),this.multiply(r,this.createRotate(i,s,u))}static scale(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.multiply(r,this.createScale(i,s,u,x))}static flip(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.multiply(r,this.createFlip(i,s,u,x))}static skewY(r,i,s){return s===void 0&&(s=0),this.multiply(r,this.createSkewY(i,s))}static prependTranslate(r,i,s){return this.multiply(this.createTranslate(i,s),r)}static prependRotate(r,i,s,u){return s===void 0&&(s=0),u===void 0&&(u=0),this.multiply(this.createRotate(i,s,u),r)}static prependScale(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.multiply(this.createScale(i,s,u,x),r)}static prependFlip(r,i,s,u,x){return s===void 0&&(s=i),u===void 0&&(u=0),x===void 0&&(x=0),this.multiply(this.createFlip(i,s,u,x),r)}static prependSkewY(r,i,s){return s===void 0&&(s=0),this.multiply(this.createSkewY(i,s),r)}static fromTransform(r){if(!r)return null;let i=r.deg?r.deg*xn:0,s=r.skewY?r.skewY*xn:0,u=Math.sin(i),x=Math.cos(i),v=Math.tan(s),P=r.width?Math.sign(r.width):1,j=r.height?Math.sign(r.height):1;return[P*(x-u*v),P*(u+x*v),-j*u,j*x,r.left||0,r.top||0]}static toMatrixStr(r){return"matrix("+r[0]+","+r[1]+","+r[2]+","+r[3]+","+r[4]+","+r[5]+")"}static transformToMatrixStr(r){return this.toMatrixStr(this.fromTransform(r))}}class bo{static get prop_list(){return["left","top","width","height","deg","skewY"]}static getAttrs(r){let i;r===void 0&&(r=ic);let s=this.prop_list,u=Object.create(null);for(let x=s.length-1;x>=0;--x){let v=s[x],P=r[v];P==null&&(i||(i=this.createDefault()),P=i[v]),u[v]=new Te({default:P})}return u}static getImageAttrs(r){let i;r===void 0&&(r=ic);let s=this.prop_list,u=Object.create(null);for(let x=s.length-1;x>=0;--x){let v=s[x],P=r[v];P==null&&(i||(i=this.createImageDefault()),P=i[v]),u[v]=new Te({default:P})}return u}static createDefault(){return{left:0,top:0,width:100,height:100,deg:0,skewY:0}}static createImageDefault(){return{left:0,top:0,width:1,height:1,deg:0,skewY:0}}static createImageCenter(r,i){let s=r.width?i.width/r.width:0,u=r.height?i.height/r.height:0;return{left:(1-s)/2,top:(1-u)/2,width:s,height:u,deg:0,skewY:0}}static createFilled(r){return he(r,this.createDefault(),!1,this.prop_list)}static createImageFilled(r){return he(r,this.createImageDefault(),!1,this.prop_list)}static _createFilledFromArray(r,i){let s=this.prop_list,u=Math.min(s.length,r.length);for(let x=0;x<u;++x)i[s[x]]=r[x];return i}static createFilledFromArray(r){return this._createFilledFromArray(r,this.createDefault())}static createImageFilledFromArray(r){return this._createFilledFromArray(r,this.createImageFilled())}static copy(r,i){return r&&(r=he(r,null,!1,this.prop_list),i&&(r=he(i,r,!1,this.prop_list))),r}static _compare(r,i,s){return this._compareCoords(r,i,s)&&this._compareShape(r,i,s)}static compare(r,i,s){return r===i||this._compare(r,i,s)}static _compareShape(r,i,s){return!B(r.skewY,i.skewY)&&(!B(r.deg,i.deg)&&!B(r.width,i.width)&&!B(r.height,i.height)||!s&&!B(this.ensureDeg(r.deg+180),i.deg)&&!B(-r.width,i.width)&&!B(-r.height,i.height))}static compareShape(r,i,s){return r===i||this._compareShape(r,i,s)}static _compareCoords(r,i,s){return!B(r.left,i.left)&&!B(r.top,i.top)}static compareCoords(r,i,s){return r===i||this._compareCoords(r,i,s)}static _compareSize(r,i,s){return!B(r.width,i.width)&&!B(r.height,i.height)||!s&&!B(-r.width,i.width)&&!B(-r.height,i.height)}static compareSize(r,i,s){return r===i||this._compareSize(r,i,s)}static _compareDeg(r,i,s){return!B(this.getTrueDeg(r),this.getTrueDeg(i))}static compareDeg(r,i,s){return r===i||this._compareDeg(r,i,s)}static add(r,i){return r?i?(r=this.copy(r),this.addTranslate(r,i.left,i.top),this.addScale(r,i.width,i.height),this.addRotate(r,i.deg),this.addSkewY(r,i.skewY),r):this.copy(r):this.copy(i)}static addTranslate(r,i,s){return r.left+=i||0,r.top+=s||0,r}static addScale(r,i,s){return i!=null&&(r.width=i*Math.sign(r.width)),s!=null&&(r.height=s*Math.sign(r.height)),r}static addFlip(r,i,s){return i!=null&&(r.width*=Math.sign(i)),s!=null&&(r.height*=Math.sign(s)),r}static addRotate(r,i){return i&&(r.deg=this.ensureDeg(r.deg+i)),r}static addSkewY(r,i){return i&&(r.skewY=this.ensureSkew(r.skewY+i)),r}static merge(r,i,s,u){if(!r)return this.copy(i);if(!i)return this.copy(r);let x=Object.create(null);s||(s=Mt.fromTransform(r)),u||(u=Mt.fromTransform(i));let v=Mt.multiply(s,u);return this.mergeMove(x,v,0,0),this.mergeResize(x,r,i),this.mergeRotateSkew(x,v),x}static split(r,i,s,u){if(!r)return this.copy(i);if(!i)return bo.createDefault();let x=Object.create(null);s||(s=Mt.fromTransform(r)),u||(u=Mt.fromTransform(i));let v=Mt.multiply(Mt.reverse(s),u);return this.mergeMove(x,v,0,0),this.mergeResize(x,r,i),this.mergeRotateSkew(x,v),x}static mergeMove(r,i,s,u){let x=Mt.apply({x:s,y:u},i);return r.left=x.x,r.top=x.y,r}static mergeResize(r,i,s){return r.width=Math.abs(s.width!=null?s.width:i.width),r.height=Math.abs(s.height!=null?s.height:i.height),r}static mergeRotateSkew(r,i){let s=Mt.applyNoTranslate({x:1,y:0},i),u=Mt.applyNoTranslate({x:0,y:1},i);return this.setDegSkewFromPos(r,s,u)}static setDegSkewFromPos(r,i,s,u){let x,v;u===void 0&&(u={x:0,y:0});let P=i.x-u.x,j=i.y-u.y,F=s.x-u.x,q=s.y-u.y;(P||j)&&(x=Math.atan2(j,P)*rc+90),(F||q)&&(v=Math.atan2(q,F)*rc+90),x==null&&v==null?(x=90,v=180):x==null?x=v-90:v==null&&(v=x+90);let J=this.ensureDeg(v-x);return J>180&&(J-=180,r.width*=-1),r.deg=this.ensureDeg(v+180),r.skewY=90-J,r}static applyMatrix(r,i,s){s||(s=Mt.fromTransform(i)),r=Mt.multiply(r,s);let u=Math.abs(i.width),x=Math.abs(i.height),v=Mt.apply({x:0,y:0},r),P=Mt.apply({x:u,y:0},r),j=Mt.apply({x:0,y:x},r),F=Object.create(null);return F.left=v.x,F.top=v.y,F.width=tc(v,P),F.height=tc(v,j),this.setDegSkewFromPos(F,P,j,v),F.width*=Math.cos(F.skewY*xn),F}static getScaleAppliedMatrix(r,i){return Mt.multiply(i,Mt.createScale(r.x,r.y),Mt.reverse(i))}static getCenterPos(r,i){return i===void 0&&(i=Mt.fromTransform(r)),Mt.apply({x:Math.abs(r.width)/2,y:Math.abs(r.height)/2},i)}static getTopLeftPos(r,i){return i===void 0&&(i=Mt.fromTransform(r)),Mt.apply({x:0,y:0},i)}static getBottomRightPos(r,i){return i===void 0&&(i=Mt.fromTransform(r)),Mt.apply({x:Math.abs(r.width),y:Math.abs(r.height)},i)}static translate(r,i,s){return this.addTranslate(this.copy(r),i,s)}static rotate(r,i,s,u,x){return u===void 0&&(u=0),x===void 0&&(x=0),this.applyMatrix(Mt.createRotate(s,u,x),r,i)}static rotateCenter(r,i,s){i||(i=Mt.fromTransform(r));let u=this.getCenterPos(r,i);return this.rotate(r,i,s,u.x,u.y)}static scale(r,i,s,u,x,v){return u===void 0&&(u=s),x===void 0&&(x=0),v===void 0&&(v=0),this.applyMatrix(Mt.createScale(s,u,x,v),r,i)}static scaleCenter(r,i,s,u){u===void 0&&(u=s),i||(i=Mt.fromTransform(r));let x=this.getCenterPos(r,i);return this.scale(r,i,s,u,x.x,x.y)}static flip(r,i,s,u,x,v){return u===void 0&&(u=s),x===void 0&&(x=0),v===void 0&&(v=0),this.scale(r,i,Math.sign(s),Math.sign(u),x,v)}static flipCenter(r,i,s,u){return u===void 0&&(u=s),this.scaleCenter(r,i,Math.sign(s),Math.sign(u))}static skewY(r,i,s,u){return u===void 0&&(u=0),this.applyMatrix(Mt.createSkewY(s,u),r,i)}static skewYCenter(r,i,s){i||(i=Mt.fromTransform(r));let u=this.getCenterPos(r,i);return this.skewY(r,i,s,u.x)}static getScale(r,i){return{x:i.width!=null&&r.width?Math.abs(i.width/r.width):1,y:i.height!=null&&r.height?Math.abs(i.height/r.height):1}}static getTrueDeg(r){return r.height>0?r.deg:this.ensureDeg(r.deg+180)}static ensureDeg(r){return z(r,360)}static ensureSkew(r){return r>=-90&&r<=90?r:z(r+90,180)-90}static fixDegForLine(r,i,s){s===void 0&&(s=!0),s&&(r=he(r)),i||(i=this.getMatrix(r));let{x1:u,y1:x}=Mt.apply({x:0,y:0},i),{x2:v,y2:P}=Mt.apply({x:Math.abs(r.width),y:Math.abs(r.height)},i);return r.left=u,r.top=x,r.width=v-u,r.height=P-x,r.deg=0,r.skewY=0,r}static fromImageTransform(r,i){let s=Math.abs(r.width),u=Math.abs(r.height),x=this.copy(i);return x.left*=s,x.top*=u,x.width*=s,x.height*=u,x}static toImageTransform(r,i){let s=1/Math.abs(r.width),u=1/Math.abs(r.height),x=this.copy(i);return x.left*=s,x.top*=u,x.width*=s,x.height*=u,x}static getMatrix(r){return Mt.fromTransform(r)}static matrixToStr(r){return Mt.toMatrixStr(r)}static getMatrixStr(r){return Mt.transformToMatrixStr(r)}static fromBoundingBox(r){let i=this.createFilled(r);return i.width=r.right-r.left,i.height=r.bottom-r.top,i}}class xa{static get prop_list(){return["left","top","right","bottom"]}static createDefault(){return{left:0,top:0,right:0,bottom:0}}static createSmallest(){return{left:1/0,top:1/0,right:-1/0,bottom:-1/0}}static createFilled(r){return he(r,this.createDefault(),!1,this.prop_list)}static copy(r){return r&&he(r,null,!1,this.prop_list)}static ensure(r){let i,s="left_source"in r;return r.left>r.right&&(i=r.left,r.left=r.right,r.right=i,s&&(i=r.left_source,r.left_source=r.right_source,r.right_source=i)),r.top>r.bottom&&(i=r.top,r.top=r.bottom,r.bottom=i,s&&(i=r.top_source,r.top_source=r.bottom_source,r.bottom_source=i)),r}static expand2(r,i){return i&&(r.left=Math.min(r.left,i.left),r.top=Math.min(r.top,i.top),r.right=Math.max(r.right,i.right),r.bottom=Math.max(r.bottom,i.bottom)),r}static expand(r,i,s){return s===void 0&&(s=_),i?r?(i.left<r.left&&(r.left=i.left,s("left",r,i)),i.top<r.top&&(r.top=i.top,s("top",r,i)),i.right>r.right&&(r.right=i.right,s("right",r,i)),i.bottom>r.bottom&&(r.bottom=i.bottom,s("bottom",r,i)),r):i:r}static expandFromGetter(r,i,s,u){return this.expand(r,s(i),u)}static expandFromTransform(r,i,s,u){return s===void 0&&(s=Mt.fromTransform(i)),this.expand(r,this.fromTransform(i,s),u)}static expandFromNode(r,i,s){return this.expandFromTransform(r,i.type.getAbsTransform(i),i.type.getAbsMatrix(i),s)}static expandFromNodeGetter(r,i,s,u){return this.expandFromNode(r,s(i),u)}static expandFromResolvedPos(r,i,s){return this.expandFromNode(r,i.self,s)}static fromArray(r,i){for(var s=arguments.length,u=Array(s>2?s-2:0),x=2;x<s;x++)u[x-2]=arguments[x];let v=this.createSmallest();for(let P=0;P<r.length;++P)i(v,r[P],...u);return v}static fromBoundingArray(r,i){return this.fromArray(r,this.expand.bind(this),i)}static fromGetterArray(r,i,s){return this.fromArray(r,this.expandFromGetter.bind(this),i,s)}static fromNodeArray(r,i){return this.fromArray(r,this.expandFromNode.bind(this),i)}static fromNodeGetterArray(r,i,s){return this.fromArray(r,this.expandFromNodeGetter.bind(this),i,s)}static fromResolvedPosArray(r,i){return this.fromArray(r,this.expandFromResolvedPos.bind(this),i)}static fromMap(r,i){for(var s=arguments.length,u=Array(s>2?s-2:0),x=2;x<s;x++)u[x-2]=arguments[x];let v=this.createSmallest();for(let P in r)r.hasOwnProperty(P)&&i(v,r[P],...u);return v}static fromBoundingMap(r,i){return this.fromArray(r,this.expand.bind(this),i)}static fromGetterMap(r,i,s){return this.fromMap(r,this.expandFromGetter.bind(this),i,s)}static fromNodeMap(r,i){return this.fromMap(r,this.expandFromNode.bind(this),i)}static fromNodeGetterMap(r,i,s){return this.fromArray(r,this.expandFromNodeGetter.bind(this),i,s)}static fromResolvedPosMap(r,i){return this.fromMap(r,this.expandFromResolvedPos.bind(this),i)}static getIntersection(r,i){let s={left:Math.max(r.left,i.left),top:Math.max(r.top,i.top),right:Math.min(r.right,i.right),bottom:Math.min(r.bottom,i.bottom)};return s.left<=s.right&&s.top<=s.bottom?s:null}static getEdgeResult(r,i){return{left:B(r.left,i.left),top:B(r.top,i.top),right:B(r.right,i.right),bottom:B(r.bottom,i.bottom)}}static recoverSource(r,i){let s=qy[i];return(r&Uy[s])>>(s<<1)}static fromSizeAndMatrix(r,i,s,u){let x=[];if(x.push(Mt.apply({x:0,y:0},s)),x.push(Mt.apply({x:0,y:i},s)),x.push(Mt.apply({x:r,y:0},s)),x.push(Mt.apply({x:r,y:i},s)),!u)return{left:Math.min(x[0].x,x[1].x,x[2].x,x[3].x),top:Math.min(x[0].y,x[1].y,x[2].y,x[3].y),right:Math.max(x[0].x,x[1].x,x[2].x,x[3].x),bottom:Math.max(x[0].y,x[1].y,x[2].y,x[3].y)};let v=Object.create(null);v.pos_arr=x;let P=function(F,q){let J,re,te,ie,de;switch(q){case"left":ie="x",de=-1;break;case"top":ie="y",de=-1;break;case"right":ie="x",de=1;break;case"bottom":ie="y",de=1;break;default:return}for(let ce=0;ce<4;++ce)(function(xe){let we=$y[xe],Me=F[xe],Se=Me[ie],Re=te==null?null:B(Se,te);Re==null||Re*de>0?(te=Se,J=we,re=Me):Re===0&&(J=(J&we)<<1,re=null)})(ce);v[q]=te,v[q+"_source"]=J,v[q+"_pos"]=re},j=this.prop_list;for(let F=0;F<j.length;++F)P(x,j[F]);return v}static fromTransform(r,i,s){return this.fromSizeAndMatrix(Math.abs(r.width),Math.abs(r.height),i||Mt.fromTransform(r),s)}static fromNode(r,i){return this.fromTransform(r.type.getAbsTransform(r),r.type.getAbsMatrix(r),i)}static toTransform(r){return bo.fromBoundingBox(r)}static translate(r,i,s){return this.calculateTranslate(this.copy(r),i,s)}static scale(r,i,s){return this.calculateScale(this.copy(r),i,s)}static calculateTranslate(r,i,s){return s===void 0&&(s=i),r.left+=i,r.top+=s,r.right+=i,r.bottom+=s,r}static calculateScale(r,i,s){return s===void 0&&(s=i),r.left*=i,r.top*=s,r.right*=i,r.bottom*=s,r}static calculateCenter(r){return r.h_center=(r.left+r.right)/2,r.v_center=(r.top+r.bottom)/2,r}static calculateSize(r){return r.width=r.right-r.left,r.height=r.bottom-r.top,r}static calculateSource(r){return r.left_source=2,r.top_source=8,r.right_source=32,r.bottom_source=128,r}}class Zy extends vo{constructor(r){super(r.doc,r.commentStore,r._multiSelection),this.progressiveFlush=!1,this.scrollIntoView=!1,this.scrollOptions=void 0,this.focus=!1,this.selectionChanged=!1,this.updateStatus=!1}}function Jy(l,r){"focus"in l&&(r?.force||l.ownerDocument.activeElement!==l)&&l.focus(r)}function Ri(l,r){if(!(l&&r))return!1;if(l===r)return!0;if(l.nodeType===document.TEXT_NODE)return!1;if(r.nodeType!==document.ELEMENT_NODE){let i=r.parentNode;if(!i)return!1;r=i}return l.nodeType!==document.DOCUMENT_NODE||l.contains||(l=l.body),l.contains(r)}function nc(l){let r=l.readyState;return r==="loaded"&&(r="complete"),r}let ac=["loading","interactive","complete"];function sc(l,r){let i=ac.indexOf(r);if(i<0)return Promise.reject(`Given state \`${r}\` is invalid.`);let s=()=>ac.indexOf(nc(l))>=i;return s()?Promise.resolve():new Promise(u=>{let x=()=>{s()&&(l.removeEventListener("readystatechange",x),u())};l.addEventListener("readystatechange",x)})}function Xy(l){return sc(l,"interactive")}function Yy(l){return sc(l,"complete")}function ma(l,r){let i=l.fullscreenElement||l.webkitFullscreenElement||l.mozFullScreenElement||l.msFullscreenElement;return r?i===r:!!i}function oc(l,r){let i=l.ownerDocument;if(!i)return Promise.reject("Given element is not attached to a document.");if(ma(i,l))return Promise.resolve();let s=l.requestFullscreen||l.webkitRequestFullscreen||l.webkitRequestFullScreen||l.mozRequestFullScreen||l.msRequestFullscreen;return s?s.call(l,r)||Promise.resolve():Promise.reject("No valid fullscreen requester.")}function lc(l){if(!ma(l))return Promise.resolve();let r=l.exitFullscreen||l.webkitExitFullscreen||l.webkitExitFullScreen||l.mozCancelFullScreen||l.msExitFullscreen;return r?r.call(l)||Promise.resolve():Promise.reject("No valid fullscreen exitor.")}function Qy(l){let r=l.ownerDocument;return r?ma(r,l)?lc(r):oc(l):Promise.reject("Given element is not attached to a document.")}let Ky=(()=>{let l;return()=>l??(l=function(){for(let r of["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"])if(document[`on${r}`]!==void 0)return r;return"fullscreenchange"}())})();function va(l){let r;if(l.nodeType===l.ELEMENT_NODE)r=l;else{let i=l.parentElement;if(!i)return!1;r=i}return r.getClientRects().length!==0}function ba(l){if(!l)return"";if(typeof l=="string")return l;if(Array.isArray(l))return l.map(ba).join("");{let r="",{metas:i,styles:s,scripts:u}=l;if(i)for(let[x,v]of Object.entries(i))r+=`<meta http-equiv="${Gr(x)}" content="${Gr(v)}">`;if(s)for(let x of s)x&&(r+=`<link rel="stylesheet" type="text/css" href="${Gr(x)}">`);if(u)for(let x of u)x&&(r+=`<script type="text/javascript" src="${Gr(x)}"><\/script>`);return r}}function wo(l,r){r===void 0&&(r={});let{lang:i,headContent:s="",bodyContent:u=""}=r,x=i?` lang="${Gr(i)}"`:"";l.open(),l.write(`<!DOCTYPE html><html${x}><head><meta charset="utf-8">${ba(s)}</head><body>${ba(u)}</body></html>`),l.close()}let ex=typeof OffscreenCanvas<"u";function wa(l){return l?.preferOffscreen&&ex?new OffscreenCanvas(100,100):(l?.document??document).createElement("canvas")}function Ma(l){return wa(l).getContext("2d",l?.contextAttributes)}function Mo(l,r,i){let s=document.createElement("img");return l&&(s.src=l),s.style.width=r+"px",s.style.height=i+"px",s.setAttribute("width",String(r)),s.setAttribute("height",String(i)),s}function _o(l){let r=[];for(let i of l)try{for(let s of i.cssRules)s.constructor.name==="CSSFontFaceRule"&&r.push(s)}catch(s){console.warn(s)}return r.map(tx).join(`
`)}function tx(l){let r=l.parentStyleSheet?.href??l.parentStyleSheet?.ownerNode?.ownerDocument?.location?.href??window.location.href;return l.cssText.replaceAll(/url\("([^"]+)"\)/g,(i,s)=>`url("${new URL(s,r).href}")`)}async function hc(l){await Promise.allSettled(Array.from(l,async r=>{try{await r.load()}catch{}}))}function mn(l){l===void 0&&(l={});let r=l.preset,{parentNode:i=document.body,inheritFontFaces:s=r==="metrics"}=l,u=document.createElement("iframe");r&&(r==="hidden"||r==="metrics")&&Object.assign(u.style,{position:"absolute",left:"-5566px",top:"-5566px",width:"5566px",height:"5566px",opacity:"0",border:"0",overflow:"hidden","pointer-events":"none","z-index":"0"}),i.appendChild(u);let x=u.contentDocument;if(x&&(wo(x,{...l,headContent:[l.headContent,s&&i.ownerDocument?`<style>${Sh(_o(i.ownerDocument.styleSheets))}</style>`:void 0]}),r==="metrics")){let v=x.body.style;v["-moz-text-size-adjust"]="none",v["-webkit-text-size-adjust"]="none",v["text-size-adjust"]="none",x.fonts&&hc(x.fonts)}return u}function rx(l,r){r===void 0&&(r={});let i=l.open(r.url||"",r.target||"",r.features);return i&&wo(i.document,{...r,headContent:[r.headContent,r.inheritFontFaces?`<style>${Sh(_o(l.document.styleSheets))}</style>`:void 0]}),i}function ix(l,r){if(r.includes('"'))return"";let i=l.querySelector(`script[src*="${r}"]`);return i&&i.getAttribute("src")||""}let Ao=Symbol("synoCustomData");function nx(l,r,i){(l[Ao]||(l[Ao]=Object.create(null)))[r]=i}function ax(l,r){return l[Ao]?.[r]}function sx(l){let r=(l??document).getSelection();return r&&r.rangeCount?r.getRangeAt(0):null}function uc(l,r,i){i===void 0&&(i=r);let s=l.ownerDocument;if(!s)return new DOMRect(0,0,0,0);let u=s.createRange();u.setStart(l,r),u.setEnd(l,i);let x=r===i&&qh()?u.getClientRects()[0]:u.getBoundingClientRect();return u.detach(),x}function cc(l,r){try{let i=Array.from(l.querySelectorAll(r.selectorText));for(let s of(cr(l)&&l.matches(r.selectorText)&&i.push(l),i))s.setAttribute("style",`${r.style.cssText}${s.getAttribute("style")}`)}catch{}}function ox(l,r){let i;try{i=r.cssRules}catch(s){console.warn(s);return}for(let s=i.length-1;s>=0;--s){let u=i[s];u.constructor.name==="CSSStyleRule"&&cc(l,u)}}function dc(l,r,i,s){let u=(l instanceof Document?l:l.ownerDocument).createTreeWalker(l,i,{acceptNode:s||(()=>NodeFilter.FILTER_ACCEPT)});for(let x=u.nextNode();x!==null;x=u.nextNode())if(r(x))return}function lx(l,r){try{l.adoptNode(r)}catch{}return r}function hx(l){return(l&&l.nodeType)!=null}function pc(l,r){return l.nodeType===l.TEXT_NODE&&(l=l.parentNode),zs(l)&&(r=!0),r?l.getClientRects().length===0:!l.offsetParent}function ux(l,r){return!pc(l,r)}function cx(l,r){r!==l.previousSibling&&l.parentNode.insertBefore(r,l)}function So(l,r){r!==l.nextSibling&&l.parentNode.insertBefore(r,l.nextSibling)}function _a(l){let r=l.parentNode;r&&r.removeChild(l)}function Co(l){let r;if(l instanceof window.DocumentFragment)return l;let i=l.ownerDocument.createDocumentFragment();for(;r=l.firstChild;)i.appendChild(r);return i}function dx(l,r){l.appendChild(Co(r))}function px(l,r){l.insertBefore(Co(r),l.firstChild)}function Io(l,r){for(l=l.firstChild;r>0&&l;--r)l=l.nextSibling;return l}function gc(l,r){let i=[];for(;l&&l!==r;l=l.parentNode)i.push(Yr(l));return l===r?i:null}function gx(l,r,i){let s=gc(r,l);if(!s)return null;for(let u=s.length-1;u>=0&&i;--u)i=Io(i,u);return i}function fx(l,r){for(var i=arguments.length,s=Array(i>2?i-2:0),u=2;u<i;u++)s[u-2]=arguments[u];let x=document.createElement(l);if(r)for(let v in r)if(v==="style")x.style.cssText=r[v];else if(v==="inline_style"&&r[v])for(let P in r[v])x.style[P]=r[v][P];else r[v]!=null&&x.setAttribute(v,r[v]);for(let v=0;v<s.length;v++)(function P(j,F){if(typeof j=="string"&&(j=document.createTextNode(j)),Array.isArray(j))for(let q=0;q<j.length;q++)P(j[q],F);else j&&F.appendChild(j)})(s[v],x);return x}let fc="",vn=null;function yx(l){vn?vn.textContent+=l:fc+=l}function xx(){vn||((vn=document.createElement("style")).textContent=`/* ProseMirror CSS */
`+fc,document.head.insertBefore(vn,document.head.firstChild))}function pi(l,r){for(;l;){let i=l.parentNode;if(i===r)return l;l=i}return null}function mx(l,r){return(l=pi(l,r))?Yr(l):-1}function Yr(l){let r;for(r=-1;l;++r)l=l.previousSibling;return r}function gi(l){return l.nodeType===l.TEXT_NODE?l.length:l.childNodes.length}function vx(l,r){r?l.style.display="block":l.style.display="none"}function bx(l,r){l.style.opacity=`${r}`}function Mx(l,r,i){l.style.transform=`translate(${r}px, ${i}px)`}function yc(){if(U)return U;let l=mn({preset:"metrics"}),r=l.contentDocument;if(!r)throw Error("Content document of measurement iframe is not available.");let i=function(v){let P=v.createElement("div");return Object.assign(P.style,{margin:"0",padding:"0",lineHeight:"1",wordWrap:"normal",whiteSpace:"nowrap"}),P}(r),s=r.createElement("span"),u=function(v){let P=v.createElement("img");return P.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",P.width=1,P.height=1,Object.assign(P.style,{margin:"0",padding:"0",verticalAlign:"baseline"}),P}(r),x=function(v){let P=v.createElement("span");return P.textContent="​",P}(r);return s.append(u),i.append(s,x),r.body.append(i),U={iframe:l,container:i,rulerElement:s,rulerImage:u,targetElement:x}}let xc=Object.create(null);function mc(l){if(typeof l=="string")return l;{let{family:r,size:i}=l||{};return`${i&&typeof i=="number"?i:11}pt ${r||"Arial"}`}}function vc(l){return xc[l]||(xc[l]=Object.create(null))}function bc(l,r){let{container:i,rulerElement:s}=yc();i.style.font=l,s.style.verticalAlign=r;let{rulerImage:u,targetElement:x}=yc(),v=x.offsetTop,P=v+x.offsetHeight;return{textTop:v,textBottom:P,rulerBaseline:u.offsetTop+1}}function Oi(l){let r=mc(l),i=vc(r);return i.textOffsets||(i.textOffsets=function(s){let{textTop:u,textBottom:x,rulerBaseline:v}=bc(s,"");return{top:u-v,bottom:x-v}}(r))}function wc(l,r){let i=mc(l),s=vc(i),u=r==="super"?"superBaselineOffset":"subBaselineOffset";return s[u]||(s[u]=function(x,v){let{textTop:P,rulerBaseline:j}=bc(x,v),{top:F}=Oi(x);return j-(P-F)}(i,r))}function Mc(l,r,i){for(let s of["serif","sans-serif","monospace"]){let u="mmmmmmmmmmlli",x=`${i}px ${s}`;if(l.innerHTML=u,l.style.font=x,r.font=x,.5>Math.abs(l.getBoundingClientRect().width-r.measureText(u).width))return!0}return!1}function Po(l){if(!l)return"10px sans-serif";if(l.font)return l.font;let{fontStyle:r="",fontVariant:i="",fontWeight:s="",fontStretch:u="",fontSize:x="10px",fontFamily:v="sans-serif",lineHeight:P=""}=l,j=typeof x=="string"?x:`${x}px`,F=typeof P=="string"?P:`${P}`,q=typeof v=="string"?v:v.map(re=>((re=re.trim()).length>=2&&(re[0]!=="'"&&re[0]!=='"'||re.at(-1)!=="'"||re.at(-1)!=='"')&&(re=`"${re}"`),re)).join(","),J=[];return r&&J.push(r),i&&J.push(i),s&&J.push(s),u&&J.push(u),J.push(j),F&&J.push(`/ ${F}`),J.push(q),J.join(" ")}function _c(l){return{direction:l?.direction??"ltr",font:Po(l),fontStretch:l?.fontStretch??"normal"}}let Aa=null;class Ac{constructor(r){this.metrics=r}get actualBoundingBoxAscent(){return this.metrics.actualBoundingBoxAscent}get actualBoundingBoxDescent(){return this.metrics.actualBoundingBoxDescent}get actualBoundingBoxLeft(){return this.metrics.actualBoundingBoxLeft}get actualBoundingBoxRight(){return this.metrics.actualBoundingBoxRight}get fontBoundingBoxAscent(){return this.metrics.fontBoundingBoxAscent??this.metrics.actualBoundingBoxAscent}get fontBoundingBoxDescent(){return this.metrics.fontBoundingBoxDescent??this.metrics.actualBoundingBoxDescent}get width(){return this.metrics.width}get height(){return this.fontBoundingBoxAscent+this.fontBoundingBoxDescent}get actualWidth(){return this.metrics.actualBoundingBoxLeft+this.metrics.actualBoundingBoxRight}get actualHeight(){return this.metrics.actualBoundingBoxAscent+this.metrics.actualBoundingBoxDescent}}function Ni(l,r){var i;let s=(i=r)&&"measureText"in i?i:Aa||(Aa=Ma())?(Object.assign(Aa,_c(i)),Aa):null;return new Ac(s?s.measureText(l):{actualBoundingBoxAscent:0,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:0,fontBoundingBoxAscent:0,fontBoundingBoxDescent:0,width:0})}function Sc(l){let r=l.createElement("div");return Object.assign(r.style,{position:"absolute",left:"0",top:"0",margin:"0",padding:"0",wordWrap:"normal",whiteSpace:"nowrap"}),r}function To(l){let r=function(u){let x=u.createElement("span");return Object.assign(x.style,{verticalAlign:"baseline"}),x}(l),i=function(u){let x=u.createElement("img");return x.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",x.width=1,x.height=1,Object.assign(x.style,{margin:"0",padding:"0"}),x}(l),s=function(u){let x=u.createElement("span");return x.textContent="​",x}(l);return r.append(i,s),{inline:r,ruler:i,text:s}}function Cc(l,r){let i=Sc(l),{inline:s,ruler:u}=To(l),{inline:x,ruler:v}=To(l);return x.style.verticalAlign=r?"super":"sub",i.append(s,x),{line:i,baseRuler:u,scriptRuler:v}}let Ic=new Map;function Sa(l){let r={font:Po(l)},i=r.font,s=Ic.get(i);if(s)return s;let u=function(x){let{body:v,baselineLine:P,baselineRuler:j,baselineText:F,superBaseRuler:q,superScriptRuler:J,subBaseRuler:re,subScriptRuler:te}=function(){if(b)return b;let Se=mn({preset:"metrics"}),Re=Se.contentDocument;if(!Re)throw Error("Content document of measurement iframe is not available.");let{line:Be,ruler:Ue,text:Ze}=function(Zt){let tr=Sc(Zt),{inline:Rt,ruler:Ht,text:Dt}=To(Zt);return tr.append(Rt),{line:tr,ruler:Ht,text:Dt}}(Re),{line:lt,baseRuler:At,scriptRuler:ht}=Cc(Re,!0),{line:wt,baseRuler:Tt,scriptRuler:Xt}=Cc(Re,!1);return Re.body.append(Be,lt,wt),b={iframe:Se,body:Re.body,baselineLine:Be,baselineRuler:Ue,baselineText:Ze,superLine:lt,superBaseRuler:At,superScriptRuler:ht,subLine:wt,subBaseRuler:Tt,subScriptRuler:Xt}}();v.style.font=x.font;let ie=P.getBoundingClientRect().height,de=j.getBoundingClientRect().bottom,ce=F.getBoundingClientRect().height,xe=de-F.getBoundingClientRect().top,we=q.getBoundingClientRect().bottom-J.getBoundingClientRect().bottom,Me=re.getBoundingClientRect().bottom-te.getBoundingClientRect().bottom;return{height:ie,lineBoundingBoxAscent:de,lineBoundingBoxDescent:ie-de,textHeight:ce,textBoundingBoxAscent:xe,textBoundingBoxDescent:ce-xe,superBaselineAscent:we,superBaselineDescent:-we,subBaselineAscent:Me,subBaselineDescent:-Me}}(r);return Ic.set(i,u),u}N(pr,"dom_node",function(){return be.fly(this.dom)}),N(window.Element,"$node",function(){return be.fly(this)});let Ca=Symbol("PmElement"),Ia=new WeakMap,Pc=new WeakMap,Tc=new WeakMap,ko=new WeakMap,kc=new WeakMap,Lc=new WeakMap,Dc=new WeakMap,Rc=new WeakMap,Lo=new WeakMap,Do=new WeakMap,Ro=new WeakMap,bn=new WeakMap;function Xe(l){return be.fly(l,Ax)}class be{constructor(r){this.dom=r,this._child_container=null}get key(){return this.dom[Ca]||(this.dom[Ca]=Object.create(null))}reset(r){r&&(this.dom=r),this._child_container=null}get isPmElement(){return this.isPmContent||this.isNodeElement||this.isPseudoElement||this.isLineElement}get isPmContent(){return this.dom.nodeType===this.dom.ELEMENT_NODE&&this.dom.classList.contains("ProseMirror-content")}get isOffsetElement(){return!isNaN(parseInt(this.dom.getAttribute("pm-size")??""))}get isNodeElement(){return this.isOffsetElement&&!this.isLineElement}get isPseudoElement(){return this.isPageElement}get isPageElement(){return this.dom.nodeType===this.dom.ELEMENT_NODE&&this.dom.classList.contains("syno-o-doc-pm-page")}get isLineElement(){return this.dom.nodeType===this.dom.ELEMENT_NODE&&this.dom.classList.contains("syno-o-doc-pm-line")}get isTextElement(){return this.dom.getAttribute("data-syno-inline-wrapper")==="text"}get isInlineObjectElement(){return this.dom.getAttribute("data-syno-inline-wrapper")==="non_text"}get isUnwrappedInlineElement(){return this.dom.hasAttribute("data-syno-inline")}get isFirstSegment(){return!this.getPrevSegment()}get isLastSegment(){return!this.getNextSegment()}get childContainer(){return this.getChildContainer()}get parentNode(){let r=this.dom.parentElement;for(;r&&!Xe(r).isPmElement;)r=r.parentElement;return r}get childCount(){let r=0;return this.forEach(()=>{++r}),r}get firstChild(){let r=this.childContainer?.firstElementChild;return r?Xe(r).isPmElement?r:Xe(r).nextSibling:null}get lastChild(){let r=this.childContainer?.lastElementChild;return r?Xe(r).isPmElement?r:Xe(r).previousSibling:null}child(r){let i=this.firstChild;return i&&Xe(i).sibling(r)}get previousSibling(){let r=this.dom.previousElementSibling;for(;r&&!Xe(r).isPmElement;)r=r.previousElementSibling;return r}get nextSibling(){let r=this.dom.nextElementSibling;for(;r&&!Xe(r).isPmElement;)r=r.nextElementSibling;return r}sibling(r){let i=this.dom;if(r>0)for(;i&&r>0;)i=Xe(i).nextSibling,--r;else if(r<0)for(;i&&r<0;)i=Xe(i).previousSibling,++r;return i}forEach(r,i,s){let u=this.firstChild,x=0;for(;u;){let v=Xe(u).nextSibling,P=r.call(i,u,x);if(s&&P!=null)return P;u=v,++x}}forEachDOM(r,i,s){let u=this.childContainer?.firstChild,x=0;for(;u;){let v=u.nextSibling,P=r.call(i,u,x);if(s&&P!=null)return P;u=v,++x}}get elementChildCount(){let r=0;return this.forEachElement(()=>{++r}),r}get firstElementChild(){return this._elementIterator.dom}get lastElementChild(){return this._elementIterator.end()}elementChild(r){return this.forEachElement((i,s)=>{if(s===r)return i},null,!0)}elementInfoAtOffset(r,i){i===void 0&&(i=d);let s=i.bias??1,u=i.bound;return this.forEachElement((x,v,P)=>{let j=Xe(x).getOffset(),F=j+Xe(x).getSize();if(r<F||s<0&&r===F||u&&!P.dom)return{dom:x,offset:j,size:F-j,index:v}},null,!0)}elementInfoAtIndex(r){let i=this.elementChild(r);return i?{dom:i,offset:Xe(i).getOffset(),size:Xe(i).getSize(),index:r}:null}forEachElement(r,i,s){let u=0;return this._elementIterator.forEach((x,v)=>r.call(i,x,u++,v),null,s)}forAll(r,i,s){let u=this.getFirstSegment();for(;u;){let x=Xe(u).getNextSegment(),v=r.call(i,u);if(s&&v!=null)return v;u=x}}clear(){let{dom:r}=this;r[Ca]&&(r[Ca]=void 0),this.reset(document.body)}removeAll(){let r=this.getFirstSegment();Xe(r).forAll(_a,f),Xe(r).forAll(function(i){let s=Xe(i).childContainer;if(s){let u=null;for(;u=s.firstElementChild;)Xe(u).isFirstSegment?Xe(u).removeAll():u.remove()}Xe(i).clear()})}sync(r,i){this.forAll(s=>{Xe(s)[r](i)})}setClonedInfo(r){let{dom:i}=this,s=this.constructor.get(i);s.setOffset(Xe(r).getOffset()),s.setSize(Xe(r).getSize());let u=Xe(r).getNode();u!==void 0&&s.setNode(u),s._setContentWidth(Xe(r).getContentWidth()),s._setContentHeight(Xe(r).getContentHeight());let x=Xe(r)._getPaddingWidth();x!==void 0&&s._setPaddingWidth(x);let v=Xe(r)._getPaddingHeight();v!==void 0&&s._setPaddingHeight(v);let P=bn.get(Xe(r).key);P!=null&&(s.dom.style.paddingTop=P)}getDatas(){return Ia.get(this.key)}getData(r){let i=Ia.get(this.key);return i&&i[r]}setData(r,i){let{key:s}=this,u=Ia.get(s);u||(u=Object.create(null),Ia.set(s,u)),u[r]=i}syncData(r,i){return this.getData(r)!==i&&(this.setData(r,i),!0)}getVersion(){return Pc.get(this.key)??0}bumpVersion(){let{key:r}=this;Pc.set(r,this.getVersion()+1)}getChildContainer(){return this._child_container||(this._child_container=Tc.get(this.key)||(this.dom.hasAttribute("pm-container")||this.isPmContent?this.dom:this.dom.querySelector("[pm-container]"))),this._child_container}setChildContainer(r){r.setAttribute("pm-container",String(!0)),Tc.set(this.key,r)}getOffset(){let r=this.dom.getAttribute("pm-offset");return r&&parseInt(r)||0}setOffset(r){this.dom.setAttribute("pm-offset",String(r))}syncOffset(r){this.sync("setOffset",r)}getSize(){let r=this.dom.getAttribute("pm-size");return r&&parseInt(r)||0}setSize(r){this.dom.setAttribute("pm-size",String(r))}syncSize(r){this.sync("setSize",r)}getNode(){return ko.get(this.key)}getNodeType(){return ko.get(this.key)?.type??null}setNode(r){ko.set(this.key,r)}syncNode(r){this.sync("setNode",r)}_getPaddingWidth(){return Dc.get(this.key)}_setPaddingWidth(r){Dc.set(this.key,r)}_getPaddingHeight(){return kc.get(this.key)}_setPaddingHeight(r){kc.set(this.key,r)}getLeftPaddingWidth(){return this._getPaddingWidth()?.[0]??0}getRightPaddingWidth(){return this._getPaddingWidth()?.[1]??0}getPaddingWidth(){let r=this._getPaddingWidth();return r?r[0]+r[1]:0}getTopPaddingHeight(){return this._getPaddingHeight()?.[0]??0}getBottomPaddingHeight(){return this._getPaddingHeight()?.[1]??0}getPaddingHeight(){let r=this._getPaddingHeight();return r?r[0]+r[1]:0}_calcTablePaddingWidth(){let r=this.dom,i=0,s=0;return Xe(r).forEach(u=>{let x=Xe(u).getNode();x&&(i=Math.max(i,x.state.border.left/2),s=Math.max(s,x.state.border.right/2))}),[i,s]}_calcTablePaddingHeight(){let r=Xe(this.dom).childContainer,i=[0,0];if(r){let s;s=Xe(r.firstElementChild)?.getNode(),i[0]=s?s.state.border.top/2:0,s=Xe(r.lastElementChild)?.getNode(),i[1]=s?s.state.border.bottom/2:0}return i}calcPaddingWidth(r){r===void 0&&(r=!1);let i=this.getNode();return i?i.type.isTable?this._calcTablePaddingWidth():[i.type.getLeftPaddingWidth(i),i.type.getRightPaddingWidth(i)]:r?[0,0]:null}calcPaddingHeight(r){r===void 0&&(r=!1);let i=this.getNode();return i?i.type.isTable?this._calcTablePaddingHeight():[i.type.getTopPaddingHeight(i),i.type.getBottomPaddingHeight(i)]:r?[0,0]:null}updatePaddingSize(r){r===void 0&&(r=!1);let{dom:i}=this,s=Xe(i).calcPaddingWidth(r);s&&Xe(i)._setPaddingWidth(s);let u=Xe(i).calcPaddingHeight(r);u&&Xe(i)._setPaddingHeight(u)}syncPaddingSize(r){r===void 0&&(r=!1);let{dom:i}=this;if(Xe(i).getNodeType()?.is("Table"))Xe(i).sync("updatePaddingSize",r);else{let u=Xe(i).calcPaddingWidth(r);Xe(i).sync("_setPaddingWidth",u);let x=Xe(i).calcPaddingHeight(r);Xe(i).sync("_setPaddingHeight",x)}}_setContentWidth(r){let{key:i}=this;this.getContentWidth()!==r&&Rc.set(i,r)}_setContentHeight(r){let{dom:i,key:s}=this,{childContainer:u}=this;if(this.getContentHeight()!==r){for(Lc.set(s,r);u&&u!==i&&u.tagName==="SPAN";)u=u.parentElement;u&&u.tagName!=="SPAN"&&(u.style.height=r+"px")}}getContentWidth(){return Rc.get(this.key)??0}getWidth(){return this.getContentWidth()+this.getPaddingWidth()}getContentHeight(){return Lc.get(this.key)??0}getHeight(){return this.getContentHeight()+this.getPaddingHeight()}_updateTableRowSpanInfo(r){let{dom:i}=this,s=r?r.clone():new se,u=Xe(i).getData("table_row_height")??0;if(s.length){let v=-1;s.forEach(P=>{let j=P.value;if(j.span!==1)return!0;v=Math.max(v,j.height),P.unlink()},null,{from_start:!0,early_return:!0}),u=Math.max(u,v)}Xe(i)._setContentHeight(u);let x=Xe(i).getData("table_row_spans");if(x){let v=0,P=x.length;for(s.forEach(j=>{let F=j.value.span;for(;x[v].span<=F;)if(s.insertBefore(x[v]),++v===P)return!0},null,{from_start:!0,early_return:!0});v<P;++v)s.append(x[v])}return s.forEach(v=>{let P=v.value;P.height<=u?v.unlink():(P=v.value=Object.assign(Object.create(null),P),--P.span,P.height-=u)},null,{from_start:!0}),Xe(i).setData("table_row_span_list",s),s}updateTableRowSpanInfo(){let r,{dom:i}=this,s=Xe(i).previousSibling;if(s&&!(r=Xe(s).getData("table_row_span_list")))throw Error("There is no span list in previous table row.");Xe(i)._updateTableRowSpanInfo(r)}_updateTableRowContentHeight(){let r,i,{dom:s}=this,u=Xe(s).getPrevSegment()?0:Xe(s).getNode()?.getAttrValue("height")??0,x=u;if(Xe(s).forEach(v=>{let P=Xe(v).getNode();if(!P||!P.type.isTableCell||P.state.display===!1)return;let j=Xe(v).getHeight(),F=v.tagName==="TD"?v.rowSpan:1;F===1?x=Math.max(j,x):(i||(i=new Map),i.set(F,Math.max(j,i.get(F)??0)))}),i){for(let[v,P]of(r=[],i))r.push({span:v,height:P});r.sort((v,P)=>v.span-P.span)}Xe(s).setData("table_row_spans",r),Xe(s).setData("table_row_height",x),Xe(s).setData("table_row_min_height",u),Xe(s)._setContentHeight(x)}_updateTableContentHeight(){let{dom:r}=this,i=[];Xe(r).forEachDOM(u=>{cr(u)&&Xe(u).getNodeType()?.is("TableRow")&&i.push(u)});let s=i.length;if(s){let u;for(let x=0;x<s;++x)u=Xe(i[x])._updateTableRowSpanInfo(u);if(u?.length){let x=0;u.forEach(P=>{x=Math.max(x,P.value.height)},null,{from_start:!0});let v=i[s-1];x+=Xe(v).getContentHeight(),Xe(v)._setContentHeight(x)}}Xe(r)._updateNodeContentHeight()}_updateNodeContentHeight(){let{dom:r}=this,i=0;Xe(r).forEachDOM(s=>{i+=Xe(s)?.getHeight()??0}),Xe(r)._setContentHeight(i)}_updateLeafContentHeight(){this._setContentHeight(0)}_updateContentWidth(){let{dom:r}=this,i=Xe(r).getNode();this._setContentWidth(i?.state.text_rect_info?.width||0)}updateContentSize(){let r=this.getNodeType();r&&(this._updateContentWidth(),r.isLeaf?this._updateLeafContentHeight():r.is("Table")?this._updateTableContentHeight():r.is("TableRow")?this._updateTableRowContentHeight():this._updateNodeContentHeight())}syncContentSize(){this.sync("updateContentSize")}syncDrawSize(){let{dom:r}=this;this.getNodeType()?.needHeightCalculating&&(Xe(r).syncPaddingSize(),Xe(r).syncContentSize())}getPrevSegment(){return Do.get(this.key)??null}getNextSegment(){return Lo.get(this.key)??null}getSegment(r){let i=this;if(r>0)for(;i&&r>0;)i=Xe(i.getNextSegment()),--r;else if(r<0)for(;i&&r<0;)i=Xe(i.getPrevSegment()),++r;return i&&i.dom}getFirstSegment(){let r=this.dom,i=this.getPrevSegment();for(;i;)r=i,i=Xe(i).getPrevSegment();return r}getLastSegment(){let r=this.dom,i=this.getNextSegment();for(;i;)r=i,i=Xe(i).getNextSegment();return r}getContainingSegment(r){let i=this.getFirstSegment(),s=r;for(;s&&Xe(s).getFirstSegment()!==i;s=s.parentElement);return s}getAllSegments(){let r=[];return this.forAll(i=>{r.push(i)}),r}insertNextSegment(r){let i=this.dom,s=this.getNextSegment();this.constructor.linkSegment(i,r),s&&this.constructor.linkSegment(r,s)}removeNextSegment(){let r=this.getNextSegment();r&&Xe(r).clearSegment()}clearSegment(){let r=this.dom,i=this.getPrevSegment(),s=this.getNextSegment();r.remove(),this.constructor.linkSegment(i,s),Xe(r).clear()}static linkSegment(r,i){if(r){let s=Xe(r).key;i?Lo.set(s,i):Lo.delete(s)}if(i){let s=Xe(i).key;r?Do.set(s,r):Do.delete(s)}}getBlockerPadding(){return Ro.get(this.key)??0}setBlockerPadding(r){if(!r)return void this.removeBlockerPadding();let{dom:i,key:s}=this,u=bn.get(s);u==null&&(u=i.style.paddingTop,bn.set(s,u)),Ro.set(s,r),i.style.paddingTop=(parseFloat(u)||0)+r+"px"}removeBlockerPadding(){let{dom:r,key:i}=this,s=bn.get(i);s!=null&&(bn.delete(i),Ro.delete(i),r.style.paddingTop=s)}static get(r,i){return r&&cr(r)?i?(r!==i.dom&&i.reset(r),i):new this(r):null}static fly(r,i){return i===void 0&&(i=_x),this.get(r,i)}static adapt(r,i){let s;if(!r)return null;if(cr(r))s=r;else{let u=r.parentElement;if(!u)return null;s=u}return Xe(s).isPmElement||(s=Xe(s).parentNode),s&&this.get(s,i)}}let _x=be.get(document.body),Ax=be.get(document.body);N(be,"_elementIterator",function(){return new Oo(this.dom)});let Sx=be.get(document.body);function Sr(l){return be.fly(l,Sx)}class Oc{constructor(r,i=!1){i||(r=Sr(r).getFirstSegment()),this.root=r,this.parent=r,this.child_container=null,this.updateChildContainer(),this.dom=this.child_container&&Sr(this.child_container).firstChild,this.ensureDOM()}updateChildContainer(){this.child_container=this.parent&&Sr(this.parent).childContainer}checkDOM(r){return!0}ensureDOM(){for(;!this.dom||!this.checkDOM(this.dom);)if(this.dom)this.dom=Sr(this.dom).nextSibling;else if(this.parent)this.parent=Sr(this.parent).getNextSegment(),this.updateChildContainer(),this.dom=this.child_container&&Sr(this.child_container).firstChild;else break}next(){let r=this.dom;return r&&(this.dom=Sr(r).nextSibling,this.ensureDOM()),r}end(){let r=null;for(;this.dom;)r=this.next(...arguments);return r}forEach(r,i,s){for(;this.dom;){let u=this.dom;this.next();let x=r.call(i,u,this);if(s&&x!=null)return x}}}class Nc extends Oc{checkDOM(r){return Sr(r).isFirstSegment||!!Sr(r).getNodeType()?.is("Text")}}class Oo extends Nc{constructor(r,i=!1){Sr(r).getNodeType()?.pseudoType&&(r=new Nc(r,i).dom||r),super(r,i)}nextToOffset(r,i){i===void 0&&(i=1);let s=null;for(;s=this.next();){let u=Sr(s),x=u.getOffset()+u.getSize();if(r<x||i<0&&r===x)break}return s}}class jc{constructor(r,i){this.options=i||{},this.from=r,this.removed=!1}remove(){this.options.onRemove&&this.options.onRemove(this.from,Math.max(this.to,this.from)),this.from=this.to=null,this.removed=!0}getPos(r){}getRangeSorterObjs(){}markDirty(r){}map(r){return!0}}class Cx extends jc{constructor(r,i,s){super(r,s),this.to=i}get isMarkedRange(){return!0}getPos(r){return r==="open"?this.from:this.to}getRangeSorterObjs(){return[{type:"open",at:this.from,range:this},{type:"close",at:this.to,range:this}]}markDirty(r){this.options.className&&r.markRangeDirty(this.from,this.to)}map(r){return this.options.onModified&&r.intersect(this.from,this.to)&&this.options.onModified(this.from,this.to),this.from=r.map(this.from,this.options.inclusiveLeft?-1:1),this.to=r.map(this.to,this.options.inclusiveRight?1:-1),(this.options.removeWhenEmpty===!1||!(this.from>=this.to))&&(this.from>this.to&&(this.to=this.from),!0)}}class Ix extends jc{get isMarkedNode(){return!0}getPos(r){return this.from}getRangeSorterObjs(){return[{type:"node",at:this.from,range:this}]}map(r){let i=r.mapNodeResult(this.from,1);return!i.deleted&&(this.from=i.pos,!0)}}class Px{constructor(){this.sorted=[]}find(r){let i=0,s=this.sorted.length;for(;;){if(s<i+10){for(let x=i;x<s;x++)if(this.sorted[x].at>=r)return x;return s}let u=i+s>>1;this.sorted[u].at>r?s=u:i=u}}insert(r){this.sorted.splice(this.find(r.at),0,r)}remove(r,i){let s=this.find(r);for(let u=0;;u++){let x=s-u-1,v=s+u;if(x>=0&&this.sorted[x].range==i)return void this.sorted.splice(x,1);if(v<this.sorted.length&&this.sorted[v].range==i)return void this.sorted.splice(v,1)}}resort(){for(let r=0;r<this.sorted.length;r++){let i=this.sorted[r],s=i.at=i.range.getPos(i.type),u=r;for(;u>0&&this.sorted[u-1].at>s;)this.sorted[u]=this.sorted[u-1],this.sorted[--u]=i}}}class Ec{constructor(r){this.pm=r,this.ranges=[],this.sorted=new Px}removeAll(){for(let r of this.ranges)this._removeRange(r);this.ranges=[]}addRange(r){for(let i of(this.ranges.push(r),r.getRangeSorterObjs()))this.sorted.insert(i);r.markDirty(this.pm)}removeRange(r){let i=this.ranges.indexOf(r);i>-1&&(this.ranges.splice(i,1),this._removeRange(r))}_removeRange(r){for(let i of r.getRangeSorterObjs())this.sorted.remove(i.at,r);r.markDirty(this.pm),r.remove()}transform(r){for(let i=0;i<this.ranges.length;i++){let s=this.ranges[i];!s.map(r)&&(this.removeRange(s),i--)}this.sorted.resort()}activeRangeTracker(){return new Tx(this.sorted.sorted)}}function Vc(l){let r=l.range;return r.options.className&&r.from!=r.to||r.options.elementBefore&&l.type=="open"||r.options.elementAfter&&l.type=="close"}class Tx{constructor(r){this.sorted=r,this.pos=0,this.current=[],this.element=null,this.find_idx=0}reset(){this.pos=0,this.current.length=0,this.element=null,this.find_idx=0}advanceTo(r){let i;for(this.pos>0&&this.sorted[this.pos-1].at>r&&this.reset(),this.element=null;this.pos<this.sorted.length&&(i=this.sorted[this.pos]).at<=r;){if(Vc(i)){let s=i.range.options.className,u=i.range.options.elementBefore;s&&(i.type==="open"?this.current.push(s):i.type==="close"&&this.current.splice(this.current.indexOf(s),1)),u&&i.type=="open"&&i.at==r&&(this.element=u)}this.pos++}}nextChangeBefore(r){for(;;){if(this.pos==this.sorted.length)return-1;let i=this.sorted[this.pos];if(Vc(i))return i.at>=r?-1:i.at;this.pos++}}getRangesAt(r){let i=[];for(;this.find_idx<this.sorted.length;++this.find_idx)if(this.sorted[this.find_idx].at===r)i.push(this.sorted[this.find_idx].range);else if(this.sorted[this.find_idx].at>r)break;return i}}class Bc{constructor(r){this.tr=r}get doc(){return this.tr.doc}get commentStore(){return this.tr.commentStore}get uid(){return this.tr.getUserId()}step(r,i){this.tr.step(r,{...i,revising:!1})}exec(r,i){return this.step(r,i),!0}accept(r,i){return this.handleSuggestionId(r,!0,i)}reject(r,i){return this.handleSuggestionId(r,!1,i)}handleSuggestionId(r,i,s){let u=this.commentStore.getBy(r);return!!u&&this.handleSuggestion(u,i,s)}handleSuggestion(r,i,s){return!!r.isSuggestion()&&(this.tr.resolveComment(r.id),!0)}static exec(r,i,s){return new this(r).exec(i,s)}static accept(r,i,s){return new this(r).accept(i,s)}static reject(r,i,s){return new this(r).reject(i,s)}}class ii{constructor(r,i=!1,s){this.pos=r,this.deleted=!!i,this.recover=s}}class No{constructor(r,i){this.from=r.pos,this.to=i.pos,this.deleted=this.checkDeleted(r,i)}get empty(){return this.from===this.to}checkDeleted(r,i){return r.deleted&&i.deleted}}class jo extends No{checkDeleted(r,i){return r.deleted||i.deleted||this.from>=this.to}}let Eo=Object.create(null);class wn{static#e=this.mapType="";static#t=this.mapId="";constructor(){}toJSON(){let r={id:this.constructor.mapId};for(let i in this)if(Object.prototype.hasOwnProperty.call(this,i)){let s=this[i];r[i]=s&&typeof s=="object"&&typeof s.toJSON=="function"?s.toJSON():s}return r}static fromJSON(r){return new this}static deserializeJSON(r,i){let s=this.findMapConstructor(r.id).fromJSON(r);if(i&&i!==s.constructor.mapType)throw RangeError(`No ${i} map is named \`${r.id}\`.`);return s}static findMapConstructor(r){let i=Eo[r];if(!i)throw RangeError(`No step map is named \`${r}\`.`);return i}static register(){let r=this.mapId;if(!r)throw RangeError("Step map id should be defined.");if(r in Eo)throw RangeError(`Duplicate use of step map id \`${r}\`.`);Eo[r]=this}}function Mn(l,r,i,s){return s===void 0&&(s=!1),l!==r?l-r:s?i:0}class Vo extends wn{constructor(r,i=!1){super(),this.ranges=this.constructor.ensureRanges(r),this.inverted=!!i}isMappable(){return!!this.ranges.length}invert(){return new this.constructor(this.ranges,!this.inverted)}static fromJSON(r){return new this(r.ranges,r.inverted)}static ensureRanges(r){let i=r.length%3;return i!==0&&(r=r.slice(0,r.length-i)),r}}class zc extends Vo{forEach(r,i){let{ranges:s,inverted:u}=this,x=u?2:1,v=u?1:2,P=0;for(let j=0,F=s.length;j<F;j+=3){let q=s[j],J=q-(u?P:0),re=q+(u?0:P),te=s[j+x],ie=s[j+v];if(r.call(i,J,te,re,ie,P))return;P+=ie-te}}run(r,i,s,u,x){i=V(i,!1,1);let{ranges:v,inverted:P}=this,j=P?2:1,F=P?1:2,q=0;for(let J=0,re=v.length;J<re;J+=3){let te=v[J]-(P?q:0),ie=Mn(r,te,i,s);if(ie<0)break;let de=v[J+j],ce=v[J+F],xe=te+de,we=Mn(r,xe,i,s);if(we<=0){let Me;Me=de===0?i:r===te?-1:r===xe?1:i;let Se=te+q+(Me<0?0:ce);return u?Se:new ii(Se,ie>0&&we<0,J/3+(r-te)*65536)}q+=ce-de}return r+=q,u?r:new ii(r)}static appendRange(r,i,s,u){let x=r.length-3;x>=0&&r[x]+r[x+1]===i?(r[x+1]+=s,r[x+2]+=u):r.push(i,s,u)}}class kx extends Vo{run(r,i,s,u,x){let v=V(i,!1,1);return this.forEach((P,j,F,q)=>{let J=this.constructor.calcRangeInfo(P,j,F,q);if(!J)return;let{from:re,to:te,split:ie}=J;if(0>=Mn(r,re,v,s)||Mn(r,te,v,s)>=0)return;let de=Mn(r,ie,v,s);de<0?r+=te-ie:de>0?r-=ie-re:r=J.forward?te:re},this),u?r:new ii(r)}forEach(r,i,s){let u,x,v,{ranges:P,inverted:j}=this;j?(u=P.length-3,x=-3,v=-3):(u=0,x=P.length,v=3);for(let F=u;F!==x;F+=v){let q=r.call(i,P[F],P[F+1],P[F+2],j);if(s&&q!=null)return q}}static invertRange(r,i,s){let u,x,v=r+i;if(s<r)u=s,x=v;else{if(!(s>v))return null;u=s-i,x=r}return[u,i,x]}static calcRangeInfo(r,i,s,u){let x,v,P,j;if(u){let q=this.invertRange(r,i,s);if(!q)return null;[r,i,s]=q}let F=r+i;if(s<r)x=s,v=F,P=r,j=!0;else{if(!(s>F))return null;x=r,v=s,P=F,j=!1}return{start:r,size:i,target:s,end:F,from:x,to:v,split:P,forward:j}}}class Lx extends Vo{constructor(r){super([],r)}invert(){return new this.constructor(!this.inverted)}run(r,i,s,u,x){return u?0:new ii(0,!0)}}let Fc=l=>class extends(l||class{}){isMappable(){return!0}mapRange(r,i){return new No(this.mapResult(r,1),this.mapResult(i,-1))}mapResult(r,i){throw Error("Override me.")}map(r,i){throw Error("Override me.")}mapNodeRange(r,i){return new jo(this.mapNodeResult(r,1),this.mapNodeResult(i,-1))}mapNodeResult(r,i){return this.mapResult(...arguments)}mapNode(r,i){return this.map(...arguments)}invert(){throw Error("Override me.")}intersect(r,i){return!1}},Gc=l=>class extends Fc(l){getPosMaps(){return[]}intersect(r,i){let s=this.getPosMaps();for(let u=0,x=s.length;u<x;++u){let v=s[u];if(v.intersect(r,i))return!0;r=v.map(r,-1),i=v.map(i,1)}return!1}},Bo=l=>class extends Fc(l){static#e=this.mapType="pos"},Dx=l=>class extends Bo(l){isMappable(){return!!this.ranges.length}invert(){return new this.constructor(this.ranges,!this.inverted)}};function zo(l,r,i,s){return l!==r?l-r:s?i:0}class kt extends Dx(zc){static#e=this.mapId="replacePos";constructor(r,i){super(r,i)}recover(r){let i=0,s=65535&r;if(3*s>=this.ranges.length)return NaN;if(!this.inverted)for(let u=0;u<s;u++)i+=this.ranges[3*u+2]-this.ranges[3*u+1];return this.ranges[3*s]+i+(r-(65535&r))/65536}mapResult(r,i){return this.run(r,i,!1,!1)}map(r,i){return this.run(r,i,!1,!0)}mapNodeResult(r,i){return this.run(r,i,!0,!1)}mapNode(r,i){return this.run(r,i,!0,!0)}touches(r,i){let s=0,u=65535&i,x=this.inverted?2:1,v=this.inverted?1:2;for(let P=0;P<this.ranges.length;P+=3){let j=this.ranges[P]-(this.inverted?s:0);if(j>r)break;let F=this.ranges[P+x];if(r<=j+F&&P==3*u)return!0;s+=this.ranges[P+v]-F}return!1}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}intersect(r,i){let s=0,u=this.inverted?2:1,x=this.inverted?1:2;for(let v=0;v<this.ranges.length;v+=3){let P=this.ranges[v]-(this.inverted?s:0);if(P>r&&P>i)break;let j=this.ranges[v+u],F=this.ranges[v+x],q=P+j;if(r<=q||i<=q)return!0;s+=F-j,r+=s,i+=s}return!1}static create(r,i){return r.length?new this(r,i):this.empty}}kt.empty=new kt([]),kt.register();class fr extends Bo(wn){static#e=this.mapId="shiftPos";constructor(r){if(super(),!r)return;let i=r.length,s=[],u=[];for(let P=0;P<i;P+=3){let j=r[P],F=r[P+1],q=r[P+2];s.push([j,F,q]),u.push([q,F,j])}let x=(P,j)=>P[0]-j[0],v=(P,j)=>(P.push(...j),P);this.oldRanges=s.sort(x).reduce(v,[]),this.newRanges=u.sort(x).reduce(v,[])}static from(r,i){let s=new fr;return s.oldRanges=r,s.newRanges=i,s}isMappable(){return!!this.oldRanges.length}mapResult(r,i){return this.run(r,i,!1,!1)}map(r,i){return this.run(r,i,!1,!0)}mapNodeResult(r,i){return this.run(r,i,!0,!1)}mapNode(r,i){return this.run(r,i,!0,!0)}run(r,i,s,u){let x=this.oldRanges.length,v=0;for(let P=0;P<x;P+=3){let j=this.oldRanges[P];if(0>=zo(r,j,i,s))break;let F=this.oldRanges[P+1];if(0>zo(r,j+F,i,s)){let q=this.oldRanges[P+2]+(r-j);return u?q:new ii(q)}v+=-F}r+=v;for(let P=0;P<x;P+=3){let j=this.newRanges[P];if(0>zo(r,j,i,!0))break;r+=this.newRanges[P+1]}return u?r:new ii(r)}invert(){return fr.from(this.newRanges,this.oldRanges)}toString(){return JSON.stringify(this.oldRanges)+`
`+JSON.stringify(this.newRanges)}toJSON(){return{id:this.constructor.mapId,oldRanges:this.oldRanges,newRanges:this.newRanges}}static fromJSON(r){return this.from(r.oldRanges,r.newRanges)}}fr.empty=fr.from([],[]),fr.register();class ji extends Bo(wn){static#e=this.mapId="groupPos";constructor(r,i){if(super(),!r)return;let s=[],u=i;for(let v=0;v<r.length;++v){let P=r[v],j=P.pos,F=P.node.nodeSize;s.push(j,F,null),j<i&&(u-=F)}let x=u;for(let v=0;v<s.length;v+=3)s[v+2]=x,x+=s[v+1];this.posMap=new kt([u,0,1,x,0,1]),this.shiftPosMap=new fr(s),this.group=!0}static from(r,i,s){let u=new ji;return u.posMap=r,u.shiftPosMap=i,u.group=!!s,u}isMappable(){return this.posMap.isMappable()||this.shiftPosMap.isMappable()}mapResult(r,i){let s;return this.group?(r=this.shiftPosMap.map(r,i),s=this.posMap.mapResult(r,i)):(s=this.posMap.mapResult(r,i)).pos=this.shiftPosMap.map(s.pos,i),s}map(r,i){return this.group?(r=this.shiftPosMap.map(r,i),r=this.posMap.map(r,i)):(r=this.posMap.map(r,i),r=this.shiftPosMap.map(r,i)),r}mapNodeResult(r,i){let s;return this.group?(r=this.shiftPosMap.mapNode(r,i),s=this.posMap.mapNodeResult(r,i)):(s=this.posMap.mapNodeResult(r,i)).pos=this.shiftPosMap.mapNode(s.pos,i),s}mapNode(r,i){return this.group?(r=this.shiftPosMap.mapNode(r,i),r=this.posMap.mapNode(r,i)):(r=this.posMap.mapNode(r,i),r=this.shiftPosMap.mapNode(r,i)),r}recover(r){return this.posMap.recover(r)}touches(r,i){return this.posMap.touches(r,i)}invert(){return ji.from(this.posMap.invert(),this.shiftPosMap.invert(),!this.group)}toString(){return(this.group?"group":"ungroup")+`
`+JSON.stringify(this.posMap)+`
`+JSON.stringify(this.shiftPosMap)}toJSON(){return{id:this.constructor.mapId,posMap:this.posMap?.toJSON(),shiftPosMap:this.shiftPosMap?.toJSON(),group:this.group}}static fromJSON(r){return this.from(r.posMap&&wn.deserializeJSON(r.posMap),r.shiftPosMap&&wn.deserializeJSON(r.shiftPosMap),r.group)}}function Hc(l,r,i,s,u){let x=s?"mapNode":"map";for(let v=u||0;v<l.length;v++)r=l[v][x](r,i);return r}function Pa(l,r,i,s,u){let x=!1,v=s?"mapNodeResult":"mapResult";for(let P=u||0;P<l.length;P++){let j=l[P][v](r,i);r=j.pos,j.deleted&&(x=!0)}return new ii(r,x)}function Wc(l,r,i,s,u){return new(s?jo:No)(Pa(l,r,1,s,u),Pa(l,i,-1,s,u))}function Fo(l){return O(l,"map",function(r,i,s,u,x,v){return x||!this.inverted==!v?r:this._map(r,i,s,u)},!1),O(l,"_map",function(r,i,s,u){return k()},!1),O(l,"invert",function(){return k()},!1),l.mapType="custom",l}function Go(l){O(l,"invert",function(){return new this.constructor(this.pos,this.ranges,!this.inverted)}),O(l,"_map",function(i){if(!i)return null;Array.isArray(i)||(i=[i]);for(let s=0,u=i.length;s<u;++s){let x=i[s],v=this.run(x.index,x.bias,!x.deleted&&x.sticky,!1);x.index=v.pos,v.deleted&&(x.deleted=!0)}return i});let r=Object.prototype.hasOwnProperty.call(l.prototype,"map");if(Fo(l),!r){let i=l.prototype.map;O(l,"map",function(s,u,x,v,P,j){return u!==this.pos?s:i.apply(this,arguments)},!0)}return l}ji.empty=ji.from(kt.empty,fr.empty,!0),ji.register(),Fo(class{constructor(l){this.maps=l}map(l,r,i,s,u,x){let v=this.maps;for(let P in l)if(Object.prototype.hasOwnProperty.call(l,P)){let j=v[P];j&&(l[P]=j.map(l[P],r,i,s,u,x))}}invert(){let l=this.maps,r=Object.create(null);for(let i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r[i]=l[i].invert());return new this.constructor(r)}}),Go(class extends zc{constructor(l,r,i){super(r,i),this.pos=l}}),Go(class extends kx{constructor(l,r,i){super(r,i),this.pos=l}}),Go(class extends Lx{constructor(l,r){super(r),this.pos=l}invert(){return new this.constructor(this.pos,!this.inverted)}});class Ho{constructor(r){this.inverted=!!r,this.hash_map=new Map}get size(){return this.hash_map.size}set(r,i){let s=this.hash_map.get(r);return s&&(i=_n.merge(s,i)),this.hash_map.set(r,i)}get(r){return this.hash_map.get(r)}invert(){let r=new Ho(!this.inverted);return this.hash_map.forEach(function(i,s){r.set(s,i.invert())}),r}_map(r,i){let s=this.get(i);return s&&(r=s.applyResult(r)),r}}Fo(Ho);class Rx{invert(){throw Error("Override me!")}apply(r,i){throw Error("Override me!")}applyResult(r,i){throw Error("Override me!")}}class _n extends Rx{constructor(r){super(),this.items=r}static merge(r,i){return r instanceof _n?r.append(i):new _n([r,i])}append(r){return this.items.push(r),this}invert(){let r=[];for(let i=this.items.length-1;i>=0;--i)r.push(this.items[i].invert());return new _n(r)}apply(r,i){for(let s=0;s<this.items.length;++s)r=this.items[s].apply(r,i);return r}applyResult(r,i){for(let s=0;s<this.items.length;++s)r=this.items[s].applyResult(r,i);return r}}class Ox extends Gc(){get maps(){return this.posMaps}set maps(r){this.posMaps=r}get customs(){return this.customMaps}set customs(r){this.customMaps=r}get innerMapTo(){return this.mapTo??this.length}mapResult(r,i,s){return this.run(r,i,!1,!1,s)}map(r,i,s){if(this.mirror.length)return this.run(r,i,!1,!0,s);let u=this.maps;for(let x=this.mapFrom,v=this.innerMapTo;x<v;++x)r=u[x].map(r,i);return r}mapNodeResult(r,i,s){return this.run(r,i,!0,!1,s)}mapNode(r,i,s){if(this.mirror.length)return this.run(r,i,!0,!0,s);let u=this.maps;for(let x=this.mapFrom,v=this.innerMapTo;x<v;++x)r=u[x].mapNode(r,i);return r}runCustom(r,i,s,u,x,v,P){if(i==null)return;let j=this.customs[r];j&&j.map(i,s,u,x,v,P)}run(r,i,s,u,x){let v=!1,P,j=x&&x.map_custom,F=this.maps;for(let q=this.mapFrom,J=this.innerMapTo;q<J;this.runCustom(q,j,r,i,s,v,!0),q++){this.runCustom(q,j,r,i,s,v,!1);let re=F[q],te=P&&P[q];if(te!=null&&re.touches(r,te)){let de=re.recover(te);if(!isNaN(de)){r=de;continue}}let ie=s?re.mapNodeResult(r,i,x):re.mapResult(r,i,x);if(ie.recover!=null){let de=this.getMirror(q);if(de>q&&de<J)if(ie.deleted){let ce=this.maps[de].recover(ie.recover);if(!isNaN(ce)){q=de,r=ce;continue}}else P||(P=Object.create(null)),P[de]=ie.recover}ie.deleted&&(v=!0),r=ie.pos}return u?r:new ii(r,v)}}class vr extends Ox{static#e=this.empty=new vr;constructor(r,i,s=0,u=[]){super(),this.posMaps=r||[],this.customMaps=i||Array(this.posMaps.length).fill(null),this.mapFrom=s,this.mapTo=void 0,this.mirror=u,this.assertValid()}assertValid(){this.posMaps.length!==this.customMaps.length&&(this.customMaps.length=this.posMaps.length),this.mirror.length%2!=0&&(this.mirror.length-=1)}get length(){return this.posMaps.length}getMappingCount(){return this.innerMapTo-this.mapFrom}isMappable(){return!!this.length}getPosMaps(){return this.posMaps}getMirror(r){let i=this.mirror.findIndex(s=>s===r);return i<0?-1:this.mirror[i+(i%2?-1:1)]}setMirror(r,i){this.mirror.push(r,i)}forEachMirror(r,i){let s=this.mirror,u=s.length;for(let x=0,v=0;v<u;++x,v+=2)r.call(i,s[v],s[v+1],x)}shiftMirrors(r){let i=this.mirror;for(let s=0,u=i.length;s<u;++s)i[s]+=r}unshift(r,i,s){this.posMaps.unshift(r||kt.empty),this.customMaps.unshift(i),this.shiftMirrors(1),s!=null&&this.setMirror(0,s+1)}push(r,i,s){this.posMaps.push(r||kt.empty),this.customMaps.push(i),s!=null&&this.setMirror(this.length-1,s)}prependMapping(r){this.posMaps.unshift(...r.posMaps),this.customMaps.unshift(...r.customMaps),this.shiftMirrors(r.length),r instanceof vr&&this.mirror.push(...r.mirror)}appendMapping(r){let i=this.length;this.posMaps.push(...r.posMaps),this.customMaps.push(...r.customMaps),r instanceof vr&&r.forEachMirror((s,u)=>{this.setMirror(i+s,i+u)})}prepend(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];i.forEach(this.prependMapping,this)}append(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];i.forEach(this.appendMapping,this)}concat(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=this.slice();return i.forEach(u.appendMapping,u),u}slice(r,i){let s=this.length;[r,i]=st(r,i,s);let u=this.mirror;if(r===0&&i===this.length)u=u.slice();else{let x=[];for(let v=0,P=u.length;v<P;v+=2){let j=u[v],F=u[v+1];j>=r&&j<i&&F>=r&&F<i&&x.push(j-r,F-r)}u=x}return new this.constructor(this.posMaps.slice(r,i),this.customMaps.slice(r,i),0,u)}withMappingRange(r,i,s){let{mapFrom:u,mapTo:x}=this;typeof r=="number"&&(this.mapFrom=r),typeof i=="number"&&(this.mapTo=i),s(this),this.mapFrom=u,this.mapTo=x}computeChangeRange(){var r;let i,s,u;return r=this.posMaps,i=!1,s=Number.MAX_SAFE_INTEGER,u=0,r.forEach(x=>{x instanceof kt&&x.forEach((v,P)=>{s=Math.min(s,v),u=Math.max(u,v+P),i=!0}),i&&(s=x.map(s,-1),u=x.map(u,1))}),i?[s,u]:null}invert(){let r=[],i=[],{posMaps:s,customMaps:u}=this;for(let P=this.length-1;P>=0;--P)r.push(s[P].invert()),i.push(u[P]?.invert());let x=this.length-1,v=this.mirror.map(P=>x-P);return new this.constructor(r,i,0,v)}static from(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=new this;return u.append(...i),u}}class Nx extends Ks{}class jx{constructor(r,i){this.succ=!0,this.doc=r,this.commentStore=i}get comments(){return this.commentStore}get comment_store(){return this.commentStore}set comment_store(r){this.commentStore=r}}class Ex{constructor(r){this.succ=!1,this.reason=r}get failed(){return this.reason}}let nr={ok:(l,r)=>new jx(l,r),fail:l=>new Ex(l),fromReplace(l,r,i,s){try{return nr.ok(l.replace(r,i,s))}catch(u){if(u instanceof Ar)return nr.fail(u.message);throw u}},fromReplaceFunc(l,r){try{return nr.ok(l.call(r))}catch(i){if(i instanceof Ar)return nr.fail(i.message);throw i}}};class qc{constructor(r){if(r.status===void 0)throw Error("not given a status");this.id=r.id,typeof r.author=="number"?(this.author=r.author,this.authorName=r.authorName||""):(this.author=0,this.authorName=r.authorName||r.author||""),this.status=r.status,this.text=r.text||"",this.timestamp=r.timestamp||0,this.lastModified=r.lastModified||0}isOpened(){return this.status===0}isResolved(){return this.status===1}isAuthor(r){return r===0||this.author===r}editText(r){if(!r.text)throw Error("empty string is not allowed");return this.copy({text:r.text,lastModified:r.lastModified})}toJSON(){return{id:this.id,author:this.author,authorName:this.authorName||void 0,status:this.status,text:this.text,timestamp:this.timestamp,lastModified:this.lastModified}}static fromJSON(r){throw Error("BaseComment is not constructable.")}}class Uc extends qc{constructor(r){super(r)}isReopened(){return this.status===2}copy(r){return new this.constructor(Object.assign(this.toObject(),r))}toObject(){return this.toJSON()}static fromJSON(r){return new this(r)}}class $c extends qc{constructor(r){super(r),this.type=r.type,this.replies=r.replies||[]}isDiscussion(){return this.type===0}isSuggestion(){return this.type===1}getReply(r){return this._ensureReplyIndexInBound(r),this.replies[r]}_ensureReplyIndexInBound(r){if(r<0||r>=this.replies.length){var i;throw i=this.replies.length,Error(`Request #${r}, only ${i} replies`)}}reply(r){if(this.status===1){let i=this.constructor.createReply({...r,status:2});return this.copy({status:0,replies:this.replies.concat(i)})}{let i=this.constructor.createReply(r);return this.copy({replies:this.replies.concat(i)})}}resolve(r){return this._setStatus(r,1,1)}reopen(r){return this._setStatus(r,0,2)}_setStatus(r,i,s){if(this.status===i)return this;let u=this.constructor.createReply({...r,status:s,text:""});return this.copy({status:i,replies:this.replies.concat(u)})}removeReply(r){this._ensureReplyIndexInBound(r.replyIndex);let i=this.replies.slice();return i.splice(r.replyIndex,1),this.copy({replies:i})}editReplyText(r){this._ensureReplyIndexInBound(r.replyIndex);let i=this.replies.slice();return i[r.replyIndex]=i[r.replyIndex].editText(r),this.copy({replies:i})}copy(r){return new this.constructor(Object.assign(this.toObject(),r))}toObject(){return Object.assign(super.toJSON(),{type:this.type,replies:this.replies.slice()})}toJSON(){return Object.assign(super.toJSON(),{type:this.type,replies:this.replies.map(r=>r.toJSON())})}static fromJSON(r){return new this({...r,replies:(r.replies||[]).map(this.createReply,this)})}static createReply(r){return Uc.fromJSON(r)}}var Vx=Ct(95670);class An extends Vx.EventEmitter{constructor(r){super(),this.comments=r||Object.create(null)}getCommentById(r,i){i===void 0&&(i=!1);let s=this.comments[r]||null;if(!s&&i)throw Error(`Comment id: "${r}" Not Found`);return s}getBy(r,i){return this.getCommentById(r,i)}getComments(){return this.comments}getAllCommentIds(){return Object.keys(this.comments)}getAllCommentValues(){return Object.values(this.comments)}getCommentCount(){return this.getAllCommentIds().length}forEach(r,i){let s=this.comments;for(let u in s)if(Object.prototype.hasOwnProperty.call(s,u)&&r.call(i,s[u],u,s))break}copy(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this,{comments:{...this.comments}})}setComment(r){let i=this.copy();return i.comments[r.id]=r,this.emit("commentChanged",[[r.id,r.toJSON()]]),i}deleteComment(r){let i=this.copy();return delete i.comments[r],this.emit("commentChanged",[[r,null]]),i}createComment(r,i){if(this.getCommentById(i.id))throw Error(`Comment id "${i.id}" already exists in store`);if(r!==i.author)throw Error("Can only create comment by yourself");if(i.type===0&&i.status!==0)throw Error("Can only create open status discussion.");let s=this.constructor.createComment(i);return this.setComment(s)}removeComment(r,i){if(!this.getCommentById(i.target,!0).isAuthor(r))throw Error("Can only remove comment created by self");return this.deleteComment(i.target)}reply(r,i){let s=this.getCommentById(i.target,!0);return this.setComment(s.reply(i))}removeReply(r,i){let s=this.getCommentById(i.target,!0),u=s.getReply(i.replyIndex);if(!u.isAuthor(r))throw Error(`No permission to remove reply in reply \`${u.id}\` of comment \`${s.id}\` by uid ${r}.`);return this.setComment(s.removeReply(i))}resolve(r,i){let s=this.getCommentById(i.target,!0);return this.setComment(s.resolve(i))}reopen(r,i){let s=this.getCommentById(i.target,!0);return this.setComment(s.reopen(i))}editCommentText(r,i){let s=this.getCommentById(i.target,!0);if(!s.isOpened())throw Error(`Unable to edit comment text in a resolved comment \`${s.id}\`.`);if(!s.isAuthor(r))throw Error(`No permission to edit comment text in comment \`${s.id}\` by uid ${r}.`);return this.setComment(s.editText(i))}editReplyText(r,i){let s=this.getCommentById(i.target,!0);if(!s.isOpened())throw Error(`Unable to edit reply text in a resolved comment \`${s.id}\`.`);let u=s.getReply(i.replyIndex);if(u.isResolved()||u.isReopened()&&!u.text)throw Error(`Unable to edit reply text in a resolved/reopened reply \`${u.id}\` of comment \`${s.id}\`.`);if(!u.isAuthor(r))throw Error(`No permission to edit reply text in reply \`${u.id}\` of comment \`${s.id}\` by uid ${r}.`);return this.setComment(s.editReplyText(i))}toJSON(){return Object.keys(this.comments).map(r=>this.comments[r].toJSON())}static fromJSON(r){return new this(this.createComments(r||[]))}static createComment(r){return $c.fromJSON(r)}static createComments(r){return r.reduce((i,s)=>{let u=this.createComment(s);return i[u.id]=u,i},Object.create(null))}}let Wo=Object.create(null);class gt{static#e=this.stepType="";get stepType(){return this.jsonID}is(r){return this.stepType===r}prepare(){return this.doPrepare()}doPrepare(){return{step:this}}apply(r,i){try{let s=this.doApply(r,i);return s instanceof to?nr.ok(s,i):s instanceof An?nr.ok(r,s):s&&typeof s=="object"&&typeof s.succ=="boolean"?s:nr.fail(typeof s=="string"?s:`Invalid returned value of Step.prototype.doApply(). (${s})`)}catch(s){if(s instanceof Ar||s instanceof Nx)return nr.fail(s.message);throw s}}doApply(r,i){throw Error("must override")}invert(r,i){try{return this.doInvert(r,i)}catch(s){return ir.default.error("Caught exception during Step.invert()."),ir.default.error(s instanceof Error?s.stack:s),null}}doInvert(r,i){return null}posMap(r){return this.doCreatePosMap(r)??kt.empty}doCreatePosMap(r){return null}customMap(r){return null}map(r){return this.doMap(r)}doMap(r){return null}relay(r,i,s){let u=s.apply(r,i);if(!u.succ)throw new Ar(u.reason);return u.commentStore||(u.commentStore=i),u}deepCopy(r,i){return this.constructor.fromJSON(r,this.toJSON(i))}toJSON(r){let i={stepType:this.jsonID};for(let s in this)if(Object.hasOwn(this,s)){let u=this[s];i[s]=u&&typeof u=="object"&&"toJSON"in u&&typeof u.toJSON=="function"?u.toJSON(r):u}return i}static fromJSON(r,i){return this.stepClass(i.stepType).fromJSON(r,i)}static create(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return new this(...i)}static register(r,i){if(i===void 0&&(i=this),r in Wo)throw RangeError(`Duplicate use of step JSON ID \`${r}\`.`);Wo[r]=i,i.stepType=r,i.prototype.jsonID=r}static jsonID(r,i){return this.register(r,i),i}static stepClass(r){let i=Wo[r];if(!i)throw RangeError(`No step named ${r}`);return i}static normalizeStepId(r){return r.replace(/V\d+$/i,"")}}gt.prototype.jsonID="";class Ta extends gt{constructor(r){super(),this.pos=r}checkNode(r){return this.constructor.checkNode(r)}resolvePos(r,i){return this.constructor.resolvePos(r,this.pos,i)}doApply(r,i){return this.applyAtPos(this.resolvePos(r,!0),i)}applyAtPos(r,i){return r.root}doInvert(r,i){let s=this.resolvePos(r);return s&&this.invertAtPos(s)}invertAtPos(r){return null}doCreatePosMap(r){let i=this.resolvePos(r);return i&&this.createPosMapAtPos(i)}createPosMapAtPos(r){return null}doMap(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i)}mapPos(r){let i=r.mapNodeResult(this.pos,1);return i.deleted?null:i.pos}static fromJSON(r,i){return new this(i.pos)}static checkNode(r){return!0}static resolvePos(r,i,s){let u=r.resolve(i),x=u.self;if(!x||!this.checkNode(x)){if(s)throw new Ar(`No valid node at position ${i}.`);return null}return u}}class Bx extends Gc(vo){get comment_stores(){return this.commentStores}set comment_stores(r){this.commentStores=r}get maps(){return this.posMaps}set maps(r){this.posMaps=r}get customs(){return this.customMaps}set customs(r){this.customMaps=r}_updateSelection(r,i){return r.map(this.doc,i?this.toRemapping(i):this)}updateSelection(){let r=this._multiSelection;if(!r)return;let i=this._sel_at;i>=this.length||this.select(this._updateSelection(r,i),!0)}_select(r,i){return this._sel_at=this.steps?this.steps.length:0,super._select(...arguments)}storeSelection(){this._stored||(this._stored=[]),this._stored.push(this._multiSelection,this._selection,this._sel_at)}restoreSelection(r){let i=this._stored;if(!i)return!1;let s=i.length;return!!i.length&&(r?(this._multiSelection=i[0],this._selection=i[1],this._sel_at=i[2],i.length=0):(this._multiSelection=i[s-3],this._selection=i[s-2],this._sel_at=i[s-1],i.length=s-3),!0)}isMappable(){return!!this.length}getPosMaps(){return this.maps}mapRange(r,i,s){return Wc(this.maps,r,i,!1,s)}mapResult(r,i,s){return Pa(this.maps,r,i,!1,s)}map(r,i,s){return Hc(this.maps,r,i,!1,s)}mapNodeRange(r,i,s){return Wc(this.maps,r,i,!0,s)}mapNodeResult(r,i,s){return Pa(this.maps,r,i,!0,s)}mapNode(r,i,s){return Hc(this.maps,r,i,!0,s)}toRemapping(r){return new vr(this.maps,this.customs,r)}}class Ut extends Ks{}class $t extends Bx{constructor(r,i,s){super(r,i,s),this.docs=[],this.commentStores=[],this.steps=[],this.posMaps=[],this.customMaps=[]}get length(){return this.steps.length}get baseDoc(){return this.length?this.docs[0]:this.doc}get baseCommentStore(){return this.length?this.commentStores[0]:this.commentStore}get lastDoc(){let r=this.length;return r?this.docs[r-1]:void 0}get lastCommentStore(){let r=this.length;return r?this.commentStores[r-1]:void 0}get lastStep(){let r=this.length;return r?this.steps[r-1]:void 0}get lastPosMap(){let r=this.length;return r?this.posMaps[r-1]:void 0}get lastCustomMap(){let r=this.length;return r&&this.customMaps[r-1]||void 0}get selection(){return this.updateSelection(),this._selection}get multiSelection(){return this.updateSelection(),this._multiSelection}selectText(r,i,s){s===void 0&&(s=d);let{stateIndex:u}=s;return typeof u=="number"&&u<this.length&&(r=this.map(r,1,u),typeof i=="number"&&(i=this.map(i,1,u))),super.selectText(r,i,s)}selectNode(r,i){i===void 0&&(i=d);let{stateIndex:s}=i;return typeof s=="number"&&s<this.length&&(r=this.mapNode(r,1,s)),super.selectNode(r,i)}runWithSelectionRecovery(r){this.storeSelection();let i=r(this);return this.restoreSelection(),i}step(r,i){let s=this.maybeStep(r,i);if(!s.succ)throw new Ut(s.reason);return this}maybeStep(r,i){return this.addStep(r.prepare().step)}addStep(r){let i=r.apply(this.doc,this.commentStore);return i.succ&&!i.commentStore&&(i.commentStore=this.commentStore),i.succ&&this.saveStepResult(r,i),i}saveStepResult(r,i){let{doc:s,commentStore:u}=this;this.docs.push(s),this.commentStores.push(u),this.steps.push(r),this.posMaps.push(r.posMap(s)),this.customMaps.push(r.customMap(s)),this.doc=i.doc,this.commentStore=i.commentStore,this.clearActiveMarks()}cherryPick(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return function(u,x,v,P,j,F){j===void 0&&(j=vr.empty),F===void 0&&(F=d),D(x.length===v.length&&x.length===P.length,`In rebasing, the length of given steps (${x.length}), posMaps (${v.length}), customMaps (${P.length}) must be same.`);let{discardBase:q,suppressFailure:J}=F,re=x.length,te=new vr(v.map(ie=>ie?ie.invert():kt.empty).reverse(),P.map(ie=>ie&&ie.invert()).reverse());te.append(j,u),te.mapFrom=re;for(let ie=0;ie<re;++ie){let de=x[ie].map(te);if(--te.mapFrom,!de)continue;q||(de=de.deepCopy(u.schema));let ce=u.maybeStep(de);if(!ce.succ){if(J)continue;throw new Ut(ce.reason)}te.push(u.lastPosMap,u.lastCustomMap,te.mapFrom)}return te}(this,...i)}hasDoneReplace(){return this.steps.some(r=>r.jsonID==="replace"||r.jsonID==="replaceAround")}toMapping(r,i){return new vr(this.posMaps.slice(r,i),this.customMaps.slice(r,i))}forEach(r,i){let{length:s,steps:u,posMaps:x,customMaps:v}=this;for(let P=0;P<s&&!r.call(i,u[P],x[P],v[P],P);++P);}}class ka extends gt{constructor(r,i){super(),this.root=r,this.comments=i}doApply(){return nr.ok(this.root.updateStateAndTrim({force:!0}),An.fromJSON(this.comments))}doInvert(r,i){return new ka(r,i.toJSON())}doCreatePosMap(r){return kt.create([0,r.getContentSize(),this.root.getContentSize()])}doMap(){return this}static fromJSON(r,i){return new this(r.nodeFromJSON(i.root),i.comments)}}function Zc(l,r,i,s){s===void 0&&(s=ot.empty);let u=function(x,v,P){let j=function(J,re){let te=J.depth,ie=null,de=[],ce=null;for(let xe=re.openLeft;;--xe){let we,Me,Se;if(xe>=0)xe>0?{type:we,attrs:Me,content:Se}=Jc(re.content,xe):xe==0&&(Se=re.content),xe<re.openLeft&&(Se=Se.cut(Se.firstChild.nodeSize));else if(ce){Se=xt.empty;let Be=ce[ce.length+xe-1];we=Be.type,Me=Be.attrs}if(ie&&(Se=Se.prepend(ie)),Se.size==0&&xe<=0)break;let Re=function(Be,Ue,Ze,lt){let At=!1;for(let ht=0;ht<Be.childCount;ht++)Be.child(ht).marks.length&&(At=!0);for(let ht=Ze;ht>=0;ht--){let wt=Ue.node(ht).contentMatchAt(Ue.indexAfter(ht)),Tt=lt[ht];Tt&&(wt=wt?.matchFragment(Tt.content));let Xt=wt?.fillBefore(Be);if(Xt)return{depth:ht,fragment:(Tt?Tt.content.append(Xt):Xt).append(Be)};if(At){let Zt=function(tr,Rt){let Ht=[];for(let Dt=0;Dt<Rt.childCount;Dt++){let hr=Rt.child(Dt),Tr=hr.mark(hr.marks.filter(Un=>tr.allowsMark(Un.type)));if(!(tr=tr.matchNode(Tr)))return null;Ht.push(Tr)}return xt.from(Ht)}(wt,Be);if(Zt)return{depth:ht,fragment:Tt?Tt.content.append(Zt):Zt}}}}(Se,J,te,de);if(Re&&function(Be,Ue,Ze,lt,At){if(At<1)return!1;for(;Ue>Ze;Ue--){let ht=Be.node(Ue).contentMatchAt(Be.indexAfter(Ue));if(ht){for(let wt=At-1;wt>=0;wt--)if(ht.matchNode(Jc(lt.content,wt)))return!0}}return!1}(J,te,Re.depth,re,xe)&&(Re=null),Re){if(Re.fragment.size>0&&(de[Re.depth]={content:Re.fragment,openRight:xe>0?0:re.openRight-xe,depth:Re.depth}),xe<=0)break;ie=null,te=Re.depth-+(we==J.node(Re.depth).type)}else{if(xe==0){let Be=J.node(0),Ue=Be.contentMatchAt(J.index(0))?.findWrapping(Se.firstChild.type,Se.firstChild.attrs);if(!Ue||Ue.length==0)break;let Ze=Ue[Ue.length-1];if(!Ze.type.contentExpr.matches(Ze.attrs,Se))break;ce=[{type:Be.type,attrs:Be.attrs}].concat(Ue),{type:we,attrs:Me}=Ze}Se.size?(Se=we.contentExpr.start(Me).fillBefore(Se,!0)?.append(Se),ie=we.create(Me,Se)):ie=null}}return de}(x,P),F=function(J,re){let{content:te,openRight:ie}=function de(ce,xe,we,Me){let Se=xt.empty,Re=0,Be=we[xe];if(ce.depth>xe){let Ue=de(ce,xe+1,we,Me||Be);Re=Ue.openRight+1,Se=xt.from(ce.node(xe+1).copy(Ue.content,null,null))}return Be&&(Se=Se.append(Be.content),Re=Be.openRight),Me&&(Se=Se.append(ce.node(xe).contentMatchAt(ce.indexAfter(xe))?.fillBefore(xt.empty,!0)),Re=0),{content:Se,openRight:Re}}(J,0,re,!1);return new ot(te,J.depth,ie||0)}(x,j),q=function(J,re,te){let ie=function we(Me,Se,Re,Be,Ue,Ze,lt){let At,ht=Me.childCount,wt=ht-+(lt>0);At=Ze<0?Se.contentMatchAt(wt):ht==1&&lt>0?Re.node(Ue).contentMatchAt(Ze?Re.index(Ue):Re.indexAfter(Ue)):Re.node(Ue).contentMatchAt(Re.indexAfter(Ue))?.matchFragment(Me,ht>0&&Ze?1:0,wt);let Tt=Be.node(Ue);if(lt>0&&Ue<Be.depth){let tr=Tt.content.cutByIndex(Be.indexAfter(Ue)).prepend(Me.lastChild),Rt=At?.fillBefore(tr,!0);if(Rt&&Rt.size&&Ze>0&&ht==1&&(Rt=null),Rt){let Ht=we(Me.lastChild.content,Me.lastChild,Re,Be,Ue+1,ht==1?Ze-1:-1,lt-1);if(Ht){let Dt=Me.lastChild.copy(Ht);return Rt.size?Me.cutByIndex(0,ht-1).append(Rt,Dt):Me.replaceChild(ht-1,Dt)}}}lt>0&&At&&(At=At.matchNode(ht==1&&Ze>0?Re.node(Ue+1):Me.lastChild));let Xt=Be.index(Ue);if(Xt==Tt.childCount&&!Tt.type.compatibleContent(Se.type))return null;let Zt=At?.fillBefore(Tt.content,!0,Xt);if(!Zt)return null;if(lt>0){let tr=function Rt(Ht,Dt,hr,Tr,Un){let b0,tn=Ht.content,ks=tn.childCount;if(b0=Un>=0?hr.node(Tr).contentMatchAt(hr.indexAfter(Tr))?.matchFragment(tn,+(Un>0),ks):Ht.contentMatchAt(ks),Dt>0){let wb=Rt(tn.lastChild,Dt-1,hr,Tr+1,ks==1?Un-1:-1);tn=tn.replaceChild(ks-1,wb)}return Ht.copy(tn.append(b0?.fillBefore(xt.empty,!0)))}(Me.lastChild,lt-1,Re,Ue+1,ht==1?Ze-1:-1);Me=Me.replaceChild(ht-1,tr)}return Me=Me.append(Zt),Be.depth>Ue&&(Me=Me.append(function tr(Rt,Ht){let Dt=Rt.node(Ht),hr=Dt.contentMatchAt(0)?.fillBefore(Dt.content,!0,Rt.index(Ht));return Rt.depth>Ht&&(hr=hr?.append(tr(Rt,Ht+1))),Dt.copy(hr,null,null,{filter_copyable:!0})}(Be,Ue+1))),Me}(te.content,J.node(0),J,re,0,te.openLeft,te.openRight);if(!ie)return null;for(var de=ie,ce=te.openLeft,xe=re.depth;ce>0&&xe>0&&de.childCount==1;)de=de.firstChild.content,ce--,xe--;return new ot(de,ce,xe)}(x,v,F);return q?{fittedLeft:F,fitted:q}:null}(l.resolve(r),l.resolve(i),s);return u?u.fitted:null}ka.register("overwrite"),Lr($t.prototype,{overwrite(l,r){if(l.type!=="doc")throw Error(`Invalid root type: ${l.type}`);return this.step(new ka(this.schema.nodeFromJSON(l),r))}});function Jc(l,r){for(let i=1;i<r;i++)l=l.firstChild.content;return l.firstChild}class La extends gt{constructor(r,i,s,u){super(),this.from=r,this.to=i,this.slice=s,this.structure=!!u}doPrepare(){return{step:new this.constructor(this.from,this.to,this.slice.deepCopy({target:"replace"}),this.structure),replacements:[{pos:this.from,insertionSlice:this.slice}]}}doApply(r){let{from:i,to:s,slice:u}=this;return this.structure&&Uo(r,i,s)?"Structure replace would overwrite content":r.replace(i,s,u.deepCopy({target:"replace"}))}doInvert(r){return new this.constructor(this.from,this.from+this.slice.size,r.slice(this.from,this.to).deepCopy({target:"replace"}))}doCreatePosMap(r){return kt.create([this.from,this.to-this.from,this.slice.size])}doMap(r){let i=r.mapRange(this.from,this.to);return i.deleted?null:new this.constructor(i.from,Math.max(i.from,i.to),this.slice)}static fromJSON(r,i){return new this(i.from,i.to,ot.fromJSON(r,i.slice))}}La.register("replace");class qo extends gt{constructor(r,i,s,u,x,v,P,j){super(),this.from=r,this.to=i,this.gapFrom=s,this.gapTo=u,this.slice=x,this.insert=v,this.structure=!!P,this.skipSuggest=!!j}doPrepare(){return{step:new this.constructor(this.from,this.to,this.gapFrom,this.gapTo,this.slice.deepCopy({target:"replace"}),this.insert,this.structure,this.skipSuggest)}}doApply(r){if(this.structure&&(Uo(r,this.from,this.gapFrom)||Uo(r,this.gapTo,this.to)))return"Structure gap-replace would overwrite content";let i=r.slice(this.gapFrom,this.gapTo);if(i.openLeft||i.openRight)return"Gap is not a flat range";let s=this.slice.deepCopy({target:"replace"}).insertAt(this.insert,i.content);return s?r.replace(this.from,this.to,s):"Content does not fit in gap"}doInvert(r){let i=this.gapTo-this.gapFrom;return new this.constructor(this.from,this.from+this.slice.size+i,this.from+this.insert,this.from+this.insert+i,r.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from).deepCopy({target:"replace"}),this.gapFrom-this.from,this.structure)}doCreatePosMap(r){return kt.create([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}doMap(r){let i=r.mapResult(this.from,1),s=r.mapResult(this.to,-1),u=r.map(this.gapFrom,-1),x=r.map(this.gapTo,1);return i.deleted&&s.deleted||u<i.pos||x>s.pos?null:new this.constructor(i.pos,s.pos,u,x,this.slice,this.insert,this.structure)}static fromJSON(r,i){return new this(i.from,i.to,i.gapFrom,i.gapTo,ot.fromJSON(r,i.slice),i.insert,i.structure)}}function Uo(l,r,i){let s=l.resolve(r),u=i-r,x=s.depth;for(;u>0&&x>0&&s.indexAfter(x)===s.node(x).childCount;)x--,u--;if(u>0){let v=s.node(x).maybeChild(s.indexAfter(x));for(;u>0;){if(!v||v.type.isLeaf)return!0;v=v.firstChild,u--}}return!1}qo.register("replaceAround"),Lr($t.prototype,{fitSlice(l,r,i){return Zc(this.doc,l,r,i)},getReplaceStep(l,r,i){let s=this.fitSlice(l,r,i);return s?new La(l,r,s):null},replace(l,r,i,s){r===void 0&&(r=l);let u=ot.from(i);if(l===r&&u.size===0)return this;let x=this.getReplaceStep(l,r,u);return x?this.step(x,s):this},delete(l,r){return this.replace(l,r,ot.empty)},insert(l,r){return this.replace(l,l,r)}});class Xc extends Ta{constructor(r,i){super(r),this.attrs=i}applyAtPos(r,i){let{doc:s,pos:u,self:x}=r,v=this.attrs;if(v){let j=v.synocomment;if(j&&Array.isArray(j)&&j.length>0){let F;for(let q=0;q<j.length;++q){let J=j[q];if(i.getCommentById(J)){F&&F.push(J);continue}F||(F=j.slice(0,q))}F&&(v=Object.assign({},this.attrs,{synocomment:F.length?F:null}))}}let P=v?x.copy(x.content,x.type.settableAttrValues(v)):x.type.create(null,x.content,x.marksRaw);return s.replace(u,u+x.nodeSize,ot.from(P))}invertAtPos(r){let i=r.self;return new this.constructor(r.pos,i.type.invertAttrs(i.attrs,this.attrs))}doMap(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.attrs)}static fromJSON(r,i){return new this(i.pos!=null?i.pos:i.from,i.attrs)}}function $o(l,r){let i=l.doc.resolve(r).self;if(!i)throw new Ut(`No node at pos ${r}.`);return i}gt.jsonID("setNodeAttrs",Xc),Lr($t.prototype,{setNodeAttrs(l,r){let i=$o(this,l);if(r?!Te.checkAttrs(i.type.attrs,r):r!==null)throw new Ut(`Invalid attrs for node type ${i.type.name}. ${JSON.stringify(r)}`);return this.step(new Xc(l,r))},clearNodeAttrs(l){let r=$o(this,l);if(r.type.clearable){let i;R(r.type.attrs,(s,u)=>{s.clearable&&(i||(i=Object.create(null)),i[u]=null)}),i&&this.setNodeAttrs(l,i)}return this},overwriteNodeAttrs(l,r){let i=$o(this,l);return this.setNodeAttrs(l,i.type.completeAttrValues(r))}});class Da extends Ta{applyAtPos(r){return r.root.replace(r.pos,r.pos+r.self.nodeSize,ot.empty)}invertAtPos(r){return new Zo(r.pos,r.self.deepCopy({target:"replace"}))}createPosMapAtPos(r){return kt.create([r.pos,r.self.nodeSize,0])}static fromJSON(r,i){return new this(i.pos??i.from)}}Da.register("deleteNode"),Lr($t.prototype,{deleteNode(l){return Da.resolvePos(this.doc,l,!0),this.step(new Da(l))}});class Zo extends gt{constructor(r,i){super(),this.pos=r,this.node=i}doPrepare(){return{step:new this.constructor(this.pos,this.node.deepCopy({target:"replace"})),replacements:[{pos:this.pos,insertionSlice:this.node}]}}doApply(r){return r.replace(this.pos,this.pos,ot.from(this.node.deepCopy({target:"replace"})))}doInvert(r){return new Da(this.pos)}doCreatePosMap(r){return kt.create([this.pos,0,this.node.nodeSize])}doMap(r){let{pos:i,deleted:s}=r.mapResult(this.pos,1);return s?null:new this.constructor(i,this.node)}static fromJSON(r,i){return new this(i.pos,r.nodeFromJSON(i.node))}}function Jo(l,r,i){let s=JSON.stringify(l.mark.toJSON()),u=i.get(s);u&&u.count===l.count-1?(u.to=l.to,u.count=l.count):(i.set(s,l),r.push(l))}function Yc(l,r,i){let s=i?"_addMark":"_removeMark";for(let u=r.length-1;u>=0;--u){let{from:x,to:v,mark:P}=r[u];l[s](x,v,P)}}function Qc(l,r){return new ot(function i(s,u,x){let v=[];for(let P=0;P<s.childCount;P++){let j=s.child(P);j.isInline?j=u(j,x,P):j.childCount&&(j=j.copy(i(j.content,u,j))),v.push(j)}return xt.fromArray(v)}(l.content,r,l.possibleParent),l.openLeft,l.openRight)}Zo.register("insertNode"),Lr($t.prototype,{insertNode(l,r,i){return this.step(new Zo(l,r),i)}});class Ei extends gt{constructor(r,i,s){super(),this.from=r,this.to=i,this.mark=s}apply(r,i){let s=this.mark;if(s.type.is("Tracking")){let x=[],v=!1;for(let P of s.attrs.id)i.getCommentById(P)?x.push(P):v=!0;v&&(s=s.type.create({...s.attrs,id:x}))}let u=Qc(r.slice(this.from,this.to),(x,v,P)=>{let j=v.contentMatchAt(P+1);return j&&j.allowsMark(s.type)?x.mark(s.addToSet(x.marks)):x});return nr.fromReplace(r,this.from,this.to,u)}invert(){return new Vi(this.from,this.to,this.mark)}map(r){let i=r.mapResult(this.from,1),s=r.mapResult(this.to,-1);return i.deleted&&s.deleted||i.pos>=s.pos?null:new Ei(i.pos,s.pos,this.mark)}static fromJSON(r,i){return new Ei(i.from,i.to,r.markFromJSON(i.mark))}}gt.jsonID("addMark",Ei);class Vi extends gt{constructor(r,i,s){super(),this.from=r,this.to=i,this.mark=s}apply(r){let i=Qc(r.slice(this.from,this.to),(function(s,u){let x=this.mark.removeFromSet(s.marks);if(s.marks!==x&&u.type.enableLocalAttrs&&u.type.isMarksBlock&&u.state.inherited_text_marks){let v=this.mark.type.isInSet(u.state.inherited_text_marks);v&&(x=v.addToSet(x))}return s.mark(x)}).bind(this));return nr.fromReplace(r,this.from,this.to,i)}invert(){return new Ei(this.from,this.to,this.mark)}map(r){let i=r.mapResult(this.from,1),s=r.mapResult(this.to,-1);return i.deleted&&s.deleted||i.pos>=s.pos?null:new Vi(i.pos,s.pos,this.mark)}static fromJSON(r,i){return new Vi(i.from,i.to,r.markFromJSON(i.mark))}}function Kc(l){if(!l)return null;{if(Array.isArray(l))return l.length?()=>l:null;let r=[l];return()=>r}}gt.jsonID("removeMark",Vi),Lr($t.prototype,{handleMarksBy(l,r,i,s){var u;if(l===r)return this;u=s,s=function(){let J=u(...arguments);return J?Array.isArray(J)?J.length!==0?J:null:[J]:null};let x=0,v=new Map,P=[],j=new Map,F=[],q=[];this.doc.nodesInside(l,r,(J,re,te,ie)=>{if(J.type.isInline){++x;let de=J.marks,ce=s(de,"inline");if(!ce)return;let xe=ce===de,we=i&&ie.contentMatchAt(te+1);for(let Me of ce){let Se;if(xe)Se=!0;else if(Me instanceof Qe)Se=!!Me.isInSet(de);else{if(!(Me=Me.isInSet(de)))continue;Se=!0}if(i){if(Se||!we||!we.allowsMark(Me.type))continue}else if(!Se)continue;let Re={from:Math.max(re,l),to:Math.min(re+J.nodeSize,r),mark:Me,count:x};if(i){let Be=Me.type.isInSet(de);Be&&Jo(Object.assign(Object.create(null),Re,{mark:Be}),P,v),Jo(Re,F,j)}else Jo(Re,P,v)}}else if(J.type.isMarksBlock){if(re<l||re+J.nodeSize>r)return;let de=J.textMarks,ce=s(de,"text"),xe=J.type.is("ListBlock")&&J.type.isValidListBlock(J)?J.listMarks:null,we=xe&&s(xe,"list");if(!ce&&!we)return;let Me=Object.create(null);ce&&(Me.textMarks=Qe.setToJSON(ce.reduce((Se,Re)=>Re.type.supportTextblock?Re[i?"addToSet":"removeFromSet"](Se):Se,de))),we&&(Me.listMarks=Qe.setToJSON(we.reduce((Se,Re)=>Re.type.supportListBlock?Re[i?"addToSet":"removeFromSet"](Se):Se,xe))),q.push({pos:re,attrs:Me})}},{preset:"editor"}),Yc(this,P,!1);for(let J=q.length-1;J>=0;--J){let{pos:re,attrs:te}=q[J];this.setNodeAttrs(re,te)}return Yc(this,F,!0),this},_addMark(l,r,i){return this.step(new Ei(l,r,i))},_removeMark(l,r,i){return this.step(new Vi(l,r,i))},addMarksBy(l,r,i){return this.handleMarksBy(l,r,!0,i)},removeMarksBy(l,r,i){return this.handleMarksBy(l,r,!1,i)},addMarks(l,r,i){let s=Kc(i);return s?this.addMarksBy(l,r,s):this},removeMarks(l,r,i){let s=Kc(i);return s?this.removeMarksBy(l,r,s):this},clearMarks(l,r){return this.removeMarksBy(l,r,i=>i)}});class zx extends gt{constructor(){super()}map(r){return this}}class Sn extends zx{constructor(r){super(),this.attrs=r}apply(r,i){return nr.ok(r.replaceRootAttrs(r.type.settableAttrValues(this.attrs)),i)}invert(r){return new Sn(r.type.invertAttrs(r.attrs,this.attrs))}toJSON(){return{stepType:this.jsonID,attrs:this.attrs}}static fromJSON(r,i){return new Sn(i.attrs)}}gt.jsonID("setRootNodeAttrs",Sn),$t.prototype.lift=function(l,r){let{$from:i,$to:s,depth:u}=l,x=i.before(u+1),v=s.after(u+1),P=x,j=v,F=xt.empty,q=0;for(let te=u,ie=!1;te>r;te--)ie||i.index(te)>0?(ie=!0,F=xt.from(i.node(te).copy(F)),q++):P--;let J=xt.empty,re=0;for(let te=u,ie=!1;te>r;te--)ie||s.after(te+1)<s.end(te)?(ie=!0,J=xt.from(s.node(te).copy(J)),re++):j++;return this.step(new qo(P,j,x,v,new ot(F.append(J),q,re),F.size-q,!0,!0))},$t.prototype.wrap=function(l,r){let i=xt.empty;for(let x=r.length-1;x>=0;x--)i=xt.from(r[x].type.create(r[x].attrs,i));let s=l.start,u=l.end;return this.step(new qo(s,u,s,u,new ot(i,0,0),r.length,!0))},$t.prototype.setRootNodeAttrs=function(l){let r=this.doc;if(!l||!Te.checkAttrs(r.type.attrs,l))throw RangeError(`Invalid attrs ${l} for node type ${r.type.name}`);return this.step(new Sn(l))},$t.prototype.split=function(l,r,i,s){r===void 0&&(r=1);let u=this.doc.resolve(l),x=xt.empty,v=xt.empty;for(let P=u.depth,j=u.depth-r;P>j;P--){let F=u.node(P);x=xt.from(F.copy(x,F.type.clearBackwardAttrValues())),i?(s=Te.copyableAttrs(i.attrs,Object.assign(Object.create(null),F.attrs,s)),v=xt.from(i.create(s,v)),i=null):v=xt.from(F.type.create(Te.copyableAttrs(F.type.attrs,F.attrs),v)),s=null}return this.step(new La(l,l,new ot(x.append(v),r,r,!0)))},$t.prototype.join=function(l,r,i){if(r===void 0&&(r=1),i===void 0&&(i=!1),i&&(l<r||l+r>this.doc.content.size))return this;let s=new La(l-r,l+r,ot.empty,!0);return i?this.maybeStep(s):this.step(s),this};class ed extends gt{constructor(r,i){super(),this.from=r,this.to=i}checkResolvedPos(r,i,s){let u=r.resolve(i),x=u.self;return x&&(s==null||s===i+x.nodeSize)?u:null}checkNode(r,i,s){let u=this.checkResolvedPos(r,i,s);return u&&u.self}checkPathData(r,i,s){let u=new ly(r.resolve(i));return u.node&&(s==null||i+u.node.nodeSize===s)?u:null}mapRange(r,i,s){return new jo(r.mapNodeResult(this.from,1,i),r.mapNodeResult(this.to,-1,s))}checkMapResultDeleted(r,i){return r.deleted||i.deleted||r.pos>=i.pos}mapNodeResult(r,i,s){let u=r.mapNodeResult(i,1),x=r.mapNodeResult(s,-1);return{deleted:this.checkMapResultDeleted(u,x),from:u.pos,to:x.pos}}}class Cn extends ed{constructor(r,i,s){super(r,i),this.index=s}resolveIndex(r){let i=r.$pos,s=r.depth-1,u=i.node(s).childCount-1;return{old_index:qe(i.index(s),0,u),new_index:qe(this.index,0,u)}}apply(r,i){let s=this.checkPathData(r,this.from,this.to);if(!s)return nr.fail("No valid node in given from.");this.checkPosMap(r)||this._genPosMap(r,s);let{old_index:u,new_index:x}=this.resolveIndex(s);if(u===x)return nr.ok(r,i);let v=s.$pos,P=s.depth-1,j=v.node(P),F=s.node.copy(s.node.content),q=j.content.replaceChild(u,F).moveTo(u,x),J=j.copy(q);return nr.fromReplace(r,v.before(P),v.after(P),new ot(xt.from(J),0,0))}checkPosMap(r){return this.cache_doc===r&&this.pos_map}_genPosMap(r,i){let s;if(this.cache_doc=r,!i)return this.pos_map=fr.empty;let{old_index:u,new_index:x}=this.resolveIndex(i);if(u===x)return this.pos_map=fr.empty;let v=i.node.nodeSize,P=i.$pos,j=i.depth-1;return s=u<x?P.start(j)+P.node(j).content.offsetAt(x+1)-v:P.start(j)+P.node(j).content.offsetAt(x),this.pos_map=new fr([i.pos,v,s])}genPosMap(r){return r?this.checkPosMap(r)?this.pos_map:this._genPosMap(r,this.checkPathData(r,this.from,this.to)):this.pos_map||fr.empty}posMap(r){return this.genPosMap(r)}invert(r){let i=this.checkPathData(r,this.from,this.to);if(!i)return null;let s=this.mapNodeResult(this.posMap(r),this.from,this.to);return new Cn(s.from,s.to,i.$pos.index(i.depth-1))}map(r){let i=this.mapNodeResult(r,this.from,this.to);return i.deleted?null:new this.constructor(i.from,i.to,this.index)}toJSON(r){return{stepType:this.jsonID,from:this.from,to:this.to,index:this.index}}static fromJSON(r,i){return new Cn(i.from,i.to,i.index)}}gt.jsonID("orderNode",Cn),$t.prototype.orderNode=function(l,r){return this.step(new Cn(l,l+this.doc.nodeAt(l).nodeSize,r))};let ar={TYPE:"bar",BAR_DIR:"col",GROUPING:"standard",DATA_DIR:"row",ORIENTATION:"minMax",MARKER_SYMBOL:"circle",LEGEND_POSITION:"r",LABEL_POSITION:"t",LINE_DASH:"solid",BLANK_AS:"gap",BACKGROUND:"#FFFFFF"},Fx={ROW:"row",COL:"col"},Wt={BAR:"bar",LINE:"line",AREA:"area",PIE:"pie",SCATTER:"scatter",HYBRID:"hybrid"},Xo={STANDARD:"standard",STACKED:"stacked",PERCENT:"percentStacked"},Ra={SEQUENCE:"minMax",REVERSE:"maxMin"},Or={CIRCLE:"circle",DIAMOND:"diamond",TRIANGLE:"triangle",SQUARE:"square",NONE:"none"},Gx={TOP:"t",LEFT:"l",RIGHT:"r",BOTTOM:"b"},Hx={TOP:"t",LEFT:"l",RIGHT:"r",BOTTOM:"b",INSIDE_BASE:"inBase",INSIDE_END:"inEnd",INSIDE_CENTER:"inCenter"},Wx={SOLID:"solid",DASH:"dash",DOT:"dot"},Bi={ZERO:"zero",GAP:"gap",SPAN:"span"};function Oa(l){return l==null||l===""}function Nr(l){return l!=null}function td(l){return Object.prototype.toString.call(l)==="[object Function]"}function zt(l){return typeof l=="number"&&isFinite(l)}function rd(l){return typeof l=="string"}let Bt={titleGap:8,legendWidth:72,padding:{top:32,bottom:32,left:16,right:16},plotGap:12,cm2pxMultiplier:72/2.54/.75};function fi(l){return 1.4*l}function Na(l,r){let i;for(;(i=l.length)&&l[i-1]==null;)r&&(l=l.slice(),r=!1),l.pop();return l}function ja(l){return Nr(l)?String(l):""}function Yo(l){if(l.length<=7)return l;let r=parseInt(l.substr(1,2),16),i=parseInt(l.substr(3,2),16),s=parseInt(l.substr(5,2),16),u=Math.round(parseInt(l.substr(7,2),16)/255*100)/100;return`rgba(${r},${i},${s},${u})`}class id{constructor(r){this.chartInfo=r}initData(){let r=this.chartInfo.getEmptyCategory(),i=this.chartInfo.getEmptySeries();function s(P){let j=[];for(let F=0;F<P.length;F++)P[F]||j.push(F);return j}this._categoryIndexMap=s(r),this._seriesIndexMap=s(i);let u=this.chartInfo.getSeriesCat(),x=this.chartInfo.calcSeriesData(),v=(P,j)=>!r[j];for(let P of(x=x.filter((j,F)=>!i[F]),u=u.filter(v),x))P.data=P.data.filter(v);this._category=this._processCategory(u),this._data=this._processData(x)}_getNullValue(){return null}_processCategory(r){for(let i=0,s=r.length;i<s;i++)Oa(r[i])&&(r[i]="");return r}_processData(r){let i=this._getNullValue();for(let s=0,u=r.length;s<u;s++){let x=r[s].data;for(let v=0,P=x.length;v<P;v++)zt(x[v])||(x[v]=i);r[s].name=this._uniquifyName(r[s].name,s)}return r}_calcPlotBound(){let r=this.chartInfo.ensurePlotArea().ensureLayout();if(!r.getEnabled())return this.chartInfo.calcPlotBound();let i=(r.getTop()||0)*Bt.cm2pxMultiplier,s=(r.getLeft()||0)*Bt.cm2pxMultiplier;return{top:i,left:s,right:(r.getRight()||0)*Bt.cm2pxMultiplier,bottom:(r.getBottom()||0)*Bt.cm2pxMultiplier}}convert(r,i){return this._containerWidth=r||560,this._containerHeight=i||410,this._plotBound=this._calcPlotBound(),{title:this.convertTitle(),legend:this.convertLegend(),series:this.convertSeries(),color:this.convertColor(),backgroundColor:this.convertBackground(),textStyle:this.convertTextStyle(this.chartInfo.ensureGlobalTextStyle()),tooltip:this.convertTooltip(),animation:!1}}convertTitle(){let r={top:Bt.padding.top,left:"center",itemGap:Bt.titleGap},i=this.chartInfo.ensureChartTitle();i&&!i.getHidden()&&Object.assign(r,{text:i.getText(),textStyle:this.convertTextStyle(i.ensureTextStyle())});let s=this.chartInfo.ensureChartSubtitle();return s&&!s.getHidden()&&Object.assign(r,{subtext:s.getText(),subtextStyle:this.convertTextStyle(s.ensureTextStyle())}),r}convertLegend(){let r=this.chartInfo.ensureChartLegend();if(r.getHidden())return{show:!1};let i={selectedMode:!1,itemWidth:12,itemHeight:12,padding:0,formatter:this._getOriginName};switch(r.getPosition()){case"t":{let s=r.ensureTextStyle().getFontSize()||this.chartInfo.ensureGlobalTextStyle().getFontSize();i.top=this._plotBound.top-Bt.plotGap-fi(s),i.orient="horizontal";break}case"b":i.bottom=Bt.padding.bottom,i.orient="horizontal";break;case"l":i.top=this._plotBound.top,i.right=this._containerWidth-this._plotBound.left+Bt.plotGap,i.orient="vertical";break;default:i.top=this._plotBound.top,i.left=this._containerWidth-this._plotBound.right+Bt.plotGap,i.orient="vertical"}return i.textStyle=this.convertTextStyle(r.ensureTextStyle()),i.data=this._convertLegendIcon(),i}_convertLegendIcon(){return this._data.map(r=>({name:r.name,icon:"rect"}))}convertSeries(){return this._data.map((r,i)=>this._convertSeries(this.chartInfo.ensureSeries(this._seriesIndexMap[i]),r))}_convertSeries(r,i){let s={name:i.name,data:i.data,emphasis:this._convertSeriesEmphasis(),tooltip:{formatter:this._convertSeriesTooltipFormatter(r)}},u=r.ensureLabel();return u.getHidden()||(s.label=this._convertSeriesLabel(u,r)),s}_convertSeriesEmphasis(){return{itemStyle:{shadowColor:"rgba(0,0,0,0.5)",shadowBlur:6,shadowOffsetY:2}}}_convertSeriesLabel(r,i){let s={show:!0,position:this._switchSeriesLabelPosition(r,i),textBorderWidth:3,...this.convertTextStyle(r.ensureTextStyle())};return s.textBorderColor=s.position.startsWith("inside")?"auto":this.chartInfo.ensureChart().getBackgroundColor(),s}_switchSeriesLabelPosition(r){let i="top";switch(r.getPosition()){case"r":i="right";break;case"b":i="bottom";break;case"l":i="left"}return i}convertColor(){let r=this.chartInfo.getSeriesThemeColors();return this._data.map((i,s)=>(s=this._seriesIndexMap[s],this.chartInfo.getSeriesColor(s)||r[s%r.length]))}convertBackground(){return Yo(this.chartInfo.ensureChart().getBackgroundColor())}convertTextStyle(r){return{fontFamily:`"${r.getFontFamily()}"`,fontSize:r.getFontSize(),fontStyle:r.getItalic()?"italic":"normal",fontWeight:r.getBold()?"bold":"normal",color:r.getColor()}}convertTooltip(){return{show:!0,position:"top",transitionDuration:0,padding:[4,12],backgroundColor:"#606264",borderWidth:1,borderColor:"#FFF",extraCssText:"box-shadow: 0 1px 4px rgba(0,0,0,0.1); border-radius: 3px;"}}_convertSeriesTooltipFormatter(r){return i=>{let s="";i.name&&(s+=`<span class="syno-o-chart-tooltip-category">${Gr(i.name)}</span><br>`),s+=`<span class="syno-o-chart-tooltip-icon" style="background-color: ${Gr(i.color)}"></span>`;let u=this._getOriginName(i.seriesName),x=this._tooltipValueFormatter(i.value,r.getRightAxis()?"y2":"y1");return s+`<span class="syno-o-chart-tooltip-series">${u?Gr(u)+": ":""}${Gr(x)}</span>`}}_tooltipValueFormatter(r,i){return this._dataFormatter(r,i)}_dataFormatter(r,i){return td(this.chartInfo.dataFormatter)?this.chartInfo.dataFormatter(r,i):r}_uniquifyName(r,i){return(1e3+i).toString().substr(1)+r}_getOriginName(r){return r.substr(3)}}class Qo extends id{constructor(r){super(r);let i=this.chartInfo.calcAxisBias();this._useAxis=[i<=0,i>=0]}_getGridSpace(r){return r&&r.getText()?fi(r.ensureTextStyle().getFontSize()||this.chartInfo.ensureGlobalTextStyle().getFontSize())+12:0}_calcGridBound(){let{top:r,left:i,right:s,bottom:u}=this._plotBound;return{top:r,left:i+this._getGridSpace(this._useAxis[0]&&this.chartInfo.ensureYAxis().ensureTitle()),right:s+this._getGridSpace(this._useAxis[1]&&this.chartInfo.ensureYAxis2().ensureTitle()),bottom:u+this._getGridSpace(this.chartInfo.ensureXAxis().ensureTitle())}}convert(r,i){let s=super.convert(r,i);return s.grid=this.convertGrid(),s.xAxis=this.convertXAxis(!1),s.yAxis=this.convertYAxis(!0),s}convertGrid(){return{containLabel:!0,...this._calcGridBound()}}convertXAxis(r){return this.convertCategoryAxis(this.chartInfo.ensureXAxis(),r)}convertYAxis(r){return[this.chartInfo.ensureYAxis(),this.chartInfo.ensureYAxis2()].map((i,s)=>this.convertValueAxis(this._useAxis[s]&&i,r,"y"+(s+1)))}convertCategoryAxis(r,i){return{type:"category",data:this._category,inverse:r.ensureScaling().getRevert(),...this.convertAxis(r,i)}}convertValueAxis(r,i,s){if(!r)return{show:!1};let u={splitNumber:r.getTickNumber(),scale:!0,...this.convertAxis(r,i),...this.convertAxisScale(r.ensureScaling())};return u.axisLabel.show!==!1&&(u.axisLabel.formatter=x=>this._dataFormatter(x,s)),u}convertAxisScale(r){return{type:r.getLog()&&this.chartInfo.ensureChart().getGrouping()===Xo.STANDARD?"log":"value",min:r.getMin(),max:r.getMax()}}convertAxis(r,i){return{axisLine:{show:!1},axisTick:{show:!1},axisLabel:this.convertAxisLabel(r.ensureLabel(),i),splitLine:{lineStyle:this.convertAxisLine(r.ensureMajorGridLines(),i)},...this.convertAxisTitle(r.ensureTitle(),i)}}convertAxisLine(r,i){return{color:r.getHidden()?"transparent":r.getColor()}}convertAxisTitle(r,i){return!r||!r.getText()||r.getHidden()?{}:{name:r.getText(),nameTextStyle:this.convertTextStyle(r.ensureTextStyle()),nameLocation:"center",nameGap:i?56:28}}convertAxisLabel(r,i){return!r||r.getHidden()?{show:!1}:{show:!0,rotate:r.getRotate(),margin:i?12:4,...this.convertTextStyle(r.ensureTextStyle())}}convertLegend(){let r=super.convertLegend(),i=this.chartInfo.ensureChartLegend().getPosition();return(i==="l"||i==="r")&&(r.top=this._plotBound.top),r}_convertSeries(r,i){let s=super._convertSeries(r,i);return r.getRightAxis()&&(s.yAxisIndex=1),s.label&&(s.label.formatter=u=>this._labelValueFormatter(u.value,r.getRightAxis()?"y2":"y1")),s}_labelValueFormatter(r,i){return this._dataFormatter(r,i)}}class nd extends Qo{constructor(r){super(r),this.stacked=this.chartInfo.ensureChart().getGrouping()===Xo.STACKED}_getNullValue(){return this.stacked?0:null}convertValueAxis(r,i,s){let u=super.convertValueAxis(r,i,s);return this.stacked&&u.scale&&(u.scale=!1),u}_convertSeries(r,i){let s=super._convertSeries(r,i);return this.stacked&&(s.stack=r.getRightAxis()?"s0":"s1"),s}}class jr extends nd{_convertSeries(r,i){let s=super._convertSeries(r,i);return jr.fillSeriesOption(s,this.chartInfo,r,i)}_convertLegendIcon(){let r=super._convertLegendIcon();return r.forEach((i,s)=>{i.icon=jr.switchLegendIcon(this.chartInfo.ensureSeries(s).ensureMarker().getSymbol())}),r}static fillSeriesOption(r,i,s,u){r.type="line";let x=s.ensureMarker();r.symbol=jr.switchSeriesMarker(x.getSymbol()),r.symbolSize=x.getSize();let v=s.ensureLineStyle(),P=v.getType();switch(P){case"dot":P="dotted";break;case"dash":P="dashed";break;default:P="solid"}return r.lineStyle={type:P,width:v.getWidth()},s.getSmooth()&&(r.smooth=!0),i.ensurePlotArea().getBlankAs()===Bi.SPAN&&(r.connectNulls=!0),r}static switchSeriesMarker(r){let i;switch(r){case Or.NONE:i="image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";break;case Or.DIAMOND:i="diamond";break;case Or.TRIANGLE:i="triangle";break;case Or.SQUARE:i="rect";break;default:i="circle"}return i}static switchLegendIcon(r){let i="line";switch(r){case Or.CIRCLE:i="circle";break;case Or.DIAMOND:i="diamond";break;case Or.TRIANGLE:i="triangle";break;case Or.SQUARE:i="rect"}return i}}class qx extends jr{_convertSeries(r,i){let s=super._convertSeries(r,i);return s.areaStyle={opacity:r.getOpacity()},s}}class In extends nd{convertXAxis(r){return this.chartInfo.ensureChart().getBarDir()===ar.BAR_DIR?super.convertXAxis(r):super.convertYAxis(r)}convertYAxis(r){return this.chartInfo.ensureChart().getBarDir()===ar.BAR_DIR?super.convertYAxis(r):super.convertXAxis(r)}_convertSeries(r,i){let s=super._convertSeries(r,i);return this.chartInfo.ensureChart().getBarDir()!==ar.BAR_DIR&&s.yAxisIndex&&(s.xAxisIndex=s.yAxisIndex,delete s.yAxisIndex),In.fillSeriesOption(s,this.chartInfo,r,i)}_switchSeriesLabelPosition(r){let i=this.chartInfo.ensureChart().getBarDir()!==ar.BAR_DIR,s=i?"right":"top";switch(r.getPosition()){case"inBase":s=i?"insideLeft":"insideBottom";break;case"inCenter":s="inside";break;case"inEnd":s=i?"insideRight":"insideTop"}return s}static fillSeriesOption(r){return r.type="bar",r}}class Ux extends id{_processCategory(r){r=super._processCategory(r);for(let i=0,s=r.length;i<s;i++)r[i]=this._uniquifyName(r[i],i);return r}_processData(r){r.length=1;let i=r[0].data;for(let s=0,u=i.length;s<u;s++){let x=i[s];i[s]={value:x==null?null:Math.abs(x),name:this._category[s]}}return r}convertColor(){let r=this.chartInfo.getSeriesThemeColors(),i=r.length,s=this.chartInfo.ensurePieSeries().getPieColor(),u=[];for(let x=0,v=this._data[0].data.length;x<v;x++){let P=this._categoryIndexMap[x];u[x]=s&&s[P]||r[P%i]}return u}_convertLegendIcon(){return this._category.map(r=>({name:r,icon:"rect"}))}convertSeries(){return[this._convertSeries(this.chartInfo.ensurePieSeries(),this._data[0])]}_convertSeries(r,i){let s=this._containerWidth-this._plotBound.left-this._plotBound.right,u=this._containerHeight-this._plotBound.top-this._plotBound.bottom,x=Math.min(s,u)/2;return{type:"pie",data:i.data,emphasis:this._convertSeriesEmphasis(),selectedMode:!1,center:[this._plotBound.left+s/2,this._plotBound.top+u/2],radius:[r.getPieHoleSize()/100*x,x],itemStyle:{borderColor:Yo(r.getPieBorderColor())},tooltip:{formatter:this._convertSeriesTooltipFormatter(r)},label:this._convertSeriesLabel(r.ensureLabel())}}_convertSeriesLabel(r){return{show:r.getShowCat()||r.getShowVal()||r.getShowPercent(),formatter:i=>{let s=[];return r.getShowCat()&&s.push(this._getOriginName(i.name)),r.getShowVal()&&s.push(this._dataFormatter(i.value,"y1")),r.getShowPercent()&&s.push(s.length?`(${i.percent}%)`:`${i.percent}%`),s.join(" ")},...this.convertTextStyle(r.ensureTextStyle())}}_convertSeriesTooltipFormatter(){return r=>{let i="",s=this._getOriginName(r.name);return s&&(i+=`<span class="syno-o-chart-tooltip-category">${s}</span><br>`),i+=`<span class="syno-o-chart-tooltip-icon" style="background-color: ${r.color}"></span><span class="syno-o-chart-tooltip-series">${this._tooltipValueFormatter(r.value,"y1")}</span>`}}}class $x extends Qo{_processCategory(r){if(this._xHasNumber=!1,this.chartInfo.ensureXAxis().getTreatAsText())return super._processCategory(r);for(let i=0,s=r.length;i<s;i++)zt(r[i])?this._xHasNumber=!0:r[i]=null;return r}convertXAxis(){let r=this.chartInfo.ensureXAxis();return r.getTreatAsText()?super.convertXAxis():this.convertValueAxis(r,!1,"x")}_convertSeries(r,i){let s=super._convertSeries(r,i);s.type="scatter",this.chartInfo.ensureXAxis().getTreatAsText()||(s.data=s.data.map((x,v)=>this._xHasNumber?[this._category[v],x]:[v,x]));let u=r.ensureMarker();return s.symbol=jr.switchSeriesMarker(u.getSymbol()),s.symbolSize=u.getSize(),s}_convertLegendIcon(){let r=super._convertLegendIcon();return r.forEach((i,s)=>{let u=jr.switchLegendIcon(this.chartInfo.ensureSeries(s).ensureMarker().getSymbol());i.icon=u==="line"?"rect":u}),r}_tooltipValueFormatter(r,i){return Array.isArray(r)?`${this._dataFormatter(r[0],"x")},${this._dataFormatter(r[1],i)}`:this._dataFormatter(r,i)}_labelValueFormatter(r,i){let s=Array.isArray(r)?r[1]:r;return this._dataFormatter(s,i)}}class Zx extends Qo{_convertSeries(r,i){let s=super._convertSeries(r,i);return r.getType(!0)===Wt.BAR?In.fillSeriesOption(s,this.chartInfo,r,i):jr.fillSeriesOption(s,this.chartInfo,r,i)}_convertLegendIcon(){let r=super._convertLegendIcon();return r.forEach((i,s)=>{let u=this.chartInfo.ensureSeries(s);u.getType()===Wt.LINE&&(i.icon=jr.switchLegendIcon(u.ensureMarker().getSymbol()))}),r}_switchSeriesLabelPosition(r,i){return i.getType()===Wt.BAR?In.prototype._switchSeriesLabelPosition.call(this,r,i):super._switchSeriesLabelPosition(r,i)}}let ad=Object.prototype.hasOwnProperty;class yr{constructor(r,i){this.fillArgs(...arguments),i&&this.initSubConfig(i)}fillArgs(r,i){this._info=r,this._config=i}static get configName(){return""}static get subConfigList(){return null}static get configList(){return null}static get supportMap(){return ad.call(this,"_supportMap")||(this._supportMap=this.createSupportMap()),this._supportMap}static createSupportMap(){let r,i=Object.create(null);return(r=this.configList)&&r.forEach(s=>{i[s]=!0}),(r=this.subConfigList)&&r.forEach(s=>{i[s]=!0}),i}initSubConfig(r){let i=this.constructor.subConfigList;if(i)for(let s=0,u=i.length;s<u;++s){let x=i[s],v=r[x];if(Nr(v)){let P="ensure"+Xr(x);(this["_"+P]||this[P]).call(this,v)}}}_cloneConfig(r){return Object.assign(Object.create(null),r)}_getConfig(r,i,s,u){return r&&Nr(r[i])?r[i]:u||s==null?null:s}_setConfig(r,i,s){return Nr(s)?r&&r[i]===s||((r=this._cloneConfig(r))[i]=s):(!r||i in r)&&(r=this._cloneConfig(r),delete r[i]),r}build(){let r=this.getRawConfig(),i,s=this.constructor.supportMap;for(let x in r)if(ad.call(r,x)){if(s[x])continue;i||(i=this._cloneConfig(r)),delete i[x]}let u=this.constructor.subConfigList;if(u&&u.length)for(let x=0,v=u.length;x<v;++x){let P,j=u[x],F=this["get"+Xr(j)](),q=Array.isArray(F);q?(P=Na(F.map(J=>J&&J.build()))).length||(P=null):P=F&&F.build(),(r&&j in r?!P||(q?!function(J,re){let te=Math.max(J?J.length:0,re?re.length:0);for(let ie=0;ie<te;++ie)if((J&&J[ie])!=(re&&re[ie]))return!1;return!0}(P,r[j]):P!==r[j]):P)&&(i||(i=this._cloneConfig(r)),P?i[j]=P:delete i[j])}return i&&(r=i),r&&!function(x){for(let v in x)if(Object.prototype.hasOwnProperty.call(x,v))return!0;return!1}(r)&&(r=null),this.setRawConfig(r),r}compute(r){let i,s=Object.create(null);if((i=this.constructor.subConfigList)&&i.length)for(let u=0,x=i.length;u<x;++u){let v,P=i[u],j=Xr(P),F="ensure"+j,q=this[F]();if(Array.isArray(q)){let J=this["get"+j+"Count"],re=J?J.call(this):q.length;v=[];for(let te=0;te<re;++te)v.push(this[F](te).compute(r))}else v=q.compute(r);s[P]=v}if((i=this.constructor.configList)&&i.length)for(let u=0,x=i.length;u<x;++u){let v=i[u],P=this["get"+Xr(v)];if(P){let j=P.call(this);j!=null&&(s[v]=j)}}return s}cloneRawConfig(){return Object.assign(Object.create(null),this.getRawConfig())}getRawConfig(){return this._config}setRawConfig(r){return this._config!==r&&(this._config=r,!0)}getChartInfo(){return this._info}getSubConfig(r){return this[r]}setSubConfig(r,i,s){return s||(i=this.createSubConfig(r,i)),this[r]=i}createSubConfig(r,i){let s=this.getChartInfo(),u=s.getConfigCls(r);if(!u)throw Error(`Unknown sub-config name. (${r})`);return i[0]!==s&&(i=[s].concat(i)),new u(...i)}getConfig(r,i,s){return this._getConfig(this.getRawConfig(),r,i,s)}setConfig(r,i){return this.setRawConfig(this._setConfig(this.getRawConfig(),r,i))}}let Jx=["xAxis","yAxis","yAxis2","series","layout"],Xx=["blankAs","useRowHeader","useColumnHeader","switchRowColumn"],Yx=["plotArea","title","subtitle","legend","textStyle"],Qx=["backgroundColor","chartType","barDir","grouping"];function Kx(l,r){return l.index-r.index}let e1=["min","max","orientation","logBase"],t1=["hidden","color"],r1=["title","label","scaling","majorGridLines"],i1=["tickNumber","treatAsText"],n1=["symbol","size"],a1=["type","width"],s1=["label","marker","lineStyle"],o1=["type","color","axis2","smooth","opacity","holeSize","pieColors","pieBorderColor"],l1=["textStyle"],h1=["hidden","position"],u1=["textStyle"],c1=["hidden","position","rotate","showVal","showCat","showPercent"],d1=["textStyle"],p1=["hidden","text"],g1={title:{fontSize:16,bold:!0},subtitle:{fontSize:13,color:"#7E8082"},axisTitle:{bold:!0},global:{fontFamily:"Arial",fontSize:12,italic:!1,bold:!1,color:"#000000"}},f1=["fontFamily","fontSize","italic","bold","color"],y1=["enabled","top","left","right","bottom"],x1=[class extends yr{static get configName(){return"plotArea"}static get subConfigList(){return Jx}static get configList(){return Xx}initSubConfig(l){super.initSubConfig(this.fixConfig(l))}fixConfig(l){let{nonNumericAsZero:r,zeroStart:i,xAxisTitle:s,yAxisTitle:u}=l;if(!Nr(r)&&!i&&!s&&!u)return l;if(l=this._cloneConfig(l),delete l.nonNumericAsZero,delete l.zeroStart,delete l.xAxisTitle,delete l.yAxisTitle,!l.blankAs&&Nr(r)&&(l.blankAs=r?Bi.ZERO:Bi.GAP),!l.xAxis&&(s||i)){let x=l.xAxis=Object.create(null);s&&(x.title=s),i&&(x.scaling={min:0})}if(!l.yAxis&&(u||i)){let x=l.yAxis=Object.create(null);u&&(x.title=u),i&&(x.scaling={min:0})}return!l.yAxis2&&i&&(l.yAxis2={scaling:{min:0}}),l}getXAxis(){return this.getSubConfig("xAxis")}ensureXAxis(l){return this.getXAxis()||this.setSubConfig("xAxis",this.createSubConfig("axis",[l]),!0)}getYAxis(){return this.getSubConfig("yAxis")}ensureYAxis(l){return this.getYAxis()||this.setSubConfig("yAxis",this.createSubConfig("axis",[l]),!0)}getYAxis2(){return this.getSubConfig("yAxis2")}ensureYAxis2(l){return this.getYAxis2()||this.setSubConfig("yAxis2",this.createSubConfig("axis",[l]),!0)}_getSeries(){return this.getSubConfig("series")}_ensureSeries(l){return this._getSeries()||this.setSubConfig("series",Array.isArray(l)?l.map((r,i)=>this.createSubConfig("series",[r,i])):[],!0)}getSeries(l){let r=this._getSeries();return r?zt(l)?r[l]:r:null}ensureSeries(l,r){let i=this._ensureSeries();return zt(l)?i[l]||(i[l]=this.createSubConfig("series",[r,l])):i}getSeriesCount(){return this.getChartInfo().getSeriesCount()}getLayout(){return this.getSubConfig("layout")}ensureLayout(l){return this.getLayout()||this.setSubConfig("layout",this.createSubConfig("layout",[l]),!0)}getBlankAs(l){return this.getConfig("blankAs",ar.BLANK_AS,l)}setBlankAs(l){return this.setConfig("blankAs",l)}getUseRowHeader(){return this.getConfig("useRowHeader",!0)}setUseRowHeader(l){return this.setConfig("useRowHeader",!!l)}getUseColumnHeader(){return this.getConfig("useColumnHeader",!0)}setUseColumnHeader(l){return this.setConfig("useColumnHeader",!!l)}getSwitchRowColumn(){return this.getConfig("switchRowColumn",!1)}setSwitchRowColumn(l){return this.setConfig("switchRowColumn",!!l)}},class extends yr{static get configName(){return"chart"}static get subConfigList(){return Yx}static get configList(){return Qx}initSubConfig(l){super.initSubConfig(this.fixConfig(l))}fixConfig(l){let r=l.plotArea;if(!r||r.series)return l;let i=r.subCharts;if(!i||!i.length)return l;r=(l=this._cloneConfig(l)).plotArea=this._cloneConfig(r),delete r.subCharts;let s=r.series=[];for(let u=0,x=i.length;u<x;++u){let{type:v,series:P,barDir:j,grouping:F}=i[u];for(let q=0,J=P.length;q<J;++q){let re=this._cloneConfig(P[q]);re.type=v,s.push(re)}j&&(l.barDir=j),F&&(l.grouping=F)}return s.sort(Kx),l.chartType=i.length>1?"hybrid":i[0].type,l}getPlotArea(){return this.getSubConfig("plotArea")}ensurePlotArea(l){return this.getPlotArea()||this.setSubConfig("plotArea",[l])}getTitle(){return this.getSubConfig("title")}ensureTitle(l){return this.getTitle()||this.setSubConfig("title",[l,"title"])}getSubtitle(){return this.getSubConfig("subtitle")}ensureSubtitle(l){return this.getSubtitle()||this.setSubConfig("subtitle",this.createSubConfig("title",[l,"subtitle"]),!0)}getLegend(){return this.getSubConfig("legend")}ensureLegend(l){return this.getLegend()||this.setSubConfig("legend",[l])}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(l){return this.getTextStyle()||this.setSubConfig("textStyle",[l,"global"])}getBackgroundColor(l){return this.getConfig("backgroundColor",ar.BACKGROUND,l)}setBackgroundColor(l){return this.setConfig("backgroundColor",l)}getChartType(l){return this.getConfig("chartType",ar.TYPE,l)}setChartType(l){return this.setConfig("chartType",l)}getBarDir(l){return this.getConfig("barDir",ar.BAR_DIR,l)}setBarDir(l){return this.setConfig("barDir",l)}getGrouping(l){return this.getConfig("grouping",ar.GROUPING,l)}setGrouping(l){return this.setConfig("grouping",l)}getType(l){return this.getChartType(l)}setType(l){return this.setChartType(l)}},class extends yr{static get configName(){return"scaling"}static get configList(){return e1}getMin(l){return this.getConfig("min",null,l)}setMin(l){return this.setConfig("min",zt(l)?l:null)}getMax(l){return this.getConfig("max",null,l)}setMax(l){return this.setConfig("max",zt(l)?l:null)}getOrientation(l){return this.getConfig("orientation",ar.ORIENTATION,l)}setOrientation(l){return this.setConfig("orientation",l)}getLogBase(l){return this.getConfig("logBase",null,l)}setLogBase(l){return this.setConfig("logBase",zt(l)?l:null)}getRevert(){return this.getOrientation()===Ra.REVERSE}setRevert(l){return this.setOrientation(l?Ra.REVERSE:Ra.SEQUENCE)}getLog(){return!!Nr(this.getLogBase())}setLog(l){return this.setLogBase(l?10:null)}},class extends yr{static get configName(){return"majorGridLines"}static get configList(){return t1}getHidden(l){return this.getConfig("hidden",!1,l)}setHidden(l){return this.setConfig("hidden",!!l)}getColor(l){return this.getConfig("color","#CCCCCC",l)}setColor(l){return this.setConfig("color",l)}},class extends yr{static get configName(){return"axis"}static get subConfigList(){return r1}static get configList(){return i1}getTitle(){return this.getSubConfig("title")}ensureTitle(l){return this.getTitle()||this.setSubConfig("title",[l,"axisTitle"])}getLabel(){return this.getSubConfig("label")}ensureLabel(l){return this.getLabel()||this.setSubConfig("label",[l])}getScaling(){return this.getSubConfig("scaling")}ensureScaling(l){return this.getScaling()||this.setSubConfig("scaling",[l])}getMajorGridLines(){return this.getSubConfig("majorGridLines")}ensureMajorGridLines(l){return this.getMajorGridLines()||this.setSubConfig("majorGridLines",[l])}getTickNumber(l){return this.getConfig("tickNumber",5,l)}setTickNumber(l){return this.setConfig("tickNumber",zt(l)?l:null)}getTreatAsText(l){return this.getConfig("treatAsText",!1,l)}setTreatAsText(l){return this.setConfig("treatAsText",!!l)}},class extends yr{constructor(l,r){r===!0?r=null:r===!1&&(r={symbol:Or.NONE}),super(l,r)}static get configName(){return"marker"}static get configList(){return n1}getSymbol(l){return this.getConfig("symbol",ar.MARKER_SYMBOL,l)}setSymbol(l){return this.setConfig("symbol",l)}getSize(l){return this.getConfig("size",5,l)}setSize(l){return this.setConfig("size",zt(l)?l:null)}},class extends yr{static get configName(){return"lineStyle"}static get configList(){return a1}getType(l){return this.getConfig("type",ar.LINE_DASH,l)}setType(l){return this.setConfig("type",l)}getWidth(l){return this.getConfig("width",2,l)}setWidth(l){return this.setConfig("width",zt(l)?l:null)}},class extends yr{constructor(l,r,i){super(l,r),this.index=zt(i)?i:0}static get configName(){return"series"}static get subConfigList(){return s1}static get configList(){return o1}getDefaultType(){let l=this.getChartInfo().ensureChart().getType();return l===Wt.HYBRID?Wt.BAR:l}getDefaultColor(l){let r=this.getChartInfo().getSeriesThemeColors();return r[l%r.length]}compute(l){let r=super.compute(l);if(l){let i=this.getChartInfo();i.dataHasCat()&&(r.cat=i.getSourceSeriesCat()),i.dataHasTx()&&(r.tx=i.getSourceSeriesTx(this.index)),r.val=i.getSourceSeriesVal(this.index)}return r}getLabel(){return this.getSubConfig("label")}ensureLabel(l){return this.getLabel()||this.setSubConfig("label",[l])}getMarker(){return this.getSubConfig("marker")}ensureMarker(l){return this.getMarker()||this.setSubConfig("marker",[l])}getLineStyle(){return this.getSubConfig("lineStyle")}ensureLineStyle(l){return this.getLineStyle()||this.setSubConfig("lineStyle",[l])}getType(l){let r=this.getConfig("type",null,l);return l||r?r:this.getDefaultType()}setType(l){return this.setConfig("type",l)}getColor(l){let r=this.getConfig("color",null,l);return l||r?r:this.getDefaultColor(this.index)}setColor(l){return this.setConfig("color",l)}getAxis2(l){return this.getConfig("axis2",!1,l)}setAxis2(l){return this.setConfig("axis2",!!l)}getSmooth(l){return this.getConfig("smooth",!1,l)}setSmooth(l){return this.setConfig("smooth",!!l)}getOpacity(l){return this.getConfig("opacity",.2,l)}setOpacity(l){return this.setConfig("opacity",zt(l)?l:null)}getHoleSize(l){return this.getConfig("holeSize",0,l)}setHoleSize(l){return this.setConfig("holeSize",l)}getPieColors(l){return this.getConfig("pieColors",null,l)}setPieColors(l){return this.setConfig("pieColors",Array.isArray(l)?Na(l,!0):null)}getPieBorderColor(l){return this.getConfig("pieBorderColor","#FFFFFF00",l)}setPieBorderColor(l){return this.setConfig("pieBorderColor",l)}getRightAxis(l){return this.getAxis2(l)}setRightAxis(l){return this.setAxis2(l)}getLineSmooth(l){return this.getSmooth(l)}setLineSmooth(l){return this.setSmooth(l)}getAreaOpacity(l){return this.getOpacity(l)}setAreaOpacity(l){return this.setOpacity(l)}getPieHoleSize(l){return this.getHoleSize(l)}setPieHoleSize(l){return this.setHoleSize(l)}getPieColor(l,r){let i=this.getPieColors(r);return i&&Array.isArray(i)?zt(l)?i[l]||this.getDefaultColor(l):i:null}setPieColor(l,r){if(zt(l)){let i=this.getPieColors();(i=i?i.slice():[])[l]=r,r=Na(i)}return this.setPieColors(r)}},class extends yr{static get configName(){return"legend"}static get subConfigList(){return l1}static get configList(){return h1}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(l){return this.getTextStyle()||this.setSubConfig("textStyle",[l])}getHidden(l){return this.getConfig("hidden",!1,l)}setHidden(l){return this.setConfig("hidden",!!l)}getPosition(l){return this.getConfig("position",ar.LEGEND_POSITION,l)}setPosition(l){return this.setConfig("position",l)}},class extends yr{static get configName(){return"label"}static get subConfigList(){return u1}static get configList(){return c1}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(l){return this.getTextStyle()||this.setSubConfig("textStyle",[l])}getHidden(l){return this.getConfig("hidden",!1,l)}setHidden(l){return this.setConfig("hidden",!!l)}getPosition(l){return this.getConfig("position",ar.LABEL_POSITION,l)}setPosition(l){return this.setConfig("position",l)}getRotate(l){return this.getConfig("rotate",0,l)}setRotate(l){return this.setConfig("rotate",l)}getShowVal(l){return this.getConfig("showVal",!1,l)}setShowVal(l){return this.setConfig("showVal",!!l)}getShowCat(l){return this.getConfig("showCat",!1,l)}setShowCat(l){return this.setConfig("showCat",!!l)}getShowPercent(l){return this.getConfig("showPercent",!1,l)}setShowPercent(l){return this.setConfig("showPercent",!!l)}},class extends yr{constructor(l,r,i){rd(r)&&(r={text:r}),super(l,r,i)}fillArgs(l,r,i){super.fillArgs(...arguments),this.styleKey=i}static get configName(){return"title"}static get subConfigList(){return d1}static get configList(){return p1}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(l){return this.getTextStyle()||this.setSubConfig("textStyle",[l,this.styleKey])}getHidden(l){return this.getConfig("hidden",!1,l)}setHidden(l){return this.setConfig("hidden",!!l)}getText(l){return this.getConfig("text","",l)}setText(l){return this.setConfig("text",l)}},class extends yr{constructor(l,r,i){super(l,r),this.defaultStyle=g1[i]}static get configName(){return"textStyle"}static get configList(){return f1}getStyleConfig(l,r){let i=this.getConfig(l,null,r);if(r||Nr(i))return i;let s=this.defaultStyle&&this.defaultStyle[l];return Nr(s)?s:this.getChartInfo().ensureGlobalTextStyle()["get"+Xr(l)]()}getFontFamily(l){return this.getStyleConfig("fontFamily",l)}setFontFamily(l){return this.setConfig("fontFamily",l)}getFontSize(l){return this.getStyleConfig("fontSize",l)}setFontSize(l){return this.setConfig("fontSize",l)}getItalic(l){return this.getStyleConfig("italic",l)}setItalic(l){return this.setConfig("italic",!!l)}getBold(l){return this.getStyleConfig("bold",l)}setBold(l){return this.setConfig("bold",!!l)}getColor(l){return this.getStyleConfig("color",l)}setColor(l){return this.setConfig("color",l)}},class extends yr{static get configName(){return"layout"}static get configList(){return y1}getEnabled(l){return this.getConfig("enabled",!1,l)}setEnabled(l){return this.setConfig("enabled",l)}getLeft(l){return this.getConfig("left",null,l)}setLeft(l){return this.setConfig("left",l)}getTop(l){return this.getConfig("top",null,l)}setTop(l){return this.setConfig("top",l)}getRight(l){return this.getConfig("right",null,l)}setRight(l){return this.setConfig("right",l)}getBottom(l){return this.getConfig("bottom",null,l)}setBottom(l){return this.setConfig("bottom",l)}}].reduce(function(l,r){return l[r.configName]=r,l},Object.create(null)),m1=["#509BE6","#FFC100","#F26166","#AD70CC","#4DBF4D","#FF8F3D","#8E6F69","#00B6CE","#E25FBC","#4D5FFF","#27D790","#3B8795"],v1=class{constructor(l,r){this.readChartCfg(l),this.readOptionCfg(r),this._options=r}getConfigMap(){return x1}getConfigCls(l){return this.getConfigMap()[l]}readChartCfg(l){this._config=new(this.getConfigCls("chart"))(this,l)}readOptionCfg(l){}getUseRowHeader(){return this.ensurePlotArea().getUseRowHeader()}getUseColumnHeader(){return this.ensurePlotArea().getUseColumnHeader()}getSwitchRowColumn(){return this.ensurePlotArea().getSwitchRowColumn()}dataHasCat(){return this.getSwitchRowColumn()?this.getUseColumnHeader():this.getUseRowHeader()}dataHasTx(){return this.getSwitchRowColumn()?this.getUseRowHeader():this.getUseColumnHeader()}setRawData(l){this.data=l}getRawData(){return this.data}cloneRawData(l){let r=this.getRawData();if(!r)return r;if(!l)return r.map(i=>i.slice());{let i=[],s=this._getDataColNumber(r),u=this._getDataRowNumber(r);for(let x=0;x<s;++x){i[x]=[];for(let v=0;v<u;++v)i[x][v]=this._getData(r,v,x)}return i}}_getData(l,r,i){let s=l&&l[r]&&l[r][i];return s??null}getData(l,r){return this._getData(this.getRawData(),l,r)}_getDataRowNumber(l){return l?l.length:0}getDataRowNumber(){return this._getDataRowNumber(this.getRawData())}_getDataColNumber(l){return l&&l[0]?l[0].length:0}getDataColNumber(){return this._getDataColNumber(this.getRawData())}ensureChart(){return this._config}ensureChartTitle(){return this.ensureChart().ensureTitle()}ensureChartSubtitle(){return this.ensureChart().ensureSubtitle()}ensureChartLegend(){return this.ensureChart().ensureLegend()}ensureChartLegendStyle(){return this.ensureChartLegend().ensureTextStyle()}ensureGlobalTextStyle(){return this.ensureChart().ensureTextStyle()}ensurePlotArea(){return this.ensureChart().ensurePlotArea()}ensureSeries(l){return this.ensurePlotArea().ensureSeries(l)}ensureSeriesLabel(l){return this.ensureSeries(l).ensureLabel()}ensureSeriesLabelStyle(l){return this.ensureSeriesLabel(l).ensureTextStyle()}ensurePieSeries(){return this.ensureSeries(0)}ensurePieLabel(){return this.ensurePieSeries().ensureLabel()}ensurePieLabelStyle(){return this.ensurePieLabel().ensureTextStyle()}ensureTitle(l){switch(l){case"title":return this.ensureChartTitle();case"subtitle":return this.ensureChartSubtitle();case"xTitle":return this.ensureXAxis().ensureTitle();case"yTitle":return this.ensureYAxis().ensureTitle();case"y2Title":return this.ensureYAxis2().ensureTitle();default:return null}}ensureTitleStyle(l){let r=this.ensureTitle(l);return r&&r.ensureTextStyle()}ensureXAxis(){return this.ensurePlotArea().ensureXAxis()}ensureYAxis(){return this.ensurePlotArea().ensureYAxis()}ensureYAxis2(){return this.ensurePlotArea().ensureYAxis2()}ensureAxis(l){switch(l){case"x":return this.ensureXAxis();case"y":return this.ensureYAxis();case"y2":return this.ensureYAxis2();default:return null}}ensureAxisScaling(l){let r=this.ensureAxis(l);return r&&r.ensureScaling()}ensureAxisMajorGridLines(l){let r=this.ensureAxis(l);return r&&r.ensureMajorGridLines()}ensureAxisLabel(l){let r=this.ensureAxis(l);return r&&r.ensureLabel()}ensureAxisLabelStyle(l){let r=this.ensureAxisLabel(l);return r&&r.ensureTextStyle()}build(){return this.ensureChart().build()}compute(l){return this.ensureChart().compute(l)}getChartSetting(){let l=this.ensureChart();return this.filterChartSetting(l.getType(),l.getBarDir(),l.getGrouping(),!0)}getSeriesCat(l){let r=+!!this.dataHasTx();if(zt(l))return this.dataHasCat()?ja(this.getData(0,r+l)):"";{let i=this.getDataColNumber(),s=Array(i-r);if(this.dataHasCat())for(let u=r;u<i;++u)s[u-r]=this.getData(0,u);else s.fill("");return s}}getSourceSeriesCat(){return this.getSeriesCat()}getSeriesTx(l){let r=+!!this.dataHasCat();if(zt(l))return this.dataHasTx()?ja(this.getData(r+l,0)):"";{let i=this.getDataRowNumber(),s=Array(i-r);if(this.dataHasTx())for(let u=r;u<i;++u)s[u-r]=ja(this.getData(u,0));else s.fill("");return s}}getSourceSeriesTx(l){return this.getSeriesTx(l)}getSeriesVal(l,r){let i=l+ +!!this.dataHasCat(),s=+!!this.dataHasTx();if(zt(r))return this.getData(i,s+r);{let u=this.getDataColNumber(),x=[];for(let v=s;v<u;++v)x.push(this.getData(i,v));return x}}getSourceSeriesVal(l,r){return this.getSeriesVal(l,r)}getSeriesThemeColors(){return m1}getSeriesCount(l){let r=this.getDataRowNumber()-+!!this.dataHasCat();if(l){let i=this.ensureSeries().length;r<i&&(r=i)}return r}getSeriesColor(l){return this.ensureChart().getType()===Wt.PIE?this.ensurePieSeries().getPieColor(l):this.ensureSeries(l).getColor()}calcAxisBias(){let l,r;return this.forEachSeries(function(i){if(i.getRightAxis()?r=!0:l=!0,l&&r)return!0}),l&&r?0:l?-1:r?1:NaN}forEachSeries(l,r,i){for(let s=0,u=this.getSeriesCount(i);s<u;++s){let x=l.call(r,this.ensureSeries(s),s,u);if(x!=null)return x}}eachSeries(l){return this.forEachSeries(function(r,i){if(l.call(this,r,i)===!1)return!1},this)}filterChartSetting(l,r,i,s){switch(l){case Wt.BAR:case Wt.LINE:case Wt.AREA:break;default:i=s?ar.GROUPING:null}return{type:l,barDir:l===Wt.BAR?r:s?ar.BAR_DIR:null,grouping:i}}handleSeries(l,r,i){zt(l)?r.call(i,this.ensureSeries(l),l):this.forEachSeries(r,i)}_handleTitle(l,r,i){let s=this.ensureTitle(l);s&&r.call(i,s,l)}handleTitle(l,r,i){l?this._handleTitle(l,r,i):["title","subtitle","xTitle","yTitle","y2Title"].forEach(s=>{this._handleTitle(s,r,i)})}_handleAxis(l,r,i){let s=this.ensureAxis(l);s&&r.call(i,s,l)}handleAxis(l,r,i){l?this._handleAxis(l,r,i):["x","y","y2"].forEach(s=>{this._handleAxis(s,r,i)})}getAllColors(){let l=[];function r(i){i&&l.push(i.substr(1).toLowerCase())}return r(this.ensureChart().getBackgroundColor(!0)),this.handleTitle(null,function(i){r(i.ensureTextStyle().getColor(!0))},this),this.forEachSeries(function(i){r(i.getColor(!0)),r(i.getPieBorderColor(!0)),r(i.ensureLabel().ensureTextStyle().getColor(!0)),(i.getPieColors(!0)||[]).forEach(r)},this,!0),r(this.ensureChartLegendStyle().getColor(!0)),this.handleAxis(null,function(i){r(i.ensureLabel().ensureTextStyle().getColor(!0)),r(i.ensureMajorGridLines().getColor(!0))},this),l}static checkCmdName(l){return l&&l in this.prototype&&l!=="apply"&&(l.startsWith("apply")||l.startsWith("_apply"))}apply(l,r){return!!this.constructor.checkCmdName(l)&&(this[l].apply(this,r),!0)}invert(l,r){if(!this.constructor.checkCmdName(l))return!1;let i=this[l.replace("apply","invert")].apply(this,r);return Array.isArray(i)||(i=[i]),i.forEach(s=>{s.name||(s.name=l)}),i}applyChartSetting(l,r,i){if({type:l,barDir:r,grouping:i}=this.filterChartSetting(l,r,i),this._applyChartType(l),l===Wt.HYBRID){let s=this.getSeriesCount()/2;this.forEachSeries(function(u,x){u.setType(x<s?Wt.BAR:null)},this,!0)}else this.forEachSeries(function(s,u){s.setType(null)},this,!0);this._applyChartBarDir(r),this._applyChartGrouping(i)}_applyChartType(l){this.ensureChart().setType(l)}_applyChartBarDir(l){this.ensureChart().setBarDir(l)}_applyChartGrouping(l){this.ensureChart().setGrouping(l)}applyChartBackgroundColor(l){this.ensureChart().setBackgroundColor(l)}applyChartBlankAs(l){this.ensurePlotArea().setBlankAs(l)}applyChartShowBlank(l){this.applyChartBlankAs(l?Bi.SPAN:Bi.GAP)}applyGlobalFontFamily(l){this.ensureGlobalTextStyle().setFontFamily(l)}applyUseColumnHeader(l){this.ensurePlotArea().setUseColumnHeader(l)}applyUseRowHeader(l){this.ensurePlotArea().setUseRowHeader(l)}applySwitchRowColumn(l){this.ensurePlotArea().setSwitchRowColumn(l)}applyPieHoleSize(l){this.ensurePieSeries().setPieHoleSize(l)}applyPieBorderColor(l){this.ensurePieSeries().setPieBorderColor(l)}applyPieLabelDisplay(l){let r=this.ensurePieLabel();r.setShowVal(l.val),r.setShowCat(l.cat),r.setShowPercent(l.percent)}applyPieLabelFontFamily(l){this.ensurePieLabelStyle().setFontFamily(l)}applyPieLabelFontSize(l){this.ensurePieLabelStyle().setFontSize(l)}applyPieLabelBold(l){this.ensurePieLabelStyle().setBold(l)}applyPieLabelItalic(l){this.ensurePieLabelStyle().setItalic(l)}applyPieLabelColor(l){this.ensurePieLabelStyle().setColor(l)}applyTitleText(l,r){this.handleTitle(l,function(i){i.setText(r)})}applyTitleFontFamily(l,r){this.handleTitle(l,function(i){i.ensureTextStyle().setFontFamily(r)})}applyTitleFontSize(l,r){this.handleTitle(l,function(i){i.ensureTextStyle().setFontSize(r)})}applyTitleBold(l,r){this.handleTitle(l,function(i){i.ensureTextStyle().setBold(r)})}applyTitleItalic(l,r){this.handleTitle(l,function(i){i.ensureTextStyle().setItalic(r)})}applyTitleColor(l,r){this.handleTitle(l,function(i){i.ensureTextStyle().setColor(r)})}applySeriesType(l,r){this.handleSeries(l,function(i){i.setType(r)})}applySeriesColor(l,r){if(zt(l))return this.ensureChart().getType()===Wt.PIE?this._applyPieColor(l,r):this._applySeriesColor(l,r)}_applyPieColor(l,r){this.ensurePieSeries().setPieColor(l,r)}_applySeriesColor(l,r){this.ensureSeries(l).setColor(r)}applySeriesRightAxis(l,r){this.handleSeries(l,function(i){i.setRightAxis(r)})}applySeriesSmooth(l,r){this.handleSeries(l,function(i){i.setSmooth(r)})}applySeriesOpacity(l,r){this.handleSeries(l,function(i){i.setOpacity(r)})}applySeriesLineType(l,r){this.handleSeries(l,function(i){i.ensureLineStyle().setType(r)})}applySeriesLineWidth(l,r){this.handleSeries(l,function(i){i.ensureLineStyle().setWidth(r)})}applySeriesMarkerSymbol(l,r){this.handleSeries(l,function(i){i.ensureMarker().setSymbol(r)})}applySeriesMarkerSize(l,r){this.handleSeries(l,function(i){i.ensureMarker().setSize(r)})}applySeriesLabelHidden(l,r){this.handleSeries(l,function(i){i.ensureLabel().setHidden(r)})}applySeriesLabelPosition(l,r){this.handleSeries(l,function(i){i.ensureLabel().setPosition(r)})}applySeriesLabelFontFamily(l,r){this.handleSeries(l,function(i){i.ensureLabel().ensureTextStyle().setFontFamily(r)})}applySeriesLabelFontSize(l,r){this.handleSeries(l,function(i){i.ensureLabel().ensureTextStyle().setFontSize(r)})}applySeriesLabelItalic(l,r){this.handleSeries(l,function(i){i.ensureLabel().ensureTextStyle().setItalic(r)})}applySeriesLabelBold(l,r){this.handleSeries(l,function(i){i.ensureLabel().ensureTextStyle().setBold(r)})}applySeriesLabelColor(l,r){this.handleSeries(l,function(i){i.ensureLabel().ensureTextStyle().setColor(r)})}applyLegendHidden(l){this.ensureChartLegend().setHidden(l)}applyLegendPosition(l){this.ensureChartLegend().setPosition(l),this.applyLegendHidden(!1)}applyLegendFontFamily(l){this.ensureChartLegendStyle().setFontFamily(l)}applyLegendFontSize(l){this.ensureChartLegendStyle().setFontSize(l)}applyLegendItalic(l){this.ensureChartLegendStyle().setItalic(l)}applyLegendBold(l){this.ensureChartLegendStyle().setBold(l)}applyLegendColor(l){this.ensureChartLegendStyle().setColor(l)}applyAxisTickNumber(l,r){this.handleAxis(l,function(i){i.setTickNumber(r)})}applyAxisTreatAsText(l,r){this.handleAxis(l,function(i){i.setTreatAsText(r)})}applyAxisScalingMin(l,r){this.handleAxis(l,function(i){i.ensureScaling().setMin(r)})}applyAxisScalingMax(l,r){this.handleAxis(l,function(i){i.ensureScaling().setMax(r)})}applyAxisScalingOrientation(l,r){this.handleAxis(l,function(i){i.ensureScaling().setOrientation(r)})}applyAxisScalingRevert(l,r){this.handleAxis(l,function(i){i.ensureScaling().setRevert(r)})}applyAxisScalingLogBase(l,r){this.handleAxis(l,function(i){i.ensureScaling().setLogBase(r)})}applyAxisScalingLog(l,r){this.handleAxis(l,function(i){i.ensureScaling().setLog(r)})}applyAxisGridHidden(l,r){this.handleAxis(l,function(i){i.ensureMajorGridLines().setHidden(r)})}applyAxisGridColor(l,r){this.handleAxis(l,function(i){i.ensureMajorGridLines().setColor(r)})}applyAxisLabelHidden(l,r){this.handleAxis(l,function(i){i.ensureLabel().setHidden(r)})}applyAxisLabelRotate(l,r){this.handleAxis(l,function(i){i.ensureLabel().setRotate(r)})}applyAxisLabelFontFamily(l,r){this.handleAxis(l,function(i){i.ensureLabel().ensureTextStyle().setFontFamily(r)})}applyAxisLabelFontSize(l,r){this.handleAxis(l,function(i){i.ensureLabel().ensureTextStyle().setFontSize(r)})}applyAxisLabelItalic(l,r){this.handleAxis(l,function(i){i.ensureLabel().ensureTextStyle().setItalic(r)})}applyAxisLabelBold(l,r){this.handleAxis(l,function(i){i.ensureLabel().ensureTextStyle().setBold(r)})}applyAxisLabelColor(l,r){this.handleAxis(l,function(i){i.ensureLabel().ensureTextStyle().setColor(r)})}applyPlotAreaLayoutEnabled(l,r){let i=this.ensurePlotArea().ensureLayout();i.setEnabled(l),l&&r?(i.setTop(r.top||0),i.setLeft(r.left||0),i.setRight(r.right||0),i.setBottom(r.bottom||0)):(i.setTop(null),i.setLeft(null),i.setRight(null),i.setBottom(null))}applyPlotAreaLeft(l){this.ensurePlotArea().ensureLayout().setLeft(l)}applyPlotAreaTop(l){this.ensurePlotArea().ensureLayout().setTop(l)}applyPlotAreaRight(l){this.ensurePlotArea().ensureLayout().setRight(l)}applyPlotAreaBottom(l){this.ensurePlotArea().ensureLayout().setBottom(l)}invertChartSetting(){let l=[];return l.push.apply(l,this.invert("_applyChartGrouping")),l.push.apply(l,this.invert("_applyChartBarDir")),this.forEachSeries(function(r,i){l.push.apply(l,this.invert("applySeriesType",[i]))},this,!0),l.push.apply(l,this.invert("_applyChartType")),l}_invertChartType(l){return{args:[this.ensureChart().getType(!0)]}}_invertChartBarDir(l){return{args:[this.ensureChart().getBarDir(!0)]}}_invertChartGrouping(l){return{args:[this.ensureChart().getGrouping(!0)]}}invertChartBackgroundColor(l){return{args:[this.ensureChart().getBackgroundColor(!0)]}}invertChartBlankAs(l){return{args:[this.ensurePlotArea().getBlankAs(!0)]}}invertChartShowBlank(l){return this.invert("applyChartBlankAs")}invertGlobalFontFamily(l){return{args:[this.ensureGlobalTextStyle().getFontFamily(!0)]}}invertUseColumnHeader(l){return{args:[this.ensurePlotArea().getUseColumnHeader(!0)]}}invertUseRowHeader(l){return{args:[this.ensurePlotArea().getUseRowHeader(!0)]}}invertSwitchRowColumn(l){return{args:[this.ensurePlotArea().getSwitchRowColumn(!0)]}}invertPieHoleSize(l){return{args:[this.ensurePieSeries().getPieHoleSize(!0)]}}invertPieBorderColor(l){return{args:[this.ensurePieSeries().getPieBorderColor(!0)]}}invertPieLabelDisplay(l){let r=this.ensurePieLabel();return{args:[{val:r.getShowVal(!0),cat:r.getShowCat(!0),percent:r.getShowPercent(!0)}]}}invertPieLabelFontFamily(l){return{args:[this.ensurePieLabelStyle().getFontFamily(!0)]}}invertPieLabelFontSize(l){return{args:[this.ensurePieLabelStyle().getFontSize(!0)]}}invertPieLabelBold(l){return{args:[this.ensurePieLabelStyle().getBold(!0)]}}invertPieLabelItalic(l){return{args:[this.ensurePieLabelStyle().getItalic(!0)]}}invertPieLabelColor(l){return{args:[this.ensurePieLabelStyle().getColor(!0)]}}invertTitleText(l,r){let i=[];return this.handleTitle(l,function(s,u){i.push({args:[u,s.getText(!0)]})}),i}invertTitleFontFamily(l,r){let i=[];return this.handleTitle(l,function(s,u){i.push({args:[u,s.ensureTextStyle().getFontFamily(!0)]})}),i}invertTitleFontSize(l,r){let i=[];return this.handleTitle(l,function(s,u){i.push({args:[u,s.ensureTextStyle().getFontSize(!0)]})}),i}invertTitleBold(l,r){let i=[];return this.handleTitle(l,function(s,u){i.push({args:[u,s.ensureTextStyle().getBold(!0)]})}),i}invertTitleItalic(l,r){let i=[];return this.handleTitle(l,function(s,u){i.push({args:[u,s.ensureTextStyle().getItalic(!0)]})}),i}invertTitleColor(l,r){let i=[];return this.handleTitle(l,function(s,u){i.push({args:[u,s.ensureTextStyle().getColor(!0)]})}),i}invertSeriesType(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.getType(!0)]})}),i}invertSeriesColor(l,r){if(zt(l))return this.ensureChart().getType()===Wt.PIE?this.invert("_applyPieColor",arguments):this.invert("_applySeriesColor",arguments)}_invertPieColor(l,r){return{args:[l,this.ensurePieSeries().getPieColor(l,!0)]}}_invertSeriesColor(l,r){return{args:[l,this.ensureSeries(l).getColor(!0)]}}invertSeriesRightAxis(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.getRightAxis(!0)]})}),i}invertSeriesSmooth(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.getSmooth(!0)]})}),i}invertSeriesOpacity(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.getOpacity(!0)]})}),i}invertSeriesLineType(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLineStyle().getType(!0)]})}),i}invertSeriesLineWidth(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLineStyle().getWidth(!0)]})}),i}invertSeriesMarkerSymbol(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureMarker().getSymbol(!0)]})}),i}invertSeriesMarkerSize(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureMarker().getSize(!0)]})}),i}invertSeriesLabelHidden(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLabel().getHidden(!0)]})}),i}invertSeriesLabelPosition(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLabel().getPosition(!0)]})}),i}invertSeriesLabelFontFamily(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getFontFamily(!0)]})}),i}invertSeriesLabelFontSize(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getFontSize(!0)]})}),i}invertSeriesLabelItalic(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getItalic(!0)]})}),i}invertSeriesLabelBold(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getBold(!0)]})}),i}invertSeriesLabelColor(l,r){let i=[];return this.handleSeries(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getColor(!0)]})}),i}invertLegendHidden(l){return{args:[this.ensureChartLegend().getHidden(!0)]}}invertLegendPosition(l){return[{args:[this.ensureChartLegend().getPosition(!0)]},{name:"applyLegendHidden",args:[this.ensureChartLegend().getHidden(!0)]}]}invertLegendFontFamily(l){return{args:[this.ensureChartLegendStyle().getFontFamily(!0)]}}invertLegendFontSize(l){return{args:[this.ensureChartLegendStyle().getFontSize(!0)]}}invertLegendItalic(l){return{args:[this.ensureChartLegendStyle().getItalic(!0)]}}invertLegendBold(l){return{args:[this.ensureChartLegendStyle().getBold(!0)]}}invertLegendColor(l){return{args:[this.ensureChartLegendStyle().getColor(!0)]}}invertAxisTickNumber(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.getTickNumber(!0)]})}),i}invertAxisTreatAsText(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.getTreatAsText(!0)]})}),i}invertAxisScalingMin(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureScaling().getMin(!0)]})}),i}invertAxisScalingMax(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureScaling().getMax(!0)]})}),i}invertAxisScalingOrientation(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureScaling().getOrientation(!0)]})}),i}invertAxisScalingRevert(l,r){return this.invert("applyAxisScalingOrientation",[l])}invertAxisScalingLogBase(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureScaling().getLogBase(!0)]})}),i}invertAxisScalingLog(l,r){return this.invert("applyAxisScalingLogBase",[l])}invertAxisGridHidden(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureMajorGridLines().getHidden(!0)]})}),i}invertAxisGridColor(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureMajorGridLines().getColor(!0)]})}),i}invertAxisLabelHidden(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureLabel().getHidden(!0)]})}),i}invertAxisLabelRotate(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureLabel().getRotate(!0)]})}),i}invertAxisLabelFontFamily(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getFontFamily(!0)]})}),i}invertAxisLabelFontSize(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getFontSize(!0)]})}),i}invertAxisLabelItalic(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getItalic(!0)]})}),i}invertAxisLabelBold(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getBold(!0)]})}),i}invertAxisLabelColor(l,r){let i=[];return this.handleAxis(l,function(s,u){i.push({args:[u,s.ensureLabel().ensureTextStyle().getColor(!0)]})}),i}invertPlotAreaLayoutEnabled(l){let r=this.ensurePlotArea().ensureLayout(),i={top:r.getTop(!0),left:r.getLeft(!0),right:r.getRight(!0),bottom:r.getBottom(!0)};return{args:[r.getEnabled(!0),i]}}invertPlotAreaLeft(l){return{args:[this.ensurePlotArea().ensureLayout().getLeft(!0)]}}invertPlotAreaTop(l){return{args:[this.ensurePlotArea().ensureLayout().getTop(!0)]}}invertPlotAreaRight(l){return{args:[this.ensurePlotArea().ensureLayout().getRight(!0)]}}invertPlotAreaBottom(l){return{args:[this.ensurePlotArea().ensureLayout().getBottom(!0)]}}isDrawable(){let l,r,i,s=this.ensureChart().getType()===Wt.PIE,u=+!!this.dataHasCat(),x=+!!this.dataHasTx(),v=s?u+1:this.getDataRowNumber(),P=this.getDataColNumber();if(u>=v||x>=P)return!1;for(l=u;l<v;l++)for(r=x;r<P;r++)if(zt(i=this.getData(l,r))&&(!s||i>0))return!0;return!1}getEmptyCategory(){let l=this.getSeriesCat(),r=this.getSeriesCount();return l.map((i,s)=>{if(!Oa(l[s]))return!1;for(let u=0;u<r;u++)if(zt(this.getSeriesVal(u,s)))return!1;return!0})}getEmptySeries(){return Array.from({length:this.getSeriesCount()},(l,r)=>this.getSeriesVal(r).every(i=>Oa(i)))}calcSeriesData(l){let r=[];for(let i=0,s=this.getSeriesCount();i<s;++i)r.push({name:this.getSeriesTx(i),data:this.getSeriesVal(i)});return r}calcPlotBound(l){let{top:r,bottom:i,left:s,right:u}=Bt.padding,x=this.ensureGlobalTextStyle().getFontSize(),v=this.ensureChartTitle();v.getText()&&(r+=fi(v.ensureTextStyle().getFontSize()||x));let P=this.ensureChartSubtitle();P.getText()&&(r+=fi(P.ensureTextStyle().getFontSize()||x)+(v.getText()?Bt.titleGap:0));let j=this.ensureChartLegend();if(!j.getHidden())switch(j.getPosition()){case"t":r+=fi(j.ensureTextStyle().getFontSize()||x)+Bt.plotGap;break;case"b":i+=fi(j.ensureTextStyle().getFontSize()||x)+Bt.plotGap;break;case"l":s+=Bt.legendWidth;break;default:u+=Bt.legendWidth}return r+=Bt.plotGap,s+=Bt.plotGap,u+=Bt.plotGap,l&&(r/=Bt.cm2pxMultiplier,s/=Bt.cm2pxMultiplier,u/=Bt.cm2pxMultiplier,i/=Bt.cm2pxMultiplier),{top:r,left:s,right:u,bottom:i}}getEchartParameters(l,r){let i=function(s){switch(s.ensureChart().getType()){case Wt.LINE:return new jr(s);case Wt.AREA:return new qx(s);case Wt.BAR:return new In(s);case Wt.PIE:return new Ux(s);case Wt.SCATTER:return new $x(s);case Wt.HYBRID:return new Zx(s)}}(this);if(i)return i.initData(),i.convert(l,r)}clone(){return new this.constructor(this.getChartCfg(),this.getOptionCfg())}getConfig(){return{chartCfg:this.getChartCfg(),optionCfg:this.getOptionCfg()}}getChartCfg(){return this.build()}getOptionCfg(){return this._options}},{isDefined:ni}=y,{DEFAULT:b1}=a;class yi extends v1{readOptionCfg(r){this.setRawData(r&&r.data||this.constructor.createDefaultData())}getData(r,i){if(this.getSwitchRowColumn()){let s=r;r=i,i=s}return super.getData(r,i)}getDataRowNumber(){return this.getSwitchRowColumn()?super.getDataColNumber():super.getDataRowNumber()}getDataColNumber(){return this.getSwitchRowColumn()?super.getDataRowNumber():super.getDataColNumber()}static createDefaultData(){return[["","Number 1","Number 2","Number 3","Number 4"],["Category A",500,520,540,520],["Category B",520,540,560,540],["Category C",540,560,580,560]]}static extractData(r,i){let s,u,x,v;if(!r)return null;let P=new this(r,i).ensureChart(),j=P.getPlotArea();if(!j)return null;let F=j.getSeries();if(!F)return null;let q=F.length;if(q===0)return null;if(i&&({switchRowColumn:s,extractCat:u,extractTx:x}=i),!ni(s)||!ni(u)||!ni(x)){let ie=j.getRawConfig().dataDir;s=!!ie&&ie!==b1.DATA_DIR,u=!1,x=!1;for(let de=0;de<q;++de){let ce=F[de];if(ni(ce.cat)&&(u=!0),ni(ce.tx)&&(x=!0),u&&x)break}}let J=[],re=+!!u,te=+!!x;for(let ie=0,de=F.length;ie<de;++ie){let ce=F[ie];if(!ce)continue;if(u&&!v){let we=ce.cat;ni(we)&&(this._fillDataRow(J,0,te,this.translateDataValue(we),s),v=!0)}if(x){let we=ce.tx;if(ni(we)){let Me=this.translateDataValue(we);Array.isArray(Me)&&(Me=Me[0]),this._fillDataRow(J,re+ie,0,Me,s)}}let xe=ce.val;ni(xe)&&this._fillDataRow(J,re+ie,te,this.translateDataValue(xe),s)}return u&&x&&this._fillDataRow(J,0,0,[P.getRawConfig().cornerData||""]),this.ensureData(J)}static translateDataValue(r){return r}static _fillDataRow(r,i,s,u,x){if(Array.isArray(u)||(u=[u]),x)for(let v=0,P=u.length;v<P;++v)this._ensureDataRow(r,s+v)[i]=u[v];else{let v=this._ensureDataRow(r,i);for(let P=0,j=u.length;P<j;++P)v[s+P]=u[P]}}static _ensureDataRow(r,i){return r[i]||(r[i]=[])}static ensureData(r){if(Array.isArray(r)&&r.length){let i=r.length,s=null,u;for(let x=0;x<i;++x){let v;Array.isArray(r[x])?v=r[x].length:(v=0,u=!0),s==null?s=v:s!==v&&(u=!0,s=Math.max(s,v))}if(s===0)r=null;else if(u){let x=[];for(let v=0;v<i;++v){let P=r[v];if(Array.isArray(P)){let j=P.length;j!==s&&((P=P.slice()).length=s,P.fill("",j))}else P=Array(s).fill("");x.push(P)}r=x}}else r=null;return r}static fromNode(r){return this.fromAttrs(r.attrs)}static fromAttrs(r){return new this(r&&r.config,r)}}class sd extends ed{checkChartNode(r,i,s){let u=this.checkNode(r,i,s);return u&&u.type.isChart?u:null}}class Ko extends sd{constructor(r,i,s){super(r,i),this.cmds=Array.isArray(s)?s:[s]}doApply(r){let i=this.checkChartNode(r,this.from,this.to);if(!i)return"No valid node in given `from`.";let s=yi.fromNode(i),u=this.cmds;for(let v=0,P=u.length;v<P;++v){let j=u[v];if(!s.apply(j.name,j.args))return`Invalid command at index ${v} of commands (${u}).`}let x=i.copy(i.content,{config:s.getChartCfg()});return r.replace(this.from,this.to,ot.from(x))}invert(r){let i=this.checkChartNode(r,this.from,this.to);if(!i)return null;let s=yi.fromNode(i),u=this.cmds,x=[];for(let v=u.length-1;v>=0;--v){let P=u[v],j=s.invert(P.name,P.args);if(!j)return null;x.push(...j)}return new this.constructor(this.from,this.to,x)}map(r){let i=this.mapRange(r);return i.deleted?null:new this.constructor(i.from,i.to,this.cmds)}toJSON(r){return{stepType:this.jsonID,from:this.from,to:this.to,cmds:this.cmds}}static fromJSON(r,i){return new this(i.from,i.to,i.cmds)}}gt.jsonID("setChartConfig",Ko);class el extends sd{constructor(r,i,s,u,x){super(r,i),this.row=s,this.col=u,this.value=function(v){return typeof v=="number"&&isFinite(v)}(x)?x:x!=null?String(x):""}doApply(r){let i=this.checkChartNode(r,this.from,this.to);if(!i)return"No valid node in given `from`.";let{row:s,col:u}=this,x=i.getAttrValue("data");if(s>=x.length)return r;let v=x[s];if(u>=v.length)return r;(v=v.slice())[u]=this.value,(x=x.slice())[s]=v;let P=i.copy(i.content,{data:x});return r.replace(this.from,this.to,ot.from(P))}invert(r){let i=this.checkChartNode(r,this.from,this.to);if(!i)return null;let{row:s,col:u}=this,x=i.getAttrValue("data");if(s>=x.length)return null;let v=x[s];return u>=v.length?null:new this.constructor(this.from,this.to,s,u,v[u])}map(r){let i=this.mapRange(r);return i.deleted?null:new this.constructor(i.from,i.to,this.row,this.col,this.value)}toJSON(r){return{stepType:this.jsonID,from:this.from,to:this.to,row:this.row,col:this.col,value:this.value}}static fromJSON(r,i){return new this(i.from,i.to,i.row,i.col,i.value)}}gt.jsonID("setChartDataValue",el),Object.assign($t.prototype,{setChartConfig:function(l,r,i){if(!yi.checkCmdName(r))throw RangeError(`Given command name ${r} is invalid.`);let s=Ko.prototype.checkChartNode(this.doc,l);if(!s)throw RangeError("No chart node at given position");return this.step(new Ko(l,l+s.nodeSize,{name:r,args:i}))},setChartDataValue:function(l,r,i,s){let u=el.prototype.checkChartNode(this.doc,l);if(!u)throw RangeError("No chart node at given position");return this.step(new el(l,l+u.nodeSize,r,i,s))}});class Ea extends gt{constructor(r){super(),this.comment=r}apply(r,i){return nr.ok(r,i)}map(r){return new this.constructor(this.comment)}static fromJSON(r,i){return new(gt.stepClass(i.stepType))(i.comment)}}class od extends Ea{get isCreateCommentStep(){return!0}invert(r){return new ld(this.comment)}}gt.jsonID("createComment",od);class ld extends Ea{invert(r){return new od(this.comment)}}gt.jsonID("removeComment",ld);class hd extends Ea{invert(r){return new ud(this.comment)}}gt.jsonID("resolveComment",hd);class ud extends Ea{get isReopenCommentStep(){return!0}invert(r){return new hd(this.comment)}}gt.jsonID("reopenComment",ud);class cd extends gt{constructor(r){super(),this.operator=r}}class xi extends cd{constructor(r,i){super(r),this.operation=i}doApply(r,i){return this.operate(i)}operate(r){return r[this.constructor.operationName](this.operator,this.operation)}map(r){return this}static fromJSON(r,i){return new this(i.operator,i.operation)}static create(r,i){if(!this.operationProperties.every(s=>s in i))throw Error(`Operation ${JSON.stringify(i)} misses keys ${this.operationProperties}`);return new this(r,$(i,this.operationProperties))}}class tl extends xi{static#e=this.operationName="removeComment";static#t=this.operationProperties=["target"];invert(r,i){let s=i.getCommentById(this.operation.target);return s&&s.isSuggestion()?rl.create(this.operator,s):null}static create(r,i){return super.create(r,i)}}tl.register("removeCommentV2");class rl extends xi{static#e=this.operationName="createComment";static#t=this.operationProperties=["id","author","authorName","type","status","text","timestamp","lastModified"];invert(r,i){return this.operation.type!==1?null:tl.create(this.operator,{target:this.operation.id})}static create(r,i){let s=Date.now();return super.create(r,{id:i.id||ge(),author:r,authorName:i.authorName||void 0,type:i.type,text:i.text,status:i.status??0,timestamp:i.timestamp??s,lastModified:s})}}rl.register("createCommentV2");class dd extends xi{static#e=this.operationName="reply";static#t=this.operationProperties=["target","id","author","authorName","status","text","timestamp","lastModified"];static create(r,i){let s=Date.now();return super.create(r,{target:i.target,id:`${ge()}-${s}`,author:r,authorName:i.authorName||void 0,status:0,text:i.text,timestamp:s,lastModified:s})}}dd.register("createReplyV2");class pd extends xi{static#e=this.operationName="removeReply";static#t=this.operationProperties=["target","replyIndex"];static create(r,i){return super.create(r,{target:i.target,replyIndex:i.replyIndex})}}pd.register("removeReplyV2");class gd extends xi{static#e=this.operationProperties=["target","id","author","authorName","timestamp","lastModified"];invert(r,i){let s=i.getCommentById(this.operation.target);return s&&s.type!==0?(this.constructor.operationName==="resolve"?nl:il).create(this.operator,this.operation):null}static create(r,i){let s=Date.now();return super.create(r,{target:i.target,id:`${ge()}-${s}`,author:r,authorName:i.authorName||void 0,timestamp:s,lastModified:s})}}class il extends gd{static#e=this.operationName="resolve"}il.register("resolveCommentV2");class nl extends gd{static#e=this.operationName="reopen"}nl.register("reopenCommentV2");class fd extends xi{static#e=this.operationName="editCommentText";static#t=this.operationProperties=["target","text","lastModified"];static create(r,i){return super.create(r,{target:i.target,text:i.text,lastModified:Date.now()})}}fd.register("editCommentV2");class yd extends xi{static#e=this.operationName="editReplyText";static#t=this.operationProperties=["target","replyIndex","text","lastModified"];static create(r,i){return super.create(r,{target:i.target,replyIndex:i.replyIndex,text:i.text,lastModified:Date.now()})}}yd.register("editReplyV2");class w1 extends $t{constructor(r,i,s){super(r,i,s),this.userInfo={id:0}}getUserId(){return this.userInfo.id}getUserName(){return this.userInfo.name}getUserInfo(){return this.userInfo}setUserInfo(r){this.userInfo=r}createComment(r,i){return this.step(rl.create(this.getUserId(),{authorName:this.getUserName(),...r}),i)}removeComment(r,i){return this.commentStore.getBy(r,!0),this.step(tl.create(this.getUserId(),{target:r}),i)}clearComments(r){for(let i of this.commentStore.getAllCommentIds())this.removeComment(i,r);return this}setCommentResolved(r,i,s){let u=this.commentStore.getBy(r,!0);return(i?u.isResolved():u.isOpened())?this:this.step((i?il:nl).create(this.getUserId(),{target:r,authorName:this.getUserName()}),s)}resolveComment(r,i){return this.setCommentResolved(r,!0,i)}reopenComment(r,i){return this.setCommentResolved(r,!1,i)}createReply(r,i,s){return this.commentStore.getBy(r,!0),this.step(dd.create(this.getUserId(),{target:r,authorName:this.getUserName(),text:i}),s)}removeReply(r,i,s){return this.commentStore.getBy(r,!0),this.step(pd.create(this.getUserId(),{target:r,replyIndex:i}),s)}editCommentText(r,i,s){return this.commentStore.getBy(r,!0),this.step(fd.create(this.getUserId(),{target:r,text:i}),s)}editReplyText(r,i,s,u){return this.commentStore.getBy(r,!0),this.step(yd.create(this.getUserId(),{target:r,replyIndex:i,text:s}),u)}}let Va=Te.createOptional({empty_value:m,copyable:!0,settable:!1,normalizer:l=>{let r;return l?(Array.isArray(l)?r=l:typeof l=="string"&&(r=l.split(" ")),r&&r.length?r:null):null}}),al={trackingSelf:Va},M1={...al,trackingStart:Va,trackingEnd:Va.copy({backward:!0})},_1={...al,trackingLeaf:Va};function Pn(l,r){return l.getAttrValue(r)||m}let A1=(l,r)=>{if(r===void 0&&(r=!1),l.is("Text"))throw Error("Unable to mixin Trackable to Text.");return class extends l{getFreezeList(){let i=super.getFreezeList();return i.push("trackingAttrs","trackingAttrsList","defaultTrackingAttrs"),i}static getSelfPropertyName(){return"Trackable"}get trackingAttrs(){let i=this.constructor;return i.is("Inline")||!i.is("EditableType")?al:r?_1:M1}get trackingAttrsList(){return Object.keys(this.trackingAttrs)}get defaultTrackingAttrs(){return Te.emptyAttrs(this.trackingAttrs)}get attrs(){return{...super.attrs,...this.trackingAttrs}}computeJsonConversionAttrs(i,s){let u=super.computeJsonConversionAttrs(i,s);if(s.target!=="clipboard")return u;if(!s.preserveTrackings&&this.trackingAttrsList.some(x=>u[x])){let x={...u};for(let v of this.trackingAttrsList)x[v]&&(x[v]=void 0);u=x}return u}renderAttrsDom(i,s,u){if(super.renderAttrsDom(i,s,u),u.target!=="clipboard"){let x;this.isNonEditableType?x=Pn(s,"trackingSelf"):this.is("EditableType")&&!this.is("Inline")&&(x=this.isLeaf?Pn(s,"trackingLeaf"):this.isTextblock?Pn(s,"trackingEnd"):pt(Pn(s,"trackingStart"),Pn(s,"trackingEnd"))),x&&x.length&&(i["data-syno-comment"]=x.join(" "))}return i}renderAttrsJson(i,s,u){if(super.renderAttrsJson(i,s,u),u.target!=="clipboard"||u.preserveTrackings)for(let x of this.trackingAttrsList){let v=s.getAttrValue(x);v?.length&&(i[x]=v)}return i}}},S1=l=>{if(!l.is("Inline"))throw Error("Unable to mixin TrackableInline to non-inline.");return class extends l{static getSelfPropertyName(){return"TrackableInline"}computeJsonConversionMarks(r,i){let s=super.computeJsonConversionMarks(r,i);if(!s.length||i.target!=="clipboard")return s;if(!i.preserveTrackings){let u=this.schema.markType("tracking").findIndexFromSet(s);if(u>=0){let x=s.slice();x.splice(u,1),s=x}}return s}}};class xd extends Rr{static getSelfPropertyName(){return"Tracking"}get supportTextblock(){return!1}get supportListBlock(){return!1}get inclusiveBefore(){return!1}get copyable(){return!0}get clearable(){return!1}get settable(){return!1}get supportMerge(){return!0}get valueKey(){return"id"}get attrs(){return{id:Te.create({normalizer:r=>Array.isArray(r)?r:m})}}merge(r,i){let s=r.getValue(),u=_t(s,i.getValue());return u.length===s.length?r:this.create({id:u})}split(r,i){let s=r.getValue(),u=Ot(s,i.getValue());return u.length===s.length?r:u.length?this.create({id:u}):null}intersect(r,i){let s=r.getValue(),u=pt(s,i.getValue());return u.length===s.length?r:u.length?this.create({id:u}):null}get matchDOMTag(){return{"span[data-syno-comment]":(r,i)=>{let s=r.getAttribute("data-syno-comment");if(!s)return!1;let u=s.split(" ").filter(x=>x);return u.length!==0&&{id:u}}}}toDOM(r,i){let s=i.target!=="clipboard"||i.preserveTrackings?r.getValue():m;return["span",{"data-syno-comment":s.length?s.join(" "):null}]}checkIds(r,i){if(r===i)return!0;if(!r||!i)return!1;if(!r.length&&!i.length)return!0;if(r.length!==i.length)return!1;let s=new Set;for(let u of r)s.add(u);for(let u of i)if(!s.has(u))return!1;return!0}get checker(){return{id:this.checkIds}}}function md(l,r){return l?r?l.length&&r.length?l.concat(r):r.length?r:l:l:r}function C1(l,r){return r.is("Tracking")&&l.push(...r.getValue()),l}function sl(l){return l.marks.reduce(C1,[])}function vd(l){return l.getAttrValue("trackingLeaf")||m}function ol(l){return l.is("Trackable")?l.getAttrValue("trackingSelf")||m:null}function bd(l){return l.is("Inline")?sl(l):null}function wd(l){return l.is("Inline")?sl(l):l.is("Trackable")?l.is("Leaf")?vd(l):l.getAttrValue("trackingStart")||m:null}function Md(l){return l.is("Inline")?sl(l):l.is("Trackable")?l.is("Leaf")?vd(l):l.getAttrValue("trackingEnd")||m:null}function _d(l){return md(wd(l),ol(l))}function Ad(l){return md(Md(l),l.is("Leaf")?ol(l):null)}let ll={from:-1,to:-1};function Tn(l,r){return ll.from=l,ll.to=r,ll}function I1(l,r){return l.is("Trackable")?Tn(r,r+1):null}function Sd(l,r){if(l.is("EditableType")){if(l.is("Inline"))return Tn(r,r+l.nodeSize);if(l.is("Trackable"))return Tn(r,r+1)}return null}function Cd(l,r){if(l.is("EditableType")){if(l.is("Inline"))return Tn(r,r+l.nodeSize);if(l.is("Trackable")){let i=r+l.nodeSize;return Tn(i-1,i)}}return null}function hl(l,r,i,s){return!l.is("Inline")||l.is("Leaf")||r>=i&&r+l.nodeSize<=s}function Id(l,r,i,s,u){u===void 0&&(u=d);let x=(F,q,J,re,te)=>{let ie=F(re,te);ie&&s(re,te,q(re)||m,Math.max(r,ie.from),Math.min(i,ie.to),J)},v=x.bind(null,I1,ol,!0),P=x.bind(null,Sd,wd,!1),j=x.bind(null,Cd,Md,!1);l.nodesInside(r,i,(F,q,J,re,te)=>{te||v(F,q),hl(F,q,r,i)&&(te?F.is("Inline")||j(F,q):P(F,q))},{overrideRoot:!0,skipOutOfRange:!0,skipInlineContent:u.skipInlineContent,enableLeaving:!0})}let Pd=new WeakMap;function Td(l){let r=Pd.get(l);return r||(r={},Pd.set(l,r)),r}function kd(l){for(let r=2,i=l.length;r<i;r+=2)if(l[r-1]>l[r])return!0;return!1}function*ul(l,r){let i=l.length+(l.length%2==0?0:-1);if(r?.reversed)for(let s=i/2-1,u=i-2;u>=0;--s,u-=2)yield{from:l[u],to:l[u+1],index:s};else for(let s=0,u=0;u<i;++s,u+=2)yield{from:l[u],to:l[u+1],index:s}}function Cr(l,r,i){for(let{from:s,to:u,index:x}of ul(l))if(r.call(i,s,u,x))return}function cl(l,r){if(l===r)return!0;let i=l.length;if(i!==r.length)return!1;for(let s=0;s<i;++s)if(l[s]!==r[s])return!1;return!0}function Ld(l){return l instanceof kt}function Ba(l){let r=Td(l);if(r.deleted)return r.deleted;{let i=[];return Ld(l)&&l.forEach((s,u)=>{u!==0&&i.push(s,s+u)}),r.deleted=i,i}}function dl(l){let r=Td(l);if(r.inserted)return r.inserted;{let i=[];return Ld(l)&&l.forEach((s,u,x,v)=>{v!==0&&i.push(x,x+v)}),r.inserted=i,i}}function Dd(l,r){if(!l.length||!r.length)return[];let i=[],s=l.length,u=r.length,x=0,v=0;for(;x<s&&v<u;){let P=l[x],j=l[x+1],F=r[v],q=r[v+1];P<q&&j>F&&i.push(Math.max(P,F),Math.min(j,q)),j<=q&&(x+=2),j>=q&&(v+=2)}return i}function kn(l,r){if(!r.length)return l;if(!l.length)return r;let i=[],s=l.length,u=r.length,x=-1,v=-1,P=0,j=0;for(;P<s||j<u;){let F,q;j>=u||P<s&&l[P]<r[j]?(F=l[P],q=l[P+1],P+=2):(F=r[j],q=r[j+1],j+=2),x>=0?F<=v?v=Math.max(v,q):(i.push(x,v),x=F,v=q):(x=F,v=q)}return x>=0&&i.push(x,v),i}function Rd(l,r){if(!l.length||!r.length)return l;let i=[],s=l.length,u=r.length,x=-1,v=-1,P=0,j=0;for(;;){if(x<0){if(P>=s)break;x=l[P],v=l[P+1],P+=2}for(;j<u&&!(r[j+1]>x);j+=2);if(j>=u)break;let F=r[j],q=r[j+1];F<v?(F>x&&i.push(x,F),x=q<v?q:v=-1):(i.push(x,v),x=v=-1)}for(x>=0&&i.push(x,v);P<s;P+=2)i.push(l[P],l[P+1]);return i}function Od(l,r,i){if(!l.length||!i.isMappable())return l;let s=[];for(let u=0,x=l.length;u<x;u+=2)if(r){let{pos:v,deleted:P}=i.mapNodeResult(l[u],1);P||s.push(v,v+1)}else{let v=i.map(l[u],1),P=i.map(l[u+1],-1);if(v<P){let j=s.length;j&&s[j-1]>=v?s[j-1]=P:s.push(v,P)}}return r&&s.sort((u,x)=>u-x),s}class Nd extends cd{constructor(r,i,s,u){super(r),this.ids=i,this.ranges=s,this.sticky=u}collectSelfTrackingRange(r,i,s,u){let x=i.nodeAt(s);return x&&x.is("Trackable")&&r.push(s,s+1),r}collectRangedTrackingRange(r,i,s,u){let x=[];return i.nodesInside(s,u,(v,P,j,F,q)=>{let J;if(!v.is("EditableType")||!hl(v,P,s,u)||!(J=q?Cd(v,P):Sd(v,P)))return;let re=Math.max(s,J.from),te=Math.min(u,J.to),ie=x.length,de=ie?x[ie-1]:-1;re<=de?x[ie-1]=Math.max(de,te):x.push(re,te)},{overrideRoot:!0,skipOutOfRange:!0,skipInlineContent:!0,enableLeaving:!0}),kn(r,x)}collectTrackingRanges(r){let i=this.sticky?this.collectSelfTrackingRange:this.collectRangedTrackingRange,s=[];return Cr(this.ranges,(u,x)=>{s=i.call(this,s,r,u,x)}),s}doApply(r,i){let s=this.ids.filter(u=>i.getCommentById(u));return s.length&&Cr(this.ranges,(u,x)=>{r=this.applyTrackingRange(r,i,u,x,s)}),nr.ok(r,i)}createTrackingMark(r,i,s){return r.type.schema.mark("tracking",{id:s})}modifyCommentIds(r,i){return null}fillTrackingAttrs(r,i,s,u){let x=this.modifyCommentIds(i.getAttrValue(s)||m,u);if(x)return Object.assign(r||Object.create(null),{[s]:x})}applySelfTrackingRange(r,i,s,u,x){let v=r.nodeAt(s);if(!v||!v.is("Trackable"))return r;let P=this.fillTrackingAttrs(void 0,v,"trackingSelf",x);return P?r.replace(s,s+v.nodeSize,ot.from(v.copyWithAttrs(P))):r}applyRangedTrackingRange(r,i,s,u,x){let v=this.createTrackingMark(r,i,x),P=r.slice(s,u).mapDescendants((j,F,q,J)=>{if(!j.is("EditableType"))return j;if(j.is("Inline")){if(hl(j,F,s,u)){let re=J?.contentMatchAt(q+1);if(re&&re.allowsMark(v.type))return j.mark(v[this.constructor.rangeType==="add"?"addToSet":"removeFromSet"](j.marks))}}else if(j.is("Trackable")){let re;if(j.type.isLeaf?re=this.fillTrackingAttrs(re,j,"trackingLeaf",x):(F>=s&&(re=this.fillTrackingAttrs(re,j,"trackingStart",x)),F+j.nodeSize<=u&&(re=this.fillTrackingAttrs(re,j,"trackingEnd",x))),re)return j.copyWithAttrs(re)}return j},{start:s,skipInlineContent:!0});return r.replace(s,u,P)}applyTrackingRange(r,i,s,u,x){return this.sticky?this.applySelfTrackingRange(r,i,s,u,x):this.applyRangedTrackingRange(r,i,s,u,x)}invert(r,i){return(this.constructor.rangeType==="add"?Fa:za).create(this.operator,this.ids,this.ranges,this.sticky)}map(r){let i=Od(this.ranges,this.sticky,r);return i.length?new this.constructor(this.operator,this.ids,i,this.sticky):null}static fromJSON(r,i){return new this(i.operator,i.ids,i.ranges,i.sticky)}static create(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return super.create(...i)}}class za extends Nd{static#e=this.rangeType="add";modifyCommentIds(r,i){let s=_t(r,i);return s.length===r.length?null:s}}gt.jsonID("addCommentTracking",za);class Fa extends Nd{static#e=this.rangeType="remove";modifyCommentIds(r,i){let s=Ot(r,i);return s.length===r.length?null:s}}gt.jsonID("removeCommentTracking",Fa),(class extends gt{static fromJSON(l,r){return za.create(0,[r.id],r.ranges,r.applyOnNode)}}).register("createCommentRange"),(class extends gt{static fromJSON(l,r){return Fa.create(0,[r.id],r.ranges,r.applyOnNode)}}).register("removeCommentRange");class P1 extends Uc{}class T1 extends $c{constructor(r){super(r),this.ranges=r.ranges||m,this.sticky=r.sticky??!1,this.suggestionInfo=void 0}getSuggestionInfo(){let r;if(this.suggestionInfo!==void 0)return this.suggestionInfo;if(this.isSuggestion())try{r=JSON.parse(this.text)}catch{r=null}else r=null;return this.suggestionInfo=r}getSuggestionOp(){let r=this.getSuggestionInfo();return r?r.op||"":null}getSuggestionStepId(){let r=this.getSuggestionInfo();return r?r.step||"":null}isInsertion(){return this.isSuggestion()&&this.getSuggestionOp()==="insertion"}isDeletion(){return this.isSuggestion()&&this.getSuggestionOp()==="deletion"}isSelfDiscussion(r){return this.isAuthor(r)&&this.isDiscussion()}isSelfSuggestion(r){return this.isAuthor(r)&&this.isSuggestion()}isSelfInsertion(r){return this.isAuthor(r)&&this.isInsertion()}isSelfDeletion(r){return this.isAuthor(r)&&this.isDeletion()}hasRanges(){return!!this.ranges.length}hasSingleRanges(){return this.hasRanges()&&this.ranges.length<=2}hasMultiRanges(){return this.hasRanges()&&this.ranges.length>2}isVisible(){return this.isOpened()&&this.hasRanges()}forEachRange(r,i){Cr(this.ranges,r,i)}handleRanges(r,i,s){s===void 0&&(s=!1);let u=this.ranges,x=(s?kn:Rd)(u,r),v=u.length?this.sticky:i,P=i===v&&i;return v===P&&cl(u,x)?this:this.copy({ranges:x,sticky:P})}addRanges(r,i){return this.handleRanges(r,i,!0)}removeRanges(r,i){return this.handleRanges(r,i,!1)}mapRanges(r,i){let s=this.ranges;return!s.length||!r.isMappable()||cl(s=Rd(s=Od(s,this.sticky,r),i),this.ranges)?this:this.copy({ranges:s})}toObject(){return Object.assign(super.toObject(),{ranges:this.ranges,sticky:this.sticky})}static createReply(r){return P1.fromJSON(r)}}let pl={ids:[],whole:!1};class zi extends An{constructor(r,i){if(!i)throw Error("doc is not initialized.");super(r),this.doc=i}init(){let r=zi.buildTrackingRangesMap([{fragment:this.doc}]);return this.updateCommentsMapped((i,s)=>{let u=r.get(s);return u?i.copy(u):i.copy()})}assertValid(){}hasVisibleSuggestion(){let r=!1;return this.forEach(i=>{if(i.isVisible()&&i.isSuggestion())return r=!0,!0}),r}commentIdsBetween(r,i,s,u){return Id(this.doc,r,i,(x,v,P,j,F,q)=>{P.length&&s(P,q)},u)}commentsBetween(r,i,s,u){return this.commentIdsBetween(r,i,x=>{let v=this.idsToComments(x);v.length&&s(v)},u)}static buildTrackingRangesMap(r){let i=new Map;for(let{fragment:s,from:u,to:x,start:v=0}of r)Id(s,u??0,x??s.getContentSize(),(P,j,F,q,J,re)=>{for(let te of F)(function(ie,de,ce,xe){let we=i.get(ie);if(we){!xe&&we.sticky&&(we.sticky=!1);let Me=we.ranges,Se=Me.length,Re=Se?Me[Se-1]:-1;de<=Re?Me[Se-1]=Math.max(Re,ce):Me.push(de,ce)}else i.set(ie,{ranges:[de,ce],sticky:xe})})(te,q+v,J+v,re)});return i}_findCommentIdsAt(r,i){let s,u,x=r.parent,v=r.index();return x.is("Textblock")&&!r.atNodeBoundary?(s=bd(x.child(v)),u=!0):(s=i>0?v===x.childCount?Ad(x):_d(x.child(v)):v===0?_d(x):Ad(x.child(v-1)),u=!1),pl.ids=s||m,pl.whole=u,pl}findCommentIdsAt(r,i){return this._findCommentIdsAt(r,i).ids}findCommentIdsUnion(r){let{ids:i,whole:s}=this._findCommentIdsAt(r,-1);return s?i:_t(i,this._findCommentIdsAt(r,1).ids)}getCommentsAt(r,i){let s=this.doc.resolve(r);return this.idsToComments(i===0?this.findCommentIdsUnion(s):this.findCommentIdsAt(s,i))}getAt(r,i){return this.getCommentsAt(r,i)}getCommentsInsideRanges(r){let i=new Set;return Cr(r,(s,u)=>{this.commentIdsBetween(s,u,x=>{x.forEach(i.add,i)})}),this.idsToComments(i)}getInsideRanges(r){return this.getCommentsInsideRanges(r)}getCommentsInside(r,i){return this.getCommentsInsideRanges([r,i])}getInside(r,i){return this.getCommentsInside(r,i)}getCommentsBetweenRanges(r){let i=new Set;return Cr(r,(s,u)=>{this.commentIdsBetween(s,u,x=>{x.forEach(i.add,i)},{skipInlineContent:!0})}),this.idsToComments(i)}getBetweenRanges(r){return this.getCommentsBetweenRanges(r)}getCommentsBetween(r,i){return this.getCommentsBetweenRanges([r,i])}getBetween(r,i){return this.getCommentsBetween(r,i)}getCommentsFittingRanges(r){let i=[];return Cr(r,(s,u)=>{i.push(this.getCommentsAt(s,1),this.getCommentsAt(u,-1))}),pt(...i)}getFittingRanges(r,i){return this.getCommentsFittingRanges(r)}getCommentsFitting(r,i){return i===void 0&&(i=r),this.getCommentsFittingRanges([r,i])}getFitting(r,i){return this.getCommentsFitting(r,i)}getCommentsAcrossRanges(r){let i=[];return Cr(r,(s,u)=>{i.push(this.getCommentsAt(s,-1),this.getCommentsAt(u,1))}),pt(...i)}getAcrossRanges(r){return this.getCommentsAcrossRanges(r)}getCommentsAcross(r,i){return this.getCommentsAcrossRanges([r,i])}getAcross(r,i){return this.getCommentsAcross(r,i)}updateDoc(r){let i=this.copy();return i.doc=r,i}updateComments(r){let i=this.copy();return i.comments=r,i}updateCommentsMapped(r,i){return this.updateComments(Y(this.comments,r,i))}mapPos(r){if(!r.isMappable())return this;let i=dl(r),s=[];return Cr(i,(u,x)=>{let v=this.doc.resolveCommon(u,x);if(!v)return;let P=new Set;v.forEach((j,F)=>{let q=bd(F);q&&q.forEach(P.add,P)}),s.push(P)}),this.updateCommentsMapped(u=>{let x,v=s.map(P=>P.has(u.id));return x=v.some(P=>P)?v.reduce((P,j,F)=>(j||P.push(i[2*F],i[2*F+1]),P),[]):i,u.mapRanges(r,x)})}mapCommentRanges(r,i,s,u){if(u===void 0&&(u=!1),!r.length||!i.length)return this;let x=u?"addRanges":"removeRanges",v=r.reduce((j,F)=>{let q=this.getBy(F);return q&&j.push(q[x](i,s)),j},[]),P=this.copy();return v.forEach(j=>{P.comments[j.id]=j}),P}mapCommentTrackingStep(r){return this.mapCommentRanges(r.ids,r.collectTrackingRanges(this.doc),r.sticky,r.jsonID==="addCommentTracking")}mapStep(r){switch(r.jsonID){case"addCommentTracking":case"removeCommentTracking":return this.mapCommentTrackingStep(r);default:return this}}mapChange(r,i,s){return this.updateDoc(r).mapStep(i).mapPos(s||kt.empty)}mapTransform(r){let i=this;return r.forEach((s,u,x,v)=>{i=i.mapChange(r.docs[v+1]||r.doc,s,u)}),i}idsToComments(r){let i=[];return r.forEach(s=>{let u=this.getBy(s);u&&i.push(u)}),i}static createComment(r){return T1.fromJSON(r)}static createComments(r){return super.createComments(r)}static init(r){return r.init()}static fromJSON(r,i){return this.init(new this(this.createComments(r||[]),i))}static fromCommentStore(r,i){return this.fromJSON(r.toJSON(),i)}static from(r,i){return!i||Array.isArray(i)?this.fromJSON(i,r):i instanceof this&&i.doc===r?i:this.fromCommentStore(i,r)}}class k1 extends w1{constructor(r,i,s){super(r,i,s),this._lastActiveStepIndex=-1,this.duringStep=!1,this.tracking=!1}get lastActiveStepIndex(){return this._lastActiveStepIndex}get lastActiveStep(){return this.steps[this.lastActiveStepIndex]}get lastActivePosMap(){return this.posMaps[this.lastActiveStepIndex]}get lastActiveCustomMap(){return this.customMaps[this.lastActiveStepIndex]||void 0}saveActiveStepIndex(){this._lastActiveStepIndex=this.length-1}clearActiveStepIndex(){this._lastActiveStepIndex=-1}isTracking(){return this.tracking}setTracking(r){this.tracking=!!r}isDuringStep(){return this.duringStep}setDuringStep(r){this.duringStep=r}execIfTracking(r){this.isTracking()&&(this.setTracking(!1),r(),this.setTracking(!0))}maybeStep(r,i){let s,u=!this.isDuringStep();u&&this.setDuringStep(!0);let x=r.prepare();r=x.step,this.execIfTracking(()=>{s=this.handleStepPreparation(x,i),this.removeDeletedCommentTracking(r.posMap(this.doc))});let v=this.addStep(r);return v.succ&&(u&&!i?.passive&&this.saveActiveStepIndex(),this.execIfTracking(()=>{this.addInsertedCommentTracking(this.lastPosMap),s?.insertionTrackings&&this.applyTrackingItems(s.insertionTrackings)})),u&&this.setDuringStep(!1),v}saveStepResult(r,i){let s=!(i.commentStore instanceof zi);s&&(i.commentStore=this.commentStore.constructor.from(i.doc,i.commentStore)),super.saveStepResult(r,i),s||(this.commentStore=i.commentStore=this.commentStore.mapChange(this.doc,r,this.lastPosMap))}cherryPick(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=this.isTracking();u&&this.setTracking(!1);let x=super.cherryPick(...i);return u&&this.setTracking(!0),x}removeDeletedCommentTracking(r){let i=Ba(r);if(!i.length)return;let s=this.commentStore.getCommentsInsideRanges(i).map(u=>({id:u.id,ranges:Dd(u.ranges,i)}));this.mergeRemoveCommentTracking(s)}addInsertedCommentTracking(r){let i=dl(r);if(!i.length)return;let s=[];Cr(i,(u,x)=>{s.push({ids:this.commentStore.getCommentsAcross(u,x).map(v=>{let{id:P}=v;return P}),range:[u,x]})});for(let u=s.length-1;u>=0;--u){let{ids:x,range:v}=s[u];this.addCommentTracking(x,v)}}handleStepPreparation(r,i){return{insertionTrackings:this.collectTrackingItems(r,i)}}collectTrackingItems(r,i){if(i?.ignoreInsertionTrackings)return[];let s=r.replacements;if(!s?.length)return[];let u=zi.buildTrackingRangesMap(s.map(v=>{let{pos:P,insertionSlice:j}=v,F=ot.from(j);return{fragment:F.content,from:F.openLeft,to:F.openLeft+F.size,start:P-F.openLeft}})),x=[];for(let[v,{ranges:P,sticky:j}]of u)x.push({id:v,ranges:P,sticky:j});return x}applyTrackingItems(r){for(let{id:i,ranges:s}of r.filter(u=>{let{id:x}=u,v=this.commentStore.getBy(x);return v&&!v.hasRanges()}))this.addCommentTracking(i,s);return this}createCommentWithRange(r,i,s,u){let x;if(!i.length)throw new Ut(`Empty ranges when creating comment from ${r}.`);if(i=function(v,P){let j=v.length;if(j%2!=0)throw Error(`Odd tracking ranges: ${v}`);for(let F=0;F<j;F+=2)if(v[F]>=v[F+1])throw Error(`Invalid tracking ranges: ${v}`);if(kd(v)&&kd(v=function(F){let q=[];for(let J=0,re=F.length;J<re;J+=2)q.push([F[J],F[J+1]]);return q.sort((J,re)=>J[0]-re[0]).flat()}(v)))throw Error(`Invalid tracking ranges with overlaps: ${v}`);return v}(i),s)for(let{from:v,to:P}of ul(i)){if(P!==v+1)throw new Ut(`Invalid self tracking ranges: ${i}`);let j=this.doc.resolve(v).self;if(!j||!j.is("Trackable"))throw new Ut((j?`Invalid node \`${j.type.name}\``:"Empty node")+` at position ${v}`)}return r.id?x=r.id:(x=ge(),r={...r,id:x}),this.createComment(r,u),this.commentStore.getBy(x,!0),this.doAddCommentTracking([x],i,s,u)}removeComment(r,i){return this.clearCommentTracking(r,i),super.removeComment(r,i)}resolveDiscussionsWith(r,i){let s=[];for(let u of(this.commentStore.forEach((x,v)=>{x.isDiscussion()&&x.isOpened()&&(!r||r(x))&&s.push(v)}),s))this.resolveComment(u,i);return this}resolveAllDiscussions(r){return this.resolveDiscussionsWith(void 0,r)}doAddCommentTracking(r,i,s,u){return s===void 0&&(s=!1),r.length&&i.length?this.step(za.create(this.getUserId(),r,i,s),u):this}doRemoveCommentTracking(r,i,s,u){return s===void 0&&(s=!1),r.length&&i.length?this.step(Fa.create(this.getUserId(),r,i,s),u):this}clearCommentTracking(r,i){return typeof r=="string"&&(r=[r]),r.forEach(s=>{let u=this.commentStore.getBy(s,!0);this.doRemoveCommentTracking([u.id],u.ranges,u.sticky,i)}),this}handleCommentTracking(r,i,s,u){typeof r=="string"&&(r=[r]);let x=[],v=[];r.forEach(j=>{this.commentStore.getBy(j,!0).sticky?x.push(j):v.push(j)});let P=s?"doAddCommentTracking":"doRemoveCommentTracking";return this[P](x,i,!0,u),this[P](v,i,!1,u),this}addCommentTracking(r,i,s){return this.handleCommentTracking(r,i,!0,s)}removeCommentTracking(r,i,s){return this.handleCommentTracking(r,i,!1,s)}mergeRemoveCommentTracking(r,i){if(r.length>=2&&r.every(s=>{let{ranges:u}=s;return cl(u,r[0].ranges)}))this.removeCommentTracking(r.map(s=>{let{id:u}=s;return u}),r[0].ranges,i);else for(let s=r.length-1;s>=0;--s){let{id:u,ranges:x}=r[s];this.removeCommentTracking([u],x,i)}return this}}class jd extends Ku{transformSpec(r){return{...r=super.transformSpec(r),nodes:Y(r.nodes,i=>{let s=i.type;return!s.is("Trackable")&&!s.is("Text")&&s.is("EditableType")&&(i={...i,type:A1(i.type,!i.content)}),!s.is("TrackableInline")&&s.is("Inline")&&(i={...i,type:S1(i.type)}),i}),marks:[...r.marks,["tracking",xd]]}}}class gl extends Bc{exec(r,i){if(this.checkSkipTracking(r))return super.exec(r,i);let s={...i,passive:!0},u=this.convertAndDeleteSelfInsertion(r.posMap(this.tr.doc),r,s);if(!u)return!0;if(this.trackDeletionRanges(u.posMap(this.tr.doc),u,s),u=this.convertInsertionStep(u)){this.step(u,{...i,passive:!1});let x=this.tr.lastActivePosMap;x&&this.trackInsertionRanges(x,u,s)}else this.tr.clearActiveStepIndex();return!0}convertAndDeleteSelfInsertion(r,i,s){let u=this.tr.length,x=this.deleteSelfInsertion(r,i,s);return x===void 0?this.tr.length===u?i:i.map(this.tr.toRemapping(u)):x}deleteSelfInsertion(r,i,s){let u=Ba(r);if(!u.length)return;let x=this.commentStore.getCommentsBetweenRanges(u).reduce((v,P)=>(P.isSelfInsertion(this.uid)&&v.push({id:P.id,ranges:Dd(P.ranges,u)}),v),[]);x.length&&(this.tr.mergeRemoveCommentTracking(x,s),this.tr.deleteTrackingContentInsideRanges(x.reduce((v,P)=>kn(v,P.ranges),m),s))}checkSkipTracking(r){return!!r.is("replace")&&!!this.doc.resolve(r.from).parent.type.isInvisible}trackDeletionRanges(r,i,s){let u=Ba(r);if(!u.length||this.tr.commentStore.getFittingRanges(u).some(v=>v.isSelfDeletion(this.uid)))return;let x=this.matchSelfDeletion(u,s?.matchSuggestionBias);x?this.tr.addCommentTracking(x.id,u,s):this.tr.createCommentWithRange(this.createSuggestionJson(i,"deletion"),u,!1,s)}trackInsertionRanges(r,i,s){let u=dl(r);if(!u.length)return;let x=this.matchSelfInsertion(u,s?.matchSuggestionBias);x?this.tr.addCommentTracking(x.id,u,s):this.tr.createCommentWithRange(this.createSuggestionJson(i,"insertion"),u,!1,s)}convertInsertionStep(r){return r}handleSuggestion(r,i,s){return s===void 0&&(s=d),!!super.handleSuggestion(r,i,s)&&(i!==r.isInsertion()?(this.tr.clearCommentTracking(r.id,s),this.deleteSuggestionContent(r,s)):s.keepResolvedTracking||this.tr.clearCommentTracking(r.id,s),!0)}deleteSuggestionContent(r,i){this.tr.deleteTrackingContentInsideRanges(r.ranges,i)}createSuggestionJson(r,i){return{type:1,text:this.createSuggestionText(r,i)}}createSuggestionText(r,i){return JSON.stringify({step:gt.normalizeStepId(r.jsonID),op:i})}matchSelfDeletion(r,i){return i===void 0&&(i=-1),this.matchSelfSuggestion(r,i,!1)}matchSelfInsertion(r,i){return i===void 0&&(i=-1),this.matchSelfSuggestion(r,i,!0)}matchSelfSuggestion(r,i,s){return null}}class L1 extends gl{convertInsertionStep(r){return this.commentStore.getCommentsFitting(r.from,r.to).some(i=>i.isSelfInsertion(this.uid))?r:this.tr.getReplaceStep(r.to,r.to,r.slice)}matchSelfSuggestion(r,i,s){return r.length?this.doMatchSelfSuggestion(r[0],r[1],i,s):null}doMatchSelfSuggestion(r,i,s,u){let x=this.commentStore,v=u?"isSelfInsertion":"isSelfDeletion",P=j=>(j=j.filter(F=>!F.sticky&&F[v](this.uid))).length?j[0]:null;return P(x.getAt(s<0?r:i,s))||P(x.getAt(s<0?i:r,-s))||P(x.getBetween(r,i))}}function Ed(l){return l<=0?0:l<=1?1:Math.round(l)}function fl(l){return isNaN(l=Lt(l,"px",1))?null:Ed(l)}function yl(l){return fl(l.style.width||l.getAttribute("width"))}function Vd(l){return fl(l.style.height||l.getAttribute("height"))}class D1{constructor(){this.data=[]}_ensureRowData(r){return this.data[r]||(this.data[r]=[])}_getRowData(r){return this.data[r]}getRowCount(){return this.data.length}getCellCount(r){let i=this._getRowData(r);return i?i.length-1:0}getCell(r,i){let s=this._getRowData(r);return s?s[i+1]:void 0}setCell(r,i,s){return this._ensureRowData(r)[i+1]=s}getRow(r){return this.getCell(r,-1)}setRow(r,i){return this.setCell(r,-1,i)}forEachCell(r,i){let s=this.data;for(let u=0,x=s.length;u<x;++u){let v=s[u];for(let P=0,j=v.length-1;P<j;++P)if(r.call(i,v[P+1],u,P))return}}forEachRow(r,i){let s=this.data;for(let u=0,x=s.length;u<x;++u)if(r.call(i,s[u][0],u))return}}let R1={width:1,style:"solid",color:"#000000"},O1=["left","top","right","bottom"].reduce(function(l,r){return l[r]=R1,l},Object.create(null));function Bd(l,r,i,s,u,x,v,P){l.setCell(r,i,{row_index:r,col_index:i,node:s,dirty:!1,display:!u,hidden:u,view_rowspan:x,view_colspan:v,covered_idx:P,border:u?O1:Object.create(null)})}function zd(l,r){let i="border"+Xr(r);return{width:l.getAttrValue(i+"Width"),style:l.getAttrValue(i+"Style"),color:l.getAttrValue(i+"Color")}}function Fd(l,r){return l.getAttrValue(`border${Xr(r)}Width`)}function xl(l,r,i){return l.border[r]=i||zd(l.node,r)}function ml(l,r,i){let s=i?"left":"top";return r.border[s]||xl(r,s)}function Gd(l,r,i){let s,u,x=i?"right":"bottom",v=(u=i?l.getCell(r.row_index,r.col_index+r.view_colspan):l.getCell(r.row_index+r.view_rowspan,r.col_index))&&!u.hidden?u:void 0;if(v){let P=i?"left":"top";s=Fd(v.node,P)>Fd(r.node,x)?ml(l,v,i):xl(v,P,zd(r.node,x))}return xl(r,x,s)}function Hd(l){var r,i;return r=l,i=p||(p={top:"top",middle:"middle",bottom:"bottom"}),r?i[r]||"top":null}class N1 extends Iu{get Node(){return j1}registerSelfLocalAttrsUpdateMap(r){r.register(r.UPDATE_START,this.name,"init_table_info",null,(i,s)=>{s.setTableNode(i)}),r.register(r.UPDATE_START,this.name,"init_table_row_index",null,(i,s)=>{s.setTableRowIndex(-1)}),r.register(r.BEFORE_CHILD,this.name,"increase_table_row_index",null,(i,s,u)=>{u.setTableRowIndex(u.getTableRowIndex()+1)}),r.register(r.UPDATE_END,this.name,"clear_table_row_index",null,(i,s)=>{s.setTableRowIndex()}),r.register(r.UPDATE_START,this.name,"scan_table",null,(i,s)=>{let u=i.getStateRank();if(u===tt.STATE_NONE)return;let x=!1;if(u>=tt.STATE_UPDATE)x=0;else if(i.forEach(function(v,P,j){return v.getStateRank()>=tt.STATE_UPDATE||v.state.row_index!==j||v.state.cell_count!==v.childCount?(x=j,!0):v.forEach(function(F,q,J){if(F.getStateRank()>=tt.STATE_UPDATE||F.state.row_index!==j||F.state.col_index!==J)return x=j,!0},this,!0)},this,!0),x===!1){if(i.state.row_count===i.childCount)return;x=i.childCount}i.state.row_count=i.childCount,i.forEach(function(v){v.setMinStateRank(tt.STATE_PASSING)}),s.setTableUpdateInfoMap(function(v,P){let j=function(re){let te=new D1,ie=re.childCount,de=re.content.content.map(ce=>ce.childCount);return re.forEach(function(ce,xe,we){te.setRow(we,{row_index:we,node:ce,dirty:!1,border:{left:0,top:0,right:0,bottom:0}})}),re.forEachCell(null,null,null,null,function(ce,xe,we,Me){if(te.getCell(we,Me))return;let Se=Math.min(ce.getAttrValue("rowspan"),ie-we),Re=Math.min(ce.getAttrValue("colspan"),de[we]-Me);if(Se!==1||Re!==1){for(let Ze=1;Ze<Re;++Ze)if(te.getCell(we,Me+Ze)){Re=Ze;break}let Be=Me+Re;for(let Ze=1;Ze<Se;++Ze)if(Be>de[we+Ze]){Se=Ze;break}let Ue={row_index:we,col_index:Me};for(let Ze=0;Ze<Se;++Ze){let lt=we+Ze;for(let At=0;At<Re;++At){if(At===0&&Ze===0)continue;let ht=Me+At;Bd(te,lt,ht,re.getCellNode(lt,ht),!0,1,1,Ue)}}}Bd(te,we,Me,ce,!1,Se,Re,null)}),te}(v);var F=P;if(v.forEachCell(F,null,null,null,function(re,te,ie,de){j.getCell(ie,de).dirty=!0}),F>0&&F<=j.getRowCount()){let re=--F;v.child(re).forEach(function(te,ie,de){let ce=j.getCell(re,de);if(ce.hidden){let xe=ce.covered_idx;if(xe.col_index!==de)return;ce=j.getCell(xe.row_index,xe.col_index),F=Math.min(F,ce.row_index)}ce.dirty=!0})}for(let re=F,te=j.getRowCount();re<te;++re)j.getRow(re).dirty=!0;j.forEachCell(function(re){re.hidden||(ml(j,re,!0),ml(j,re,!1),Gd(j,re,!0),Gd(j,re,!1))}),j.forEachRow(function(re){(function(te,ie){let de=ie.row_index,ce=ie.border;for(let xe=0,we=te.getCellCount(de);xe<we;++xe){let Me=te.getCell(de,xe);if(Me.hidden){let Re=Me.covered_idx;if(Re.col_index!==xe)continue;Me=te.getCell(Re.row_index,Re.col_index)}let Se=Me.border;xe===0&&(ce.left=Se.left.width),ce.right=Se.right.width,ce.top=Math.max(ce.top,Se.top.width),ce.bottom=Math.max(ce.bottom,Se.bottom.width)}})(j,re)});let q=0,J=[];return(v.getAttrValue("colgroup")||m).forEach(re=>{let{width:te}=re;J.push({left:q,width:te}),q+=te}),j.forEachCell(re=>{let te=re.col_index,ie=te+re.view_colspan,de=0;for(let ce=te;ce<ie;++ce)de+=J[ce]?.width||0;re.width=de,re.left=te<J.length?J[te].left:q}),j}(i,x))}),r.register(r.UPDATE_END,this.name,"clear_table_info",null,(i,s)=>{s.setTableUpdateInfoMap(),s.setTableRowIndex(),s.setTableNode()}),r.register(r.SELF_START,this.name,"set_col_info",null,(i,s)=>{let u=0,x=[],v=[],P=0;for(let j=0;j<i.attrs.colgroup.length;++j){let F=i.attrs.colgroup[j].width;x.push(F),v.push(P),P+=F,u+=F}i.state.width=u,i.state.col_width_arr=x,i.state.col_left_arr=v}),r.reorder(r.SELF_START,this.name,"set_text_rect_info")}matchColgroup(r){let i=null,s=null;if(Array.prototype.forEach.call(r.children,u=>{switch(u.nodeName){case"COLGROUP":i=u;break;case"TBODY":s=u}}),i!==null&&i.children.length>0){let u=[];return[...i.children].forEach(x=>{let v=x.span??1,P=yl(x);for(P=P==null?NaN:P||1;v>0;)u.push({width:P}),--v}),u}return s===null?[]:Array.prototype.reduce.call(s.firstElementChild.children,(u,x)=>{let v=x.colSpan,P=yl(x);for(P!=null&&(P=Math.floor(P/v)||1);v>0;)u.push({width:P}),--v;return u},[])}get matchDOMTag(){return{table:(r,i)=>Object.assign(this.parseAttrs(r,i),{synotable:r.getAttribute("synotable")||r.getAttribute("data-syno-table")||fe(r.ownerDocument,"synotable"),colgroup:this.matchColgroup(r),parsed_width:yl(r),parsed_height:Vd(r)})}}createFromDOM(r,i,s,u){let x=u&&u.editor_width||NaN,v=this.fixTableCreation(i,r,x);return i=v.content,r=v.attrs,super.createFromDOM(r,i,s,u)}maybeCreateFilled(r,i,s){let u=this.fixTableCreation(i,r);return i=u.content,r=u.attrs,super.maybeCreateFilled(r,i,s)}_getIndexStore(r){let i=new Di;for(let s=0;s<r.childCount;++s){let u=r.child(s);if(!(u.getAttrValue("parsed_empty")&&i.getAt(s,0)))for(let x=0;x<u.childCount;++x){let v=u.child(x),P=s,j=x;for(;i.getAt(P,j);)j++;i.setAt(P,j,v);let F=v.attrs.colspan||1,q=v.attrs.rowspan||1;for(let J=0;J<q;++J)for(let re=0;re<F;++re){if(J===0&&re===0)continue;let te=P+J,ie=j+re;if(i.getAt(te,ie))F=re;else{let de=he({colspan:1,rowspan:1},he(v.attrs));i.setAt(te,ie,this.schema.nodes.table_cell.createAndFill(de))}}}}return i}_fixValueArr(r,i,s,u){let x=0,v=[];for(let P=0;P<r.length;++P){let j=r[P];isNaN(j)||j==null?v.push(P):x+=j}if(v.length){let P;for(let j of(P=!isNaN(i)&&i>x?Math.floor((i-x)/v.length):!isNaN(s)&&s>x?Math.floor((s-x)/v.length):u,v))r[j]=P,x+=P}else if(!isNaN(i)&&i>x){let P=i/x;for(let j=0;j<r.length;++j)r[j]=Math.floor(r[j]*P)}if((isNaN(i)||i==null)&&(i=x),!isNaN(s)&&i>s){let P=s/i;for(let j=0;j<r.length;++j)r[j]=Math.floor(r[j]*P)}return r}_getFixedRowHeightArr(r,i){let s=Array(r.childCount);for(let u=0;u<r.childCount;++u)s[u]=r.child(u).attrs.height;return this._fixValueArr(s,i,void 0,22)}_getFixedAttrs(r,i,s){let u={...r},x=r.colgroup||[],v=[];for(let F=0;F<i;++F){let q=x[F]?x[F].width:NaN;v.push(q)}let P=r.parsed_width;this._fixValueArr(v,P,s,24);let j=[];for(let F=0;F<i;++F)j.push({width:v[F]});return u.colgroup=j,delete u.parsed_width,delete u.parsed_height,u}fixTableCreation(r,i,s){r||(r=xt.empty),i||(i={});let u=this._getIndexStore(r),x=u.getRectColSize(),v=this._getFixedRowHeightArr(r,i&&i.parsed_height),P=this._getFixedAttrs(i,x,s),j=[];for(let F=0;F<r.childCount;++F){let q=r.child(F),J=[];for(let te=0;te<x;++te){let ie=u.getAt(F,te);ie||(ie=this.schema.nodes.table_cell.createAndFill()),J.push(ie)}let re=q.copy(xt.from(J),{parsed_empty:null});isNaN(v[F])||(re.attrs.height=v[F]),j.push(re)}return{content:xt.from(j),attrs:P}}findGridCell(r,i,s){if(r.type!==this)return null;let u=r.attrs.grid;for(let x=0;x<u.length;++x){let v=u[x];for(let P=0;P<v.length;++P){let j=v[P];if(j.x===i&&j.y===s)return[x,P]}}return null}expandRegion(r,i,s,u,x){if(r.type!==this)return null;let v=r.attrs.grid;v[s][i].real||(i-=v[s][i].dx,s-=v[s][i].dy);let P=[i,s,u,x];for(let j=s;j<=x;++j){let F=u+v[j][u].colspan-v[j][u].dx-1;F>P[2]&&(P[2]=F)}for(let j=i;j<=u;++j){let F=x+v[x][j].rowspan-v[x][j].dy-1;F>P[3]&&(P[3]=F)}return[[P[1],P[0]],[P[3],P[2]]]}}class j1 extends pr{getRowCount(){return this.childCount}getColCount(){return this.attrs&&this.attrs.colgroup&&this.attrs.colgroup.length||0}getRowSize(){return this.getRowCount()}getColSize(){return this.getColCount()}getColWidth(r){let i=this.attrs.colgroup[r];return i?i.width:NaN}getCellIndex(r,i){return this.getCellNode(r,i)&&{row:r,col:i}}getCellNode(r,i){let s=this.maybeChild(r);return s&&s.maybeChild(i)}getCellOffset(r,i){let s=this.maybeChild(r);return!s||i>=s.childCount?NaN:this.offsetAt(r)+1+s.offsetAt(i)}getCellData(r,i){let s=this.getCellNode(r,i);return s?{node:s,offset:this.getCellOffset(r,i),row:r,col:i}:null}getDisplayCellIndex(r,i){let s=this.getCellNode(r,i);return s?(s.state.display||(r=s.state.covered_idx.row_index,i=s.state.covered_idx.col_index,s=this.getCellNode(r,i)),{row:r,col:i,row_span:s.state.view_rowspan,col_span:s.state.view_colspan}):null}getDisplayCellNode(r,i){let s=this.getDisplayCellIndex(r,i);return s&&this.getCellNode(s.row,s.col)}getDisplayCellOffset(r,i){let s=this.getDisplayCellIndex(r,i);return s?this.getCellOffset(s.row,s.col):NaN}getDisplayCellData(r,i){let s=this.getDisplayCellIndex(r,i);return s&&Object.assign(this.getCellData(s.row,s.col),s)}getSiblingDisplayCellIndex(r,i,s,u){var x,v;let P=this.getDisplayCellIndex(r,i);return P&&this.getDisplayCellIndex(P.row+(x=P.row_span,s>0?x:s<0?-1:0),P.col+(v=P.col_span,u>0?v:u<0?-1:0))}getSiblingDisplayCellNode(r,i,s,u){let x=this.getSiblingDisplayCellIndex(r,i,s,u);return x&&this.getCellNode(x.row,x.col)}getSiblingDisplayCellOffset(r,i,s,u){let x=this.getSiblingDisplayCellIndex(r,i,s,u);return x?this.getCellOffset(x.row,x.col):NaN}getSiblingDisplayCellData(r,i,s,u){let x=this.getSiblingDisplayCellIndex(r,i,s,u);return x&&Object.assign(this.getCellData(x.row,x.col),x)}getNextDisplayCellIndex(r,i,s){let u,x,v,P=this.getDisplayCellIndex(r,i);if(!P)return null;for(s=V(s),r=P.row,i=P.col+s;u=this.maybeChild(r);){for(i==null&&(i=s<0?u.childCount-1:0);x=u.maybeChild(i);){if(x.state.display){v=!0;break}i+=s}if(v)break;i=null,r+=s}return this.getDisplayCellIndex(r,i)}getNextDisplayCellNode(r,i,s,u){let x=this.getNextDisplayCellIndex(r,i,s,u);return x&&this.getCellNode(x.row,x.col)}getNextDisplayCellOffset(r,i,s,u){let x=this.getNextDisplayCellIndex(r,i,s,u);return x?this.getCellOffset(x.row,x.col):NaN}getNextDisplayCellData(r,i,s,u){let x=this.getNextDisplayCellIndex(r,i,s,u);return x&&Object.assign(this.getCellData(x.row,x.col),x)}getEnsuredCellIndex(r,i){return r=qe(r,0,this.childCount-1),i=qe(i,0,this.child(r).childCount-1),{row:r,col:i}}getEnsuredCellNode(r,i){let s=this.getEnsuredCellIndex(r,i);return this.getCellNode(s.row,s.col)}getEnsuredCellOffset(r,i){let s=this.getEnsuredCellIndex(r,i);return this.getCellOffset(s.row,s.col)}getEnsuredCellData(r,i){let s=this.getEnsuredCellIndex(r,i);return this.getCellData(s.row,s.col)}forEachCell(r,i,s,u,x,v,P){return this.forRange(r,i,function(j,F,q){return j.forRange(s,u,function(J,re,te){return x.call(v,J,F+1+re,q,te)},this,P)},this,P)}forEachDisplayCell(r,i,s,u,x,v,P){let j=new Di;return this.forEachCell(r,i,s,u,function(F,q,J,re){let te=this.getDisplayCellIndex(J,re);j.getAt(te.row,te.col)||j.setAt(te.row,te.col,!0)},this),j.forEachCell(this,function(F,q,J,re){return x.call(v,F,q,J,re)},this,P)}forEachOperateCell(r,i,s,u,x,v,P){let j=new Di;return this.forEachCell(r,i,s,u,function(F,q,J,re){let te=this.getDisplayCellIndex(J,re);j.getAt(te.row,te.col)||j.setRange(te.row,te.row+te.row_span-1,te.col,te.col+te.col_span-1,!0)},this),j.forEachCell(this,function(F,q,J,re){return x.call(v,F,q,J,re)},this,P)}getRawIdxStoreByRect(r){let i=new Di;for(let s=r.top;s<=r.bottom;++s)for(let u=r.left;u<=r.right;++u)this.getCellNode(s,u)&&i.setAt(s,u,!0);return i}getDisplayIdxStoreByRect(r){let i=new Di;for(let s=r.top;s<=r.bottom;++s)for(let u=r.left;u<=r.right;++u){let x=this.getCellNode(s,u);x&&(x.state.display?i.setAt(s,u,!0):this.getCellNode(x.state.covered_idx.row_index,x.state.covered_idx.col_index)&&i.setAt(x.state.covered_idx.row_index,x.state.covered_idx.col_index,!0))}return i}getOpIdxStoreByRect(r){let i=new Di;for(let s=r.top;s<=r.bottom;++s)for(let u=r.left;u<=r.right;++u){let x=this.getCellNode(s,u);if(!x)continue;if(i.setAt(s,u,!0),x.state.display){for(let P=0;P<x.state.view_rowspan;++P)for(let j=0;j<x.state.view_colspan;++j){let F=P+x.state.row_index,q=j+x.state.col_index;this.getCellNode(F,q)&&i.setAt(F,q,!0)}continue}let v=this.getCellNode(x.state.covered_idx.row_index,x.state.covered_idx.col_index);if(v)for(let P=0;P<v.state.view_rowspan;++P)for(let j=0;j<v.state.view_colspan;++j){let F=P+v.state.row_index,q=j+v.state.col_index;this.getCellNode(F,q)&&i.setAt(F,q,!0)}}return i}getCellsCount(){let r=0;for(let i=0;i<this.childCount;++i)r+=this.child(i).childCount;return r}}class Wd extends N1{get isTable(){return!0}get unbreakable(){return!0}get selectionExtendable(){return!0}get attrs(){return{synotable:Te.create({default:ge,copyable:!1}),colgroup:Te.create({default:[]}),parsed_width:Te.createOptional({normalizer:"number"}),parsed_height:Te.createOptional({normalizer:"number"})}}getTextRectInfo(r,i){return{left:super.getTextRectInfo(r,i).left,width:r.state.width||0}}getTableDOM(r){return r.firstChild}getTableBodyDOM(r){return this.getTableDOM(r).childNodes[1]}getIndicatorWrapperDOM(r){return this.getTableDOM(r)}renderBlockStructure(r,i){let s=i.target;return["table",this.renderAttrs({synotable:r.getAttrValue("synotable"),inline_style:{borderCollapse:"collapse",tableLayout:"fixed",width:s==="clipboard"?null:r.state.width+"px"}},r,i),(r.getAttrValue("colgroup")||m).reduce((u,x)=>(u.push(["col",{inline_style:{width:`${x.width}px`}}]),u),["colgroup",null]),["tbody",null,0],s==="editor"||s==="viewer"||s==="general"?["div"]:null]}}class qd extends Ta{static checkNode(r){return!!r.is("Table")}}class Ud extends qd{constructor(r,i){super(r),this.cells=i}collectCellActions(r){let i=r.pos+1,s=i+r.self.getContentSize(),u=[];return this.cells.forEach(x=>{let{pos:v}=x;if(!(v>=i&&v<=s))return;let P=r.extend(v-i);if(!P.parent.is("TableRow"))return;let j=this.collectCellAction(P,x);j&&u.push(j)}),u.length?u.sort((x,v)=>x.pos-v.pos):u}applyAtPos(r,i){let{doc:s,self:u}=r,x=u,v=r.pos,P=v+x.nodeSize,j=this.collectCellActions(r);if(j.length)for(let F=j.length-1;F>=0;--F)x=this.applyCellAction(j[F],x,v);return x===u?s:s.replace(v,P,ot.from(x))}map(r){let i=this.mapPos(r);if(i==null)return null;let s=[];return this.cells.forEach(u=>{let x=this.mapCellInfo(u,r);x&&s.push(x)}),s.length?this.constructor.create(i,s):null}static create(r,i){if(!i.length)throw RangeError("Given cells are empty.");return super.create(r,i)}static assertCellInfo(r,i,s){let{pos:u}=s;if(!(u>i&&u<i+r.nodeSize))throw new Ut(`Given cell pos ${u} is out of range (${i}, ${i+r.nodeSize}).`);if(!r.resolve(u-i-1).parent.is("TableRow"))throw new Ut(`Given cell pos ${u} is not at table cell boundary.`)}}function $d(l,r,i){if(!Array.isArray(l)){let s=typeof l;if(s==="object"){let{from:u,to:x}=l;u==null&&(u=0),x==null&&(x=i?r.getRowSize():r.getColSize()),l=Array.from({length:x-u},(v,P)=>u+P)}else if(s==="number")l=[l];else throw RangeError(`Given reference range ${l} is invalid.`)}if(!l.length)throw RangeError("Given reference range is empty.");return l}function Zd(l,r,i){if(!r)return l.nodeType("table_cell").createAndFill(i);{let s=r.maybeChild(0),u=null;if(s&&s.type.isParagraph){let v=l.nodeType("paragraph");u=v.createAndFill(v.settableAttrValues(s.attrs))}let x=l.nodeType("table_cell");return x.createAndFill({...x.settableAttrValues(r.attrs),...i},u)}}function Jd(l){return l.map(r=>r?r.reduce((i,s)=>(i[s.index]=s.node,i),Object.create(null)):Object.create(null))}function Ga(l,r){return r.map(i=>i?i.map(s=>Object.assign(Object.create(null),s,{node:l.nodeFromJSON(s.node)})):[])}function Ha(l,r){if(l.length<r){l=l.slice();for(let i=l.length;i<r;++i)l.push(null)}return l}class Xd extends qd{constructor(r,i){super(r),this.index=i}static get replaceDir(){return""}static get replaceType(){return""}getReplaceIndex(r){return this.index}getReplaceCount(r){return 0}collectTableAttrs(r,i){return null}collectMergedCellsAttrs(r,i){let s,u,x,v,P=this.getReplaceIndex(i);if(P===0)return null;let j=this.getReplaceCount(i);if(j===0)return null;let F=this.constructor.replaceType==="insert",q=this.constructor.replaceDir,J=q+"span";q==="row"?(s=0,u=P-1):(x=0,v=P-1);let re=[];return i.forEachCell(s,u,x,v,(te,ie,de,ce)=>{let xe=te.getAttrValue(J);if(xe===1)return;let we=(q==="row"?de:ce)+xe-1;P>we||re.push({pos:ie,node:te,attrs:{[J]:xe+(F?j:-Math.min(j,we-P+1))}})}),re}collectReplacingContent(r,i){return null}applyAtPos(r,i){let{doc:s,self:u}=r,x=u,v=r.pos,P=v+x.nodeSize,j=this.collectTableAttrs(s,x),F=this.collectMergedCellsAttrs(s,x),q=this.collectReplacingContent(s,x);if(j||F&&F.length||!q||q.length!==1){if(j&&(x=x.copy(x.content,j)),F&&F.forEach(J=>{let{pos:re,node:te,attrs:ie}=J;x=x.replace(re,re+te.nodeSize,ot.from(te.copy(te.content,ie)))}),q)for(let J=q.length-1;J>=0;--J){let{from:re,to:te,content:ie}=q[J];x=x.replace(re,te,ie)}return x===u?s:s.replace(v,P,ot.from(x))}{let J=v+1,{from:re,to:te,content:ie}=q[0];return s.replace(J+re,J+te,ie)}}posMap(r){let i=this.resolvePos(r);if(!i)return kt.empty;let s=this.collectReplacingContent(r,i.self);if(!s)return kt.empty;let u=[],x=i.pos+1;return s.forEach(v=>{let{from:P,to:j,content:F}=v;u.push(x+P,j-P,F?F.size:0)}),new kt(u)}}let Yd=l=>class extends l{static get replaceType(){return"insert"}getReplaceCount(r){return this.cells.length}},Qd=l=>class extends l{static get replaceType(){return"remove"}getReplaceCount(r){return this.count}};function Kd(l,r,i){r=$d(r,l,!0);let s=[],u=[],x=l.type.schema;for(let v=0,P=r.length;v<P;++v){let j=l.maybeChild(r[v]);s.push(j.type.settableAttrValues(j&&j.attrs));let F=[];j&&j.forEach((q,J,re)=>{F.push({index:re,node:i?Zd(x,q,{rowspan:1}):q.deepCopy({target:"replace"})})}),u.push(F)}return{row_attrs:s,cells:u}}class Wa extends Xd{static get replaceDir(){return"row"}}class qa extends Yd(Wa){constructor(r,i,s,u){super(r,i);let x=Math.max(s.length,u.length);this.row_attrs=Ha(s,x),this.cells=Ha(u,x)}getReplaceIndex(r){return Math.min(r.getRowSize(),this.index)}collectReplacingContent(r,i){if(this.getReplaceCount(i)===0)return null;let s=Jd(this.cells),u=this.getReplaceIndex(i),x=i.getColSize(),v=i.type.schema,P=v.nodeType("table_row"),j=v.nodeType("table_cell"),F=i.offsetAt(u),q=this.row_attrs.map((J,re)=>P.create(J,Array.from({length:x},(te,ie)=>s[re][ie]?.deepCopy({target:"replace"})||j.createAndFill())));return[{from:F,to:F,content:ot.from(q)}]}invertAtPos(r){return new Ua(r.pos,this.getReplaceIndex(r.self),this.getReplaceCount(r.self))}map(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.index,this.row_attrs,this.cells)}toJSON(r){return Object.assign(super.toJSON(r),{cells:this.cells.map(i=>i.map(s=>({...s,node:s.node.toJSON(r)})))})}static fromJSON(r,i){return new this(i.pos,i.index,i.row_attrs,Ga(r,i.cells))}}gt.jsonID("insertTableRowV2",qa);class Ua extends Qd(Wa){constructor(r,i,s){super(r,i),this.count=s}collectReplacingContent(r,i){let s=this.getReplaceCount(i);if(s===0)return null;let u=i.getRowSize(),x=this.getReplaceIndex(i);if(x>=u)return null;let v=Math.min(x+s,u),P=i.offsetAt(x);return[{from:P,to:P+i.sizeBetween(x,v),content:ot.empty}]}invertAtPos(r){let i=r.self,s=this.getReplaceIndex(i),u=this.getReplaceCount(i),x=u?Kd(i,{from:s,to:Math.min(s+u,i.getRowSize())},!1):null;return new qa(r.pos,s,x?x.row_attrs:[],x?x.cells:[])}map(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.index,this.count)}static fromJSON(r,i){return new this(i.pos,i.index,i.count)}}function $a(l){return l&&l.width?l:{width:24}}function ep(l,r){return r&&r!==1?l.map(i=>Object.assign(Object.create(null),i,{width:i.width*r})):l}function tp(l,r,i,s,u){let x=[];for(let v=0;v<r;++v)x.push($a(l[v]));s&&s.forEach(v=>{x.push($a(v))});for(let v=r+i,P=l.length;v<P;++v)x.push($a(l[v]));return ep(x,u)}gt.jsonID("removeTableRowV2",Ua),gt.jsonID("insertTableRow",class extends gt{static fromJSON(l,r){return new qa(r.table_pos,r.row_index,[r.row_attrs],Ga([r.cell_info_arr]))}}),gt.jsonID("removeTableRow",class extends gt{static fromJSON(l,r){return new Ua(r.table_pos,r.row_index,1)}}),Object.assign($t.prototype,{insertTableRow(l,r,i){let{row_attrs:s,cells:u}=Kd(Wa.resolvePos(this.doc,l,!0).self,i,!0);return this.step(new qa(l,r,s,u))},removeTableRow(l,r,i){return Wa.resolvePos(this.doc,l,!0),this.step(new Ua(l,r,i))}});class Za extends Xd{constructor(r,i,s){super(r,i),this.ratio=s||1}static get replaceDir(){return"col"}collectTableAttrsColgroup(r,i){return null}collectTableAttrs(r,i){let s=this.collectTableAttrsColgroup(r,i);return s?{colgroup:s}:null}}class Ja extends Yd(Za){constructor(r,i,s,u,x){super(r,i,s);let v=Math.max(u.length,x.length);this.colgroup=Ha(u,v),this.cells=Ha(x,v)}getReplaceIndex(r){return Math.min(r.getColSize(),this.index)}collectTableAttrsColgroup(r,i){return tp(i.getAttrValue("colgroup"),this.getReplaceIndex(i),0,this.colgroup,this.ratio)}collectReplacingContent(r,i){if(this.getReplaceCount(i)===0)return null;let s=[],u=Jd(this.cells),x=this.getReplaceIndex(i);return i.forEach((v,P,j)=>{let F=P+1+v.offsetAt(Math.min(v.childCount,x));s.push({from:F,to:F,content:ot.from(u.map(q=>q[j]?.deepCopy({target:"replace"})||r.type.schema.nodeType("table_cell").createAndFill()))})}),s}invertAtPos(r){return new Xa(r.pos,this.getReplaceIndex(r.self),1/this.ratio,this.getReplaceCount(r.self))}map(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.index,this.ratio,this.colgroup,this.cells)}toJSON(r){return Object.assign(super.toJSON(r),{cells:this.cells.map(i=>i.map(s=>({...s,node:s.node.toJSON(r)})))})}static fromJSON(r,i){return new this(i.pos,i.index,i.ratio,i.colgroup,Ga(r,i.cells))}}gt.jsonID("insertTableColV2",Ja);class Xa extends Qd(Za){constructor(r,i,s,u){super(r,i,s),this.count=u}collectTableAttrsColgroup(r,i){return tp(i.getAttrValue("colgroup"),this.getReplaceIndex(i),this.getReplaceCount(i),null,this.ratio)}collectReplacingContent(r,i){let s=this.getReplaceCount(i);if(s===0)return null;let u=[],x=this.getReplaceIndex(i),v=x+s;return i.forEach((P,j,F)=>{if(x>=P.childCount)return;let q=j+1+P.offsetAt(x);u.push({from:q,to:q+P.sizeBetween(x,Math.min(v,P.childCount)),content:ot.empty})}),u}invertAtPos(r){let i=r.self,s=this.getReplaceIndex(i),u=this.getReplaceCount(i),x=this.ratio,v=u?ep(i.getAttrValue("colgroup").slice(s,s+u),x):[],P=[];return u&&i.forEachCell(0,i.getRowSize()-1,s,s+u-1,(j,F,q,J)=>{let re=J-s;(P[re]||(P[re]=[])).push({index:q,node:j.deepCopy({target:"replace"})})}),new Ja(r.pos,s,1/x,v,P)}map(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.index,this.ratio,this.count)}static fromJSON(r,i){return new this(i.pos,i.index,i.ratio,i.count)}}gt.jsonID("removeTableColV2",Xa),gt.jsonID("insertTableCol",class extends gt{static fromJSON(l,r){return new Ja(r.table_pos,r.col_index,r.table_width_ratio,[r.colgroup_info],Ga([r.cell_info_arr]))}}),gt.jsonID("removeTableCol",class extends gt{static fromJSON(l,r){return new Xa(r.table_pos,r.col_index,r.table_width_ratio,1)}}),Object.assign($t.prototype,{insertTableCol(l,r,i){let s,u=this.schema,x=Za.resolvePos(this.doc,l,!0).self,v=(i=$d(i,x,!1)).length,P=x.getAttrValue("colgroup"),j=[],F=[];for(let J=0;J<v;++J){let re=i[J];j.push($a(re>=0?P[re]:null));let te=[];re>=0&&x.forEach((ie,de,ce)=>{let xe=ie.maybeChild(re);xe&&te.push({index:ce,node:Zd(u,xe,{colspan:1})})}),F.push(te)}let q=x.state.width+j.reduce((J,re)=>J+re.width,0);if(u.isDocument){let J=x.state.text_rect_info.width;s=q>J?J/q:1}else s=x.state.width/q;return this.step(new Ja(l,r,s,j,F))},removeTableCol(l,r,i){return Za.resolvePos(this.doc,l,!0),this.step(new Xa(l,r,1,i))}});class Ya extends Ud{collectCellAction(r,i){let{pos:s,attrs:u}=i,x=r.self;return x?{pos:s,node:x,attrs:u}:null}applyCellAction(r,i,s){let{pos:u,node:x,attrs:v}=r,P=u-s-1;return i.replace(P,P+x.nodeSize,ot.from(x.copyWithAttrs(x.type.settableAttrValues(v))))}invertAtPos(r){let i=this.collectCellActions(r);if(!i.length)return null;let s=i.map(u=>{let{pos:x,node:v,attrs:P}=u;return{pos:x,attrs:v.type.invertAttrs(v.attrs,P)}});return this.constructor.create(r.pos,s)}mapCellInfo(r,i){let s=i.mapNodeResult(r.pos,1);return s.deleted?null:{...r,pos:s.pos}}static fromJSON(r,i){return new this(i.pos,i.cells)}static create(r,i){return super.create(r,i)}static assertCellInfo(r,i,s){super.assertCellInfo(r,i,s);let{pos:u,attrs:x}=s;if(!r.nodeAt(u-i-1))throw new Ut(`No node at given cell pos ${u}.`);if(!Te.checkAttrs(r.type.schema.nodeType("table_cell").attrs,x))throw new Ut(`Invalid attrs for cell. ${JSON.stringify(x)}`)}}Ya.register("setTableCellAttrs"),Lr($t.prototype,{setTableCellAttrs(l,r){let i=Ya.resolvePos(this.doc,l,!0).self;return r.slice().sort((s,u)=>s.pos-u.pos).forEach((s,u)=>{Ya.assertCellInfo(i,l,s);let{pos:x}=s;if(u>0&&x===r[u-1].pos)throw new Ut(`Repeatedly set table cell attrs at ${x}.`)}),this.step(Ya.create(l,r))}});class rp extends Ud{posMap(r){let i=this.resolvePos(r);if(!i)return kt.empty;let s=this.collectCellActions(i);if(!s.length)return kt.empty;let u=[];return s.forEach(x=>{this.addCellPosMapRange(x,u)}),kt.create(u)}toJSON(r){return{stepType:this.jsonID,pos:this.pos,cells:this.cells.map(i=>{let s={...i};return i.node&&(s.node=i.node.toJSON(r)),s})}}static create(r,i){return super.create(r,i)}static assertCellInfo(r,i,s){super.assertCellInfo(r,i,s);let{node:u}=s;if(u&&!u.is("TableCell"))throw new Ut(`Given node ${u.type.name} is not table cell.`)}}class ip extends rp{applyCellAction(r,i,s){let{pos:u,oldCell:x,newCell:v}=r,P=u-s-1;return i.replace(P,P+(x?x.nodeSize:0),ot.from(v?.deepCopy({target:"replace"})))}invertAtPos(r){let i=this.collectCellActions(r);if(!i.length)return null;let s=0,u=i.map(x=>{let v,{pos:P,oldCell:j,newCell:F}=x,q=P+s;return v=j?{pos:q,node:j.deepCopy({target:"replace"})}:{pos:q},s+=(F?F.nodeSize:0)-(j?j.nodeSize:0),v});return(this.constructor.replaceType==="insert"?bl:vl).create(r.pos,u)}addCellPosMapRange(r,i){let{pos:s,oldCell:u,newCell:x}=r,v=u?u.nodeSize:0,P=x?x.nodeSize:0,j=i.length;j&&s===i[j-3]+i[j-2]?(i[j-2]+=v,i[j-1]+=P):i.push(s,v,P)}}class vl extends ip{static#e=this.replaceType="insert";collectCellAction(r,i){let{pos:s,node:u}=i;return{pos:s,oldCell:null,newCell:u}}mapCellInfo(r,i){let s=i.mapResult(r.pos,1);return s.deleted?null:{...r,pos:s.pos}}static fromJSON(r,i){return new this(i.pos,i.cells.map(s=>({...s,node:r.nodeFromJSON(s.node)})))}static create(r,i){return super.create(r,i)}}vl.register("insertTableCells");class bl extends ip{static#e=this.replaceType="delete";collectCellAction(r,i){let{pos:s,node:u}=i,x=r.self;return x?{pos:s,oldCell:x,newCell:null}:null}collectCellActions(r){return super.collectCellActions(r).filter((i,s,u)=>{let{pos:x}=i;return s===0||x!==u[s-1].pos})}mapCellInfo(r,i){let s=i.mapNodeResult(r.pos,1);return s.deleted?null:{...r,pos:s.pos}}static fromJSON(r,i){return new this(i.pos,i.cells)}static create(r,i){return super.create(r,i)}}bl.register("deleteTableCells"),Lr($t.prototype,{_insertDeleteTableCells(l,r,i,s){let u=i?vl:bl,x=u.resolvePos(this.doc,l,!0).self;return r.forEach((v,P)=>{let{pos:j,node:F}=v;if(u.assertCellInfo(x,l,v),!i){if(P>0&&j===r[P-1].pos)throw new Ut(`Repeatedly deleting table cell at ${j}.`);if(!x.nodeAt(j-l-1))throw new Ut(`No node at given cell pos ${j}.`)}if(i?!F:F)throw new Ut(`node is ${i?"":"not "}required when ${i?"inserting":"deleting"} table cells.`)}),this.step(u.create(l,r),s)},insertTableCells(l,r,i){return this._insertDeleteTableCells(l,r,!0,i)},deleteTableCells(l,r,i){return this._insertDeleteTableCells(l,r,!1,i)}});class Ln extends rp{collectCellAction(r,i){let{pos:s,node:u,range:x}=i,v=r.self;if(!v)return null;let P=x||[s+1,s+1+v.getContentSize()],j=Zc(r.doc,P[0],P[1],ot.from(u.content));return j?{pos:s,oldCell:v,newCell:u,replaceRange:P,replaceSlice:j}:null}collectCellActions(r){return super.collectCellActions(r).filter((i,s,u)=>{let{pos:x}=i;return s===0||x!==u[s-1].pos})}applyCellAction(r,i,s){let{pos:u,oldCell:x,newCell:v,replaceRange:[P,j],replaceSlice:F}=r,q=v.attrs;q=v.type.completeAttrValues(q),q=v.type.settableAttrValues(q);let J=x.replace(P-u-1,j-u-1,F.deepCopy({target:"replace"})).copyWithAttrs(q),re=u-s-1;return i.replace(re,re+x.nodeSize,ot.from(J))}invertAtPos(r){let i=this.collectCellActions(r);if(!i.length)return null;let s=0,u=i.map(x=>{let{pos:v,oldCell:P,replaceRange:[j,F],replaceSlice:q}=x;P=P.deepCopy({target:"replace"});let J={pos:v+s,node:P.copyWithContent(P.slice(j-v-1,F-v-1).content),range:[j+s,j+s+q.size]};return s+=q.size-(F-j),J});return this.constructor.create(r.pos,u)}addCellPosMapRange(r,i){let{replaceRange:[s,u],replaceSlice:x}=r;i.push(s,u-s,x.size)}mapCellInfo(r,i){let s=i.mapNodeResult(r.pos,1);if(s.deleted)return null;let u=r.range;if(u){let x=i.mapRange(u[0],u[1]);u=[x.from,Math.max(x.from,x.to)]}return{...r,pos:s.pos,...u?{range:u}:null}}static fromJSON(r,i){return new this(i.pos,i.cells.map(s=>({...s,node:r.nodeFromJSON(s.node)})))}static create(r,i){return super.create(r,i)}}Ln.register("replaceTableCells"),Lr($t.prototype,{replaceTableCells(l,r){let i=Ln.resolvePos(this.doc,l,!0).self;return r.forEach((s,u)=>{let{pos:x,range:v}=s;if(Ln.assertCellInfo(i,l,s),u>0&&x===r[u-1].pos)throw new Ut(`Repeatedly replacing table cell at ${x}.`);let P=i.nodeAt(x-l-1);if(!P)throw new Ut(`No node at given cell pos ${x}.`);if(v){let j=x+1,F=j+P.getContentSize();if(v.length!==2||!v.every(q=>q>=j&&q<=F))throw new Ut(`Given cell replace range ${JSON.stringify(v)} out of range [${j}, ${F}].`)}}),this.step(Ln.create(l,r))}});class E1 extends gl{deleteSelfInsertion(r,i,s){let u=i.jsonID;if(u!=="removeTableRowV2"&&u!=="removeTableColV2"&&u!=="deleteTableCells")return super.deleteSelfInsertion(r,i,s);let x=Ba(r);if(!x.length)return;let v=!0;if(Cr(x,(j,F)=>{this.commentStore.getCommentsFitting(j,F).some(q=>q.isSelfInsertion(this.uid))||(v=!1)}),!v)return;let P=this.collectTableCellsDeletionInfo(x);if(P)return this.tr.withoutRevising(function(){this.deleteTableCells(P.pos,P.cells,s)}),null}convertInsertionTableCellsStep(r){let i=r.jsonID;if(i!=="deleteTableCells"){if(i==="insertTableCells")return r;if(i==="replaceTableCells"){let s=r.cells.reduce((u,x)=>{let v=this.doc.nodeAt(x.pos);if(!v)return u;let P=x.range||[x.pos+1,x.pos+1+v.getContentSize()];return this.commentStore.getCommentsFitting(P[0],P[1]).some(j=>j.isSelfInsertion(this.uid))||(P=[P[0],P[0]]),u.push({...x,range:P}),u},[]);return s.length?Ln.create(r.pos,s):null}}return null}convertInsertionStep(r){switch(r.jsonID){case"insertTableCells":case"deleteTableCells":case"replaceTableCells":return this.convertInsertionTableCellsStep(r);case"insertTableRowV2":case"insertTableColV2":return r;default:return null}}deleteSuggestionContent(r,i){let s=this.collectTableCellsDeletionInfo(r.ranges);if(!s)return super.deleteSuggestionContent(r,i);this.tr.withoutRevising(function(){this.deleteTableCells(s.pos,s.cells,i)})}collectTableCellsDeletionInfo(r){let i=-1,s=[];return Cr(r,(u,x)=>{let v=this.doc.resolve(u),P=v.self;if(!P||!P.type.isTableCell||i>=0&&i!==v.before(-1))return i=-1,!0;let j=this.doc.resolve(x),F=j.parent;if(!F.type.isTableRow||F!==v.parent)return i=-1,!0;i<0&&(i=v.before(-1));let q=v.pos;for(let J=v.index(),re=j.index();J<re;++J)s.push({pos:q}),q+=F.child(J).nodeSize}),i<0?null:{pos:i,cells:s}}}class np extends k1{constructor(r,i,s){super(r,i,s),this.revising=!1}isRevising(){return this.revising}setRevising(r){this.revising=r}withoutRevising(r){return this.revising?(this.setRevising(!1),r.call(this),this.setRevising(!0)):r.call(this),this}step(r,i){return typeof i=="boolean"&&(i={revising:i}),(i?.revising??!0)&&this.isRevising()?(this.getRevisionHandler(r.jsonID).exec(this,r,i),this):super.step(r,i)}cherryPick(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=this.isRevising();u&&this.setRevising(!1);let x=super.cherryPick(...i);return u&&this.setRevising(!0),x}handleSuggestion(r,i,s){let u=this.commentStore.getBy(r,!0);if(!u.isSuggestion())throw new Ut(`Comment with given id \`${r}\` is not a suggestion.`);if(!this.getRevisionHandler(u.getSuggestionStepId()||"")[i?"accept":"reject"](this,r,s))throw new Ut(`Failed to ${i?"accept":"reject"} suggestion \`${r}\`.`);return this}acceptSuggestion(r,i){return this.handleSuggestion(r,!0,i)}rejectSuggestion(r,i){return this.handleSuggestion(r,!1,i)}handleSuggestionsWith(r,i,s,u){for(let x of r)this.resolveComment(x,u);return this.clearCommentTracking(i,u),this.deleteTrackingContentInsideRanges(s,u),this}acceptSuggestionsWith(r,i){i===void 0&&(i=d);let s=[],u=[],x=m;return this.commentStore.forEach((v,P)=>{if(!v.isSuggestion()||r&&!r(v))return;let j=v.isDeletion();s.push(P),(!i.keepResolvedTracking||j)&&u.push(P),j&&(x=kn(x,v.ranges))}),this.handleSuggestionsWith(s,u,x,i)}rejectSuggestionsWith(r,i){i===void 0&&(i=d);let s=[],u=[],x=m;return this.commentStore.forEach((v,P)=>{if(!v.isSuggestion()||r&&!r(v))return;let j=v.isInsertion();s.push(P),(!i.keepResolvedTracking||j)&&u.push(P),j&&(x=kn(x,v.ranges))}),this.handleSuggestionsWith(s,u,x,i)}acceptAllSuggestions(r){return this.acceptSuggestionsWith(void 0,r)}acceptAllInsertions(r){return this.acceptSuggestionsWith(i=>i.isInsertion(),r)}acceptAllDeletions(r){return this.acceptSuggestionsWith(i=>i.isDeletion(),r)}rejectAllSuggestions(r){return this.rejectSuggestionsWith(void 0,r)}rejectAllInsertions(r){return this.rejectSuggestionsWith(i=>i.isInsertion(),r)}rejectAllDeletions(r){return this.rejectSuggestionsWith(i=>i.isDeletion(),r)}getRevisionHandler(r){switch(gt.normalizeStepId(r)){case"replaceAround":case"insertNode":case"deleteNode":case"insertFloating":case"deleteFloating":return gl;case"replace":return L1;case"insertTableCells":case"deleteTableCells":case"replaceTableCells":case"insertTableRow":case"removeTableRow":case"insertTableCol":case"removeTableCol":return E1;default:return Bc}}deleteTrackingContent(r,i,s){let u=this.getReplaceStep(r,i)?.deepCopy(this.schema,{target:"replace"});return u&&this.step(u,{...s,revising:!1}),this}deleteTrackingContentInsideRanges(r,i){return function(s,u,x){for(let{from:v,to:P,index:j}of ul(s,{reversed:!0}))if(u.call(void 0,v,P,j))return}(r,(s,u)=>{this.deleteTrackingContent(s,u,i)}),this}}class V1 extends np{constructor(r,i,s,u){super(i,s,u),this.pm=r,this.options=Object.create(null),this.setUserInfo(r.getUserInfo())}apply(r){return this.pm.apply(this,{...this.options,...r})}addStep(r){this.pm.dispatchEvent("beforeTransformStep",r,this);let i=super.addStep(r);return this.pm.dispatchEvent("transformStep",r,this,i),i}}class ap{constructor(r,i){this.pm=r,this.destroyed=!1}isDestroyed(){return this.destroyed}destroy(){this.destroyed||(this.destroyed=!0,this.onDestroy())}onDestroy(){this.pm.destroyHelper(this)}}let sp={};function op(l){let r,i=sp[l];if(i)return i;switch(l){case"array":r=(s,u)=>{let x;return x=u===void 0?[]:Array.isArray(u)?u:[u],Array.isArray(s)?x.push(...s):x.push(s),x};break;case"unique_array":r=(s,u)=>{let x;for(let v of(x=u==null?[]:Array.isArray(u)?u:[u],Array.isArray(s)?s:[s]))x.includes(v)||x.push(v);return x};break;case"set":r=(s,u)=>{let x;for(let v of(x=u==null?new Set:Array.isArray(u)?new Set(u):u,s))x.add(v);return x};break;default:throw Error(`Unknown preset merger: ${l}`)}return sp[l]=r,r}class B1 extends ap{constructor(r,i){super(r,i),this.actionMap=this.convertActionMap(i.actions)}convertActionMap(r){return Y(r,i=>{var s;let u=i.mode??"flush_sync";return{handler:i.handler,merger:typeof(s=i.merger)=="function"?s:typeof s=="string"?op(s):void 0,mode:u,dataRef:null}})}getActionItem(r){return this.actionMap[r]||null}schedule(r,i){if(this.isDestroyed())return;let s=i===void 0?"default":r,u=i===void 0?r:i,x=this.getActionItem(s);if(x.dataRef)x.dataRef.value=this.mergeData(s,u,x.dataRef.value);else{x.dataRef={value:this.mergeData(s,u,void 0)};let v=this.handleData.bind(this,s),P=x.mode;P==="flush_sync"?(this.pm.addEventListener("flush",v,{once:!0}),this.pm.ensureFlush()):this.pm.nextTick({mode:P}).then(v)}}handleData(r){if(this.isDestroyed())return;let i=this.getActionItem(r),{dataRef:s,handler:u}=i;s&&(i.dataRef=null,u.call(null,s.value))}mergeData(r,i,s){let{merger:u}=this.getActionItem(r);return u?u.call(null,i,s):i}static getPresetMerger(r){return op(r)}}let lp=function(l,r){return l===r||l!=l&&r!=r},Qa=function(l,r){for(var i=l.length;i--;)if(lp(l[i][0],r))return i;return-1};var z1=Array.prototype.splice;function Qr(l){var r=-1,i=l==null?0:l.length;for(this.clear();++r<i;){var s=l[r];this.set(s[0],s[1])}}Qr.prototype.clear=function(){this.__data__=[],this.size=0},Qr.prototype.delete=function(l){var r=this.__data__,i=Qa(r,l);return!(i<0)&&(i==r.length-1?r.pop():z1.call(r,i,1),--this.size,!0)},Qr.prototype.get=function(l){var r=this.__data__,i=Qa(r,l);return i<0?void 0:r[i][1]},Qr.prototype.has=function(l){return Qa(this.__data__,l)>-1},Qr.prototype.set=function(l,r){var i=this.__data__,s=Qa(i,l);return s<0?(++this.size,i.push([l,r])):i[s][1]=r,this};let hp=function(l){if(!it(l))return!1;var r=me(l);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"};var wl=et["__core-js_shared__"],up=function(){var l=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),F1=Function.prototype.toString;let mi=function(l){if(l!=null){try{return F1.call(l)}catch{}try{return l+""}catch{}}return""};var G1=/^\[object .+?Constructor\]$/,H1=Object.prototype,W1=Function.prototype.toString,q1=H1.hasOwnProperty,U1=RegExp("^"+W1.call(q1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let $1=function(l){return!!it(l)&&(!up||!(up in l))&&(hp(l)?U1:G1).test(mi(l))},Fi=function(l,r){var i=l?.[r];return $1(i)?i:void 0};var Dn=Fi(et,"Map"),Rn=Fi(Object,"create"),Z1=Object.prototype.hasOwnProperty,J1=Object.prototype.hasOwnProperty;function vi(l){var r=-1,i=l==null?0:l.length;for(this.clear();++r<i;){var s=l[r];this.set(s[0],s[1])}}vi.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},vi.prototype.delete=function(l){var r=this.has(l)&&delete this.__data__[l];return this.size-=+!!r,r},vi.prototype.get=function(l){var r=this.__data__;if(Rn){var i=r[l];return i==="__lodash_hash_undefined__"?void 0:i}return Z1.call(r,l)?r[l]:void 0},vi.prototype.has=function(l){var r=this.__data__;return Rn?r[l]!==void 0:J1.call(r,l)},vi.prototype.set=function(l,r){var i=this.__data__;return this.size+=+!this.has(l),i[l]=Rn&&r===void 0?"__lodash_hash_undefined__":r,this};let X1=function(l){var r=typeof l;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?l!=="__proto__":l===null},Ka=function(l,r){var i=l.__data__;return X1(r)?i[typeof r=="string"?"string":"hash"]:i.map};function bi(l){var r=-1,i=l==null?0:l.length;for(this.clear();++r<i;){var s=l[r];this.set(s[0],s[1])}}function ai(l){var r=this.__data__=new Qr(l);this.size=r.size}function es(l){var r=-1,i=l==null?0:l.length;for(this.__data__=new bi;++r<i;)this.add(l[r])}bi.prototype.clear=function(){this.size=0,this.__data__={hash:new vi,map:new(Dn||Qr),string:new vi}},bi.prototype.delete=function(l){var r=Ka(this,l).delete(l);return this.size-=+!!r,r},bi.prototype.get=function(l){return Ka(this,l).get(l)},bi.prototype.has=function(l){return Ka(this,l).has(l)},bi.prototype.set=function(l,r){var i=Ka(this,l),s=i.size;return i.set(l,r),this.size+=+(i.size!=s),this},ai.prototype.clear=function(){this.__data__=new Qr,this.size=0},ai.prototype.delete=function(l){var r=this.__data__,i=r.delete(l);return this.size=r.size,i},ai.prototype.get=function(l){return this.__data__.get(l)},ai.prototype.has=function(l){return this.__data__.has(l)},ai.prototype.set=function(l,r){var i=this.__data__;if(i instanceof Qr){var s=i.__data__;if(!Dn||s.length<199)return s.push([l,r]),this.size=++i.size,this;i=this.__data__=new bi(s)}return i.set(l,r),this.size=i.size,this},es.prototype.add=es.prototype.push=function(l){return this.__data__.set(l,"__lodash_hash_undefined__"),this},es.prototype.has=function(l){return this.__data__.has(l)};let Y1=function(l,r){for(var i=-1,s=l==null?0:l.length;++i<s;)if(r(l[i],i,l))return!0;return!1},cp=function(l,r,i,s,u,x){var v=1&i,P=l.length,j=r.length;if(P!=j&&!(v&&j>P))return!1;var F=x.get(l),q=x.get(r);if(F&&q)return F==r&&q==l;var J=-1,re=!0,te=2&i?new es:void 0;for(x.set(l,r),x.set(r,l);++J<P;){var ie=l[J],de=r[J];if(s)var ce=v?s(de,ie,J,r,l,x):s(ie,de,J,l,r,x);if(ce!==void 0){if(ce)continue;re=!1;break}if(te){if(!Y1(r,function(xe,we){if(!te.has(we)&&(ie===xe||u(ie,xe,i,s,x)))return te.push(we)})){re=!1;break}}else if(!(ie===de||u(ie,de,i,s,x))){re=!1;break}}return x.delete(l),x.delete(r),re};var dp=et.Uint8Array;let Q1=function(l){var r=-1,i=Array(l.size);return l.forEach(function(s,u){i[++r]=[u,s]}),i},K1=function(l){var r=-1,i=Array(l.size);return l.forEach(function(s){i[++r]=s}),i};var pp=Ke?Ke.prototype:void 0,Ml=pp?pp.valueOf:void 0;let em=function(l,r,i,s,u,x,v){switch(i){case"[object DataView]":if(l.byteLength!=r.byteLength||l.byteOffset!=r.byteOffset)break;l=l.buffer,r=r.buffer;case"[object ArrayBuffer]":if(l.byteLength!=r.byteLength||!x(new dp(l),new dp(r)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return lp(+l,+r);case"[object Error]":return l.name==r.name&&l.message==r.message;case"[object RegExp]":case"[object String]":return l==r+"";case"[object Map]":var P=Q1;case"[object Set]":var j=1&s;if(P||(P=K1),l.size!=r.size&&!j)break;var F=v.get(l);if(F)return F==r;s|=2,v.set(l,r);var q=cp(P(l),P(r),s,u,x,v);return v.delete(l),q;case"[object Symbol]":if(Ml)return Ml.call(l)==Ml.call(r)}return!1},tm=function(l,r){for(var i=-1,s=r.length,u=l.length;++i<s;)l[u+i]=r[i];return l},rm=function(l,r,i){var s=r(l);return pn(l)?s:tm(s,i(l))},im=function(l,r){for(var i=-1,s=l==null?0:l.length,u=0,x=[];++i<s;){var v=l[i];r(v,i,l)&&(x[u++]=v)}return x};var nm=Object.prototype.propertyIsEnumerable,gp=Object.getOwnPropertySymbols,am=gp?function(l){return l==null?[]:im(gp(l=Object(l)),function(r){return nm.call(l,r)})}:function(){return[]};let sm=function(l,r){for(var i=-1,s=Array(l);++i<l;)s[i]=r(i);return s},fp=function(l){return Ie(l)&&me(l)=="[object Arguments]"};var yp=Object.prototype,om=yp.hasOwnProperty,lm=yp.propertyIsEnumerable,hm=fp(function(){return arguments}())?fp:function(l){return Ie(l)&&om.call(l,"callee")&&!lm.call(l,"callee")},xp=qt&&!qt.nodeType&&qt,mp=xp&&!0&&wr&&!wr.nodeType&&wr,vp=mp&&mp.exports===xp?et.Buffer:void 0;let _l=(vp?vp.isBuffer:void 0)||function(){return!1};var um=/^(?:0|[1-9]\d*)$/;let cm=function(l,r){var i=typeof l;return!!(r=r??9007199254740991)&&(i=="number"||i!="symbol"&&um.test(l))&&l>-1&&l%1==0&&l<r},bp=function(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=9007199254740991};var jt={};jt["[object Float32Array]"]=jt["[object Float64Array]"]=jt["[object Int8Array]"]=jt["[object Int16Array]"]=jt["[object Int32Array]"]=jt["[object Uint8Array]"]=jt["[object Uint8ClampedArray]"]=jt["[object Uint16Array]"]=jt["[object Uint32Array]"]=!0,jt["[object Arguments]"]=jt["[object Array]"]=jt["[object ArrayBuffer]"]=jt["[object Boolean]"]=jt["[object DataView]"]=jt["[object Date]"]=jt["[object Error]"]=jt["[object Function]"]=jt["[object Map]"]=jt["[object Number]"]=jt["[object Object]"]=jt["[object RegExp]"]=jt["[object Set]"]=jt["[object String]"]=jt["[object WeakMap]"]=!1;var wp=qt&&!qt.nodeType&&qt,On=wp&&!0&&wr&&!wr.nodeType&&wr,Al=On&&On.exports===wp&&mt.process,Mp=function(){try{var l=On&&On.require&&On.require("util").types;return l||Al&&Al.binding&&Al.binding("util")}catch{}}(),_p=Mp&&Mp.isTypedArray,Ap=_p?function(l){return _p(l)}:function(l){return Ie(l)&&bp(l.length)&&!!jt[me(l)]},dm=Object.prototype.hasOwnProperty;let pm=function(l,r){var i=pn(l),s=!i&&hm(l),u=!i&&!s&&_l(l),x=!i&&!s&&!u&&Ap(l),v=i||s||u||x,P=v?sm(l.length,String):[],j=P.length;for(var F in l)dm.call(l,F)&&!(v&&(F=="length"||u&&(F=="offset"||F=="parent")||x&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||cm(F,j)))&&P.push(F);return P};var gm=Object.prototype;let fm=function(l){var r=l&&l.constructor;return l===(typeof r=="function"&&r.prototype||gm)};var ym=(n=Object.keys,t=Object,function(l){return n(t(l))}),xm=Object.prototype.hasOwnProperty;let mm=function(l){if(!fm(l))return ym(l);var r=[];for(var i in Object(l))xm.call(l,i)&&i!="constructor"&&r.push(i);return r},vm=function(l){return l!=null&&bp(l.length)&&!hp(l)?pm(l):mm(l)},Sp=function(l){return rm(l,vm,am)};var bm=Object.prototype.hasOwnProperty;let wm=function(l,r,i,s,u,x){var v=1&i,P=Sp(l),j=P.length;if(j!=Sp(r).length&&!v)return!1;for(var F=j;F--;){var q=P[F];if(!(v?q in r:bm.call(r,q)))return!1}var J=x.get(l),re=x.get(r);if(J&&re)return J==r&&re==l;var te=!0;x.set(l,r),x.set(r,l);for(var ie=v;++F<j;){var de=l[q=P[F]],ce=r[q];if(s)var xe=v?s(ce,de,q,r,l,x):s(de,ce,q,l,r,x);if(!(xe===void 0?de===ce||u(de,ce,i,s,x):xe)){te=!1;break}ie||(ie=q=="constructor")}if(te&&!ie){var we=l.constructor,Me=r.constructor;we!=Me&&"constructor"in l&&"constructor"in r&&!(typeof we=="function"&&we instanceof we&&typeof Me=="function"&&Me instanceof Me)&&(te=!1)}return x.delete(l),x.delete(r),te};var Sl=Fi(et,"DataView"),Cl=Fi(et,"Promise"),Il=Fi(et,"Set"),Pl=Fi(et,"WeakMap"),Cp="[object Map]",Ip="[object Promise]",Pp="[object Set]",Tp="[object WeakMap]",kp="[object DataView]",Mm=mi(Sl),_m=mi(Dn),Am=mi(Cl),Sm=mi(Il),Cm=mi(Pl),wi=me;(Sl&&wi(new Sl(new ArrayBuffer(1)))!=kp||Dn&&wi(new Dn)!=Cp||Cl&&wi(Cl.resolve())!=Ip||Il&&wi(new Il)!=Pp||Pl&&wi(new Pl)!=Tp)&&(wi=function(l){var r=me(l),i=r=="[object Object]"?l.constructor:void 0,s=i?mi(i):"";if(s)switch(s){case Mm:return kp;case _m:return Cp;case Am:return Ip;case Sm:return Pp;case Cm:return Tp}return r});let Lp=wi;var Dp="[object Arguments]",Rp="[object Array]",ts="[object Object]",Op=Object.prototype.hasOwnProperty;let Im=function(l,r,i,s,u,x){var v=pn(l),P=pn(r),j=v?Rp:Lp(l),F=P?Rp:Lp(r);j=j==Dp?ts:j,F=F==Dp?ts:F;var q=j==ts,J=F==ts,re=j==F;if(re&&_l(l)){if(!_l(r))return!1;v=!0,q=!1}if(re&&!q)return x||(x=new ai),v||Ap(l)?cp(l,r,i,s,u,x):em(l,r,j,i,s,u,x);if(!(1&i)){var te=q&&Op.call(l,"__wrapped__"),ie=J&&Op.call(r,"__wrapped__");if(te||ie){var de=te?l.value():l,ce=ie?r.value():r;return x||(x=new ai),u(de,ce,i,s,x)}}return!!re&&(x||(x=new ai),wm(l,r,i,s,u,x))},Nn=function(l,r){return function i(s,u,x,v,P){return s===u||(s!=null&&u!=null&&(Ie(s)||Ie(u))?Im(s,u,x,v,i,P):s!=s&&u!=u)}(l,r)};class Pm extends ap{constructor(r,i,s,u){super(r,u),this.oldValue=i,this.value=i,this.callback=s;let x=this.ensureHandlers(u?.timing??"immediate");this.onHandleUpdate=x.onHandleUpdate,this.onHandleDestroy=x.onHandleDestroy}ensureHandlers(r){let i,s;if(r==="immediate")i=()=>{this.run()};else{let u=this.pm.createFlushScheduler({actions:{default:{handler:()=>{this.run()},mode:r}}});i=()=>{u.schedule(void 0)},s=()=>{u.destroy()}}return{onHandleUpdate:i,onHandleDestroy:s}}run(){if(this.isDestroyed())return;let r=this.oldValue;this.oldValue=this.value,this.callback.call(null,this.value,r)}update(r){this.isDestroyed()||Nn(r,this.value)||(this.value=r,this.onHandleUpdate())}onDestroy(){this.onHandleDestroy?.(),super.onDestroy()}}function Tl(l){let r=l.defaultView??window;return l.visibilityState==="hidden"?{request:i=>r.setTimeout(i,16),cancel:i=>r.clearTimeout(i)}:{request:i=>r.requestAnimationFrame(i),cancel:i=>r.cancelAnimationFrame(i)}}function Np(l){if(!l)throw Error("Selection is not set.")}let kl=class extends vo{constructor(l){let r=l.schema||l.doc&&l.doc.type.schema;if(!r)throw RangeError("You must specify a schema in options.");let i=l.doc||r.nodeType("doc").createFilled();if(i.type.schema!==r)throw RangeError("Given schema does not correspond to doc's schema");i.updateState(),super(i,zi.from(i,l.comments)),l=this.options=function(u){let x=(u={...u}).hook=g(u.hook);return x.render=g(x.render),x.redraw=g(x.redraw),x.change=g(x.change),x.event=g(x.event),u}(l),this.mode=l.mode??"editor",this.userInfo=l.userInfo||{id:0},this.locale=l.locale||"en_US",this.hook=l.hook,this.enableBreakLineHook=!!l.enableBreakLineHook,this.masterDoc=this.doc,this.masterCommentStore=this.commentStore,this.stateMappingMasterLocal=null,this.stateMappingLocalMaster=null,super._select(r.getInitialSelection(this.doc)),this._root=null,{content:this.content,wrapper:this.wrapper}=this.initDom();let s=l.place;typeof s=="function"?s(this.wrapper):s&&s.appendChild(this.wrapper),this.on={userInfoChange:new ut,localeChange:new ut,destroy:new ut,beforeSetState:new ut,setState:new ut,beforeUpdateState:new ut,updateState:new ut,beforeResetState:new ut,resetState:new ut,masterStateChange:new ut,stateChange:new ut,applyLocalTransform:new ut,localTransform:new ut,beforeTransformStep:new ut,transformStep:new ut,filterTransform:new Dr,beforeTransform:new ut,transform:new ut,textInput:new ut,beforePrint:new ru,afterPrint:new ru,selectionChange:new ut,startDraw:new ut,draw:new ut,drawProgressive:new ut,statusChange:new ut,flushing:new ut,flush:new ut,flushSelection:new ut,flushSelectionLoose:new ut,afterFlush:new ut,activeMarkChange:new ut,transformCopiedJSON:new qr,transformCopiedSlice:new qr,transformPastedJSON:new qr,transformPastedDOM:new qr,transformPastingSelection:new qr,transformDroppedSelection:new qr,transformClientCoords:new qr,viewportChange:new ut,beforeDrawSelection:new Dr,drawingSelection:new Dr,drawSelection:new ut,drawIndicator:new ut,collabSelectionUpdate:new ut,collabStepApply:new ut,spellLanguagesChange:new ut,spellCheckEnabledChange:new ut,spellCheckChange:new ut,spellingAnalyze:new Dr,spellingSuggest:new Dr,spellingCorrect:new Dr,spellingAdd:new Dr,spellingRemove:new Dr,spellingIgnore:new Dr,spellingPersonal:new Dr,dictionaryAdd:new ut,dictionaryRemove:new ut,dictionaryIgnore:new ut,dictionaryInit:new ut},this.transform=null,this.scheduleTimer=Tl(this.root),this.operation=null,this.flushScheduled=null,this.flushGenerator=null,this.flushRunning=!1,this.flushingPhase=0,this.tickMap={},this.flushProgressive=this.flushProgressive.bind(this),this.bindEvents(),this.helpers=new Set,this.plugin=Object.create(null),this.dirtyNodes=new Map,this.ranges=new Ec(this),this.history=null,l.plugins&&this.initPlugins(l.plugins,l.pluginConfigs),this.dompos=this.getPlugin("dompos"),this.schema.name==="presentation"&&l.video_controller_class&&(this.video_controller=new l.video_controller_class(Object.assign(this.options.video_controller_config,{video_container_wrapper:this.wrapper,syno_token:l.syno_token}))),this.markAllDirty()}get master_doc(){return this.masterDoc}set master_doc(l){this.masterDoc=l}get master_comment_store(){return this.masterCommentStore}set master_comment_store(l){this.masterCommentStore=l}initDom(){let l=It(["div",{class:"ProseMirror-content","pm-container":!0,inline_style:this.schema.getDefaultContentStyles()}]),r=It(["div",{class:"ProseMirror"},l]);return{content:l,wrapper:r}}bindEvents(){this.root.addEventListener("visibilitychange",()=>{this.updateScheduleTimer()});let l={priority:1/0};if(this.addEventListener("drawProgressive",()=>{this.tickMap.draw?.resolve()},l),this.addEventListener("flush",()=>{this.tickMap.draw?.resolve(),this.tickMap.flush?.resolve()},l),this.schema.name==="document"){let r,i=()=>{r&&(r.classList.remove("ProseMirror-selectednode"),r=void 0)};this.on.flush.add(()=>{let s=this.selection;if(s.is("Node")){let u=s.node.dom;u!==r&&(u&&u.classList.add("ProseMirror-selectednode"),i(),r=u)}else i()})}}getMode(){return this.mode}getUserId(){return this.userInfo.id}getUserName(){return this.userInfo.name??""}getUserInfo(){return this.userInfo}setUserInfo(l){let r=this.getUserInfo();(l.id!==r.id||l.name!==r.name)&&(this.userInfo=l,this.dispatchEvent("userInfoChange",l,r))}getLocale(){return this.locale}setLocale(l){let r=this.getLocale();l!==r&&(this.locale=l,this.dispatchEvent("localeChange",l,r))}destroy(){this.flushGenerator?.return(),this.destroyHelpers(),this.destroyPlugins(),this.dispatchEvent("destroy")}getEventSubscription(l,r){let i=this.on[l]||null;if(r&&!i)throw Error(`There is no subscription named \`${l}\`.`);return i}hasEventListener(l){let r=this.getEventSubscription(l);return!!r&&r.hasHandler()}addEventListener(l,r,i){let s;s=i&&i.once?"addOnce":"add",this.getEventSubscription(l,!0)[s](r,i&&i.priority||0)}removeEventListener(l,r,i){this.getEventSubscription(l,!0).remove(r,i)}dispatchEvent(l){for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return this.on[l].dispatch(...i)}ensureDOMVisible(l,r){if(r===void 0&&(r=!1),va(l))return!0;if(r&&this.schema.name==="document"){let i=this.getPlugin("page_display");return!i||i.showPageByChild(l)}return!1}get showDoc(){let l=this.getOperation();return l?l.doc:this.doc}getOption(l){return this.options[l]}getPlugin(l){return this.plugin[l]||null}get operator(){return this.getPlugin("operator").operators}getOperator(l){return this.getPlugin("operator").getOperator(l)}getAction(l){return this.getPlugin("operator").getAction(l)}get root(){let l=this._root;if(l)return l;for(let r=this.wrapper.parentNode;r;r=r.parentNode)if(r.nodeType===9){l=r;break}return this._root=l||document}get selection(){return Np(this._selection),this._selection}get multiSelection(){return Np(this._multiSelection),this._multiSelection}get masterMultiSelection(){let l=this.multiSelection,r=this.getStateMapping(!0);return r&&(l=l.map(this.masterDoc,r)),l}_select(l,r){this.ensureOperation().selectionChanged=!0,super._select(l),this.dispatchEvent("selectionChange",l)}watchSelection(l,r,i){let s=this.createWatcher(l.call(this,this.multiSelection),r.bind(this),i),u=x=>{s.update(l.call(this,x))};return this.addEventListener("selectionChange",u),()=>{s.destroy(),this.removeEventListener("selectionChange",u)}}createLocalTransform(l,r,i){let s=new np(l,r,i);return s.setTracking(!0),s.setUserInfo({id:0}),this.dispatchEvent("applyLocalTransform",s),s}branchLocalState(l,r,i){return this.hasEventListener("applyLocalTransform")?(l=l.deepCopy().updateState(),r=r.copy(),i&&(i=Vt.fromJSON(l,i.ensureSelection().toJSON())),this.createLocalTransform(l,r,i)):null}getStateMapping(l){return l?this.stateMappingLocalMaster:this.stateMappingMasterLocal}ensureStateMapping(l){return this.getStateMapping(l)||vr.empty}setStateMapping(l,r){l?(this.stateMappingMasterLocal=r?l:l.invert(),this.stateMappingLocalMaster=r?l.invert():l):this.stateMappingMasterLocal=this.stateMappingLocalMaster=null}hasConsistentState(){return this.masterDoc===this.doc}_setState(l,r,i,s){return this.ensureFlush(),super._setState(l,r,i,s)}_setMasterState(l,r){this.masterDoc=l,this.masterCommentStore=r}setLocalState(l,r,i){this.ranges.removeAll(),this.ranges=new Ec(this),this._setState(l,r,i,!1),this.resumeFlush()}setMasterState(l,r){this._setMasterState(l,r)}setState(l,r,i){this.assertIdle(),l.updateState();let s=zi.from(l,r),u=this.branchLocalState(l,s,i),x=u?u.doc:l,v=u?u.commentStore:s,P=(u?u.multiSelection:i?.ensureSelection())||x.schema.getInitialSelection(x);this.dispatchEvent("beforeSetState",x,v,P),this.setMasterState(l,s),this.setLocalState(x,v,P),this.setStateMapping(u?u.toMapping():null,!0),this.dispatchEvent("masterStateChange",null,this.masterDoc,this.masterCommentStore,null,null),this.dispatchEvent("stateChange",null,this.doc,this.commentStore,null,null),this.dispatchEvent("setState",this.doc,this.commentStore,this.multiSelection),u&&this.dispatchEvent("localTransform",u)}updateLocalState(l,r,i,s,u){this.ranges.transform(u),this._setState(l,r,i,s)}updateMasterState(l,r){this._setMasterState(l,r)}assertUpdateState(l,r,i,s,u){let x=l===i;D(x===(r===s),"`doc` and `commentStore` must be both consistent or inconsistent between master and local state."),x?D(!u||!u.length,"There must not be state mapping if state is consistent.."):D(u,"There must be state mapping if state is inconsistent.")}doUpdateState(l,r,i,s,u,x,v,P,j){this.assertUpdateState(l,r,s,u,P);let{doc:F,commentStore:q,masterDoc:J,masterCommentStore:re}=this,te=!x;x||(x=this.multiSelection.map(s,v)),x=x.ensureSelection(),this.dispatchEvent("beforeUpdateState",s,u,x),this.updateMasterState(l,r),this.updateLocalState(s,u,x,te,v),this.setStateMapping(l===s?null:P,j),this.dispatchEvent("masterStateChange",i,this.masterDoc,this.masterCommentStore,J,re),this.dispatchEvent("stateChange",v,this.doc,this.commentStore,F,q),this.dispatchEvent("updateState",this.doc,this.commentStore,this.multiSelection)}updateState(l,r,i,s,u,x,v,P,j){this.assertIdle(),D(this.hasConsistentState()===(l===s),"One should preserve state consistency when updating state.");let F=this.hasConsistentState()?null:this.createLocalTransform(s,u,x);return F&&({doc:s,commentStore:u,multiSelection:x}=F,v=v.concat(F),P&&(P=j?P.concat(F):F.toMapping().invert().concat(P))),this.doUpdateState(l,r,i,s,u,x,v,P,j),F}resetState(){this.assertIdle();let{masterDoc:l,masterCommentStore:r}=this,i=this.branchLocalState(l,r),s=i?i.doc:l,u=i?i.commentStore:r,x=i?i.multiSelection:null,v=this.ensureStateMapping(!0),P=null;i&&(v=v.concat(i),P=i.toMapping()),this.dispatchEvent("beforeResetState",s,u),this.doUpdateState(l,r,vr.empty,s,u,x,v,P,!0),this.dispatchEvent("resetState",this.doc,this.commentStore),i&&this.dispatchEvent("localTransform",i)}watchState(l,r,i){let s=this.createWatcher(l.call(this,this.doc,this.commentStore),r.bind(this),i),u=(x,v,P)=>{s.update(l.call(this,v,P))};return this.addEventListener("stateChange",u),()=>{s.destroy(),this.removeEventListener("stateChange",u)}}isPermission(l){let r=this.getPlugin("permission");return r?r.isPermission(l):l==="previewable"}isWritable(){return this.isPermission("writable")}isCommentable(){return this.isPermission("commentable")}isReadable(){return this.isPermission("readable")}getViewport(){return this.options.getViewport?this.options.getViewport():{left:0,top:0,right:this.doc.getAttrValue("cx")||0,bottom:this.doc.getAttrValue("cy")||0}}getPendingTransform(){return this.transform}setPendingTransform(l){return this.transform=l}clearPendingTransform(){this.transform=null}dropTransform(l){l===void 0&&(l=!1),this.assertIdle(),this.clearPendingTransform(),l?(this.doc.updateState({force:!0}),this.masterDoc.updateState({force:!0})):(this.doc.maybeUpdateState({partialUpdate:!0}),this.masterDoc.maybeUpdateState({partialUpdate:!0}))}createEditorTransform(l,r,i){return this.assertIdle(),new V1(this,l,r,i)}get tr(){return this.ensureTransform()}ensureTransform(l){l===void 0&&(l=d),this.assertIdle();let{selection:r,simple:i}=l,s=this.getPendingTransform()||this.setPendingTransform(this.createEditorTransform(this.doc,this.commentStore,this.multiSelection));if(r&&s.select(r),!i){s.setTracking(!0);let u=this.getPlugin("revision");s.setRevising(!!u&&u.isRevising());let x=this.getStoredMarks();x&&s.setActiveMarks(x)}return s}apply(l,r){this.assertIdle();try{this.applyTransform(l,r)?this.clearPendingTransform():this.dropTransform()}catch(i){throw this.dropTransform(!0),i}return l}assertApplyTransform(l,r){let i=this.getPendingTransform();D(i&&i===l,"Given transformation does not match pending transformation."),D(l.baseDoc===this.doc,"The base document in given transformation does not match the document in the editor.")}convertMasterTransform(l,r){let i,s=null;if(this.hasConsistentState())i=l;else if(i=this.createEditorTransform(this.masterDoc,this.masterCommentStore),r.masterTransformAdapter){let u=r.masterTransformAdapter.call(null,i,l);u||(u=vr.from(l.toMapping().invert(),this.ensureStateMapping(!0),i)),s=u}else s=i.cherryPick(l.steps,l.posMaps,l.customMaps,this.ensureStateMapping(!0));return{masterTransform:i,stateMapping:s}}applyTransform(l,r){if(r===void 0&&(r=d),this.assertApplyTransform(l,r),l.length||l.multiSelection!==this.multiSelection||l.getStoredMarks()!==this.getStoredMarks()){if(r.filter!==!1&&this.on.filterTransform.dispatch(l))return!1;this.dispatchEvent("beforeTransform",l,r);let{masterTransform:i,stateMapping:s}=this.convertMasterTransform(l,r),u=this.updateState(i.doc,i.commentStore,i.toMapping(),l.doc,l.commentStore,l.multiSelection,l.toMapping(),s,!1),x=l.getStoredMarks();x&&this.setActiveMarks(x),this.dispatchEvent("transform",l,i,r),u&&this.dispatchEvent("localTransform",u)}return this.ensureFlush(),r.scrollIntoView&&this.scrollIntoView(r.scrollPos),r.focus&&this.focus(),!0}getOperation(){return this.operation}hasOperation(){return!!this.getOperation()}ensureOperation(){return this.getOperation()||this.startOperation()}startOperation(){let l=this.operation=new Zy(this);return this.requestFlush(),l}endOperation(){let l=this.getOperation();return this.operation=null,l}updateScheduleTimer(){this.flushScheduled!==null?(this.cancelFlush(),this.scheduleTimer=Tl(this.root),this.requestFlush()):this.scheduleTimer=Tl(this.root)}requestFlush(){this.flushScheduled===null&&(this.flushScheduled=this.scheduleTimer.request(this.flushProgressive))}cancelFlush(){let l=this.flushScheduled;l!==null&&(this.scheduleTimer.cancel(l),this.flushScheduled=null)}pauseFlush(){this.ensureOperation(),this.cancelFlush()}resumeFlush(){this.ensureOperation(),this.requestFlush()}ensureFlush(l){l===void 0&&(l=d),!l.skipCurrentFlush&&this.isFlushing(4,-1)||(l.wakeUp?this.resumeFlush():this.ensureOperation())}isFlushing(l,r){let i=this.flushingPhase;if(i===0)return!1;if(l===void 0)return!0;{let s=r??0;return s>0?i>l:s<0?i<l:i===l}}isIdle(){return!this.isFlushing()}assertIdle(){if(!this.isIdle())throw Error("")}flush(){if(this.flushRunning)return;this.flushRunning=!0,this.cancelFlush();let l=this.ensureFlushGenerator();for(;!l.next(!0).done;);this.hasOperation()&&this.requestFlush(),this.flushRunning=!1}flushProgressive(){this.flushRunning=!0,this.cancelFlush();let{done:l}=this.ensureFlushGenerator().next(!1);(!l||this.hasOperation())&&this.requestFlush(),this.flushRunning=!1}ensureFlushGenerator(){return this.flushGenerator||(this.flushGenerator=this.createFlushGenerator())}*createFlushGenerator(){let l=this.endOperation();l&&(yield*this.doCreateFlushGenerator(l)),this.flushGenerator=null}*doCreateFlushGenerator(l){this.flushingPhase=1,this.dispatchEvent("flushing"),this.flushingPhase=2;let r=null;if(l.doc!==this.doc||this.dirtyNodes.size||this.doc.getRenderRank()!==tt.RENDER_NONE){this.on.startDraw.dispatch(this.doc,l.doc),r=new Map;let i=this.draw(l.doc,r);if(l.progressiveFlush)i.next(!1),yield*i;else for(;!i.next(!0).done;);this.on.draw.dispatch(this.doc,l.doc,r)}if(this.flushingPhase=3,(l.focus||l.selectionChanged&&this.hasFocus())&&this.doFocus(),this.status&&(l.updateStatus||l.selectionChanged)&&this.status.updateStatus(r),this.flushingPhase=4,this.on.flush.dispatch(),l.selectionChanged){let i=this.multiSelection,s=l.multiSelection;i.eqChangedLoose(s)||this.on.flushSelectionLoose.dispatch(i,s),this.on.flushSelection.dispatch(i,s)}this.on.afterFlush.dispatch(),l.scrollIntoView!==!1&&this.doScroll(l.scrollIntoView===!0?this.multiSelection:l.scrollIntoView,l.scrollOptions),this.flushingPhase=0}createFlushTick(l){let r;return this.ensureFlush(l),{promise:new Promise(i=>{r=i}),resolve:r}}createDrawTick(l){let r;return this.ensureFlush(l),{promise:new Promise(i=>{r=i}),resolve:r}}async createTaskTick(){return this.isIdle()||await this.nextTick(),new Promise(l=>{setTimeout(()=>{this.isIdle()?l():this.createTaskTick().then(l)},0)})}nextTick(l){l===void 0&&(l=d);let r=l.mode??"flush";if(r==="task")return this.tickMap[r]||(this.tickMap[r]=this.createTaskTick().then(()=>{this.tickMap[r]=void 0}));{let i,s=this.tickMap[r];return s?s.promise:((i=r==="draw"?this.createDrawTick():this.createFlushTick()).promise=i.promise.then(()=>{this.tickMap[r]=void 0}),this.tickMap[r]=i,i.promise)}}nextFlushTick(){return this.nextTick({mode:"flush"})}nextDrawTick(){return this.nextTick({mode:"draw"})}nextTaskTick(){return this.nextTick({mode:"task"})}isViewSync(){let l=this.getOperation();return!l||l.doc===this.doc}markObject(l){if(this.isFlushing(2))return void this.addEventListener("draw",()=>{this.ranges.addRange(l)},{once:!0});this.ranges.addRange(l)}markRange(l,r,i){let s=new Cx(l,r,i);return this.markObject(s),s}markNode(l,r){let i=new Ix(l,r);return this.markObject(i),i}removeRange(l){if(this.isFlushing(2))return void this.addEventListener("draw",()=>{this.removeRange(l)},{once:!0});this.ranges.removeRange(l)}setStoredMarks(l){return this.getStoredMarks()!==(l=super.setStoredMarks(l))&&this.dispatchEvent("activeMarkChange"),l}hasFocus(l){if(l?.includeAsyncFocus&&this.getOperation()?.focus)return!0;let r=this.getPlugin("input");return!!r&&r.hasFocus()}doFocus(){let l=this.getPlugin("input");l&&l.focus()}focus(l){l===void 0&&(l=!1),l?this.doFocus():this.ensureOperation().focus=!0}cancelFocus(){let l=this.getOperation();l&&(l.focus=!1)}doScroll(l,r){let i=this.getPlugin("scroll");i&&i.scroll(l,r)}scrollIntoView(l,r){let i=this.ensureOperation();i.scrollIntoView=l??!0,i.scrollOptions=r}*draw(l,r){let i=this.getPlugin("draw");if(!i)return;let s=this.dirtyNodes;this.dirtyNodes=new Map;let u=i.draw(this.doc,l,{dirty:s,redrawn:r}),x=!0,v=yield;for(;!u.next().done;)v||(this.dispatchEvent("drawProgressive",this.doc,l,{first:x,last:!1}),x=!1),v=yield;this.dispatchEvent("drawProgressive",this.doc,l,{first:x,last:!0})}markRangeDirty(l,r){this.ensureOperation();let i=this.dirtyNodes,s=this.doc.resolve(l),u=this.doc.resolve(r),x=s.sameDepth(u);for(let F=0;F<=x;F++){let q=s.node(F);i.has(q)||i.set(q,1)}let v=s.index(x),P=u.index(x)+(x===u.depth&&u.atNodeBoundary?0:1),j=s.node(x);for(let F=v;F<P;F++)i.set(j.child(F),2)}markNodeDirty(l){let r=this.doc.resolve(l),i=r.self;if(!i)throw RangeError("given position is not a node.");this.ensureOperation();let s=this.dirtyNodes;for(let u=0;u<=r.depth;++u){let x=r.node(u);s.has(x)||s.set(x,1)}s.set(i,2)}markAllDirty(){this.ensureOperation(),this.dirtyNodes.set(this.doc,2)}async print(l,r){try{await this.dispatchEvent("beforePrint",void 0,l)}catch(i){ir.default.error("Failed to handle preprocessing before print.",i)}try{return await this.nextTick(),r(l)}finally{try{await this.dispatchEvent("afterPrint",void 0,l)}catch(i){ir.default.error("Failed to handle postprocessing after print.",i)}}}translate(l,r,i){let s=this.options.translate;return s?s(l,r,i):i||""}get(l){return be.get(l)}fly(l,r){return be.fly(l,r)}addHelper(l){return this.helpers.add(l),l}destroyHelper(l){l.destroy(),this.helpers.delete(l)}destroyHelpers(){for(let l of this.helpers)l.destroy();this.helpers.clear()}createFlushScheduler(l){return this.addHelper(new B1(this,l))}createWatcher(l,r,i){return this.addHelper(new Pm(this,l,r,i))}initPlugins(l,r){r&&(l=l.map(s=>s.config(r[s.getGroupName()]).config(r[s.getName()])));let i=this.on;l.forEach(s=>{let u=s.getSubscriptions();u&&R(u,(x,v)=>{if(v in i)throw RangeError(`Plugin subscription \`${v}\` of plugin \`${s.getName()}\` conflicts.`);i[v]=x})}),l.forEach(s=>{this.attachPlugin(s)}),l.forEach(s=>{s.get(this)?.init()})}attachPlugin(l){let r=l.getName(),i=l.getGroupName();if(this.getPlugin(r)||i&&this.getPlugin(i))throw RangeError(`Plugin \`${r}\` or plugin group \`${i}\` has already been attached.`);let s=l.attach(this),u=this.plugin;return u[r]=s,i&&(u[i]=s),s}detachPlugin(l){l.detach(this);let r=l.getName(),i=l.getGroupName(),s=this.plugin;s[r]=void 0,i&&(s[i]=void 0)}destroyPlugins(){for(let l of Object.values(this.plugin))l&&l.destroy()}static mergePluginConfigs(){for(var l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];return r.reduce((s,u)=>s&&u?K(u,(x,v,P)=>{let j=x[P];return j?x[P]={...j,...v}:x[P]=v,x},{...s}):s||u||void 0,void 0)}static mergeConfigs(){for(var l=arguments.length,r=Array(l),i=0;i<l;i++)r[i]=arguments[i];return r.reduce((s,u)=>{if(!u)return s;let x=this.mergePluginConfigs(s.pluginConfigs,u.pluginConfigs);return Object.assign(s,u),s.pluginConfigs=x,s},{})}};class Mi extends Ur{constructor(){super()}setPageSetup(r){this.set(jp,r)}getPageSetup(){return this.get(jp)}setPageSize(r){this.set(Ep,r)}getPageSize(){return this.get(Ep)}setPagePadding(r){this.set(Vp,r)}getPagePadding(){return this.get(Vp)}setPageContentSize(r){this.set(Bp,r)}getPageContentSize(){return this.get(Bp)}setPageDecorateHeight(r){this.set(zp,r)}getPageDecorateHeight(){return this.get(zp)}setCustomStyle(r,i){if(r==null)this.set(rs);else{let s=this.get(rs);s||this.set(rs,s=Object.create(null)),s[r]=i}}getCustomStyle(r){let i=this.get(rs);return i&&i[r]}}let jp=Mi.registerIndex(),Ep=Mi.registerIndex(),Vp=Mi.registerIndex(),Bp=Mi.registerIndex(),zp=Mi.registerIndex(),rs=Mi.registerIndex();function Kr(l){return parseFloat(l.toFixed(2))}class si{static getPageSizeByType(r,i){let s,u=this.PAGE_SIZE_DEFINE[r];u||(u=this.PAGE_SIZE_DEFINE.a4);let x=i!=="landscape",v=x?this.page_size_portrait_cache:this.page_size_landscape_cache;return r in v?s=v[r]:(s={width:Kr(Qt(u[+!x],"mm","px")),height:Kr(Qt(u[+!!x],"mm","px"))},v[r]=s),s}static getPagePadding(r){return{top:Kr(Qt(r.top,"cm","px")),bottom:Kr(Qt(r.bottom,"cm","px")),left:Kr(Qt(r.left,"cm","px")),right:Kr(Qt(r.right,"cm","px"))}}static getPageContentSize(r,i){return{width:Kr(r.width-i.left-i.right),height:Kr(r.height-i.top-i.bottom)}}static getDecorateMaxHeight(r){return Kr(.2*r.height)}static getDefaultPageSetup(){return{left:2.54,top:2.54,right:2.54,bottom:2.54,orientation:"portrait",page_type:"a4"}}}si.PAGE_SIZE_DEFINE={letter:[216,279],tabloid:[279,432],legal:[216,356],statement:[140,216],executive:[184,267],folio:[216,330],a3:[297,420],a4:[210,297],a5:[148,210],b4:[250,353],b5:[176,250]},si.page_size_portrait_cache=Object.create(null),si.page_size_landscape_cache=Object.create(null);let is=l=>{class r extends l{static getSelfPropertyName(){return"ContentEditable"}get canSelectionLeave(){return!1}get unbreakable(){return!0}hasVisibleContent(s){if(s.childCount>1)return!0;let u=s.firstChild;return!!(u&&(u.childCount!==0||!u.is("Paragraph")||u.is("BasicParagraph")&&u.type.isValidListBlock(u)))||!1}getIndicatorWrapperDOM(s){return s}renderAttrsDom(s,u,x){return super.renderAttrsDom(s,u,x),x.target!=="clipboard"&&Object.assign(s.inline_style||(s.inline_style=Object.create(null)),this.schema.getDefaultContentStyles()),s}toCopyDOM(s,u){return["div",{synoedit:!0},0]}}return Ch(r,{get matchDOMTag(){return{"div[synoedit]":null}}}),r},Tm=l=>class extends l{static getSelfPropertyName(){return"IndependentScroller"}getScrollerInfo(r){return null}},km=(()=>{let l=["link","tracking"];return Te.createMarksNormalizer(r=>!l.includes(r._))})(),Fp={textMarks:Te.create({optional:!0,empty_value:m,clearable:!0,normalizer:km})},Lm=Object.keys(Fp),Gp=Te.create({optional:!0,empty_value:0,normalizer:"nonNegativeNumber",clearable:!0}),Ll={textAlign:Te.create({optional:!0,empty_value:"left",clearable:!0,normalizer:["left","right","center","justify"]}),lineHeight:Te.create({optional:!0,empty_value:1,clearable:!0,normalizer:"positiveNumber"}),paddingTop:Gp,paddingBottom:Gp},Dl=Te.create({optional:!0,empty_value:0,clearable:!0,normalizer:"number"}),Hp={indentFirst:Dl,indentLeft:Dl,indentRight:Dl},Dm=Object.keys(Hp),Rm=Te.create({deep:{pos:Te.create(),type:Te.create({normalizer:["left","right","center"]}),leader:Te.create({normalizer:["none","dot","hyphen","underscore","middleDot","heavy"]})}}),Wp={tabStops:Te.createOptional({empty_value:m,clearable:!0,normalizer:Te.createArrayNormalizer(Rm)})},Om=Object.keys(Wp),Nm=l=>{class r extends l{constructor(...u){super(...u),this.defaultTabAttrs=null}static getSelfPropertyName(){return"TabBlock"}getTabAttrList(){return Om}getDefaultTabAttrValues(){return this.defaultTabAttrs||(this.defaultTabAttrs=Te.emptyAttrs($(this.attrs,this.getTabAttrList())))}getTabAttrValues(u){return u.getState("tab_attrs")||this.getDefaultTabAttrValues()}_getInheritedTabAttrValues(u){return u.getState("inherited_tab_attrs")}getInheritedTabAttrValues(u){return this._getInheritedTabAttrValues(u)||this.getDefaultTabAttrValues()}registerTabBlock(){let u=this.getStateMap();u.register(u.SELF_START,this.name,"merge_tab_attrs",null,x=>{if(x.getState("inherit")||x.getState("cached_attrs")!==x.attrs)return x.setState("tab_attrs",Te.mergeAttrs(this.getTabAttrList(),x.attrs,this.getInheritedTabAttrValues(x))),tt.STATE_REDRAW})}trimNode(u,x){let v;u=super.trimNode(u,x)||u;let P=this.getInheritedTabAttrValues(u);for(let j of this.getTabAttrList()){let F=u.getAttrValue(j,!0);F!=null&&(j==="tabStops"?F.length===0&&P.tabStops.length===0:F===P[j])&&(v||(v=Object.create(null)),v[j]=null)}return v?u.duplicate(u.content,v):u}computeJsonConversionAttrs(u,x){let v=super.computeJsonConversionAttrs(u,x);return x.target==="clipboard"&&x.useComputedStyle?{...v,...this.getTabAttrValues(u)}:v}renderAttrsJson(u,x,v){super.renderAttrsJson(u,x,v);let P=x.getAttrValue("tabStops",!0);return P&&(u.tabStops=P),u}}let i=l.prototype.attrs;return Ch(r,{get attrs(){return{...i,...Wp}}}),r},jm=l=>class extends l{static getSelfPropertyName(){return"DefaultParagraph"}};class Em extends wy{static getSelfPropertyName(){return"BasicRoot"}buildDefaultMarks(){let r=this.schema;return["font_size","font_family","em","strong","color"].reduce((i,s)=>{let u=r.markType(s).getDefaultMark();return u&&i.push(u),i},[])}buildDefaultStyles(){return{"line-height":Ll.lineHeight.getEmptyValue(),"font-variant":"normal","font-stretch":"normal"}}createDefaultContentStyles(){return{...this.buildDefaultStyles(),...Qe.setToStyle(this.buildDefaultMarks())}}}class Vm extends ri{static getSelfPropertyName(){return"Settings"}get copyable(){return!1}get printable(){return!1}}function _i(l){return l==="bullet"||l.startsWith("bullet_")}function Er(l){return"bullet_"+l}let qp=K({"●":"disc","•":"disc","○":"circle","◦":"circle","■":"square","□":"square","▪":"square","▫":"square","▼":"disclosure-open","▽":"disclosure-open","▾":"disclosure-open","▿":"disclosure-open","▶":"disclosure-closed","▷":"disclosure-closed","▸":"disclosure-closed","▹":"disclosure-closed","►":"disclosure-closed","▻":"disclosure-closed"},(l,r,i)=>(l[Er(i)]=r,l),Object.create(null)),Up=Object.assign(Object.create(null),{decimal:"decimal",decimalZero:"decimal-leading-zero",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",chineseCounting:"cjk-decimal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",ideographDigital:"cjk-decimal",ideographLegalTraditional:"trad-chinese-formal",taiwaneseCounting:"cjk-decimal",taiwaneseCountingThousand:"trad-chinese-informal",taiwaneseDigital:"cjk-decimal"}),Bm=(()=>{let l=Object.create(null);return R(qp,(r,i)=>{typeof r=="string"&&(l[r]=i)}),R(Up,(r,i)=>{typeof r=="string"&&(l[r]=i)}),R({disc:Er("●"),circle:Er("○"),square:Er("■"),"disclosure-closed":Er("▸"),"disclosure-open":Er("▾"),"cjk-decimal":"ideographDigital"},(r,i)=>{l[i]=r}),R({"lower-latin":"lower-alpha","upper-latin":"upper-alpha","cjk-ideographic":"trad-chinese-informal"},(r,i)=>{l[i]=l[r]}),l})(),zm=Object.assign(Object.create(null),{a:"lowerLetter",A:"upperLetter",i:"lowerRoman",I:"upperRoman",1:"decimal"}),Fm=Object.assign(Object.create(null),{disc:Er("●"),circle:Er("○"),square:Er("■")}),ns=/%(\d)/g,Gm=(()=>{let l=Object.create(null);return["decimal","decimalZero","lowerLetter","upperLetter","lowerRoman","upperRoman"].forEach(r=>{l[r]="."}),["chineseCounting","chineseCountingThousand","chineseLegalSimplified","ideographDigital","ideographLegalTraditional","taiwaneseCounting","taiwaneseCountingThousand","taiwaneseDigital"].forEach(r=>{l[r]="、"}),l})();function Rl(l,r){var i;let s;return s=l?_i(l)?"":Gm[l]??"":"",(i=r)===void 0&&(i=0),`%${qe(i+1,1,9)}`+s}(()=>{let l=Object.create(null);return["disc","circle","square","disclosure-open","disclosure-closed"].forEach(r=>{l[r]=""}),["cjk-decimal","simp-chinese-formal","simp-chinese-informal","trad-chinese-formal","trad-chinese-informal"].forEach(r=>{l[r]="、"})})();function $p(l,r){return _i(l)?(_i(l)?l.slice(7)||"●":null)||"":function(i,s){var u;let x=(u=i)in Hh?Hh[u]:null;if(x)return s<0||isNaN(s)?"":x.write(s)}(l,r)||""}function Zp(l){return Array.isArray(l)?r=>l[r]||"":l}function Ir(l){return l.forEach((r,i)=>{r.text&&(r.text=r.text.replace(ns,`%${i+1}`))}),l}function Ft(l,r,i){let s=l.length,u=r?r.length:0,x=-1;return Ir(Array.from({length:9},(v,P)=>{let j=Object.create(null),F=P%s;return u&&F===0&&(x=(x+1)%u),j.format=l[F],u&&(j.text=r[x]),i?.(j,P),j}))}let Hm=(()=>{let l=Ft(["decimal","decimal","upperLetter","lowerLetter"],["%1."],(i,s)=>{s%4==1&&(i.text="(%1)")}),r={default:void 0,decimalPeriod:Ft(["decimal","lowerLetter","lowerRoman"],["%1."]),decimalParenthesis:Ft(["decimal","lowerLetter","lowerRoman"],["%1)","(%1)","%1."]),decimalParentheses:Ft(["decimal","lowerLetter","lowerRoman"],["(%1)","%1)","%1."]),decimalZeroPeriod:Ft(["decimalZero","lowerLetter","lowerRoman"],["%1."],(i,s)=>{s&&s%3==0&&(i.format="decimal")}),upperLetterPeriod:Ft(["upperLetter","lowerLetter","lowerRoman"],["%1."],(i,s)=>{s&&s%3==0&&(i.format="decimal")}),upperLetterParenthesis:Ft(["upperLetter","lowerLetter","lowerRoman"],["%1)","(%1)","%1."],(i,s)=>{s&&s%3==0&&(i.format="decimal")}),upperLetterParentheses:Ft(["upperLetter","lowerLetter","lowerRoman"],["(%1)","%1)","%1."],(i,s)=>{s&&s%3==0&&(i.format="decimal")}),lowerLetterPeriod:Ft(["lowerLetter","lowerRoman","decimal"],["%1."]),lowerLetterParenthesis:Ft(["lowerLetter","lowerRoman","decimal"],["%1)","(%1)","%1."]),lowerLetterParentheses:Ft(["lowerLetter","lowerRoman","decimal"],["(%1)","%1)","%1."]),upperRomanPeriod:Ft(["lowerRoman","lowerLetter","decimal"],["%1.","(%1)","%1)"],(i,s)=>{s===0?i.format="upperRoman":s===1&&(i.format="upperLetter")}),upperRomanParenthesis:Ft(["lowerRoman","lowerLetter","decimal"],["%1.","(%1)","%1."],(i,s)=>{s===0?(i.format="upperRoman",i.text="%1)"):s===1&&(i.format="upperLetter")}),upperRomanParentheses:Ft(["lowerRoman","lowerLetter","decimal"],["%1.","%1)","%1."],(i,s)=>{s===0?(i.format="upperRoman",i.text="(%1)"):s===1&&(i.format="upperLetter")}),decimalOutline:Ft(["decimal"]).map((i,s)=>{let u="";for(let x=0;x<=s;++x)u+=`%${x+1}.`;return{...i,align:"right",text:u}}),taiwaneseCountingIdeographicComma:Ir(l.map((i,s,u)=>s===0?{format:"taiwaneseCountingThousand",text:"%1、"}:s===1?{format:"taiwaneseCountingThousand",text:"(%1)"}:{...u[s-2]})),taiwaneseLegalCountingIdeographicComma:Ir(l.map((i,s,u)=>s===0?{format:"ideographLegalTraditional",text:"%1、"}:s===1?{format:"taiwaneseCountingThousand",text:"%1、"}:s===2?{format:"taiwaneseCountingThousand",text:"(%1)"}:{...u[s-3]})),taiwaneseCountingPeriod:Ir(l.map((i,s,u)=>s===0?{format:"taiwaneseCountingThousand",text:"%1."}:s===1?{format:"taiwaneseCountingThousand",text:"(%1)"}:{...u[s-2]})),taiwaneseCountingPresentationPeriod:Ir(l.map((i,s,u)=>s===0?{format:"taiwaneseCountingThousand",text:"%1."}:{...u[s-1]})),taiwaneseLegalCountingPresentationPeriod:Ir(l.map((i,s,u)=>s===0?{format:"ideographLegalTraditional",text:"%1."}:s===1?{format:"taiwaneseCountingThousand",text:"%1."}:{...u[s-2]})),chineseCountingIdeographicComma:Ir(l.map((i,s,u)=>s===0?{format:"chineseCountingThousand",text:"%1、"}:s===1?{format:"chineseCountingThousand",text:"(%1)"}:{...u[s-2]})),chineseLegalCountingIdeographicComma:Ir(l.map((i,s,u)=>s===0?{format:"chineseLegalSimplified",text:"%1、"}:s===1?{format:"chineseCountingThousand",text:"%1、"}:s===2?{format:"chineseCountingThousand",text:"(%1)"}:{...u[s-3]})),chineseCountingPeriod:Ir(l.map((i,s,u)=>s===0?{format:"chineseCountingThousand",text:"%1."}:s===1?{format:"chineseCountingThousand",text:"(%1)"}:{...u[s-2]})),chineseCountingPresentationPeriod:Ir(l.map((i,s,u)=>s===0?{format:"chineseCountingThousand",text:"%1."}:{...u[s-1]})),chineseLegalCountingPresentationPeriod:Ir(l.map((i,s,u)=>s===0?{format:"chineseLegalSimplified",text:"%1."}:s===1?{format:"chineseCountingThousand",text:"%1."}:{...u[s-2]}))};return r.default=r.decimalPeriod,r})(),Wm=(()=>{let l={default:void 0,bulletHollowSquare:Ft(["bullet_●","bullet_○","bullet_■"],["%1"]),diamondxArrow3dSquare:Ft(["bullet_❖","bullet_➢","bullet_■","bullet_●","bullet_◆","bullet_➢","bullet_■","bullet_●","bullet_◆"],["%1"]),arrowDiamondBullet:Ft(["bullet_➔","bullet_◆","bullet_●"],["%1"],(r,i)=>{i&&i%3==0&&(r.format="bullet_○")}),starHollowSquare:Ft(["bullet_★","bullet_○","bullet_■"],["%1"],(r,i)=>{i&&i%3==0&&(r.format="bullet_●")}),arrow3dHollowSquare:Ft(["bullet_➢","bullet_○","bullet_■"],["%1"],(r,i)=>{i&&i%3==0&&(r.format="bullet_●")}),checkbox:Ft(["bullet_❏"],["%1"]),plus:Ft(["bullet_+"],["%1"]),minus:Ft(["bullet_-"],["%1"])};return l.default=l.bulletHollowSquare,l})();class Jp{constructor(){this.container=null}getNodeType(r){return""}_add(r,i){switch(r){case"container":return this.addContainer(i);case"wrapper":return this.addWrapper(i);case"list":return this.addList(i);default:return null}}add(r){this._add(this.getNodeType(r),r)}_remove(r,i){switch(r){case"container":return this.removeContainer(i);case"wrapper":return this.removeWrapper(i);case"list":return this.removeList(i);default:return null}}remove(r){this._remove(this.getNodeType(r),r)}createContainer(r){let i=Object.create(null);return{node:r,wrappers:[],map:i,has_list:!1,attrs:{listMap:i}}}getContainer(){return this.container}addContainer(r){return this.getContainer()?null:this.container=this.createContainer(r)}removeContainer(r){let i=this.getContainer();return i&&i.node===r?(this.container=null,i):null}createWrapper(r){return{node:r,lists:[]}}getWrapper(){let r=this.getContainer();return r&&r.wrappers[r.wrappers.length-1]}addWrapper(r){let i=this.getContainer()||this.addContainer(null),s=this.createWrapper(r);return i.wrappers.push(s),s}removeWrapper(r){let i=this.getWrapper();return i&&i.node===r?(this.getContainer().wrappers.length-=1,i):null}getListType(r){return""}createListConfig(r,i){return null}getList(){let r=this.getWrapper();return r&&r.lists[r.lists.length-1]}_createList(r,i,s,u){if(s||(s=ge()),!u){let x=this.createListConfig(r,i),v=x?.format;u={type:v?_i(v)?"ul":"ol":this.getListType(r),configs:[x]}}return{node:r,indent:0,level:i,id:s,attrs:{listId:s,listLevel:i},info:u}}createList(r,i,s){let u;if(!s)return this._createList(r,i);let x=s.info.configs,v=x[i],P=this.createListConfig(r,i);if(v&&!ye(v,P,ve,void 0)){let j=x.slice(0,i);j.push(P),u=this._createList(r,i,null,Object.assign(Object.create(null),s.info,{configs:j}))}else v||x.push(P),u=this._createList(r,i,s.id,s.info);return u.indent+=s.indent,u}addList(r){let i=(this.getWrapper()||this.addWrapper(null)).lists,s=i.length;if(s>=9)return null;let u=this.createList(r,s,i[s-1]);return i.push(u),this.storeList(u),u}removeList(r){let i=this.getList();return i&&i.node===r?(this.getWrapper().lists.length-=1,i):null}storeList(r){let i=this.getContainer(),s=i.map,u=r.id;u in s||(s[u]=r.info,i.has_list=!0)}}let qm=(()=>{let l=["underline","link","tracking"];return Te.createMarksNormalizer(r=>!l.includes(r._))})(),Gi={start:Te.createOptional({empty_value:1,normalizer:l=>{let r=Te.getPresetNormalizer("integer")(l);return r==null?null:r>=0&&r<=9999?r:null}}),format:Te.createOptional({empty_value:"bullet_●"}),text:Te.createOptional({empty_value:"%1"}),align:Te.createOptional({empty_value:"left",normalizer:["left","right"]}),marks:Te.createOptional({empty_value:m,clearable:!0,normalizer:qm})},Ol=Object.keys(Gi);function as(l){let r=l.prototype;De(r,"isListType",!0),Ce(r,"getFreezeList",function(i){let s=i.call(this);return s.push("listConfigAttrs","listConfigAttrsList","defaultListConfigAttrs","defaultOrderedListConfigs","defaultBulletListConfigs"),s},!0),De(r,"listMaxLevel",9),De(r,"listConfigAttrs",Gi),De(r,"listConfigAttrsList",Ol),ke(r,"defaultListConfigAttrs",function(){return Te.emptyAttrs(this.listConfigAttrs)}),ke(r,"defaultOrderedListConfigs",function(){let i=this.defaultListConfigAttrs;return(Hm.default||null).map((s,u)=>Object.assign(Object.create(null),i,s))}),ke(r,"defaultBulletListConfigs",function(){let i=this.defaultListConfigAttrs;return(Wm.default||null).map((s,u)=>Object.assign(Object.create(null),i,s))})}class Xp extends Zr{static getSelfPropertyName(){return"PseudoList"}parseAttrsFromJson(r,i,s){try{if(i.configs&&Array.isArray(i.configs))for(let u of i.configs)u&&Array.isArray(u.marks)&&(u.marks=Qe.setToJSON(Qe.setFromJSON(this.schema,u.marks)))}catch{i.configs=void 0}return super.parseAttrsFromJson(r,i,s)}renderAttrsDom(r,i,s){if(super.renderAttrsDom(r,i,s),s.target==="clipboard"){let x=s.list_level||0,v=i.getState("list_configs"),P=v?.[x];if(P){var u;P.type==="ol"&&Object.assign(r,{start:P.start+(s.list_index||0)}),Object.assign(r.inline_style||(r.inline_style=Object.create(null)),{"margin-top":"0px","margin-bottom":"0px","margin-left":x===0?v.list_indent+"px":null,"list-style-type":(u=P.format)?_i(u)?qp[u]||"disc":Up[u]||"decimal":null})}}return r}renderAttrsJson(r,i,s){super.renderAttrsJson(r,i,s);let u=i.getState("list_configs");return u?Object.assign(r,{id:u.list_id,configs:u.map(x=>this.listConfigAttrsList.reduce((v,P)=>(v[P]=x[P],v),Object.create(null)))}):r}toDOM(r,i){let s=i.list_level||0,u=r.getState("list_configs")?.[s];return u?[u.type,this.renderAttrs(Object.create(null),r,i),0]:null}}as(Xp);let Yp={listId:Te.createOptional(),listLevel:Te.createOptional({empty_value:0,normalizer:l=>{let r=Te.getPresetNormalizer("integer")(l);return r==null?null:qe(r,0,8)}}),listMarks:Gi.marks},Um=Object.keys(Yp);function Qp(l,r,i){return l.type==="ul"||r===i}function Kp(l){let r;return r=l?{...Gi,marks:Gi.marks.copy({normalizer:l})}:Gi,i=>{let s,u;if(!i||!Array.isArray(i))return;let x=i.length;if(x!==9){if(x===0)return;s=x>9?i.slice(0,9):Array.from({length:9},(v,P)=>i[P]??null)}else s=i;return s.forEach((v,P)=>{let j=v==null?null:Te.normalizeAttrValues(r,v);j!==v&&(u||(u=s.slice()),u[P]=j)}),u??s}}let jn={type:Te.createOptional({empty_value:"ul",normalizer:["ul","ol"]}),indent:Te.createOptional({empty_value:0,normalizer:"number"}),configs:Te.createOptional({empty_value:m,normalizer:Kp()})},$m=Object.keys(jn);function eg(l){let r;return r=l?{...jn,configs:jn.configs.copy({normalizer:Kp(l)})}:jn,i=>{let s;if(i&&typeof i=="object")return R(i,(u,x)=>{let v=u===null?null:Te.normalizeAttrValues(r,u),P=v===void 0;(P||u!==v)&&(s||(s=Object.assign(Object.create(null),i)),P?delete s[x]:s[x]=v)}),s??i}}let tg={listMap:Te.create({optional:!0,empty_value:d,hidden:!0,normalizer:eg()})},Zm=Object.keys(tg),rg=Ol.filter(l=>l!=="marks");function Nl(l){if(!l.is("ContentEditable"))throw Error("Unable to mixin ListContainer to non-contentEditable.");let r=l.prototype;De(r,"isListContainer",!0),Ce(r,"getFreezeList",function(i){let s=i.call(this);return s.push("listContainerAttrs","listContainerAttrsList","defaultListContainerAttrs","listInfoAttrs","listInfoAttrsList","defaultListInfoAttrs"),s},!0),De(r,"listContainerAttrs",tg),De(r,"listContainerAttrsList",Zm),ke(r,"defaultListContainerAttrs",function(){return Te.emptyAttrs(this.listContainerAttrs)}),De(r,"listInfoAttrs",jn),De(r,"listInfoAttrsList",$m),ke(r,"defaultListInfoAttrs",function(){return Te.emptyAttrs(this.listInfoAttrs)}),ke(r,"attrs",function(i){return Te.mergeTypeAttrs(i.call(this),this.listContainerAttrs)},!0),Ce(r,"_getInheritedOrderedListConfigs",function(i){return i.state.inherited_ol_configs},!1,"has"),Ce(r,"getInheritedOrderedListConfigs",function(i){return this._getInheritedOrderedListConfigs(i)||this.defaultOrderedListConfigs},!1,"has"),Ce(r,"_getInheritedBulletListConfigs",function(i){return i.state.inherited_ul_configs},!1,"has"),Ce(r,"getInheritedBulletListConfigs",function(i){return this._getInheritedBulletListConfigs(i)||this.defaultBulletListConfigs},!1,"has"),Ce(r,"getInheritedListConfigs",function(i,s){return s==="ol"?this.getInheritedOrderedListConfigs(i):this.getInheritedBulletListConfigs(i)},!1,"has"),Ce(r,"getInheritedListConfigAttrs",function(i,s,u){return this.getInheritedListConfigs(i,s)[u]},!1,"has"),Ce(r,"registerListContainer",function(){let i=this.getStateMap();i.register(i.UPDATE_START,this.name,"set_list_info",null,(s,u)=>{let x,v=!1;if(s.getStateRank()<tt.STATE_SCAN){let j=!1;s.descendants(F=>{let q=F.getStateRank();return q>=tt.STATE_SCAN?(v=!0,!0):F.type.isTextblock?(q===tt.STATE_PASSING&&(j=!0),!1):void 0},{skipInlineContent:!0}),j||(v=!0)}else v=!0;if(!v)return;let P=s.state.list_map;return P&&s.getStateRank()<tt.STATE_SCAN?R(x=P,function(j,F){j.forEach(q=>{q.dirty=!1,q.index=q.start})}):R(x=Y(s.getAttrValue("listMap"),(j,F)=>function(q,J,re){re||(re=d);let te=re.type||q.type.defaultListInfoAttrs.type,ie=re.indent||q.type.defaultListInfoAttrs.indent,de=re.configs||q.type.defaultListInfoAttrs.configs,ce=q.type.getInheritedListConfigs(q,te),xe=Array(9);for(let we=0;we<9;++we)xe[we]=function(Me,Se,Re,Be){return(Be=Object.assign(Object.create(null),Re,Be,{marks:Qe.mergeSetJSON(Re.marks,Be&&Be.marks)})).level=Se,Be.dirty=!1,Be.index=Be.start,Be.type=_i(Be.format)?"ul":"ol",Be.depends=function(Ue){let Ze=Ue.match(ns);return Ze?Ze.map(lt=>parseInt(lt.slice(1),10)):[]}(Be.text).reduce((Ue,Ze)=>(--Ze>=0&&Ze<Se&&Ue.push(Ze),Ue),[]),Be}(0,we,ce[we],de[we]);return xe.list_id=J,xe.list_type=te,xe.list_indent=ie,xe}(s,F,j)),function(j,F){(function(q,J,re){for(let te=0;te<9;++te){let ie,de=J[te];de.depends&&de.depends.some(ce=>J[ce].dirty)?ie=!0:re?ie=!ye(re[te],de,ve,["format","text","align","marks"]):ie=!0,de.dirty=ie,de.marks_instance=ie?q.type.schema.marksFromJSON(de.marks):re[te].marks_instance}})(s,j,P&&P[F])}),s.state.list_map=x,u.pushListMap(x),tt.STATE_SCAN}),i.register(i.UPDATE_END,this.name,"clear_list_info",null,(s,u)=>{u.popListMap()})}),Ce(r,"computeJsonConversionAttrs",function(i,s,u){let x=i.call(this,s,u);return u.target==="clipboard"&&u.useComputedStyle&&s.getAttrValue("listMap",!0)&&(x===s.attrs&&(x=Object.assign(Object.create(null),x)),x.listMap=Y(s.state.list_map,v=>({indent:v.list_indent,configs:v.map(P=>Ol.reduce((j,F)=>(j[F]=P[F],j),Object.create(null)))}))),x},!0),Ce(r,"trimNode",function(i,s,u){let x,v=(s=i.call(this,s,u)||s).getAttrValue("listMap",!0);if(!v)return s;let P=["ol","ul"].reduce((j,F)=>(j[F]=this.getInheritedListConfigs(s,F),j),Object.create(null));return R(v,(j,F)=>{let q;if(!j)return;let{type:J,indent:re,configs:te}=j,ie=P[J]||P[this.defaultListInfoAttrs.type];if(re!=null&&re===ie.list_indent&&(q||(q=Object.assign(Object.create(null),j)),delete q.indent),te!=null){let de;for(let ce=0;ce<9;++ce){let xe,we=te[ce];if(!we)continue;let Me=ie[ce];for(let Re=rg.length-1;Re>=0;--Re){let Be=rg[Re],Ue=we[Be];Ue!=null&&Ue===Me[Be]&&(xe||(xe=Object.assign(Object.create(null),we)),delete xe[Be])}let Se=Qe.trimSetJSON(we.marks,Me.marks);Se&&(xe||(xe=Object.assign(Object.create(null),we)),xe.marks=Se),xe&&(de||(de=te.slice()),de[ce]=xe)}de&&(q||(q=Object.assign(Object.create(null),j)),q.configs=de)}q&&(x||(x=Object.assign(Object.create(null),v)),x[F]=q)}),x&&(s=s.duplicate(s.content,{listMap:x})),s},!0),Ce(r,"parseAttrsFromParser",function(i,s,u,x){i.call(this,s,u,x);let v=u.getParser("list");if(!v)return s;let P=v.getContainer();return P&&Object.assign(s,{...P.attrs,listMap:{...s.listMap,...P.attrs.listMap}}),s},!0),as(l)}class ig extends Zr{static getSelfPropertyName(){return"PseudoListItem"}parseAttrsFromJson(r,i,s){try{i.listMarks&&Array.isArray(i.listMarks)&&(i.listMarks=Qe.setToJSON(Qe.setFromJSON(this.schema,i.listMarks)))}catch{i.listMarks=void 0}return super.parseAttrsFromJson(r,i,s)}parseAttrsFromParser(r,i,s){super.parseAttrsFromParser(r,i,s);let u=i.marks,x=this.schema.maybeMarkType("link");return x&&(u=x.removeLinkMarks(u)),u.length&&(r.listMarks=Qe.mergeSetJSON(r.listMarks,Qe.setToJSON(u))),r}renderAttrsJson(r,i,s){super.renderAttrsJson(r,i,s);let u=i.listMarksJSON;return u.length&&(r.listMarks=u),r}}as(ig);let Jm=Object.assign(Object.create(null),{ul:"list",ol:"list",li:"item"});class Xm extends Jp{getNodeType(r){return r.nodeType!==r.ELEMENT_NODE?null:Jm[r.nodeName.toLowerCase()]||(r.getAttribute("synoedit")==="true"?"container":null)}_add(r,i){return r==="item"?this.addItem(i):(r&&this.consumeItem(),super._add(...arguments))}_remove(r,i){return r==="item"?this.removeItem(i):super._remove(...arguments)}getListType(r){return r.tagName.toLowerCase()}createListConfig(r,i){let s=this._createListConfig(r,i);for(let u=r.firstChild;u;u=u.nextSibling)if(this.getNodeType(u)==="item"){Object.assign(s,this._createListConfig(u,i));break}return s}_createListConfig(r,i){let s=Object.create(null);return this.fillListConfigFormat(s,r,i),this.fillListConfigStart(s,r,i),s}fillListConfigFormat(r,i,s){var u;let x=((u=i.style.listStyleType)?Bm[u]||"decimal":null)||function(v){let P=v.tagName;if(P==="OL"||P==="UL"){let j=v.getAttribute("type");return P==="OL"?j&&zm[j]||"decimal":j&&Fm[j]||Er("●")}return null}(i);return x&&(r.format=x,r.text=Rl(x,s)),r}fillListConfigStart(r,i,s){let u=i.getAttribute(this.getNodeType(i)==="item"?"value":"start");return u&&(isNaN(u=parseInt(u,10))||u===1||(r.start=u)),r}_createList(r,i,s,u){var x;let v=Object.assign(super._createList(...arguments),{item:null}),P=Lt(r.style.paddingLeft,"px");isNaN(P)?P=0:P-=this.type.baseIndent;let j=(x=r.style.marginLeft,(Lt(x,"px",void 0)||0)+P);return j&&(i===0?v.info.indent=j:v.indent+=j),v}createList(r,i,s){let u=this.type.getPseudoListType().parseAttrs(r,Object.assign(Object.create(null),this.parser.options,{list_level:i})),x=u.id;return x&&Array.isArray(u.configs)?(this.parsedIds[x]=!0,delete u.id,this._createList(r,i,x,u)):super.createList(...arguments)}createItem(r){return{node:r,marker:!0,attrs:this.type.getPseudoListItemType().parseAttrs(r,this.parser.options)}}getItem(){let r=this.getList();return r&&r.item}addItem(r){let i=this.getList();return!i||i.item?null:i.item=this.createItem(r)}removeItem(r){let i=this.getItem();return i&&i.node===r&&(this.getList().item=null),i}consumeItem(){let r=this.getItem();return!!r&&!!r.marker&&(r.marker=!1,!0)}}function ss(l){return!!l.type.isListBlock&&l.getAttrValue("listId",!0)!=null}function os(l){return ss(l)?l.getAttrValue("listId"):null}function ng(l,r){let i=function(x,v){let P=x.parent;if(ss(P))return{type:0,node:P};let j=null,F=0;if(P.type.isTextblock?(v<0?x.atStart:x.atEnd)&&(j=x.node(-1),F=x.index(-1)+v):(j=P,F=x.index()+(v<0?-1:0)),j){let q=j.maybeChild(F);if(q&&ss(q))return{type:1,node:q}}return null}(l,r);if(!i)return null;let{type:s,node:u}=i;return{type:s,listId:u.getAttrValue("listId"),listLevel:u.getAttrValue("listLevel"),listMarks:u.getAttrValue("listMarks")}}class ag extends Xm{static#e=this.parserName="list";constructor(r){super(),this.type=r,this.parser=null,this.parsedIds=Object.create(null),this.currentListMap=null,this.listContextBefore=null,this.listContextAfter=null}getParseOptions(){let r=this.parser;return r?r.options:Object.create(null)}getParsedIds(){return this.parsedIds}init(r,i,s){this.parser=r;let u=s.currentListMap||null;if(!u){for(let x=r.top;x;x=x.prev)if(x.type.isListContainer){u=x.attrs.listMap||null;break}}this.currentListMap=u,i&&(i.self&&i.self.isTextblock&&(i=i.extend(0)),this.listContextBefore=ng(i,-1),this.listContextAfter=ng(i,1))}finish(r,i){return r=this.adaptList(r,i),r=this.changeListId(r,i)}finishCustom(){let r=this.getContainer();return{listMap:r&&r.map&&!H(r.map)?r.map:null}}overrideListId(r,i,s,u){let x=i.self;if(!x)return r;let v=os(x);if(!v)return r;let P=9;r.descendants(q=>{os(q)===v&&(P=Math.min(P,q.getAttrValue("listLevel")))},{skipInlineContent:!0});let{listId:j,listLevel:F}=s;return r.mapDescendants(q=>{if(q.type.isListContainer){let J=q.getAttrValue("listMap");v in J&&(J=Object.assign(Object.create(null),J),delete J[v],q=q.copyWithAttrs({listMap:J}))}else os(q)===v&&(q=q.copyWithAttrs({listId:j,listLevel:F+q.getAttrValue("listLevel")-P,indentFirst:null,indentLeft:null}));return q},{skipInlineContent:!0})}applyContinuousList(r,i,s,u){let{listId:x,listLevel:v,listMarks:P}=s,j=i.parent,F=i.index(),q=u?j.childCount:-1,J=u?1:-1,re=j.childs();for(let ie=F;ie!==q;ie+=J){let de=j.child(ie);if(!de.type.isListBlock)break;re[ie]=de.copyWithAttrs({listId:x,listLevel:v,listMarks:P,indentFirst:null,indentLeft:null})}let te=j.copyWithContent(re);return r===j?te:r.mapDescendants(ie=>ie===j?te:ie,{skipInlineContent:!0})}adaptListContext(r,i,s,u){let x=i.self;if(!x||!x.type.isListBlock)return null;let v=x.getAttrValue("listId")||"";return s.type!==1||v?v?this.overrideListId(r,i,s,u):this.applyContinuousList(r,i,s,u):null}adaptList(r,i){let{listContextBefore:s,listContextAfter:u}=this;if(!s&&!u)return r;let x=null,v=null;if(r.descendants((P,j,F,q)=>{if(!P.type.isListBlock||j<i)return;let J={node:P,pos:j,parent:q,id:P.getAttrValue("listId")||""};x||(x=J),v=J},{skipInlineContent:!0}),!x||!v)return r;if(s){let P=this.adaptListContext(r,x.$pos||r.resolve(x.pos),s,!0);if(P)if(r=P,x===v)v=null;else{let j=r.resolve(v.pos);j.self&&os(j.self)===v.id?v.$pos=j:v=null}}return u&&v&&(r=this.adaptListContext(r,v.$pos||r.resolve(v.pos),u,!1)||r),r}changeListId(r,i){let s=this.getContainer();if(!s)return r;let u=this.getParsedIds(),x=this.currentListMap;if(x&&(u=function(j,F,q){let J=Object.create(null);return R(j,(re,te,ie)=>{F.call(void 0,re,te,ie)&&(J[te]=re)}),J}(u,(j,F)=>x[F]===void 0)),H(u))return r;let v=Y(u,(j,F)=>ge()),P=s.map;return Object.entries(P).forEach(j=>{let[F,q]=j;F in v&&(P[v[F]]=q,delete P[F])}),r.mapDescendants(j=>{if(j.type.isListContainer){let F=!1,q=K(j.getAttrValue("listMap"),(J,re,te)=>{let ie;return te in v?(ie=v[te],F=!0):ie=te,J[ie]=re,J},Object.create(null));F&&(j=j.copyWithAttrs({listMap:q}))}else if(ss(j)){let F=j.getAttrValue("listId");F&&F in v&&(j=j.copyWithAttrs({listId:v[F]}))}return j},{skipInlineContent:!0})}}class Ym extends Ta{static checkNode(r){return super.checkNode(r)&&r.type.isListContainer}}class ls extends Ym{applyListMap(r,i){return i}applyAtPos(r,i){let{doc:s,pos:u,self:x}=r,v=this.applyListMap(r,x.getAttrValue("listMap",!0));return v===!1?s:s.replace(u,u+x.nodeSize,ot.from(x.duplicate(x.content,{listMap:v})),tt.STATE_SCAN)}doCreatePosMap(r){return null}}class sg extends ls{constructor(r,i){super(r),this.infos=i}applyListMap(r,i){i=Object.assign(Object.create(null),i);let s=!1;return R(this.infos,(u,x)=>{u!==void 0&&i[x]===void 0&&(i[x]=u,s=!0)}),!!s&&i}doInvert(r){return null}doMap(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.infos)}static fromJSON(r,i){return new this(i.pos,i.infos)}}gt.jsonID("addListMap",sg);class og extends ls{constructor(){super(),delete this.pos}applyListMap(r,i){if(!i)return!1;let s=Object.create(null);return r.self.descendants(u=>{if(!u.type.isListBlock)return;let x=u.getAttrValue("listId");if(x&&!(x in s)&&Object.prototype.hasOwnProperty.call(i,x)){let v=i[x];v!==void 0&&(s[x]=v)}},{skipInlineContent:!0}),!ye(i,s,ve,void 0)&&s}doApply(r,i){let s=[];r.descendants((u,x)=>{if(u.type.isListContainer)return s.push(x),!1});for(let u=s.length-1;u>=0;--u)r=this.applyAtPos(r.resolve(s[u]),i);return r}doInvert(r){return null}doMap(r){return this}static fromJSON(r,i){return new this}}gt.jsonID("trimListMap",og);class lg extends ls{constructor(r,i){super(r),this.id=i}applyListAttrs(r,i){}applyListMap(r,i){i=Object.assign(Object.create(null),i);let s=this.id;return i[s]=this.applyListAttrs(r,i[s])||null,i}doMap(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.id)}static fromJSON(r,i){return new this(i.pos,i.id)}}class hg extends lg{constructor(r,i,s){super(r,i),this.attrs=s}applyListAttrs(r,i){return Te.copyAttrs(r.self.type.listInfoAttrs,i,this.attrs)}invertAtPos(r){let{pos:i,self:s}=r,{id:u,attrs:x}=this;return new this.constructor(i,u,Te.invertAttrs(s.type.listInfoAttrs,s.getAttrValue("listMap")[u],x))}doMap(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.id,this.attrs)}static fromJSON(r,i){return new this(i.pos,i.id,i.attrs)}}gt.jsonID("setListInfo",hg);class ug extends lg{constructor(r,i,s){super(r,i),this.configs=s}applyListAttrs(r,i){let{configs:s}=this,u=i&&i.configs;u=u?u.slice():[];let x=r.self.type.listConfigAttrs;for(let v=0;v<9;++v)s[v]&&(u[v]=Te.copyAttrs(x,u[v],s[v]));return Object.assign(Object.create(null),i,{configs:u})}invertAtPos(r){let{pos:i,self:s}=r,{id:u,configs:x}=this,v=s.getAttrValue("listMap")[u],P=v&&v.configs,j=s.type.listConfigAttrs;return new this.constructor(i,u,x.map((F,q)=>Te.invertAttrs(j,P&&P[q],F)))}doMap(r){let i=this.mapPos(r);return i==null?null:new this.constructor(i,this.id,this.configs)}static fromJSON(r,i){return new this(i.pos,i.id,i.configs)}}function hs(l,r){let i=l.doc.resolve(r).self;if(!ls.checkNode(i))throw RangeError(`Invalid node at pos ${r}.`);return i}gt.jsonID("setListConfigs",ug),Object.assign($t.prototype,{trimListMap(){return this.step(new og(...arguments))},addListMap(l,r){let i=hs(this,l);return R(r,(s,u)=>{if(s?!Te.checkAttrs(i.type.listInfoAttrs,s):s!==null)throw RangeError(`Invalid list info ${JSON.stringify(s)}.`)}),this.step(new sg(...arguments))},addListInfo(l,r,i){return r in hs(this,l).state.list_map?this.setListInfo(l,r,i):this.addListMap(l,{[r]:i})},setListInfo(l,r,i){let s=hs(this,l);if(!i||!Te.checkAttrs(s.type.listInfoAttrs,i))throw RangeError(`Invalid list info ${JSON.stringify(i)}.`);return this.step(new hg(...arguments))},setListConfigs(l,r,i){let s=hs(this,l);if(i.length>9)throw RangeError(`Invalid list configs length ${i.length}.`);return i.forEach((u,x)=>{if(!Te.checkAttrs(s.type.listConfigAttrs,u))throw RangeError(`Invalid list config ${JSON.stringify(u)} at level ${x}.`)}),this.step(new ug(...arguments))},setListConfig(l,r,i,s){if(i<0||i>=9)throw RangeError(`Invalid list level ${i}.`);if(!s)throw RangeError(`Invalid list config ${JSON.stringify(s)}.`);let u=Array(i);return u.push(s),this.setListConfigs(l,r,u)}});class Hi extends Nm(My){static getSelfPropertyName(){return"BasicParagraph"}getTopPaddingHeight(r){return this.getCssAttrs(r).paddingTop}getBottomPaddingHeight(r){return this.getCssAttrs(r).paddingBottom}registerSelfLocalAttrsUpdateMap(){let r=this.getStateMap();this.registerMarksBlock(),this.registerCssBlock(),this.registerIndentBlock(),this.registerTabBlock(),this.registerListBlock(),r.reorder(r.SELF_START,this.name,"set_text_rect_info")}_toChildContainerDOM(r,i){return["span",null,0]}renderBlockStructure(r,i){return["div",this.renderAttrs(Object.create(null),r,i),this._toChildContainerDOM(r,i)]}renderTag(r,i){return"p"}toCopyDOM(r,i){let s=this.renderTag(r,i),u=this.renderAttrs(Object.create(null),r,i),x=[s,u,0];if(r.getAttrValue("listId")==null)return x;{let v=u.inline_style,P={"padding-top":"0px","padding-bottom":"0px","margin-top":"0px","margin-bottom":"0px"};return["padding-left","padding-right","margin-left","margin-right"].forEach(j=>{P[j]=v[j],v[j]="0px"}),["li",this.getPseudoListItemType().renderAttrs({inline_style:P},r,i),x]}}}(function(l){let r=l.prototype;if(!r.isTextblock)throw Error("Unable to mixin MarksBlock to non-Textblock.");De(r,"isMarksBlock",!0),Ce(r,"getFreezeList",function(i){let s=i.call(this);return s.push("marksAttrs","marksAttrsList","defaultMarksAttrs"),s},!0),De(r,"marksAttrs",Fp),De(r,"marksAttrsList",Lm),ke(r,"defaultMarksAttrs",function(){return Te.emptyAttrs(this.marksAttrs)}),ke(r,"attrs",function(i){return Te.mergeTypeAttrs(i.call(this),this.marksAttrs)},!0),Ce(r,"_getInheritedTextMarksJSON",function(i){return i.state.inherited_text_marks_json},!1,"has"),Ce(r,"getInheritedTextMarksJSON",function(i){return this._getInheritedTextMarksJSON(i)||Qe.none},!1,"has"),Ce(r,"_getInheritedTextMarks",function(i){return i.state.inherited_text_marks},!1,"has"),Ce(r,"getInheritedTextMarks",function(i){return this._getInheritedTextMarks(i)||Qe.none},!1,"has"),Ce(r,"mergeTextMarks",function(i){let s=i.state;if(s.inherit||s.cached_attrs!==i.attrs)return s.text_marks_json=Qe.mergeSetJSON(this.getInheritedTextMarksJSON(i),i.textMarksRawJSON),s.text_marks=Qe.mergeSet(this.getInheritedTextMarks(i),i.textMarksRaw),tt.STATE_REDRAW},!1,"has"),Ce(r,"registerMarksBlock",function(){let i=this.getStateMap();i.register(i.SELF_START,this.name,"merge_text_marks",null,this.mergeTextMarks.bind(this))}),Ce(r,"computeJsonConversionAttrs",function(i,s,u){let x=i.call(this,s,u),{target:v,useComputedStyle:P,markFilter:j}=u;if(v==="clipboard"&&P&&(x={...x,textMarks:s.textMarksJSON}),j&&x.textMarks?.length){let F=x.textMarks.filter(j);F.length!==x.textMarks.length&&(x={...x,textMarks:F})}return x},!0),Ce(r,"trimNode",function(i,s,u){s=i.call(this,s,u)||s;let x=Qe.trimSetJSON(s.textMarksRawJSON,this.getInheritedTextMarksJSON(s));return x&&(s=s.duplicate(s.content,{textMarks:x})),s},!0),Ce(r,"parseAttrsFromJson",function(i,s,u,x){try{u.textMarks&&Array.isArray(u.textMarks)&&(u.textMarks=Qe.setToJSON(Qe.setFromJSON(this.schema,u.textMarks)))}catch{u.textMarks=void 0}return i.call(this,s,u,x)},!0),Ce(r,"parseAttrsFromParser",function(i,s,u,x){i.call(this,s,u,x);let v=u.marks,P=this.schema.maybeMarkType("link");return P&&(v=P.removeLinkMarks(v)),v.length&&(s.textMarks=Qe.mergeSetJSON(s.textMarks,Qe.setToJSON(v))),s},!0),Ce(r,"renderAttrsDom",function(i,s,u,x){return i.call(this,s,u,x),s},!0),Ce(r,"renderAttrsJson",function(i,s,u,x){i.call(this,s,u,x);let v=u.textMarksJSON;return v.length&&(s.textMarks=v),s},!0)})(Hi),function(l){let r=l.prototype;if(!r.isTextblock)throw Error("Unable to mixin CssBlock to non-Textblock.");De(r,"isCssBlock",!0),Ce(r,"getFreezeList",function(i){let s=i.call(this);return s.push("cssAttrs","defaultCssAttrs"),s},!0),De(r,"cssAttrs",Ll),ke(r,"defaultCssAttrs",function(){return Te.emptyAttrs(this.cssAttrs)}),ke(r,"attrs",function(i){return Te.mergeTypeAttrs(i.call(this),this.cssAttrs)},!0),Ce(r,"getCssAttrList",function(){return this.cssAttrList||(this.cssAttrList=Object.keys(this.cssAttrs))},!1,"has"),Ce(r,"getCssAttrs",function(i){return i.state.css_attrs||this.defaultCssAttrs},!1,"has"),Ce(r,"_getInheritedCssAttrs",function(i){return i.state.inherited_css_attrs},!1,"has"),Ce(r,"getInheritedCssAttrs",function(i){return this._getInheritedCssAttrs(i)||this.defaultCssAttrs},!1,"has"),Ce(r,"mergeCssAttrs",function(i){let s=i.state;if(s.inherit||s.cached_attrs!==i.attrs)return s.css_attrs=Te.mergeAttrs(this.getCssAttrList(),i.attrs,this.getInheritedCssAttrs(i)),tt.STATE_REDRAW},!1,"has"),Ce(r,"registerCssBlock",function(){let i=this.getStateMap();i.register(i.SELF_START,this.name,"merge_css_attrs",null,this.mergeCssAttrs.bind(this))}),Ce(r,"computeJsonConversionAttrs",function(i,s,u){let x=i.call(this,s,u);return u.target==="clipboard"&&u.useComputedStyle?(x===s.attrs&&(x=Object.assign(Object.create(null),x)),Object.assign(x,this.getCssAttrs(s))):x},!0),Ce(r,"trimNode",function(i,s,u){let x,v=(s=i.call(this,s,u)||s).attrs,P=this.getInheritedCssAttrs(s),j=this.getCssAttrList();for(let F=j.length-1;F>=0;--F){let q=j[F],J=v[q];J!=null&&J===P[q]&&(x||(x=Object.create(null)),x[q]=null)}return x?s.duplicate(s.content,x):s},!0),Ce(r,"parseAttrsFromDom",function(i,s,u,x){function v(F){var q;return q=u.style[F],Lt(q,"px",void 0)||0}i.call(this,s,u,x);let P=v("marginTop")+v("paddingTop"),j=v("marginBottom")+v("paddingBottom");return P&&(s.paddingTop=(s.paddingTop||0)+P),j&&(s.paddingBottom=(s.paddingBottom||0)+j),s},!0),Ce(r,"parseAttrsFromParser",function(i,s,u,x){i.call(this,s,u,x);let v=u.getMarkValue("text_align");v&&(s.textAlign=v);let P=u.getMarkValue("line_height");return P&&(s.lineHeight=P),s},!0),Ce(r,"renderAttrsDom",function(i,s,u,x){i.call(this,s,u,x);let v=s.inline_style||(s.inline_style=Object.create(null)),P=this.getCssAttrs(u);function j(F,q){v[F]=(parseFloat(v[F])||0)+q+"px"}return v["text-align"]=P.textAlign,v["line-height"]=1.2*P.lineHeight,j("padding-top",P.paddingTop),j("padding-bottom",P.paddingBottom),v["margin-top"]="0px",v["margin-bottom"]="0px",s},!0)}(Hi),function(l){let r=l.prototype;if(!r.isTextblock)throw Error("Unable to mixin IndentBlock to non-Textblock.");De(r,"isIndentBlock",!0),Ce(r,"getFreezeList",function(i){let s=i.call(this);return s.push("baseIndent","indentAttrs","indentAttrsList","defaultIndentAttrs"),s},!0),De(r,"baseIndent",30),De(r,"indentAttrs",Hp),De(r,"indentAttrsList",Dm),ke(r,"defaultIndentAttrs",function(){return Te.emptyAttrs(this.indentAttrs)}),ke(r,"attrs",function(i){return Te.mergeTypeAttrs(i.call(this),this.indentAttrs)},!0),Ce(r,"getIndentAttrs",function(i){return i.state.indent_attrs||this.defaultIndentAttrs},!1,"has"),Ce(r,"_getInheritedIndentAttrs",function(i){return i.state.inherited_indent_attrs},!1,"has"),Ce(r,"getInheritedIndentAttrs",function(i){return this._getInheritedIndentAttrs(i)||this.defaultIndentAttrs},!1,"has"),Ce(r,"mergeIndentAttrs",function(i){let s=i.state;if(s.inherit||s.cached_attrs!==i.attrs)return s.indent_attrs=Te.mergeAttrs(this.indentAttrsList,i.attrs,this.getInheritedIndentAttrs(i)),tt.STATE_REDRAW},!1,"has"),Ce(r,"registerIndentBlock",function(){let i=this.getStateMap();i.register(i.SELF_START,this.name,"merge_indent_attrs",null,this.mergeIndentAttrs.bind(this))}),Ce(r,"computeJsonConversionAttrs",function(i,s,u){let x=i.call(this,s,u);return u.target==="clipboard"&&u.useComputedStyle?(x===s.attrs&&(x=Object.assign(Object.create(null),x)),Object.assign(x,this.getIndentAttrs(s))):x},!0),Ce(r,"trimNode",function(i,s,u){let x,v=(s=i.call(this,s,u)||s).attrs,P=this.getInheritedIndentAttrs(s),j=this.indentAttrsList;for(let F=j.length-1;F>=0;--F){let q=j[F],J=v[q];J!=null&&J===P[q]&&(x||(x=Object.create(null)),x[q]=null)}return x?s.duplicate(s.content,x):s},!0),Ce(r,"getTextRectInfo",function(i,s,u){let x=i.call(this,s,u),{indentLeft:v,indentRight:P}=this.getIndentAttrs(s);return v||P?{left:x.left+v,width:x.width-v-P}:x},!0),Ce(r,"getFirstTextRectInfo",function(i,s){let u=i.state.text_rect_info,x=this.getIndentAttrs(i),v=x.indentFirst-x.indentLeft;return v?{left:u.left+v,width:u.width-v}:u}),Ce(r,"setStateTextRectInfo",function(i,s,u){let x=i.call(this,s,u);return s.state.first_text_rect_info=this.getFirstTextRectInfo(s,u),x},!0),Ce(r,"parseAttrsFromDom",function(i,s,u,x){function v(F){var q;return q=u.style[F],Lt(q,"px",void 0)||0}i.call(this,s,u,x);let P=v("marginLeft")+v("paddingLeft"),j=v("marginRight")+v("paddingRight");return P&&(s.indentFirst=(s.indentFirst||0)+P,s.indentLeft=(s.indentLeft||0)+P),j&&(s.indentRight=(s.indentRight||0)+j),s},!0),Ce(r,"parseAttrsFromParser",function(i,s,u,x){i.call(this,s,u,x);let v=u.getMarkValue("text_indent");return v&&(s.indentFirst=(s.indentFirst||0)+v),s},!0),Ce(r,"renderAttrsDom",function(i,s,u,x){if(i.call(this,s,u,x),x.target==="clipboard"){let v=s.inline_style||(s.inline_style=Object.create(null)),{indentFirst:P,indentLeft:j,indentRight:F}=this.getIndentAttrs(u),q=function(re,te){v[re]=(parseFloat(v[re])||0)+te+"px"},J=P-j;q("margin-left",Math.min(P,j)),q("padding-left",Math.max(-J,0)),q("text-indent",J),q("margin-right",F)}return s},!0)}(Hi),function(l){let r=l.prototype;if(!r.isIndentBlock||!r.isMarksBlock)throw Error("Unable to mixin ListBlock to non-IndentBlock or non-MarksBlock.");De(r,"isListBlock",!0),Ce(r,"getFreezeList",function(i){let s=i.call(this);return s.push("listAttrs","listAttrsList","defaultListAttrs"),s},!0),De(r,"listAttrs",Yp),De(r,"listAttrsList",Um),ke(r,"defaultListAttrs",function(){return Te.emptyAttrs(this.listAttrs)}),De(r,"listItemPadding",2),ke(r,"attrs",function(i){return Te.mergeTypeAttrs(i.call(this),this.listAttrs)},!0),Ce(r,"_getInheritedListMarksJSON",function(i){let s=i.state.list_config;return s&&s.marks},!1,"has"),Ce(r,"getInheritedListMarksJSON",function(i){return this._getInheritedListMarksJSON(i)||Qe.none},!1,"has"),Ce(r,"_getInheritedListMarks",function(i){let s=i.state.list_config;return s&&s.marks_instance},!1,"has"),Ce(r,"getInheritedListMarks",function(i){return this._getInheritedListMarks(i)||Qe.none},!1,"has"),Ce(r,"mergeListMarks",function(i){let s=i.state;if(s.list_config){let u=i.getAttrValue("listMarks");s.list_marks_json=Qe.mergeSetJSON(this.getInheritedListMarksJSON(i),u),s.list_marks=Qe.mergeSet(this.getInheritedListMarks(i),this.schema.marksFromJSON(u))}else s.list_marks_json=Qe.none,s.list_marks=Qe.none;return tt.STATE_REDRAW},!1,"has"),Oe(r,"registerListBlock",function(){let i=this.getStateMap();i.register(i.UPDATE_START,this.name,"set_list_info",null,(s,u)=>{if(!u.getListMap())return;let x=s.getAttrValue("listId"),v=x&&u.getListConfigs(x),P=s.state.list_configs;if(!v&&!P)return;let j=s.getAttrValue("listLevel"),F=s.state.list_path,q=v&&function(J,re){let te=[];for(let ie=0;ie<re;++ie){let de=J[ie];de.index===de.start&&++de.index,te.push(de.index-1)}te.push(J[re].index++);for(let ie=J.length-1;ie>re;--ie){let de=J[ie];de.index=de.start}return te}(v,j);if(Object.assign(s.state,v?{list_configs:v,list_path:q,list_config:v[j],list_index:q[j],list_head:j===0&&v[j].start===q[j]}:{list_configs:null,list_path:null,list_config:null,list_index:null,list_head:null}),!(s.getStateRank()<tt.STATE_UPDATE&&P&&v&&function(J,re,te,ie,de){if(J.list_id!==re.list_id||J.list_type!==re.list_type||J.list_indent!==re.list_indent)return!1;let ce=re[de];if(ce.dirty||!Qp(ce,te[de],ie[de]))return!1;let xe=ce.depends;return!(xe&&xe.some(we=>!Qp(re[we],te[we],ie[we])))}(P,v,F,q,j)))return tt.STATE_REDRAW}),i.register(i.SELF_START,this.name,"merge_list_marks",null,this.mergeListMarks.bind(this))}),Ce(r,"getTextRectInfo",function(i,s,u){let x=i.call(this,s,u),v=s.state.list_configs;if(!v)return x;{let P=this.baseIndent*(s.getAttrValue("listLevel")+1)+v.list_indent;return{left:x.left+P,width:x.width-P}}},!0),Ce(r,"getFirstTextRectInfo",function(i,s,u){let x=i.call(this,s,u);if(!s.state.list_configs)return x;{let v=this.baseIndent;return{left:x.left-v,width:x.width+v}}},!0),Ce(r,"computeJsonConversionAttrs",function(i,s,u){let x=i.call(this,s,u),{target:v,useComputedStyle:P,markFilter:j}=u;if(v==="clipboard"&&P&&(x={...x,listMarks:s.listMarksJSON}),j&&x.listMarks?.length){let F=x.listMarks.filter(j);F.length!==x.listMarks.length&&(x={...x,listMarks:F})}return x},!0),Ce(r,"trimNode",function(i,s,u){s=i.call(this,s,u)||s;let x=Qe.trimSetJSON(s.listMarksRawJSON,this.getInheritedListMarksJSON(s));return x&&(s=s.duplicate(s.content,{listMarks:x})),s},!0),Ce(r,"parseAttrsFromParser",function(i,s,u,x){i.call(this,s,u,x);let v=u.getParser("list");if(!v)return s;let P=v.getList();if(P){let j=P.item;if(j){let{indentFirst:q,indentLeft:J,indentRight:re}=this.parseAttrsFromDom(Object.create(null),j.node,x);q&&(s.indentFirst=(s.indentFirst||0)+q),J&&(s.indentLeft=(s.indentLeft||0)+J),re&&(s.indentRight=(s.indentRight||0)+re)}let F=P.indent;if(F&&(s.indentFirst=(s.indentFirst||0)+F,s.indentLeft=(s.indentLeft||0)+F),v.consumeItem())Object.assign(s,P.attrs,j.attrs);else{let q=this.baseIndent*(P.level+1);s.indentFirst=(s.indentFirst||0)+q,s.indentLeft=(s.indentLeft||0)+q}}return s},!0),Ce(r,"getListText",function(i){let s=i.getState("list_config"),u=i.getState("list_configs"),x=i.getState("list_path");return s&&u&&x?function(v,P){let j=Zp(P);return v.replace(ns,(F,q)=>q==="0"?"":j(Number(q)-1))}(s.text,v=>{let P=x[v];return P!=null?$p(u[v].format,P):""}):""}),Ce(r,"getPseudoListType",function(){return Xp.prototype}),Ce(r,"getPseudoListItemType",function(){return this.schema.nodeType("pseudo_list_item")}),Ce(r,"isValidListBlock",function(i){return!!(i.getAttrValue("listId")&&i.state.list_config)}),as(l)}(Hi);class us extends Jr{static getSelfPropertyName(){return"Direction"}get cssName(){return"direction"}get cssDefaultValue(){return"ltr"}get attrs(){return{value:new Te({default:"",empty_value:"ltr"})}}getCssValue(r){return r.getValue()}get matchDOMStyle(){return{[this.cssName]:(r,i,s)=>({value:r})}}}let jl=[9,9,11,12,14,18,24,36],Qm=Y({1:0,2:2,3:3,4:4,5:5,6:6,7:7},l=>jl[l]),cg=Y({"xx-small":0,"x-small":1,small:2,medium:3,large:4,"x-large":5,"xx-large":6},l=>jl[l]);function dg(l){return typeof l!="string"?null:Ws(l)||null}let Km=new Map([["helvetica","Arial"]]);function pg(l){return{value:l,eastAsia:l,complexScript:l}}let e2=RegExp(function(){let l,r,i;for(var s,u=arguments.length,x=Array(u),v=0;v<u;v++)x[v]=arguments[v];return s=Hr(...x),l="",r="",s.forEach(P=>{let[j,F]=P;if(Ds(j))j===F?l+=`${er(j)}`:l+=`${er(j)}-${er(F)}`;else{let q=String.fromCodePoint(j),J=q.charCodeAt(0),re=q.charCodeAt(1),te=String.fromCodePoint(F),ie=te.charCodeAt(0),de=te.charCodeAt(1);r&&(r+="|"),j===F?r+=`${er(J)}${er(re)}`:J===ie?r+=`${er(J)}[${er(re)}-${er(de)}]`:(r+=`${er(J)}[${er(re)}-${er(57343)}]`,J+1<=ie-1&&(r+=`|[${er(J+1)}-${er(ie-1)}][${er(56320)}-${er(57343)}]`),r+=`|${er(ie)}[${er(56320)}-${er(de)}]`)}}),i="",l&&(i+=`[${l}]`),r&&(i&&(i+="|"),i+=`${r}`),`(${i})`}("asciiTabNewline"),"g");function El(l){return!(l=l.trim().replace(e2,""))||l.startsWith("javascript:")?"":l.startsWith("#")||/^(?:(?:https?|s?ftp):\/\/|mailto:)/i.test(l)?l:`http://${l}`}function gg(l){let r=ln(l,{disableTransparent:!0});return!!r&&{value:r}}let t2={baseline:"base",middle:"base","text-top":"base","text-bottom":"base",super:"super",top:"super",sub:"sub",bottom:"sub"};class fg extends pa{static getSelfPropertyName(){return"Script"}get fontSizeRatio(){return .8}get cssName(){return"vertical-align"}get cssValue(){return this.scriptType}get cssDefaultValue(){return"baseline"}get matchDOMTag(){return{[this.scriptType]:null}}get matchDOMStyle(){return{[this.cssName]:(r,i,s)=>{if(i.tagName==="TD")return!1;let u=t2[r];return!!u&&(u===this.scriptType?null:{value:!1})}}}toDOM(r,i){return["span",{inline_style:{"vertical-align":this.scriptType,"font-size":i.target!=="clipboard"?100*this.fontSizeRatio+"%":void 0}}]}}class yg extends pa{static getSelfPropertyName(){return"TextDecoration"}get cssType(){return"append"}get cssName(){return"text-decoration-line"}get cssValue(){return this.decorationType}get cssDefaultValue(){return"none"}get matchDOMStyle(){return{[this.cssName]:(r,i,s)=>r==="none"?{value:!1}:!!r.split(" ").includes(this.decorationType)&&null}}}let r2={name:"",version:0,nodes:{paragraph:{type:Hi,content:"inline<_>*"},text:{type:class extends Tu{static getSelfPropertyName(){return"Text"}get isText(){return!0}get Node(){return Su}_create(l,r,i){if(typeof r!="string")throw Error("Invalid fragment content for a text node.");return new Su(this,l,r,Qe.setFrom(i))}createComputed(l,r,i){return this._create(this.computeAttrs(l),typeof r!="string"?"":r,i)}maybeCreateChecked(l,r,i){return typeof r=="string"&&r?this._create(this.computeAttrs(l),r,i):null}maybeCreateFilled(l,r,i){return typeof r!="string"?null:this._create(this.computeAttrs(l),r||" ",i)}toDOM(l,r){let i=l.text;return r.target==="clipboard"?["span",{inline_style:{"white-space":"pre-wrap"}},i]:["span",this.renderAttrs(null,l,r),i]}}},hard_break:{type:class extends ca{static getSelfPropertyName(){return"HardBreak"}getAltText(l){return`
`}get matchDOMTag(){return{br:null}}toDOM(l,r){return["span",{linebreak:"true",synobr:"true"},["br"]]}}},tab:{type:class extends ca{static getSelfPropertyName(){return"Tab"}getAltText(l){return"	"}get matchDOMTag(){return{'span[data-syno-schema="tab"]':(l,r)=>this.parseDOM(l,r)}}toDOM(l,r){let i=r.target;return["span",this.renderAttrs({"data-syno-schema":i==="clipboard"?"tab":void 0,inline_style:{display:"inline-block",...Qe.setToStyle(l.marks.filter(s=>s.is("TextDecoration")))}},l,r),i==="clipboard"?" ".repeat(4):void 0]}}},table:{type:Wd,content:"table_row+"},table_row:{type:class extends di{get isTableRow(){return!0}get unbreakable(){return!0}get hasCss(){return!0}get attrs(){return{parsed_empty:Te.create({optional:!0,empty_value:!1}),height:new Te({default:22,normalizer:"number"})}}registerSelfLocalAttrsUpdateMap(l){l.register(l.UPDATE_START,this.name,"init_table_col_index",null,(r,i)=>{i.setTableColIndex(-1)}),l.register(l.BEFORE_CHILD,this.name,"increase_table_col_index",null,(r,i,s)=>{s.setTableColIndex(s.getTableColIndex()+1)}),l.register(l.UPDATE_END,this.name,"clear_table_col_index",null,(r,i)=>{i.setTableColIndex()}),l.register(l.UPDATE_START,this.name,"update_table_row_info",null,(r,i)=>{let s=i.getTableUpdateInfoMap();if(!s)return;let u=s.getRow(i.getTableRowIndex());if(!u.dirty)return;let x=r.state;return x.border=u.border,r.getStateRank()<tt.STATE_UPDATE&&x.row_index===u.row_index&&x.cell_count===r.childCount?(r.forEach(function(v){v.setMinStateRank(tt.STATE_PASSING)}),tt.STATE_PASSING):(x.row_index=u.row_index,x.cell_count=r.childCount,tt.STATE_UPDATE)})}get matchDOMTag(){return{tr:(l,r)=>Object.assign(this.parseAttrs(l,r),{height:Vd(l),parsed_empty:!l.querySelector("td")||null})}}toDOM(l,r){return["tr",this.renderAttrs({inline_style:{height:`${l.attrs.height}px`}},l,r),0]}},content:"table_cell+"},table_cell:{type:class extends di{get isTableCell(){return!0}get selectable(){return!0}get unbreakable(){return!0}get hasCss(){return!0}get attrs(){let l=Te.create({default:1,empty_value:1,normalizer:x=>{let v=Te.getPresetNormalizer("integer")(x);if(v!=null&&!(v<=0))return v}}),r={verticalAlign:Te.createOptional({empty_value:"middle",normalizer:["top","middle","bottom"]}),backgroundColor:Te.createOptional({empty_value:"transparent"}),rowspan:l,colspan:l},i=Te.create({default:1,empty_value:1,normalizer:Ed}),s=Te.create({default:"solid",empty_value:"solid"}),u=Te.create({default:"#7b8187",empty_value:"#7b8187"});return["Left","Top","Right","Bottom"].forEach(x=>{let v=`border${x}`;r[v+"Width"]=i,r[v+"Style"]=s,r[v+"Color"]=u}),r.codeBlock=Te.create({optional:!0}),r}getLeftPaddingWidth(l){return 6+l.state.border.left.width/2}getRightPaddingWidth(l){return 6+l.state.border.right.width/2}getTopPaddingHeight(l){return l.state.border.top.width/2}getBottomPaddingHeight(l){return l.state.border.bottom.width/2}getCustomizeColors(l){let r=[];return["borderLeftColor","borderTopColor","borderRightColor","borderBottomColor","backgroundColor"].forEach(i=>{l.attrs[i]&&r.push(l.attrs[i])}),r}getTextRectInfo(l,r){let i=l.type.getLeftPaddingWidth(l),s=l.type.getRightPaddingWidth(l),u=super.getTextRectInfo(l,r),x=l.state;return{left:u.left+x.left+i,width:x.width-i-s}}registerSelfLocalAttrsUpdateMap(l){l.register(l.UPDATE_START,this.name,"update_table_cell_info",null,(r,i)=>{let s=i.getTableUpdateInfoMap();if(!s)return;let u=s.getCell(i.getTableRowIndex(),i.getTableColIndex());if(!u.dirty)return;let x=r.state,v=x.hidden!==u.hidden||x.view_rowspan!==u.view_rowspan||x.view_colspan!==u.view_colspan||x.left!==u.left||x.width!==u.width||!L(x.border,u.border);if(x.row_index=u.row_index,x.col_index=u.col_index,x.display=u.display,x.hidden=u.hidden,x.view_rowspan=u.view_rowspan,x.view_colspan=u.view_colspan,x.covered_idx=u.covered_idx,x.left=u.left,x.width=u.width,x.border=u.border,v)return tt.STATE_REDRAW}),l.reorder(l.SELF_START,this.name,"set_text_rect_info")}getContentDOM(l){return l.firstChild}getIndicatorWrapperDOM(l){return this.getContentDOM(l)}get matchDOMTag(){return{"td,th":(l,r)=>this.parseDOM(l,r)}}parseAttrsFromDom(l,r,i){return super.parseAttrsFromDom(...arguments),Object.assign(l,{rowspan:parseInt(r.getAttribute("rowspan"),10)||1,colspan:parseInt(r.getAttribute("colspan"),10)||1,verticalAlign:Hd(r.style.verticalAlign),backgroundColor:ln(r.style.backgroundColor)}),["Left","Top","Right","Bottom"].forEach(s=>{let u=`border${s}`;l[u+"Width"]=fl(r.style[u+"Width"]),l[u+"Style"]=Qh(r.style[u+"Style"]),l[u+"Color"]=ln(r.style[u+"Color"])}),l}parseAttrsFromParser(l,r,i){let s=r.getMarkValue("background_color",!0);return!l.backgroundColor&&s&&(l.backgroundColor=s),l}renderAttrsJson(l,r,i){super.renderAttrsJson(l,r,i);let s=r.getAttrValue("codeBlock");return s&&(l.codeBlock=s),l}toDOM(l,r){let i=l.state;if(r.target==="clipboard"&&i.hidden)return null;let s={display:i.hidden?"none":"table-cell",verticalAlign:l.getAttrValue("verticalAlign"),backgroundColor:l.getAttrValue("backgroundColor")},u=i.border;return u?R(u,function(x,v){let P="border"+Xr(v);s[P+"Width"]=x.width+"px",s[P+"Style"]=x.style,s[P+"Color"]=x.color}):["Left","top","Right","Bottom"].forEach(function(x){let v="border"+x;s[v+"Width"]=l.getAttrValue(v+"Width")+"px",s[v+"Style"]=l.getAttrValue(v+"Style"),s[v+"Color"]=l.getAttrValue(v+"Color")}),["td",this.renderAttrs({rowspan:i.view_rowspan||1,colspan:i.view_colspan||1,inline_style:s},l,r),["div",{class:this.className+"-content"},["div",{class:this.className+"-content-container"},0]]]}},content:"basic_block block*"},text_line:{type:class extends di{get isLine(){return!0}get isPseudoType(){return!0}getLocationDOM(l){return l.firstChild}getContentDOM(l){return this.getLocationDOM(l).firstChild}getIndicatorWrapperDOM(l){return this.getLocationDOM(l)}toRenderDOM(l,r){let i=this.classPrefix+"line";return["div",{class:i},["div",{class:i+"-location"},["div",{class:i+"-content"},["span",0]]]]}},content:"inline<_>*"},table_parser:{type:class extends ri{static getSelfPropertyName(){return"TableParser"}},content:"basic_block* table basic_block*"},pseudo_list_item:{type:ig}},groups:{basic_block:["paragraph"],block:["paragraph","table"],inline:["text","hard_break","tab"]},marks:[["font_size",class extends Jr{static getSelfPropertyName(){return"FontSize"}get cssName(){return"font-size"}get cssDefaultValue(){return"11pt"}get attrs(){return{value:Te.create({default:11,empty_value:11,normalizer:l=>{let r=Te.getPresetNormalizer("positiveNumber")(l);if(r!=null)return Math.round(r)}})}}getCssValue(l){return l.getValue()+"pt"}getFontSizeByLevel(l){return jl[l]}get matchDOMTag(){return{"font[size]":(l,r)=>{let i,s=l.getAttribute("size");if(!s||isNaN(i=s[0]==="+"||s[0]==="-"?3+parseInt(s,10):parseInt(s,10)))return!1;let u=Qm[i=qe(i,1,7)];return!!u&&{value:u}}}}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>{let s;return!!(s=l in cg?cg[l]:l==="larger"||l==="smaller"?l==="larger"?14:9:Lt(l,"pt",11))&&{value:s}}}}}],["font_family",class extends Jr{static getSelfPropertyName(){return"FontFamily"}get cssName(){return"font-family"}get cssDefaultValue(){return"Arial"}get supportMerge(){return!0}get attrs(){let l=Te.createOptional({empty_value:this.cssDefaultValue,normalizer:dg});return{value:l,eastAsia:l,complexScript:l,hint:Te.createOptional({empty_value:"default",normalizer:["default","eastAsia","complexScript"]})}}getCssValue(l){return this.ensureFontFamilyCssValue(l.getValue())}merge(l,r){let i={};for(let s of this.getAttrKeys()){let u=r.getAttrValue(s,!0)??l.getAttrValue(s,!0);u!=null&&(i[s]=u)}return Nn(l.attrs,i)?l:this.create(i)}split(l,r){let i={},s=!1;for(let u of this.getAttrKeys()){let x=l.getAttrValue(u,!0);x!=null&&r.getAttrValue(u,!0)!==x&&(i[u]=x,s=!0)}return s?Nn(l.attrs,i)?l:this.create(i):null}intersect(l,r){let i={},s=!1;for(let u of this.getAttrKeys()){let x=l.getAttrValue(u,!0);x!=null&&r.getAttrValue(u,!0)===x&&(i[u]=x,s=!0)}return s?Nn(l.attrs,i)?l:this.create(i):null}ensureFontFamilyCssValue(l){let r=Km.get(l.toLowerCase());return r?`"${l}","${r}"`:`"${l}"`}readFontFamily(l,r){var i;let s="",u=r.parser?.getCustomParser("font");if(u){let x=Kh(l);s=x.find(v=>u.isSupported(v))||x[0]||""}else s=eu(l);return i=s,X0.includes(i.toLowerCase())?"":s}get matchDOMTag(){return{"font[face]":(l,r)=>{let i=l.getAttribute("face");if(!i)return!1;let s=this.readFontFamily(i,r);return!!s&&pg(s)}}}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>{if(!(l=this.readFontFamily(l,i)))return!1;let s=r.getAttribute("data-syno-attrs"),u=s&&au(s);return u&&(l===u.value||l===u.eastAsia||l===u.complexScript)?u:pg(l)}}}toDOM(l,r){return["span",{"data-syno-attrs":r.target==="clipboard"?nu(function(i){let s={};for(let u of i.type.getAttrKeys()){let x=i.getAttrValue(u);x!=null&&(s[u]=x)}return s}(l)):void 0,inline_style:{[this.cssName]:this.getCssValue(l)}}]}}],["em",class extends pa{static getSelfPropertyName(){return"Em"}get cssName(){return"font-style"}get cssValue(){return"italic"}get cssDefaultValue(){return"normal"}get matchDOMTag(){return{i:null,em:null}}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>l==="italic"||l.startsWith("oblique")?null:l==="normal"&&{value:!1}}}toDOM(l,r){return["span",{inline_style:{"font-style":"italic"}}]}}],["strong",class extends pa{static getSelfPropertyName(){return"Strong"}get cssName(){return"font-weight"}get cssValue(){return"bold"}get cssDefaultValue(){return"normal"}get matchDOMTag(){return{b:null,strong:null}}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>{let s=parseInt(l,10);return isNaN(s)?l==="bold"||l==="bolder"?null:(l==="normal"||l==="lighter")&&{value:!1}:s>=500?null:{value:!1}}}}toDOM(l,r){return["span",{inline_style:{"font-weight":700}}]}}],["link",class extends Rr{static getSelfPropertyName(){return"Link"}get clearable(){return!1}get supportTextblock(){return!1}get supportListBlock(){return!1}get inclusiveBefore(){return!1}get valueKey(){return"href"}get linkColor(){return"#0F7BE9"}get linkUnderline(){return!0}get attrs(){return{href:Te.create({normalizer:l=>typeof l!="string"?"":El(l)})}}sanitizeLink(l){return El(l)}getLinkStyleMarks(){return this.linkStyleMarksCache??=[this.schema.mark("color",{value:this.linkColor}),this.schema.mark("underline",{value:this.linkUnderline})]}removeLinkMarks(l,r){r===void 0&&(r=!1);let i=this.removeFromSet(l);if(l.length!==i.length)if(r)for(let s of this.getLinkStyleMarks())i=s.removeFromSet(i);else i=this.schema.markType("color").removeFromSet(i),i=this.schema.markType("underline").removeFromSet(i);return i}get matchDOMTag(){return{"a[href]":(l,r)=>{let i=El(l.getAttribute("synohref")||l.getAttribute("href")||"");if(!i)return!1;let s=r.parser;return s&&s.addMarks(this.getLinkStyleMarks()),{href:i}}}}toDOM(l,r){let i={class:this.className},s=l.getValue();if(s){let u=r.target;u==="viewer"||u==="clipboard"?(i.href=s,s.startsWith("#")||(i.target="_blank",i.rel="noreferrer noopener")):i.synohref=s}return["a",i]}constructor(...l){super(...l),this.linkStyleMarksCache=null}}],["color",class extends Jr{static getSelfPropertyName(){return"Color"}get cssName(){return"color"}get cssDefaultValue(){return"#000000"}get attrs(){return{value:new Te({default:"",empty_value:this.cssDefaultValue})}}getCssValue(l){return l.getValue()}get matchDOMTag(){return{"font[color]":(l,r)=>{let i=l.getAttribute("color");return!!i&&gg(i)}}}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>gg(l)}}}],["background_color",class extends Jr{static getSelfPropertyName(){return"BackgroundColor"}get cssName(){return"background-color"}get cssDefaultValue(){return"transparent"}get attrs(){return{value:new Te({default:"",empty_value:this.cssDefaultValue})}}getCssValue(l){return l.getValue()}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>function(s){let u=ln(s);return!!u&&{value:u}}(l)}}}],["superscript",class extends fg{static getSelfPropertyName(){return"Superscript"}get scriptType(){return"super"}get matchDOMTag(){return{sup:null}}}],["subscript",class extends fg{static getSelfPropertyName(){return"Subscript"}get scriptType(){return"sub"}}],["underline",class extends yg{static getSelfPropertyName(){return"Underline"}get supportListBlock(){return!1}get decorationType(){return"underline"}get matchDOMTag(){return{u:null}}toDOM(l,r){return["u"]}}],["strike",class extends yg{static getSelfPropertyName(){return"Strike"}get decorationType(){return"line-through"}get matchDOMTag(){return{s:null,strike:null}}toDOM(l,r){return["s"]}}]],attr_marks:[["direction",us],["text_align",class extends Jr{static getSelfPropertyName(){return"TextAlign"}get cssName(){return"text-align"}get cssDefaultValue(){return"left"}get attrs(){return{value:new Te({default:"",empty_value:"left"})}}getCssValue(l){return l.getValue()}findSelfDirection(l,r){return l.style[us.prototype.cssName]}findParentDirection(l,r){let i=us.prototype.isInSet(r.state.marks)||us.prototype.isInSet(r.state.attr_marks);if(i)return i.getValue()}findDirection(l,r){return this.findSelfDirection(l,r)||this.findParentDirection(l,r)}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>{if(!(l==="left"||l==="right"))if(l.includes("center"))l="center";else if(l.includes("justify"))l="justify";else if(l==="start"||l==="end")l=l==="start"==(this.findDirection(r,i)==="rtl")?"right":"left";else{if(!l.includes("match-parent"))return!1;l=this.findParentDirection(r,i)==="rtl"?"right":"left"}return{value:l}}}}}],["line_height",class extends Jr{static getSelfPropertyName(){return"LineHeight"}get cssName(){return"line-height"}get cssDefaultValue(){return"1.5"}get attrs(){return{value:new Te({default:"",empty_value:"1.5"})}}getCssValue(l){return l.getValue()}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>!!(l=Lt(l,null))&&{value:l/1.2}}}}],["text_indent",class extends Jr{static getSelfPropertyName(){return"TextIndent"}get cssName(){return"text-indent"}get cssDefaultValue(){return"0"}get attrs(){return{value:Te.create({optional:!0,empty_value:0})}}getCssValue(l){return l.getValue()}get matchDOMStyle(){return{[this.cssName]:(l,r,i)=>!!(l=Lt(l,"px"))&&{value:l}}}}]],parsers:{[ag.parserName]:l=>new ag(l.nodeType("paragraph"))}},i2={angle:Te.createOptional({empty_value:0,normalizer:"integer"}),fileId:Te.createOptional({empty_value:""}),imageWidth:Te.createOptional({empty_value:0}),imageHeight:Te.createOptional({empty_value:0}),faded:Te.createOptional({empty_value:!1}),scale:Te.createOptional({empty_value:0}),content:Te.createOptional({empty_value:""}),opacity:Te.createOptional({empty_value:1,normalizer:"betweenZeroOneNumber"}),fontFamily:Te.createOptional({empty_value:"Arial",normalizer:dg}),fontSize:Te.createOptional({empty_value:0}),color:Te.createOptional({empty_value:"#000000"})},n2={type:Te.createOptional({empty_value:"none"}),config:Te.createOptional({deep:i2})},xg=Te.createOptional({deep:n2}),a2=Te.createOptional({deep:{watermark:xg}});class s2 extends to{createGlobalState(){return new Mi}}let mg=/^h[1-6]$/i,En=Array.from({length:7},(l,r)=>{let i=r-1;return{id:i>=0?`_heading${i}`:null,level:i,tag:i>=0?`h${i}`:"p"}}),o2=[24,20,16,12,11,11],l2=[20,13,10,9,0,0].map(l=>Qt(l,"pt","px")),h2=[6,4,3,3,0,0].map(l=>Qt(l,"pt","px")),vg={headingId:Te.create({optional:!0,copyable:0,copyTransformer:()=>ge()}),headingLevel:Te.create({optional:!0,empty_value:0,normalizer:l=>{let r=Te.getPresetNormalizer("integer")(l);return r==null?null:qe(r,0,5)}})},u2=Object.keys(vg);class c2{constructor(){this.headingIdSet=null,this.doc=null}init(r,i){i&&(this.doc=i.doc)}add(r){if(!mg.test(r.tagName))return;let i=r.getAttribute("synohead")||"",s=this.ensureValidId(i);i!==s&&r.setAttribute("synohead",s)}buildIdSet(){let r=new Set,i=this.doc;return i&&i.descendants(s=>{if(!s.type.isHeadingBlock)return;let u=s.getAttrValue("headingId");u&&r.add(u)}),r}getIdSet(){return this.headingIdSet||(this.headingIdSet=this.buildIdSet())}ensureValidId(r){let i=this.getIdSet();return(!r||i.has(r))&&(r=ge()),i.add(r),r}}class Vl extends Hi{static getSelfPropertyName(){return"DocumentBaseParagraph"}get cssAttrs(){return{...super.cssAttrs,backgroundColor:Te.createOptional({empty_value:"transparent"})}}getCustomizeColors(r){return r.getAttrValue("backgroundColor",!0)}parseAttrsFromParser(r,i,s){super.parseAttrsFromParser(r,i,s);let u=i.getMarkValue("background_color",!0);return u&&(r.backgroundColor=u),r}renderAttrsDom(r,i,s){super.renderAttrsDom(r,i,s);let u=r.inline_style||(r.inline_style=Object.create(null)),x=this.getCssAttrs(i);return u["background-color"]=x.backgroundColor,r}}(function(l){let r=l.prototype;if(!r.isCssBlock||!r.isMarksBlock)throw Error("Unable to mixin HeadingBlock to non-CssBlock or non-MarksBlock.");De(r,"isHeadingBlock",!0),Ce(r,"getFreezeList",function(i){let s=i.call(this);return s.push("headingMaxLevel","headingFontSizeMap","headingPaddingTopMap","headingPaddingBottomMap","defaultHeadingCssAttrsMap","defaultHeadingTextMarksMap","defaultHeadingTextMarksJsonMap","headingAttrs","headingAttrsList","defaultHeadingAttrs"),s},!0),De(r,"headingMaxLevel",6),De(r,"headingConfigs",En),De(r,"headingFontSizeMap",o2),De(r,"headingPaddingTopMap",l2),De(r,"headingPaddingBottomMap",h2),ke(r,"defaultHeadingCssAttrsMap",function(){let i=Array(6);for(let s=0;s<6;++s)i[s]=Object.assign(Object.create(null),this.defaultCssAttrs,{paddingTop:this.headingPaddingTopMap[s],paddingBottom:this.headingPaddingBottomMap[s]});return i}),ke(r,"defaultHeadingTextMarksMap",function(){let i=this.schema.markType("font_size");return this.headingFontSizeMap.map(s=>[i.create({value:s})])}),ke(r,"defaultHeadingTextMarksJsonMap",function(){return this.defaultHeadingTextMarksMap.map(i=>i.map(s=>s.toJSON()))}),De(r,"headingAttrs",vg),De(r,"headingAttrsList",u2),ke(r,"defaultHeadingAttrs",function(){return Te.emptyAttrs(this.headingAttrs)}),ke(r,"attrs",function(i){return Te.mergeTypeAttrs(i.call(this),this.headingAttrs)},!0),Ce(r,"getInheritedCssAttrs",function(i){return this._getInheritedCssAttrs(i)||(i.getAttrValue("headingId")?this.defaultHeadingCssAttrsMap[i.getAttrValue("headingLevel")]:null)||this.defaultCssAttrs}),Ce(r,"getInheritedTextMarks",function(i){return this._getInheritedTextMarks(i)||(i.getAttrValue("headingId")?this.defaultHeadingTextMarksMap[i.getAttrValue("headingLevel")]:null)||Qe.none}),Ce(r,"getInheritedTextMarksJSON",function(i){return this._getInheritedTextMarksJSON(i)||(i.getAttrValue("headingId")?this.defaultHeadingTextMarksJsonMap[i.getAttrValue("headingLevel")]:null)||Qe.none}),Ce(r,"mergeListMarks",function(i){let s=i.state;if(s.list_config){let u=i.getAttrValue("listMarks");s.list_marks_json=Qe.mergeSetJSON(this.getInheritedTextMarksJSON(i),this.getInheritedListMarksJSON(i),u),s.list_marks=Qe.mergeSet(this.getInheritedTextMarks(i),this.getInheritedListMarks(i),this.schema.marksFromJSON(u))}else s.list_marks_json=Qe.none,s.list_marks=Qe.none;return tt.STATE_REDRAW}),Ce(r,"parseAttrsFromDom",function(i,s,u,x){i.call(this,s,u,x);let v=u.tagName;return v&&mg.test(v)&&Object.assign(s,{headingId:u.getAttribute("synohead")||ge(),headingLevel:parseInt(v[1],10)-1}),s},!0),Ce(r,"renderTag",function(i,s,u){return s.getAttrValue("headingId")?"h"+(s.getAttrValue("headingLevel")+1):i.call(this,s,u)},!0),Ce(r,"renderAttrsDom",function(i,s,u,x){return i.call(this,s,u,x),s.synohead=u.getAttrValue("headingId"),s},!0),Ce(r,"hasHeading",function(i){return!!i.getAttrValue("headingId")})})(Vl);class d2 extends is(ri){get isStyleEditor(){return!0}get printable(){return!1}get Node(){return p2}registerSelfLocalAttrsUpdateMap(r){r.register(r.INHERITED_START,this.name,"force_scan_edit_area",null,(i,s)=>{if(i.getStateRank()>=tt.STATE_PASSING){let u=s.getRootNode();return tt.markInheritNodesPath(u.childs(),u.queryChildOffset("style_editor",!0)+1)}}),r.register(r.SELF_START,this.name,"set_text_rect_info",null,i=>{i.state.text_rect_info={width:1e4,left:0}})}get matchDOMTag(){return{"div[data-syno-style-editor]":null}}toDOM(r,i){return["div",this.renderAttrs({"data-syno-style-editor":!0,inline_style:{display:"none"}},r,i),0]}}class p2 extends pr{getStyleParagraphIdx(r){return r<0?0:r<bg.prototype.headingMaxLevel?r+1:NaN}getStyleParagraphNode(r){let i=this.getStyleParagraphIdx(r);return isNaN(i)?null:this.child(i)}getStyleParagraphOffset(r){let i=this.getStyleParagraphIdx(r);return isNaN(i)?NaN:this.offsetAt(i)}getStyleParagraphData(r){let i=this.getStyleParagraphIdx(r);return isNaN(i)?null:{node:this.child(i),offset:this.offsetAt(i)}}}class bg extends jm(Vl){get isStyleParagraph(){return!0}registerSelfLocalAttrsUpdateMap(r){r.register(r.SELF_END,this.name,"set_paragraph_style",null,(i,s)=>{s.setCustomStyle(i.getAttrValue("headingId")?i.getAttrValue("headingLevel"):-1,{marks_json:i.textMarksJSON,marks:i.textMarks,css:this.getCssAttrs(i),tab:this.getTabAttrValues(i)})})}get matchDOMTag(){return{"div[data-syno-style-paragraph]":(r,i)=>this.parseDOM(r,i)}}parseAttrsFromDom(r,i,s){super.parseAttrsFromDom(...arguments);let u=parseInt(i.getAttribute("data-syno-style-paragraph"),10);return u&&u>=1&&u<=6&&Object.assign(r,{headingId:En[u].id,headingLevel:u-1}),r}renderAttrsDom(r,i,s){return super.renderAttrsDom(...arguments),s.target==="clipboard"&&Object.assign(r.inline_style||(r.inline_style=Object.create(null)),Qe.setToStyle(i.textMarks)),r}}function wg(l){let r=l.getStateMap();r.register(r.SELF_START,l.name,"set_page_info",null,(function(i,s){let u=s.getPageSize(),x=s.getPagePadding(),v=s.getPageContentSize(),P=s.getPageDecorateHeight(),j=i.state;return j.page_size===u&&j.page_padding===x&&j.page_content_size===v&&j.page_decorate_height===P?tt.STATE_NONE:(j.page_size=u,j.page_padding=x,j.page_content_size=v,j.page_decorate_height=P,tt.STATE_REDRAW)}).bind(this)),r.register(r.SELF_START,l.name,"set_text_rect_info",null,(function(i){i.state.text_rect_info={width:i.state.page_content_size.width,left:0}}).bind(this))}class Mg extends is(ri){get isEditArea(){return!0}get pseudoType(){return this.schema.nodes.page}getIndicatorWrapperDOM(r){return r.lastChild}createPseudoNode(r){let i=r.getState("page_size")??{width:0,height:0},s=r.getState("page_padding")??{left:0,top:0,right:0,bottom:0},u=r.getState("page_decorate_height")??0;return r.type.pseudoType.create({width:i.width,height:i.height,marginLeft:s.left,marginTop:s.top,marginRight:s.right,marginBottom:s.bottom,decoratorMaxHeight:u})}registerSelfLocalAttrsUpdateMap(){this.registerListContainer(),wg(this)}get matchDOMTag(){return{"div[synoedit]":(r,i)=>this.parseDOM(r,i)}}getPageFillingDOM(r){return r.childNodes[1]}toRenderDOM(r,i){return["div",this.renderAttrs({class:"syno-o-doc-pm-edit-area",synoedit:!0},r,i),["div",{class:"syno-o-doc-pm-edit-area-page-container"},0],["div",{class:"syno-o-doc-pm-edit-area-page-filling"}],ec.createIndicatorWrapper()]}toCopyDOM(r,i){return["div",0]}}Nl(Mg);let Ai=["header","footer","page_num"],oi=["cover","even","normal"];class _g extends is(ri){get isDecorator(){return!0}get decoratorType(){return""}get attrs(){return{type:new Te({default:"normal"})}}registerSelfLocalAttrsUpdateMap(){wg(this)}}class Bl extends Tm(_g){get isHeaderFooter(){return!0}get needHeightCalculating(){return!0}getIndicatorWrapperDOM(r){return r.firstChild.childNodes[1]}getScrollerInfo(r){return{dom:r}}getTopPaddingHeight(r){return 11}getBottomPaddingHeight(r){return 11}registerSelfLocalAttrsUpdateMap(){this.registerListContainer()}get matchDOMTag(){return{[this.decoratorType]:(r,i)=>this.parseDOM(r,i)}}getEditorDOM(r){return r.firstChild}getEditableAreaDOM(r){return this.getEditorDOM(r).firstChild}parseAttrsFromDom(r,i,s){return super.parseAttrsFromDom(...arguments),r.type=i.getAttribute("type"),r}toRenderDOM(r,i){let s=this.decoratorType,u=r.state,x=u.page_padding,v=u.page_content_size,P=this.getTopPaddingHeight(r),j=this.getBottomPaddingHeight(r),F=P+j;return[s,{class:"syno-o-doc-pm-"+s,type:r.attrs.type,inline_style:{maxHeight:u.page_decorate_height-F+"px",minHeight:x[s==="header"?"top":"bottom"]-F+"px"}},["div",{class:"syno-o-doc-pm-"+s+"-editor",inline_style:{width:v.width+"px"}},["div",{class:"syno-o-doc-pm-"+s+"-padding",inline_style:{padding:`${P}px ${x.right}px ${j}px ${x.left}px`}},["div",{inline_style:{width:v.width+"px"}},0]],ec.createIndicatorWrapper(4,4)]]}}function zl(l,r,i){let s;if(l.is("RootType"))s="/page_decorate";else if(l.is("PageDecorate"))s="";else throw RangeError(`Invalid parent node: ${l.neme}`);if(r==="page_num")return l.query(s+"/page_num",!0);{let u=l.queryAll(s+"/HeaderFooter").find(x=>{let{node:v}=x;return v.type.decoratorType===r&&v.getAttrValue("type")===i});if(!u)throw RangeError(`There is no matched node. name: ${r}, type: ${i}`);return u}}Nl(Bl);let Fl={line:"line",connect_line:"bentConnector3",bentConnector2:"bentConnector2",bentConnector4:"bentConnector4",bentConnector5:"bentConnector5",rect:"rect",rect_round:"roundRect",rect_single_snip:"snip1Rect",rect_snip_same_side:"snip2SameRect",rect_snip_diagonal:"snip2DiagRect",rect_snip_round:"snipRoundRect",rect_single_round:"round1Rect",rect_round_same_side:"round2SameRect",rect_round_diagonal:"round2DiagRect",ellipse:"ellipse",triangle:"triangle",right_triangle:"rtTriangle",parallelogram:"parallelogram",trapezoid:"trapezoid",diamond:"diamond",pentagon:"pentagon",hexagon:"hexagon",heptagon:"heptagon",octagon:"octagon",decagon:"decagon",dodecagon:"dodecagon",pie:"pie",chord:"chord",rect_frame:"frame",half_frame:"halfFrame",l_shape:"corner",diagonal_stripe:"diagStripe",cross:"plus",plaque:"plaque",can:"can",cube:"cube",bevel:"bevel",donut:"donut",block_arc:"blockArc",folded_corner:"foldedCorner",lightning_bolt:"lightningBolt",moon:"moon","4_point_star":"star4",arrow:"rightArrow",arrow_left:"leftArrow",arrow_up:"upArrow",arrow_down:"downArrow",arrow_left_right:"leftRightArrow",arrow_up_down:"upDownArrow",arrow_striped:"stripedRightArrow",arrow_notched:"notchedRightArrow",arrow_pentagon:"homePlate",arrow_chevron:"chevron",bentArrow:"bentArrow",curvedRightArrow:"curvedRightArrow",curvedLeftArrow:"curvedLeftArrow",curvedUpArrow:"curvedUpArrow",curvedDownArrow:"curvedDownArrow",bentUpArrow:"bentUpArrow",leftUpArrow:"leftUpArrow",leftRightUpArrow:"leftRightUpArrow",quadArrow:"quadArrow",uturnArrow:"uturnArrow",customGeometry:"customGeometry",accentBorderCallout1:"accentBorderCallout1",accentBorderCallout2:"accentBorderCallout2",accentBorderCallout3:"accentBorderCallout3",accentCallout1:"accentCallout1",accentCallout2:"accentCallout2",accentCallout3:"accentCallout3",arc:"arc",borderCallout1:"borderCallout1",borderCallout2:"borderCallout2",borderCallout3:"borderCallout3",bracePair:"bracePair",bracketPair:"bracketPair",callout1:"callout1",callout2:"callout2",callout3:"callout3",circularArrow:"circularArrow",cloud:"cloud",cloudCallout:"cloudCallout",curvedConnector2:"curvedConnector2",curvedConnector3:"curvedConnector3",curvedConnector4:"curvedConnector4",curvedConnector5:"curvedConnector5",doubleWave:"doubleWave",downArrowCallout:"downArrowCallout",ellipseRibbon:"ellipseRibbon",ellipseRibbon2:"ellipseRibbon2",flowChartAlternateProcess:"flowChartAlternateProcess",flowChartCollate:"flowChartCollate",flowChartConnector:"flowChartConnector",flowChartDecision:"flowChartDecision",flowChartDelay:"flowChartDelay",flowChartDisplay:"flowChartDisplay",flowChartDocument:"flowChartDocument",flowChartExtract:"flowChartExtract",flowChartInputOutput:"flowChartInputOutput",flowChartInternalStorage:"flowChartInternalStorage",flowChartMagneticDisk:"flowChartMagneticDisk",flowChartMagneticDrum:"flowChartMagneticDrum",flowChartMagneticTape:"flowChartMagneticTape",flowChartManualInput:"flowChartManualInput",flowChartManualOperation:"flowChartManualOperation",flowChartMerge:"flowChartMerge",flowChartMultidocument:"flowChartMultidocument",flowChartOffpageConnector:"flowChartOffpageConnector",flowChartOnlineStorage:"flowChartOnlineStorage",flowChartOr:"flowChartOr",flowChartPredefinedProcess:"flowChartPredefinedProcess",flowChartPreparation:"flowChartPreparation",flowChartProcess:"flowChartProcess",flowChartPunchedCard:"flowChartPunchedCard",flowChartPunchedTape:"flowChartPunchedTape",flowChartSort:"flowChartSort",flowChartSummingJunction:"flowChartSummingJunction",flowChartTerminator:"flowChartTerminator",heart:"heart",horizontalScroll:"horizontalScroll",irregularSeal1:"irregularSeal1",irregularSeal2:"irregularSeal2",leftArrowCallout:"leftArrowCallout",leftBrace:"leftBrace",leftBracket:"leftBracket",leftRightArrowCallout:"leftRightArrowCallout",lineInv:"lineInv",mathDivide:"mathDivide",mathEqual:"mathEqual",mathMinus:"mathMinus",mathMultiply:"mathMultiply",mathNotEqual:"mathNotEqual",mathPlus:"mathPlus",noSmoking:"noSmoking",quadArrowCallout:"quadArrowCallout",ribbon:"ribbon",ribbon2:"ribbon2",rightArrowCallout:"rightArrowCallout",rightBrace:"rightBrace",rightBracket:"rightBracket",smileyFace:"smileyFace",star10:"star10",star12:"star12",star16:"star16",star24:"star24",star32:"star32",star5:"star5",star6:"star6",star7:"star7",star8:"star8",straightConnector1:"straightConnector1",sun:"sun",teardrop:"teardrop",upArrowCallout:"upArrowCallout",verticalScroll:"verticalScroll",wave:"wave",wedgeEllipseCallout:"wedgeEllipseCallout",wedgeRectCallout:"wedgeRectCallout",wedgeRoundRectCallout:"wedgeRoundRectCallout"},g2=["l","t","r","b","w","h"],Ag=["stroke","stroke-opacity","stroke-width","stroke-dasharray"],Sg=["fill","fill-opacity"];function Vr(l,r,i){let s=(i.l+i.r)/2,u=(i.t+i.b)/2,x=Math.round(108e5*Math.atan((r-u)/(l-s))/Math.PI);return l<s?x+=108e5:r<u&&(x+=216e5),x!==216e5?x:0}let cs=Math.PI/108e5,f2={bentArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,5e4*r/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(5e4,(i.w-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,1e5*l/Math.min(i.w,i.h)))}],bentConnector3:[function(l,r,i){i.adj1=1e5*l/i.w}],bentConnector4:[function(l,r,i){i.adj1=1e5*l/i.w},function(l,r,i){i.adj2=1e5*r/i.h}],bentConnector5:[function(l,r,i){i.adj1=1e5*l/i.w},function(l,r,i){i.adj2=1e5*r/i.h},function(l,r,i){i.adj3=1e5*l/i.w}],bentUpArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(5e4,(i.h-r)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,(i.w-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(5e4,1e5*r/Math.min(i.w,i.h)))}],bevel:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))}],blockArc:[function(l,r,i){i.adj1=Vr(l,r,i)},function(l,r,i){i.adj2=Vr(l,r,i),i.adj3=Math.max(0,Math.min(5e4,5e4-1e5*Math.sqrt(Math.pow(l-(i.l+i.r)/2,2)+Math.pow(r-(i.t+i.b)/2,2))/Math.min(i.w,i.h)))}],can:[function(l,r,i){i.adj=Math.max(0,Math.min(i.maxAdj,1e5*r/Math.min(i.w,i.h)))}],chevron:[function(l,r,i){i.adj=Math.max(0,Math.min(i.maxAdj,(i.r-l)*1e5/Math.min(i.w,i.h)))}],chord:[function(l,r,i){i.adj1=Vr(l,r,i)},function(l,r,i){i.adj2=Vr(l,r,i)}],corner:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj1=Math.max(0,Math.min(1e5*i.h/s,(i.b-r)*1e5/s))},function(l,r,i){let s=Math.min(i.w,i.h);i.adj2=Math.max(0,Math.min(1e5*i.w/s,1e5*l/s))}],cube:[function(l,r,i){i.adj=Math.max(0,Math.min(1e5,1e5*r/Math.min(i.w,i.h)))}],curvedDownArrow:[function(l,r,i){let s=Math.min(i.w,i.h),u=i.w/2,x=s*i.adj2/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.h*i.h-v*v),j=l-u+x/4-P/i.h*(u-x/4),F=3/4-P/(4*i.h);i.adj1=Math.max(0,Math.min(i.adj2,j/F*1e5/s))},function(l,r,i){let s=Math.min(i.w,i.h),u=i.w/2,x=s*i.adj1/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.h*i.h-v*v),j=l-u-x/4-P/i.h*(u-x/4),F=(-1-P/i.h)/4;i.adj2=Math.max(0,Math.min(i.maxAdj2,j/F*1e5/s))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,(i.h-r)*1e5/Math.min(i.w,i.h)))}],curvedLeftArrow:[function(l,r,i){let s=Math.min(i.w,i.h),u=i.h/2,x=s*i.adj2/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.w*i.w-v*v),j=r-u+x/4-P/i.w*(u-x/4),F=(-1-P/i.w)/4;i.adj1=Math.max(0,Math.min(i.adj2,j/F*1e5/s))},function(l,r,i){let s=Math.min(i.w,i.h),u=i.h/2,x=s*i.adj1/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.w*i.w-v*v),j=r-u-x/4-P/i.w*(u-x/4),F=-3/4-P/(4*i.w);i.adj2=Math.max(0,Math.min(i.maxAdj2,j/F*1e5/s))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*l/Math.min(i.w,i.h)))}],curvedRightArrow:[function(l,r,i){let s=Math.min(i.w,i.h),u=i.h/2,x=s*i.adj2/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.w*i.w-v*v),j=r-u+x/4-P/i.w*(u-x/4),F=(-1-P/i.w)/4;i.adj1=Math.max(0,Math.min(i.adj2,j/F*1e5/s))},function(l,r,i){let s=Math.min(i.w,i.h),u=i.h/2,x=s*i.adj1/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.w*i.w-v*v),j=r-u-x/4-P/i.w*(u-x/4),F=-3/4-P/(4*i.w);i.adj2=Math.max(0,Math.min(i.maxAdj2,j/F*1e5/s))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,(i.w-l)*1e5/Math.min(i.w,i.h)))}],curvedUpArrow:[function(l,r,i){let s=Math.min(i.w,i.h),u=i.w/2,x=s*i.adj2/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.h*i.h-v*v),j=l-u+x/4-P/i.h*(u-x/4),F=3/4-P/(4*i.h);i.adj1=Math.max(0,Math.min(i.adj2,j/F*1e5/s))},function(l,r,i){let s=Math.min(i.w,i.h),u=i.w/2,x=s*i.adj1/1e5,v=s*i.adj3/1e5,P=Math.sqrt(i.h*i.h-v*v),j=l-u-x/4-P/i.h*(u-x/4),F=(-1-P/i.h)/4;i.adj2=Math.max(0,Math.min(i.maxAdj2,j/F*1e5/s))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*r/Math.min(i.w,i.h)))}],diagStripe:[function(l,r,i){i.adj=Math.max(0,Math.min(1e5,1e5*r/i.h))}],donut:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))}],downArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.l+i.r)/2-l)*2e5/i.w))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.b-r)*1e5/Math.min(i.w,i.h)))}],upArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.l+i.r)/2-l)*2e5/i.w))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(r-i.t)*1e5/Math.min(i.w,i.h)))}],foldedCorner:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))}],frame:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj1=Math.max(0,Math.min(5e4,1e5*l/s))}],halfFrame:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.t+r)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,1e5*l/Math.min(i.w,i.h)))}],homePlate:[function(l,r,i){i.adj=Math.max(0,Math.min(i.maxAdj,(i.r-l)*1e5/Math.min(i.w,i.h)))}],leftArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.t+i.b)/2-r)*2e5/i.h))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(l-i.l)*1e5/Math.min(i.w,i.h)))}],leftRightArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.t+i.b)/2-r)*2e5/i.h))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,1e5*l/Math.min(i.w,i.h)))}],leftRightUpArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.w/2-l)*2e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,(i.w/2-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*r/Math.min(i.w,i.h)))}],leftUpArrow:[function(l,r,i){let s=Math.min(i.w,i.h),u=s*i.adj2/1e5;i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.h-u-r)*2e5/s))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,(i.w-l)*5e4/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*r/Math.min(i.w,i.h)))}],moon:[function(l,r,i){i.adj=Math.max(0,Math.min(87500,1e5*l/i.w))}],notchedRightArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.t+i.b)/2-r)*2e5/i.h))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.r-l)*1e5/Math.min(i.w,i.h)))}],parallelogram:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj=Math.max(0,Math.min(1e5*i.w/s,2e5*l/s))}],pie:[function(l,r,i){i.adj1=Vr(l,r,i)},function(l,r,i){i.adj2=Vr(l,r,i)}],plaque:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj=Math.max(0,Math.min(1e5,1e5*l/s))}],plus:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj=Math.max(0,Math.min(1e5,1e5*l/s))}],quadArrow:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.w/2-l)*2e5/s))},function(l,r,i){let s=Math.min(i.w,i.h);i.adj2=Math.max(0,Math.min(5e4,(i.w/2-l)*2e5/s))},function(l,r,i){let s=Math.min(i.w,i.h);i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*r/s))}],rightArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.t+i.b)/2-r)*2e5/i.h))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.r-l)*1e5/Math.min(i.w,i.h)))}],round1Rect:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))}],round2DiagRect:[function(l,r,i){i.adj1=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))}],round2SameRect:[function(l,r,i){i.adj1=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))}],roundRect:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))}],snip1Rect:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))}],snip2DiagRect:[function(l,r,i){i.adj1=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))}],snip2SameRect:[function(l,r,i){i.adj1=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))}],snipRoundRect:[function(l,r,i){i.adj1=Math.max(0,Math.min(5e4,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,(i.r-l)*1e5/Math.min(i.w,i.h)))}],star4:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,((i.t+i.b)/2-r)*5e4/(i.h/2)))}],stripedRightArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.t+i.b)/2-r)*2e5/i.h))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.r-l)*1e5/Math.min(i.w,i.h)))}],trapezoid:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj=Math.max(0,Math.min(5e4*i.w/s,1e5*l/s))}],triangle:[function(l,r,i){i.adj=Math.max(0,Math.min(1e5,1e5*l/i.w))}],upDownArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,((i.l+i.r)/2-l)*2e5/i.w))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,1e5*r/Math.min(i.w,i.h)))}],uturnArrow:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(25e3,(i.w-l)*5e4/Math.min(i.w,i.h)))},function(l,r,i){let s=i.h*i.adj5/1e5;i.adj3=Math.max(0,Math.min(i.maxAdj3,(s-r)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj5=Math.max(i.minAdj5,Math.min(1e5,1e5*r/Math.min(i.w,i.h)))}],accentBorderCallout1:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],accentBorderCallout2:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],accentBorderCallout3:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],accentCallout1:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],accentCallout2:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],accentCallout3:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],arc:[function(l,r,i){i.adj1=Vr(l,r,i)},function(l,r,i){i.adj2=Vr(l,r,i)}],borderCallout1:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],borderCallout2:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],borderCallout3:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],bracePair:[function(l,r,i){i.adj=Math.max(0,Math.min(25e3,1e5*r/Math.min(i.w,i.h)))}],bracketPair:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,1e5*r/Math.min(i.w,i.h)))}],callout1:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],callout2:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],callout3:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h)),i.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],circularArrow:[function(l,r,i){let s=Math.min(i.w,i.h),u=s*i.adj1/1e5,x=s*i.adj5/1e5,v=u/2,P=i.w/2+v-x-u+v,j=i.h/2+v-x-u+v,F=(l-i.w/2)/P,q=Math.atan((r-i.h/2)/j/F*j/P)/cs-i.adj3;q<0&&(q=q%216e5+216e5),i.adj2=Math.max(0,Math.min(i.maxAng,q))},function(l,r,i){i.adj4=Vr(l,r,i)},function(l,r,i){i.adj3=Vr(l,r,i);let s=Math.sqrt((i.xGp-i.xBp)**2+(i.yGp-i.yBp)**2)/2,u=(i.xGp+i.xBp)/2,x=(i.yGp+i.yBp)/2,v=Math.sqrt((l-u)**2+(r-x)**2),P=Math.sign((l-u)*(i.xGp-u)+(r-x)*(i.yGp-x));i.adj1=Math.max(0,Math.min(i.maxAdj1,P>0?v/s*25e3:0))},function(l,r,i){let s=i.w/2,u=i.h/2,x=Math.atan2(r-u,l-s),v=Math.sqrt((s*Math.cos(x))**2+(u*Math.sin(x))**2);i.adj5=Math.max(1e-10,Math.min(25e3,(v-Math.sqrt((l-s)**2+(r-u)**2))/v*4e4))}],cloudCallout:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,(l-i.w/2)*1e5/i.w)),i.adj2=Math.max(-2147483647,Math.min(2147483647,(r-i.h/2)*1e5/i.h))}],curvedConnector3:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],curvedConnector4:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h))}],curvedConnector5:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))},function(l,r,i){i.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*r/i.h))},function(l,r,i){i.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*l/i.w))}],doubleWave:[function(l,r,i){i.adj1=Math.max(0,Math.min(12500,1e5*r/i.h))},function(l,r,i){i.adj2=Math.max(-1e4,Math.min(1e4,(l-i.w/2)*1e5/i.w))}],downArrowCallout:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.w/2-l)*2e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.w/2-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,(i.h-r)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,1e5*r/Math.min(i.w,i.h)))}],ellipseRibbon:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,1e5*r/i.h))},function(l,r,i){i.adj2=Math.max(25e3,Math.min(75e3,(i.w/2-l)*2e5/i.w))},function(l,r,i){i.adj3=Math.max(i.minAdj3,Math.min(i.adj1,(i.h-r)*1e5/i.h))}],ellipseRibbon2:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,(i.h-r)*1e5/i.h))},function(l,r,i){i.adj2=Math.max(25e3,Math.min(1e5,(i.w/2-l)*2e5/i.w))},function(l,r,i){i.adj3=Math.max(i.minAdj3,Math.min(i.adj1,1e5*r/i.h))}],horizontalScroll:[function(l,r,i){i.adj=Math.max(0,Math.min(25e3,1e5*l/Math.min(i.w,i.h)))}],leftArrowCallout:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.h/2-r)*2e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.h/2-r)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,(i.w-l)*1e5/i.w))}],leftBrace:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,1e5*r/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(1e5,1e5*r/i.h))}],leftBracket:[function(l,r,i){i.adj=Math.max(0,Math.min(i.maxAdj,1e5*r/Math.min(i.w,i.h)))}],leftRightArrowCallout:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.h/2-r)*2e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.h/2-r)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*l/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,(i.w/2-l)*2e5/i.w))}],mathDivide:[function(l,r,i){i.adj1=Math.max(1e3,Math.min(36745,(i.h/2-r)*2e5/i.h))},function(l,r,i){let s=i.h/2-i.h*i.adj1/2e5,u=i.h*i.adj3/1e5;i.adj2=Math.max(0,Math.min(i.maxAdj2,(s-u-r)*1e5/i.h))},function(l,r,i){i.adj3=Math.max(1e3,Math.min(i.maxAdj3,(i.w/2-l)*1e5/i.h))}],mathEqual:[function(l,r,i){let s=i.h/2-i.h*i.adj2/2e5;i.adj1=Math.max(0,Math.min(36745,(s-r)*1e5/i.h))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.mAdj2,(i.h/2-r)*2e5/i.h))}],mathMinus:[function(l,r,i){i.adj1=Math.max(0,Math.min(1e5,(i.h/2-r)*2e5/i.h))}],mathMultiply:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj1=Math.max(0,Math.min(51965,1e5*r/s))}],mathNotEqual:[function(l,r,i){let s=i.h/2-i.h*i.adj3/2e5;i.adj1=Math.max(0,Math.min(5e4,(s-r)*1e5/i.h))},function(l,r,i){let s=l-i.w/2;if(s>0){let u=Math.atan(2*s/i.h);i.adj2=Math.max(42e5,Math.min(66e5,u/cs+54e5))}else{let u=Math.PI/2-Math.atan(2*(l-2*(l-i.w/2)-i.w/2)/i.h);i.adj2=Math.max(42e5,Math.min(66e5,u/cs))}},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,(i.h/2-r)*2e5/i.h))}],mathPlus:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj1=Math.max(0,Math.min(73490,(i.h/2-r)*2e5/s))}],noSmoking:[function(l,r,i){let s=Math.min(i.w,i.h);i.adj=Math.max(0,Math.min(5e4,1e5*l/s))}],quadArrowCallout:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.w/2-l)*2e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(5e4,(i.w/2-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*r/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,(i.h/2-r)*2e5/i.h))}],ribbon:[function(l,r,i){i.adj1=Math.max(0,Math.min(33333,1e5*r/i.h))},function(l,r,i){i.adj2=Math.max(25e3,Math.min(75e3,(i.w/2-l)*2e5/i.w))}],ribbon2:[function(l,r,i){i.adj1=Math.max(0,Math.min(33333,(i.h-r)*1e5/i.h))},function(l,r,i){i.adj2=Math.max(25e3,Math.min(75e3,(i.w/2-l)*2e5/i.w))}],rightArrowCallout:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.h/2-r)*2e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.h/2-r)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,(i.w-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,1e5*l/Math.min(i.w,i.h)))}],rightBrace:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,1e5*r/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(1e5,1e5*r/i.h))}],rightBracket:[function(l,r,i){i.adj=Math.max(0,Math.min(i.maxAdj,1e5*r/Math.min(i.w,i.h)))}],smileyFace:[function(l,r,i){i.adj=Math.max(-4653,Math.min(4653,(r-16515*i.h/21600)*1e5/i.h))}],star10:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.h/2-r)*5e4/(i.h/2)))}],star12:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.h/2-r)*5e4/(i.h/2)))}],star16:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.h/2-r)*5e4/(i.h/2)))}],star24:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.h/2-r)*5e4/(i.h/2)))}],star32:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.h/2-r)*5e4/(i.h/2)))}],star5:[function(l,r,i){let s=i.h/2*1.10557;i.adj=Math.max(0,Math.min(5e4,(s-r)*5e4/s))}],star6:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.h/2-r)*5e4/(i.h/2)))}],star7:[function(l,r,i){let s=i.h/2*1.0521;i.adj=Math.max(0,Math.min(5e4,(s-r)*5e4/s))}],star8:[function(l,r,i){i.adj=Math.max(0,Math.min(5e4,(i.h/2-r)*5e4/(i.h/2)))}],sun:[function(l,r,i){i.adj=Math.max(12500,Math.min(46875,1e5*l/i.w))}],teardrop:[function(l,r,i){let s=i.w/2*Math.sqrt(2);i.adj=Math.max(0,Math.min(2e5,(l-i.w/2)*1e5/s/Math.cos(27e5*cs)))}],upArrowCallout:[function(l,r,i){i.adj1=Math.max(0,Math.min(i.maxAdj1,(i.w/2-l)*2e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj2=Math.max(0,Math.min(i.maxAdj2,(i.w/2-l)*1e5/Math.min(i.w,i.h)))},function(l,r,i){i.adj3=Math.max(0,Math.min(i.maxAdj3,1e5*r/Math.min(i.w,i.h)))},function(l,r,i){i.adj4=Math.max(0,Math.min(i.maxAdj4,(i.h-r)*1e5/i.h))}],verticalScroll:[function(l,r,i){i.adj=Math.max(0,Math.min(25e3,1e5*r/Math.min(i.w,i.h)))}],wave:[function(l,r,i){i.adj1=Math.max(0,Math.min(2e4,1e5*r/i.h))},function(l,r,i){i.adj2=Math.max(-1e4,Math.min(1e4,(l-i.w/2)*1e5/i.w))}],wedgeEllipseCallout:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,(l-i.w/2)*1e5/i.w)),i.adj2=Math.max(-2147483647,Math.min(2147483647,(r-i.h/2)*1e5/i.h))}],wedgeRectCallout:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,(l-i.w/2)*1e5/i.w)),i.adj2=Math.max(-2147483647,Math.min(2147483647,(r-i.h/2)*1e5/i.h))}],wedgeRoundRectCallout:[function(l,r,i){i.adj1=Math.max(-2147483647,Math.min(2147483647,(l-i.w/2)*1e5/i.w)),i.adj2=Math.max(-2147483647,Math.min(2147483647,(r-i.h/2)*1e5/i.h))}]};var Vn=Ct(79879);function y2(){}function Cg(l){return Object.hasOwn(Vn,l)?Vn[l]:void 0}function Wi(l){return 1e-10>Math.abs(l)?0:l}function ds(l,r){l=Wi(l);let i=Math.atan2(r=Wi(r),l);return i>=0?i:i+2*Math.PI}function Ig(l,r,i){let s=Math.cos(i),u=Math.sin(i);return Wi(r)===0&&Wi(u)===0||Wi(l)===0&&Wi(s)===0?i:ds(r*s,l*u)}function Pg(l,r,i,s,u,x){if(l===0&&r===0)return{x:s,y:u};let v=Ig(l,r,i),P=Ig(l,r,x);return{x:s-l*Math.cos(v)+l*Math.cos(P),y:u-r*Math.sin(v)+r*Math.sin(P)}}Object.keys(Vn).forEach(l=>{Vn[l].getAdjustHandles=function(r){let i=this._getAdjustHandles(r),s=f2[l];return i.forEach((u,x)=>{"handler"in u||(u.handler=s&&x<s.length?s[x]:y2)}),i}});let x2=new Map([["b",l=>l.b],["h",l=>l.h],["hc",l=>(l.l+l.r)/2],["hd2",l=>l.h/2],["hd3",l=>l.h/3],["hd4",l=>l.h/4],["hd5",l=>l.h/5],["hd6",l=>l.h/6],["hd8",l=>l.h/8],["l",l=>l.l],["ls",l=>Math.max(l.w,l.h)],["r",l=>l.r],["ss",l=>Math.min(l.w,l.h)],["ssd2",l=>Math.min(l.w,l.h)/2],["ssd4",l=>Math.min(l.w,l.h)/4],["ssd6",l=>Math.min(l.w,l.h)/6],["ssd8",l=>Math.min(l.w,l.h)/8],["ssd16",l=>Math.min(l.w,l.h)/16],["ssd32",l=>Math.min(l.w,l.h)/32],["t",l=>l.t],["vc",l=>(l.t+l.b)/2],["w",l=>l.w],["wd2",l=>l.w/2],["wd3",l=>l.w/3],["wd4",l=>l.w/4],["wd5",l=>l.w/5],["wd6",l=>l.w/6],["wd8",l=>l.w/8],["wd10",l=>l.w/10],["wd12",l=>l.w/12],["wd32",l=>l.w/32],["3cd4",l=>162e5],["3cd8",l=>81e5],["5cd8",l=>135e5],["7cd8",l=>189e5],["cd2",l=>108e5],["cd4",l=>54e5],["cd8",l=>27e5]]);function lr(l){return typeof l=="number"?i=>l:x2.get(l)||(i=>i[l]??0)}let Kt=l=>0;function Tg(l){let r=l.trim().split(/\s+/);if(r.length<2)return Kt;let i=[];for(let[s,u]of r.entries()){if(s===0)continue;let x=Number(u);i.push(lr(isFinite(x)?x:u))}switch(r[0]){case"*/":return i.length!==3?Kt:s=>i[0](s)*i[1](s)/i[2](s);case"+-":return i.length!==3?Kt:s=>i[0](s)+i[1](s)-i[2](s);case"+/":return i.length!==3?Kt:s=>(i[0](s)+i[1](s))/i[2](s);case"?:":return i.length!==3?Kt:s=>i[0](s)>0?i[1](s):i[2](s);case"abs":return i.length!==1?Kt:s=>Math.abs(i[0](s));case"at2":return i.length!==2?Kt:s=>108e5*ds(i[0](s),i[1](s))/Math.PI;case"cat2":return i.length!==3?Kt:s=>i[0](s)*Math.cos(ds(i[1](s),i[2](s)));case"cos":return i.length!==2?Kt:s=>i[0](s)*Math.cos(i[1](s)*Math.PI/108e5);case"max":return i.length!==2?Kt:s=>Math.max(i[0](s),i[1](s));case"min":return i.length!==2?Kt:s=>Math.min(i[0](s),i[1](s));case"mod":return i.length!==3?Kt:s=>Math.sqrt(Math.pow(i[0](s),2)+Math.pow(i[1](s),2)+Math.pow(i[2](s),2));case"pin":return i.length!==3?Kt:s=>Math.max(i[0](s),Math.min(i[1](s),i[2](s)));case"sat2":return i.length!==3?Kt:s=>i[0](s)*Math.sin(ds(i[1](s),i[2](s)));case"sin":return i.length!==2?Kt:s=>i[0](s)*Math.sin(i[1](s)*Math.PI/108e5);case"sqrt":return i.length!==1?Kt:s=>Math.sqrt(i[0](s));case"tan":return i.length!==2?Kt:s=>i[0](s)*Math.tan(i[1](s)*Math.PI/108e5);case"val":return i.length!==1?Kt:s=>i[0](s);default:return Kt}}function ps(l,r,i,s){let u=s.w,x=s.h,v=[],P=[];for(let j of r)v.push(lr(j.x)),P.push(lr(j.y));return(j,F)=>{let q={};for(let[J,re]of i.entries()){let te=v[J],ie=P[J],de=te(j);u&&(de=j.w*de/u),q["x"+re]=de;let ce=ie(j);x&&(ce=j.h*ce/x),q["y"+re]=ce}return[{action:l,...q}]}}let kg=new WeakMap;function Gl(l){return l.reduce((r,i)=>{switch(i.action){case"M":r+=` M ${i.x} ${i.y}`;break;case"L":r+=` L ${i.x} ${i.y}`;break;case"C":r+=` C ${i.x1} ${i.y1} ${i.x2} ${i.y2} ${i.x} ${i.y}`;break;case"Q":r+=` Q ${i.x1} ${i.y1} ${i.x} ${i.y}`;break;case"A":r+=` A ${i.rx} ${i.ry} ${i.a} ${i.b} ${i.c} ${i.x} ${i.y}`;break;case"Z":r+=" Z "}return r},"").trim()}function Hl(l){return l.action!=="Z"}function Lg(l){return qe(Math.round(l),0,255)}let m2=(l,r)=>Lg(l+(255-l)*(r-1)),v2=(l,r)=>Lg(l*r);function gs(l,r){if(l===Hs)return l;let i=r>1?m2:v2;return l.startsWith("#")&&(l=l.slice(1)),[l.slice(0,2),l.slice(2,4),l.slice(4,6)].reduce((s,u)=>s+i(parseInt(u,16),r).toString(16).padStart(2,"0"),"#")}function qi(l,r){return r in l&&typeof l[r]=="number"}class Ne{constructor(r){this.geometry=this.findGeometry(r),this.adjustValueNames=this.geometry.getAdjustValueNames(),this.defaultAdjustValues=this.geometry.getDefaultAdjustValues(),this.adjustHandles=this.geometry.getAdjustHandles(),this.connections=this.geometry.getConnections()}is(r){return this.getGeometryType()===r}isLine(){let r=this.getGeometryType();return r==="line"||r==="connect_line"||r.startsWith("bentConnector")||r.startsWith("curvedConnector")||r.startsWith("straightConnector")||r==="lineInv"}getPresetType(){return this.geometry.name}findGeometry(r){var i;let s=(i=this.getGeometryType())in Fl?Fl[i]:null;if(s==="customGeometry"){let x;if(!r)return Cg("rect");let v=kg.get(r);if(v)return v;try{x={name:"customGeometry",getConnections:function(P){if(!P)return()=>[];let j=[];for(let F of P)j.push(function(q){let J=lr(q.ang),re=lr(q.pos.x),te=lr(q.pos.y);return{ang:J,pos:ie=>({x:re(ie),y:te(ie)})}}(F));return()=>j}(r.connectionList),updateShapeGuides:function(P){if(!P)return F=>{};let j=[];for(let F of P)j.push(Tg(F.fmla));return F=>{for(let[q,J]of j.entries())F[P[q].name]=J(F)}}(r.shapeGuideList),getTextRect:function(P){if(!P)return re=>{};let j=lr(P.l),F=lr(P.t),q=lr(P.r),J=lr(P.b);return re=>({l:j(re),t:F(re),r:q(re),b:J(re)})}(r.rect),getPaths:function(P){if(!P)return F=>[];let j=[];for(let F of P)j.push(function(q){let J={h:q.h,w:q.w},re=function(te,ie){let de=[];for(let ce of te){let xe;switch(ce.action){case"arcTo":{let we=lr(ce.arcAttrs.wR),Me=lr(ce.arcAttrs.hR),Se=lr(ce.arcAttrs.stAng),Re=lr(ce.arcAttrs.swAng);xe=(Be,Ue)=>{let Ze=we(Be),lt=Me(Be),At=Se(Be),ht=Re(Be),wt=Ze,Tt=lt,Xt=At,Zt=ht%216e5,tr=ht!==0&&Zt===0;tr&&(Zt=108e5);let Rt=[];Rt.push(Pg(wt,Tt,Xt*Math.PI/108e5,Ue.x,Ue.y,(Xt+Zt)*Math.PI/108e5)),tr&&(Xt-=108e5,Rt.push(Pg(wt,Tt,Xt*Math.PI/108e5,Rt[0].x,Rt[0].y,(Xt+Zt)*Math.PI/108e5))),ie.w&&(wt=wt*Be.w/ie.w),ie.h&&(Tt=Tt*Be.h/ie.h);let Ht=[];for(let Dt of Rt)ie.w&&(Dt.x=Dt.x*Be.w/ie.w),ie.h&&(Dt.y=Dt.y*Be.h/ie.h),Ht.push({action:"A",rx:wt,ry:Tt,x:Dt.x,y:Dt.y,a:0,b:+(Math.abs(Zt)>108e5),c:Zt<0?0:1});return Ht};break}case"cubicBezTo":if(ce.points.length!==3)break;xe=ps("C",ce.points,["1","2",""],ie);break;case"lnTo":xe=ps("L",[ce.point],[""],ie);break;case"moveTo":xe=ps("M",[ce.point],[""],ie);break;case"quadBezTo":if(ce.points.length!==2)break;xe=ps("Q",ce.points,["1",""],ie);break;case"close":xe=(we,Me)=>[{action:"Z"}];break;default:continue}xe&&de.push(xe)}return ce=>{let xe=[],we={x:0,y:0};for(let Me of de)for(let Se of Me(ce,we))Se.action!=="Z"&&(we.x=ie.w?Se.x*ie.w/ce.w:Se.x,we.y=ie.h?Se.y*ie.h/ce.h:Se.y),xe.push(Se);return xe}}(q.paths,J);return te=>({stroke:q.stroke??!0,fill:q.fill??"norm",path:re(te)})}(F));return F=>{let q=[];for(let J of j)q.push(J(F));return q}}(r.pathList),getAdjustValueNames:function(P){if(!P)return()=>[];let j=[];for(let F of P)j.push(F.name);return()=>j}(r.adjustValueList),getDefaultAdjustValues:function(P){if(!P)return()=>({});let j={},F={l:0,t:0,r:0,b:0,w:0,h:0};for(let q of P)j[q.name]=Tg(q.fmla)(F);return()=>j}(r.adjustValueList),getAdjustHandles:function(P){if(!P)return()=>[];let j=[];for(let F of P)j.push(function(q){let J=lr(q.point.x),re=lr(q.point.y);return{pos:te=>({x:J(te),y:re(te)}),handler:te=>({})}}(F));return()=>j}(void 0)}}catch{ir.default.error("Failed to create custom geometry"),x=Vn.rect}return kg.set(r,x),x}let u=Cg(s);if(!u)throw Error(`Non-supported geometry type \`${s}\`.`);return u}isAdjustable(){return this.adjustValueNames.length>0}getAdjustValueNames(){return this.adjustValueNames}getDefaultAdjustValues(){return this.defaultAdjustValues}getDefaultRectData(){return{w:120,h:120}}getDefaultAdjustData(){return null}createRectData(r){r||(r=this.getDefaultRectData());let i={l:0,t:0,r:0,b:0,w:0,h:0};return r&&(qi(r,"w")?(i.w=r.w,!qi(r,"l")&&qi(r,"r")?(i.r=r.r,i.l=i.r-i.w):(i.l=r.l||0,i.r=i.l+i.w)):(i.l=r.l||0,i.r=r.r||0,i.w=i.r-i.l),qi(r,"h")?(i.h=r.h,!qi(r,"t")&&qi(r,"b")?(i.b=r.b,i.t=i.b-i.h):(i.t=r.t||0,i.b=i.t+i.h)):(i.t=r.t||0,i.b=r.b||0,i.h=i.b-i.t)),i}createAdjustData(r){return this.extractAdjustData(r??this.getDefaultAdjustData()??d)}createGeometryData(r,i){let s={...this.createRectData(r),...this.createAdjustData(i)};return this.updateGeometryData(s),s}extractRectData(r){return $(r,g2)}extractAdjustData(r){let i=this.getDefaultAdjustValues(),s=Object.create(null);for(let u of this.getAdjustValueNames()){let x=r[u];s[u]=Number.isFinite(x)?x:i[u]}return s}getTextRect(r){let i=this.geometry.getTextRect(r);return i?(i.w=i.r-i.l,i.h=i.b-i.t,i):{l:r.l,t:r.t,w:r.w,h:r.h,r:r.r,b:r.b}}getDefaultTransform(){let r=this.createRectData();return{left:r.l,top:r.t,width:r.w,height:r.h,deg:0,skewY:0}}getAdjustHandles(){return this.adjustHandles}getAdjustCount(){return this.getAdjustHandles().length}updateGeometryData(r){this.geometry.updateShapeGuides(r)}adjustGeometryData(r,i,s,u){i.handler(s,u,r),this.updateGeometryData(r)}resizeGeometryData(r,i,s){Object.assign(r,this.createRectData({w:i,h:s})),this.updateGeometryData(r)}getConnectionHandles(){return this.connections}getConnectionCount(){return this.getConnectionHandles().length}getPaths(r){return this.geometry.getPaths(r).map(i=>Object.assign(i,{define:this.pathDataToStr(i.path)}))}getPathsFromSize(r,i,s){return this.getPaths(this.createGeometryData({w:r,h:i},s))}pathDataToStr(r){return Gl(r)}fillPathColor(r,i){r.color=this.getFillColor(r.fill,i)}fillAllPathsColor(r,i){for(let s of r)this.fillPathColor(s,i)}getFillColor(r,i){switch(r){case"none":return"none";case"darken":return gs(i,.6);case"darkenLess":return gs(i,.8);case"lightenLess":return gs(i,1.2);case"lighten":return gs(i,1.4);default:return i}}getDefaultStrokeConfig(){return{stroke:"#2e3133","stroke-opacity":1,"stroke-width":1}}getDefaultFillConfig(){return{fill:"#cce6ff","fill-opacity":1}}getDefaultPathConfig(){return{...this.getDefaultStrokeConfig(),...this.getDefaultFillConfig()}}createStrokeConfig(r){if(r===!1)return Object.create(null);let i=this.getDefaultStrokeConfig()||Object.create(null);return r&&W(i,r,Ag),i}createFillConfig(r){if(r===!1)return Object.create(null);let i=this.getDefaultFillConfig()||Object.create(null);return r&&W(i,r,Sg),i}createPathConfig(r,i){return{...this.createStrokeConfig(r),...this.createFillConfig(i)}}extractStrokeConfig(r){return $(r,Ag)}extractFillConfig(r){return $(r,Sg)}}class Bn{getArrowType(){throw Error()}is(r){return this.getArrowType()===r}getLength(r,i){throw Error()}getPresetPaths(r,i){throw Error()}getPaths(r,i){return this.getPresetPaths(r,i).map(s=>({stroke:!0,fill:this.getArrowType().startsWith("hollow")?"none":"norm",...s}))}}let b2=Math.sqrt(2.21);class Wl extends Bn{getArrowType(){return"triangle"}getTriangleSize(r){return Math.round(1.4*r)}getTriangleSpace(r){return r*b2}getLength(r,i){return this.getTriangleSpace(i)+this.getTriangleSize(r)+i/2}getPresetPaths(r,i){let s=r/2,u=this.getTriangleSize(r),x=this.getTriangleSpace(i);return[{path:[{action:"M",x,y:0},{action:"L",x:x+u,y:-s},{action:"L",x:x+u,y:s},{action:"Z"}]}]}}let w2=Math.sqrt(4.21)/3;class Dg extends Bn{getArrowType(){return"circle"}getCircleSize(r){return r}getCircleSpace(r){return .5*r}getLength(r,i){return this.getCircleSize(r)+2*this.getCircleSpace(i)}getPresetPaths(r,i){let s=this.getCircleSize(r)/2,u=this.getCircleSpace(i);return[{path:[{action:"M",x:u,y:0},{action:"A",rx:s,ry:s,a:0,b:1,c:0,x:u+r,y:0},{action:"A",rx:s,ry:s,a:0,b:1,c:0,x:u,y:0}]}]}}class Rg extends Bn{getArrowType(){return"square"}getSquareSize(r){return r}getSquareSpace(r){return .5*r}getLength(r,i){return this.getSquareSize(r)+2*this.getSquareSpace(i)}getPresetPaths(r,i){let s=this.getSquareSize(r)/2,u=this.getSquareSpace(i);return[{path:[{action:"M",x:u,y:-s},{action:"L",x:u+r,y:-s},{action:"L",x:u+r,y:s},{action:"L",x:u,y:s},{action:"Z"}]}]}}let M2=Math.SQRT1_2;class Og extends Bn{getArrowType(){return"diamond"}getDiamondSize(r){return r}getDiamondSpace(r){return r*M2}getLength(r,i){return this.getDiamondSize(r)+2*this.getDiamondSpace(i)}getPresetPaths(r,i){let s=this.getDiamondSize(r)/2,u=this.getDiamondSpace(i);return[{path:[{action:"M",x:u,y:0},{action:"L",x:u+s,y:-s},{action:"L",x:u+r,y:0},{action:"L",x:u+s,y:s},{action:"Z"}]}]}}let fs=l=>class extends l{getArrowType(){return"hollow_"+super.getArrowType()}};class _2 extends fs(Wl){}class A2 extends fs(Dg){}class S2 extends fs(Rg){}class C2 extends fs(Og){}let Ng=Y({none:class extends Bn{getArrowType(){return"none"}getLength(l,r){return 0}getPresetPaths(l,r){return[]}},notched_triangle:class extends Wl{getArrowType(){return"notched_triangle"}getNotchedTriangleSize(l){return Math.round(2.8*l/3)}getNotchedTriangleSpace(l){return l*w2}getLength(l,r){return this.getTriangleSpace(r)+this.getNotchedTriangleSize(l)+this.getNotchedTriangleSpace(r)}getPresetPaths(l,r){let i=super.getPresetPaths(l,r),s=this.getNotchedTriangleSize(l);return i.forEach(u=>{let x=u.path,v=x[0];x.splice(2,0,{action:"L",x:v.x+s,y:0})}),i}},triangle:Wl,circle:Dg,square:Rg,diamond:Og,hollow_triangle:_2,hollow_circle:A2,hollow_square:S2,hollow_diamond:C2},l=>new l);function zn(l){return Hl(l)?l:null}function jg(l,r,i){switch(r.action){case"C":let{x:s,y:u,x1:x,y1:v,x2:P,y2:j}=r;return{x:(1-i)**3*l.x+3*(1-i)**2*i*x+3*(1-i)*i**2*P+i**3*s,y:(1-i)**3*l.y+3*(1-i)**2*i*v+3*(1-i)*i**2*j+i**3*u};case"Q":let{x:F,y:q,x1:J,y1:re}=r;return{x:(1-i)**2*l.x+2*(1-i)*i*J+i**2*F,y:(1-i)**2*l.y+2*(1-i)*i*re+i**2*q};case"L":let{x:te,y:ie}=r;return{x:(1-i)*l.x+i*te,y:(1-i)*l.y+i*ie}}return null}function Eg(l,r,i){switch(l){case"C":case"Q":return le(r.start,r.end);case"L":return le(i.start,i.end)}return null}class Pr extends Ne{getGeometryType(){return"line"}getDefaultFillConfig(){return null}getTransformedArrowGeometryPaths(r,i,s,u){if(s=s||"none",(i=i||"none")==="none"&&s==="none"||!r.length)return[];let x=r[0],v=u===1?6:4*u,P=[i,s].map((j,F)=>{if(j==="none")return null;let q=F===0?function(J){if(J.length<2)return null;let re=zn(J[0]);if(!re)return null;let te=J[1],ie=jg(re,te,te.action==="L"?1:.1);if(!ie||!re)return null;let de=Math.atan2(ie.y-re.y,ie.x-re.x),ce=zn(J[J.length-1]);if(!ce)return null;let xe=Eg(te.action,{start:ce,end:re},{start:ie,end:re});return xe?{radian:de,endPoint:re,lineLengthSquare:xe}:null}(x.path):function(J){if(J.length<2)return null;let re=zn(J[J.length-2]);if(!re)return null;let te=J[J.length-1],ie=jg(re,te,.9*(te.action!=="L")),de=zn(J[J.length-1]);if(!ie||!de)return null;let ce=Math.atan2(ie.y-de.y,ie.x-de.x),xe=zn(J[0]);if(!xe)return null;let we=Eg(te.action,{start:xe,end:de},{start:ie,end:de});return we?{radian:ce,endPoint:de,lineLengthSquare:we}:null}(x.path);return q?this.getTransformedArrowPaths(j,v,u,q.radian,q.endPoint,q.lineLengthSquare):null}).reduce((j,F)=>(F&&F.forEach(q=>{j.push(Object.assign(q,{define:Gl(q.path)}))}),j),[]);return x.define=Gl(x.path),P}getTransformedArrowPaths(r,i,s,u,x,v){let P=r in Ng&&Ng[r]||null;if(!P)return[];let j=P.getPaths(i,s),F=P.getLength(i,s),q=v<F*F;return this.transformArrowPaths(j,F,x,u,q),q||this.transformLineEndPoint(x,F,u,s),j}transformArrowPaths(r,i,s,u,x){let v;v=Mt.createTranslate(s.x,s.y),v=Mt.rotate(v,u*Ve),x&&(v=Mt.translate(v,-(i-1.5),0)),r.forEach(P=>{let{path:j}=P;for(let F=j.length-1;F>=0;--F){let q=j[F];Hl(q)&&(j[F]=Mt.apply(q,v))}})}transformLineEndPoint(r,i,s,u){let x=i-u/2;r.x+=x*Math.cos(s),r.y+=x*Math.sin(s)}getLineArrowPaths(r,i,s,u){let x=this.getPaths(r),v=this.getTransformedArrowGeometryPaths(x,i,s,u);return{line:x,arrow:v}}}class Vg extends Ne{getGeometryType(){return"rect"}}class ys extends Vg{getDefaultTransform(){return null}getDefaultStrokeConfig(){return{stroke:"#000000","stroke-opacity":1,"stroke-width":1}}getDefaultFillConfig(){return{fill:"#ffffff","fill-opacity":1}}}class I2 extends Ne{getGeometryType(){return"customGeometry"}}function Bg(l){return l.reduce((r,i)=>{let s=new i;return r[s.getGeometryType()]=s,r},Object.create(null))}let P2=Bg([Pr,class extends Pr{getGeometryType(){return"connect_line"}},class extends Pr{getGeometryType(){return"curvedConnector2"}},class extends Pr{getGeometryType(){return"curvedConnector3"}},class extends Pr{getGeometryType(){return"curvedConnector4"}},class extends Pr{getGeometryType(){return"curvedConnector5"}},class extends Pr{getGeometryType(){return"bentConnector2"}},class extends Pr{getGeometryType(){return"bentConnector4"}},class extends Pr{getGeometryType(){return"bentConnector5"}},class extends Pr{getGeometryType(){return"straightConnector1"}},class extends Pr{getGeometryType(){return"lineInv"}}]),T2={text:new ys,title:new ys,sub_title:new ys,body:new ys},k2=Bg([Vg,class extends Ne{getGeometryType(){return"rect_round"}},class extends Ne{getGeometryType(){return"rect_single_snip"}},class extends Ne{getGeometryType(){return"rect_snip_same_side"}},class extends Ne{getGeometryType(){return"rect_snip_diagonal"}},class extends Ne{getGeometryType(){return"rect_snip_round"}},class extends Ne{getGeometryType(){return"rect_single_round"}},class extends Ne{getGeometryType(){return"rect_round_same_side"}},class extends Ne{getGeometryType(){return"rect_round_diagonal"}},class extends Ne{getGeometryType(){return"ellipse"}},class extends Ne{getGeometryType(){return"triangle"}},class extends Ne{getGeometryType(){return"right_triangle"}},class extends Ne{getGeometryType(){return"parallelogram"}},class extends Ne{getGeometryType(){return"trapezoid"}},class extends Ne{getGeometryType(){return"diamond"}},class extends Ne{getGeometryType(){return"pentagon"}},class extends Ne{getGeometryType(){return"hexagon"}},class extends Ne{getGeometryType(){return"heptagon"}},class extends Ne{getGeometryType(){return"octagon"}},class extends Ne{getGeometryType(){return"decagon"}},class extends Ne{getGeometryType(){return"dodecagon"}},class extends Ne{getGeometryType(){return"pie"}},class extends Ne{getGeometryType(){return"chord"}},class extends Ne{getGeometryType(){return"rect_frame"}},class extends Ne{getGeometryType(){return"half_frame"}},class extends Ne{getGeometryType(){return"l_shape"}},class extends Ne{getGeometryType(){return"diagonal_stripe"}},class extends Ne{getGeometryType(){return"cross"}},class extends Ne{getGeometryType(){return"plaque"}},class extends Ne{getGeometryType(){return"can"}},class extends Ne{getGeometryType(){return"cube"}},class extends Ne{getGeometryType(){return"bevel"}},class extends Ne{getGeometryType(){return"donut"}},class extends Ne{getGeometryType(){return"block_arc"}},class extends Ne{getGeometryType(){return"folded_corner"}},class extends Ne{getGeometryType(){return"lightning_bolt"}},class extends Ne{getGeometryType(){return"moon"}},class extends Ne{getGeometryType(){return"4_point_star"}},class extends Ne{getGeometryType(){return"arrow"}},class extends Ne{getGeometryType(){return"arrow_left"}},class extends Ne{getGeometryType(){return"arrow_up"}},class extends Ne{getGeometryType(){return"arrow_down"}},class extends Ne{getGeometryType(){return"arrow_left_right"}getDefaultRectData(){return{...super.getDefaultRectData(),w:120,h:80}}},class extends Ne{getGeometryType(){return"arrow_up_down"}getDefaultRectData(){return{...super.getDefaultRectData(),w:80,h:120}}},class extends Ne{getGeometryType(){return"arrow_striped"}},class extends Ne{getGeometryType(){return"arrow_notched"}},class extends Ne{getGeometryType(){return"arrow_pentagon"}},class extends Ne{getGeometryType(){return"arrow_chevron"}},class extends Ne{getGeometryType(){return"bentArrow"}},class extends Ne{getGeometryType(){return"curvedRightArrow"}},class extends Ne{getGeometryType(){return"curvedLeftArrow"}},class extends Ne{getGeometryType(){return"curvedUpArrow"}},class extends Ne{getGeometryType(){return"curvedDownArrow"}},class extends Ne{getGeometryType(){return"bentUpArrow"}},class extends Ne{getGeometryType(){return"leftUpArrow"}},class extends Ne{getGeometryType(){return"leftRightUpArrow"}},class extends Ne{getGeometryType(){return"quadArrow"}},class extends Ne{getGeometryType(){return"uturnArrow"}},class extends Ne{getGeometryType(){return"accentBorderCallout1"}},class extends Ne{getGeometryType(){return"accentBorderCallout2"}},class extends Ne{getGeometryType(){return"accentBorderCallout3"}},class extends Ne{getGeometryType(){return"accentCallout1"}},class extends Ne{getGeometryType(){return"accentCallout2"}},class extends Ne{getGeometryType(){return"accentCallout3"}},class extends Ne{getGeometryType(){return"arc"}},class extends Ne{getGeometryType(){return"borderCallout1"}},class extends Ne{getGeometryType(){return"borderCallout2"}},class extends Ne{getGeometryType(){return"borderCallout3"}},class extends Ne{getGeometryType(){return"bracePair"}},class extends Ne{getGeometryType(){return"bracketPair"}},class extends Ne{getGeometryType(){return"callout1"}},class extends Ne{getGeometryType(){return"callout2"}},class extends Ne{getGeometryType(){return"callout3"}},class extends Ne{getGeometryType(){return"circularArrow"}},class extends Ne{getGeometryType(){return"cloud"}},class extends Ne{getGeometryType(){return"cloudCallout"}},class extends Ne{getGeometryType(){return"doubleWave"}},class extends Ne{getGeometryType(){return"downArrowCallout"}},class extends Ne{getGeometryType(){return"ellipseRibbon"}},class extends Ne{getGeometryType(){return"ellipseRibbon2"}},class extends Ne{getGeometryType(){return"flowChartAlternateProcess"}},class extends Ne{getGeometryType(){return"flowChartCollate"}},class extends Ne{getGeometryType(){return"flowChartConnector"}},class extends Ne{getGeometryType(){return"flowChartDecision"}},class extends Ne{getGeometryType(){return"flowChartDelay"}},class extends Ne{getGeometryType(){return"flowChartDisplay"}},class extends Ne{getGeometryType(){return"flowChartDocument"}},class extends Ne{getGeometryType(){return"flowChartExtract"}},class extends Ne{getGeometryType(){return"flowChartInputOutput"}},class extends Ne{getGeometryType(){return"flowChartInternalStorage"}},class extends Ne{getGeometryType(){return"flowChartMagneticDisk"}},class extends Ne{getGeometryType(){return"flowChartMagneticDrum"}},class extends Ne{getGeometryType(){return"flowChartMagneticTape"}},class extends Ne{getGeometryType(){return"flowChartManualInput"}},class extends Ne{getGeometryType(){return"flowChartManualOperation"}},class extends Ne{getGeometryType(){return"flowChartMerge"}},class extends Ne{getGeometryType(){return"flowChartMultidocument"}},class extends Ne{getGeometryType(){return"flowChartOffpageConnector"}},class extends Ne{getGeometryType(){return"flowChartOnlineStorage"}},class extends Ne{getGeometryType(){return"flowChartOr"}},class extends Ne{getGeometryType(){return"flowChartPredefinedProcess"}},class extends Ne{getGeometryType(){return"flowChartPreparation"}},class extends Ne{getGeometryType(){return"flowChartProcess"}},class extends Ne{getGeometryType(){return"flowChartPunchedCard"}},class extends Ne{getGeometryType(){return"flowChartPunchedTape"}},class extends Ne{getGeometryType(){return"flowChartSort"}},class extends Ne{getGeometryType(){return"flowChartSummingJunction"}},class extends Ne{getGeometryType(){return"flowChartTerminator"}},class extends Ne{getGeometryType(){return"heart"}},class extends Ne{getGeometryType(){return"horizontalScroll"}},class extends Ne{getGeometryType(){return"irregularSeal1"}},class extends Ne{getGeometryType(){return"irregularSeal2"}},class extends Ne{getGeometryType(){return"leftArrowCallout"}},class extends Ne{getGeometryType(){return"leftBrace"}},class extends Ne{getGeometryType(){return"leftBracket"}},class extends Ne{getGeometryType(){return"leftRightArrowCallout"}},class extends Ne{getGeometryType(){return"mathDivide"}},class extends Ne{getGeometryType(){return"mathEqual"}},class extends Ne{getGeometryType(){return"mathMinus"}},class extends Ne{getGeometryType(){return"mathMultiply"}},class extends Ne{getGeometryType(){return"mathNotEqual"}},class extends Ne{getGeometryType(){return"mathPlus"}},class extends Ne{getGeometryType(){return"noSmoking"}},class extends Ne{getGeometryType(){return"quadArrowCallout"}},class extends Ne{getGeometryType(){return"ribbon"}},class extends Ne{getGeometryType(){return"ribbon2"}},class extends Ne{getGeometryType(){return"rightArrowCallout"}},class extends Ne{getGeometryType(){return"rightBrace"}},class extends Ne{getGeometryType(){return"rightBracket"}},class extends Ne{getGeometryType(){return"smileyFace"}},class extends Ne{getGeometryType(){return"star10"}},class extends Ne{getGeometryType(){return"star12"}},class extends Ne{getGeometryType(){return"star16"}},class extends Ne{getGeometryType(){return"star24"}},class extends Ne{getGeometryType(){return"star32"}},class extends Ne{getGeometryType(){return"star5"}},class extends Ne{getGeometryType(){return"star6"}},class extends Ne{getGeometryType(){return"star7"}},class extends Ne{getGeometryType(){return"star8"}},class extends Ne{getGeometryType(){return"sun"}},class extends Ne{getGeometryType(){return"teardrop"}},class extends Ne{getGeometryType(){return"upArrowCallout"}},class extends Ne{getGeometryType(){return"verticalScroll"}},class extends Ne{getGeometryType(){return"wave"}},class extends Ne{getGeometryType(){return"wedgeEllipseCallout"}},class extends Ne{getGeometryType(){return"wedgeRectCallout"}},class extends Ne{getGeometryType(){return"wedgeRoundRectCallout"}}]),zg={...P2,...T2,...k2};function xs(l){return l in zg&&zg[l]||null}let Fg=new WeakMap;function Gg(l){let r=Fg.get(l);if(r)return r;let i=new I2(l);return Fg.set(l,i),i}class L2{constructor(r,i,s,u,x){this.geometry=r,this.data=i,this.strokeConfig=s,this.fillConfig=u,this.rectData=null,this.textRect=null,this.displayRect=null,this.adjustData=null,this.rawPaths=null,this.detailedPaths=null,this.allPaths=null}getGeometry(){return this.geometry}getGeometryType(){return this.getGeometry().getGeometryType()}getPresetName(){return this.getGeometry().getPresetType()}isGeometry(r){return this.getGeometry().is(r)}isGeometryLine(){return this.getGeometry().isLine()}getGeometryData(){return this.data}getArrowHead(){return"none"}getArrowTail(){return"none"}getRectLeft(){return this.getGeometryData().l}getRectTop(){return this.getGeometryData().t}getRectRight(){return this.getGeometryData().r}getRectBottom(){return this.getGeometryData().b}getRectWidth(){return this.getGeometryData().w}getRectHeight(){return this.getGeometryData().h}getRectCenter(){let{l:r,t:i,r:s,b:u}=this.getGeometryData();return{x:(r+s)/2,y:(i+u)/2}}computeRectData(){return this.getGeometry().extractRectData(this.getGeometryData())}getRectData(){return this.rectData||(this.rectData=this.computeRectData())}computeTextRect(){return this.getGeometry().getTextRect(this.getGeometryData())}getTextRect(){return this.textRect||(this.textRect=this.computeTextRect())}computeDisplayRect(){if(this.isGeometryLine())return{...this.getRectData()};let r=this.getGeometryData(),i=Math.min(r.l,r.r),s=Math.max(r.l,r.r),u=Math.min(r.t,r.b),x=Math.max(r.t,r.b);return this.getRawPaths().forEach(v=>{v.path.forEach(P=>{Hl(P)&&(i=Math.min(i,P.x),s=Math.max(s,P.x),u=Math.min(u,P.y),x=Math.max(x,P.y))})}),{l:i,t:u,r:s,b:x,w:s-i,h:x-u}}getDisplayRect(){return this.displayRect||(this.displayRect=this.computeDisplayRect())}computeAdjustData(){return this.getGeometry().extractAdjustData(this.getGeometryData())}getAdjustData(){return this.adjustData||(this.adjustData=this.computeAdjustData())}renderAdjustPoints(){let r=this.getGeometryData();return this.getGeometry().getAdjustHandles().map(i=>i.pos(r))}getAdjustHandles(){return this.getGeometry().getAdjustHandles()}getConnectionHandles(){return this.getGeometry().getConnectionHandles()}getConnectionData(r){let i=this.getConnectionHandles().at(r);if(!i)return;let s=this.getGeometryData();return{pos:i.pos(s),ang:i.ang(s)/6e4}}computeRawPaths(){return this.getGeometry().getPaths(this.getGeometryData())}getRawPaths(){return this.rawPaths||(this.rawPaths=this.computeRawPaths())}computeDetailedPaths(){let r=this.getGeometry();if(!r.isLine())return{content:this.getRawPaths().slice(),decoration:[]};{let i=r.getLineArrowPaths(this.getGeometryData(),this.getArrowHead(),this.getArrowTail(),this.getStrokeWidth());return{content:i.line,decoration:i.arrow}}}getDetailedPaths(){return this.detailedPaths||(this.detailedPaths=this.computeDetailedPaths())}getContentPaths(){return this.getDetailedPaths().content}getDecorationPaths(){return this.getDetailedPaths().decoration}computeAllPaths(){return[...this.getContentPaths(),...this.getDecorationPaths()]}getAllPaths(){return this.allPaths||(this.allPaths=this.computeAllPaths())}getPaths(r){switch(r===void 0&&(r="all"),r){case"raw":return this.getRawPaths();case"content":return this.getContentPaths();case"decoration":return this.getDecorationPaths();default:return this.getAllPaths()}}_drawPathAttrs(r,i){i===void 0&&(i=d);let{stroke:s,fill:u}=i;return r.map(x=>{let v={d:x.define};if(s!==!1&&x.stroke&&Object.assign(v,this.getStrokeConfig(),s&&this.getGeometry().extractStrokeConfig(s)),u!==!1&&x.fill!=="none"){let P;if(this.isGeometryLine()){let j=this.getStrokeConfig();j.stroke&&(P={fill:j.stroke,"fill-opacity":j["stroke-opacity"]||1})}else P=this.getFillConfig();Object.assign(v,P,u&&this.getGeometry().extractFillConfig(u)),v.fill&&(v.fill=this.getGeometry().getFillColor(x.fill,v.fill))}return v})}drawRawPathAttrs(r){return this._drawPathAttrs(this.getRawPaths(),r)}drawContentPathAttrs(r){return this._drawPathAttrs(this.getContentPaths(),r)}drawDecorationPathAttrs(r){return this._drawPathAttrs(this.getDecorationPaths(),r)}drawAllPathAttrs(r){return this._drawPathAttrs(this.getAllPaths(),r)}drawPathAttrs(r){return this._drawPathAttrs(this.getPaths(r?.type),r)}getStrokeConfig(){return this.strokeConfig}getFillConfig(){return this.fillConfig}getStroke(){return this.getStrokeConfig().stroke||"transparent"}getStrokeWidth(){return this.getStrokeConfig()["stroke-width"]||0}copy(r,i,s,u,x){return new this.constructor(r||this.getGeometry(),i||this.getGeometryData(),s||this.getStrokeConfig(),u||this.getFillConfig())}updateGeometryData(r,i){return this.copy(null,this.getGeometry().createGeometryData({...this.getRectData(),...r},{...this.getAdjustData(),...i}),null,null,null)}clearAdjustData(){return this.copy(null,this.getGeometry().createGeometryData(this.getRectData()),null,null,null)}resize(r,i){return this.updateGeometryData({w:r,h:i})}setAdjustPoint(r,i){let s=this.getAdjustHandles().at(r);if(!s)return this;let u={...this.getGeometryData()};return s.handler(i.x,i.y,u),this.getGeometry().updateGeometryData(u),this.copy(null,u,null,null,null)}updateStrokeFillConfig(r,i){let s=this.getGeometry();return this.copy(null,null,r==null?null:s.createStrokeConfig(r&&{...this.getStrokeConfig(),...r}),i==null?null:s.createFillConfig(i&&{...this.getFillConfig(),...i}),null)}updatePathConfig(r){return this.updateStrokeFillConfig(r,r)}clearFormat(){let r=this.getGeometry();return this.copy(null,null,r.createStrokeConfig(),r.createFillConfig(),null)}static create(r,i,s,u,x,v,P){let j;return(j=r==="customGeometry"?v?Gg(v):null:xs(r))?new this(j,j.createGeometryData(i,s),j.createStrokeConfig(u),j.createFillConfig(x),P):null}}function Hg(l,r){let{x:i,y:s}=r,{l:u,t:x,r:v,b:P,w:j,h:F}=l;return{l:i+u,t:s+x,r:i+v,b:s+P,w:j,h:F}}class ql extends L2{static#e=this.defaults=Object.create(null);constructor(r,i,s,u,x){super(r,i,s,u),this.config=x,this.imageRect=null,this.viewRect=null,this.paddingRect=null,this.clientViewRect=null,this.clientPaddingRect=null}getCustomConfig(){return this.config}extractShapeConfig(){let{w:r,h:i}=this.getRectData();return{...this.getCustomConfig(),schema:void 0,width:r,height:i,customized_points:this.getAdjustData(),stroke:"transparent","stroke-opacity":1,"stroke-width":1,...this.getStrokeConfig(),fill:"transparent","fill-opacity":1,...this.getFillConfig()}}getDrawingSchema(){return this.getCustomConfig().schema}getAnchoryType(){return this.getCustomConfig().alignment==="break"?"absolute":"inline"}isInline(){return this.getAnchoryType()==="inline"}getZOrder(){return this.getCustomConfig().order||0}isFlipHorizontal(){return this.getCustomConfig().flip_h||!1}isFlipVertical(){return this.getCustomConfig().flip_v||!1}getRotateDegree(){return this.getCustomConfig().deg||0}getRotateRadian(){return this.getRotateDegree()*Le}getViewDegree(){let r=this.getRotateDegree();return this.isFlipVertical()&&(r=z(r+180,360)),r}getArrowHead(){return this.isGeometryLine()&&this.getCustomConfig().start_marker==="arrow"?"triangle":"none"}getArrowTail(){return this.isGeometryLine()&&this.getCustomConfig().end_marker==="arrow"?"triangle":"none"}getImageFileId(){return this.getCustomConfig().file_id||""}getImageCrop(){return this.getCustomConfig().crop||{l:0,t:0,r:0,b:0}}isImageCropped(){let r=this.getCustomConfig().crop;return!!r&&!!(r.l||r.t||r.r||r.b)}computeImageRect(){let r=this.getImageCrop(),i=this.getRectData();if(!r)return{...i};let s=r.l/1e5,u=r.t/1e5,x=r.r/1e5,v=r.b/1e5,P=i.w/(1-s-x),j=i.h/(1-u-v),F=-(P*s),q=-(j*u);return{l:F,t:q,w:P,h:j,r:F+P,b:q+j}}getImageRect(){return this.imageRect||(this.imageRect=this.computeImageRect())}getPosition(){let r=this.getCustomConfig();return{x:r.left||0,y:r.top||0}}getCenterPosition(){let{x:r,y:i}=this.getRectCenter(),s=this.getPosition();return s.x+=r,s.y+=i,s}computeViewRect(){let r=this.getRotateRadian(),i=Math.abs(Math.sin(r)),s=Math.abs(Math.cos(r)),{l:u,t:x,w:v,h:P}=this.getDisplayRect(),j=v*s+P*i,F=v*i+P*s,q=u+v/2-j/2,J=x+P/2-F/2;return{l:q,t:J,w:j,h:F,r:q+j,b:J+F}}getViewRect(){return this.viewRect||(this.viewRect=this.computeViewRect())}getViewPadding(){let r=this.getStrokeWidth(),i=this.getCustomConfig();return{l:r+(i.paddingLeft||0),t:r+(i.paddingTop||0),r:r+(i.paddingRight||0),b:r+(i.paddingBottom||0)}}computePaddingRect(){let r=this.getViewRect(),i=this.getViewPadding(),s=r.l-i.l,u=r.t-i.t,x=r.r+i.r,v=r.b+i.b;return{l:s,t:u,r:x,b:v,w:x-s,h:v-u}}getPaddingRect(){return this.paddingRect||(this.paddingRect=this.computePaddingRect())}computeClientViewRect(){return Hg(this.getViewRect(),this.getPosition())}getClientViewRect(){return this.clientViewRect||(this.clientViewRect=this.computeClientViewRect())}computeClientPaddingRect(){return Hg(this.getPaddingRect(),this.getPosition())}getClientPaddingRect(){return this.clientPaddingRect||(this.clientPaddingRect=this.computeClientPaddingRect())}computeViewMatrix(r){let i,{location:s=!1,locationRound:u=!1,flipMode:x,originateCenter:v=!1}=r===void 0?d:r,P=sr.create();if(s){let{x:re,y:te}=this.getPosition();u&&(re=Math.round(re),te=Math.round(te)),P.translate(re,te)}let{x:j,y:F}=this.getRectCenter();P.rotate(this.getRotateDegree(),j,F),x&&(x==="horizontal"?i=this.isFlipHorizontal():x==="vertical"&&(i=this.isFlipVertical()));let q=i??this.isFlipHorizontal(),J=i??this.isFlipVertical();if((q||J)&&P.translate(q?2*j:0,J?2*F:0).scale(q?-1:1,J?-1:1),v){let{x:re,y:te}=this.getRectCenter();P.prependTranslate(-re,-te).translate(re,te)}return P}renderTransform(r){return this.computeViewMatrix(r).toString()}copy(r,i,s,u,x){return new this.constructor(r||this.getGeometry(),i||this.getGeometryData(),s||this.getStrokeConfig(),u||this.getFillConfig(),x||this.getCustomConfig())}updateCustomConfig(r){return this.copy(null,null,null,null,{...this.getCustomConfig(),...r})}translateTo(r,i){return this.updateCustomConfig({left:r,top:i})}translate(r,i){let s=this.getPosition();return this.translateTo(s.x+r,s.y+i)}rotateTo(r){return this.updateCustomConfig({deg:z(r,360)})}rotate(r){return this.rotateTo(this.getRotateDegree()+r)}flipTo(r,i){r===void 0&&(r=this.isFlipHorizontal()),i===void 0&&(i=this.isFlipVertical());let s=0;r!==this.isFlipHorizontal()&&++s,i!==this.isFlipVertical()&&++s;let u=this.updateCustomConfig({flip_h:r,flip_v:i});return s%2!=0&&(u=u.rotateTo(-u.getRotateDegree())),u}flip(r,i){let s=this.isFlipHorizontal(),u=this.isFlipVertical();return this.flipTo(r?!s:s,i?!u:u)}clearFormat(){let r=this.getDrawingSchema()==="picture"?{"stroke-width":0,fill:"none"}:null,i=this.getGeometry();return this.copy(null,null,i.createStrokeConfig(r),i.createFillConfig(r),null)}resetImage(){return this.updatePathConfig({stroke:"#2E3133","stroke-width":0}).updateCustomConfig({crop:void 0})}static getGraphBaseConfig(r,i){let s=r.createRectData(),u=r.createStrokeConfig(),x=r.createFillConfig();return{prst:r.getPresetType(),left:100,top:100,flip_h:!1,flip_v:!1,deg:0,paddingLeft:2,paddingTop:4,paddingRight:2,paddingBottom:0,width:s.w,height:s.h,customized_points:{},stroke:u.stroke,"stroke-opacity":u["stroke-opacity"],"stroke-width":u["stroke-width"],fill:x.fill,"fill-opacity":x["fill-opacity"]}}static getImageBaseConfig(r,i){return{...this.getGraphBaseConfig(r,i),...i.file_type==="binary"?{width:24,height:24}:null,"stroke-width":0,fill:"none",crop:{r:0,l:0,b:0,t:0}}}static ensureShapeConfig(r){let{width:i,height:s}=r;return i&&i<0&&(r.width=-i,r.flip_h=!r.flip_h),s&&s<0&&(r.height=-s,r.flip_v=!r.flip_v),Array.isArray(r.crop)&&(r.crop=void 0),r}static createFromShape(r){let i,s,u=r.schema;if(!u)return null;i=r.type==="customGeometry"?r.custGeomDefinition?Gg(r.custGeomDefinition):xs("rect"):xs(r.type)||xs(u==="connector"?"line":"rect"),s=u==="picture"?this.getImageBaseConfig(i,r):this.getGraphBaseConfig(i,r);let{width:x,height:v}=r=this.ensureShapeConfig({...s,...r}),P=i.isLine();return this.create(i.getGeometryType(),{w:typeof x=="number"&&(P||x)?x:void 0,h:typeof v=="number"&&(P||v)?v:void 0},r.customized_points,r,r,r.custGeomDefinition,{...r,schema:u})}static getDefault(r){let i=this.defaults;if(!i[r]){let s=this.createFromShape({schema:r});if(!s)throw Error(`Failed to create default ${r} geometry info.`);i[r]=s}return i[r]}}class Ul extends da{static getSelfPropertyName(){return"Drawing"}get attrs(){return{id:Te.create({default:ge,copyable:!1}),config:Te.create({default:{}})}}getCustomizeColors(r){let i=r.getAttrValue("config");return[i.fill,i.stroke]}getObjectSize(r){let i=r.getState("geometryInfo");if(!i)return{width:0,height:0};let{w:s,h:u}=i.getPaddingRect();return{width:s,height:u}}registerSelfLocalAttrsUpdateMap(){let r=this.getStateMap();r.register(r.SELF_START,this.name,"set_geometry",null,i=>{i.setState("geometryInfo",ql.createFromShape({...i.getAttrValue("config"),schema:i.type.name}))})}parseAttrsFromDom(r,i,s){let u;super.parseAttrsFromDom(r,i,s);try{let v=i.getAttribute("graph-config");v&&(u=JSON.parse(v))}catch{}if(u&&typeof u=="object"||(u=Object.create(null)),typeof u.prst=="string"&&u.prst&&!u.type){var x;let v=(x=u.prst,Z(Fl,P=>{if(P===x)return!0}));v&&(u.type=v)}return Object.assign(r,{id:i.getAttribute("synograph")||ge(),config:u})}get matchDOMTag(){return{[`span[data-syno-schema="doc:${this.name}"]`]:(r,i)=>this.parseDOM(r,i)}}renderAttrsDom(r,i,s){super.renderAttrsDom(r,i,s);let u=i.getAttrValue("config");return Object.assign(r,{classList:[`${this.classPrefix}drawing`],synograph:s.target==="clipboard"?"":i.getAttrValue("id"),"data-syno-schema":`doc:${this.name}`,"pm-ignore":this.name==="picture"?"self":null,"graph-config":JSON.stringify(u)})}toDOM(r,i){let s,u=i.target;return s=this.is("Leaf")?null:u==="clipboard"?0:["div",null,0],["span",this.renderAttrs(null,r,i),s]}}let ms=Te.create({default:9,empty_value:0}),D2={anchor:Te.create({default:"ctr",empty_value:"t",normalizer:["t","ctr","b"]}),lIns:ms,tIns:ms,rIns:ms,bIns:ms},R2=l=>{class r extends is(l){static getSelfPropertyName(){return"TextBox"}get needHeightCalculating(){return!0}get attrs(){return{...super.attrs,...D2}}registerSelfLocalAttrsUpdateMap(){this.registerListContainer()}}return Nl(r),r};class O2 extends R2(ri){static getSelfPropertyName(){return"DocumentTextBox"}registerSelfLocalAttrsUpdateMap(){let r=this.getStateMap();r.register(r.FROM_PARENT,this.name,"set_size","Shape",(i,s)=>{let u=s.getState("geometryInfo")||ql.getDefault("shape");i.setState("width",u.getRectWidth()),i.setState("height",u.getRectHeight());let x={...u.getTextRect()},[v,P,j,F]=["l","t","r","b"].map(q=>i.getAttrValue(`${q}Ins`));if(u.isFlipHorizontal()!==u.isFlipVertical()){let q=u.getRectWidth()-x.r;x.l=q+v}else x.l+=v;x.t+=P,x.b-=F,x.w-=v+j,x.r=x.l+x.w,x.h-=P+F,i.setState("textRect",x)}),r.register(r.SELF_START,this.name,"set_text_rect_info",null,i=>{i.setState("text_rect_info",{width:Math.max(i.getState("textRect").w,0),left:0})})}toDOM(r,i){if(i.target==="clipboard")return null;let s=r.getState("width",0),u=r.getState("height",0),x=r.getState("textRect",d);return["div",this.renderAttrs({inline_style:{width:s+"px",height:u+"px"}},r,i),["div",{classList:[`${this.className}-area`],inline_style:{left:(x.l||0)+"px",top:(x.t||0)+"px",width:Math.max(x.w||0,0)+"px",height:Math.max(x.h||0,0)+"px",overflow:"hidden"}},["div",{classList:[`${this.className}-content`],inline_style:{width:"100%"}},0],["div",{classList:[`${this.className}-indicator`,"syno-o-pm-plugin-indicator-wrapper"],inline_style:{width:"100%",height:"100%"}}]]]}getIndicatorWrapperDOM(r){let i=r.firstElementChild?.lastElementChild;if(!i)throw Error("Indicator wrapper is missing.");return i}}let N2=jd.mergeSpec(r2,{name:"document",version:13,nodes:{doc:{type:class extends Em{get isDocument(){return!0}get Node(){return s2}get attrs(){let l=si.getDefaultPageSetup(),r=Object.create(null);for(let i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r[i]=new Te({default:l[i]}));return{schema:new Te({default:13}),type:new Te({default:"document"}),page_setup:new Te({deep:r})}}registerSelfLocalAttrsUpdateMap(){let l=this.getStateMap();l.register(l.UPDATE_START,this.name,"set_global_root_node",null,(function(r,i){i.setRootNode(r)}).bind(this)),l.register(l.SELF_START,this.name,"set_page_setup",null,(function(r,i){let s=r.state,u=r.attrs.page_setup;s.page_setup=u,i.setPageSetup(r.attrs.page_setup);let x=si.getPageSizeByType(r.attrs.page_setup.page_type,u.orientation);s.page_size=x,i.setPageSize(x);let v=si.getPagePadding(r.attrs.page_setup);s.page_padding=v,i.setPagePadding(v);let P=si.getPageContentSize(x,v);s.page_content_size=P,i.setPageContentSize(P);let j=si.getDecorateMaxHeight(P);return s.page_decorate_height=j,i.setPageDecorateHeight(j),tt.STATE_UPDATE}).bind(this))}},content:"settings style_editor invisible edit_area page_decorate"},settings:{type:class extends Vm{static getSelfPropertyName(){return"DocumentSettings"}get attrs(){return{finalSection:a2}}getFileId(l){return l.getAttrValue("finalSection")?.watermark?.config?.fileId}getCustomizeColors(l){return l.getAttrValue("finalSection")?.watermark?.config?.color}}},style_editor:{type:d2,content:En.map(l=>{let{id:r,level:i}=l;return"style_paragraph"+(i>=0?`[headingId="${r}",headingLevel=${i}]`:"")}).join(" ")},style_paragraph:{type:bg,content:"inline<_>*"},invisible:{type:class extends di{get isInvisible(){return!0}get printable(){return!1}get matchDOMTag(){return{"div[syno_invisible]":null}}toDOM(l,r){return["div",this.renderAttrs({syno_invisible:"true"},l,r),0]}},content:"drawing*"},edit_area:{type:Mg,content:"basic_block (block | first_level_block)*"},page:{type:class extends ri{get isPage(){return!0}get isPseudoType(){return!0}get attrs(){return{width:Te.create(),height:Te.create(),marginLeft:Te.create(),marginTop:Te.create(),marginRight:Te.create(),marginBottom:Te.create(),decoratorMaxHeight:Te.create()}}getBodyDOM(l){return l.firstChild}getDecoratorDOM(l,r){switch(r){case"header":return this.getHeaderDOM(l);case"footer":return this.getFooterDOM(l);case"page_num":return this.getPageNumberDOM(l);default:throw Error(`Invalid decorator type. (${r})`)}}getHeaderDOM(l){return on(this.getBodyDOM(l),".syno-o-doc-pm-page-header")}getContentDOM(l){return on(this.getBodyDOM(l),".syno-o-doc-pm-page-content")}getFooterDOM(l){return on(this.getBodyDOM(l),".syno-o-doc-pm-page-footer")}getPageNumberDOM(l){return on(this.getBodyDOM(l),".syno-o-doc-pm-page-page-number")}getEditableAreaDOM(l){return this.getContentDOM(l).firstChild.firstChild}getGraphContainerDOM(l){return this.getContentDOM(l).childNodes[1]}toDOM(l,r){let{width:i,height:s,marginLeft:u,marginTop:x,marginRight:v,marginBottom:P,decoratorMaxHeight:j}=l.attrs;return["div",{class:"syno-o-doc-pm-page",inline_style:{width:i+"px",height:s+"px"}},["div",{class:"syno-o-doc-pm-page-body"},["div",{class:"syno-o-doc-pm-page-decorator syno-o-doc-pm-page-header",inline_style:{width:i+"px",minHeight:x+"px",maxHeight:j+"px"}}],["div",{class:"syno-o-doc-pm-page-content",inline_style:{width:i+"px"}},["div",{class:"syno-o-doc-pm-page-content-padding",inline_style:{marginLeft:u+"px",marginRight:v+"px"}},["div",{class:"syno-o-doc-pm-page-content-container",editable:"true","syno-paginated":"false",synoedit:"true",inline_style:{width:i-u-v+"px"}},0]],["div",{class:"syno-o-doc-graph-container"}]],["div",{class:"syno-o-doc-pm-page-decorator syno-o-doc-pm-page-footer",inline_style:{width:i+"px",minHeight:P+"px",maxHeight:j+"px"}}],["div",{class:"syno-o-doc-pm-page-decorator syno-o-doc-pm-page-page-number"}]]]}},content:"block*"},table:{type:class extends Wd{get attrs(){return{...super.attrs,align:Ll.textAlign.copy({clearable:!1}),indent:Te.createOptional({empty_value:0})}}getTextRectInfo(l,r){let{left:i,width:s}=l.state.parent_text_rect_info||{left:0,width:0},u=l.state.width,x=l.getAttrValue("align");return{left:i+(x==="center"||x==="justify"?(s-u)/2:x==="right"?s-u:l.getAttrValue("indent")||0),width:u}}renderAttrsJson(l,r,i){return super.renderAttrsJson(l,r,i),["align","indent"].forEach(s=>{let u=r.getAttrValue(s);u!=null&&(l[s]=u)}),l}toDOM(l,r){let i=super.toDOM(l,r),s=r.target,u=s==="editor"||s==="viewer"||s==="general",x=i[1]={...i[1]},v=x.inline_style={...x.inline_style},P=l.state.parent_text_rect_info.width,j=l.state.width,F=l.getAttrValue("align");if(F==="center"||F==="justify")v["margin-left"]=v["margin-right"]=u?`${(P-j)/2}px`:"auto";else{let q=F==="right"?0:l.getAttrValue("indent")||0;v[`margin-${F==="right"?"right":"left"}`]=`${q}px`,v[`margin-${F==="right"?"left":"right"}`]=u?`${P-j-q}px`:"auto"}return i}}},paragraph:{type:class extends Vl{static getSelfPropertyName(){return"DocumentParagraph"}registerSelfLocalAttrsUpdateMap(){let l=this.getStateMap();l.register(l.UPDATE_START,this.name,"inherit_style",null,(r,i)=>{let s=i.getCustomStyle(r.getAttrValue("headingId")?r.getAttrValue("headingLevel"):-1)||d,u=r.state;return u.inherited_text_marks_json===s.marks_json&&u.inherited_text_marks===s.marks&&u.inherited_css_attrs===s.css&&u.inherited_tab_attrs===s.tab?tt.STATE_NONE:(u.inherited_text_marks_json=s.marks_json,u.inherited_text_marks=s.marks,u.inherited_css_attrs=s.css,u.inherited_tab_attrs=s.tab,u.inherit=!0,tt.STATE_UPDATE)}),l.register(l.UPDATE_END,this.name,"clear_inherit_flag",null,r=>{r.state.inherit=!1})}}},navigation:{type:class extends Iu{get isNavigation(){return!0}get unbreakable(){return!0}get selectionExtendable(){return!0}get deleteWhenEmpty(){return!0}getLeftPaddingWidth(l){return 8}getRightPaddingWidth(l){return 12}getTopPaddingHeight(l){return 8}getBottomPaddingHeight(l){return 8}getTextRectInfo(l,r){let i=l.type.getLeftPaddingWidth(l),s=l.type.getRightPaddingWidth(l),u=super.getTextRectInfo(l,r);return{left:u.left+i,width:u.width-(i+s)}}get matchDOMTag(){return{nav:(l,r)=>this.parseDOM(l,r)}}renderBlockStructure(l,r){return["nav",this.renderAttrs(Object.create(null),l,r),0]}},content:"basic_block block*"},horizontal_rule:{type:class extends ua{get isHorizontalRule(){return!0}get forceJoinBackward(){return!0}getTopPaddingHeight(l){return 7}getBottomPaddingHeight(l){return 7}get matchDOMTag(){return{hr:(l,r)=>this.parseDOM(l.parentNode&&l.parentNode.hasAttribute("data-syno-hr")?l.parentNode:l,r)}}renderBlockStructure(l,r){return["div",this.renderAttrs({"data-syno-hr":!0,inline_style:{padding:"6px 0"}},l,r),["hr",{class:this.className+"-hr",inline_style:{margin:"0px","border-width":"1px"}}]]}}},page_break:{type:class extends ua{get isPageBreak(){return!0}get forceJoinBackward(){return!0}get matchDOMTag(){return{"div[data-syno-page-break]":(l,r)=>this.parseDOM(l,r)}}renderBlockStructure(l,r){return["div",this.renderAttrs({"data-syno-page-break":!0},l,r)]}}},image:{type:class extends da{get isImage(){return!0}get hasCss(){return!0}get cssAttrs(){return{width:new Te({default:""}),height:new Te({default:""})}}get attrs(){return he(this.cssAttrs,{src:new Te({default:""}),alt:new Te({default:""}),ref:new Te({default:""}),file_id:new Te({default:""}),file_type:new Te({default:"binary"}),config:new Te({default:""})})}getFileId(l){return l.attrs.file_id}getObjectSize(l){let r=Lt(l.getAttrValue("width"),"px"),i=Lt(l.getAttrValue("height"),"px");return{width:isNaN(r)?0:r,height:isNaN(i)?0:i}}getObjectBorder(l){return{left:2,top:2,right:2,bottom:2}}get matchDOMTag(){return{"img[src]":l=>({src:l.getAttribute("src"),alt:l.getAttribute("alt")||null,ref:l.getAttribute("ref")||"",file_id:l.getAttribute("file-id")||null,file_type:l.getAttribute("file-type")||null,config:l.getAttribute("graph-config")||null,width:l.style.width||"",height:l.style.height||""})}}toDOM(l,r){let i=r.target;return(l.attrs.file_type??"binary")==="binary"?["span",this.renderAttrs({synoimg:"true",inline_style:{border:"2px solid transparent"}},l,r),l.attrs.file_id?l.attrs.alt:""]:["span",this.renderAttrs({synoimg:"true","pm-ignore":!0,inline_style:{position:"relative",width:l.attrs.width,height:l.attrs.height,padding:i==="clipboard"?void 0:"2px"}},l,r),["img",{"file-id":l.attrs.file_id,"file-type":l.attrs.file_type,alt:l.attrs.alt,"graph-config":l.attrs.config,inline_style:{display:"block",position:"absolute",width:l.attrs.width,height:l.attrs.height}}]]}}},chart:{type:class extends da{get isChart(){return!0}get sizeRatio(){return 410/560}get attrs(){return{synochart:new Te({default:ge,copyable:!1}),data:new Te({default:yi.createDefaultData(),normalizer:yi.ensureData.bind(yi)}),config:Te.optional,width:new Te({default:"560px"}),height:new Te({default:"410px"})}}getObjectSize(l){let r=Lt(l.getAttrValue("width"),"px"),i=Lt(l.getAttrValue("height"),"px");return{width:isNaN(r)?0:r,height:isNaN(i)?0:i}}getObjectBorder(l){return{left:2,top:2,right:2,bottom:2}}get matchDOMTag(){return{"span[synochart]":l=>{let r,i;try{r=JSON.parse(l.getAttribute("data-data"))}catch{}Array.isArray(r)||(r=null);try{i=JSON.parse(l.getAttribute("config"))}catch{}return Object.prototype.toString.call(i)!=="[object Object]"&&(i=null),{synochart:l.getAttribute("synochart")||fe(l.ownerDocument,"synochart"),data:r,config:i,width:l.style.width||"",height:l.style.height||""}}}}toDOM(l,r){let i=r.target;return["span",this.renderAttrs({synochart:l.attrs.synochart,"data-data":JSON.stringify(l.attrs.data),config:JSON.stringify(l.attrs.config),inline_style:{width:l.attrs.width,height:l.attrs.height,padding:i==="clipboard"?void 0:"2px"}},l,r)]}}},shape:{type:class extends Ul{static getSelfPropertyName(){return"Shape"}parseContentSyno(l,r){let i=super.parseContentSyno(l,r);if(!i)return null;try{let s=this.create(null,i),u=[];s.descendants((x,v)=>{if(x.is("Shape"))return u.push({from:v,to:v+x.nodeSize}),!1});for(let x=u.length-1;x>=0;--x){let{from:v,to:P}=u[x];s=s.replace(v,P)}return s.content}catch{}return i}renderContentSyno(l,r){return l.content}},content:"text_box"},connector:{type:class extends Ul{static getSelfPropertyName(){return"Connector"}}},picture:{type:class extends Ul{static getSelfPropertyName(){return"Picture"}getFileId(l){return l.getAttrValue("config")?.file_id}}},text_box:{type:O2,content:"basic_block block*"},page_decorate:{type:class extends ri{get isPageDecorate(){return!0}get printable(){return!1}get attrs(){return{"place-show":new Te({default:!1}),"place-cover":new Te({default:!1}),"place-even":new Te({default:!1}),"num-show":new Te({default:!1}),"num-cover":new Te({default:!1}),"num-even":new Te({default:!1}),"num-pos":new Te({default:"br"})}}registerSelfLocalAttrsUpdateMap(){let l=this.getStateMap();l.register(l.FROM_PARENT,this.name,"set_page_content_size",null,(function(r,i){let s=r.state,u=i.state;return s.page_content_size===u.page_content_size?tt.STATE_NONE:(s.page_content_size=u.page_content_size,tt.STATE_UPDATE)}).bind(this))}get matchDOMTag(){return{"div[synodecorate]":l=>({"place-show":l.getAttribute("place-show")==="true","place-cover":l.getAttribute("place-cover")==="true","place-even":l.getAttribute("place-even")==="true","num-show":l.getAttribute("num-show")==="true","num-cover":l.getAttribute("num-cover")==="true","num-even":l.getAttribute("num-even")==="true","num-pos":l.getAttribute("num-pos")||"br"})}}toDOM(l,r){return["div",this.renderAttrs({class:"syno-o-doc-pm-decorator-container",synodecorate:!0,"place-show":String(l.attrs["place-show"]),"place-cover":String(l.attrs["place-cover"]),"place-even":String(l.attrs["place-even"]),"num-show":String(l.attrs["num-show"]),"num-cover":String(l.attrs["num-cover"]),"num-even":String(l.attrs["num-even"]),"num-pos":l.attrs["num-pos"]},l,r),0]}},content:'header[type="cover"] header[type="even"] header[type="normal"] footer[type="cover"] footer[type="even"] footer[type="normal"] page_num'},header:{type:class extends Bl{get isHeader(){return!0}get decoratorType(){return"header"}},content:"basic_block block*"},footer:{type:class extends Bl{get isFooter(){return!0}get decoratorType(){return"footer"}},content:"basic_block block*"},page_num:{type:class extends _g{get isPageNumber(){return!0}get decoratorType(){return"page_num"}getIndicatorWrapperDOM(l){return l}get matchDOMTag(){return{"div[synonum]":l=>({type:l.getAttribute("type")})}}getEditableAreaDOM(l){return l}toDOM(l){return["div",{synonum:"true",type:l.attrs.type},0]}},content:"page_num_block"},page_num_block:{type:class extends Pu{get isPageNumberBlock(){return!0}get textDraggable(){return!1}get matchDOMTag(){return{"div[synonumblock]":null}}toDOM(l){return["div",{synonumblock:"true"},0]}},content:"page_num_text<_>"},page_num_text:{type:class extends _y{get isPageNumberText(){return!0}get copyable(){return!1}get matchDOMTag(){return{"span[synonumtext]":null}}toDOM(l){return["span",{synonumtext:"true"}]}}}},groups:{basic_block:l=>{let r=l.slice(),i=r.indexOf("paragraph")+1;return r.splice(i,0,"horizontal_rule"),r},block:l=>{let r=l.slice(),i=r.indexOf("paragraph")+1;return r.splice(i,0,"horizontal_rule","navigation"),r},first_level_block:["page_break"],inline:l=>l.concat("shape","connector","picture","image","chart"),drawing:["shape","connector","picture"]},preset:function(l){return l.nodeFrom(["doc",null,null,l.nodeFrom(["style_editor",null,null,...En.map(r=>{let{id:i,level:s}=r;return["style_paragraph",{...s>=0?{headingId:i,headingLevel:s}:null,lineHeight:1.15}]})])],"fill")},parsers:{heading:l=>new c2},getInitialSelection:l=>{let r=l.resolve(l.queryChildOffset("edit_area",!0)+1);return St.findNear(r,1,!0).toMultiSelection()}}),$l=new jd(N2);class ur extends gt{constructor(r,i){super(),this.version=r}isVersionMatched(r){let i=this.version;return typeof i=="number"&&i===r.type.schema.getVersion()}shouldBatchReplacement(r,i){return i.length>=5}performReplacement(r,i,s){if(this.shouldBatchReplacement(r,i)){for(let u=i.length-1;u>=0;--u){let x=s(r,i[u],u);x&&(r=r.replaceSimple(x.from,x.to,x.slice))}r=r.updateStateAndTrim()}else for(let u=i.length-1;u>=0;--u){let x=s(r,i[u],u);x&&(r=r.replace(x.from,x.to,x.slice))}return r}doApply(r,i){return this.isVersionMatched(r)?this.applyMigration(r,i):r}applyMigration(r,i){return r}posMap(r){return this.isVersionMatched(r)&&this.getMigrationPosMap(r)||kt.empty}getMigrationPosMap(r){return kt.empty}invert(){return null}map(r){return this}toJSON(r){return{stepType:this.jsonID,version:this.version}}static fromJSON(r,i){return new this(i.version,i.migration_options)}}class Wg extends ur{migrateMarks(r,i){return null}migrateJsonMarks(r,i){return null}migrateAndCheckMarks(r,i,s){let u=s?this.migrateJsonMarks(r,i):this.migrateMarks(r,i);return u&&u!==r?u:null}collectActions(r){let i=[];return r.descendants((s,u)=>{if(s.type.isListContainer){let x=s.getAttrValue("listMap",!0);if(x){let v;R(x,(P,j)=>{let F,q=P&&P.configs;q&&(q.forEach((J,re)=>{let te=this.migrateAndCheckMarks(J&&J.marks||Qe.none,s,!0);te&&(F||(F=q.slice()),F[re]=Object.assign(Object.create(null),J,{marks:te}))}),F&&(v||(v={...x}),v[j]=Object.assign(Object.create(null),P,{configs:F})))}),v&&i.push({pos:u,attrs:{listMap:v}})}}else if(s.type.isMarksBlock){let x=null,v=this.migrateAndCheckMarks(s.textMarksRawJSON,s,!0);if(v&&(x={textMarks:v}),s.type.isListBlock){let P=this.migrateAndCheckMarks(s.listMarksRawJSON,s,!0);P&&(x=Object.assign(x||Object.create(null),{listMarks:P}))}x&&i.push({pos:u,attrs:x})}else if(s.type.isInline){let x=this.migrateAndCheckMarks(s.marksRaw,s,!1);x&&i.push({pos:u,marks:x})}}),i}applyMigration(r){return this.performReplacement(r,this.collectActions(r),(i,s)=>{let u,{pos:x,attrs:v,marks:P}=s,j=i.resolve(x).self;return j&&(u=j.type.isInline?P?j.mark(P):void 0:v?j.copyWithAttrs(v):void 0)?{from:x,to:x+j.nodeSize,slice:ot.from(u)}:null})}}class qg extends ur{applyMigration(r){let i=this.version;return typeof i!="number"?r:r.duplicateWithAttrs({schema:i+1})}}function Ug(l){let r=Te.createMarksNormalizer(s=>{let u=l[s._];if(!u)return s;let x=u(s);return x&&x._===s._?x:{...x,_:s._}}),i=eg(r);return{mixinMark:s=>class extends s{create(u){let x=l[this.name];return super.create(x?x(u):u)}},mixinMarksBlock:s=>class extends s{get attrs(){let u={...super.attrs},x=u.textMarks;if(x){let P=x.normalizer??_;u.textMarks=x.copy({normalizer:j=>r(P(j))})}let v=u.listMarks;if(v){let P=v.normalizer??_;u.listMarks=v.copy({normalizer:j=>r(P(j))})}return u}},mixinListContainer:s=>class extends s{get attrs(){let u={...super.attrs},x=u.listMap;if(x){let v=x.normalizer??_;u.listMap=x.copy({normalizer:P=>i(v(P))})}return u}}}}function $g(l,r,i){i===void 0&&(i=0);let s=r.length;for(;!r[i];){if(i>=s)return r;++i}if(!r[i].schema){let u;for(u=i;u<s&&!r[u].schema;++u);for(u<s&&(l=r[u].schema),--u;u>=i;--u)({schema:l}=function(x,v){let{_schema:P,diff:j}=v;return P?(P.prototype instanceof Ku||(P=P(x.constructor)),x=new P(P.mergeSpec(x.rawSpec,j))):j&&(x=x.copy(j)),v.schema=x,v.spec=x.spec,v}(l,r[u]))}return r}qg.register("migrateSchema");let vs={DOC_SCHEMA_IS_OLDER:0,DOC_SCHEMA_IS_NEWEST:1,PKG_SCHEMA_IS_OLDER:2};class Zl{constructor(r,i){this.doc=r||Object.create(null),this.options=i,this.migrators=this.getMigrators(),this.docSchemaVer=this.getSchemaVer(),this.pkgSchemaVer=this.migrators.length+1}getMigrators(){throw Error("Need to be implemented")}doMigration(){let r=this.checkMigrationStatus();if(r===vs.DOC_SCHEMA_IS_OLDER)for(let i=this.docSchemaVer-1;i<this.pkgSchemaVer-1;++i)this.doc=this.migrators[i].call(this,this.doc)||this.doc;return{status:r,doc:this.doc}}getSchemaVer(){return this.doc.attrs===void 0?1:this.doc.attrs.schema}checkMigrationStatus(){return this.docSchemaVer<this.pkgSchemaVer?vs.DOC_SCHEMA_IS_OLDER:this.docSchemaVer===this.pkgSchemaVer?vs.DOC_SCHEMA_IS_NEWEST:vs.PKG_SCHEMA_IS_OLDER}static getDocType(r){return r.attrs===void 0?"document":r.attrs.type}}function Zg(l,r,i,s){let u=l(r,i,s);return u===void 0?r:u}function Ui(l,r){var i=l;if(!(i=function s(u,x,v,P,j){if(!(u=P.call(j,u,x,v)))return null;let F=u.content;if(F){let q;for(let J=0;J<F.length;++J){let re=F[J],te=s(re,u,J,P,j);re!==te&&(q||(q=!0,F=F.slice(),u.content=F),te?F[J]=te:(F.splice(J,1),--J))}}return u}(i,null,-1,function(s,u,x){let v=r[s.type];if(v)if(Array.isArray(v))for(let P=0;P<v.length;++P)s=Zg(v[P],s,u,x);else s=Zg(v,s,u,x);return s},void 0)))throw Error("Doc is null after migration.");return i}function Fn(l){return function(r){r.attrs=Object.assign(Object.create(null),r.attrs),r.attrs.schema=l}}class li{static childCount(r){return r&&r.content&&r.content.length||0}static child(r,i){return r&&r.content&&r.content[i]||null}static copy(r,i,s){let u=Object.create(null);return u.type=r.type,i?u.content=i:r.content&&(u.content=r.content),s?u.attrs=Object.assign({},r.attrs,s):r.attrs&&(u.attrs=r.attrs),r.marks&&(u.marks=r.marks),u}}let Jg={type:"table_cell",content:[{type:"paragraph"}]};class j2{constructor(){this.index_map=Object.create(null),this.col_idx_min=void 0,this.col_idx_max=void 0}getAt(r,i){if(r in this.index_map&&i in this.index_map[r])return this.index_map[r][i]}setAt(r,i,s){r in this.index_map||(this.index_map[r]=Object.create(null)),this.index_map[r][i]=s,(isNaN(this.col_idx_min)||i<this.col_idx_min)&&(this.col_idx_min=i),(isNaN(this.col_idx_max)||i>this.col_idx_max)&&(this.col_idx_max=i)}getRectColSize(){return isNaN(this.col_idx_max)?0:this.col_idx_max-this.col_idx_min+1}}function Gn(l){l&&l.length>0&&!isNaN(l[l.length-1])&&(l+="px");let r=Lt(l,"px");return isNaN(r)?NaN:Math.floor(r)}let E2=["borderLeftWidth","borderTopWidth","borderRightWidth","borderBottomWidth"];function Xg(l,r,i,s){let u=0,x=[];for(let v=0;v<l.length;++v){let P=l[v];isNaN(P)?x.push(v):u+=P}if(x.length){let v;for(let P of(v=!isNaN(r)&&r>u?Math.floor((r-u)/x.length):!isNaN(i)&&i>u?Math.floor((i-u)/x.length):s,x))l[P]=v,u+=v}else if(!isNaN(r)&&r>u){let v=r/u;for(let P=0;P<l.length;++P)l[P]=Math.floor(l[P]*v)}if(isNaN(r)&&(r=u),!isNaN(i)&&r>i){let v=i/r;for(let P=0;P<l.length;++P)l[P]=Math.floor(l[P]*v)}return l}function Yg(l,r){let i=l.content,s=l.attrs,u=function(F){let q=new j2;for(let J=0;J<F.length;++J){let re=F[J];for(let te=0;te<li.childCount(re);++te){let ie=li.child(re,te),de=J,ce=te;for(;q.getAt(de,ce);)ce++;q.setAt(de,ce,ie);let xe=ie.attrs.colspan||1,we=ie.attrs.rowspan||1;for(let Me=0;Me<we;++Me)for(let Se=0;Se<xe;++Se){if(Me===0&&Se===0)continue;let Re=de+Me,Be=ce+Se;if(q.getAt(Re,Be))xe=Se;else{let Ue=li.copy(Jg,null,{colspan:1,rowspan:1});q.setAt(Re,Be,Ue)}}}}return q}(i),x=u.getRectColSize(),v=function(F,q){let J=Array(F.length);for(let re=0;re<F.length;++re){let te=F[re],ie=Gn(te.attrs&&te.attrs.height);J[re]=isNaN(ie)?22:ie}return Xg(J,q,void 0,22)}(i,Gn(s&&s.height)),P=function(F,q,J){let re=Object.assign({},F),te=F.colgroup||[],ie=[];for(let ce=0;ce<q;++ce){let xe=Gn(te[ce]&&te[ce].width);ie.push(xe)}Xg(ie,Gn(F.width),J,24);let de=[];for(let ce=0;ce<q;++ce)de.push({width:ie[ce]});return re.colgroup=de,delete re.width,delete re.grid,re}(s,x,r),j=[];for(let F=0;F<i.length;++F){let q,J=[];for(let te=0;te<x;++te){let ie=u.getAt(F,te);ie||(ie=Jg),J.push(function(de){let ce;if(!de.attrs)return de;for(let xe of E2)de.attrs[xe]&&(ce||(ce=Object.create(null)),ce[xe]=Gn(de.attrs[xe]));return ce?li.copy(de,null,ce):de}(ie))}isNaN(v[F])||(q={height:v[F]});let re=li.copy(i[F],J,q);j.push(re)}return li.copy(l,j,P)}function Qg(l){var r;let i=l.attrs;if(!i)return;let s=i.config;if(!s)return;let u=i,x=s;if((x=function(v){let P=v.plotArea;if(!P)return v;let{nonNumericAsZero:j,zeroStart:F,xAxisTitle:q,yAxisTitle:J}=P;if(j==null&&!F&&!q&&!J)return v;if((v=Object.assign(Object.create(null),v)).plotArea=P=Object.assign(Object.create(null),P),delete P.nonNumericAsZero,delete P.zeroStart,delete P.xAxisTitle,delete P.yAxisTitle,P.blankAs||j==null||(P.blankAs=j?"zero":"gap"),!P.xAxis&&(q||F)){let re=P.xAxis=Object.create(null);q&&(re.title=q),F&&(re.scaling={min:0})}if(!P.yAxis&&(J||F)){let re=P.yAxis=Object.create(null);J&&(re.title=J),F&&(re.scaling={min:0})}return!P.yAxis2&&F&&(P.yAxis2={scaling:{min:0}}),v}(x=function(v){let P=v.plotArea;if(!P||P.series)return v;let j=P.subCharts;if(!j||!j.length)return v;P=(v=Object.assign(Object.create(null),v)).plotArea=Object.assign(Object.create(null),P),delete P.subCharts;let F=P.series=[];for(let q=0,J=j.length;q<J;++q){let{type:re,series:te,barDir:ie,grouping:de}=j[q];for(let ce=0,xe=te.length;ce<xe;++ce){let we=Object.assign(Object.create(null),te[ce]);we.type=re;let Me=we.marker;Me===!0?delete we.marker:Me===!1&&(we.marker={symbol:"none"}),re==="pie"&&(we.label={showPercent:!0}),F.push(we)}ie&&(v.barDir=ie),de&&(v.grouping=de)}return F.sort(V2),v.chartType=j.length>1?"hybrid":j[0].type,v}(x=(r=Kg(r=x,"title"),(r=Kg(r,"subtitle"))||x))||x)||x)!==s&&((u=Object.assign(Object.create(null),u)).config=x),!u.data){let v=function(P){let j,F=P.plotArea;if(!F)return null;let q=F.series;if(!q)return null;let J=q.length;if(J===0)return null;let re=F.dataDir,te=!!re&&re!=="row",ie=!1,de=!1;for(let Me=0;Me<J;++Me){let Se=q[Me];if(Se.cat!=null&&(ie=!0),Se.tx!=null&&(de=!0),ie&&de)break}let ce=[],xe=+!!ie,we=+!!de;for(let Me=0,Se=q.length;Me<Se;++Me){let Re=q[Me];if(!Re)continue;if(ie&&!j){let Ue=Re.cat;Ue!=null&&(bs(ce,0,we,function(Ze){return Ze}(Ue),te),j=!0)}if(de){let Ue=Re.tx;if(Ue!=null){let Ze=function(lt){return lt}(Ue);Array.isArray(Ze)&&(Ze=Ze[0]),bs(ce,xe+Me,0,Ze,te)}}let Be=Re.val;Be!=null&&bs(ce,xe+Me,we,function(Ue){return Ue}(Be),te)}return ie&&de&&bs(ce,0,0,[P.cornerData||""]),function(Me){if(Array.isArray(Me)&&Me.length){let Se=Me.length,Re=null,Be;for(let Ue=0;Ue<Se;++Ue){let Ze;Array.isArray(Me[Ue])?Ze=Me[Ue].length:(Ze=0,Be=!0),Re==null?Re=Ze:Re!==Ze&&(Be=!0,Re=Math.max(Re,Ze))}if(Be){let Ue=[];for(let Ze=0;Ze<Se;++Ze){let lt=Me[Ze];Array.isArray(lt)?lt.length!==Re&&((lt=lt.slice()).length=Re):lt=Array(Re),Ue.push(lt)}Me=Ue}}else Me=null;return Me}(ce)}(x);v&&((u=Object.assign(Object.create(null),u)).data=v)}l.attrs=u}function Kg(l,r){let i=l[r];return typeof i=="string"&&(l=Object.assign(Object.create(null),l,{title:{text:i}})),l}function V2(l,r){return l.index-r.index}function bs(l,r,i,s,u){var x,v,P,j;if(Array.isArray(s)||(s=[s]),u)for(let F=0,q=s.length;F<q;++F)((x=l)[v=i+F]||(x[v]=[]))[r]=s[F];else{let F=(P=l)[j=r]||(P[j]=[]);for(let q=0,J=s.length;q<J;++q)F[i+q]=s[q]}}function ei(l){return parseFloat(l.toFixed(2))}class Si{static getPageSizeByType(r,i){let s,u=this.PAGE_SIZE_DEFINE[r];u||(u=this.PAGE_SIZE_DEFINE.a4);let x=i!=="landscape",v=x?this.page_size_portrait_cache:this.page_size_landscape_cache;return r in v?s=v[r]:(s={width:ei(Qt(u[+!x],"mm","px")),height:ei(Qt(u[+!!x],"mm","px"))},v[r]=s),s}static getPagePadding(r){return{top:ei(Qt(r.top,"cm","px")),bottom:ei(Qt(r.bottom,"cm","px")),left:ei(Qt(r.left,"cm","px")),right:ei(Qt(r.right,"cm","px"))}}static getPageContentSize(r,i){return{width:ei(r.width-i.left-i.right),height:ei(r.height-i.top-i.bottom)}}static getDecorateMaxHeight(r){return ei(.2*r.height)}static getDefaultPageSetup(){return{left:2.54,top:2.54,right:2.54,bottom:2.54,orientation:"portrait",page_type:"a4"}}}Si.PAGE_SIZE_DEFINE={letter:[216,279],tabloid:[279,432],legal:[216,356],statement:[140,216],executive:[184,267],folio:[216,330],a3:[297,420],a4:[210,297],a5:[148,210],b4:[250,353],b5:[176,250]},Si.page_size_portrait_cache=Object.create(null),Si.page_size_landscape_cache=Object.create(null);class B2 extends Zl{getMigrators(){return[this.ver1to2,this.ver2to3,this.ver3to4,this.ver4to5,this.ver5to6,this.ver6to7]}ver1to2(){let r=this.doc.content||[],i=r[0]&&r[0].type==="invisible",s=i?r[0]:{type:"invisible"},u={type:"edit_area",content:i?r.slice(1):r.slice(0)},x=F=>({type:"header",attrs:{type:F},content:[{type:"paragraph",attrs:{}}]}),v=F=>({type:"footer",attrs:{type:F},content:[{type:"paragraph",attrs:{}}]}),P={type:"page_decorate",attrs:{},content:[x("cover"),x("even"),x("normal"),v("cover"),v("even"),v("normal"),{type:"page_num",attrs:{type:"normal"},content:[{type:"page_num_text"}]}]},j={type:this.doc.type,attrs:{schema:2,type:"document"},content:[s,u,P]};this.doc=j}ver2to3(){return this.options&&this.options.page_setup&&(this.doc.attrs.page_setup=this.options.page_setup),this.doc.attrs.schema=3,this.doc}ver3to4(){let r=this.doc.attrs.page_setup||Si.getDefaultPageSetup(),i=Si.getPageSizeByType(r.page_type,r.orientation),s=Si.getPagePadding(r),u=Si.getPageContentSize(i,s);return Ui(this.doc,{doc:function(x){x.attrs=Object.assign({},x.attrs),x.attrs.schema=4},table:function(x){return Yg(x,u.width)}})}ver4to5(){let r=this.doc;r.attrs=Object.assign(Object.create(null),r.attrs),r.attrs.schema=5;let i=r.content[2].content[6];return i.content=[{type:"page_num_block",content:i.content}],r}ver5to6(){return Ui(this.doc,{doc:Fn(6),code_block:function(r){r.type="paragraph"}})}ver6to7(){return Ui(this.doc,{doc:Fn(7),chart:Qg})}}let z2=Object.prototype.hasOwnProperty,Jl=()=>{};class F2 extends Zl{getMigrators(){return[this.toVer2,this.toVer3,Jl,Jl,Jl,this.toVer7]}toVer2(r){let i=function(te,ie,de){let ce=de.type,xe=ce.indexOf(te);xe>=0&&(de.type=ce.substring(0,xe)+ie+ce.substring(xe+te.length))},s=function(te){if(!te)return null;let ie=!1;for(let de in te)z2.call(te,de)&&(te[de]==null?delete te[de]:ie=!0);return ie?te:null},u=i.bind(this,"_holder","_master_holder"),x=i.bind(this,"_instance","_slide_holder"),v=["stroke","stroke-opacity","stroke-width","stroke-dasharray"],P=["fill","fill-opacity"],j=function(te,ie){if(ie.type.indexOf("master")>=0)i("_holder_shape","_master_holder_shape",te);else if(ie.type.indexOf("layout")>=0)i("_holder_shape","_layout_holder_shape",te);else throw Error(`Invalid parent type ${ie.type} of ${te.type}.`)},F=function(te){let ie,de=te.attrs.path_config;if(!("path_config"in te.attrs)||de==null)return;let ce=he(de,null,!1,v);de=he(de);for(let xe=v.length-1;xe>=0;--xe)delete de[v[xe]];if("stroke-dasharray"in ce&&ce["stroke-dasharray"]===""&&(ce["stroke-dasharray"]="none"),"stroke-opacity"in ce){let xe=parseFloat(ce["stroke-opacity"]);ce["stroke-opacity"]=isNaN(xe)?1:xe}if("stroke-width"in ce){let xe=parseFloat(ce["stroke-width"]);ce["stroke-width"]=isNaN(xe)?0:xe}(ce.stroke==="none"||ce.stroke==="transparent"||ce.stroke===""||ce["stroke-opacity"]===0)&&(ie=!1,delete ce.stroke,delete ce["stroke-opacity"]),ce["stroke-width"]===0&&(ie=!1,delete ce["stroke-width"]),ce=s(ce),ie==null&&ce!=null&&(ie=!0),te.attrs=he(te.attrs),te.attrs.path_config=de,ce!=null&&(te.attrs.stroke_config=ce),ie!=null&&(te.attrs.stroke=ie)},q=function(te){let ie,de=te.attrs.path_config;if(!("path_config"in te.attrs)||de==null)return;let ce=he(de,null,!1,P);de=he(de);for(let xe=P.length-1;xe>=0;--xe)delete de[P[xe]];if("fill-opacity"in ce){let xe=parseFloat(ce["fill-opacity"]);ce["fill-opacity"]=isNaN(xe)?1:xe}(ce.fill==="none"||ce.fill==="transparent"||ce.fill===""||ce["fill-opacity"]===0)&&(ie=!1,delete ce.fill,delete ce["fill-opacity"]),ce=s(ce),ie==null&&ce!=null&&(ie=!0),te.attrs=he(te.attrs),te.attrs.path_config=de,ce!=null&&(te.attrs.fill_config=ce),ie!=null&&(te.attrs.fill=ie)},J=function(te){te.attrs=he(te.attrs),"align_h"in te.attrs&&(te.attrs.align_h<0||(te.attrs.vertical_align=te.attrs.align_h),delete te.attrs.align_h),("padding_left"in te.attrs||"padding_top"in te.attrs||"padding_right"in te.attrs||"padding_bottom"in te.attrs)&&(te.attrs.padding={left:te.attrs.padding_left,top:te.attrs.padding_top,right:te.attrs.padding_right,bottom:te.attrs.padding_bottom},delete te.attrs.padding_left,delete te.attrs.padding_top,delete te.attrs.padding_right,delete te.attrs.padding_bottom)},re=function(te,ie){if(ie.type.indexOf("master")>=0)i("_text_style","_master_holder_text_block",te);else if(ie.type.indexOf("layout")>=0)i("_text_style","_layout_holder_text_block",te);else throw Error(`Invalid parent type ${ie.type} of ${te.type}.`)};return Ui(r,{doc:Fn(2),content_container:function(te){te.type="slide_content_container"},title_holder:u,sub_title_holder:u,body_holder:u,page_number_holder:u,title_holder_shape:[j,F,q],body_holder_shape:[j,F,q],title_text_style:[J,re],body_text_style:[J,re],text_shape:[F,q],shape:[F,q],line:[function(te){let ie=te.attrs.path_config;"path_config"in te.attrs&&ie!=null&&"arrow-type"in ie&&(te.attrs=he(te.attrs),te.attrs.arrow=ie["arrow-type"],ie=he(ie),delete ie["arrow-type"],te.attrs.path_config=ie)},F],image:[F],chart:[F],title_instance:x,sub_title_instance:x,body_instance:x,page_number_instance:x,title_instance_shape:[x,F,q],sub_title_instance_shape:[x,F,q],body_instance_shape:[x,F,q],page_number_instance_shape:[x,F,q],title_instance_text_block:[x,J],sub_title_instance_text_block:[x,J],body_instance_text_block:[x,J],page_number_instance_text_block:[x,J]})}toVer3(){return Ui(this.doc,{doc:Fn(3),table_box:function(r){let i=li.child(r,0);i.content[0]=Yg(li.child(i,0),Math.abs(r.attrs.transform.width))}})}toVer7(){let r=Object.create(null);function i(s){let u=s.content;if(u)for(let x=u.length-1;x>=0;--x){let v=u[x],P=v.attrs;P&&P.id||((v.attrs=Object.assign(Object.create(null),P)).id=function(){let j;do j=ge();while(r[j]);return r[j]=!0,j}())}}return Ui(this.doc,{doc:Fn(7),master_content_container:i,layout_content_container:i,slide_content_container:i,object_group:i,chart:Qg,line:function(s){let u=s.attrs;if(!u)return;let x=u.arrow;x&&(s.attrs=u=Object.assign(Object.create(null),u),delete u.arrow,(x==="start"||x==="both")&&(u.arrow_start="triangle"),(x==="end"||x==="both")&&(u.arrow_end="triangle"))}})}}class $i extends Error{constructor(r,i,s,u){super(i,s,u),this.status=r}static#e=this.ERR_SCHEMA_INVALID=0;static#t=this.ERR_MIGRATION_FAILED=1}class G2{constructor(r,i){this.schema=r,Object.assign(this,i)}isMigrated(){return this.migrated}getDoc(){return this.doc||(this.doc=this.schema.nodeFromJSON(this.json_doc),this.doc.updateState()),this.doc}getJsonDoc(){return this.json_doc||(this.json_doc=this.doc.toJSON())}getCommentStore(){return this.comments||(this.comments=An.fromJSON(this.json_comments))}getJsonCommentStore(){return this.json_comments||(this.json_comments=this.comments.toJSON())}getRemapping(){return this.remapping||(this.remapping=new vr)}getJsonSteps(){return this.json_steps||(this.json_steps=[])}getJsonMigrationSteps(){return this.json_migration_steps||(this.json_migration_steps=[])}}class H2 extends ur{collectActions(r){let i=[];return r.descendants((s,u)=>{this.shouldStartWithBasicBlock(s)&&(s.firstChild?.type.group?.includes("basic_block")||i.push(u+1))}),i}applyMigration(r){let i=r.type.schema.nodeType("paragraph");return this.performReplacement(r,this.collectActions(r),(s,u)=>({from:u,to:u,slice:ot.from(i.createAndFill())}))}getMigrationPosMap(r){let i=[],s=this.collectActions(r);for(let u=0,x=s.length;u<x;++u){let v=s[u];i.push(v,0,2)}return kt.create(i)}}let W2=l=>{if(!l.prototype.isMarksBlock)throw Error("Unable to mixin MarksBlock.");return class extends l{get attrs(){let r=super.attrs;return Te.mergeTypeAttrs(r,{textMark:r.textMarks})}}};class ef extends ur{applyMigration(r,i){let s=[];r.descendants((u,x)=>{if(!u.type.isMarksBlock||u.getAttrValue("textMarks",!0))return;let v=u.getAttrValue("textMark",!0);v&&v.length&&s.push({pos:x,attrs:{textMark:null,textMarks:v}})});for(let u=s.length-1;u>=0;--u){let{pos:x,attrs:v}=s[u],P=r.resolve(x).self;P&&(r=r.replaceSimple(x,x+P.nodeSize,ot.from(P.copyWithAttrs(v))))}return r.updateState(),r}}gt.jsonID("renameTextMarks",ef);let tf=l=>l&&parseFloat(l)||null,Xl=l=>{if(typeof l=="number")return l||0;let r=Lt(l,"px",1);return isNaN(r)?null:r},Yl={normalizer:Xl},rf={lineHeight:{empty_value:5566,normalizer:tf},paddingTop:Yl,paddingBottom:Yl},q2={textIndent:Te.create({optional:!0,clearable:!0,normalizer:l=>!!l||null}),paddingLeft:Te.create({optional:!0,empty_value:0,clearable:!0,normalizer:Yl.normalizer})},U2=l=>{if(!l.prototype.isParagraph)throw Error("Unable to mixin Paragraph.");return class extends l{get attrs(){return Te.mergeTypeAttrs(super.attrs,q2,rf)}get cssAttrs(){return Te.mergeTypeAttrs(super.cssAttrs,rf)}}};class nf extends ur{collectActions(r){let i=r.type.schema.markType("font_size"),s=[];return r.descendants((u,x)=>{let v,P;if(!u.is("BasicParagraph"))return;u.type._getInheritedCssAttrs(u)||u.getAttrValue("lineHeight",!0)!=null||(v=Object.assign(Object.create(null),v,{lineHeight:1.5}));let{paddingLeft:j,textIndent:F}=u.attrs;(j||F)&&(v=Object.assign(Object.create(null),v,{paddingLeft:null,textIndent:null,indentLeft:u.getAttrValue("indentLeft")+(j||0),indentFirst:u.getAttrValue("indentFirst")+(j||0)+30*!!F})),u.childCount&&(P=i.findFromSet(u.textMarks)||void 0),(v||P)&&s.push({node:u,pos:x,attrs:v,mark:P})}),s}applyMigration(r,i){let s=r.type.schema.markType("font_size"),u=this.collectActions(r);for(let x=u.length-1;x>=0;--x){let v,{pos:P,attrs:j,mark:F}=u[x],q=r.resolve(P).self;if(q){if(F&&(q.forEach((J,re,te)=>{let ie=J.marks;s.findFromSet(ie)?v&&(v[te]=J):(v||(v=q.content.content.slice(0,te)),v[te]=J.mark(F.addToSet(ie)))}),!v&&!j))continue;r=r.replaceSimple(P,P+q.nodeSize,ot.from(q.copy(v?xt.from(v):q.content,j)))}}return r.updateState(),r}}gt.jsonID("refineTextblock",nf);class af extends ur{collectActions(r){let i=[],s=(u,x)=>{if(!u.type.isTable)return;let v=!1;if(u.forEach(P=>{if(!P.childCount)return v=!0,!0},this,!0),v){let P=1;return u.forEach(j=>{P=Math.max(P,j.childCount)}),i.push({pos:x,max:P}),u.forEach((j,F)=>{let q=x+1+F+1;j.descendants(s,{start:q});let J=P-j.childCount;J&&i.push({pos:q+j.getContentSize(),count:J})}),!1}};return r.descendants(s),i}applyMigration(r,i){let s=r.type.schema.nodeType("table_cell");return this.performReplacement(r,this.collectActions(r),(u,x)=>{let{pos:v,count:P,max:j}=x;if(P)return{from:v,to:v,slice:ot.from(Array.from({length:P},()=>s.createFilled()))};if(j){let F=u.resolve(v).self;if(!F)return null;let q=F.getAttrValue("colgroup");return q.length>=j?null:{from:v,to:v+F.nodeSize,slice:ot.from(F.copyWithAttrs({colgroup:q.concat(Array(j-q.length).fill({width:24}))}))}}return null})}getMigrationPosMap(r){let i=[],s=this.collectActions(r);for(let u=0,x=s.length;u<x;++u){let{pos:v,count:P}=s[u];P&&i.push(v,0,4*P)}return kt.create(i)}}gt.jsonID("fillEmptyTableRow",af);class Ql extends di{get isLegacyDummyContainer(){return!0}}function sf(l,r,i){let s=function x(v){for(let P=v.childCount-1;P>=0;--P){let j=v.child(P);j.type.isLegacyDummyContainer&&(v=v.splice(P,1,x(j.content)))}return v}(l.content),u=0;if(i.canReplace(r,r+1,s)||(s=s.prepend(l.type.schema.nodeType("paragraph").createAndFill()),u=2,i.canReplace(r,r+1,s)))return{content:s,fill:u};throw new Ar("Flattened fragment is invalid.")}function of(l,r,i){let s=l.length-3;s>=0&&l[s]+l[s+1]===r?i>0?l[s+2]+=i:l[s+1]+=-i:(l.push(r),i>0?l.push(0,i):l.push(-i,0))}class lf extends ur{collectActions(r){let i=[];return r.descendants((s,u,x,v)=>{s.type.isLegacyDummyContainer&&(v.type.isLegacyDummyContainer||i.push({node:s,pos:u,index:x,parent:v}))}),i}applyMigration(r,i){return this.performReplacement(r,this.collectActions(r),(s,u)=>{let{pos:x}=u,v=s.resolve(x),P=v.self;return P?{from:x,to:x+P.nodeSize,slice:ot.from(sf(P,v.index(),v.parent).content)}:null})}getMigrationPosMap(r){let i=this.collectActions(r).map(v=>({...v,fill:sf(v.node,v.index,v.parent).fill})),s=0,u=i[0],x=[];return r.descendants((v,P,j,F,q)=>{v.type.isLegacyDummyContainer&&(q?P+=1+v.content.size:u&&u.pos===P&&(of(x,P,u.fill),u=i[++s]),of(x,P,-1))},{enableLeaving:!0}),kt.create(x)}}gt.jsonID("flattenNode",lf);class hf extends Ql{get isLegacyList(){return!0}get isLegacyListType(){return!0}}class $2 extends Jp{getNodeType(r){return r.type.isLegacyList?"list":r.type.is("EditableType")&&!(r.type.isLegacyListType||r.type.isInline||r.type.isTextblock)?"wrapper":r.is("ContentEditable")?"container":null}createOrderedListConfig(r,i){let s="decimal",u={format:s,text:Rl(s,i)},x=r&&r.getAttrValue("order",!0);return x!=null&&(u.start=x),u}createBulletListConfig(r,i){let s=`bullet_${i===0?"●":i===1?"○":"■"}`;return{format:s,text:Rl(s,i)}}createListConfig(r,i){return this.getListType(r)==="ol"?this.createOrderedListConfig(r,i):this.createBulletListConfig(r,i)}getListType(r){return r.type.isLegacyOrderedList?"ol":"ul"}}class uf extends ur{createListParser(){return new $2}applyMigration(r,i){let s=[],u=this.createListParser();return r.descendants((x,v,P,j,F)=>{if(F)return void u.remove(x);if(j.type.isLegacyListItem){let q=u.getList();if(q){let J,{level:re,attrs:te}=q;if(x.type.isListBlock&&P===0)J={listMarks:x.getAttrValue("textMarks",!0),...te};else if(x.type.isIndentBlock){let ie=x.type.baseIndent*(re+1);J={indentFirst:x.getAttrValue("indentFirst")+ie,indentLeft:x.getAttrValue("indentLeft")+ie}}else x.type.isTable;J&&s.push({pos:v,attrs:J})}}if(u.add(x),x.type.isListContainer){let q=u.getContainer();q&&s.push({pos:v,attrs:q.attrs,container:q})}},{skipInlineContent:!0,enableLeaving:!0}),this.performReplacement(r,s,(x,v)=>{let{pos:P,attrs:j,container:F}=v;if(F&&!F.has_list)return null;let q=x.resolve(P).self;return q?{from:P,to:P+q.nodeSize,slice:ot.from(q.copyWithAttrs(j))}:null})}}function Z2(l,r){let i=l.maybeMarkType(r._);return i&&!i.isLegacyDummyMark}function cf(l){return!l.type.isLegacyDummyMark}gt.jsonID("flattenList",uf);class df extends Wg{migrateMarks(r,i){if(r.length&&!r.every(cf))return r.filter(cf)}migrateJsonMarks(r,i){if(r.length&&!r.every(T))return r.filter(T)}apply(r,i){return T=Z2.bind(null,r.type.schema),super.apply(...arguments)}}gt.jsonID("eraseMark",df);class pf extends Wg{migrateMarks(r,i){if(!r.length)return;let s=i.type.schema;if(!s.markType("link").isInSet(r))return;let u=s.maybeMarkType("color");u&&!u.isInSet(r)&&(r=u.create({value:"#0F7BE9"}).addToSet(r));let x=s.maybeMarkType("underline");return x&&!x.isInSet(r)&&(r=x.create().addToSet(r)),r}}gt.jsonID("separateLinkStyle",pf);let J2={normalizer:l=>Qh(l)},gf={normalizer:l=>ln(l)},X2=["Left","Top","Right","Bottom"].reduce((l,r)=>{let i=`border${r}`;return l[i+"Style"]=J2,l[i+"Color"]=gf,l},{verticalAlign:{normalizer:l=>Hd(l)},backgroundColor:gf}),Kl=l=>class extends l{static getSelfPropertyName(){return"SynoCommentable"}get attrs(){return{...super.attrs,synocomment:Te.createOptional({empty_value:m,copyable:!1,backward:!!this.isTextblock,normalizer:r=>{let i;return r?(Array.isArray(r)?i=r:typeof r=="string"&&(i=r.split(" ")),i&&i.length?i:null):null}})}}},ff=(()=>{let l=["discussion","insertion","deletion"];return Te.createMarksNormalizer(r=>!l.includes(r._))})(),yf=l=>{if(!l.prototype.isMarksBlock)throw Error(`Unable to mixin non-MarksBlock ${l.name}.`);return class extends l{get attrs(){let r={...super.attrs},i=r.textMarks;if(i){let u=i.normalizer??_;r.textMarks=i.copy({normalizer:x=>ff(u(x))})}let s=r.listMarks;if(s){let u=s.normalizer??_;r.listMarks=s.copy({normalizer:x=>ff(u(x))})}return r}}};class xf extends xd{get isLegacyCommentMark(){return!0}}class mf extends xf{get isLegacySuggestionMark(){return!0}}function Zi(l,r,i){i.length&&(l[r]=_t(...i))}class vf extends ur{doApply(r,i){let s=r.type.schema.markType("tracking"),u=[],x=r.content.mapDescendants((v,P,j,F,q)=>{if(v.is("EditableType")){if(!q){let J=u.length?u[u.length-1]:null;if(v.is("Inline")){let re=J?J.blockComments:m,te=v.marks,ie=null;te.forEach((ce,xe)=>{ce.type.is("Tracking")?(re=_t(re,ce.getValue()),ie||(ie=te.slice(0,xe))):ie&&ie.push(ce)});let de=ie||te;re.length&&(de=s.create({id:re.slice()}).addToSet(de)),de!==te&&(v=v.mark(de))}else if(v.is("SynoCommentable")){let re,te;if(J){let ce,xe=J.blockEnds,we=P+v.nodeSize;for(ce=xe.length;ce>0&&we>=xe[ce-1];--ce);ce!==xe.length&&(J.blockComments.length=ce,xe.length=ce)}let ie=v.getAttrValue("synocomment")||m;if(J){re=J.blockComments;let ce=J.lastTextblockCommentInfo;ce&&(v.is("Textblock")&&ce.pos===P&&(te=ce.ids),J.lastTextblockCommentInfo=null)}if((!re||!re.length)&&(!te||!te.length)&&!ie.length)return v;let de={synocomment:null};if(v.type.isLeaf)Zi(de,"trackingLeaf",[v.getAttrValue("trackingLeaf"),re,ie]);else if(v.is("Textblock"))Zi(de,"trackingStart",[v.getAttrValue("trackingStart"),re,te]),Zi(de,"trackingEnd",[v.getAttrValue("trackingEnd"),re,ie]),J&&ie.length&&(J.lastTextblockCommentInfo={ids:ie,pos:P+v.nodeSize});else if(Zi(de,"trackingStart",[v.getAttrValue("trackingStart"),re,ie]),Zi(de,"trackingEnd",[v.getAttrValue("trackingEnd"),re,ie]),J&&ie.length){let{blockComments:ce,blockEnds:xe}=J,we=P+v.nodeSize;for(let Me of ie)ce.includes(Me)||(ce.push(Me),xe.push(we))}v=v.copyWithAttrs(de)}}}else if(v.is("ContentEditable")&&(q?u.pop():u.push({blockComments:[],blockEnds:[],lastTextblockCommentInfo:null})),!q&&v.is("SynoCommentable")){let J={synocomment:null};Zi(J,"trackingSelf",[v.getAttrValue("trackingSelf"),v.getAttrValue("synocomment")]),v=v.copyWithAttrs(J)}return v},{enableLeaving:!0});return r.replace(0,r.getContentSize(),ot.from(x))}}gt.jsonID("flattenComment",vf);class Y2 extends ur{applyMigration(r,i){if(r.queryChild("settings"))return r;let s=r.schema.nodeType("settings").createFilled();return r.replace(0,0,ot.from(s))}getMigrationPosMap(r){return r.queryChild("settings")?null:kt.create([0,0,1])}}let{mixinMark:Q2,mixinMarksBlock:K2,mixinListContainer:e5}=Ug({font_family:l=>{let r=l?.value??"Arial";return{...l,value:r,eastAsia:l?.eastAsia??r,complexScript:l?.complexScript??r}}}),{mixinMark:t5,mixinMarksBlock:r5,mixinListContainer:i5}=Ug({font_size:l=>{let r=l?.value??11,i=typeof r=="number"?r:Lt(r,"pt",11);return isFinite(i)||(i=11),{...l,value:i}}});class bf extends ur{applyMigration(r,i){let s=r.type.schema.nodeType("paragraph"),u=[];return r.descendants((x,v)=>{x.is("LegacyHeading")&&u.push(v)}),this.performReplacement(r,u,(x,v)=>{let P=x.resolve(v).self;if(!P)return null;let{synohead:j,level:F}=P.attrs,q=Object.assign(Object.create(null),P.attrs,{headingId:j,headingLevel:(parseInt(F,10)||1)-1});return{from:v,to:v+P.nodeSize,slice:ot.from(s.create(q,P.content))}})}}bf.register("mergeHeadingParagraph");let n5=l=>class extends l{static getSelfPropertyName(){return"LegacyHeading"}get attrs(){return{...super.attrs,synohead:Te.optional,level:Te.optional}}},a5={bold:"strong",italic:"em",fontsize:"font_size",fontfamily:"font_family",color:"color",bgcolor:"background_color",underline:"underline"};class wf extends ur{constructor(r,i){super(r,i),this.styles=i&&i.style}_convertCustomStyle(r){r===void 0&&(r=d);let i=Object.create(null),{attrs:s,marks:u}=r;if(s&&(i.lineHeight=tf(s.lineHeight),i.paddingTop=Xl(s.paddingTop),i.paddingBottom=Xl(s.paddingBottom)),i.lineHeight==null&&(i.lineHeight=1.5),u){let x=i.textMarks=[];R(u,(v,P)=>{if(v===!1)return;let j=a5[P];if(!j)return;let F={_:j};v!==!0&&(F.value=v),x.push(F)})}return i}convertCustomStyle(r){return En.map(i=>this._convertCustomStyle(r&&r[i.tag]))}applyMigration(r,i){let s,u,x,v=this.convertCustomStyle(this.styles),P=r.queryChild("style_editor");if(P&&!v)return r;let j=r.type.schema;return P?(s=P.node,x=(u=P.offset)+s.nodeSize):(s=j.nodeType("style_editor").createFilled(),u=x=r.queryChildOffset("edit_area",!0)),v&&(s=s.copyWithContent(s.content.map((F,q,J)=>{let re=v[J];return re?F.copyWithAttrs(re):F}))),r.replace(u,x,ot.from(s))}getMigrationPosMap(r){return r.queryChild("style_editor")?null:kt.create([r.queryChildOffset("edit_area",!0),0,16])}toJSON(r){let i=this.styles;return{...super.toJSON(r),...i&&{migration_options:{style:i}}}}}gt.jsonID("inheritCustomStyle",wf);let s5=["edit_area","header","footer","table_cell","navigation","list_item"];class Mf extends H2{shouldStartWithBasicBlock(r){return s5.includes(r.type.name)}}gt.jsonID("documentPrependBasicBlock",Mf);let _f=l=>l=U2(l=W2(l)),o5={diff:{nodes:{paragraph:{type:_f},table_row:{content:"table_cell*"},table_cell:{type:l=>{if(!l.prototype.isTableCell)throw Error("Unable to mixin TableCell.");return class extends l{get attrs(){return Te.mergeTypeAttrs(super.attrs,X2)}}}},ordered_list:{type:class extends hf{get isLegacyOrderedList(){return!0}get attrs(){return{order:Te.create({optional:!0,empty_value:1,normalizer:l=>isNaN(l=parseInt(l,10))||l===1?null:l})}}},content:"list_item+"},bullet_list:{type:class extends hf{get isLegacyBulletList(){return!0}},content:"list_item+"},list_item:{type:class extends Ql{get isLegacyListItem(){return!0}get isLegacyListType(){return!0}},content:"basic_block block*"},blockquote:{type:Ql,content:"block+"},heading:(l,r)=>Object.assign(Object.create(null),r.paragraph,{type:n5(_f(r.paragraph.type))}),doc:{content:l=>l&&l.replace(/(?:\s*\(\s*(?:style_editor|invisible)\s*\|\s*(?:style_editor|invisible)\s*\)){2}/,r=>`${r}?`)}},groups:{block:l=>l.concat("heading","ordered_list","bullet_list","blockquote"),basic_block:l=>l.concat("heading","ordered_list","bullet_list")},marks:{code:class extends Rr{get isLegacyDummyMark(){return!0}get attrs(){return{value:Te.create({default:0,empty_value:0})}}}}},steps:[{stepType:Mf.prototype.jsonID},{stepType:ef.prototype.jsonID},{stepType:nf.prototype.jsonID},{stepType:af.prototype.jsonID},{stepType:uf.prototype.jsonID},{stepType:lf.prototype.jsonID},{stepType:df.prototype.jsonID},{stepType:pf.prototype.jsonID},{stepType:bf.prototype.jsonID},{stepType:wf.prototype.jsonID}]},l5={diff:{nodes:{...["paragraph","style_paragraph","table","table_row","table_cell","navigation","horizontal_rule","page_break"].reduce((l,r)=>(l[r]={type:Kl},l),Object.create(null)),paragraph:{type:l=>Kl(yf(l))},style_paragraph:{type:l=>Kl(yf(l))}},marks:{discussion:class extends xf{get isLegacyDiscussionMark(){return!0}},insertion:class extends mf{get isLegacyInsertionMark(){return!0}},deletion:class extends mf{get isLegacyDeletionMark(){return!0}}},preset:null},steps:[{stepType:vf.prototype.jsonID}]};class Af extends ur{determineDrawingNodeTypeName(r){if(r.is("Drawing"))return r.type.name;if(!r.is("LegacyGraph"))return null;switch(r.getAttrValue("config").type){case"image":return"picture";case"line":case"connect_line":return"connector";default:return"shape"}}determineDrawingNodeType(r){let i=this.determineDrawingNodeTypeName(r);return i?r.type.schema.nodeType(i):null}computeDrawingNodeSize(r){if(r.is("Drawing")){let i=r.nodeSize;return r.is("Leaf")||r.descendants((s,u)=>{s.is("LegacyGraph")&&(i+=this.computeDrawingNodeSize(s)-1)}),i}if(!r.is("LegacyGraph"))return 0;{let i=this.determineDrawingNodeType(r);return i?i.is("Leaf")?1:6:0}}convertDrawingNode(r){if(r.is("Drawing")){if(!r.is("Leaf")){let i=[];r.descendants((s,u)=>{s.is("LegacyGraph")&&i.push(u)});for(let s=i.length-1;s>=0;--s){let u=i[s],x=r.nodeAt(u);x&&x.is("LegacyGraph")&&(r=r.replace(u,u+x.nodeSize,ot.from(this.convertDrawingNode(x))))}}return r}if(!r.is("LegacyGraph"))return null;{let i=this.determineDrawingNodeType(r);if(!i)return null;let s=r.getAttrValue("config");return i.createFilled({id:r.getAttrValue("synograph"),config:{paddingLeft:2,paddingTop:4,paddingRight:2,paddingBottom:2,...s,type:i.name==="picture"?"rect":s.type}},null,r.marks)}}doCollectActionsInvisible(r,i,s){r.push({from:s+1,to:s+1+i.getContentSize(),nodes:i.childs().filter(u=>u.is("Drawing")||u.is("LegacyGraph"))})}doCollectActionsOther(r,i,s){i.descendants((u,x)=>{if(u.is("LegacyGraph"))return r.push({from:x,to:x+u.nodeSize,nodes:[u]}),!1},{start:s+1})}collectActions(r){let i=[];return r.forEach((s,u)=>{s.is("Invisible")?this.doCollectActionsInvisible(i,s,u):this.doCollectActionsOther(i,s,u)}),i}applyMigration(r,i){return this.performReplacement(r,this.collectActions(r).map(s=>({...s,nodes:s.nodes.map(this.convertDrawingNode,this).filter(u=>!!u)})),(s,u)=>{let{from:x,to:v,nodes:P}=u;return{from:x,to:v,slice:ot.from(P)}})}getMigrationPosMap(r){let i=[];return this.collectActions(r).forEach(s=>{let{from:u,to:x,nodes:v}=s;kt.appendRange(i,u,x-u,v.reduce((P,j)=>P+this.computeDrawingNodeSize(j),0))}),kt.create(i)}}Af.register("convertGraphMigration");class Sf extends ur{collectMoveInfo(r){let i=r.queryAllChild("invisible"),s=r.queryChild("edit_area");return i.length!==0&&s&&(i.length!==1||i[0].index!==s.index-1)?{sources:i,target:s}:null}applyMigration(r,i){let s=this.collectMoveInfo(r);if(!s)return r;let{sources:u,target:x}=s;if(u.length===1){let v=u[0];return r.replaceAll(ot.from(r.content.moveTo(v.index,v.index<x.index?x.index-1:x.index)))}{let v=r.getContent().slice();for(let{index:j}of u)v[j]=null;let P=[];for(let{node:j}of u)P.push(...j.getContent());return v.splice(x.index,0,u[0].node.copyWithContent(P)),r.replaceAll(ot.from(v.filter(j=>!!j)))}}getMigrationPosMap(r){let i=this.collectMoveInfo(r);if(!i)return null;let{sources:s,target:u}=i;if(s.length===1){let x=s[0];return new fr([x.offset,x.node.nodeSize,x.index<u.index?u.offset-x.node.nodeSize:u.offset])}{let x=[];for(let P of s)x.push(P.offset,P.node.nodeSize,0);let v=s.findIndex(P=>{let{offset:j}=P;return u.offset<j});return x.splice((v<0?x.length:v)*3,0,u.offset,0,s.reduce((P,j)=>{let{node:F}=j;return P+F.getContentSize()},2)),kt.create(x)}}}Sf.register("moveInvisiblePositionMigration");let h5={diff:{nodes:{doc:{content:l=>l&&l.replace(/style_editor|invisible/g,r=>r==="style_editor"?"(invisible | style_editor)":"(style_editor | invisible)")},invisible:{content:"(drawing | graph | image)*"},graph:{type:class extends da{static getSelfPropertyName(){return"LegacyGraph"}get attrs(){return{synograph:Te.create({default:ge,copyable:!1}),config:Te.create({default:{}})}}getObjectSize(){return{width:0,height:0}}}}},groups:{inline:l=>l.concat("graph")},preset:l=>{let r=Array.from({length:7},(i,s)=>{let u=s-1;return{id:u>=0?`_heading${u}`:null,level:u}});return l.nodeFrom(["doc",null,null,["invisible"],["style_editor",null,null,...r.map(i=>{let{id:s,level:u}=i;return["style_paragraph",{...u>=0?{headingId:s,headingLevel:u}:null,lineHeight:1.15}]})]],"fill")}},steps:[{stepType:Af.prototype.jsonID},{stepType:Sf.prototype.jsonID}]};class Cf extends Y2{}Cf.register("documentAddSettingsMigration");let u5={diff:{nodes:{doc:{content:l=>l&&l.replace(/settings/g,"settings?")}}},steps:[{stepType:Cf.prototype.jsonID}]},If={type:l=>r5(K2(l))},ws={type:l=>i5(e5(l))},c5=new class{constructor(l,r){if(l.getVersion()!==r.length)throw Error(`The legacy schema configs does not match the schema version: ${r.length}, ${l.getVersion()}`);this.schema=l,this.legacySchemas=this.createContexts(r)}createContexts(l){let r=l.findIndex(s=>!!s);r<0&&(r=l.length);let i=Array.from({length:r},()=>({}));for(let s=r;s<l.length;++s)i.push(this.createContext(l[s],s));return i}createContext(l,r){return l||(l={}),this.fillMigrateSchemaStep(l,r),l}fillMigrateSchemaStep(l,r){(l.diff||(l.diff={})).version=r;let i=l.steps||(l.steps=[]);i.push({stepType:qg.prototype.jsonID}),i.forEach(s=>{s.version=r})}buildContext(l){return $g(this.schema,this.legacySchemas,l)[l]}getCurrentSchema(){return this.schema}fetch(l){if(l<0)throw RangeError(`Given schema version is invalid: ${l}`);let{schema:r,legacySchemas:i}=this;return l>=i.length?r:this.buildContext(l).schema}migrate(l,r,i){var s;return s=this.schema,new G2(s,function(u,x,v,P,j){let F,q;j===void 0&&(j=d),u=function(Me,Se){let Re,Be=Zl.getDocType(Me);if(Be==="document")Re=new B2(Me,Se);else if(Be==="presentation")Re=new F2(Me,Se);else throw Error("Can not migrate file of Invalid type");return Re.doMigration()}(u,j).doc,x=x||[];let J=v.version,re=u.attrs&&u.attrs.schema||J;if(re>J)throw new $i($i.ERR_SCHEMA_INVALID,`Json version (${re}) is newer than schema version (${J}).`);$g(v,P,re);let{apply_steps:te}=j,ie=[],de=[],ce=An.fromJSON(x),xe=ce;function we(Me,Se){if(!Me.length)return Me;({doc:q,comment_store:ce}=Me);let Re=Me.steps.map(Ue=>Ue.toJSON());ie.push(...Re),Se&&de.push(...Re);let Be=Me.toRemapping();return F?F.appendMapping(Be):F=Be,Me}if(re!==J||te)for(let Me=re;Me<=J&&(Me!==J||te);++Me){let Se=Me===J?{schema:v}:P[Me];if(!Se)break;let{schema:Re,steps:Be}=Se;try{q?q.type.schema!==Re&&(q=Re.nodeFromJSON(q.toJSON())).updateState():(q=Re.nodeFromJSON(u)).updateState()}catch(Ue){throw ir.default.error(Ue),new $i($i.ERR_MIGRATION_FAILED,`Migration failed when loading doc in schema ${Me}.`)}if(te){try{we(te(q,ce))}catch(Ze){q.updateState(),ir.default.error("Failed to apply pending steps.",Ze)}te=null;let Ue=q.getAttrValue("schema");if(Ue!==Me){Me=Ue-1;continue}}if(Be&&Be.length)try{let Ue=new $t(q,ce);Be.map(Ze=>gt.fromJSON(v,Object.assign(Object.create(null),Ze,{migration_options:j}))).forEach(Ue.step,Ue),we(Ue,!0)}catch(Ue){throw ir.default.error(Ue),new $i($i.ERR_MIGRATION_FAILED,`Migration failed when applying steps in schema ${Me}.`)}}return q&&(q.type.schema===v?u=null:(u=q.toJSON(),q=null)),ce!==xe&&(x=null),{migrated:re!==J,doc:q,comments:ce,remapping:F,json_doc:u,json_comments:x,json_steps:ie,json_migration_steps:de}}(l,r,s,this.legacySchemas,i))}}($l,[null,null,null,null,null,null,null,o5,l5,h5,u5,{},{diff:{nodes:{paragraph:If,style_paragraph:If,edit_area:ws,text_box:ws,header:ws,footer:ws},marks:{font_family:Q2,font_size:t5}}}]);class Gt{constructor(r,i){this.pm=r,this.options=i,this._monStoppers=[],this._mons=[]}static get pluginName(){return""}static get pluginGroupName(){return""}static get pluginDependency(){return[]}static get pluginSubscriptions(){return null}get pluginClassPrefix(){let r=this.constructor;return`syno-o-pm-plugin-${(r.pluginGroupName||r.pluginName).replace(/_/g,"-")}-`}detach(){this._monStoppers.forEach(i=>i());let r=this._mons;for(let i=r.length-1;i>=0;--i){let s=r[i];s.target.removeEventListener(s.name,s.eventHandler,s.eventOptions)}}init(){this.bindEvents()}destroy(){this.detach()}monStopper(r){this._monStoppers.push(r)}monitorEvent(r){return this._mons.push(r),r}unmonitorEvent(r){let{target:i,name:s,handler:u,scope:x}=r,v=this._mons;for(let P=v.length-1;P>=0;--P){let j=v[P];if(j.target===i&&j.name===s&&j.handler===u&&j.scope===x)return v.splice(P,1)[0]}return null}bindEvent(r,i,s,u,x){let v,P=!x||x.monitor!==!1,j=!!(x&&x.once);v=P&&j?(function(){for(var F=arguments.length,q=Array(F),J=0;J<F;J++)q[J]=arguments[J];return this.unmonitorEvent({target:r,name:i,handler:s,scope:u}),s.apply(u,q)}).bind(this):s.bind(u),P&&this.monitorEvent({target:r,name:i,handler:s,scope:u,eventHandler:v,eventOptions:x}),r.addEventListener(i,v,x)}unbindEvent(r,i,s,u,x){let v=this.unmonitorEvent({target:r,name:i,handler:s,scope:u});return!!v&&(r.removeEventListener(i,v.eventHandler,v.eventOptions),!0)}bindEvents(){}}let d5=new Map;class p5 extends Gt{constructor(r,i){super(r,i),this.hiddenRegion=w??=this.ensureHiddenRegion(),this.hiddenItemMap=d5}static get pluginName(){return"hidden_region"}ensureHiddenRegion(){let r=this.pm.root;return r.querySelector(`.${this.pluginClassPrefix}iframe`)||r.body.appendChild(this.createHiddenRegion())}createHiddenRegion(){return It(["div",{class:this.pluginClassPrefix+"iframe",inline_style:{position:"absolute",left:"-10000px",top:"-10000px",width:"5566px",height:"5566px",opacity:0,overflow:"hidden","pointer-events":"none","z-index":0}}])}has(r){return this.hiddenItemMap.has(r)}get(r){return this.hiddenItemMap.get(r)||null}add(r,i){return this.get(r)||(typeof i=="function"&&(i=i()),this.hiddenRegion.appendChild(i),this.hiddenItemMap.set(r,i),i)}remove(r){let i=this.get(r);return i?(this.hiddenRegion.removeChild(i),this.hiddenItemMap.delete(r),i):null}clear(){sn(this.hiddenRegion),this.hiddenItemMap.clear()}}class Et{constructor(r,i,s){this.module=r,this.options=i||Object.create(null),this.name=String(s||r.pluginName||r.name)}getName(){return this.name}getGroupName(){return this.module.pluginGroupName||""}getSubscriptions(){return this.module.pluginSubscriptions}get(r){return r.getPlugin(this.name)}attach(r){let i=this.module.pluginDependency;if(i&&!i.every(s=>r.getPlugin(s)))throw RangeError(`Plugin dependency of ${this.name} is missing. ${i}`);return new this.module(r,this.options)}detach(r){let i=this.get(r);i&&i.detach&&i.detach()}config(r){return r?new Et(this.module,{...this.options,...r},this.name):this}}let g5=new Et(class extends p5{constructor(l,r){super(l,r)}});class f5{constructor(r,i,s){this.fn=r,this.resolver=i,this.rejecter=s}execute(){let r;try{r=this.fn(this.fn_param)||Promise.resolve()}catch(i){r=Promise.reject(i)}return r.then(this.resolver,this.rejecter)}}class y5{constructor(r){this.queue_=[],this.running_count_=0,this.max_concurrent_=r&&r.max_concurrent||6}enqueue(r){return new Promise((i,s)=>{let u=new f5(r,i,s);this.queue_.push(u),this._scheduleConsume()})}clear(){this.queue_.length=0}isEmpty(){return this.queue_.length===0}_scheduleConsume(){for(;this.running_count_<this.max_concurrent_&&!this.isEmpty();){let r=this.queue_.shift();this.running_count_++,setTimeout(()=>{r.execute().then(()=>this._onTaskDone())},0)}}_onTaskDone(){this.running_count_--,this._scheduleConsume()}}class x5 extends Gt{constructor(r,i){super(r,i),this.taskAttrName=i.taskAttrName||"data-image-loader-task",this.taskQueue=new y5,this.urlLoadedMap=new Map,this.taskConfigMap=new Map,this.domLoadingMap=new Map,this.nextTaskId=0}static get pluginName(){return"image_loader"}isUrlLoaded(r){return this.urlLoadedMap.has(r)}async loadImageUrl(r){let i=await r;if(!i)throw Error("Loading empty image url.");let s=this.urlLoadedMap,u=s.get(i);if(u)return u;let x=this.taskQueue.enqueue(this.doLoadImageUrl.bind(this,i));return s.set(i,x),x}doLoadImageUrl(r){return new Promise((i,s)=>{let u=new Image;u.addEventListener("load",()=>{i(r)}),u.addEventListener("error",x=>{s(x)}),u.setAttribute("src",r)})}generateTaskId(){let r=String(this.nextTaskId);return++this.nextTaskId,r}createTask(r){let i=this.generateTaskId();return this.taskConfigMap.set(i,Promise.resolve(r)),i}async getTaskConfig(r){let i=this.taskConfigMap.get(r);if(!i)throw Error(`Given task id is invalid: ${r}`);return i}setImageElementUrl(r,i,s){if(i==="background"){if(s){let u=s.match(/^\s*url\s*\((.*)\)\s*$/i);u&&(s=u[1].trim()).length>=2&&s.startsWith('"')&&s.endsWith('"')&&(s=s.slice(1,-1)),s=`url(${s})`}r.style.backgroundImage=s}else{let u=r.nodeName.toLowerCase();switch(u){case"img":r.src=s;return;case"image":r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);return;default:throw Error(`Unknown image element: ${u}`)}}}isDomLoading(r){return this.domLoadingMap.has(r)}isDomLoadable(r){return!!r.getAttribute(this.taskAttrName)}async loadImageTask(r,i){try{let{type:s,url:u}=await this.getTaskConfig(i);return u&&await this.loadImageUrl(u),this.setImageElementUrl(r,s,u),!0}catch(s){return ir.default.warn(s),!1}}async loadImageDom(r,i){let s=this.domLoadingMap,u=s.get(r);if(u)return u;if(i){let j=this.createTask(i);r.setAttribute(this.taskAttrName,j)}let x=r.getAttribute(this.taskAttrName)||"",v=this.loadImageTask(r,x);s.set(r,v);let P=await v;return r.removeAttribute(this.taskAttrName),s.delete(r),P}loadDescendant(r){let i=r.querySelectorAll(`[${this.taskAttrName}]`);return i.length?Promise.all(Array.prototype.map.call(i,s=>this.loadImageDom(s))).then(s=>s.some(u=>u)):Promise.resolve(!0)}}let m5=new Et(class extends x5{constructor(l,r){super(l,r)}}),{elt:Pf}=f;class v5 extends Gt{scan(r,i,s,u,x){let v=new b5(r),P=x.dirty;function j(){for(;v.dom;){let ie=be.fly(v.dom).getOffset();if(!(ie<q))return ie===q;v.next(!0)}}let F=0,q=0,J=s.firstChild;for(let ie=0,de=0;ie<i.childCount;ie++){let ce,xe,we,Me,Se=i.child(ie),Re=u+de,Be=J===Se?F:s.index(Se,F+1);if(Be>-1)for(xe=F,ce=Se;F!==Be;)q+=J.nodeSize,J=s.maybeChild(++F);let Ue=Se.getRenderRank();if(Se.resetRenderRank(),Ue===tt.RENDER_NONE&&ce&&!P.get(ce)&&j())we=!0,Me=v.dom;else if(Ue!==tt.RENDER_REDRAW&&(!this.pm.enableBreakLineHook||!Se.type.isTextblock)&&J&&P.get(J)!==2&&!Se.isText&&!Se.shouldRender(J)&&(!Se.type.isTableCell||!J.dom||!!Se.state.display==(J.dom.style.display!=="none"))&&j()){if(we=!0,Me=v.dom,this.linkDOM(Se,Me),!J.type.isLeaf){let{changed:Ze}=this.scan(Me,Se,J,Re+1,x);if(Ze)for(let lt=Ze.length-1;lt>=0;--lt)v.collectChanged(Ze[lt])}be.fly(Me).syncSize(Se.nodeSize)}else{we=!1,x.pos=Re,x.offset=de,x.redrawn&&x.redrawn.set(Se,Re);let Ze=Se.render(x);if(Ze.childNodes.length!==1)throw Error("not support multi-dom for non-inline node yet.");Me=Ze.firstChild,v.insertBefore(Me)}if(this.pm.hook.slidePreview){for(let Ze=xe;Ze<Be;++Ze){let lt=s.child(Ze);this.pm.hook.slidePreview(-1,lt.dom,lt,Re,-1)}this.pm.hook.slidePreview(+!we,Me,Se,Re,we?F:-1)}if(we){if(Se.isText)for(let Ze=de,lt=Ze+Se.nodeSize;Ze<lt;){let At=be.fly(v.dom);At.setOffset(Ze),Ze+=At.getSize(),v.next()}else de!==q&&be.fly(v.dom).syncOffset(de),v.next();q+=J.nodeSize,J=s.maybeChild(++F)}de+=Se.nodeSize}v.end(!0);let re=v.removed;for(let ie=re.length-1;ie>=0;--ie)be.fly(re[ie]).removeAll();let te=v.getChangedArray();if(this.hookChange(i,r,te),this.pm.hook.slidePreview)for(let ie=F;ie<s.childCount;++ie){let de=s.child(ie);this.pm.hook.slidePreview(-1,de.dom,de,u+i.nodeSize-2,-1)}return{changed:te}}}class b5 extends Oo{constructor(r,i){super(r,i),this.removed=[],this.changed=null}checkDOM(r){let i=super.checkDOM(r);return r&&!i&&(this.last_dom=r),i}ensureDOM(){let r=this.parent,i=this.child_container;super.ensureDOM(),r!==this.parent&&(this.last_parent=r,this.last_child_container=i)}next(r){return this.dom&&(this.last_dom=this.dom,(r||this.removing)&&this.collectRemoved(this.dom)),super.next()}end(r){this.removing=!!r;let i=super.end();return this.removing=!1,i}findParent(r){if(!(r=be.fly(r).parentNode))return null;this.parent_map||(this.parent_map=new Map,be.fly(this.root).forAll(function(s){this.parent_map.set(s,!0)},this));let i=be.fly(r).getNode();if(i&&i.type.pseudoType&&(r=be.fly(r).parentNode),!this.parent_map.has(r)){let s=be.fly(r).getNode(),u=be.fly(this.root).getNode();if(!s||!u||s.type!==u.type)return null}return r}getChangedArray(){let r=[];return this.changed&&this.changed.forEach((i,s)=>{r.push(s)}),r}collectChanged(r){this.changed||(this.changed=new Map),(r=this.findParent(r))&&this.changed.set(r,!0)}collectRemoved(r){this.removed.push(r),be.fly(r).forAll(this.collectChanged,this)}insertBefore(r){this.last_dom?this.last_dom.parentNode.insertBefore(r,this.last_dom.nextSibling):this.last_child_container?this.last_child_container.appendChild(r):this.dom?this.dom.parentNode.insertBefore(r,this.dom):be.fly(this.root).childContainer.appendChild(r),this.last_dom=r,this.collectChanged(r)}}class w5 extends v5{constructor(r,i){for(let s of(super(r,i),this.progressiveStopThreshold=i.progressiveStopThreshold,this.hooks=this.createHooks(),this.buildDefaultHooks(i.hooks),this.getFreezeList())){let u=this[s];typeof u=="function"&&(this[s]=u.bind(this))}}static get pluginName(){return"draw"}getFreezeList(){return["onChildContainer","onDrawRender","onDrawAfterRender","onDrawChange","onDrawAfterChildRender","onDrawMarkRender","renderInlineFlat","overrideChildContainer","filterContentProgressiveRenderable"]}getDrawTarget(){return this.pm.getMode()}createHooks(){let r,i=this.pm.schema,s=u=>Y(i.nodes,u);return{render:s(()=>new qr({pipelineTransformer:(u,x)=>u??x})),afterRender:s(()=>new ut),childContainer:s(()=>new qr({pipelineParameterIndex:2})),afterChildRender:s(()=>new ut),redraw:s(()=>new ut),change:s(()=>new ut),event:s(()=>new ut),markRender:(r=()=>new ut,Y(i.marks,r))}}buildDefaultHooks(r){if(!r)return;let i={priority:-100};R(r,(s,u)=>{if(s)for(let{checker:x,handler:v,options:P}of s)this.addEventListener(u,v,{...i,...P,checker:x})})}checkHookType(r){return r in this.hooks}addEventListener(r,i,s){if(!this.checkHookType(r))return void ir.default.error(`Given draw hook type is invalid: ${r}`);let u=s?.checker;if(!u)return void ir.default.error(`Given draw hook checker is invalid: ${u}`);let x=aa.ensureFilter(u),v=this.pm.schema;R(this.hooks[r],(P,j)=>{let F=r.startsWith("mark")?v.markType(j):v.nodeType(j);x.call(null,F)&&P.add(i,s)})}removeEventListener(r,i,s){if(!this.checkHookType(r))return void ir.default.error(`Given draw hook type is invalid: ${r}`);R(this.hooks[r],u=>{u.remove(i)})}hook(r,i,s){return this.hooks[r][i].dispatch(...s)}hookRender(r,i,s,u){return this.hook("render",i.type.name,arguments)}hookAfterRender(r,i,s,u){return this.hook("afterRender",r.type.name,arguments)}hookChildContainer(r,i,s){return this.hook("childContainer",r.type.name,arguments)}hookAfterChildRender(r,i,s,u){return this.hook("afterChildRender",r.type.name,arguments)}hookRedraw(r,i,s){return this.hook("redraw",r.type.name,arguments)}hookChange(r,i,s,u){return r.is("Text")||r.is("RootType")||be.fly(r.dom).bumpVersion(),this.getPmElement(i).syncDrawSize(),this.hook("change",r.type.name,arguments)}hookEvent(r,i){return this.hook("event",r.type.name,arguments)}hookMarkRender(r,i,s){return this.hook("markRender",i.type.name,arguments)}splitTextDOM(r,i){let s=Ti(r);if(!s||!ci(s))return null;let u=s.data;if(!(i>0&&i<u.length))return null;let x=r.cloneNode(!0);Ti(x).data=u.slice(i),s.data=u.slice(0,i);let v=this.getPmElement(r,!0);if(v.isOffsetElement){let P=this.getPmElement(x,!0);P.setOffset(v.getOffset()+i),P.setSize(v.getSize()-i);let j=v.getNode();j!==void 0&&P.setNode(j),v.setSize(i),v.insertNextSegment(x)}return this.pm.getPlugin("line_breaker")?.onSplitText(r,i,x),this.pm.getPlugin("font")?.onSplitText(r,i,x),x}ensureDomRenderOptions(r){let i=r?.target;i&&i!=="editor"&&i!=="viewer"||(i="general");let{onChildContainer:s,onRender:u,onAfterRender:x,onAfterChildRender:v,onMarkRender:P}=r??d;return{...r,target:i,onChildContainer:yn.isTargetMatch(i,"display")?(j,F)=>{this.onChildContainer(j,F),s?.(j,F)}:s,onRender:(j,F,q,J,re)=>(F=this.hookRender(F,j,re,q),F=u?.(j,F,q,J,re)??F),onAfterRender:(j,F,q,J,re)=>{this.hookAfterRender(j,F,re,q),x?.(j,F,q,J,re)},onAfterChildRender:(j,F,q,J,re)=>{this.hookAfterChildRender(j,F,re,q),v?.(j,F,q,J,re)},onMarkRender:(j,F,q)=>{this.hookMarkRender(F,j,q),P?.(j,F,q)}}}renderNode(r,i){let s=r.render(this.ensureDomRenderOptions(i));if(!s.firstElementChild||s.childNodes.length!==1)throw Error(`Not support multi-element for node ${r.name}.`);return s.firstElementChild}renderFragment(r,i){return r.render(this.ensureDomRenderOptions(i))}renderText(r,i,s){return this.pm.schema.text(r,i).render(this.ensureDomRenderOptions(s))}createDrawOptions(){return{target:this.getDrawTarget(),document,pos:0,ranges:this.pm.ranges.activeRangeTracker(),onChildContainer:this.onChildContainer,onRender:this.onDrawRender,onAfterRender:this.onDrawAfterRender,onChange:this.onDrawChange,onAfterChildRender:this.onDrawAfterChildRender,onMarkRender:this.onDrawMarkRender,renderInlineFlat:this.renderInlineFlat,overrideChildContainer:this.overrideChildContainer,filterContentProgressiveRenderable:this.filterContentProgressiveRenderable,progressiveStopThreshold:this.progressiveStopThreshold??this.getDefaultProgressiveStopThreshold()}}onChildContainer(r,i){be.fly(i).setChildContainer(r)}onDrawRender(r,i,s,u,x){let v=this.hookRender(i,r,x,s);return r.is("Inline")&&v.setAttribute("data-syno-inline","true"),v}onDrawAfterRender(r,i,s,u,x){r.is("Inline")&&i.setAttribute("data-syno-inline-wrapper",r.is("Text")?"text":"non_text"),this.applyOffsetSize(i,u,r.nodeSize),this.linkDOM(r,i),this.hookAfterRender(r,i,x,s)}onDrawChange(r,i,s,u,x,v){this.hookChange(r,i,s,x?[x.dom]:null)}onDrawAfterChildRender(r,i,s,u,x){r.is("Textblock")&&!r.is("DefaultParagraph")&&function(v,P){let j=be.fly(v).childContainer,F=P.content.size===0||P.lastChild.is("HardBreak")||P.type.isCode&&P.lastChild.isText&&/\n$/.test(P.lastChild.text),q=j.lastChild,J=q&&q.nodeType===q.ELEMENT_NODE&&q.getAttribute("pm-ignore")==="trailing-break";if(!F||!J)if(F)j.appendChild(Pf("span",{linebreak:"true","pm-ignore":"trailing-break",inline_style:Qe.setToStyle(P.textMarks)},Pf("br")));else{if(!J)return;j.removeChild(q)}}(i,r),this.hookAfterChildRender(r,i,x,s),r.resetRenderRank(),this.hookRedraw(r,i,s),this.hookEvent(r,i)}onDrawMarkRender(r,i,s){this.hookMarkRender(i,r,s)}renderInlineFlat(r,i,s,u,x){if(!r.is("Text"))return;let v=i.parentNode;if(!v)return;let P=i,j=s;for(;P;){x.advanceTo(j);let F=be.fly(P).getSize(),q=x.nextChangeBefore(j+F);if(q>-1){F=q-j;let J=this.splitTextDOM(P,F);J&&v.insertBefore(J,P.nextSibling)}if(x.current.length&&(P.className=x.current.join(" ")+P.className),x.element){let J=It(["span",{contenteditable:!1,"pm-ignore":!0},x.element]);v.insertBefore(J,P)}P=be.fly(P).getNextSegment(),j+=F}}overrideChildContainer(r,i,s){return this.hookChildContainer(r,i,s)}filterContentProgressiveRenderable(r){return!1}getDefaultProgressiveStopThreshold(){let r=this.getDrawTarget();return r==="editor"?{preset:"time",value:200}:r==="viewer"?{preset:"time",value:50}:A}applyOffsetSize(r,i,s){let u=be.fly(r);i!==null&&u.setOffset(i),s!==null&&u.setSize(s)}linkDOM(r,i){r.dom=i,be.fly(i).syncNode(r)}draw(r,i,s){let u=s?.dirty;return i&&(!u||u.get(i)!==2)&&r.getRenderRank()!==tt.RENDER_REDRAW&&r.sameMarkup(i)?this.doRedraw(r,i,s):this.doDraw(r,s)}*doDraw(r,i){let s=document.createDocumentFragment(),u=r.schema.getDomRenderer().getNodeGenerator(r,s,{...this.createDrawOptions(),pos:-1,...i}),{done:x}=u.next();if(x||!s.firstElementChild)throw Error(`Nothing is rendered by node ${r.name}.`);let v=this.pm.content;v.textContent="";let P=be.fly(s.firstElementChild).childContainer?.childNodes;for(P&&v.append(...P);!u.next().done;)yield;r.dom=void 0}*doRedraw(r,i,s){r.resetRenderRank(),this.scan(this.pm.content,r,i,0,{...this.createDrawOptions(),...s})}getDrawnDom(r){return r.dom||null}getDom(r){return r instanceof pr?this.getDrawnDom(r):r}getPmElement(r,i){i===void 0&&(i=!1);let s=r&&this.getDom(r);return s&&(i?be.get(s):be.fly(s))}adaptPmElement(r){let i=r&&this.getDom(r);return i&&be.adapt(i)}}let M5=new Et(class extends w5{constructor(l,r){super(l,r)}filterContentProgressiveRenderable(l){return l.is("EditArea")}}),_5=Object.create(null);function Tf(l,r){let i=be.fly(l);if(i.isLineElement){let s,u=i.childContainer;if(r<0){let x=i.firstElementChild;s=x?Yr(x):0}else s=gi(u);return{node:u,offset:s}}}class A5 extends Gt{constructor(r,i){super(r,i)}ensureDOM(r){return r&&r!==this.pm.content&&Ri(this.pm.content,r)?r:null}posBeforeFromDOM(r,i){let s,u=0,x=!0;for(s=be.fly(r).isPmElement?r:be.fly(r).parentNode;s&&!be.fly(s).isPmContent;s=be.fly(s).parentNode)be.fly(s).isOffsetElement&&(be.fly(s).isTextElement||(s=be.fly(s).getFirstSegment()),u+=be.fly(s).getOffset()+(!x&&be.fly(s).isNodeElement?1:0),x=!1);return s?x?-1:u:NaN}posFromDOM(r,i,s){let u,x,v=!1;i==null?(v=!0,u=r,be.fly(r).isTextElement||(r=be.fly(r).getFirstSegment()),i=Yr(r),r=r.parentNode):u=r.nodeType===r.TEXT_NODE?r:r.childNodes[i];let P=be.get(r);if(P&&!P.isPmElement&&(P=be.fly(P.parentNode,P)),!P)return null;let j=this.posBeforeFromDOM(P.dom);if(isNaN(j))return null;let F=P.getNode(),q=P.childContainer,J=q&&Ri(q,r);if(!J||F&&F.type.pseudoType)if(P.isTextElement){let re;x={pos:j+(re=r.nodeType===r.TEXT_NODE?i:r.childNodes[i]?0:P.getSize()),inner_offset:re,exact:v}}else x={pos:j,exact:!J&&P.isNodeElement};else{let re,te,ie=r===q?r.childNodes[i]:pi(r,q);new Oo(P.dom,!0).forEach(function(de,ce){if(de.parentNode!==q||ie&&(ie===de||ie.compareDocumentPosition(de)&ie.DOCUMENT_POSITION_FOLLOWING))return re=de,!0},this,!0),te=re?be.fly(re).getOffset():P.isLineElement?P.getSize():(P.isNodeElement?P:be.fly(P.parentNode)).getSize()-2,x={pos:j+ +!P.isLineElement+te,exact:v&&ie&&re&&ie===re&&be.fly(re).isNodeElement}}return s&&s.resolve&&(x.$pos=this.pm.doc.resolve(x.pos)),x.dom=u,x}posOnlyFromDOM(r){let i=this.posFromDOM(r);return i?i.pos-(i.inner_offset||0):-1}DOMFromOffset(r,i,s){let u=s&&s.bias;for(;;){let P,j=!be.fly(r).isLineElement,F=be.fly(r).forEachElement(function(re,te,ie){let de=be.fly(re),ce=de.getOffset()+de.getSize();return i<ce||j&&u<0&&i===ce?(P=re,!1):ie.dom?void 0:(P=re.parentNode,!0)},this,!0);if(!P&&be.fly(r).childContainer&&(P=be.fly(r).childContainer,F=!0),!P){for(var x=r,v=i;x.nodeType===x.ELEMENT_NODE&&x.firstChild;)x=x.firstChild;return{node:x,offset:v}}let q=be.fly(P);if(F){let re=q.lastChild;return re&&Tf(re,1)||{node:P,offset:gi(P)}}let J=q.getOffset();if(i===J)return Tf(P,-1)||{node:P.parentNode,offset:Yr(P)};r=P,i=i-J-(!q.childContainer||q.isLineElement?0:1)}}DOMFromPos(r,i,s){let u=this.pm.hasOperation()?this.pm.getOperation().doc:this.pm.doc;if(!i&&u!==this.pm.doc)throw RangeError("Resolving a position in an outdated DOM structure");let x=u.resolve(r);return this.DOMFromOffset(x.depth===0?this.pm.content:x.parent.dom,x.parentOffset,s)}DOMAfterPos(r,i){let s=this.DOMFromPos(r,!1,i),u=s.node.childNodes[s.offset];if(!u)throw RangeError("No node after pos "+r);return u}DOMAtCoords(r,i){return this.ensureDOM(this.pm.root.elementFromPoint(r.x,r.y+1))}posAtCoords2(r,i){let s=this.DOMAtCoords(r,i);return s&&this.posFromDOM(s,null,i)}_posAtCoordsInside(r,i,s,u){let x=be.fly(i);if(x.isLineElement){let v=x.getOffset()+x.getSize(),P=this.pm.doc.resolve(s),{offset:j,bias:F}=this.inlineOffsetAtCoordsX(P,i,r.x);return{pos:P.start()+j,bias:j===v?-1:1,coordsBias:F}}{let v,P=x.getNode();if(P){if(P.type.isInline)return{pos:s,bias:1,coordsBias:1};if(P.type.isTableRow){let j,F=be.fly(u).getNode(),q=F.attrs.colgroup,J=P.childCount-1,re=0;for(let de=0;de<J;++de)if(re+=q[de].width,r.x<=re){J=de;break}let te=P.child(J).state.display===!0;j=te?P.child(J):F.getDisplayCellNode(F.index(P),J);let ie=be.fly(j.dom).forAll(function(de){if(Ri(u,de))return de},this,!0);if(!te){let de,ce=be.fly(ie).getFirstSegment();be.fly(u).forAll(we=>{if(de=pi(ce,be.fly(we).childContainer))return!0},this,!0),s=s-be.fly(i).getOffset()+be.fly(de).getOffset();let xe=pi(ie,be.fly(u).childContainer);for(let we=xe;we!==i;we=we.nextSibling)r.y+=be.fly(we).getHeight();i=xe}return this._posAtCoordsInside(r,ie,s+1+be.fly(ie).getOffset(),i)}else if(P.type.isEditArea){let j=this.pm.getPlugin("paginator").pageIndexFromTop(r.y,!0,{bound:!0});return r.y=j.inner,this._posAtCoordsInside(r,be.fly(i).child(j.index),s,i)}}if(x=be.fly(i),P)P.is("ContentEditable")||(r.y-=x.getTopPaddingHeight()+x.getBlockerPadding());else if(x.isPageElement){let j=this.pm,F=x.getData("page_index");r.x=j.getPlugin("paginator").convertInnerLeft(F,r.x,!0),r.y=j.getPlugin("paginator").convertInnerTop(F,r.y,!0)}return x.forEach(function(j){var F;let q,J;if(v&&(F=v,J=(q=be.fly(F)).getHeight()+q.getBlockerPadding(),r.y<=J||(r.y-=J,0)))return!0;v=j},this,!0),v?this._posAtCoordsInside(r,v,s+1+be.fly(v).getOffset(),i):{pos:St.findNear(this.pm.doc.resolve(s),be.fly(u).isPageElement?-1:1,!0).from,bias:1,coordsBias:1}}}posAtCoordsInside(r,i,s){let u=i.findData("ContentEditable");if(!u)return null;if(or.checkAvailable(i)){let v=be.fly(i.parent.dom);s&&(s=pi(s,v.childContainer)),s||(s=v.elementInfoAtOffset(i.parentOffset,{bias:1,bound:!0}).dom)}else if(s){if(!be.fly(s).isNodeElement){let v=be.fly(i.self.dom).forAll(function(P){if(Ri(P,s))return P},this,!0);if(!v){let P=be.fly(s).parentNode;v=be.fly(i.self.dom).forAll(function(j){if(be.fly(j).parentNode===P)return j},this,!0)}s=v}}else s=i.self.dom;if(!s)return null;r={x:r.x,y:r.y};let x={residingPmEditor:i.shrink(u.depth-1)};return i.pos===u.pos?(u.node.type.isEditArea&&(x.residingPmEditor=void 0),r=this.convertCoords(r,x)):(r=this.convertCoords(r,x),x.side=-1,r.y-=this.rectAtDOM(s,x).top),this._posAtCoordsInside(r,s,i.pos,be.fly(s).parentNode)}convertCoords(r,i){if(i===void 0&&(i=_5),!i.useClientCoords){let s=i.residingPmEditor;if(s&&s.self.type.coordsFixed||(r=this.pm.on.transformClientCoords.dispatch(r,s)),s){let u=s.self,x=u.type;if(x.isNote){let v=x.getEditableAreaDOM(u.dom).getBoundingClientRect();r.x-=v.left,r.y-=v.top}else x.isAbstractTextBlock?r=Mt.apply(r,u.state.reverse_matrix):x.is("TextBox")&&(r=this.pm.getPlugin("text_box").onTransformCoordinateSystem(r,s)||r)}}return r}coordsAtRectCenter(r,i){var s;return this.convertCoords({x:((s=r).left+s.right)/2,y:(s.top+s.bottom)/2},i)}coordsAtDOMCenter(r,i){return this.coordsAtRectCenter(r.getBoundingClientRect(),i)}coordsAtTextCenter(r,i,s,u){return this.coordsAtRectCenter(uc(r,i,s),u)}rectAtDOM(r,i){var s;let u=(s=i&&i.side)?s>0?1:-1:0,x=this.coordsAtDOMCenter(r,i),v=0,P=0;return u>=0&&(v=r.offsetWidth/2),u<=0&&(P=r.offsetHeight/2),{left:x.x-v,top:x.y-P,right:x.x+v,bottom:x.y+P}}rectAtText(r,i,s,u){var x;let v,P=(x=u&&u.side)?x>0?1:-1:0,j=Object.create(null);if(P>=0){let F=this.coordsAtTextCenter(r,i,i,u),q=s===i||s==null?F:this.coordsAtTextCenter(r,s,s,u);j.left=F.x,j.right=q.x,v=F.y}else{let F=this.coordsAtTextCenter(r,i,s,u);j.left=j.right=F.x,v=F.y}if(P<=0){let F=r.parentNode.offsetHeight/2;j.top=v-F,j.bottom=v+F}else j.top=j.bottom=v;return j}cursorAtDOM(r,i,s){let u,x=0>(s&&s.bias)?-1:1;i==null&&(i=Yr(r),r=r.parentNode);let v=gi(r);return i=qe(i,0,v),r.nodeType===r.TEXT_NODE?u=this.rectAtText(r,i,i,s):x>0&&i===v||x<0&&i>0?(r=r.childNodes[i-1],(u=this.rectAtDOM(r,s)).left=u.right):(r=r.childNodes[i],(u=this.rectAtDOM(r,s)).right=u.left),u.dom=r,u}cursorAtPos(r,i){i===void 0&&(i=Object.create(null)),i.editor||i.skip_editor||(i.editor=this.pm.doc.resolve(r).findNode("ContentEditable"));let s=this.DOMFromPos(r,!1,i);return this.cursorAtDOM(s.node,s.offset,i)}coordsAtPos(r,i){var s,u,x;let v,P;i===void 0&&(i=1);let j=this.DOMFromPos(r);return s=j.node,u=j.offset,(x=i)===void 0&&(x=1),u==null&&(u=Yr(s),s=s.parentNode),s.nodeType===window.Node.TEXT_NODE?(P=s.length,x>0?(hi(u,P)&&(v=Hn(s,u,u+1,-1)),!_s(v)&&hi(u-1,P)&&(v=Hn(s,u-1,u,1)||v)):(hi(u-1,P)&&(v=Hn(s,u-1,u,1)),!_s(v)&&hi(u,P)&&(v=Hn(s,u,u+1,-1)||v))):s.childNodes.length>0&&(P=s.childNodes.length,x>0?(hi(u,P)&&(v=Ms(s.childNodes[u],-1)),!_s(v)&&hi(u-1,P)&&(v=Ms(s.childNodes[u-1],1)||v)):(hi(u-1,P)&&(v=Ms(s.childNodes[u-1],1)),!_s(v)&&hi(u,P)&&(v=Ms(s.childNodes[u],-1)||v))),v||(v=kf(xa.copy(s.getBoundingClientRect()),-1)),delete v.zero_width,v}inlineOffsetAtCoordsX(r,i,s){let u=r.findNode("Textblock");if(!u)return null;let x=be.fly(i),v=x.getOffset();if(s<=u.state.text_rect_info.left)return{offset:v,bias:-1};let P=1;function j(q,J){return s>q.right?(v+=J,!1):(s<(q.left+q.right)/2?P=1:(P=-1,v+=J),!0)}let F={side:1,residingPmEditor:r.shrink("ContentEditable")};return x.forEachElement(function(q){let J=be.fly(q).getSize();if(be.fly(q).isTextElement){let re=Ti(q)||q,te=re.nodeType===re.TEXT_NODE?re.data:null,ie=0;for(;ie<J;){let de;if(te){let ce=te.codePointAt(ie);de=ce!==void 0&&Rs(ce)?2:1}else de=1;if(j(this.rectAtText(re,ie,ie+de,F),de))return!0;ie+=de}}else{if(q.matches("[synobr]")||q.querySelector("[synobr]"))return P=1,!0;if(j(this.rectAtDOM(q,F),J))return!0}},this,!0),{offset:v,bias:P}}}function kf(l,r){return B(l.left,l.right)||(l.zero_width=!0),r<0?l.right=l.left:l.left=l.right,l}function Lf(l,r){var i,s;let u;return kf(xa.copy((i=l,s=r,(u=i.getClientRects()).length?u[s<0?0:u.length-1]:i.getBoundingClientRect())),r)}function Hn(l,r,i,s){var u,x,v;let P,j=(u=l,x=r,v=i,(P=document.createRange()).setEnd(u,v??u.length),P.setStart(u,x||0),P),F=Lf(j,s);return j.detach(),F}function Ms(l,r){return l.nodeType===window.Node.TEXT_NODE?Hn(l,null,null,r):(be.fly(l).isLineElement&&(r>0&&l.lastChild&&l.lastChild.nodeType!==window.Node.TEXT_NODE?l=l.lastChild:r<0&&l.firstChild&&l.firstChild.nodeType!==window.Node.TEXT_NODE&&(l=l.firstChild)),Lf(l,r))}function hi(l,r){return l>=0&&l<r}function _s(l){return l&&!l.zero_width}class S5 extends A5{constructor(r,i){super(r,i)}static get pluginName(){return"dompos"}getDom(r){return this.pm.getPlugin("draw")?.getDom(r)??null}findResidingEditor(r,i){let s=this.posFromDOM(r,null,i);return s?this.pm.doc.resolve(s.pos).maybeShrink("ContentEditable"):null}ensureComputeRectOptions(r,i){if(i)return(i={...i}).useClientCoords||i.residingPmEditor||(i.residingPmEditor=this.findResidingEditor(r,i)||void 0),i}findInlineRangesByLine(r,i,s,u){return[{lineDom:r,startOffset:i,endOffset:s}]}findInlineRangesByTextblock(r,i,s,u){u===void 0&&(u=d);let x=[],v=u.startBias??1,P=u.endBias??1,j=be.fly(r).getData("line_count");if(be.fly(r).forEachElement((q,J)=>{let re=be.fly(q).getOffset(),te=be.fly(q).getSize(),ie=re+te;if(!(i>ie)&&(i!==ie||!(v>0)||J===j-1)){if(s<re||s===re&&P<0)return!0;x.push({lineDom:q,startOffset:i<=re?0:i-re,endOffset:s>=ie?te:s-re})}},this,!0),!x.length)return x;let F=u.inlineRangeMode;return F&&(F==="firstline"?x=[x[0]]:F==="lastline"&&(x=[x[x.length-1]])),x}findInlineRanges(r,i,s,u){s===void 0&&(s=i),u===void 0&&(u=d);let x=this.getDom(r);if(!x)return null;let v=u.startBias??1,P=i===s&&typeof u.endBias=="number"&&u.endBias<0&&v>0?1:u.endBias;u={...u,startBias:v,endBias:P};let j=be.fly(x).getNodeType();return be.fly(x).isLineElement?this.findInlineRangesByLine(x,i,s,u):j&&j.is("Textblock")?this.findInlineRangesByTextblock(x,i,s,u):null}computeFontMetrics(r){r===void 0&&(r=[]);let i=this.pm.schema,s=i.markType("font_size"),u=(s.findFromSet(r)??s.getDefaultMark()).getValue(),x=null,v=i.markType("superscript").findFromSet(r);(!v||!v.getValue())&&((v=i.markType("subscript").findFromSet(r))&&v.getValue()||(v=null));let P=(x=v)?x.type.scriptType:null,j=x?u*x.type.fontSizeRatio:u;return{fontSize:u,scriptType:P,finalFontSize:j}}computeInlineHeightRectForText(r,i,s){let u=be.fly(r).childContainer;if(!u)return{top:0,bottom:0};let x=this.pm.schema.getDefaultContentStyles(),v=this.rectAtDOM(u,s).top-i.top,P=Oi({family:x["font-family"],size:x["font-size"]}).top,{fontSize:j,scriptType:F,finalFontSize:q}=this.computeFontMetrics(s.inlineMarks),J=v-P+(F?wc({size:j},F):0),re=Qt(q,"pt","px"),te=Math.floor(re),ie=Math.floor(re*(s.inlineHeightTextScale||1)),de=Oi({size:q}),ce=Math.floor(J+de.bottom-(-de.top+de.bottom-te)*.5+(ie-te)*.5);return{top:ce-ie,bottom:ce}}computeInlineHeightRectForLine(r,i,s){return{top:0,bottom:i.bottom-i.top}}computeInlineHeightRect(r,i,s){switch(s===void 0&&(s=d),s.inlineHeightMode){case"text":return this.computeInlineHeightRectForText(r,i,s);case"line":return this.computeInlineHeightRectForLine(r,i,s);default:return null}}computeInlineCoordsOffsetsForEditor(r,i,s){let u=s.residingPmEditor;if(!u)return null;let x=this.getDom(u.self);if(!x)return null;let v=this.rectAtDOM(x,s),P=this.computeInset(x);return{x:i.left-(v.left+(P?P.l:0)),y:i.top-(v.top+(P?P.t:0))}}computeInlineCoordsOffsets(r,i,s){return s===void 0&&(s=d),s.coordsOrigin==="editor"?this.computeInlineCoordsOffsetsForEditor(r,i,s):null}computeCursorRect(r,i,s){s=this.ensureComputeRectOptions(r,s);let u=this.cursorAtDOM(r,i,s);return{left:u.left,top:u.top,right:u.right,bottom:u.bottom}}doComputeInlineCursorRect(r,i,s,u){let{node:x,offset:v}=this.DOMFromOffset(r,s),P=this.computeCursorRect(x,v,u);return P.left-=i.left,P.top-=i.top,P.right-=i.left,P.bottom-=i.top,P}computeInlineRect(r,i,s,u){let x;u===void 0&&(u=d),u=this.ensureComputeRectOptions(r,u);let v=this.rectAtDOM(r,u),P=this.doComputeInlineCursorRect(r,v,i,{...u,bias:u.startBias});if(i===s)x=P;else{let q=this.doComputeInlineCursorRect(r,v,s,{...u,bias:u.endBias});x={left:Math.min(P.left,q.left),top:Math.min(P.top,q.top),right:Math.max(P.right,q.right),bottom:Math.max(P.bottom,q.bottom)}}let j=this.computeInlineHeightRect(r,v,u);j&&(x.top=j.top,x.bottom=j.bottom);let F=this.computeInlineCoordsOffsets(r,v,u);return F&&(x.left+=F.x,x.top+=F.y,x.right+=F.x,x.bottom+=F.y),x}computeInlineOverlays(r,i,s,u){s===void 0&&(s=i),u===void 0&&(u=d);let x=this.findInlineRanges(r,i,s,u);return x?x.map(v=>{let{lineDom:P,startOffset:j,endOffset:F}=v;return{lineDom:P,rect:this.computeInlineRect(P,j,F,u)}}):null}computeNodeInsetTableCell(r,i){let s=this.pm.getPlugin("table");return s?s.getTableCellInset(r):null}computeNodeInset(r,i){return i.is("TableCell")?this.computeNodeInsetTableCell(r,i):null}doComputeInset(r,i){let s;return s=i?this.computeNodeInset(r,i):null,(!i||i.is("EditableType")&&!i.is("Inline"))&&(s||(s={l:0,t:0,r:0,b:0}),s.l+=be.fly(r).getLeftPaddingWidth(),s.t+=be.fly(r).getTopPaddingHeight(),s.r+=be.fly(r).getRightPaddingWidth(),s.b+=be.fly(r).getBottomPaddingHeight()),s}computeInset(r){let i=this.getDom(r);if(!i)return null;let s=be.fly(i).getNodeType();return this.doComputeInset(i,s)}computePreviousWidth(r,i){let s=0;if(i&&i.is("TableCell"))for(let u=be.fly(r).previousSibling;u;u=be.fly(u).previousSibling){if(!be.fly(u).isFirstSegment)continue;let x=be.fly(u).getNode();if(x&&x.is("TableCell")){if(!x.getState("display",!1)){let v=x.getState("row_index");if(v===void 0)continue;let P=x.getState("covered_idx");if(!P||P.row_index===v)continue}s+=be.fly(u).getWidth()}}return s}computePreviousHeight(r,i){let s=0;if((!i||i.is("EditableType")&&!i.is("Inline"))&&(s+=be.fly(r).getBlockerPadding(),!i||!i.is("TableCell")))for(let u=be.fly(r).previousSibling;u;u=be.fly(u).previousSibling)s+=be.fly(u).getHeight()+be.fly(u).getBlockerPadding();return s}doComputeOffsetInside(r,i,s,u){if(u===void 0&&(u=d),!i.contains(r))return NaN;let x=0;for(let v=r;v&&v!==i;v=be.fly(v).parentNode){let P=be.fly(v).getNodeType();if(u.includeSourceInset||v!==r){let j=this.doComputeInset(v,P);j&&(x+=s?j.t:j.l)}x+=s?this.computePreviousHeight(v,P):this.computePreviousWidth(v,P)}return x}computeOffsetInside(r,i,s,u){let x=this.getDom(r),v=this.getDom(i);return x&&v?this.doComputeOffsetInside(x,v,s,u):NaN}computeLeftInside(r,i,s){return this.computeOffsetInside(r,i,!1,s)}computeTopInside(r,i,s){return this.computeOffsetInside(r,i,!0,s)}computeOffsets(r,i,s){return{x:this.computeLeftInside(r,i,s),y:this.computeTopInside(r,i,s)}}}let C5=new Et(class extends S5{constructor(l,r){super(l,r)}ensureDomVisible(l){if(va(l))return;let r=this.pm.getPlugin("page_display");r&&r.showPageByChild(l)}computeNodeInsetTextBox(l,r){let i=this.pm.getPlugin("text_box");return i?i.getTextBoxInset(l):null}computeNodeInsetShape(l,r){let i=r.queryDom(l,".syno-o-doc-pm-shape")?.getAttribute("synograph");if(!i)return null;let s=this.pm.getPlugin("geometry")?.getGeometryInfo(i);if(!s)return null;let u=s.getAnchoryType();if(u==="absolute"){let x=this.pm.getPlugin("paginator");if(!x)return null;let v=x.getBlocker(i);if(!v)return null;let P=s.getClientViewRect(),j=s.getViewPadding(),F=(P.l+P.r)/2-x.getPagePadding(v.page_index).left,q=(v.inner_top+j.t+(v.inner_bottom-j.b))/2,J=s.getRectWidth()/2,re=s.getRectHeight()/2;return{l:F-J,t:q-re,r:x.getPageContentSize(v.page_index).width-F-J,b:x.getPageContentSize(v.page_index).height-q-re}}if(u!=="inline")return null;{let x=be.fly(l).parentNode;if(!x)return null;let v=r.queryDom(l,".syno-o-doc-pm-drawing-text");if(!v)return null;let P={residingPmEditor:this.pm.doc.resolve(this.pm.doc.queryChildOffset("edit_area",!0))},j=this.coordsAtDOMCenter(x,P),F=this.coordsAtDOMCenter(v,P),q=be.fly(x).getData("line_content_range"),J=q?(q[1]-q[0])/2:0,re=be.fly(x).getHeight()/2,te=s.getRectWidth()/2,ie=s.getRectHeight()/2;return{l:F.x-te-(j.x-J),t:F.y-ie-(j.y-re),r:j.x+J-(F.x+te),b:j.y+re-(F.y+ie)}}}computeNodeInsetTable(l,r){let i={l:0,t:0,r:0,b:0},s=this.pm.getPlugin("table");if(s){let u=s.getTableIndent(l);i.l+=u.left,i.r+=u.right}return i}computeNodeInsetEditArea(l,r){let i=this.pm.getPlugin("paginator");if(!i)return i;let s=i.getPagePadding(0),u=i.getPagePadding(-1);return{l:s.left,t:s.top,r:u.right,b:u.bottom}}computeNodeInset(l,r){return r.is("TextBox")?this.computeNodeInsetTextBox(l,r):r.is("Shape")?this.computeNodeInsetShape(l,r):r.is("Table")?this.computeNodeInsetTable(l,r):r.is("EditArea")?this.computeNodeInsetEditArea(l,r):super.computeNodeInset(l,r)}maybeChangeContainerDom(l,r){let i=this.pm.getPlugin("draw");if(!i)return null;let s=i.getDrawnDom(this.pm.showDoc.queryChildNode("invisible",!0));return s&&be.fly(r).isPageElement&&s.contains(l)?s:null}doComputeOffsetInside(l,r,i,s){return r=this.maybeChangeContainerDom(l,r)||r,this.ensureDomVisible(r),super.doComputeOffsetInside(l,r,i,s)}}),As=()=>"latin",br=()=>"eastAsia",Ji=(l,r)=>r.hint==="eastAsia"?"eastAsia":"latin",I5=[[[0,127],As],[[160,255],(()=>{let l=rn([161,164,[167,168],170,173,175,[176,180],[182,186],[188,191],215,247]),r=rn([[224,225],[232,234],[236,237],[242,243],[249,250],252]);return(i,s)=>s.hint==="eastAsia"&&(s.lang.eastAsia?.startsWith("zh")&&rr(r,i)||rr(l,i))?"eastAsia":"latin"})()],[[256,687],(l,r)=>r.hint==="eastAsia"&&r.lang.eastAsia?.startsWith("zh")?"eastAsia":"latin"],[[688,975],Ji],[[1024,1279],Ji],[[1424,1983],As],[[4352,4607],br],[[7680,7935],(l,r)=>r.hint==="eastAsia"&&r.lang.eastAsia?.startsWith("zh")?"eastAsia":"latin"],[[8192,10175],Ji],[[11904,12031],Ji],[[12032,12255],br],[[12272,12703],br],[[12800,19903],br],[[19968,40879],br],[[40960,42191],br],[[44032,55215],br],[[55296,57343],br],[[57344,63743],Ji],[[63744,64255],br],[[64256,64335],(l,r)=>l>=64256&&l<=64284?Ji(l,r):"latin"],[[64336,65023],As],[[65072,65135],br],[[65136,65278],As],[[65280,65519],br],[[131072,196607],br]];function P5(l){let r=Ti(l.dom);return r&&ci(r)?r.data.length:0}function T5(l){return l.getSize()}class k5 extends Gt{constructor(r,i){super(r,i)}static get pluginName(){return"font"}static get pluginDependency(){return["draw"]}bindEvents(){super.bindEvents();let r=this.pm.getPlugin("draw");this.bindEvent(r,"markRender",this.onFontFamilyDrawMarkRender,this,{checker:"FontFamily",priority:-100}),this.bindEvent(r,"afterRender",this.onInlineDrawAfterRender,this,{checker:"Inline"}),this.bindEvent(r,"afterChildRender",this.onTextDrawAfterChildRender,this,{checker:"Text"})}onFontFamilyDrawMarkRender(r,i,s){(s.isTarget("display")||s.isTarget("clipboard"))&&this.pm.getPlugin("draw").getPmElement(r).setData("font:is_font_family",!0)}onInlineDrawAfterRender(r,i,s){if(!s.isTarget("display")&&!s.isTarget("clipboard")||!r.schema.markType("font_family").findFromSet(r.marks))return;let u=this.pm.getPlugin("draw"),x=i,v=0;for(;x&&u.getPmElement(x).getData("font:is_font_family")===void 0;)x=x.firstElementChild,++v;x&&u.getPmElement(i).setData("font:font_family_mark_info",{dom:x,distance:v})}onTextDrawAfterChildRender(r,i,s){if(!s.isTarget("display")&&!s.isTarget("clipboard"))return;let u=r.schema.markType("font_family").findFromSet(r.marks);if(!u)return;let x=i.parentNode;if(!x)return;let v=this.pm.getPlugin("draw"),P=this.splitTextByFontFamilyMark(r.text,u);if(v.getPmElement(i).setData("font:font_face_chunks",P),P.length===0)return;let j=s.isTarget("major")?T5:P5,F=v.getPmElement(i,!0),q=0;for(let{text:{length:J},font:re}of P){let te=0;for(;te<J;){this.applyInlineFontFamily(F.dom,re);let ie=J-te,de=j(F)-q;if(ie<de){let ce=v.splitTextDOM(F.dom,q+ie);if(!ce)return;x.insertBefore(ce,F.dom.nextSibling),te+=ie,F=v.getPmElement(ce,!0),q=0}else{let ce=F.getNextSegment();if(!ce)return;te+=de,F=v.getPmElement(ce,!0),q=0}}}}onSplitText(r,i,s){let u=this.pm.getPlugin("draw"),x=u.getPmElement(r).getData("font:font_family_mark_info");if(!x)return;let v=s;for(let P=0;v&&P<x.distance;++P)v=v.firstElementChild;v&&u.getPmElement(s).setData("font:font_family_mark_info",{dom:v,distance:x.distance})}applyInlineFontFamily(r,i){let s=this.pm.getPlugin("draw").getPmElement(r,!0),u=s.getData("font:font_family_mark_info")?.dom;if(!u||Ws(i)===eu(u.style.fontFamily))return;i=this.pm.schema.markType("font_family").ensureFontFamilyCssValue(i),u.style.fontFamily=i;let x=s.getData("line_breaker:inline_item");if(x&&x.style){let v={...x.style,fontFamily:i};v.verticalAlignReferenceStyle&&(v.verticalAlignReferenceStyle={...v.verticalAlignReferenceStyle,fontFamily:i}),s.setData("line_breaker:inline_item",{...x,style:v})}}splitTextByFontFamilyMark(r,i){return function(s,u,x){if(s.length===0)return[];let{latin:v,eastAsia:P,complexScript:j}=u;return v===P&&v===j?[{text:s,font:v}]:function(F,q,J){if(F.length===0)return[];let re=[],te={index:0,font:null};for(let{index:ie}of function*(de,ce){yield*Ns(de)}(F)){let de=F.codePointAt(ie);if(de===void 0)continue;let ce=q(function(xe,we){let Me=function(Se){Se===void 0&&(Se={});let{hint:Re="default",lang:Be,preferCs:Ue=!1}=Se;return{hint:Re,lang:typeof Be=="string"?{latin:Be,eastAsia:Be,complexScript:Be}:{latin:Be?.latin,eastAsia:Be?.eastAsia,complexScript:Be?.complexScript},preferCs:Ue}}(we);if(Me.preferCs)return"complexScript";for(let[Se,Re]of I5){if(xe>=Se[0]&&xe<=Se[1])return Re(xe,Me);if(xe<Se[0])break}return"latin"}(de,J));te.font?te.font!==ce&&(re.push({text:F.slice(te.index,ie),font:te.font}),te.index=ie,te.font=ce):te.font=ce}return te.font&&re.push({text:F.slice(te.index),font:te.font}),re}(s,F=>u[F],x)}(r,{latin:i.getValue(),eastAsia:i.getAttrValue("eastAsia")??i.type.getDefaultMark().getValue(),complexScript:i.getAttrValue("complexScript")??i.type.getDefaultMark().getValue()},{hint:i.getAttrValue("hint")??void 0})}}let L5=new Et(class extends k5{constructor(l,r){super(l,r)}});function Df(l,r){l.href=r,r.startsWith("#")?(l.removeAttribute("target"),l.removeAttribute("rel")):(l.target="_blank",l.rel="noreferrer noopener")}function Rf(l){e||(e=document.createElement("a")),Df(e,l);try{return e.click(),!0}catch(r){return console.error(`failed to open link: ${l}`,r),!1}}let eh="#dlink=";function Of(l){return l.endsWith("/")?l.slice(0,-1):l}function Nf(l){if(typeof l!="string")return()=>Of(l());{let r=Of(l);return()=>r}}class D5 extends Gt{constructor(r,i){super(r,i),this.sourceOfficeUrl=Nf(i.sourceOfficeUrl??""),this.baseDriveUrl=Nf(i.baseDriveUrl??"")}static get pluginName(){return"link"}static get pluginDependency(){return["draw"]}bindEvents(){super.bindEvents();let r=this.pm,i=r.getPlugin("draw");this.bindEvent(i,"markRender",this.onLinkDrawMarkRender,this,{checker:"Link"}),r.getPlugin("input_data_transfer")&&this.bindEvent(r,"transformPastedDOM",this.onTransformPastedDOM,this)}onLinkDrawMarkRender(r,i,s){let u=i.getValue(),{type:x,href:v}=this.parseLinkValue(u,s.isTarget("clipboard")),P=s.getTarget();P==="viewer"||P==="clipboard"?(r.tagName==="A"&&Df(r,v),(x===2||x===1)&&P==="clipboard"&&r.setAttribute("synohref",u)):r.setAttribute("synohref",v),P==="viewer"&&r.addEventListener("click",j=>{j.defaultPrevented||(j.preventDefault(),this.onViewerLinkClick(j,u))})}onViewerLinkClick(r,i){this.openLink(i)}onTransformPastedDOM(r){for(let i of r.querySelectorAll("a[synohref]")){let s=i.getAttribute("synohref");s&&(this.checkLinkValid(s)||i.removeAttribute("synohref"))}return r}getSourceOfficeUrl(){return this.sourceOfficeUrl.call(null)}getAbsoluteDriveLink(r){return r.startsWith(eh)&&(r=r.slice(eh.length)),this.baseDriveUrl.call(null)+(r.startsWith("/")?"":"/")+r}getAbsoluteLocalLink(r){return r.startsWith("#")?this.getAbsoluteLocalLinkById(r.slice(1)):""}getAbsoluteLocalLinkById(r){return""}parseLinkValue(r,i){let s,u,x=this.pm.schema.markType("link").sanitizeLink(r);return x.startsWith(eh)?(s=2,u=this.getAbsoluteDriveLink(x)):x.startsWith("#")?(s=1,u=i?this.getAbsoluteLocalLink(x):x):(s=0,u=x),{type:s,href:u,value:x}}checkLocalLinkValueValid(r){return!1}checkLinkValid(r){let{type:i,value:s}=this.parseLinkValue(r);return i===2||i===0||i===1&&this.checkLocalLinkValueValid(s)}openLocalLink(r){return!1}openLink(r){if(!r)return!1;let{type:i,href:s,value:u}=this.parseLinkValue(r);return i===2||i===0?Rf(s):i===1&&this.openLocalLink(u)}openLinkBySelection(){let r=this.pm.getPlugin("status")?.getStatus().format.basic.marks.link;return!!r&&this.openLink(r)}getLink(r){if(!r)return"";let{href:i}=this.parseLinkValue(r,!0);return i}}let R5=new Et(class extends D5{constructor(l,r){super(l,r)}bindEvents(){super.bindEvents();let l=this.pm;if(l.getPlugin("draw").getDrawTarget()==="viewer"){let r=l.getPlugin("draw");this.bindEvent(r,"render",this.onViewerHeadingBlockDrawRender,this,{checker:"HeadingBlock"})}}onViewerHeadingBlockDrawRender(l,r,i,s){if(!i.isTarget("viewer"))return l;let u=l.firstElementChild;return u&&(u.id=r.getAttrValue("headingId")??""),l}getAbsoluteLocalLinkById(l){return`${this.getSourceOfficeUrl()}#heading_id=${l}`}checkLocalLinkValueValid(l){return l.startsWith("#")?!!this.pm.getPlugin("operator")?.getAction("text").selectHeadingId(this.pm.multiSelection,l.slice(1)):super.checkLocalLinkValueValid(l)}openLocalLink(l){let r=this.pm.getPlugin("navigate"),i=this.pm.getPlugin("draw").getDrawTarget()==="viewer";return l.startsWith("#")?r?(r.navigateById(l.slice(1)),!0):!!i&&(Rf(l),!0):super.openLocalLink(l)}});class O5 extends Gt{constructor(r,i){super(r,i)}static get pluginName(){return"list"}static get pluginDependency(){return["draw","font"]}bindEvents(){super.bindEvents();let r=this.pm.getPlugin("draw");this.bindEvent(r,"render",this.onParagraphDrawRender,this,{checker:"Paragraph"})}onParagraphDrawRender(r,i,s,u){if(!s.isTarget("display"))return r;let x=this.renderListItem(i);return x&&this.getParagraphPrefixWrapper(r)?.append(x),r}getParagraphPrefixWrapper(r){let i=this.pm.getPlugin("draw").getPmElement(r).childContainer;if(!i||!i.parentNode)return null;let s=i.previousElementSibling;return s||(s=document.createElement("span"),i.parentNode.prepend(s)),s}renderListItemText(r){let i=r.getState("list_configs"),s=r.getState("list_path");if(!i||!s)return null;let u=function(F,q){let J=Zp(q),re=[],te=0;for(let ie of F.matchAll(ns)){let de=ie.index;de>te&&re.push({level:-1,text:F.slice(te,de)});let ce=ie[1];if(ce!=="0"){let xe=Number(ce)-1;re.push({level:xe,text:J(xe)})}te=de+ie[0].length}return te!==F.length&&re.push({level:-1,text:F.slice(te)}),re}(i[s.length-1].text,F=>{let q=s[F];return q!=null?$p(i[F].format,q):""}),x=r.schema.markType("font_family").findFromSet(r.listMarks),v=this.pm.root,P=v.createDocumentFragment();if(x){var j;let F=x.getValue(),q=(j=(j=F).toLowerCase(),!!(ty.includes(j)||/dingbats|symbol/i.test(j)));for(let{level:J,text:re}of u)if(J>=0){let te,ie,de=i[J].format;if(_i(de))q||(te="Arial",ie="normal");else if(function(ce){var xe;return ce==="ideographDigital"||ce==="ideographLegalTraditional"||ce==="taiwaneseCounting"||ce==="taiwaneseCountingThousand"||ce==="taiwaneseDigital"||(xe=ce)==="chineseCounting"||xe==="chineseCountingThousand"||xe==="chineseLegalSimplified"}(de)){let ce=x.getAttrValue("eastAsia")??x.type.getDefaultMark().getValue();ce!==F&&(te=ce)}if(te){let ce=It(["span",{inline_style:{"font-family":x.type.ensureFontFamilyCssValue(te),"font-weight":ie}},re],v);P.appendChild(ce)}else P.appendChild(v.createTextNode(re))}else for(let{text:te,font:ie}of this.pm.getPlugin("font").splitTextByFontFamilyMark(re,x)){let de=It(["span",{inline_style:{"font-family":x.type.ensureFontFamilyCssValue(ie)}},te],v);P.appendChild(de)}}else{let F=u.map(q=>{let{text:J}=q;return J}).join("");P.appendChild(document.createTextNode(F))}return P}renderListItem(r){let i=this.renderListItemText(r);if(!i)return null;let s=r.type,u=s.listItemPadding+"px";return It(["span",{class:s.classPrefix+"list-item"},["span",{class:s.classPrefix+"list-item-padding",inline_style:{display:"inline-block"}},["span",{class:s.classPrefix+"list-item-text",inline_style:{display:"inline-block","padding-left":u,"padding-right":u,...Qe.setToStyle(r.listMarks)}},i]]])}getListLinePmElement(r){let i=this.pm.getPlugin("draw"),s=i.getPmElement(r,!0);if(!s)return null;let u=s.getNodeType();return s.isLineElement?s:u&&u.is("Textblock")?i.getPmElement(s.firstElementChild,!0):null}getListItemWidth(r){let i=this.getListLinePmElement(r);return i&&i.getData("list_item_width")||0}getListItemPadding(r){let i=this.getListLinePmElement(r);return i&&i.getData("list_item_padding")||0}}let N5=new Et(class extends O5{constructor(l,r){super(l,r)}});class j5 extends Gt{constructor(r,i){super(r,i),this.scheduler=this.createScheduler(),this.lastTableDom=null}static get pluginName(){return"table"}static get pluginDependency(){return["draw"]}static get pluginSubscriptions(){return{tableChange:new ut}}createScheduler(){return this.pm.createFlushScheduler({actions:{default:{handler:r=>{let i=this.pm.schema.nodeType("table");for(let s of Array.isArray(r)?r:[r]){let u=i.getTableDOM(s).lastChild,x=u.style.cssText;u.style.cssText=`${x}; display: none !important`,window.getComputedStyle(u).display,u.style.cssText=x}},merger:"unique_array",mode:"task"}}})}bindEvents(){super.bindEvents();let r=this.pm;if(this.bindEvent(r,"statusChange",this.onStatusChange,this),Bs==="firefox"){let i=this.pm.getPlugin("draw");this.bindEvent(i,"change",this.onFirefoxTableDrawChange,this,{checker:"Table"})}}onStatusChange(r,i){let s=r.selection.table.sel?.getResolvedTable()||null,u=s&&this.pm.getPlugin("draw").getDrawnDom(s.self);u!==this.lastTableDom&&(this.lastTableDom=u,this.pm.dispatchEvent("tableChange",s))}onFirefoxTableDrawChange(r,i,s,u){if(!i.isConnected)return;let x=this.pm.getPlugin("draw");if(u)for(let v of u){let P=x.getPmElement(i).getContainingSegment(v);P&&this.scheduler.schedule(P)}else this.scheduler.schedule(x.getPmElement(i).getAllSegments())}getTableCellInset(r){let i=be.fly(r).parentNode;if(!i)return null;let s=0,u=0,x=be.fly(i).getContentHeight()-be.fly(r).getHeight(),v=r.style.verticalAlign;if(v==="top")u+=x;else if(v==="bottom")s+=x;else if(v==="middle"){let P=x/2;s+=P,u+=P}else u+=x;return{l:0,t:s,r:0,b:u}}async pasteTableDom(r){let i=this.pm.selection.$from.findNode("ListContainer"),s=this.pm.getPlugin("input:editor")?.parseTable(r,{parserOptions:{list:{currentListMap:i&&i.getAttrValue("listMap",!0)}}});if(!s)return!1;let{node:u,custom:x}=s,v=this.pm.getPlugin("operator");return!!v&&v.getOperator("table").replaceCells(u,{list_map:x.list?.listMap})}}let E5=new Et(class extends j5{constructor(l,r){super(l,r)}getTableIndent(l){return{left:Lt(l.style.marginLeft,"px")||0,right:Lt(l.style.marginRight,"px")||0}}});class V5 extends Gt{constructor(r,i){super(r,i),this.itemMap=new Map}static get pluginName(){return"geometry"}static get pluginDependency(){return["draw"]}addItem(r,i){this.removeItem(r),this.itemMap.set(r,i)}removeItem(r){this.itemMap.delete(r)}getItem(r){return this.itemMap.get(r)}getGeometryInfo(r){return this.getItem(r)?.info}getElement(r){return this.getItem(r)?.dom}createGeometryInfo(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return null}}let B5=new Et(class extends V5{constructor(l,r){super(l,r)}bindEvents(){super.bindEvents();let l=this.pm.getPlugin("draw");this.bindEvent(l,"render",this.onDrawingDrawRender,this,{checker:"Drawing",priority:100})}onDrawingDrawRender(l,r,i,s){if(!i.isTarget("major"))return l;let u=r.getAttrValue("id");if(!u)return l;let x=r.getState("geometryInfo")||this.createGeometryInfo({...r.getAttrValue("config"),schema:r.type.name});return x&&x.getDrawingSchema()!=="picture"&&this.pm.doc.resolve(s).exists("Drawing",{excludeSelf:!0})&&(x=null),x?this.addItem(u,{info:x,dom:l}):this.removeItem(u),l}createGeometryInfo(l){return l?ql.createFromShape(l):null}});class z5 extends Gt{constructor(r,i){super(r,i),i=this.options,this.requestImageUrl=i.requestImageUrl,this.loadingImageFill=i.loadingImageFill,this.fallbackImageFill=i.fallbackImageFill,this.preparingIconUrl=i.preparingIconUrl,this.preparingIconSize=i.preparingIconSize??{width:0,height:0},this.loadingImageUrl=void 0,this.fallbackImageUrl=void 0}static get pluginName(){return"image"}static get pluginDependency(){return["draw","image_loader"]}bindEvents(){super.bindEvents();let r=this.pm;this.bindEvent(r,"beforePrint",this.onBeforePrint,this)}onBeforePrint(r,i){return this.pm.getPlugin("image_loader").loadDescendant(this.pm.content).then(_)}generatePlainFillImageUrl(r){if(!r)return"";let i=document.createElement("canvas");i.width=1,i.height=1;let s=i.getContext("2d");if(!s)return"";s.fillStyle=r,s.fillRect(0,0,i.width,i.height);try{return i.toDataURL("image/png")}catch{return""}}getLoadingImageUrl(){return this.loadingImageUrl??(this.loadingImageUrl=this.generatePlainFillImageUrl(this.loadingImageFill))}getFallbackImageUrl(){return this.fallbackImageUrl??(this.fallbackImageUrl=this.generatePlainFillImageUrl(this.fallbackImageFill))}getPreparingIconUrl(){return this.preparingIconUrl}getPreparingIconSize(){return this.preparingIconSize}getImageUrl(r,i){let s=this.requestImageUrl;if(!s)return null;let u=null;try{u=s(r,i)}catch(x){ir.default.warn(`Failed to request image [${r}].`,x)}return u&&typeof u=="object"&&"then"in u?u.catch(x=>(ir.default.warn(`Failed to request image [${r}].`,x),null)):u}renderImageUrl(r,i){if(i===void 0&&(i=d),!r)return null;let s=i.renderTarget==="clipboard",u=!!s||i.sync||!1;return this.getImageUrl(r,{raw:s,absolute:s,...i,sync:u})}renderImageUrlSync(r,i){let s=this.renderImageUrl(r,{...i,sync:!0});return typeof s=="string"?s:null}renderImageUrlAsync(r,i){return Promise.resolve(this.renderImageUrl(r,i))}loadImageDom(r,i,s,u){let x=this.pm.getPlugin("image_loader");return u?.useLoadingImage&&x.setImageElementUrl(r,i,this.getLoadingImageUrl()),x.loadImageDom(r,this.renderImageUrlAsync(s,u).then(v=>(!v&&u?.useFallbackImage&&(v=this.getFallbackImageUrl()),{type:i,url:v||""})))}shouldShowPreparingIcon(r,i){let{width:s,height:u}=this.getPreparingIconSize();return r>=s&&i>=u}createPreparingIcon(r,i){let s=this.getPreparingIconUrl();if(!s)return null;let u=It([i]),{width:x,height:v}=this.getPreparingIconSize();return i==="image"?(u.setAttribute("width",String(x)),u.setAttribute("height",String(v))):(u.style.width=x+"px",u.style.height=v+"px"),this.pm.getPlugin("image_loader").setImageElementUrl(u,r,s),u}}let F5=new Et(class extends z5{constructor(l,r){super(l,r)}bindEvents(){super.bindEvents();let l=this.pm.getPlugin("draw");this.bindEvent(l,"render",this.onPictureDrawRender,this,{checker:"Picture"}),this.bindEvent(l,"render",this.onFileDrawRender,this,{checker:"Image"})}onPictureDrawRender(l,r,i){let s=i.getTarget();if(s!=="clipboard")return l;let u=r.getAttrValue("id");if(!u)return l;let x=this.pm.getPlugin("geometry").getGeometryInfo(u);if(!x||x.getDrawingSchema()!=="picture")return l;let v=x.getImageFileId();if(!v)return l;let P=this.renderImageUrlSync(v,{renderTarget:s});if(!P)return l;let j=x.getRectData(),F=Mo(P,j.w,j.h);return F.setAttribute("graph-config",JSON.stringify(x.extractShapeConfig())),F}onFileDrawRender(l,r,i){if(!i.isTarget("major")||r.getAttrValue("file_type")!=="temp")return l;let s=l.firstElementChild;if(!s||s.nodeName.toLowerCase()!=="img")return l;s.src=this.getFallbackImageUrl();let u=Lt(r.getAttrValue("width")??"","px"),x=Lt(r.getAttrValue("height")??"","px");if(!this.shouldShowPreparingIcon(u,x))return l;let v=this.createPreparingIcon("background","span");if(!v)return l;let{left:P,top:j}=r.type.getObjectBorder(r);return Object.assign(v.style,{display:"block",position:"absolute",left:P+"px",top:j+"px",width:u+"px",height:x+"px","background-position":"50%","background-repeat":"no-repeat"}),l.appendChild(v),l}},{loadingImageFill:"#F6F8FA",fallbackImageFill:"#F6F8FA"});var G5=Ct(13546),H5=Ct.n(G5);class W5{constructor(){this.implementation=H5().init(wa(),void 0,{width:100,height:100,devicePixelRatio:window.devicePixelRatio})}resize(r){this.implementation.resize(r)}draw(r){let i=r.getEchartParameters(this.implementation.getWidth(),this.implementation.getHeight());i&&this.implementation.setOption(i,!0)}getDataURL(r){return this.implementation.getDataURL(r)}dispose(){this.implementation.dispose()}}function jf(l){return`${l.width}x${l.height}`}var q5=1/0;let U5=function(l){var r,i=(r=l)?(r=We(r))===q5||r===-1/0?(r<0?-1:1)*17976931348623157e292:r==r?r:0:r===0?r:0,s=i%1;return i==i?s?i-s:i:0};var $5=et.isFinite,Z5=Math.min,th=function(l){var r=Math[l];return function(i,s){if(i=We(i),(s=s==null?0:Z5(U5(s),292))&&$5(i)){var u=(lo(i)+"e").split("e");return+((u=(lo(r(u[0]+"e"+(+u[1]+s)))+"e").split("e"))[0]+"e"+(+u[1]-s))}return r(i)}}("round");let Ef=new WeakMap,Vf=new class{constructor(){this.map=new WeakMap}set(l,r,i){let s=this.map.get(l);s||(s=new Map,this.map.set(l,s)),s.set(jf(r),i)}get(l,r){return this.map.get(l)?.get(jf(r))}};function rh(l){let r=Ef.get(l);if(r)return r;let i=new yi(l.config,l);return Ef.set(l,i),i}class J5 extends Gt{constructor(r,i){var s,u;super(r,i),this.chartPainter=null,this.emptyImage=null;let{emptyImageUrl:x,emptyImageSize:v}=i;x&&(s=v?.width,u=v?.height,new Promise((P,j)=>{let F=new Image(s,u);F.src=x,F.onload=()=>{P(F)},F.onerror=j})).then(P=>{this.emptyImage=P})}static get pluginName(){return"chart"}static get pluginDependency(){return["draw"]}destroy(){if(this.chartPainter){try{this.chartPainter.dispose()}catch(r){ir.default.warn("Failed to dispose chart painter.",r)}this.chartPainter=null}super.destroy()}ensureChartPainter(){return this.chartPainter??=new W5}getChartInfo(r){return rh(r)}getEmptyUrl(r,i){let s=wa();s.width=r,s.height=i;let u=this.emptyImage;if(u){let v=s.getContext("2d");if(v){let P=Math.min(r,u.width),j=Math.min(i,u.height);v.drawImage(u,(r-P)/2,(i-j)/2,P,j)}}let x=function(v,P){P===void 0&&(P=Object.create(null));var j=P;j===void 0&&(j=Object.create(null));let{background:F}=j;if(F){let q=v.getContext("2d");q&&(q.globalCompositeOperation="destination-over",q.fillStyle=typeof F=="string"?F:"#FFF",q.fillRect(0,0,v.width,v.height))}try{return v.toDataURL("image/png")}catch{return"data:,"}}(s,{background:!0});return s.remove(),x}doGetChartUrl(r,i){let s,u=rh(r);if(!u.isDrawable())return;let x=this.ensureChartPainter();try{x.resize(i),x.draw(u),s=x.getDataURL({pixelRatio:2*window.devicePixelRatio})}catch(v){ir.default.error(v)}return s}getChartUrl(r,i){var s;i={width:th((s=i).width,6),height:th(s.height,6)};let u=Vf.get(r,i);if(u!==void 0)return u||void 0;let x=this.doGetChartUrl(r,i);return Vf.set(r,i,x??""),x}renderChartUrl(r,i,s){if(s==="clipboard")return this.getChartUrl(r,i);{let u=this.getChartUrl(r,i);return u?(this.pm.getPlugin("color")?.collectColors(rh(r).getAllColors()),u):this.getEmptyUrl(i.width,i.height)}}}let X5=new Et(class extends J5{constructor(l,r){super(l,r)}bindEvents(){super.bindEvents();let l=this.pm.getPlugin("draw");this.bindEvent(l,"render",this.onChartDrawRender,this,{checker:"Chart"})}onChartDrawRender(l,r,i){let s=i.getTarget(),u=parseFloat(r.getAttrValue("width")),x=parseFloat(r.getAttrValue("height")),v=this.renderChartUrl(r.attrs,{width:u,height:x},s);if(v){let P=Mo(v,u,x);P.style.display="block",P.style.position="absolute",l.appendChild(P)}return l}});class Y5 extends Gt{constructor(r,i){super(r,i),this.shapeRenderers=this.createShapeRenderers()}static get pluginName(){return"shape"}static get pluginDependency(){return["draw","geometry","image"]}createShapeRenderers(){return Y(this.getShapeRendererConstructors(),r=>new r(this.pm))}getShapeRenderer(r){return this.shapeRenderers[r]||null}}class Bf{constructor(r){this.pm=r}drawShape(r,i,s){}drawStroke(r,i,s){}}class zf extends Bf{createGraphPath(){return It(["path"])}drawShape(r,i,s){this.drawGraphPaths(r,i,s)}drawGraphPaths(r,i,s){let u=r.firstElementChild;for(let x of i.drawPathAttrs({type:s.pathType}))u||(u=r.appendChild(this.createGraphPath())),Jt(u,x),u=u.nextElementSibling}}class Q5 extends zf{}class K5 extends Bf{createImagePath(){return It(["path"])}createImageClipPath(){return It(["clipPath",null,this.createImagePath()])}createImage(){return It(["image",{preserveAspectRatio:"none"}])}createImageGroup(){return It(["g",null,this.createImage()])}drawShape(r,i,s){r.firstChild||(r.appendChild(this.createImageClipPath()),r.appendChild(this.createImageGroup()),this.drawImageClipId(r,i,s));let u=r.firstElementChild,x=u.nextElementSibling;this.drawImagePaths(u,i,s),this.drawImageGroup(x,i,s)}drawImageClipId(r,i,s){let u=`crop_${ge()}`,x=r.firstElementChild,v=x.nextElementSibling;Jt(x,{id:u}),Jt(v,{"clip-path":`url(#${u})`})}drawImagePaths(r,i,s){let u=r.firstElementChild;for(let x of i.drawPathAttrs({type:s.pathType,stroke:!1,fill:!1}))u||(u=r.appendChild(this.createImagePath())),Jt(u,x),u=u.nextElementSibling}drawImageGroup(r,i,s){this.drawImage(r.firstElementChild||r.appendChild(this.createImage()),i,s)}drawImage(r,i,s){let u=this.getImageRect(i);Jt(r,{width:u.w,height:u.h,transform:sr.createTranslate(u.l,u.t).toString()}),this.pm.getPlugin("image").loadImageDom(r,"foreground",this.getImageFileId(i),{sync:this.pm.isWritable(),useLoadingImage:!0,useFallbackImage:!0})}createStrokeMaskRect(){return It(["rect",{fill:"#FFFFFF","fill-opacity":1}])}createStrokeMaskPath(){return It(["path"])}createStrokeMask(){return It(["mask",null])}createStrokeBodyPath(){return It(["path"])}createStrokeBodyGroup(){return It(["g"])}drawStroke(r,i,s){r.firstChild||(r.appendChild(this.createStrokeMask()),r.appendChild(this.createStrokeBodyGroup()),this.drawStrokeMaskId(r,i,s));let u=r.firstElementChild,x=u.nextElementSibling;this.drawStrokeMask(u,i,s),this.drawStrokeBodyGroup(x,i,s)}drawStrokeMaskId(r,i,s){let u=`mask_${ge()}`,x=r.firstElementChild,v=x.nextElementSibling;Jt(x,{id:u}),Jt(v,{mask:`url(#${u})`})}drawStrokeMask(r,i,s){this.drawStrokeMaskPaths(r,i,s),this.drawStrokeMaskRect(r,i,s)}drawStrokeMaskPaths(r,i,s){let u=r.firstElementChild;for(let x of i.drawPathAttrs({type:s.pathType,stroke:!1,fill:{fill:"#000000","fill-opacity":1}}))u||(u=r.appendChild(this.createStrokeMaskPath())),Jt(u,x),u=u.nextElementSibling}drawStrokeMaskRect(r,i,s){let u=i.getDisplayRect(),x=2*Math.ceil(i.getStrokeWidth()),v=Math.floor(u.l)-x,P=Math.floor(u.t)-x,j={x:v,y:P,width:Math.ceil(u.r)+x-v,height:Math.ceil(u.b)+x-P};Jt(r,j),Jt(r.insertBefore(this.createStrokeMaskRect(),r.firstChild),j)}drawStrokeBodyGroup(r,i,s){this.drawStrokeBodyPaths(r,i,s)}drawStrokeBodyPaths(r,i,s){let u=r.firstElementChild;for(let x of i.drawPathAttrs({type:s.pathType,stroke:{"stroke-width":2*i.getStrokeWidth()},fill:{fill:"transparent","fill-opacity":1}}))u||(u=r.appendChild(this.createStrokeBodyPath())),Jt(u,x),u=u.nextElementSibling}}class ev extends zf{}class tv extends Q5{}class rv extends K5{getImageRect(r){return r.getImageRect()}getImageFileId(r){return r.getImageFileId()}}let iv=new Et(class extends Y5{constructor(l,r){super(l,r),this.drawingClassName=`${this.pm.schema.nodeType("doc").classPrefix}drawing`}getShapeRendererConstructors(){return{shape:ev,connector:tv,picture:rv}}bindEvents(){super.bindEvents();let l=this.pm.getPlugin("draw");this.bindEvent(l,"afterChildRender",this.onDrawingDrawAfterChildRender,this,{checker:"Drawing"})}onDrawingDrawAfterChildRender(l,r,i){if(!i.isTarget("display"))return;let s=l.getAttrValue("id"),u=s?this.pm.getPlugin("geometry").getGeometryInfo(s):void 0,x=this.pm.getPlugin("draw").getPmElement(r).childContainer?.parentElement??ea(r)??r;if(u){this.drawWrapper(x,u);let v=this.getShapeRenderer(u.getDrawingSchema());if(v){let P={pathType:"all",target:i.getTarget()},j=this.findGraphicLocation(x).childNodes;v.drawShape(j[0],u,P),v.drawStroke(j[1],u,P)}}else this.hideWrapper(x)}findGraphicLocation(l){return l.firstElementChild.firstElementChild}createGraphicFrame(){return It(["svg",{classList:`${this.drawingClassName}-graphic`,fill:"none",stroke:"none","fill-rule":"evenodd",overflow:"visible"}])}createLocationGroup(){return It(["g"])}createShapeGroup(){return It(["g"])}createStrokeGroup(){return It(["g"])}drawWrapper(l,r){let i=r.getPaddingRect();Jt(l,{inline_style:{width:i.w+"px",height:i.h+"px","z-index":r.isInline()?void 0:r.getZOrder()}}),r.getDrawingSchema()==="shape"&&this.drawTextFrame(l.firstElementChild,r);let s=this.createGraphicFrame();l.prepend(s),this.drawGraphicFrame(s,r)}drawGraphicFrame(l,r){let{l:i,t:s,w:u,h:x}=r.getPaddingRect();Jt(l,{width:u,height:x,viewBox:`${i} ${s} ${u} ${x}`}),this.drawGraphicLocation(l.appendChild(this.createLocationGroup()),r)}drawGraphicLocation(l,r){Jt(l,{transform:r.renderTransform()}),this.drawGraphicShape(l.appendChild(this.createShapeGroup()),r),this.drawGraphicStroke(l.appendChild(this.createStrokeGroup()),r)}drawGraphicShape(l,r){Jt(l,{"pointer-events":"visiblePainted"})}drawGraphicStroke(l,r){Jt(l,{"pointer-events":"visiblePainted"})}drawTextFrame(l,r){let{l:i,t:s}=r.getViewPadding(),{w:u,h:x}=r.getViewRect();Jt(l,{classList:[`${this.drawingClassName}-text`],inline_style:{left:i+"px",top:s+"px",width:u+"px",height:x+"px"}}),this.drawTextLocation(l.firstElementChild,r)}drawTextLocation(l,r){let{l:i,t:s}=r.getViewRect();Jt(l,{inline_style:{left:-i+"px",top:-s+"px",transform:r.renderTransform({flipMode:"vertical"}),"transform-origin":"0 0"}})}hideWrapper(l){Array.prototype.forEach.call(l.children,r=>{r.style.display="none"})}});class nv extends Gt{constructor(r,i){super(r,i),this.currentTextBoxDom=null,this.currentTextBoxPointer=!0}static get pluginName(){return"text_box"}static get pluginDependency(){return["draw"]}onCurrentTextBoxChange(r){let i=r&&this.pm.getPlugin("draw").getDrawnDom(r);i!==this.currentTextBoxDom&&(this.currentTextBoxDom&&this.updateTextBoxPointerEvents(this.currentTextBoxDom,this.currentTextBoxPointer),this.currentTextBoxDom=i,this.currentTextBoxPointer=!r||!i||this.computeTextBoxPointerEvents(r),i&&this.updateTextBoxPointerEvents(i,!0))}onTextBoxDrawChange(r){let i=this.pm.getPlugin("draw").getDrawnDom(r);if(!i)return;let s=this.computeTextBoxPointerEvents(r);i===this.currentTextBoxDom?this.currentTextBoxPointer=s:this.updateTextBoxPointerEvents(i,s)}computeTextBoxPointerEvents(r){if(r.nodeSize>4)return!0;let i=r.firstChild;return!!(i&&i.is("ListBlock")&&i.type.isValidListBlock(i))}updateTextBoxPointerEvents(r,i){let s=this.findTextBoxPointerTarget(r);s&&(s.style.pointerEvents=i?"auto":"none")}}let Ff=new WeakMap,av=new Et(class extends nv{constructor(l,r){super(l,r);let i=l.schema.nodeType("shape").matchDOMTag;this.shapeSelector=i?Object.keys(i).join(","):void 0}static get pluginDependency(){return super.pluginDependency.concat(["shape"])}bindEvents(){super.bindEvents();let l=this.pm;this.bindEvent(l,"statusChange",this.onStatusChange,this);let r=l.getPlugin("draw");this.bindEvent(r,"change",this.onTextBoxDrawChange,this,{checker:"TextBox"}),l.getPlugin("input:editor")&&l.getPlugin("operator")&&this.bindEvent(l,"doubleClick",this.onDrawingDoubleClick,this);let i=l.getPlugin("input_data_transfer");i&&this.bindEvent(i,"dom",this.onInputDataTransferDom,this)}onStatusChange(l){let r=l.selection.basic.sel.getResolvedEditor();r&&this.onCurrentTextBoxChange(r.self.is("TextBox")?r.self:null)}onTextBoxDrawChange(l){super.onTextBoxDrawChange(l),this.onTextBoxAnchor(l)}onTextBoxAnchor(l){let r=this.pm.getPlugin("draw").getDrawnDom(l);if(!r)return;let i=0,s=l.getAttrValue("anchor");if(s==="ctr"||s==="b"){let x=Math.max(l.getState("textRect")?.h||0,0),v=be.fly(r).getContentHeight();i=s==="ctr"?(x-v)/2:x-v}else i=0;let u=this.pm.schema.nodeType("text_box").queryDom(r,".syno-o-doc-pm-text-box-content",!0);u.style.left="0",u.style.top=i+"px"}onTransformCoordinateSystem(l,r){if(!r.self.is("TextBox"))return;let i=r.parent;if(!i.is("Drawing"))return;let s=i.getAttrValue("id");if(!s)return;let u=this.pm.getPlugin("geometry").getGeometryInfo(s);if(!u)return;let x=i.queryChildNode("TextBox",!0).getState("textRect",d);return this.getTextBoxInverseMatrix(u,x).apply(l)}onDrawingDoubleClick(){let l=this.pm.getPlugin("operator");if(!l)return;let r=this.pm.selection;r.is("Node")&&r.node.is("Drawing")&&l.getOperator("drawing").selectBeforeText()}onInputDataTransferDom(l,r){let i=this.pm.multiSelection.getResolvedEditor();if(!i||!i.self.is("TextBox"))return l;let s=this.shapeSelector;return s&&l.querySelectorAll(s).forEach(u=>{u.remove()}),l}getTextBoxInset(l){let r=this.pm.schema.nodeType("text_box"),i=Lt(l.style.width,"px")||0,s=Lt(l.style.height,"px")||0,u=r.queryDom(l,".syno-o-doc-pm-text-box-area",!0),x=r.queryDom(l,".syno-o-doc-pm-text-box-content",!0),v=Lt(u.style.left,"px")||0,P=(Lt(u.style.top,"px")||0)+(Lt(x.style.top,"px")||0);return{l:v,t:P,r:i-v-(Lt(u.style.width,"px")||0),b:s-P-(Lt(x.style.height,"px")||0)}}getTextBoxSize(l){let r=this.pm.schema.nodeType("text_box"),i=r.queryDom(l,".syno-o-doc-pm-text-box-area",!0),s=r.queryDom(l,".syno-o-doc-pm-text-box-content",!0);return{width:Lt(i.style.width,"px")||0,height:Lt(s.style.height,"px")||0}}computeTextBoxInverseMatrix(l,r){let{x:i,y:s}=l.getRectCenter();return l.computeViewMatrix({flipMode:"vertical",originateCenter:!0}).translate(-i+(r.l||0),-s+(r.t||0)).inverse()}getTextBoxInverseMatrix(l,r){let i=Ff.get(l);if(i&&ye(i.textRect,r,ve,void 0))return i.matrix;let s=this.computeTextBoxInverseMatrix(l,r);return Ff.set(l,{textRect:r,matrix:s}),s}findTextBoxPointerTarget(l){return l.firstElementChild}});var ih=Ct(45799);class sv extends Gt{constructor(r,i){super(r,i),this.scheduler=this.createScheduler(),this.queue=new ih.HibernationTaskQueue({mode:"manual-sync"}),this.hibernationDomMap=new Map,this.lineTaskConcurrency=Math.max(i.lineTaskConcurrency||5,1),this.computeInlineOverlays=this.computeInlineOverlays.bind(this)}static get pluginName(){return"line"}static get pluginDependency(){return["draw","dompos"]}static get pluginSubscriptions(){return{lineDomUpdate:new ut}}createScheduler(){return this.pm.createFlushScheduler({actions:{handleLineDisplay:{handler:this.handleLineDisplay.bind(this),merger:this.mergeChangedLines.bind(this)},handleLineUpdate:{handler:this.handleLineUpdate.bind(this),merger:this.mergeChangedLines.bind(this)}}})}handleLineDisplay(r){let{displayedLines:i,pendingSet:s}=this.findDisplayedLineInfo(r);if(i.length>0){for(let{controller:u}of i)u.wake();this.queue.consume()}s.size>0&&Promise.resolve().then(()=>{this.scheduleHandleLineDisplay(s)})}mergeChangedLines(r,i){if(r===!0||i===!0)return!0;{let s;return!i&&r&&r instanceof Set?r:(s=i?i instanceof Set?i:new Set([i]):new Set,r instanceof Set?r.forEach(s.add,s):s.add(r),s)}}ensureLineSet(r){return r===!0?new Set(this.hibernationDomMap.keys()):r instanceof Set?r:new Set([r])}findDisplayedLineInfo(r){let i=this.ensureLineSet(r),s=[],u=this.hibernationDomMap;for(let x of i){i.delete(x);let v=u.get(x);if(v)if(x.isConnected){if(va(x)&&(u.delete(x),s.push({dom:x,controller:v}),s.length===this.lineTaskConcurrency))break}else u.delete(x)}return{displayedLines:s,pendingSet:i}}handleLineUpdate(r){this.pm.dispatchEvent("lineDomUpdate",Array.from(this.ensureLineSet(r).values()))}ensureHibernationController(r){let i=this.hibernationDomMap,s=i.get(r);return s||((s=new ih.HibernationController).signal.addEventListener("abort",()=>{i.delete(r)}),i.set(r,s)),s}scheduleHandleLineDisplay(r){this.scheduler.schedule("handleLineDisplay",r)}scheduleHandleLineUpdate(r){this.scheduler.schedule("handleLineUpdate",r)}async requestDrawingInlineOverlays(r,i,s,u){u={startBias:1,endBias:-1,...u};let x=this.pm.getPlugin("draw").getDrawnDom(r);if(!x)return[];let v=this.pm.getPlugin("dompos").findInlineRanges(x,i,s,u);return v?Promise.all(v.map(P=>this.requestDrawingInlineOverlaysByRange(P,u))).then(P=>P.reduce((j,F)=>(F&&j.push(...F),j),[])):[]}requestDrawingInlineOverlaysByRange(r,i){i===void 0&&(i=d);let{lineDom:s,startOffset:u,endOffset:x}=r,v=be.fly(s).getVersion(),P=new ih.HibernationController,j=this.ensureHibernationController(s);j.signal.addEventListener("abort",P.abort.bind(P)),j.signal.addEventListener("wake",P.wake.bind(P)),j.signal.addEventListener("sleep",P.sleep.bind(P)),i.signal&&i.signal.addEventListener("abort",P.abort.bind(P));let F=i.onProgress,q=this.queue.enqueue(this.computeInlineOverlays,{arg:{lineDom:s,lineDomVersion:v,startOffset:u,endOffset:x,options:i},priority:i.priority,signal:P.signal}).then(J=>(F&&J.length&&(F(J)??!0)&&this.scheduleHandleLineUpdate(s),J)).catch(M);return this.scheduleHandleLineDisplay(s),q}async computeInlineOverlays(r){let{lineDom:i,lineDomVersion:s,startOffset:u,endOffset:x,options:v}=r;if(s!==be.fly(i).getVersion())throw Error("Line dom is out-of-date.");let P=this.pm.getPlugin("dompos").computeInlineOverlays(i,u,x,v);if(!P)throw Error("No available inline overlays.");return P}appendLineDecoration(r,i){r.appendChild(i)}}let ov=new Et(class extends sv{constructor(l,r){super(l,r)}bindEvents(){super.bindEvents();let l=this.pm;l.getPlugin("page_display")&&this.bindEvent(l,"pageViewChange",this.onPageViewChange,this)}onPageViewChange(l,r){r&&r.start.index<=l.start.index&&r.end.index>=l.end.index||this.scheduleHandleLineDisplay(!0)}});function Xi(l){return l===32||l===9||l===10}function Wn(l){return l===12288}function nh(l){return Xi(l)||Wn(l)}let lv=(()=>{function l(){for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];let[x,v,P,j,F,q,J,re]=s;return x|v<<1|P<<2|j<<3|F<<4|q<<5|J<<6|re<<7}let r=[0,0,0,0,0,0,0,0,0,0,0,0];return[[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,1,1,0,1,1,1,1),l(0,1,1,0,1,0,0,0),0,l(0,0,0,1,1,1,0,1),255,255,255,l(1,1,1,1,0,1,1,1),255,255,255,l(1,1,1,1,0,1,1,1)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],r,r,r,r,r,r,r,r,r,r,[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,1,1,1,1,0,1),l(0,1,1,0,1,0,0,1),255,l(1,0,0,1,1,1,0,1),255,255,255,l(1,1,1,1,0,1,1,1),255,255,255,l(1,1,1,1,0,1,1,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,1),l(0,0,0,0,0,0,0,0),0,l(0,0,0,1,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0),0,0,0,l(0,0,1,0,0,0,0,0)],[l(0,0,0,0,0,0,0,0),l(0,0,0,0,0,0,0,0),0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0),0,0,0,l(0,0,0,0,0,0,0,0)]]})();function Gf(l){return l>=48&&l<=57}function Hf(l){return typeof l!="string"?{textWrapping:l?.textWrapping??"wrap",endOfLineSpace:l?.endOfLineSpace??"wrap",endOfLineOtherSpace:l?.endOfLineOtherSpace??"wrap"}:l==="pre-wrap"?{textWrapping:"wrap",endOfLineSpace:"hang",endOfLineOtherSpace:"hang"}:{textWrapping:"wrap",endOfLineSpace:"wrap",endOfLineOtherSpace:"wrap"}}let ah={preceding:!1,subsequent:!1};function Wf(l){return ah.preceding=l?.preceding??!1,ah.subsequent=l?.subsequent??!1,ah}let Yi={text:"",hasPrecedingJoiner:!1,hasSubsequentJoiner:!1,prefixedJoiner:"",suffixedJoiner:""},sh=[0,0];function qf(l){if(l)return"verticalAlign"in l||"verticalAlignReferenceStyle"in l||"additionalLineStyles"in l?{...l,verticalAlign:void 0,verticalAlignReferenceStyle:void 0,additionalLineStyles:void 0}:l}function Ss(l){l.font=Po(l)}function Uf(l){if(Ss(l),l.verticalAlignReferenceStyle&&Ss(l.verticalAlignReferenceStyle),l.additionalLineStyles){let r=l.additionalLineStyles;Array.isArray(r)?r.forEach(Ss):Ss(r)}return l}function $f(l,r){if(l){let i={...r,...l};if(l.verticalAlignReferenceStyle&&(i.verticalAlignReferenceStyle={...r,...l.verticalAlignReferenceStyle}),l.additionalLineStyles){let s=l.additionalLineStyles;Array.isArray(s)?i.additionalLineStyles=s.map(u=>({...r,...u})):i.additionalLineStyles={...r,...s}}return Uf(i)}if(r)return Uf({...r})}function Zf(l,r){return{width:l.width,height:l.height,textBoxAscent:l.fontBoundingBoxAscent,textBoxDescent:l.fontBoundingBoxDescent,lineBoxAscent:r.lineBoundingBoxAscent,lineBoxDescent:r.lineBoundingBoxDescent}}function Qi(l){let r=l?.textBoxAscent??0,i=l?.textBoxDescent??0,s=l?.lineBoxAscent??0,u=l?.lineBoxDescent??0;return{width:l?.width??0,height:r+i,textBoxAscent:r,textBoxDescent:i,lineBoxAscent:s,lineBoxDescent:u}}function Cs(l,r){let i=Math.max(l.textBoxAscent,r.textBoxAscent),s=Math.max(l.textBoxDescent,r.textBoxDescent),u=Math.max(l.lineBoxAscent,r.lineBoxAscent),x=Math.max(l.lineBoxDescent,r.lineBoxDescent);return{width:l.width+r.width,height:i+s,textBoxAscent:i,textBoxDescent:s,lineBoxAscent:u,lineBoxDescent:x}}function oh(l,r){return{text:Ni(l,r),line:Sa(r)}}function Is(l,r){return r?l=function(i,s){let u=s.additionalLineStyles;if(!u)return i;for(let x of(i={...i},Array.isArray(u)?u:[u])){let{lineBoundingBoxAscent:v,lineBoundingBoxDescent:P}=Sa(x);i.lineBoxAscent=Math.max(i.lineBoxAscent,v),i.lineBoxDescent=Math.max(i.lineBoxDescent,P)}return i}(l=function(i,s){let u=s.verticalAlign;if(u!=="super"&&u!=="sub")return i;let x=Sa(s.verticalAlignReferenceStyle??s),v=u==="super"?x.superBaselineAscent:x.subBaselineAscent;return{width:i.width,height:i.height,textBoxAscent:i.textBoxAscent+v,textBoxDescent:i.textBoxDescent-v,lineBoxAscent:Math.max(i.lineBoxAscent+v,x.lineBoundingBoxAscent),lineBoxDescent:Math.max(i.lineBoxDescent-v,x.lineBoundingBoxDescent)}}(l,r),r):l}function Jf(l){if(typeof l=="number")return{total:l,width:l,margin:[0,0],filled:void 0};{let{width:r,margin:i=[0,0],filled:s}=l;return{total:r-i[0]-i[1],width:r,margin:i,filled:s&&Qi(s)}}}function Ps(l,r){return $f(l.style,r?.defaultStyle)}function Xf(l){let r="border"in l?l.border:void 0;return{left:r?.left??0,top:r?.top??0,right:r?.right??0,bottom:r?.bottom??0}}function lh(l,r,i){let{text:s,line:u}=oh(l,r),x=Xf(i),v=s.fontBoundingBoxAscent+x.top,P=s.fontBoundingBoxDescent+x.bottom,j=u.lineBoundingBoxAscent+x.top,F=u.lineBoundingBoxDescent+x.bottom;return Is({width:s.width+x.left+x.right,height:v+P,textBoxAscent:v,textBoxDescent:P,lineBoxAscent:j,lineBoxDescent:F},r)}var hv=Ct(87291),uv=Ct(64806),Yf={};let cv=[[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4],[0,4,4,1,1,4,4,4,4,1,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,4,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[4,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,1,1,1,1,0,0,4,2,4,1,1,1,1,1,0,1,1,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,1,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,4,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,1,1,1,1,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,1,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0]],dv=new hv(uv.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/")),Qf=function(l){switch(l){case 33:case 39:case 40:case 42:return 12;case 35:return 5;default:return l}},Kf=function(l){switch(l){case 37:case 38:return 34;case 41:return 22;default:return l}};class hh{constructor(r,i=!1){this.position=r,this.required=i}}Yf=class{nextCodePoint(){let l=this.string.charCodeAt(this.pos++),r=this.string.charCodeAt(this.pos);return 55296<=l&&l<=56319&&56320<=r&&r<=57343?(this.pos++,(l-55296)*1024+(r-56320)+65536):l}nextCharClass(){return Qf(dv.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case 41:return!1;case 34:case 37:case 38:return this.curClass=34,!1;case 36:return this.curClass=36,!1}return null}getPairTableBreak(l){let r=!1;switch(cv[this.curClass][this.nextClass]){case 0:r=!0;break;case 1:r=l===41;break;case 2:if(!(r=l===41))return!1;break;case 3:if(l!==41)return r}return this.LB8a&&(r=!1),this.LB21a&&(this.curClass===16||this.curClass===17)?(r=!1,this.LB21a=!1):this.LB21a=this.curClass===13,this.curClass===28?(this.LB30a++,this.LB30a==2&&this.nextClass===28&&(r=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,r}nextBreak(){if(this.curClass==null){let l=this.nextCharClass();this.curClass=Kf(l),this.nextClass=l,this.LB8a=l===31,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;let l=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===34||this.curClass===36&&this.nextClass!==37)return this.curClass=Kf(Qf(this.nextClass)),new hh(this.lastPos,!0);let r=this.getSimpleBreak();if(r===null&&(r=this.getPairTableBreak(l)),this.LB8a=this.nextClass===31,r)return new hh(this.lastPos)}return this.lastPos<this.string.length?(this.lastPos=this.string.length,new hh(this.string.length)):null}constructor(l){this.string=l,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}};class pv{constructor(r,i={}){this.implementation=new Yf(r),this.breakOpportunityCaches=[],this.pos=0}get textLength(){return this.implementation.string.length}nextToPos(){let{pos:r}=this;if(r>=this.textLength)return null;let{implementation:i,breakOpportunityCaches:s}=this;for(;s.length<=r;){let x=i.lastPos,v=i.nextBreak();if(!v)return null;let{position:P}=v;for(let j=x;j<P;++j)s.push(v)}let u=s[r];return this.seek(u.position),u}seek(r){let i=this.textLength;return r<0&&(r+=i),r>=0&&r<=i?(this.pos=r,!0):(this.pos=i,!1)}next(r){return typeof r=="number"&&this.seek(r),this.nextToPos()}}function e0(l){return l>127&&l!==160}class gv{constructor(r,i={}){this.text=r,this.breakSpaceType=i.breakSpaceType??"after_every_spaces",this.icuLineBreaker=void 0}getBreakSpaceType(){return this.breakSpaceType}ensureIcuLineBreaker(){return this.icuLineBreaker??(this.icuLineBreaker=new pv(this.text))}next(r){let i,s,{text:u,breakSpaceType:x}=this,v=u.length;if(!(r>=0&&r<v))return-1;let P=-1,j=++r>=2?u.charCodeAt(r-2):0,F=u.charCodeAt(r-1),q=Xi(F);for(let J=r;J<v;++J,j=F,F=i,q=s){switch(s=Xi(i=u.charCodeAt(J)),x){case"before_every_spaces":if(s||Wn(i))return J;break;case"before_space_run":if(s){if(!q)return J;continue}break;case"after_space_run":if(q){if(!s)return J;continue}break;case"after_every_spaces":if(q||Wn(F))return J;if(s||Wn(i))return J+1}if(function(re,te,ie){if(te===45&&Gf(ie))return Gf(re)||(32|re)>=97&&(32|re)<=122;if(te>=33&&te<=127&&ie>=33&&ie<=127){let de=ie-33,ce=de%8;return!!(lv[te-33][(de-ce)/8]&1<<ce)}return!1}(j,F,i)||(e0(i)||e0(F))&&(P<J&&(P=this.ensureIcuLineBreaker().next(J-1)?.position??-1),J===P&&!q))return J}return v}}function qn(l,r,i){let s=l.at(-1)?.to??0;r<=s||l.push({from:s,to:r,forceBreak:i})}class fv{constructor(r,i,s={}){this.textMetas=i,this.textChunks=[],this.lastTextMetaIndex=-1,this.initTextChunks(r,s)}collectTextChunks(r,i,s,u,x){for(let v=u;v<x;++v){let P=r.charCodeAt(v);P===10?qn(this.textChunks,v+1,!0):P===9&&this.findTextMeta(v).item.type==="tab"&&qn(this.textChunks,v,!1)}(r.charCodeAt(s-1)!==9||this.findTextMeta(s-1).item.type!=="tab")&&qn(this.textChunks,s,!1)}initTextChunksForWrap(r,i){let s=new gv(r,i),{spaceBefore:u,spaceChecker:x}=function(P){let j,F;switch(P){case"before_every_spaces":j=!0,F=nh;break;case"before_space_run":j=!0,F=Xi;break;case"after_space_run":j=!1,F=Xi;break;case"after_every_spaces":j=!1,F=nh;break;default:throw Error(`Invalid break space type: ${P}`)}return{spaceBefore:j,spaceChecker:F}}(s.getBreakSpaceType()),v=0;for(;;){let P=s.next(v);if(P<0)break;let j=v,F=P;if(u){for(let q=v;q<P;++q)if(!x(r.charCodeAt(q))){F=q;break}}else for(let q=P-1;q>=v;--q)if(!x(r.charCodeAt(q))){j=q+1;break}this.collectTextChunks(r,v,P,j,F),v=P}}initTextChunksForNoWrap(r,i){for(let s=0,u=r.length;s<u;++s)r.charCodeAt(s)===10&&qn(this.textChunks,s+1,!0)}initTextChunks(r,i){let{textWrapping:s}=Hf(i.whiteSpaceRule);s==="wrap"?this.initTextChunksForWrap(r,i):this.initTextChunksForNoWrap(r,i),qn(this.textChunks,r.length,!1)}findTextMeta(r){let{textMetas:i,lastTextMetaIndex:s}=this,u=function(x,v,P){let j=v>=0?x[v]:null;if(j&&P>=j.from&&P<j.to)return v;let F=j&&P>=j.to?v+1:0;for(let q=F,J=x.length;q<J;++q)if(P<x[q].to)return q;throw Error(`Given position is out of range. pos: ${P}, range: ${[x.at(0)?.from,x.at(-1)?.to]}`)}(i,s,r);return this.lastTextMetaIndex=u,i[u]}*iterateTextChunks(){yield*this.textChunks}}let uh={preceding:!1,subsequent:!1},yv=(()=>{let l;return function(){return l!==void 0?l:l=Ma()}})();class xv{constructor(r={}){let i=r.canvas?r.canvas.getContext("2d"):yv();if(!i)throw Error("The canvas does not have 2D context.");this.whiteSpaceRule=Hf(r.whiteSpaceRule),this.overflowWrapType=r.overflowWrapType??"normal",this.renderingContext=i,this.defaultStyle=r.defaultStyle,this.hangingSpaceChecker=function(s){let u=s.endOfLineSpace==="hang",x=s.endOfLineOtherSpace==="hang";return u&&x?nh:u?Xi:x?Wn:void 0}(this.whiteSpaceRule),this.canvasStyle={direction:i.direction,font:i.font,fontStretch:i.fontStretch}}getWhiteSpaceRule(){return this.whiteSpaceRule}getOverflowWrapType(){return this.overflowWrapType}generateEffectiveTextDrawingStyle(r){return _c(this.defaultStyle?{...this.defaultStyle,...r}:r)}doSetupCanvasContext(r){let i=this.canvasStyle=this.generateEffectiveTextDrawingStyle(r);Object.assign(this.renderingContext,i)}createTextResult(r,i){let s={...function(u,x){let{preceding:v,subsequent:P}=Wf(x),j="",F=function(re,te,ie){for(let{value:de}of Pi(re,{from:0})){if(rr(Rh,de))return ie?de:void 0;if(rr(Xn,de))ie=!0;else if(!rr(Jn,de))break}}(u,0,v);F!==void 0&&(u=(j=rr(Oh,F)?"‏‍":"‍")+u);let q="",J=function(re,te,ie){for(let{value:de}of Pi(re,{to:te,reversed:!0})){if(rr(Dh,de))return ie?de:void 0;if(rr(Xn,de))ie=!0;else if(!rr(Jn,de))break}}(u,u.length,P);return J!==void 0&&(u+=q=rr(Oh,J)?"‍‏":"‍"),Yi.text=u,Yi.hasPrecedingJoiner=v,Yi.hasSubsequentJoiner=P,Yi.prefixedJoiner=j,Yi.suffixedJoiner=q,Yi}(r,i)};return{text:r,displayTextResult:s,displayStyle:this.canvasStyle,metrics:new Ac(this.renderingContext.measureText(s.text))}}measureText(r,i){return this.doSetupCanvasContext(i?.style),this.createTextResult(r,i?.joiningRule)}fitText(r,i,s){return this.doSetupCanvasContext(s?.style),s?.enableOverflowWrap?this.fitTextWithWrap(r,i,s):this.fitTextSimple(r,i,s)}fitTextWithWrap(r,i,s){return this.overflowWrapType==="break-word"?this.fitTextWithWrapBreakWord(r,i,s):this.fitTextWithWrapNormal(r,i,s)}fitTextWithWrapBreakWord(r,i,s){let u=this.findHangingSpaceOffset(i);if(u===0)return this.createTextResultForFit(i,i.length,s);let x=s?.enableOverflowWrap==="allow_overflow";if(r>=0){let P=i.slice(0,u),j=function(F,q){let J=function(de){let ce=de?.fontSize;return typeof ce=="number"?ce:10}(q);if(!(J>0))return null;let re=J*F.length,[te,ie]=h??(h=function(){let de={font:"240px Arial"};return[Math.min(...["i","l"].map(ce=>Ni(ce,de).width))/240,Math.max(...[" "].map(ce=>Ni(ce,de).width))/240]}());return sh[0]=re*te,sh[1]=re*ie,sh}(P,s?.style);if(j&&r>=j[1]){let F;for(let q of kh(P,{reversed:!0})){let J=this.createTextResultForFit(P,q,s);if(J.metrics.width<=r)return this.maybeExtendTextResultForFit(J,i,u,s);F=J}if(F)return x?this.maybeExtendTextResultForFit(F,i,u,s):null}else if(j&&r<=j[0]){let F;for(let q of kh(P)){let J=this.createTextResultForFit(P,q,s);if(J.metrics.width>r)return F?this.maybeExtendTextResultForFit(F,i,u,s):x?this.maybeExtendTextResultForFit(J,i,u,s):null;F=J}if(F)return this.maybeExtendTextResultForFit(F,i,u,s)}else{let F,q=new P0(P);if(function(J,re,te){let ie=0,de=J.length;for(;ie<de;){let ce=Math.floor((ie+de)/2),xe=re.call(void 0,J[ce],ce);if(xe>0)ie=ce+1;else if(xe<0)de=ce;else break}}(P,(J,re)=>{let te=q.next(re);if(F&&F.text.length>=te)return 1;let ie=this.createTextResultForFit(P,te,s);return ie.metrics.width<=r?(F=ie,1):-1}),F)return this.maybeExtendTextResultForFit(F,i,u,s)}}if(!x)return null;let v=function(P,j){let F=Os();return Th(P.charCodeAt(0))?0+F.nextBreak(P.slice(j),0):F.nextBreak(P,j)}(i,0);return this.createTextResultForFit(i,v<u?v:i.length,s)}fitTextWithWrapNormal(r,i,s){return s?.enableOverflowWrap==="allow_overflow"?this.createTextResultForFit(i,i.length,s):this.fitTextSimple(r,i,s)}fitTextSimple(r,i,s){let u=this.findHangingSpaceOffset(i);if(u===0)return this.createTextResultForFit(i,i.length,s);{if(r<0)return null;let x=this.createTextResultForFit(i,u,s);return r<x.metrics.width?null:u===i.length?x:this.createTextResultForFit(i,i.length,s)}}findHangingSpaceOffset(r){let i=this.hangingSpaceChecker;if(!i)return r.length;for(let s=r.length-1;s>=0;--s)if(!i(r.charCodeAt(s)))return s+1;return 0}createTextResultForFit(r,i,s){let u;return i===r.length?u=s?.joiningRule:(r=r.slice(0,i),uh.preceding=Wf(s?.joiningRule).preceding,uh.subsequent=!1,u=uh),this.createTextResult(r,u)}maybeExtendTextResultForFit(r,i,s,u){return r.text.length===s&&i.length!==s?this.createTextResultForFit(i,i.length,u):r}}class mv{constructor(r={}){this.tabStops=r.tabStops??[],this.defaultTabStopStep=Math.max(r.defaultTabStopStep??0,0),this.tabStopIndexCache=0}getDefaultTabStopStep(){return this.defaultTabStopStep}findNextTabStop(r){let i=this.tabStops;if(i.length===0)return null;for(this.tabStopIndexCache>0&&r<i[Math.min(this.tabStopIndexCache,i.length)-1].pos&&(this.tabStopIndexCache=0);this.tabStopIndexCache<i.length;++this.tabStopIndexCache){let s=i[this.tabStopIndexCache];if(r<s.pos)return s}return null}computeNextDefaultTabStopDiff(r){let i=this.getDefaultTabStopStep();return i<=0?0:i-z(r,i)}doComputeTabInitialWidth(r,i){return r?r.type==="left"?r.pos-i:0:this.computeNextDefaultTabStopDiff(i)}doComputeTabExtraWidth(r,i,s){if(!r)return 0;{let u=r.type;return u==="right"?Math.max(r.pos-i-s,0):u==="center"?Math.max(r.pos-i-s/2,0):0}}computeTabInitialWidth(r,i){return i===void 0&&(i=this.findNextTabStop(r)),this.doComputeTabInitialWidth(i,r)}computeTabExtraWidth(r,i,s){return s===void 0&&(s=this.findNextTabStop(r)),this.doComputeTabExtraWidth(s,r,i)}computeTabWidth(r,i,s){return s===void 0&&(s=this.findNextTabStop(r)),this.doComputeTabInitialWidth(s,r)+this.doComputeTabExtraWidth(s,r,i)}}function ch(l,r){let i=l.text+r.text,{hasPrecedingJoiner:s,prefixedJoiner:u}=l.displayTextResult,{hasSubsequentJoiner:x,suffixedJoiner:v}=r.displayTextResult;return{item:l.item,text:i,displayTextResult:{text:u+i+v,hasPrecedingJoiner:s,hasSubsequentJoiner:x,prefixedJoiner:u,suffixedJoiner:v},displayStyle:l.displayStyle,displayTabStop:l.displayTabStop,metrics:Cs(l.metrics,r.metrics)}}class vv{constructor(r,i){this.lineSpaceGetter=function(u){if(typeof u=="function")return x=>Jf(u(x));{let x=Jf(u);return()=>x}}(r),this.defaultLineBoxMetrics=i?.defaultLineBoxMetrics,this.onBeforeWrap=i?.onBeforeWrap,this.onAfterWrap=i?.onAfterWrap,this.lines=[],this.tagMap=new Map;let s=this.getNextLineSpace();this.lineResult={from:0,to:0,reason:"overflow",space:s,metrics:this.createLineBoxMetrics(s),inlines:[]},this.pos=0,this.filledWidth=this.lineResult.metrics.width,this.committedInlineCount=0,this.committedPos=this.pos,this.committedFilledWidth=this.filledWidth,this.firstInlineExtend=null}getNextLineSpace(){return this.lineSpaceGetter.call(null,this.lines.length)}createLineBoxMetrics(r){let i=this.defaultLineBoxMetrics,s=r.filled;return i&&s?Cs(i,s):i?{...i}:s?{...s}:Qi()}getMargin(){return this.lineResult.space.margin}getPosition(){return this.pos}getCommittedPosition(){return this.committedPos}getFilledWidth(){return this.filledWidth}getFilledWidthTo(r){let i=this.lineResult.inlines;if(r>=i.length)return this.getFilledWidth();{let s=this.lineResult.metrics.width;for(let u=0;u<r;++u)s+=i[u].metrics.width;return this.firstInlineExtend&&r>=this.committedInlineCount&&(s+=this.firstInlineExtend.metrics.width),s}}getRemainingWidth(){return this.lineResult.space.total-this.filledWidth}getInlineWidth(r){let i=this.lineResult.inlines;if(r<0||r>=i.length)return 0;let s=i[r].metrics.width;return this.firstInlineExtend&&r===this.committedInlineCount-1&&(s+=this.firstInlineExtend.metrics.width),s}getCommittedCount(){return this.committedInlineCount}hasCommittedChanges(){return this.committedInlineCount!==0}getUncommittedCount(){return this.lineResult.inlines.length-this.committedInlineCount+ +!!this.firstInlineExtend}hasUncommittedChanges(){return this.committedInlineCount!==this.lineResult.inlines.length||!!this.firstInlineExtend}getInlineCount(){return this.lineResult.inlines.length}getInlineResult(r){return this.lineResult.inlines[r]}getLineResults(){return this.lines}addInline(r){this.lineResult.inlines.push(r),this.pos+=r.text.length,this.filledWidth+=r.metrics.width}extendInline(r){if(r.item.type!=="text")return this.addInline(r);let i=this.lineResult.inlines,s=i.length;if(s===0)i.push(r);else if(s!==this.committedInlineCount){let u=s-1;i[u].item.type==="text"?i[u]=ch(i[u],r):i.push(r)}else this.firstInlineExtend?this.firstInlineExtend=ch(this.firstInlineExtend,r):i[s-1].item.type==="text"?this.firstInlineExtend=r:i.push(r);this.pos+=r.text.length,this.filledWidth+=r.metrics.width}squash(r,i){let s=this.lineResult.inlines;if(r>=s.length)return;let u=s[r];if(i.displayTextResult!==void 0&&(u.displayTextResult=i.displayTextResult),i.displayStyle!==void 0&&(u.displayStyle=i.displayStyle),i.metrics&&i.metrics.width!==void 0){let x=u.metrics.width;u.metrics={...u.metrics,width:i.metrics.width},this.filledWidth+=i.metrics.width-x}}tag(r){let i=this.lineResult.inlines.length;if(i===0)return;let s={id:r,inlineIndex:i-1};return this.tagMap.set(r,s),s}getTag(r){return this.tagMap.get(r)}deleteTag(r){return this.tagMap.delete(r)}commit(){if(this.firstInlineExtend){let r=this.lineResult.inlines;r[this.committedInlineCount-1]=ch(r[this.committedInlineCount-1],this.firstInlineExtend),this.firstInlineExtend=null}this.committedInlineCount=this.lineResult.inlines.length,this.committedPos=this.pos,this.committedFilledWidth=this.filledWidth}rollback(){let r={pos:0,width:0,inlines:[],tags:[]},i=-this.committedInlineCount+ +!!this.firstInlineExtend;this.firstInlineExtend&&(r.inlines.push(this.firstInlineExtend),this.firstInlineExtend=null);let s=this.lineResult.inlines;for(let x=this.committedInlineCount,v=s.length;x<v;++x)r.inlines.push(s[x]);s.length=this.committedInlineCount,r.pos=this.pos-this.committedPos,r.width=this.filledWidth-this.committedFilledWidth,this.pos=this.committedPos,this.filledWidth=this.committedFilledWidth;let u=this.tagMap;for(let x of u.values())x.inlineIndex>=this.committedInlineCount&&(x.inlineIndex+=i,r.tags.push(x),u.delete(x.id));return r}fillLineBoxMetrics(r){let i=r.metrics,s=i.width,u=i.lineBoxAscent,x=i.lineBoxDescent;for(let{metrics:{width:v,lineBoxAscent:P,lineBoxDescent:j}}of r.inlines)s+=v,u<P&&(u=P),x<j&&(x=j);i.width=s,i.height=u+x,i.textBoxAscent=u,i.textBoxDescent=x,i.lineBoxAscent=u,i.lineBoxDescent=x}wrap(r){let i=this.rollback();this.onBeforeWrap&&(this.onBeforeWrap.call(null,this),this.commit()),this.lineResult.to=this.committedPos,this.lineResult.reason=r,this.fillLineBoxMetrics(this.lineResult),this.lines.push(this.lineResult);let s=this.getNextLineSpace();for(let u of(this.lineResult={from:this.committedPos,to:this.committedPos,reason:"overflow",space:s,metrics:this.createLineBoxMetrics(s),inlines:i.inlines},this.pos+=i.pos,this.filledWidth=this.lineResult.metrics.width+i.width,this.committedInlineCount=0,this.committedFilledWidth=this.lineResult.metrics.width,i.tags))this.tagMap.set(u.id,u);this.onAfterWrap&&this.onAfterWrap.call(null,this)}commitWrap(r){this.commit(),this.wrap(r)}}class t0{constructor(r,i,s={}){this.textSegmenter=new fv(r,i,s),this.textFitter=new xv({...s,defaultStyle:void 0}),this.tabHandler=new mv(s),this.text=r,this.splitInlinesByBreakOpportunities=s.splitInlinesByBreakOpportunities??!1,this.defaultLineBoxMetrics=function(u){let{text:x,line:v}=oh("",u);return Is(Zf(x,v),u)}($f(s.defaultStyle)),this.suppressEmptyLine=s.suppressEmptyLine??!1}breakLines(r){let i=new vv(r,{defaultLineBoxMetrics:this.defaultLineBoxMetrics,onBeforeWrap:this.onContextBeforeWrap.bind(this),onAfterWrap:this.onContextAfterWrap.bind(this)}),s=0;for(let u of this.textSegmenter.iterateTextChunks()){if(i.getRemainingWidth()===1/0&&!u.forceBreak&&u.to!==this.text.length)continue;let x=u.to;for(;i.getPosition()<x;)this.handleLineBreakOpportunity(i,s,x,u.forceBreak);s=x}return(!this.suppressEmptyLine||i.hasCommittedChanges())&&i.commitWrap("end"),i.getLineResults()}handleLineBreakOpportunity(r,i,s,u){let x=this.textFitter.getOverflowWrapType()!=="normal",v=this.computeEnableOverflowWrap(r);for(;;){let P=r.getPosition(),{item:j,from:F,to:q,style:J,metrics:re}=this.textSegmenter.findTextMeta(P),te=j.type==="tab"&&re;te&&this.handlePreviousTab(r);let ie=0;if(re){let de=v==="allow_overflow";if(de||r.getRemainingWidth()>=0){let ce,xe;if(te){let we=r.getMargin()[0]+r.getFilledWidth();xe=this.tabHandler.findNextTabStop(we),ce={...re,width:this.tabHandler.computeTabInitialWidth(we,xe)}}else xe=null,ce=re;if(de||ce.width<=r.getRemainingWidth()){let we=this.text.slice(P,q),Me={item:j,text:we,displayTextResult:{text:we,hasPrecedingJoiner:!1,hasSubsequentJoiner:!1,prefixedJoiner:"",suffixedJoiner:""},displayStyle:this.textFitter.generateEffectiveTextDrawingStyle(J),displayTabStop:xe,metrics:ce};r.addInline(Me),ie=1,te&&r.tag("tab")}}}else{let de=Math.min(q,s),ce=this.text.slice(P,de),xe=this.textFitter.fitText(r.getRemainingWidth(),ce,{joiningRule:{preceding:r.getInlineCount()!==0&&function(we,Me){for(let{value:Se}of Pi(we,{to:Me,reversed:!0})){if(rr(Dh,Se)||rr(Xn,Se))return Se;if(!rr(Jn,Se))break}}(this.text,P)!==void 0,subsequent:function(we,Me){for(let{value:Se}of Pi(we,{from:Me})){if(rr(Rh,Se)||rr(Xn,Se))return Se;if(!rr(Jn,Se))break}}(this.text,de)!==void 0},style:J,enableOverflowWrap:v});if(xe){let{text:we,displayTextResult:Me,displayStyle:Se,metrics:Re}=xe,Be={item:j,text:we,displayTextResult:Me,displayStyle:Se,displayTabStop:null,metrics:Is(Zf(Re,Sa(J)),J)};P===F||this.splitInlinesByBreakOpportunities&&P===i?r.addInline(Be):r.extendInline(Be),ie=we.length===ce.length?1:2}}if(ie===0){v===void 0?r.wrap("overflow"):r.commitWrap("overflow");break}if(ie===2){r.commitWrap("overflow");break}if(q>=s){u?r.commitWrap("break"):r.commit();break}x&&(v=this.computeEnableOverflowWrap(r))}}computeEnableOverflowWrap(r){if(!r.hasCommittedChanges()){if(this.textFitter.getOverflowWrapType()==="normal")return"allow_overflow";let i=r.getUncommittedCount();if(i===0)return"allow_overflow";if(i!==1)return"prevent_overflow";{let s=r.getTag("tab");return s&&s.inlineIndex===r.getInlineCount()-1?"allow_overflow":"prevent_overflow"}}}onContextBeforeWrap(r){this.handleLastJoiner(r),this.handlePreviousTab(r)}handleLastJoiner(r){let i=r.getInlineCount();if(i===0)return;let{item:s,text:u,displayTextResult:x,displayStyle:v}=r.getInlineResult(i-1);if(s.type!=="text"||!x.hasSubsequentJoiner)return;let P=this.textFitter.measureText(u,{joiningRule:{preceding:x.hasPrecedingJoiner,subsequent:!1},style:v});r.squash(i-1,{displayTextResult:P.displayTextResult,displayStyle:P.displayStyle,metrics:{width:P.metrics.width}})}handlePreviousTab(r){let i=r.getTag("tab");if(!i)return;r.deleteTag("tab");let{inlineIndex:s}=i,u=r.getMargin(),x=r.getFilledWidthTo(s),v=r.getInlineWidth(s),P=Math.min(this.tabHandler.computeTabExtraWidth(u[0]+x,r.getFilledWidth()-x-v),r.getRemainingWidth()+Math.max(u[1],0));P<=0||r.squash(s,{metrics:{width:v+P}})}onContextAfterWrap(r){this.handleFirstJoiner(r),this.handleWrappedTab(r)}handleFirstJoiner(r){if(r.getInlineCount()===0)return;let{item:i,text:s,displayTextResult:u,displayStyle:x}=r.getInlineResult(0);if(i.type!=="text"||!u.hasPrecedingJoiner)return;let v=this.textFitter.measureText(s,{joiningRule:{preceding:!1,subsequent:u.hasSubsequentJoiner},style:x});r.squash(0,{displayTextResult:v.displayTextResult,displayStyle:v.displayStyle,metrics:{width:v.metrics.width}})}handleWrappedTab(r){let i=r.getTag("tab");if(!i)return;let{inlineIndex:s}=i,u=this.tabHandler.computeTabInitialWidth(r.getMargin()[0]+r.getFilledWidthTo(s));r.squash(s,{metrics:{width:u}})}static create(r,i){let{text:s,textMetas:u}=function(x,v){let P=[],j=[],F=0;for(let q of x)switch(q.type){case"text":F=function(J,re,te,ie,de){let ce=ie.text;if(ce.length===0)throw Error("Inline text item should not be empty.");let xe=Ps(ie,de),we=te+ce.length;return J.push(ce),re.push({item:ie,from:te,to:we,style:xe}),we}(P,j,F,q,v);break;case"break":F=function(J,re,te,ie,de){let ce=Ps(ie,de),xe=te+1;return J.push(`
`),re.push({item:ie,from:te,to:xe,style:ce,metrics:lh("",ce,ie)}),xe}(P,j,F,q,v);break;case"tab":F=function(J,re,te,ie,de){let ce=Ps(ie,de),xe=te+1;return J.push("	"),re.push({item:ie,from:te,to:xe,style:ce,metrics:lh("",ce,ie)}),xe}(P,j,F,q,v);break;case"object":F=function(J,re,te,ie,de){let ce,{inlineText:xe,size:we}=ie,Me=Ps(ie,de),Se=te+1;return ce=xe!==void 0?lh(xe,Me,ie):function(Re,Be,Ue){let{text:Ze,line:lt}=oh("",Be),At=Xf(Ue),ht=Re.width+At.left+At.right,wt=Re.height+At.top+At.bottom,Tt=Math.max(Ze.fontBoundingBoxAscent,wt),Xt=Ze.fontBoundingBoxDescent;return Is({width:ht,height:Tt+Xt,textBoxAscent:Tt,textBoxDescent:Xt,lineBoxAscent:Math.max(lt.lineBoundingBoxAscent,wt),lineBoxDescent:lt.lineBoundingBoxDescent},Be)}({width:we?.width??0,height:we?.height??0},Me,ie),J.push(""),re.push({item:ie,from:te,to:Se,style:Me,metrics:ce}),Se}(P,j,F,q,v);break;default:throw Error(`Unknown inline item: ${q.type}`)}return{text:P.join(""),textMetas:j}}(r,i=function(x){if(!x)return x;let v=x.defaultStyle,P=qf(v);return v===P?x:{...x,defaultStyle:P}}(i));return new this(s,u,i)}}class bv{constructor(r=d){this.getListBaseIndent=r.getListBaseIndent??(()=>0),this.getListRightSpace=r.getListRightSpace??(()=>0),this.isListAlignRight=r.isListAlignRight??A,this.getListDrawingStyle=r.getListDrawingStyle??_}extractLineDecoration(r,i){let s=be.fly(i).childContainer;if(!s)return{prefix:null,suffix:null};let u=s.previousSibling,x=s.nextSibling;u?.remove(),x?.remove();let v=this.collectLinePrefixDecoration(r,u),P=this.collectLineSuffixDecoration(r,x);return v&&this.applyLineDecorationPosition(v),P&&this.applyLineDecorationPosition(P),{prefix:v,suffix:P}}collectListInlineItems(r,i){let s=this.getListDrawingStyle(r),u=[];for(let x of i.childNodes)if(ci(x)){let v=x.data;v&&u.push({type:"text",text:v,style:s})}else if(cr(x)){let v=x.textContent;v&&u.push({type:"text",text:v,style:{...s,...function(P){let j={};for(let F of["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight"]){let q=P[F];q&&(j[F]=q)}return j}(x.style),additionalLineStyles:s}})}return u}measureListMetrics(r,i){let s=t0.create(this.collectListInlineItems(r,i)).breakLines(1/0),u=Qi(s.at(-1)?.metrics);if(s.length>1)for(let{metrics:{width:x,height:v}}of s.slice(0,-1))u.width=Math.max(u.width,x),u.height+=v,u.lineBoxAscent+=v;return u.width+=2*r.type.listItemPadding,u}collectLinePrefixList(r,i){let s,u,x=i.firstElementChild,v=x?.firstElementChild;if(!x||!v)return{textBoxLeft:0,textBoxRight:0,metrics:Qi()};let P=this.measureListMetrics(r,v),j=P.width,F=this.getListBaseIndent(r);if(this.isListAlignRight(r))s=j+this.getListRightSpace(r)-F,u=F;else{let re=F?F/4:1;s=0,u=Math.ceil(Math.max(F,Math.ceil(j/re)*re))}let q=s+u,J=q-j;return x.style.paddingRight=J+"px",{textBoxLeft:s,textBoxRight:u,metrics:{...P,width:q},customData:{list_item_width:j,list_item_padding:J}}}collectLinePrefixDecoration(r,i){let s;if(!i)return null;for(let u of i.children){let x;u.classList.contains("syno-o-doc-pm-list-item")&&(x=this.collectLinePrefixList(r,u),s?(s.textBoxRight+=x.textBoxLeft+x.textBoxRight,s.metrics=Cs(s.metrics,x.metrics),x.customData&&(s.customData?Object.assign(s.customData,x.customData):s.customData=x.customData)):s={...x,dom:i})}return s??{textBoxLeft:0,textBoxRight:0,metrics:Qi(),dom:i}}collectLineSuffixDecoration(r,i){return i?{textBoxLeft:0,textBoxRight:0,metrics:Qi(),dom:i}:null}applyLineDecorationPosition(r){r.textBoxLeft&&(r.dom.style.marginLeft=-r.textBoxLeft+"px")}applyLineDecoration(r,i){r.length&&(i.prefix&&this.applyLineDecorationItem(r[0],i.prefix,!0),i.suffix&&this.applyLineDecorationItem(r[r.length-1],i.suffix,!1))}applyLineDecorationItem(r,i,s){let u=be.fly(r).childContainer?.parentNode;if(!u)return;let{dom:x,metrics:v,customData:P}=i;u[s?"prepend":"append"](x),be.fly(r).setData("line_breaker:list_metrics",v),P&&R(P,(j,F)=>{be.fly(r).setData(F,j)})}}class wv{constructor(r,i){this.lineType=r,this.lineRenderer=i.lineRenderer}getLineLocationEl(r){return this.lineType.getLocationDOM(r)}renderLine(){return this.lineRenderer.call(null)}resetBaseOffset(r,i){let s=0;for(let u=r.firstElementChild;u;u=u.nextElementSibling){let x=be.get(u);x.isOffsetElement&&(x.setOffset(x.getOffset()-i),s+=x.getSize())}return{offset:i,size:s}}setupLine(r,i){if(i.offset!==void 0&&be.fly(r).setOffset(i.offset),i.size!==void 0&&be.fly(r).setSize(i.size),i.index!==void 0&&be.fly(r).setData("line_index",i.index),i.height!==void 0&&be.fly(r)._setContentHeight(Math.round(i.height)),i.lineHeight!==void 0&&be.fly(r).setData("line_height",i.lineHeight),i.lineLength!==void 0&&be.fly(r).setData("line_length",i.lineLength),i.lineContentRange!==void 0){be.fly(r).setData("line_content_range",i.lineContentRange);let s=this.getLineLocationEl(r);if(s){let u=be.fly(r).getData("line_length")||0;s.style.marginLeft=i.lineContentRange[0]+"px",s.style.marginRight=u-i.lineContentRange[1]+"px"}}i.inlineRange!==void 0&&be.fly(r).setData("inline_range",i.inlineRange),i.inlineContentRange!==void 0&&be.fly(r).setData("inline_content_range",i.inlineContentRange)}createLine(r,i){let s=this.renderLine(),u=this.resetBaseOffset(r,i.offset).size,x=be.get(s);return x.childContainer?.appendChild(r),x.bumpVersion(),x.updatePaddingSize(!0),this.setupLine(s,{...i,size:u}),s}}class Mv{constructor(r,i){this.textAlign=r}getTextAlign(){return this.textAlign}computeAlignedContentRange(r,i){let s;switch(this.getTextAlign()){case"right":s=Math.max(i-r,0);break;case"center":s=Math.max((i-r)/2,0);break;default:s=0}return[s,s+r]}applyTextAlign(r,i){this.getTextAlign()==="justify"&&i==="overflow"&&(r.style.textAlignLast="justify")}}function r0(l){if(!l.fontSize)return l;let r=C??(C=function(){if(Bs==="chrome"||qh()){let s=function(){let u=mn({preset:"metrics",inheritFontFaces:!1}),x=u.contentDocument?function(v){let P=v.createElement("span");Object.assign(P.style,{fontSize:"1px",display:"none"}),v.body.appendChild(P);let j=Lt(window.getComputedStyle(P).fontSize,"px");return P.remove(),isNaN(j)||.01>Math.abs(j-1)?-1:j}(u.contentDocument):-1;return u.remove(),x}();if(s>=0)return s}else{let s=function(){let u=mn({preset:"metrics",inheritFontFaces:!1}),x=function(v){let P=v.contentDocument;if(!P)return-1;let j=P.createElement("span");P.body.appendChild(j);let F=Ma({document:P});if(!F)return-1;for(let q=12;q>=1;--q)if(!Mc(j,F,q)){if(q!==12)return q+1;for(let J=13;J<=25;++J)if(Mc(j,F,J))return J;return 26}return-1}(u);return u.remove(),x}();if(s>=0)return s}return-1}());if(r<=0)return l;let i=l.fontSize;return l.fontSize=Math.max(typeof i=="number"?i:Lt(i,"px"),r),l}class _v{constructor(r,i){this.createRawInlineItem=i.createRawInlineItem,this.styleNameMappings=this.buildStyleNameMappings(r),this.defaultBlockDrawingStyle=r0(this.mapInlineDrawingStyle(r.getDefaultContentStyles()))}buildStyleNameMappings(r){return[["font-style","fontStyle"],["font-weight","fontWeight"],["font-size","fontSize"],["font-family","fontFamily"],["vertical-align","verticalAlign"]]}mapInlineDrawingStyle(r){let i={};for(let[s,u]of this.styleNameMappings)r[s]&&(i[u]=r[s]);return i}createInlineDrawingStyle(r){let i=this.mapInlineDrawingStyle(Qe.setToStyle(r));return(i.verticalAlign==="super"||i.verticalAlign==="sub")&&(i.verticalAlignReferenceStyle=this.mapInlineDrawingStyle(Qe.setToStyle(r,{ignoreMarks:"Script"}))),i.fontSize&&i.fontFamily&&(i.additionalLineStyles=this.mapInlineDrawingStyle(Qe.setToStyle(r,{ignoreMarks:["FontFamily","Script"]}))),i}createParagraphDrawingStyle(r){return qf({...this.defaultBlockDrawingStyle,lineHeight:1.2*r.type.getCssAttrs(r).lineHeight})}createListDrawingStyle(r){let i=this.createParagraphDrawingStyle(r),s={...i,...this.mapInlineDrawingStyle(Qe.setToStyle(r.listMarks))};return(s.verticalAlign==="super"||s.verticalAlign==="sub")&&(s.verticalAlignReferenceStyle=i),s}createInlineItemByNode(r){let i=this.createInlineDrawingStyle(r.marks),s=this.createRawInlineItem.call(null,r);return s.style?s.style={...i,...s.style}:s.style=i,s}createInlineItemByItem(r){let i=r.style;return i&&Array.isArray(i)?{...r,style:this.createInlineDrawingStyle(i)}:r}createInlineItem(r){let i;return(i="type"in r&&typeof r.type=="string"?this.createInlineItemByItem(r):this.createInlineItemByNode(r)).style&&r0(i.style),i}}class Av{constructor(r,i,s){this.container=r,this.dataGetter=i,this.value=s?.reversed?this.find(this.container.lastElementChild,!0):this.find(this.container.firstElementChild,!1)}getContainer(){return this.container}getValue(){return this.value}find(r,i){if(!r)return null;let s=r;for(;;){let u=this.dataGetter.call(null,s);if(u!==null)return{el:s,data:u};let x=i?s.previousElementSibling:s.nextElementSibling;if(!x)break;s=x}return null}peek(r){let i=this.value?.el;return i?this.find(r?i.previousElementSibling:i.nextElementSibling,r):null}peekPrev(){return this.peek(!0)}peekNext(){return this.peek(!1)}iterate(r){return this.value=this.peek(r)}prev(){return this.iterate(!0)}next(){return this.iterate(!1)}end(){return this.value=null}}function i0(l,r){r===void 0&&(r=!1);let{left:i=0,width:s=0}=l.getState(r?"first_text_rect_info":"text_rect_info")??d,{left:u=0,width:x=0}=l.getState("parent_text_rect_info")??d,v=i-u;return{length:x,contentStart:v,contentEnd:v+s}}class Sv extends Gt{constructor(r,i){super(r,i),this.lineDecorator=this.createLineDecorator(),this.lineCreator=this.createLineCreator(),this.inlineItemManager=this.createInlineItemManager()}static get pluginName(){return"line_breaker"}static get pluginDependency(){return["draw"]}createLineDecorator(){return new bv({getListBaseIndent:this.getListBaseIndent.bind(this),getListRightSpace:this.getListRightSpace.bind(this),isListAlignRight:this.isListAlignRight.bind(this),getListDrawingStyle:r=>this.inlineItemManager.createListDrawingStyle(r)})}createLineCreator(){let r=this.pm.schema.nodeType("text_line"),i=r.create();return new wv(r,{lineRenderer:()=>this.pm.getPlugin("draw").renderNode(i)})}createInlineItemManager(){return new _v(this.pm.schema,{createRawInlineItem:r=>this.createRawInlineItem(r)})}createTextAligner(r){return new Mv(r.type.getCssAttrs(r).textAlign)}bindEvents(){super.bindEvents();let r=this.pm.getPlugin("draw");this.bindEvent(r,"afterRender",this.onInlineDrawAfterRender,this,{checker:"Inline"}),this.bindEvent(r,"afterChildRender",this.onParagraphDrawAfterChildRender,this,{checker:"Paragraph",priority:10})}onSplitText(r,i,s){let u=this.pm.getPlugin("draw").getPmElement(r).getData("line_breaker:inline_item");if(!u||u.type!=="text")return;let x=u.text;u.text=x.slice(0,i),this.pm.getPlugin("draw").getPmElement(s).setData("line_breaker:inline_item",{...u,text:x.slice(i)})}onInlineDrawAfterRender(r,i,s){!s.isTarget("display")||s.options&&s.options.disableBreakLine||this.setInlineItem(i,r)}onParagraphDrawAfterChildRender(r,i,s){if(!s.isTarget("display")||s.options&&s.options.disableBreakLine)return;let u=this.pm.getPlugin("draw"),x=u.getPmElement(i).childContainer?.lastElementChild;x?.getAttribute("pm-ignore")==="trailing-break"&&this.setInlineItem(x,{type:"object",style:r.textMarks}),this.breakLine(r,i),u.getPmElement(i).syncDrawSize()}getListBaseIndent(r){return 30}getListRightSpace(r){return 15}isListAlignRight(r){var i;let s=r.is("ListBlock")?r.getState("list_config"):null;return!!s&&(s.align==="right"||(i=s.format)==="lowerRoman"||i==="upperRoman")}setInlineItem(r,i){this.pm.getPlugin("draw").getPmElement(r).setData("line_breaker:inline_item",this.inlineItemManager.createInlineItem(i))}createRawInlineItem(r){if(r.is("Text"))return{type:"text",text:r.text};if(r.is("HardBreak"))return{type:"break"};if(r.is("Tab"))return{type:"tab"};if(r.is("InlineObject"))return{type:"object",size:r.type.getObjectSize(r),border:r.type.getObjectBorder(r)};throw Error(`Unhandled inline node: ${r.name}`)}collectInlineItems(r){let i=this.pm.getPlugin("draw"),s=[];for(let u of r.children){let x=i.getPmElement(u).getData("line_breaker:inline_item");x&&s.push(x)}return s}breakLine(r,i){let s=this.extractLines(r,i);s.forEach(this.replaceSpace,this),this.putBackLines(r,i,s)}computeLineBreakResults(r,i,s){let u=[null,null],x=s.prefix?{...s.prefix.metrics,width:s.prefix.textBoxRight}:void 0,v=t0.create(this.collectInlineItems(i),{lineBreakType:"normal",breakSpaceType:"after_every_spaces",whiteSpaceRule:"break-spaces",overflowWrapType:"break-word",defaultStyle:this.inlineItemManager.createParagraphDrawingStyle(r),tabStops:r.type.getTabAttrValues(r).tabStops,defaultTabStopStep:30}).breakLines(P=>{let j=P===0,F=function(q,J,re){if(J===void 0&&(J=!1),!re)return i0(q,J);{let te=+!J;return re[te]??(re[te]=i0(q,J))}}(r,j,u);return{width:F.length,margin:[F.contentStart,F.length-F.contentEnd],filled:j?x:void 0}});if(v.length>=0&&s.suffix){let P=v.length-1;v[P]={...v[P],metrics:Cs(v[P].metrics,s.suffix.metrics)}}return v}extractLineFragment(r,i){let s=this.pm.getPlugin("draw"),u=r.getContainer();for(let P of i){let j=r.getValue();if(!j)break;let{el:F,data:q}=j;if(P.item.type!==q.type){r.end();break}if(q.type==="text"){let J=q.text.length,re=P.text.length;if(J<re){r.end();break}if(J>re){let te=s.splitTextDOM(F,re);te&&u.insertBefore(te,F.nextSibling)}}else if(q.type==="tab"){let J=F.querySelector(".syno-o-doc-pm-tab");if(J){let re=P.metrics.width;J.style.width=re+"px";let te=this.getTabStopLeaderTextContent(P);te!==""&&(J.textContent=te,J.style.overflow="clip")}}s.getPmElement(F).setData("line_breaker:inline_result",P),r.next()}let x=u.ownerDocument.createDocumentFragment(),v=r.getValue()?.el??null;for(;u.firstChild&&u.firstChild!==v;)x.appendChild(u.firstChild);return x}getTabStopLeaderTextContent(r){let i=r.displayTabStop,s=r.metrics.width,u=r.displayStyle,x=i!==null?function(q){switch(q){case"dot":return".";case"hyphen":return"-";case"underscore":case"heavy":return"_";case"middleDot":return"·";default:return""}}(i.leader??"none"):"",v=x!==""?Ni(x,u).width:0,P=v!==0?Math.floor(s/v):0,j=Ni(" ",u).width,F=j!==0?Math.ceil((s-v*P)/j):0;return x.repeat(P)+" ".repeat(F)}extractLines(r,i){let s=this.pm.getPlugin("draw"),u=this.lineDecorator.extractLineDecoration(r,i),x=this.extractInlineContainer(i),v=[],P=1.2*r.type.getCssAttrs(r).lineHeight,j=u.prefix?u.prefix.textBoxLeft:0,F=u.prefix?u.prefix.textBoxRight:0,q=this.computeLineBreakResults(r,x,u),J=this.createTextAligner(r),re=new Av(x,ie=>s.getPmElement(ie).getData("line_breaker:inline_item")??null),te=0;for(let[ie,de]of q.entries()){let{reason:ce,space:xe,metrics:we,inlines:Me}=de,Se=this.extractLineFragment(re,Me),Re=ie===0,Be=J.computeAlignedContentRange(we.width,xe.total),Ue=xe.margin[0]+Be[0],Ze=xe.margin[0]+Be[1],lt=this.lineCreator.createLine(Se,{offset:te,index:ie,height:we.height,lineHeight:P,lineLength:xe.width,lineContentRange:[xe.margin[0],xe.margin[0]+xe.total],inlineRange:[Ue-(Re?j:0),Ze],inlineContentRange:[Ue+(Re?F:0),Ze]});J.applyTextAlign(lt,ce),s.getPmElement(lt).setData("line_breaker:line_result",de),te+=s.getPmElement(lt).getSize(),v.push(lt)}return this.lineDecorator.applyLineDecoration(v,u),v.forEach((ie,de)=>{be.fly(ie).setData("text_rect_info",r.getState(de===0?"first_text_rect_info":"text_rect_info"))}),v}extractInlineContainer(r){let i=be.fly(r).childContainer,s=i.parentElement;return s&&(this.pm.getPlugin("draw").onChildContainer(s,r),sn(s),be.fly(r).reset()),i}replaceSpace(r){dc(r,i=>{ci(i)&&(i.data=i.data.replace(/ /g," "))},NodeFilter.SHOW_TEXT)}putBackLines(r,i,s){be.fly(i).childContainer?.append(...s),be.fly(i).setData("line_count",s.length)}}let Cv=new Et(class extends Sv{constructor(l,r){super(l,r)}createRawInlineItem(l){return l.is("Image")?(l.getAttrValue("file_type")??"binary")==="binary"?{type:"object",inlineText:l.getAttrValue("file_id")?l.getAttrValue("alt")??"":"",border:l.type.getObjectBorder(l)}:{type:"object",size:l.type.getObjectSize(l),border:l.type.getObjectBorder(l)}:l.is("PageNumberText")?{type:"object",inlineText:"0"}:super.createRawInlineItem(l)}});class Iv extends Gt{constructor(r,i){super(r,i)}setPaginationMode(r){return this.getModeControl().setPaginationMode(r)}isPaginatedMode(){return this.getModeControl().isPaginatedMode()}resolvePaginatedMode(r){return typeof r=="boolean"?r:this.isPaginatedMode()}updatePageOffsetHeightSum(){this.height_sum=[];let r=0,i=0,s=0;for(let u=0,x=this.getPageCount();u<x;++u)r+=this.getPageOffsetHeight(u,!0,{forcePaginated:!0}),i+=this.getPageOffsetHeight(u,!0,{forcePaginated:!1}),s+=this.getPageOffsetHeight(u,!1),this.height_sum.push({view_paginated:r,view_compress:i,content:s})}getPageOffsetHeight(r,i,s){if(!i)return this.getPageControl().getPageContentHeight(r);if(this.resolvePaginatedMode(s&&s.forcePaginated))return this.getPageControl().getPageFullHeight(r);{let u=this.getPageDOM(r);if(!u)return NaN;{let x;return x=r===this.getPageCount()-1?this.getPageControl().getPageContentHeight(r)+this.getPageControl().getPageSettingPadding(r).bottom:be.fly(u).getData("page_content_bottom"),r===0&&(x+=this.getPageControl().getPageSettingPadding(r).top),x}}}pageIndexFromTop(r,i,s){s===void 0&&(s=d);let u=s.start||0,x=s.bound?this.getPageCount()-1:-1;for(;u!==x;++u){let v=this.getPageOffsetHeight(u,i,s);if(isNaN(v)||r<v)break;r-=v}return{index:u,inner:r}}topFromPageIndex(r,i,s){if(s===void 0&&(s=d),s.bound&&(r=Math.min(this.getPageCount(),r)),r===0)return 0;let u=this.height_sum[r-1];return u?i?this.resolvePaginatedMode(s&&s.forcePaginated)?u.view_paginated:u.view_compress:u.content:NaN}convertInnerTop(r,i,s,u){u===void 0&&(u=d);let x=this.resolvePaginatedMode(u.forcePaginated)?this.getPageControl().getPageHeaderHeight(r):r===0?this.getPageControl().getPageSettingPadding(r).top:0;return s?qe(i-x,1,this.getPageControl().getPageContentHeight(r)-1):x+i}convertTopByIndex(r,i,s){return this.topFromPageIndex(r.index,!i,s)+this.convertInnerTop(r.index,r.inner,i,s)}convertTop(r,i,s){return this.convertTopByIndex(this.pageIndexFromTop(r,i,s),i,s)}convertTopDiff(r,i,s){return this.convertTop(r,i,s)-r}convertInnerLeft(r,i,s,u){let x=this.getPageControl().getPageSettingPadding(r).left;return s?qe(i-x,0,this.getPageControl().getPageContentWidth(r)):x+i}convertLeft(r,i,s){return this.convertInnerLeft(0,r,i,s)}convertLeftDiff(r,i,s){return this.convertLeft(r,i,s)-r}getBlockerObj(r){return this.getBlocker(r)}getBlocker(r){return this.getBlockerControl().getBlocker(r)}getPageObj(r){return this.getPageBlocker(r)}getPageBlocker(r){return this.getBlockerControl().getPageBlocker(r)}}class Pv{constructor(r,i){this.doc=r,this.oldDoc=i,this.floatingDrawings=[],this.pageLayoutChanged=!1,this.pageDirtyAll=!1,this.pageDirtySet=new Set}getRootNode(){return this.doc}getOldRootNode(){return this.oldDoc}reset(){this.pageDirtyAll=!1,this.pageDirtySet.clear()}collectFloatingDrawings(r){this.floatingDrawings.push(r)}getCollectedFloatingDrawings(){return this.floatingDrawings}isPageLayoutChanged(){return this.pageLayoutChanged}setPageLayoutChanged(){this.pageLayoutChanged=!0}isPagesAllDirty(){return this.pageDirtyAll}setPagesAllDirty(){this.pageDirtyAll=!0}getDirtyPages(){return this.isPagesAllDirty()?[]:Array.from(this.pageDirtySet).sort((r,i)=>r-i)}addDirtyPages(){for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];for(let u of i)this.pageDirtySet.add(u)}}function n0(l,r,i,s){for(let u=Ai.length-2;u>=0;--u)dh(l,Ai[u],i,s)}function dh(l,r,i,s){for(let u=oi.length-1;u>=0;--u){let x=oi[u];i.call(s,l[r][x],r,x)}}class Tv{constructor(r){this.control=r,this.data={page_gap:8,page_gap_top:12,page_gap_bottom:24};let i=r.pm.doc,s=i.queryChildNode("PageDecorate",!0),u=s.childs();this._update({update_doc:i,update_page_decorate:s,update_decorators:u})}ensureOperation(){return this.operation||(this.operation=Object.create(null))}_update(r){let i=0;return r.update_doc&&(i|=this.updateDoc(i,r.update_doc)),r.update_page_decorate&&(i|=this.updatePageDecorate(i,r.update_page_decorate)),r.update_decorators&&(i|=this.updateDecorators(i,r.update_decorators)),r.update_page_decorate&&(i|=this.updateDecoratorInfo(i)),this.operation=null,i}updateDoc(r,i){this.ensureOperation().doc=i;let s=this.data,u=i.state;return s.page_size===u.page_size&&s.page_padding===u.page_padding&&s.page_decorate_height===u.page_decorate_height?0:(s.page_size=u.page_size,s.page_padding=u.page_padding,s.page_decorate_height=u.page_decorate_height,7)}updatePageDecorate(r,i){let s=this.data,u=i.attrs;if(s.page_decorate===u&&(!this.operation||!this.operation.doc))return 0;s.page_decorate=u;let x=s.dec_info;if(x?(this.ensureOperation().dec_info=x,x=ue(x)):x=function(){let v=Object.create(null);for(let P=Ai.length-1;P>=0;--P){let j=v[Ai[P]]=Object.create(null);for(let F=oi.length-1;F>=0;--F)j[oi[F]]=Object.create(null)}return v}(),s.dec_info=x,u["place-show"])for(let v=oi.length-1;v>=0;--v){let P=oi[v],j=P!=="normal"&&u["place-"+P]?P:"normal";(function(F,q,J,re,te){for(let ie=Ai.length-2;ie>=0;--ie){let de=Ai[ie];re.call(te,F[de][q],de,q)}})(x,P,!0,function(F,q,J){F.view_type=j,F.view_height=x[q][j].height},this)}else n0(x,!0,function(v,P,j){v.view_type=null,v.view_height=this.getMinDecoratorHeight(P)},this);if(u["num-show"])for(let v=oi.length-1;v>=0;--v){let P=oi[v],j=x.page_num[P];P==="cover"&&u["num-cover"]?(j.view_type=null,j.view_pos=null):(j.view_type="normal",j.view_pos=u["num-pos"][0]+(u["num-pos"][1]==="r"==!!(P==="even"&&u["num-even"])?"l":"r"))}else dh(x,"page_num",function(v,P,j){v.view_type=null,v.view_pos=null},this);return 0}updateDecorators(r,i){for(let s=i.length-1;s>=0;--s)r|=this.updateDecorator(r,i[s]);return r}updateDecorator(r,i){if(i.type.isPageNumber)return 0;let s=this.data.dec_info,u=i.attrs.type,x=i.type.decoratorType,v=s[x][u],P=i.dom?qe(be.fly(i.dom).getHeight(),this.getMinDecoratorHeight(x),this.getMaxDecoratorHeight(x)):-1;return v.height===P?0:(v.height=P,dh(s,x,function(j,F,q){j.view_type===u&&(j.view_height=P,r|=this.getResizeEnum(q))},this),r)}updateDecoratorInfo(r){if(r===7)return 7;let i=this.operation&&this.operation.dec_info;if(!i)return 7;let s=this.data.dec_info;return n0(i,!0,function(u,x,v){u.view_height!==s[x][v].view_height&&(r|=this.getResizeEnum(v))},this),r}getResizeEnum(r){switch(r){case"cover":return 1;case"even":return 2;case"normal":return 4;default:throw Error("Invalid type.")}}}class kv extends Tv{constructor(r){super(r)}update(r){let i=this._update(r);if(i!==0&&(r.setPageLayoutChanged(),!r.isPagesAllDirty()))if(i===7)r.setPagesAllDirty();else{if(1&i&&r.addDirtyPages(0),2&i)for(let s=1,u=this.control.getPageCount();s<u;s+=2)r.addDirtyPages(s);if(4&i)for(let s=2,u=this.control.getPageCount();s<u;s+=2)r.addDirtyPages(s)}}getTypeFromIndex(r){return r===0?"cover":r%2==0?"normal":"even"}getDecoratorInfo(r,i){return this.data.dec_info[r][i]}getMinDecoratorHeight(r){return r==="header"?this.getMinHeaderHeight():this.getMinFooterHeight()}getMinHeaderHeight(){return this.data.page_padding.top}getMinFooterHeight(){return this.data.page_padding.bottom}getMaxDecoratorHeight(r){return r==="header"?this.getMaxHeaderHeight():this.getMaxFooterHeight()}getMaxHeaderHeight(){return this.data.page_decorate_height}getMaxFooterHeight(){return this.data.page_decorate_height}getViewTypeFromIndex(r,i){return this.getDecoratorInfo(i,this.getTypeFromIndex(r)).view_type}getPageDecoratorHeight(r,i){return this.getDecoratorInfo(i,this.getTypeFromIndex(r)).view_height}getPageHeaderHeight(r){return this.getPageDecoratorHeight(r,"header")}getPageFooterHeight(r){return this.getPageDecoratorHeight(r,"footer")}getPageGap(){return this.data.page_gap}getPageGapTop(){return this.data.page_gap_top}getPageGapBottom(){return this.data.page_gap_bottom}getPageSize(r){return this.data.page_size}getPageHeight(r){return this.getPageSize(r).height}getPageWidth(r){return this.getPageSize(r).width}getPageFullHeight(r){return this.getPageHeight(r)+this.getPageGap()}getPageSettingPadding(r){return this.data.page_padding}getPagePadding(r){let i=this.getPageSettingPadding(r);return{left:i.left,top:this.getPageHeaderHeight(r),right:i.right,bottom:this.getPageFooterHeight(r)}}getPageContentSize(r){let i=this.getPageSize(r),s=this.getPagePadding(r);return{width:i.width-s.left-s.right,height:i.height-s.top-s.bottom}}getPageContentHeight(r){return this.getPageContentSize(r).height}getPageContentWidth(r){return this.getPageContentSize(r).width}}class Lv{constructor(r){this.control=r,this.reset()}reset(){this.resetDirtyMap(),this.pages=[]}resetDirtyMap(){this.dirty_map=Object.create(null)}getPage(r){return this.pages[r]}ensurePage(r){return this.pages[r]||(this.pages[r]=this.createPage(r))}setPageDirty(r){this.dirty_map[r]=!0}createPage(r){return{subpages:[this.createSubPage(0,this.control.getPageControl().getPageContentHeight(r))],blockers:[],blocker_bottom:0}}createSubPage(r,i){return[r,i]}removeBlocker(r){let i=r.page_index,s=this.getPage(i);if(!s)return!1;let u=s.blockers,x=u.indexOf(r);return!(x<0)&&(u.splice(x,1),this.setPageDirty(i),!0)}addBlocker(r){let i=r.page_index,s=this.ensurePage(i).blockers,u=0,x=r.inner_top;for(;u<s.length;++u){let v=s[u];if(r===v)return!1;if(x<v.inner_top)break}return s.splice(u,0,r),this.setPageDirty(i),!0}update(){for(let r in this.dirty_map){r*=1;let i=this.getPage(r);if(!i)continue;let s=i.blockers,u=i.subpages=[],x=0,v=this.control.getPageControl().getPageContentHeight(r);for(let P=0,j=s.length;P<j;++P){let F=s[P];x>=F.inner_bottom||(x<=v&&(x<F.inner_top?u.push(this.createSubPage(x,F.inner_top)):x===0&&u.push(this.createSubPage(0,0))),x=F.inner_bottom)}x<v&&u.push(this.createSubPage(x,v)),i.blocker_bottom=x}this.resetDirtyMap()}}class Dv{constructor(r){this.control=r,this.pageStore=new Lv(r),this.floatingRectMap=new Map,this.blockerMap=new Map}getBlocker(r){return this.blockerMap.get(r)}getPageBlocker(r){return this.pageStore.getPage(r)}ensurePageBlocker(r){return this.pageStore.ensurePage(r)}update(r){let{add:i,remove:s}=this.findChangedFloatingDrawingIds(r);this.updateFloatingDrawings(i,s),this.updateBlockers(r,i,s)}findChangedFloatingDrawingIds(r){let i=[];for(let x of r.getCollectedFloatingDrawings()){let v=x.getAttrValue("id");v&&i.push(v)}let s=new Set;r.getRootNode().queryChildNode("invisible",!0).forEach(x=>{let v=x.getAttrValue("id");v&&s.add(v)});let u=[];return r.getOldRootNode().queryChildNode("invisible",!0).forEach(x=>{let v=x.getAttrValue("id");v&&!s.has(v)&&u.push(v)}),{add:i,remove:u}}updateFloatingDrawings(r,i){for(let s of i)this.removeFloatingDrawing(s);for(let s of r)this.addFloatingDrawing(s)}addFloatingDrawing(r){this.removeFloatingDrawing(r);let i=this.control.pm.getPlugin("geometry").getGeometryInfo(r);if(!i)return;let s=i.getClientPaddingRect();this.floatingRectMap.set(r,{left:s.l,top:s.t,right:s.r,bottom:s.b})}removeFloatingDrawing(r){this.floatingRectMap.delete(r)}updateBlockers(r,i,s){if(r.isPageLayoutChanged()){for(let[u]of(this.pageStore.reset(),this.blockerMap))this.removeBlocker(r,u);for(let[u]of this.floatingRectMap)this.addBlocker(r,u);this.control.pm.getPlugin("floating")?.relocateAll()}else{for(let u of s)this.removeBlocker(r,u);for(let u of i)this.addBlocker(r,u)}this.pageStore.update()}addBlocker(r,i){this.removeBlocker(r,i);let s=this.floatingRectMap.get(i);if(!s)return;let u=this.createBlocker(i,s);this.blockerMap.set(i,u),r.addDirtyPages(u.page_index),this.pageStore.addBlocker(u)}removeBlocker(r,i){let s=this.blockerMap.get(i);s&&(this.blockerMap.delete(i),r.addDirtyPages(s.page_index),this.pageStore.removeBlocker(s))}createBlocker(r,i){let{index:s,inner:u}=this.control.pageIndexFromTop(i.top);return{id:r,rect:i,page_index:s,inner_top:u,inner_bottom:u+(i.bottom-i.top)}}}let Pt=pe("ALL","PARTIAL","NONE"),ti=pe("BLOCK","LOCAL","NONE");function ph(l){let r=be.fly(l),i=r.getNode();return i&&i.type.isTableCell?{visible:!!i.state.display,row_span:l.rowSpan,isolated:!!r.getData("pagination_table_cell_isolated")}:null}function a0(l,r){return l.state.row_index+l.state.view_rowspan-r.state.row_index}class Rv{constructor(r){this.paginator=r,this.pm=r.pm,this.filler=new Ts(this),this.table_filler=new Ov(this),this.table_row_filler=new Nv(this),this.table_cell_filler=new jv(this)}getFiller(r){let i=be.fly(r).getNode();if(i)switch(i.type.name){case"table":return this.table_filler;case"table_row":return this.table_row_filler;case"table_cell":return this.table_cell_filler}return this.filler}updateSegmentInfo(r,i){return this.getFiller(r).updateSegmentInfo(...arguments)}splitDOM(r,i,s){return this.getFiller(r).splitDOM(...arguments)}mergeDOM(r,i,s,u,x){return this.getFiller(r).mergeDOM(...arguments)}trimResultDOM(r){return this.filler.trimResultDOM(r)}fillSpace(r,i,s,u){return this.getFiller(r).fillSpace(r,i,s,u)}fillPage(r,i,s){return s===void 0&&(s=d),this.getFiller(r).fillPage(r,i,s)}}class Ts{constructor(r){this.control=r,this.pm=r.pm}_updateSegmentInfoSelf(r){be.fly(r).updateContentSize()}_updateSegmentInfoNext(r,i){}updateSegmentInfo(r,i){if(this._updateSegmentInfoSelf(r),i!==r){for(let s=r,u=be.fly(r).getNextSegment();u;s=u,u=be.fly(u).getNextSegment())if(this._updateSegmentInfoSelf(u),this._updateSegmentInfoNext(s,u),u===i)return;if(i)throw Error("Given segments are not valid segment in order.")}}_splitDOM(r,i,s){let u=be.fly(r).childContainer,x=u.cloneNode(!1),v=u,P=x;if(i){let j=[s||i];for(let F=i.nextSibling;F;F=F.nextSibling)j.push(F);P.append(...j)}for(;v!==r;){let j=v.parentNode,F=j.cloneNode(!1);for(let q=j.firstChild;q;q=q.nextSibling)q===v?F.appendChild(P):F.appendChild(q.cloneNode(!0));v=j,P=F}return be.fly(P).setChildContainer(x),be.fly(v).insertNextSegment(P),be.fly(P).setClonedInfo(v),P}splitDOM(r,i,s){let u=this._splitDOM(r,i,s);this.updateSegmentInfo(r,u);let x=be.fly(u).getNode();return x&&this.pm.getPlugin("draw").hookEvent(x,u),u}_mergeDOM(r,i,s,u){if(!i)return;let x=be.fly(r).childContainer,v=[],P=s||i;if(u<0){for(let j=i.parentNode.firstChild;j!==i;j=j.nextSibling)v.push(j);v.push(P),x.append(...v)}else{v.push(P);for(let j=i.nextSibling;j;j=j.nextSibling)v.push(j);x.prepend(...v)}}mergeDOM(r,i,s,u,x){this._mergeDOM(r,s,u,x),x<0?this.updateSegmentInfo(r,i):this.updateSegmentInfo(i,r)}isSegmentEmpty(r){return!be.fly(r).childContainer.firstChild}_shouldTrimSegment(r){return!be.fly(r).isFirstSegment&&this.isSegmentEmpty(r)}shouldTrimSegment(r,i){if(i)return this._shouldTrimSegment(r);do if(!this._shouldTrimSegment(r))return!1;while(r=be.fly(r).getNextSegment());return!0}trimNextSegment(r,i){let s=!1;for(let u=be.fly(r).getNextSegment();u&&this.isSegmentEmpty(u)&&(be.fly(r).removeNextSegment(),s=!0,!i);u=be.fly(r).getNextSegment());return s}trimCurSegment(r,i){let s=be.fly(r).getPrevSegment();return!!s&&this.trimNextSegment(s,i)}trimResultDOM(r,i){return r.type===Pt.ALL&&!!this.trimCurSegment(r.dom,i)&&(r.dom=null,!0)}resolveChildTop(r){return r===ti.NONE?ti.LOCAL:r}resolveForceFit(r,i){return!!(r.top===ti.BLOCK&&i.page_empty)}calcChildHeight(r){return r.type===ti.NONE?0:be.fly(r.dom).getHeight()}handleChildFillAll(r,i,s){r.type=Pt.ALL;let u=this.trimResultDOM(i),{dom:x,parent:v}=r;x===v?i.dirty&&(r.dirty=!0):(u||this._mergeDOM(r.dom,i.dom,null,-1),r.dirty=!0)}handleChildFillNone(r,i,s){if(i.top!==ti.NONE)r.type=Pt.NONE;else{r.type=Pt.PARTIAL;let{dom:u,parent:x}=r,v=i.dom;u===x?(r.merge?this.mergeDOM(r.merge,x,v,null,1):r.split=this.splitDOM(x,v),r.dirty=!0):r.dirty&&this.updateSegmentInfo(u,x)}}handleChildFillPartial(r,i,s){r.type=Pt.PARTIAL;let{dom:u,parent:x}=r,{dom:v,split:P}=i;u===x?r.merge?P?(this.mergeDOM(r.merge,x,v,P,1),r.dirty=!0):v.nextSibling?(this.mergeDOM(r.merge,x,v.nextSibling,null,1),r.dirty=!0):i.dirty&&(this.updateSegmentInfo(x,be.fly(i.merge).parentNode),r.dirty=!0):(r.split=P?this.splitDOM(x,v,P):this.splitDOM(x,v.nextSibling),r.dirty=!0):(P&&So(v,P),this.mergeDOM(u,x,v,null,-1),r.dirty=!0)}handleChildFill(r,i,s){switch(i.type){case Pt.ALL:this.handleChildFillAll(r,i,s);break;case Pt.NONE:this.handleChildFillNone(r,i,s);break;case Pt.PARTIAL:this.handleChildFillPartial(r,i,s);break;default:throw Error(`Invalid filling type. ${i.type}`)}i.dom&&(r.space-=this.calcChildHeight(i))}_handleChildAction(r,i,s,u,x){let v=this.control.fillSpace(i,r.space,u,x);return x.check_top_type?(r.type=v.type,!0):(this.handleChildFill(r,v,x),r.type!==Pt.ALL)}handleChildAction(r,i){let s=r.parent=r.dom,u=this.resolveChildTop(r.top),x=null,v=new Oc(s,!0);for(;v.dom&&(r.parent!==v.parent&&(r.parent=v.parent,r.merge=be.fly(v.parent).getNextSegment()),!this._handleChildAction(r,v.dom,r.space,u,i));)u=ti.NONE,r.parent===s?(v.dom.parentNode||(v.dom=x||v.child_container.firstChild,v.ensureDOM()),x=v.dom,v.next()):(x=null,v.dom=v.child_container.firstChild,v.ensureDOM());r.parent=null}handleChildTrim(r,i){let s=r.dom;this.trimNextSegment(s),r.merge&&r.merge.parentNode||(r.merge=be.fly(s).getNextSegment())}handleChild(r,i){this.handleChildAction(r,i),!i.check_top_type&&(this.handleChildTrim(r,i),r.type===Pt.ALL&&r.dirty&&this.updateSegmentInfo(r.dom,r.merge))}handleSelf(r,i){let s=r.dom,u=this.resolveForceFit(r,i),x=be.fly(s).getNode();if(!x||x.type.isLeaf){let v=be.fly(s).getHeight();return u||v<=r.space?r.type=Pt.ALL:r.type=Pt.NONE,!0}return r.space-=be.fly(s).getPaddingHeight(),!u&&r.space<0&&(r.type=Pt.NONE,!0)}createResult(r,i,s,u){return{type:Pt.ALL,dom:r,space:i,top:s,dirty:!1,merge:be.fly(r).getNextSegment()}}fillSpace(r,i,s,u){let x=this.createResult(r,i,s,u);return this.handleSelf(x,u)||this.handleChild(x,u),x}fillPage(r,i,s){let u=be.fly(r).getNode();if(u&&u.type.isPageBreak)return{...this.createResult(r,i,Pt.ALL,s),page_break:!0};let x=this.control.fillSpace(r,i,ti.BLOCK,s),v=x.split;return v&&So(r,v),x}}class Ov extends Ts{_updateSegmentInfoSelf(r){super._updateSegmentInfoSelf(r),be.fly(r).updatePaddingSize()}_updateSegmentInfoNext(r,i){super._updateSegmentInfoNext(r,i),be.fly(i).updatePaddingSize()}calcChildHeight(r){return be.fly(r.dom).updateTableRowSpanInfo(),super.calcChildHeight(...arguments)}handleChildFill(r,i,s){return i.table_dirty&&(r.dirty=!0),i.isolated_results&&i.isolated_results.length&&(r.update_segment=!0),super.handleChildFill(...arguments)}handleChild(r,i){super.handleChild(...arguments),i.check_top_type||r.type===Pt.ALL&&!r.dirty&&r.update_segment&&this.updateSegmentInfo(r.dom,r.dom)}}class Nv extends Ts{updateTableRowInfo(r){let i=r.dom;r.dirty?this.updateSegmentInfo(i):r.isolated_results.length&&this.updateSegmentInfo(i,i)}splitTableRow(r,i){let s=document.createDocumentFragment();return s.append(...i),this.splitDOM(r,s)}trimTableCellResultDOM(r){let i=r.dom;return!be.fly(i).isFirstSegment&&((r.cell_row_span===1||this.shouldTrimSegment(i,!0))&&this.trimCurSegment(i,!0),_a(i),r.dom=null,!0)}syncContent(r,i){let s=!1,u=0,x=be.fly(r).childContainer,v=x.firstChild;for(;v;){let P=i.indexOf(v,u);if(P!==u&&(s=!0),P>=0){for(;u<P;++u)x.insertBefore(i[u],v);++u,v=v.nextSibling}else{let j=v.nextSibling;x.removeChild(v),v=j}}for(let P=i.length;u<P;++u)x.appendChild(i[u]),s=!0;return s}updateContent(r,i){let s=this.syncContent(r.dom,i.reduce(function(u,x){return x.dom&&u.push(x.dom),u},[]));return!r.dirty&&(s||i.some(u=>u.dirty))&&(r.dirty=!0),s}findContent(r,i,s,u){let x;u===void 0&&(u=d);let{find_isolated:v}=u,P=be.fly(be.fly(r).parentNode).getNode(),j=be.fly(r).getNode(),F=0,q=!1,J=te=>{let ie=ph(te);if(!ie)return;if(ie.isolated){x=te;return}let de=be.fly(te).getNode().state.col_index;for(;F<de;)if(re(F))return!0;if(v&&!ie.visible){let{row_index:ce,col_index:xe}=be.fly(te).getNode().state,we=P.getDisplayCellNode(ce,xe);if(we.state.col_index===xe){let Me=v(r,te,we,x);if(Me&&(Me===!0||i.call(s,Me,ph(Me))))return q=!0}}if(i.call(s,te,ie))return q=!0;++F},re=te=>{let ie=be.fly(j.child(te).dom).getLastSegment();return ie.parentNode&&(ie=this.control.splitDOM(ie)),J(ie)};if(be.fly(r).forEachDOM(J,this,!0),!q){let te=j.childCount;for(;F<te&&!re(F););}}setupIsolatedTableCell(r,i){let s=a0(be.fly(r).getNode(),be.fly(i).getNode());return r.rowSpan!==s&&(r.rowSpan=s),be.fly(r).setData("pagination_table_cell_isolated",!0),r}canTableCellMoveTo(r,i){if(be.fly(r).isFirstSegment)return!1;let s=be.fly(r).parentNode;if(!s||s===r||!Ri(this.pm.content,r))return!0;let u=be.fly(i).getOffset(),x=be.fly(s).getOffset();if(u!==x)return u<x;for(;;){if(i=be.fly(i).getPrevSegment(),s=be.fly(s).getPrevSegment(),!i)return!0;if(!s)return!1}}findPrevIsolatedTableCell(r,i,s){let u;if(s&&be.fly(s).getNode()===i){u=s;do u=be.fly(u).getPrevSegment();while(this.canTableCellMoveTo(u,r))}else for(u=i.dom;;){let x=be.fly(u).getNextSegment();if(x&&!this.canTableCellMoveTo(x,r))u=x;else break}return u}handleChildFillSpanned(r,i,s){r.spanned_results.some(u=>u.dirty)&&(r.table_dirty=r.dirty=!0)}handleChildFillAllTop(r,i,s){let u=r.dom;be.fly(u).isLastSegment&&r.non_spanned_results.forEach(function(x){x.cell_isolated&&this.trimNextSegment(x.dom)},this),!be.fly(u).isFirstSegment&&r.non_spanned_results.every(x=>this.shouldTrimSegment(x.dom,!0))&&i.forEach(this.trimTableCellResultDOM,this),this.updateContent(r,i),this.updateTableRowInfo(r)}handleChildFillAllNonTop(r,i,s){let u=r.dom,x=be.fly(u).getNode(),v=[];if(this.findContent(u,function(P,j){v.push({dom:P})},this,{find_isolated:(P,j,F,q)=>(a0(F,x)===1&&v.push({dom:this.findPrevIsolatedTableCell(P,F,q),isolated:!0}),null)}),be.fly(u).isLastSegment){let P=!1;v.forEach(function(j){j.isolated&&(this.trimNextSegment(j.dom),be.fly(j.dom).getNextSegment()&&(P=!0))},this),P&&(be.fly(u).isFirstSegment?r.type=Pt.PARTIAL:r.type=Pt.NONE)}r.type!==Pt.ALL||be.fly(u).isFirstSegment||(v.every(function(P){let j=P.dom;if(!P.isolated)return this.shouldTrimSegment(j,!0);{let F=be.fly(j).getNextSegment();return!F||this.shouldTrimSegment(F)}},this)?(r.type=Pt.ALL,i.forEach(this.trimTableCellResultDOM,this)):r.type=Pt.NONE),r.type!==Pt.NONE&&(this.updateContent(r,i),r.type===Pt.PARTIAL?(r.split=this.splitTableRow(u,v.map(P=>{let j=P.dom;return P.isolated?(j=be.fly(j).getNextSegment()||this.control.splitDOM(j),this.setupIsolatedTableCell(j,u)):j=this.control.splitDOM(j),j},this)),r.dirty=!0):this.updateTableRowInfo(r))}handleChildFillAll(r,i,s){r.type=Pt.ALL,r.top!==ti.NONE?this.handleChildFillAllTop(r,i,s):this.handleChildFillAllNonTop(r,i,s)}handleChildFillPartial(r,i,s){r.type=Pt.PARTIAL,this.updateContent(r,i);let u=r.dom;r.merge?this.updateTableRowInfo(r):r.split=this.splitTableRow(u,i.map(x=>(x.cell_isolated?be.fly(x.dom).getNextSegment():x.split)||this.control.splitDOM(x.dom),this))}handleChildFill(r,i,s){this.handleChildFillSpanned(r,i,s),r.non_spanned_results.every(u=>u.type===Pt.ALL)?this.handleChildFillAll(r,i,s):this.handleChildFillPartial(r,i,s)}_handleChildAction(r,i,s,u,x,v){let{visible:P,row_span:j,isolated:F}=i,q=this.control.fillSpace(s,P?u:1/0,x,v);q.cell_visible=P,q.cell_row_span=j,q.cell_isolated=F,r.child_results.push(q),F&&r.isolated_results.push(q),j!==1?r.spanned_results.push(q):r.non_spanned_results.push(q)}handleChildAction(r,i,s){let{space:u,top:x}=r;r.child_results=[],r.isolated_results=[],r.spanned_results=[],r.non_spanned_results=[];let v=this.resolveChildTop(x);for(let P=0,j=i.length;P<j;++P){let F=i[P];this._handleChildAction(r,F.analysis,F.dom,u,v,s)}this.handleChildFill(r,r.child_results,s)}handleChildNone(r,i){r.type=Pt.NONE}handleChild(r,i){let{dom:s,space:u,top:x}=r,v=this.resolveForceFit(r,i),P=i.check_top_type,j=!0,F;if(!v&&u<be.fly(s).getData("table_row_min_height"))j=!1;else{let q,J;i.check_top_type=!0,x!==ti.NONE&&(J=[],q=(te,ie,de,ce)=>{let xe=this.findPrevIsolatedTableCell(te,de,ce),we=be.fly(xe).getNextSegment();return we?this.setupIsolatedTableCell(we,te):(J.push(F.length),F.push({dom:xe}),null)});let re=this.resolveChildTop(x);if(F=[],this.findContent(s,function(te,ie){if(F.push({dom:te,analysis:ie}),!v&&ie.visible&&this.control.fillSpace(te,u,re,i).type===Pt.NONE)return j=!1,!0},this,{find_isolated:q}),!P&&j&&J&&J.length)for(let te=J.length-1;te>=0;--te){let ie=F[J[te]];ie.dom=this.setupIsolatedTableCell(this.control.splitDOM(ie.dom),s),ie.analysis=ph(ie.dom)}i.check_top_type=P}if(P){r.type=j?Pt.ALL:Pt.NONE;return}j?this.handleChildAction(r,F,i):this.handleChildNone(r,i)}}class jv extends Ts{handleChildTrim(r,i){}}class Ev{constructor(r){this.control=r,this.pm=r.pm,this.space_filler=new Rv(this),this._page_count=0,this.pages=[],this.bindEvents()}bindEvents(){this.control.bindEvent(this.pm.getPlugin("draw"),"afterRender",this.onEditAreaDrawAfterRender,this,{checker:"EditArea"}),this.control.bindEvent(this.pm.getPlugin("draw"),"childContainer",this.onEditAreaDrawChildContainer,this,{checker:"EditArea"})}onEditAreaDrawAfterRender(r,i,s){s.isTarget("major")&&(this.pages=[],this.ensurePageDOM(0))}onEditAreaDrawChildContainer(r,i,s){let u=this.pm.getPlugin("draw"),x=u.getPmElement(i).lastChild;if(!x)throw Error("There is no page element.");let v=u.getPmElement(x).childContainer;if(!x)throw Error("The page element must has a child container.");return v}getPageCount(){return this.pages.length}getPageDOM(r){return this.pages[r<0?this.getPageCount()+r:r||0]}ensurePageDOM(r){let i=this.getPageCount();if(r<i)return this.getPageDOM(r);let s=this.pm.doc.queryChildNode("EditArea",!0),u=s.type.createPseudoNode(s),x=this.pm.getPlugin("draw").getPmElement(s).childContainer;for(let v=i;v<=r;++v){let P=this.pm.getPlugin("draw").renderNode(u);be.fly(P).setData("page_index",v);let j=v>=0?this.getPageDOM(v-1):null;j&&be.fly(j).insertNextSegment(P),this.pages[v]=P,x.appendChild(P)}return this.getPageDOM(r)}ensurePageBlocker(r){return this.control.getBlockerControl().ensurePageBlocker(r)}_handlePage(r){let i=r.space_index,s=this.getPageDOM(i);be.fly(s).setData("page_break",!1);let u=[],x=i===r.content_index,v=r.space_info.subpage_empty?r.space_info.padding:0,P=!1,j={page_empty:!1,subpage_empty:!1};for(;r.space_info;){let F,q;if(!r.dom){if(!r.ensureContent())break;x=i===r.content_index}let J=r.dom,{page_empty:re,subpage_empty:te,space:ie}=r.space_info;j.page_empty=re,j.subpage_empty=te;let de=this.space_filler.fillPage(J,ie,j),{type:ce}=de,xe=ce===Pt.PARTIAL||ce===Pt.ALL,we=ce===Pt.PARTIAL||ce===Pt.NONE;if(de.page_break?(be.fly(s).setData("page_break",!0),r.nextSpace(!0),F=q=!0):we&&(r.nextSpace(),F=!r.space_info,q=!0),xe&&r.nextContent(),!this.space_filler.trimResultDOM(de)){if(xe&&(ie-=be.fly(J).getHeight()),!q){let Me=r.space_info;Me.space=ie,Me.page_empty=Me.subpage_empty=!1}if(xe&&(te?(be.fly(J).setBlockerPadding(v),v=0):be.fly(J).removeBlockerPadding()),we&&!F&&(v+=r.space_info.padding+ie),x){if(F){for(let Me=r.dom;Me;Me=Me.nextSibling)u.push(Me);r.dom=null,de.dirty&&(P=!0)}}else xe&&u.push(J)}}return u.length&&(x?be.fly(this.ensurePageDOM(i+1)).childContainer.prepend(...u):be.fly(this.getPageDOM(i)).childContainer.append(...u)),!!u.length||P}handlePage(r,i){let s=r.length?r[r.length-1]:-1;if(i<=s)return;let u=new Vv(this,i,s),x=i,v=i;for(;u.space_index<=v;){if(!u.dom){v=this.getPageCount()-1;break}let P=this._handlePage(u),{space_index:j,content_index:F}=u;u.ensureValue(),P&&(x=Math.min(x,j),v=Math.max(v,j===F?u.content_index:F))}if(v>=this.getPageCount())throw Error();for(let P=x;P<=v;++P)r.push(P)}trimEmptyPage(){let r=be.fly(this.getPageDOM(-1));for(;!gi(r.childContainer);)r=be.fly(r.getPrevSegment());let i=r.getData("page_index")+1,s=this.getPageCount();if(i!==s){for(let x=s-1;x>=i;--x)be.fly(this.getPageDOM(x-1)).removeNextSegment();this.pages.length=i}let u=this._page_count;i!==u&&(this._page_count=i,this.pm.on.pageCountChange.dispatch(i,u))}updatePageContentHeight(r){for(let i=0,s=r.length;i<s;++i){let u=r[i],x=this.getPageDOM(u),v=0;be.fly(x).forEachDOM(function(P){let j=be.fly(P);v+=j.getHeight()+j.getBlockerPadding()}),be.fly(x).setData("page_content_height",v),be.fly(x).setData("page_content_bottom",Math.max(v,this.control.getPageBlocker(u).blocker_bottom))}}paginate(r){let i=[];if(r.isPagesAllDirty())for(let s=0;s<this.getPageCount();s=i[i.length-1]+1)this.handlePage(i,s);else for(let s of r.getDirtyPages())this.handlePage(i,s);if(i.length){if(i[i.length-1]===this.getPageCount()-1){this.trimEmptyPage();let s=this.getPageCount();for(let u=i.length-1;u>=0;--u)i[u]>=s&&(i.length=u)}this.updatePageContentHeight(i),this.control.updatePageOffsetHeightSum(),(r.update_page_decorate||r.update_decorators)&&this.pm.dispatchEvent("pageLayoutChange"),this.pm.dispatchEvent("paginate",i)}}}class Vv{constructor(r,i,s){this.paginator=r,this.space_index=i,this.space_sub_index=0,this.space_info=null,this.content_index=i,this.dom=null,this.findLastSpace(i,s)}findLastSpace(r,i){let s,u,x,v;--r;let P=!1;for(let j=Math.max(0,i+1);r>=j;--r){let F=this.paginator.getPageDOM(r);if(be.fly(F).getData("page_break"))break;if(!(v=be.fly(F).childContainer.lastChild))continue;let q=be.fly(F).getData("page_content_height"),J=this.paginator.ensurePageBlocker(r).subpages;for(s=J.length-1;s>=0;--s){let re=J[s];if(q>=re[0]){u=re[1]-q,x=0,be.fly(v).getNextSegment()?(u+=be.fly(v).getHeight(),x+=be.fly(v).getBlockerPadding()):v=null,P=!0;break}}if(P)break}if(P||(++r,s=0,v=be.fly(this.paginator.getPageDOM(r)).childContainer.firstChild),this.space_index=r,this.space_sub_index=s,this.content_index=r,this.dom=v,this.ensureValue(),P){let j=this.space_info;j&&(v&&(!v.previousSibling||be.fly(v).getBlockerPadding())||(j.page_empty=j.subpage_empty=!1),j.space=u,j.padding=x),v&&(this.dom=v)}}updateSpace(){let r=null,i=this.space_index;if(i<this.paginator.getPageCount()){let s=this.paginator.ensurePageBlocker(i),u=s.subpages,x=this.space_sub_index,v=u[x];v&&(r={page_empty:!s.blockers.length,subpage_empty:!0,space:v[1]-v[0],padding:v[0]-(x?u[x-1][1]:0)})}return this.space_info=r}updateContent(){let r=null,i=this.paginator.getPageDOM(this.content_index);return i&&(r=be.fly(i).childContainer.firstChild),this.dom=r}ensureSpace(){if(!this.space_info)for(let r=this.paginator.getPageCount();this.space_index<r&&!this.updateSpace();++this.space_index,this.space_sub_index=0);return this.space_info}ensureContent(){!this.dom&&++this.content_index;for(let r=this.paginator.getPageCount();this.content_index<r&&!this.updateContent();++this.content_index);return this.dom}ensureValue(){this.ensureSpace(),this.ensureContent()}nextSpace(r){let i=this.space_info;return i&&(r?this.space_sub_index=1/0:++this.space_sub_index,this.updateSpace()),i}nextContent(){let r=this.dom;return r&&(this.dom=this.dom.nextSibling),r}}class Bv{constructor(r){this.control=r,this.pm=r.pm,this.paginated=!0,this.bindEvents()}bindEvents(){this.control.bindEvent(this.pm,"paginate",this.onPaginate,this,{priority:100}),this.control.bindEvent(this.pm,"beforePrint",this.onBeforePrint,this),this.control.bindEvent(this.pm,"afterPrint",this.onAfterPrint,this)}onPaginate(r){if(!this.isPaginatedMode()){for(let i=0,s=r.length;i<s;++i){let u=this.control.getPageDOM(r[i]);u.style.height=be.fly(u).getData("page_content_bottom")+"px"}r[0]===0&&this.setupFirstPagePadding(),r[r.length-1]>=this.control.getPageCount()-1&&this.setupLastPagePadding()}}onBeforePrint(r,i){this.paginatedBefore=this.isPaginatedMode(),this.setPaginationMode(!0)}onAfterPrint(r,i){let s=this.paginatedBefore;s!=null&&(this.setPaginationMode(s),this.paginatedBefore=null)}setupFirstPagePadding(){let r=this.control.getPageDOM(0);if(!r)return;let i=r.firstChild;if(i)if(this.isPaginatedMode())r.style.paddingTop="",i.style.paddingTop="",i.style.marginTop="";else{let s=this.control.getPageControl().getPageSettingPadding(0).top;r.style.paddingTop=s+"px",i.style.paddingTop=s+"px",i.style.marginTop=-s+"px"}}setupLastPagePadding(){let r=this.control.getPageCount()-1,i=this.isPaginatedMode()?null:Math.max(0,this.control.getPageControl().getPageContentHeight(r)+this.control.getPageControl().getPageSettingPadding(r).bottom-be.fly(this.control.getPageDOM(r)).getData("page_content_bottom"))+"px",s=this.pm.showDoc.queryChildNode("EditArea",!0);s.type.getPageFillingDOM(s.dom).style.height=i}_setPaginationMode(r){if(this.pm.content.classList[r?"remove":"add"]("syno-o-doc-pm-pagination-compress"),this.control.getPageCount()===0)return;let i=r?this.control.getPageControl().getPageHeight(0):0;be.fly(this.control.getPageDOM(0)).forAll(function(s){s.style.height=(r?i:be.fly(s).getData("page_content_bottom"))+"px"},this),this.setupFirstPagePadding(),this.setupLastPagePadding()}setPaginationMode(r){if(r==null)r=!this.paginated;else if(r=!!r,this.paginated===r)return;this.paginated=r,this._setPaginationMode(r),this.pm.on.paginationModeChange.dispatch(r),this.pm.on.pageLayoutChange.dispatch()}isPaginatedMode(){return this.paginated}}let zv=new Et(class extends Iv{constructor(l,r){super(l,r),this.pageManager=new kv(this),this.blockerManager=new Dv(this),this.paginatorManager=new Ev(this),this.modeManager=new Bv(this),this.disablePageGapClickHandler=r.disablePageGapClickHandler??!1,this.context=null}static get pluginName(){return"paginator"}static get pluginDependency(){return["draw","geometry"]}static get pluginSubscriptions(){return{paginate:new ut,paginationModeChange:new ut,pageCountChange:new ut,pageLayoutChange:new ut}}getPageControl(){return this.pageManager}getBlockerControl(){return this.blockerManager}getPaginator(){return this.paginatorManager}getModeControl(){return this.modeManager}createPaginateContext(l,r){return new Pv(l,r)}getPaginateContext(){if(!this.context)throw Error("Context does not exist.");return this.context}bindEvents(){super.bindEvents();let l=this.pm;this.bindEvent(l,"startDraw",this.onStartDraw,this);let r=l.getPlugin("draw");function i(s){return(u,x,v,P)=>{v.isTarget("major")&&s(u,x,v,P)}}this.bindEvent(r,"change",this.onDecoratorChange,this,{checker:"Decorator"}),this.bindEvent(r,"change",this.onEditAreaChange,this,{checker:"EditArea"}),this.bindEvent(r,"afterRender",i(this.onDocumentDrawAfterRender.bind(this)),null,{checker:"Document"}),this.bindEvent(r,"afterRender",i(this.onPageDecorateDrawAfterRender.bind(this)),null,{checker:"PageDecorate"}),this.bindEvent(r,"afterRender",i(this.onDrawingDrawAfterRender.bind(this)),null,{checker:"Drawing"}),this.bindEvent(this.pm,"drawProgressive",this.onDrawProgressive,this),l.getPlugin("input:editor")&&!this.disablePageGapClickHandler&&this.bindEvent(l,"doubleClick",this.onDoubleClick,this),this.bindEvent(this.pm,"paginationModeChange",this.onPaginationModeChange,this,{priority:100})}onStartDraw(l,r){this.context=this.createPaginateContext(l,r)}onDocumentDrawAfterRender(l){this.getPaginateContext().update_doc=l}onPageDecorateDrawAfterRender(l){this.getPaginateContext().update_page_decorate=l}onDecoratorChange(l){let r=this.getPaginateContext();(r.update_decorators||(r.update_decorators=[])).push(l)}onDrawingDrawAfterRender(l){l.getAttrValue("config").alignment==="break"&&this.getPaginateContext().collectFloatingDrawings(l)}onEditAreaChange(l,r,i,s){let u=this.getPaginateContext();if(!u.isPagesAllDirty())if(s){let x=this.pm.getPlugin("draw"),v=x.getPmElement(r).firstChild;if(v)for(let P of s){let j=x.getPmElement(v).getContainingSegment(P);if(!j)continue;let F=x.getPmElement(j).getData("page_index");F!=null&&u.addDirtyPages(F)}}else u.setPagesAllDirty()}onDrawProgressive(l,r,i){let{first:s,last:u}=i,x=this.getPaginateContext();s&&(this.updatePageInfo(),this.updateSubpageInfo()),this.getPaginator().paginate(x),x.reset(),u&&(this.context=null)}onDoubleClick(l,r){if(r&&r.classList.contains("syno-o-doc-pm-edit-area-page-container"))return void this.setPaginationMode()}onPaginationModeChange(){this.updateIndicatorWrapperOffsets()}updatePageInfo(){let l=this.getPaginateContext();this.getPageControl().update(l),this.updateIndicatorWrapperOffsets()}updateSubpageInfo(){let l=this.getPaginateContext();this.getBlockerControl().update(l)}updateIndicatorWrapperOffsets(){let l=this.pm.doc.queryChildNode("EditArea",!0),r=this.pm.getPlugin("draw").getDom(l);if(!r)return;let i=l.type.getIndicatorWrapperDOM(r),{left:s,top:u}=this.resolvePaginatedMode()?this.getPageControl().getPagePadding(0):this.getPageControl().getPageSettingPadding(0);i.style.left=s+"px",i.style.top=u+"px"}resolvePageIndex(l,r){return l<0&&(l=this.getPageCount()+l),r?.clampIndex?qe(l,0,this.getPageCount()-1):l}getPageCount(){return this.getPaginator().getPageCount()}getPageDOM(l){return this.getPaginator().getPageDOM(l)}findResidingPageDOM(l){let r=cr(l)?l:l.parentElement;if(!r)return null;let i=this.pm.getPlugin("draw").getDrawnDom(this.pm.showDoc.queryChildNode("invisible",!0));if(!(i&&i.contains(r)))return r.closest(".syno-o-doc-pm-page");{let s=r.closest(".syno-o-doc-pm-drawing");if(!s)return null;let u=s.getAttribute("synograph");if(!u)return null;let x=this.getBlocker(u);return x?this.getPageDOM(x.page_index):null}}findResidingPageIndex(l){let r=this.findResidingPageDOM(l);return r?this.getPaginator().pages.indexOf(r):-1}getPagePadding(l,r){r===void 0&&(r=d),l=this.resolvePageIndex(l,r);let i=this.getPageControl();if(this.resolvePaginatedMode(r.forcePaginated))return i.getPagePadding(l);{let s=i.getPageSettingPadding(l),u=0,x=0,v=this.getPageCount();return v>0&&(l===0&&(u=s.top),l===v-1&&(x=s.bottom)),{left:s.left,top:u,right:s.right,bottom:x}}}getPageContentSize(l,r){r===void 0&&(r=d),l=this.resolvePageIndex(l,r);let i=this.getPageControl();if(this.resolvePaginatedMode(r.forcePaginated))return i.getPageContentSize(l);{let s=i.getPageContentSize(l),u=0,x=this.getPageCount();if(x>0){let v=this.getPageDOM(l);v&&(u=l===x-1?s.height:be.fly(v).getData("page_content_bottom")??0)}return{width:s.width,height:u}}}getPageSize(l,r){r===void 0&&(r=d),l=this.resolvePageIndex(l,r);let i=this.getPageControl();if(this.resolvePaginatedMode(r.forcePaginated))return i.getPageSize(l);{let s=this.getPagePadding(l,r),u=this.getPageContentSize(l,r);return{width:u.width+s.left+s.right,height:u.height+s.top+s.bottom}}}getPageOffsets(l,r){return r===void 0&&(r=d),{x:0,y:this.topFromPageIndex(l,!0,{bound:r.clampIndex,forcePaginated:r.forcePaginated})}}}),Fv=new Et(class extends Gt{constructor(l,r){super(l,r),this.scheduler=this.createScheduler(),this.trimItems=!1,this.itemMap=new Map,this.floatingClassName=`${this.pm.schema.nodeType("doc").classPrefix}drawing-floating`,this.lastActiveDom=null}static get pluginName(){return"floating"}static get pluginDependency(){return["draw","geometry","image_loader","paginator"]}static get pluginSubscriptions(){return{floatingChange:new ut}}createScheduler(){return this.pm.createFlushScheduler({actions:{locateFloatings:{handler:this.handleChangedFloatingIds.bind(this),merger:this.mergeChangedFloatingIds.bind(this)},updateActiveFloating:{handler:l=>{this.updateActiveFloating(l||null)}}}})}ensureFloatingIdSet(l){if(l===!0){let r=new Set;return this.forEachFloatingNode(i=>{let s=i.getAttrValue("id");s&&r.add(s)}),r}return typeof l=="string"?new Set([l]):l}handleChangedFloatingIds(l){let r=this.ensureFloatingIdSet(l);this.forEachFloatingNode(i=>{let s=i.getAttrValue("id");if(!s||!r.has(s))return;let u=this.pm.getPlugin("draw").getDrawnDom(i);if(!u)return;let x=this.pm.getPlugin("geometry").getGeometryInfo(s);x&&x.getAnchoryType()==="absolute"&&this.locateFloating(s,i,u,x)})}mergeChangedFloatingIds(l,r){if(l===!0||r===!0)return!0;{let i;return!r&&l&&l instanceof Set?l:(i=r?r instanceof Set?r:new Set([r]):new Set,l instanceof Set?l.forEach(i.add,i):i.add(l),i)}}scheduleLocateFloatings(l){let r;(r=l instanceof pr?l.getAttrValue("id")||"":l)&&this.scheduler.schedule("locateFloatings",r)}scheduleUpdateActiveFloating(l){this.scheduler.schedule("updateActiveFloating",l||!1)}bindEvents(){super.bindEvents();let l=this.pm,r=l.getPlugin("draw");this.bindEvent(r,"redraw",this.onEditAreaDrawRedraw,this,{checker:"EditArea"}),this.bindEvent(r,"change",this.onDrawingDrawChange,this,{checker:"Drawing"}),this.bindEvent(l,"pageCountChange",this.onPageCountChange,this),this.pm.getPlugin("line")&&this.bindEvent(l,"lineDomUpdate",this.onLineDomUpdate,this),this.bindEvent(r,"change",this.onFloatingContainerChange,this,{checker:"Invisible"}),this.bindEvent(l,"draw",this.onDraw,this),this.bindEvent(l,"paginationModeChange",this.onPaginationModeChange,this),l.getPlugin("status")&&this.bindEvent(l,"statusChange",this.onStatus,this),l.getPlugin("input:editor")&&this.bindEvent(l,"beforeMouseDown",this.onBeforeMouseDown,this);let i=l.getPlugin("input_mouse");i&&i.addMouseHandler({mouseDown:(s,u)=>this.onMouseSelect(u),contextMenu:(s,u)=>this.onMouseSelect(u)})}onEditAreaDrawRedraw(){this.scheduleLocateFloatings(!0)}onDrawingDrawChange(l){this.scheduleLocateFloatings(l)}onPageCountChange(l,r){let i=Math.min(l,r),s=Math.max(l,r)-1;this.forEachFloatingNode(u=>{let x=u.getAttrValue("id");if(!x)return;let v=this.getFloatingItem(x);if(!v)return;let P=v.pageIndex;P>=i&&P<=s&&this.scheduleLocateFloatings(u)})}onLineDomUpdate(l){let r=this.pm.getPlugin("draw").getDrawnDom(this.pm.doc.queryChildNode("invisible",!0));if(!r)return;let i=new Set;for(let s of l){if(!r.contains(s))continue;let u=pi(s,r);if(!u)continue;let x=u.getAttribute("synograph");x&&i.add(x)}this.scheduleLocateFloatings(i)}onFloatingContainerChange(){this.trimItems=!0}onDraw(){this.trimItems&&(this.trimFloatingItems(),this.trimItems=!1)}onPaginationModeChange(l){l&&this.itemMap.forEach((r,i)=>{let{clientInfo:s}=this.getLocationData(r.info);this.updateFloatingItem(i,{...r,clientInfo:s})})}onStatus(l){let r=l.operation.object,i=r.adapted||r.top_adapted?r.sel_top:null;this.onTopDrawingSelectionChange(i)}onTopDrawingSelectionChange(l){let r=l&&l.isMultiBreakGraphSelection?l.getRange().node:null;this.scheduleUpdateActiveFloating(r)}onBeforeMouseDown(l){if(!this.pm.getPlugin("input:editor").getEventHandler("mousedown").isMouseActionEnabled()||l.defaultPrevented)return;let r=l.target;if(!r||!cr(r))return;let i=r.closest(".syno-o-doc-pm-text-box")?.closest(".syno-o-doc-pm-drawing-floating");if(!i||!i.parentElement?.classList.contains("syno-o-doc-graph-container"))return;let s=null,u=i.getAttribute("synograph");u&&this.pm.showDoc.queryChildNode("invisible",!0).forEach(x=>{if(x.getAttrValue("id")===u)return s=x,!0},null,!0),s&&this.updateActiveFloating(s)}onMouseSelect(l){return!!l.closest(".syno-o-doc-graph-container")}clearFloatingItem(l){let r=this.getFloatingItem(l);r&&r.dom&&r.dom.remove()}getFloatingItem(l){return l?this.itemMap.get(l):void 0}updateFloatingItem(l,r){r?this.itemMap.set(l,r):this.itemMap.delete(l),this.pm.dispatchEvent("floatingChange",l,r&&r.clientInfo)}setFloatingItem(l,r){this.clearFloatingItem(l),this.updateFloatingItem(l,r)}deleteFloatingItem(l){this.clearFloatingItem(l),this.updateFloatingItem(l,null)}getFloatingClientGeometryInfo(l){let r=this.getFloatingItem(l);return r?this.pm.getPlugin("paginator").isPaginatedMode()?r.clientInfo:this.getLocationData(r.info).clientInfo:null}getFloatingDom(l){return this.getFloatingItem(l)?.dom||null}forEachFloatingInfo(l,r){this.itemMap.forEach((i,s)=>{l.call(r,i.info,s)})}forEachFloatingNode(l){let{node:r,offset:i}=this.pm.doc.queryChild("invisible",!0),s=i+1;r.forEach((u,x)=>l(u,s+x),null,!0)}relocateAll(){this.scheduleLocateFloatings(!0)}getLocationData(l){let r=this.pm.getPlugin("paginator"),i=l.getClientPaddingRect(),s=r.pageIndexFromTop(i.t,!1);return{pageIndex:s.index,pageInner:s.inner,clientInfo:l.translate(0,r.convertTopByIndex(s,!1)-i.t)}}getFloatingContainer(l){let r=this.pm.getPlugin("paginator").getPageDOM(l);return r?this.pm.schema.nodeType("page").getGraphContainerDOM(r):null}insertFloating(l,r,i){let s=i.getZOrder();r.setAttribute("data-graph-order",String(s));for(let u=l.firstElementChild;u;u=u.nextElementSibling){let x=parseInt(u.getAttribute("data-graph-order")||"",10);if(!isNaN(x)&&s<x)return void l.insertBefore(r,u)}l.appendChild(r)}cloneFloating(l,r,i){let s=r.cloneNode(!0),u=s.ownerDocument.createElement(s.tagName.toLowerCase());for(let P of(["synograph","class","style"].forEach(j=>{u.setAttribute(j,s.getAttribute(j)||"")}),u.classList.remove(`${this.floatingClassName}-active`),u.append(...s.childNodes),u.querySelectorAll(".syno-o-pm-plugin-indicator-wrapper").forEach(j=>{j.remove()}),this.pm.getPlugin("indicator")?.clearIndicators(u),this.pm.getPlugin("formatting_marks")?.maybeHideClonedFormattingMarks(l,u),u.querySelectorAll("[pm-offset],[pm-size],[pm-container]")))P.removeAttribute("pm-offset"),P.removeAttribute("pm-size"),P.removeAttribute("pm-container");let x=u.querySelector(".syno-o-doc-pm-text-box-area");if(x){for(let P of x.querySelectorAll("[pointer-events]"))P.removeAttribute("pointer-events");Array.prototype.forEach.call(x.children,P=>{P.style.pointerEvents="none"})}let v=i.getDrawingSchema();if(v==="shape"||v==="picture"){for(let P of(this.pm.getPlugin("image_loader").loadDescendant(u),u.querySelectorAll("clipPath[id]")))this.pm.getPlugin("shape").getShapeRenderer("picture").drawImageClipId(P.parentNode,i,{});for(let P of u.querySelectorAll("mask[id]"))this.pm.getPlugin("shape").getShapeRenderer("picture").drawStrokeMaskId(P.parentNode,i,{})}return this.pm.getPlugin("draw").hookEvent(l,u),u}locateFloating(l,r,i,s){if(!i.firstChild)return;Jt(i,{classList:[this.floatingClassName],inline_style:{display:""}});let{pageIndex:u,pageInner:x,clientInfo:v}=this.getLocationData(s),P=v.getClientPaddingRect().l,j=null,F=this.getFloatingContainer(u);F&&(ta(j=this.cloneFloating(r,i,v),{left:P+"px",top:x+"px"}),this.insertFloating(F,j,v)),this.setFloatingItem(l,{info:s,clientInfo:v,pageIndex:u,dom:j})}trimFloatingItems(){let l=Object.create(null);this.forEachFloatingNode(r=>{let i=r.getAttrValue("id");i&&(l[i]=!0)}),this.forEachFloatingInfo((r,i)=>{l[i]||this.deleteFloatingItem(i)})}updateActiveFloating(l){let r=l?this.pm.getPlugin("draw").getDrawnDom(l):null;r&&!this.setupActiveFloatingDom(r)&&(r=null),this.setActiveFloatingDom(r)}setupActiveFloatingDom(l){let r=this.getFloatingClientGeometryInfo(l.getAttribute("synograph"));if(!r)return!1;let{l:i,t:s}=r.getClientPaddingRect();return ta(l,{left:i+"px",top:s+"px"}),!0}setActiveFloatingDom(l){let r=this.lastActiveDom;if(l===r)return;this.lastActiveDom=l;let i=`${this.floatingClassName}-active`;r&&r.classList.remove(i),l&&l.classList.add(i)}});class s0{constructor(r){}computeScale(r,i,s){let{width:u,height:x}=r,{width:v,height:P}=i,j=s*Le,F=Math.abs(Math.sin(j)),q=Math.abs(Math.cos(j)),J=v*q+P*F,re=v*F+P*q;return J&&re?Math.min(u/J,x/re):0}computeTransformMatrixString(r,i,s){return sr.create().rotate(s,r.width/2,r.height/2).translate((r.width-i.width)/2,(r.height-i.height)/2).toString()}onClone(r){}}class Gv extends s0{constructor(r=d){super(r),this.imageLoader=r.imageLoader,this.fadedIntensity=r.fadedIntensity??.3,this.fadedBrightness=r.fadedBrightness??.35,this.serialNumber=0}computeColorMatrixString(r,i){let s=1+-r*(1-i);return[r,0,0,0,s,0,r,0,0,s,0,0,r,0,s,0,0,0,1,0].join(" ")}computeImageSize(r,i){let{config:{angle:s,imageWidth:u,imageHeight:x,scale:v}}=r,P=v||this.computeScale(i,{width:u,height:x},s);return{width:u*P,height:x*P}}getNextFilterId(){return`filter_${this.serialNumber++}`}create(r,i){let{config:{angle:s,fileId:u,faded:x}}=r;if(!u)return null;let v=this.computeImageSize(r,i),P=x?this.getNextFilterId():"";return It(["svg",{width:"100%",height:"100%"},x?["filter",{id:P,x:0,y:0,width:"100%",height:"100%",filterUnits:"objectBoundingBox",primitiveUnits:"objectBoundingBox"},["feColorMatrix",{type:"matrix",values:this.computeColorMatrixString(this.fadedIntensity,this.fadedBrightness),"color-interpolation-filters":"sRGB"}]]:null,["g",{filter:x?`url(#${P})`:null,transform:this.computeTransformMatrixString(i,v,s)},["image",{width:v.width,height:v.height,preserveAspectRatio:"none"},j=>{this.imageLoader?.call(null,j,u)}]]])}onClone(r){let i=r.querySelector("filter");if(!i)return;let s=this.getNextFilterId();i.id=s;let u=r.querySelector("[filter]");u&&u.setAttribute("filter",`url(#${s})`)}}class Hv extends s0{constructor(r=d){super(r),this.textSizeComputer=r.textSizeComputer}computeFontSyle(r,i){return`400 ${Math.max(Math.floor(Qt(i,"pt","px")),1)}px "${r.replaceAll('"',"")}"`}computeTextSize(r,i){return this.textSizeComputer?this.textSizeComputer.call(null,r,i):null}computeFontSize(r,i){let{config:{angle:s,content:u,fontFamily:x,fontSize:v}}=r;if(v)return v;let P=this.computeTextSize(u,this.computeFontSyle(x,108));return P?108*this.computeScale(i,P,s):0}computeSizeInfo(r,i){let{config:{content:s,fontFamily:u}}=r,x=this.computeFontSize(r,i);if(!x)return null;let v=this.computeFontSyle(u,x),P=this.computeTextSize(s,v);return P?{fontStyle:v,size:P}:null}create(r,i){let{config:{angle:s,content:u,opacity:x,color:v}}=r;if(!u)return null;let P=this.computeSizeInfo(r,i);if(!P)return null;let{fontStyle:j,size:F}=P;return It(["svg",{width:"100%",height:"100%"},["g",{transform:this.computeTransformMatrixString(i,F,s)},["text",{x:0,y:-1*Oi(j).top,fill:v,opacity:x,"text-rendering":"geometricPrecision",inline_style:{font:j,"white-space":"pre"}},u]]])}}let Wv=new Et(class extends Gt{constructor(l,r){super(l,r),this.pageSynchronizer=this.syncPages.bind(this),this.watermarkCreators=this.buildWatermarkCreatorMap(r),this.serialVersion=0,this.watermarkInfo=null}static get pluginName(){return"watermark"}static get pluginDependency(){return["draw","image","paginator"]}static get pluginSubscriptions(){return{watermarkSettingsChange:new ut}}buildWatermarkCreatorMap(l){return{image:new Gv({fadedIntensity:l.fadedIntensity,fadedBrightness:l.fadedBrightness,imageLoader:(r,i)=>{this.pm.getPlugin("image").loadImageDom(r,"foreground",i)}}),text:new Hv({textSizeComputer:(r,i)=>Ni(r,{font:i})})}}bindEvents(){super.bindEvents();let l=this.pm,r=l.getPlugin("draw");this.bindEvent(r,"render",this.onPageDrawRender,this,{checker:"Page"}),l.getPlugin("page_view")?(this.bindEvent(r,"afterRender",this.onSettingsDrawAfterRender,this,{checker:"Settings"}),this.bindEvent(l,"pageLayoutChange",this.onPageLayoutChange,this),this.bindEvent(l,"pageSync",this.onPageSync,this)):this.bindEvent(l,"paginate",this.onPaginate,this),l.getPlugin("page_clone")&&this.bindEvent(l,"pageClone",this.onPageClone,this)}onPageDrawRender(l,r,i){i.isTarget("display")&&this.ensureWatermarkWrapper(l)}onSettingsDrawAfterRender(l,r,i){i.isTarget("major")&&(this.updateWatermarkSettingsAll(),this.requestSyncPages())}onPageLayoutChange(){this.updateWatermarkWrapperVersionAll(),this.requestSyncPages()}onPageSync(l,r){this.syncPages(l,r)}onPaginate(){this.updateWatermarkWrapperVersionAll(),this.updateWatermarkSettingsAll(),this.syncAll()}onPageClone(l){for(let r of l.querySelectorAll(`.${this.pluginClassPrefix}page-wrapper`)){let i=r.firstElementChild;if(i)for(let s in this.watermarkCreators)this.watermarkCreators[s].onClone(i)}}getNextSerialVersion(){return String(this.serialVersion++)}isCurrentSection(l){return!0}getSectionId(l){return"_"}getSectionSettings(l){return this.pm.doc.queryChildNode("settings",!0).getAttrValue("finalSection")}getSectionWatermarkInfo(l){return this.getSectionId(l)?this.watermarkInfo||(this.watermarkInfo={wrapperVersion:this.getNextSerialVersion(),settings:null,settingsVersion:this.getNextSerialVersion()}):null}updateWatermarkWrapperVersion(l){let r=this.getSectionWatermarkInfo(l);r&&(r.wrapperVersion=this.getNextSerialVersion())}updateWatermarkWrapperVersionAll(){return this.updateWatermarkWrapperVersion(void 0)}computeWatermarkSettings(l){let r=xg.getEmptyValue();if(!r)return null;let i=this.getSectionSettings(l)?.watermark;return i?{...r,...i,config:{...r.config,...i.config}}:null}updateWatermarkSettings(l){let r=this.getSectionWatermarkInfo(l);if(!r)return;let i=this.computeWatermarkSettings(l);!Nn(i,r.settings)&&(r.settings=i,r.settingsVersion=this.getNextSerialVersion(),this.isCurrentSection(l)&&this.pm.dispatchEvent("watermarkSettingsChange",r.settings))}updateWatermarkSettingsAll(){return this.updateWatermarkSettings(void 0)}createWatermarkWrapper(){return It(["div",{class:`${this.pluginClassPrefix}page-wrapper`}])}ensureWatermarkWrapper(l){let r=this.pm.getPlugin("draw").getPmElement(l,!0),i=r.getData("watermark_dom");if(i)return i;let s=this.pm.schema.nodeType("page").queryDom(l,".syno-o-doc-pm-page-body");if(!s)return null;let u=this.createWatermarkWrapper();return r.setData("watermark_dom",u),s.prepend(u),u}createWatermark(l){let r=this.getWatermarkSettings(l);if(!r)return null;let i=r.type;return i==="none"?null:this.watermarkCreators[i].create(r,this.pm.getPlugin("paginator").getPageContentSize(l))}requestSyncPages(l){this.pm.getPlugin("page_view")?.requestSyncPages(this.pageSynchronizer,l)}getWatermarkSettings(l){let r=this.getSectionWatermarkInfo(l);return r?r.settings:null}syncAll(){this.syncPages(0,1/0)}syncPages(l,r){l=Math.max(l,0),r=Math.min(r,this.pm.getPlugin("paginator").getPageCount());for(let i=l;i<=r;++i)this.syncPage(i)}syncPage(l){let r=this.pm.getPlugin("paginator").getPageDOM(l);if(!r)return;let i=this.ensureWatermarkWrapper(r);if(!i)return;let s=this.pm.getPlugin("draw").getPmElement(r,!0),u=this.getSectionWatermarkInfo(l);s.syncData("watermark_wrapper_version",u?u.wrapperVersion:"")&&this.syncWatermarkWrapper(l,i),s.syncData("watermark_settings_version",u?u.settingsVersion:"")&&this.syncWatermark(l,i)}syncWatermarkWrapper(l,r){let i=this.pm.getPlugin("paginator"),{width:s,height:u}=i.getPageContentSize(l),{left:x,top:v}=i.getPagePadding(l);Object.assign(r.style,{left:x+"px",top:v+"px",width:s+"px",height:u+"px"})}syncWatermark(l,r){sn(r);let i=this.createWatermark(l);i&&r.append(i)}});class qv extends Gt{getSelectionRect(r,i){let s,u=r.selection();if(r.isSpecial||r.is("BreakGraph")||r.is("InlineNode")){let x=[];if(r.is("BreakGraph")){let v=this.pm.getPlugin("floating")?.getFloatingDom(u.node.attrs.id);v&&x.push(v)}else if(r.is("InlineNode")){let v=r.selection().node.dom;for(;!be.fly(v).isUnwrappedInlineElement&&v.firstChild;)v=v.firstChild;x.push(v)}else if(r.isMultiCellSelection){let v=r.$table,P=r.headIndex,j=this.pm.dompos.DOMFromPos(v.pos+1+v.self.getDisplayCellOffset(P.row,P.col));x.push(Io(j.node,j.offset))}else r.isMultiFloatingSelection?r.forEachBox(function(v,P){let j=v.getSvgElementNode();j?x.push(j.type.getSvgDOM(j.dom)):(j=v.getTextBlockNode(),x.push(j.type.getEditableAreaDOM(j.dom)))}):r.isMultiSlideSelection?r.forEach(function(v){x.push(v.node.getBackgroundNode().dom)}):r.forEach(function(v){x.push(v.node.dom)});if(x.length){s=xa.createSmallest();for(let v=x.length-1;v>=0;--v){let P=x[v];this.pm.ensureDOMVisible(P,!0)&&(s=xa.expand(s,P.getBoundingClientRect()))}}}else{let x=r.isMultiTextSelection?r.bias:1,v=u.is("Text")?u.getSidePos(i?.textRangeSide||"head"):u.$from,P=this.pm.dompos.DOMFromPos(v.pos,!1,x);if(this.pm.ensureDOMVisible(P.node,!0)&&(s=this.pm.dompos.cursorAtDOM(P.node,P.offset,{bias:x,useClientCoords:!0}),i&&i.fix_line_height&&or.checkAvailable(v))){let j=be.fly(P.node.nodeType===P.node.ELEMENT_NODE?P.node:P.node.parentNode);for(;!j.isLineElement;)j=be.fly(j.parentNode);let F=j.dom.getBoundingClientRect();s.top=F.top,s.bottom=F.bottom}}return s}}function o0(l){if(l===l.ownerDocument.body)return{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};{let r=l.getBoundingClientRect(),i={x:(r.left+r.right)/2,y:(r.top+r.bottom)/2},s=l.clientWidth/2,u=l.clientHeight/2;return{left:i.x-s,top:i.y-u,right:i.x+s,bottom:i.y+u}}}function l0(l,r,i,s,u){var x;let v,P,j=u?.side??0,{horizontal:F,vertical:q}=function(te){let ie,de,ce=te?te.split("-"):void 0;return ce?(ce.includes("left")?ie="left":ce.includes("right")&&(ie="right"),ce.includes("top")?de="top":ce.includes("bottom")&&(de="bottom"),{horizontal:ie,vertical:de}):{horizontal:void 0,vertical:void 0}}(u?.edge),{horizontal:J,vertical:re}=typeof(x=u?.force)=="boolean"?{horizontal:x,vertical:x}:x==="horizontal"?{horizontal:!0,vertical:!1}:x==="vertical"?{horizontal:!1,vertical:!0}:{horizontal:!1,vertical:!1};return j>=0&&(F&&J?v=F:l.left<r.left+i?v=F??"left":l.right>r.right-i&&(v=F??"right")),j<=0&&(q&&re?P=q:l.top<r.top+i?P=q??"top":l.bottom>r.bottom-i&&(P=q??"bottom")),{x:v?h0(l,r,s,v):0,y:P?h0(l,r,s,P):0}}function h0(l,r,i,s){return l[s]-r[s]+i*(s==="left"||s==="top"?-1:1)}function u0(l){return isNaN(l)?0:qe(l,-1e9,1e9)}async function Uv(l,r,i){let s=l===l.ownerDocument.body?l.ownerDocument.scrollingElement:l;if(s)return gh(l,r==null?r:r-s.scrollLeft,i==null?i:i-s.scrollTop)}async function gh(l,r,i){r=u0(r??0),i=u0(i??0),(r||i)&&(l===l.ownerDocument.body?window.scrollBy(r,i):(r&&(l.scrollLeft+=r),i&&(l.scrollTop+=i)))}async function $v(l,r,i,s){let{dom:u}=l;return Uv(u,r,i)}async function Zv(l,r,i,s){let{dom:u}=l;return gh(u,r,i)}async function c0(l,r,i){let{dom:s,threshold:u,margin:x}=l,v=l0(r,o0(s),u,x,i);return gh(s,v.x,v.y)}let fh=function(){return et.Date.now()};var Jv=Math.max,Xv=Math.min;let Yv=function(l,r,i){var s,u,x,v,P,j,F=0,q=!1,J=!1,re=!0;if(typeof l!="function")throw TypeError("Expected a function");function te(we){var Me=s,Se=u;return s=u=void 0,F=we,v=l.apply(Se,Me)}function ie(we){var Me=we-j,Se=we-F;return j===void 0||Me>=r||Me<0||J&&Se>=x}function de(){var we,Me,Se,Re=fh();if(ie(Re))return ce(Re);P=setTimeout(de,(we=Re-j,Me=Re-F,Se=r-we,J?Xv(Se,x-Me):Se))}function ce(we){return P=void 0,re&&s?te(we):(s=u=void 0,v)}function xe(){var we,Me=fh(),Se=ie(Me);if(s=arguments,u=this,j=Me,Se){if(P===void 0)return F=we=j,P=setTimeout(de,r),q?te(we):v;if(J)return clearTimeout(P),P=setTimeout(de,r),te(j)}return P===void 0&&(P=setTimeout(de,r)),v}return r=We(r)||0,it(i)&&(q=!!i.leading,x=(J="maxWait"in i)?Jv(We(i.maxWait)||0,r):x,re="trailing"in i?!!i.trailing:re),xe.cancel=function(){P!==void 0&&clearTimeout(P),F=0,s=j=u=P=void 0},xe.flush=function(){return P===void 0?v:ce(fh())},xe},Qv=function(l,r,i){var s=!0,u=!0;if(typeof l!="function")throw TypeError("Expected a function");return it(i)&&(s="leading"in i?!!i.leading:s,u="trailing"in i?!!i.trailing:u),Yv(l,r,{leading:s,maxWait:r,trailing:u})};function d0(l){l.stopPropagation()}function Ki(l,r){return r in l&&typeof l[r]=="number"}class Kv extends qv{constructor(r,i){super(r,i),this.defaultScrollerResizeObserver=new ResizeObserver(Qv(()=>{this.onDefaultScrollerResize()},16)),this.defaultScrollerInfo=function(s){return"dom"in s?{dom:s.dom,threshold:s.threshold??0,margin:s.margin??5}:{dom:s,threshold:0,margin:5}}(i.defaultScrollerInfo??this.pm.root.body),this.scrollClientSize={width:0,height:0},this.scrollOffsets={x:0,y:0}}static get pluginName(){return"scroll"}static get pluginSubscriptions(){return{scrollClientSizeChange:new ut,scrollOffsetsChange:new ut,scroll:new ut}}destroy(){this.defaultScrollerResizeObserver.disconnect(),super.destroy()}bindEvents(){super.bindEvents();let{dom:r}=this.getDefaultScrollerInfo();this.defaultScrollerResizeObserver.observe(r),this.bindEvent(r,"scroll",this.onDefaultScrollerScroll,this,{passive:!0}),this.updateScrollClientSize(),this.updateScrollOffsets();let i=this.pm.getPlugin("draw");i&&this.bindEvent(i,"event",this.onIndependentScrollerDrawEvent,this,{checker:"IndependentScroller"})}onDefaultScrollerResize(){this.updateScrollClientSize()}onDefaultScrollerScroll(){this.updateScrollOffsets(),this.pm.dispatchEvent("scroll")}onIndependentScrollerDrawEvent(r,i){i.addEventListener("wheel",d0),i.addEventListener("mousewheel",d0)}getDefaultScrollerInfo(){return this.defaultScrollerInfo}getActiveScrollerInfo(r){r===void 0&&(r=this.pm.selection.$from);let i=r.findNode("IndependentScroller");if(!i)return this.getDefaultScrollerInfo();let s=this.pm.getPlugin("draw")?.getDom(i);if(!s)return null;let u=i.type.getScrollerInfo(s);return u?{dom:u.dom,threshold:u.threshold??this.getDefaultScrollerInfo().threshold,margin:u.margin??this.getDefaultScrollerInfo().margin}:null}updateScrollClientSize(){let{dom:r}=this.getDefaultScrollerInfo(),i=this.scrollClientSize,s={width:r.clientWidth,height:r.clientHeight};(i.width!==s.width||i.height!==s.height)&&(this.scrollClientSize=s,this.pm.dispatchEvent("scrollClientSizeChange",s,i))}updateScrollOffsets(){let{dom:r}=this.getDefaultScrollerInfo(),i=this.scrollOffsets,s={x:r.scrollLeft,y:r.scrollTop};(i.x!==s.x||i.y!==s.y)&&(this.scrollOffsets=s,this.pm.dispatchEvent("scrollOffsetsChange",s,i))}getScrollClientSize(){return this.scrollClientSize}getScrollOffsets(){return this.scrollOffsets}async scroll(r,i){if(typeof r=="number")return this.scrollWithSelection(or.create(this.pm.doc,r).toMultiSelection(),i);if(typeof r=="object"){if(!r)return;if(r instanceof Vt)return this.scrollWithSelection(r,i);if("getBoundingClientRect"in r)return this.scrollWithClientRect(r.getBoundingClientRect(),i);if(Ki(r,"right")||Ki(r,"bottom"))return this.scrollWithClientRect(r,i);if(Ki(r,"x")||Ki(r,"y"))return this.scrollBy(r.x??0,r.y??0,i);if(Ki(r,"left")||Ki(r,"top"))return this.scrollTo(r.left,r.top,i)}}async scrollTo(r,i,s){let u=this.getActiveScrollerInfo();if(u)return $v(u,r,i)}async scrollBy(r,i,s){let u=this.getActiveScrollerInfo();if(u)return Zv(u,r,i)}async scrollWithClientRect(r,i){let s=this.getActiveScrollerInfo();if(s)return c0(s,r,i)}async scrollWithSelection(r,i){if(!this.isSelectionScrollable(r))return;let s=this.getActiveScrollerInfo();if(!s)return;let u=this.getSelectionRect(r,i);if(u){if(this.pm.schema.name==="document"&&(!i||!i.edge)){let x=r.isMultiTextSelection&&r.getRange().$from.parent;x&&x.type.isHeadingBlock&&x.getAttrValue("headingId")&&(i={...i,edge:"top"})}return c0(s,u,i)}}isSelectionScrollable(r){return!r.is("Cell")||this.pm.getMode()!=="editor"}shouldScroll(r,i,s,u,x){let v=l0(r,i,s,u,x);return!!(v.x||v.y)}getScrollerRect(r){return o0(r)}}let eb=new Et(class extends Kv{constructor(l,r){super(l,r)}isSelectionScrollable(l){return!(l.is("PageNumber")||l.is("CustomText"))&&super.isSelectionScrollable(l)}});class tb extends Gt{constructor(r,i){super(r,i),this.fitLevelName=i.fitLevelName||"fit",this.minValue=i.minValue??.1,this.maxValue=i.maxValue??5,this.valuePrecision=i.valuePrecision??3,this.doComputeFitZoomValue=i.computeFitZoomValue||(()=>1),this.fitZoomValue=1,this.zoomLevel="100",this.zoomValue=1;let s=i.defaultLevel&&this.computeZoomData(i.defaultLevel);s&&(this.zoomLevel=s.level,this.zoomValue=s.value)}static get pluginName(){return"zoom"}static get pluginSubscriptions(){return{zoomLevelChange:new ut,zoomValueChange:new ut}}getFitZoomValue(){return this.fitZoomValue}getZoomLevel(){return this.zoomLevel}getZoomValue(){return this.zoomValue}isZoomLevelFit(r){return(r||this.getZoomLevel())===this.fitLevelName}clampZoomValue(r,i){return i===void 0&&(i=this.valuePrecision),r=qe(r,this.minValue,this.maxValue),typeof i=="number"&&Number.isFinite(i)&&(r=th(r,i)),r}computeLevelZoomValue(r){let i=typeof r=="number"?r:parseInt(r,10)/100;return this.clampZoomValue(i)}computeZoomData(r){if(typeof r=="string"&&this.isZoomLevelFit(r))return{level:r,value:this.getFitZoomValue()};{let i=this.computeLevelZoomValue(r);return isNaN(i)?null:{level:String(Math.round(100*i)),value:i}}}setZoomLevel(r){let i=this.computeZoomData(r);if(!i)return;let{level:s,value:u}=i,x=this.getZoomLevel(),v=this.getZoomValue();this.zoomLevel=s,this.zoomValue=u,s!==x&&this.pm.dispatchEvent("zoomLevelChange",s,x),u!==v&&this.pm.dispatchEvent("zoomValueChange",u,v)}updateFitZoomValue(){let r=this.clampZoomValue(this.doComputeFitZoomValue.call(null));!isNaN(r)&&this.fitZoomValue!==r&&(this.fitZoomValue=r,this.isZoomLevelFit()&&this.setZoomLevel(this.fitLevelName))}}let rb=new Et(class extends tb{constructor(l,r){super(l,r)}}),Br=pe("SELECTION_CURSOR","SELECTION_OVERLAY","COLLAB_CURSOR","DROP_CURSOR","SPELLING_OVERLAY");class yh{constructor(){this.doms=[],this.hidden=!1}static get indicatorType(){return"cursor"}static get indicatorName(){return""}get dom(){return this.doms[0]}isVisible(){return!this.hidden}setVisible(r){let i=this.hidden,s=this.hidden=!(r??this.hidden);i!==s&&this.forEach(u=>{u.classList[s?"add":"remove"]("ProseMirror-indicator-hide")})}show(){return this.setVisible(!0)}hide(){return this.setVisible(!1)}clear(){this.forEach(_a,f)}forEach(r,i,s){let u=this.doms;for(let x=0,v=u.length;x<v;++x){let P=r.call(i,u[x]);if(s&&P!=null)return P}}get className(){return`ProseMirror-indicator-${this.constructor.indicatorType}-${this.constructor.indicatorName}`}get classStr(){return`ProseMirror-non-printable ProseMirror-indicator ProseMirror-indicator-${this.constructor.indicatorType} ProseMirror-indicator-${this.constructor.indicatorName} ${this.className}`}create(){return k()}setup(r,i){return k()}generate(r){return this.setup(r.dom||this.create(),r)}_add(r){return this.doms.push(r),r}add(r){return this._add(this.generate(r))}static getIndicatorCls(r){switch(r){case Br.SELECTION_CURSOR:return ib;case Br.SELECTION_OVERLAY:return nb;case Br.COLLAB_CURSOR:return ab;case Br.DROP_CURSOR:return sb;case Br.SPELLING_OVERLAY:return ob;default:throw Error(`Unknown indicator type. ${r}`)}}static create(r){return new(this.getIndicatorCls(r))}}class xh extends yh{static get indicatorType(){return"cursor"}get isCursor(){return!0}create(){return It(["div",{class:this.classStr}])}setup(r,i){let s=i.rect;return r.style.left=Math.round(s.left)-1+"px",r.style.top=s.top+"px",r.style.width="2px",r.style.height=s.bottom-s.top+"px",r}}class p0 extends yh{static get indicatorType(){return"overlay"}get isOverlay(){return!0}create(){return It(["div",{class:this.classStr}])}setup(r,i){let s=i.rect;return r.style.left=s.left+"px",r.style.top=s.top+"px",r.style.width=s.right-s.left+"px",r.style.height=s.bottom-s.top+"px",r}}class ib extends xh{static get indicatorName(){return"selection"}create(){return It(["div",{class:this.classStr},["svg",{class:this.className+"-svg"},["rect",{class:this.className+"-rect",width:"100%",height:"100%"}]]])}setup(r,i){return(r=super.setup(r,i)).firstChild.firstChild.setAttribute("fill",i.color||"#000"),r}}class nb extends p0{static get indicatorName(){return"selection"}}class ab extends xh{constructor(r){super(),this.onLabelHide=r?.onLabelHide,this.label_dom=null,this.label_hidden=!0,this.label_delay_task=new E(this.hideLabel.bind(this))}static get indicatorName(){return"collab"}_add(r){return this.label_dom=r.lastChild,super._add(r)}addLabel(r){return this._add(this.generateLabel(r))}showLabel(){this.label_delay_task.cancel(),this.label_dom&&this.label_hidden&&(this.label_hidden=!1,this.label_dom.style.display="block")}hideLabel(){this.label_delay_task.cancel(),this.label_dom&&!this.label_hidden&&(this.label_hidden=!0,this.label_dom.style.display="",this.onLabelHide?.call(null))}delayHideLabel(r){this.label_dom&&!this.label_hidden&&this.label_delay_task.delay(r)}syncLabelState(r){r.label_hidden?this.hideLabel():this.showLabel(),r.label_delay_task.isDelaying()&&this.label_delay_task.delay(r.label_delay_task.getRemainingTime())}_createLabel(){return It(["div",{class:this.className+"-label"}])}createLabel(){return It(["div",{class:this.classStr},this._createLabel()])}create(){return It(["div",{class:this.classStr},["div",{class:this.className+"-caret"}],["div",{class:this.className+"-head"}],this._createLabel()])}_setupLabel(r,i){return r.style.backgroundColor=i.color||"#000",r.innerText=i.name||"",r}setupLabel(r,i){let s=i.rect;r.style.left=s.left-3.5+"px",r.style.top=s.top-3.5+"px",r.style.width="0px",r.style.height="0px";let u=r.lastChild;return this._setupLabel(u,i),u.style.left="0px",r}setup(r,i){r=super.setup(r,i);let s=i.color||"#000";return r.firstChild.style.backgroundColor=s,r.firstChild.nextSibling.style.backgroundColor=s,this._setupLabel(r.lastChild,i),r.addEventListener("mouseover",()=>{this.showLabel()}),r.addEventListener("mouseout",()=>{this.delayHideLabel(3e3)}),r}generateLabel(r){return this.setupLabel(r.dom||this.createLabel(),r)}}class sb extends xh{static get indicatorName(){return"drop"}}class ob extends p0{static get indicatorName(){return"spelling"}create(){return It(["div",{class:this.classStr},["svg",{class:this.className+"-svg"},["rect",{class:this.className+"-rect",width:"100%",height:"100%",fill:"url(#ProseMirror-indicator-overlay-spelling-style-pattern)"}]]])}}let ui=pe("SELECTION","COLLAB","DROP","SPELLING");class en{constructor(r){this.control=r,this.pm=r.pm,this._indicator_data=null,this._pending_data=null}static get controlType(){return k()}onTrigger(){let r=this._indicator_data;r&&!this._pending_data&&r.sel.doc===this.pm.doc&&this._trigger(r)}onClear(){this.clear()}getIndicatorData(){return this._indicator_data}getIndicator(){let r=this.getIndicatorData();return r&&r.indicator}canUpdate(r){return r.sel.doc===this.pm.doc&&r.update}boundSelection(r){return r.insideEditor?{sel:r,update:!1}:null}_show(r){r.indicator&&r.indicator.show()}show(){let r=this.getIndicatorData();r&&this._show(r)}_hide(r){r.indicator&&r.indicator.hide()}hide(){let r=this.getIndicatorData();r&&this._hide(r)}_clear(r){r.indicator&&r.indicator.clear(),this._indicator_data=null,this._pending_data=null}clear(){let r=this.getIndicatorData();r&&this._clear(r)}_trigger(r){this._pending_data=r,this.pm.ensureOperation()}trigger(){}_draw(r){let i=r.options;i&&i.onDraw&&i.onDraw(r)}draw(){let r=this._pending_data;r!=null&&(this._pending_data=null,this._draw(r))}_update(r){this._pending_data==null&&this.canUpdate(r)&&this._trigger(r)}update(){let r=this.getIndicatorData();r&&this._update(r)}_create(r,i){let s=this.boundSelection(r)||d;return{indicator:s.sel&&this.createIndicator(s.sel,i),update:!!s.update,sel:r,options:i}}create(r,i){return r.doc!==this.pm.doc?null:this._create(r,i)}initIndicator(r){let i;switch(this.constructor.controlType){case ui.SELECTION:i=r?Br.SELECTION_OVERLAY:Br.SELECTION_CURSOR;break;case ui.COLLAB:i=Br.COLLAB_CURSOR;break;case ui.DROP:i=Br.DROP_CURSOR;break;case ui.SPELLING:i=Br.SPELLING_OVERLAY;break;default:throw Error(`Unknown indicator control type. ${this.constructor.controlType}`)}return yh.create(i)}createIndicator(r,i){return r.isMultiCellSelection?this.createTableCellIndicator(...arguments):r.isMultiListSelection?this.createListIndicator(...arguments):r.insideEditor?this.createTextIndicator(...arguments):void 0}createTextIndicator(r,i){return r.selection().empty?this.createTextCursor(r,i):this.createTextOverlay(r,i)}getCursorMarks(r,i){return r.doc.marksAt(r.pos)}fixTextCursorRect(r,i,s){let u=be.fly(r.dom.nodeType===r.dom.ELEMENT_NODE?r.dom:r.dom.parentElement);for(;u&&!u.isLineElement;)u=be.fly(u.parentNode);if(!u)return null;let x=u.childContainer.firstChild;s.side=-1;let v=this.pm.dompos.rectAtDOM(x,s).top,P=window.getComputedStyle(x),j=-Oi({family:P.fontFamily,size:Lt(P.fontSize,"pt")}).top,F=this.getCursorMarks(i,s),q=this.pm.schema,J=function(Me,Se){let Re=Me.markType("font_size"),Be=Re.isInSet(Se);return Be?Be.getValue():Re.getDefaultValue()}(q,F),re=q.markType("superscript").isInSet(F);(!re||!re.getValue())&&((re=q.markType("subscript").isInSet(F))&&re.getValue()||(re=null));let te=re?re.type.scriptType:"",ie=te?wc({size:J},te):0,de=Qt(J,"pt","px");re&&(de*=re.type.fontSizeRatio);let ce=Math.floor(de),xe=Math.floor(1.2*de),we=Oi({size:Qt(de,"px","pt")});return r.bottom=Math.floor(v+j+ie+we.bottom-(-we.top+we.bottom-ce)/2+(xe-ce)/2),r.top=r.bottom-xe,r}calcTextCursorRect(r,i){i===void 0&&(i=d);let s=r.selection().$head,u=i.dom_result||this.pm.dompos.DOMFromPos(s.pos,!1,{bias:i.bias!=null?i.bias:r.bias});if(!this.pm.ensureDOMVisible(u.node,i.force_visible))return null;let x={bias:-1,side:1,residingPmEditor:r.$editor},v=this.pm.dompos.cursorAtDOM(u.node,u.offset,x);return this.fixTextCursorRect(v,s,x)}createTextCursor(r,i){let s=this.initIndicator(!1),u=this.calcTextCursorRect(r,i);if(u){let x=this.pm.schema.marks.color.isInSet(this.getCursorMarks(r.$head())),v=x&&x.getValue(),P=r.$editor.self;P.is("TextBox")&&u.left<1&&(u.left=1,u.right=1),P.type.getIndicatorWrapperDOM(P.dom).appendChild(s.add(Object.assign({rect:u,color:v},i)))}return s}createTextOverlay(r,i){i===void 0&&(i=d);let s=this.initIndicator(!0),u=this.pm,x={side:1,residingPmEditor:r.$editor},{$from:v,$to:P}=r.selection().getExpandedRange(),j=v.pos,F=P.pos,q=(function(ie,de){if(ie.type.isTable)return be.fly(ie.dom).forAll(function(ce){ie.type.getIndicatorWrapperDOM(ce).appendChild(s.add({rect:{left:0,top:0,right:ie.state.width,bottom:be.fly(ce).getContentHeight()}}))},this),!1;if(ie.type.isTextblock){let ce=ie.type.isHolderParagraph,xe=be.fly(ie.dom).getData("line_count")??0;return be.fly(ie.dom).forEachElement(function(we,Me){let Se=be.fly(we),Re=Se.childContainer,Be=Se.getOffset(),Ue=Se.getSize(),Ze=Me===xe-1,lt=de+1+Be,At=lt+Ue;if(!ce){if(At<j||At===j&&!Ze)return;if(lt>=F)return!0}let ht={top:0,bottom:Se.getContentHeight()};if(Re.firstChild){if(lt>=j||ce)ht.left=be.fly(we).getData("inline_content_range")[0]-be.fly(we).getData("line_content_range")[0];else{let wt=u.dompos.DOMFromOffset(we,j-lt);ht.left=u.dompos.cursorAtDOM(wt.node,wt.offset,x).left-be.fly(we).getData("text_rect_info").left}if(At<=F||ce){let wt=Re.lastChild;ht.right=wt.offsetLeft+wt.offsetWidth,i.extend_line_end&&(Ze&&At<F||be.fly(wt).getNodeType()?.is("HardBreak"))&&(ht.right+=6)}else{let wt=u.dompos.DOMFromOffset(we,F-lt);ht.right=u.dompos.cursorAtDOM(wt.node,wt.offset,x).left-be.fly(we).getData("text_rect_info").left}}else ht.left=ht.right=0;u.schema.nodes.text_line.getIndicatorWrapperDOM(we).appendChild(s.add(Object.assign({rect:ht},i)))},this,!0),!1}}).bind(this),J=v.commonDepth(P),re=v.node(J),te=v.start(J);return re.type.isTextblock?q(re,te-1):re.nodesInside(v.pos-te,P.pos-te,q,{start:te,preset:"editor"}),s}createTableCellIndicator(r,i){i===void 0&&(i=d);let s=this.initIndicator(!0);return r.forEachDisplayCell(function(u,x,v,P){let j=u.state.text_rect_info.width+12;be.fly(u.dom).forAll(function(F){u.type.getIndicatorWrapperDOM(F).appendChild(s.add(Object.assign({rect:{left:0,top:0,right:j,bottom:be.fly(F).getContentHeight()}},i)))},this)},this),s}createListIndicator(r,i){let s=this.initIndicator(!0),u=this.pm.schema.nodeType("text_line");return r.forEachList(x=>{let v=be.fly(x.dom).firstChild,P=be.fly(v).getData("inline_range")[0]-be.fly(v).getData("line_content_range")[0],j={left:P,top:0,right:P+be.fly(v).getData("list_item_width")||0,bottom:be.fly(v).getContentHeight()};u.getIndicatorWrapperDOM(v).appendChild(s.add(Object.assign({rect:j},i)))}),s}}class g0 extends en{constructor(r){super(r),this.control.bindEvent(this.pm,"activeMarkChange",this.onTrigger,this),this.control.bindEvent(this.pm,"selectionChange",this.onTrigger,this),this.control.bindEvent(this.pm,"draw",this.onTrigger,this)}static get controlType(){return ui.SELECTION}onTrigger(){this.trigger()}trigger(r){let i,s=this._pending_data;i=r&&s!=null&&s!==d?Object.assign(Object.create(null),s.options,r):r?{options:r}:s||d,this._trigger(i)}_draw(r){let i=this.pm.multiSelection,s=Object.assign({extend_line_end:!0},r.options);!this.pm.on.beforeDrawSelection.dispatch(i,s)&&(this.clear(),this.pm.on.drawingSelection.dispatch(i,s)||(this._indicator_data=this.create(i,s)),this.pm.on.drawSelection.dispatch(i,s),(r=this._indicator_data)&&super._draw(r))}getCursorMarks(r,i){return this.pm.getActiveMarks()}}class f0 extends en{constructor(r){super(r),this._indicator_data_map=new Map,this._pending_data_map=new Map}static get controlType(){return ui.COLLAB}onTrigger(){this._indicator_data_map.forEach(function(r){this._pending_data_map.has(r.id)||r.sel.doc!==this.pm.doc||this._trigger(r)},this)}onClear(){this._indicator_data_map.forEach(this._clear,this)}getIndicatorData(r){return this._indicator_data_map.get(r)}boundSelection(r){if(r.insideEditor)if(r.isMultiTextSelection){let i=r.selection();i.empty||(r=i.collapse().toMultiSelection())}else r=St.findNear(r.$from(),1,!0).toMultiSelection();return super.boundSelection(r)}showLabel(r){this.getIndicatorData(r)?.indicator?.showLabel()}hideLabel(r){this.getIndicatorData(r)?.indicator?.hideLabel()}delayHideLabel(r,i){this.getIndicatorData(r)?.indicator?.delayHideLabel(i)}show(r){let i=this.getIndicatorData(r);i&&this._show(i)}hide(r){let i=this.getIndicatorData(r);i&&this._hide(i)}_clear(r){super._clear(r);let i=r.id;this._indicator_data_map.delete(i),this._pending_data_map.delete(i)}clear(r){let i=this.getIndicatorData(r);i?this._clear(i):this._pending_data_map.delete(r)}_trigger(r){this._pending_data_map.set(r.id,r),this.pm.ensureOperation()}trigger(r,i,s){this._trigger({id:r,sel:i,options:s})}_draw(r){let i=r.id,s=this.getIndicatorData(i)?.indicator;this.clear(i),(r=this.create(r.sel,r.options))&&(r.indicator&&s&&r.indicator.syncLabelState(s),r.id=i,this._indicator_data_map.set(i,r),super._draw(r))}draw(){super.draw();let r=this._pending_data_map;r.forEach(this._draw,this),r.clear()}_update(r){this._pending_data_map.has(r.id)||super._update(r)}update(){this._indicator_data_map.forEach(this._update,this)}}class y0 extends en{static get controlType(){return ui.DROP}boundSelection(r){if(r.insideEditor)if(r.isMultiTextSelection){let i=r.selection();i.empty||(r=i.collapse().toMultiSelection())}else r=St.findNear(r.$from(),1,!0).toMultiSelection();return super.boundSelection(r)}clear(r){return r||this.control.getSelectionControl().show(),super.clear()}trigger(r,i){this._trigger({sel:r,options:i})}_draw(r){this.clear(!0),this.control.getSelectionControl().hide(),this._indicator_data=this.create(r.sel,r.options),(r=this._indicator_data)&&super._draw(r)}}class x0 extends en{constructor(r){super(r),this.control.pm.getPlugin("hidden_region").add("indicator_spelling",()=>It(["svg",{class:`${this.control.pluginClassPrefix}spelling-style-svg`},["defs",null,["pattern",{id:"ProseMirror-indicator-overlay-spelling-style-pattern",width:4,height:3,patternUnits:"userSpaceOnUse"},this.createSvgStyleSpellingPath(),this.createSvgStyleSpellingPath({transform:"translate(0 1)",stroke:"#EE0000"})]]]))}static get controlType(){return ui.SPELLING}createSvgStyleSpellingPath(r){return It(["path",r=Object.assign({d:"M 0 0 L 2 2 L 4 0",fill:"none",stroke:"rgba(255, 255, 255, 0.8)","stroke-width":1,"stroke-linecap":"square","stroke-linejoin":"round"},r)])}trigger(){}_draw(r){}draw(){}update(){}}class lb extends Gt{constructor(r,i){super(r,i),this.selection_control=this.createSelectionControl(),this.collab_control=this.createCollabControl(),this.drop_control=this.createDropControl(),this.spelling_control=this.createSpellingControl(),this._update_indicator=!1}static get pluginName(){return"indicator"}static get pluginDependency(){return["hidden_region","draw"]}destroy(){super.destroy(),this.getSelectionControl().onClear(),this.getCollabControl().onClear(),this.getDropControl().onClear(),this.getSpellingControl().onClear()}createSelectionControl(){return new g0(this)}createCollabControl(){return new f0(this)}createDropControl(){return new y0(this)}createSpellingControl(){return new x0(this)}getSelectionControl(){return this.selection_control}getCollabControl(){return this.collab_control}getDropControl(){return this.drop_control}getSpellingControl(){return this.spelling_control}bindEvents(){super.bindEvents();let r=this.pm;r.getMode()==="editor"&&this.bindEvent(r,"flush",this.onFlush,this)}onFlush(){Promise.resolve().then(()=>{this.drawIndicator()})}triggerUpdateIndicator(r){this._update_indicator=!0,r!==!1&&this.pm.ensureOperation()}drawIndicator(){this._update_indicator&&(this.getSelectionControl().update(),this.getCollabControl().update(),this.getDropControl().update()),this.getSelectionControl().draw(),this.getCollabControl().draw(),this.getDropControl().draw(),this.pm.dispatchEvent("drawIndicator")}clearIndicators(r){r.querySelectorAll(".ProseMirror-indicator").forEach(i=>{i.remove()})}createSpelling(r,i){return this.getSpellingControl().createIndicator(r,i)}}let mh={canUpdate:function(l,r){if(!l.call(this,r))return!1;if(this.pm.schema.isDocument&&this.pm.getPlugin("page_display")){let i=r.view_page;if(i){let s=this.pm.getPlugin("page_view").getPageViewInfo();if(i.start.index<=s.start.index&&i.end.index>=s.end.index)return!1}}return!0},boundSelection:function(l,r){if(this.pm.schema.isDocument&&this.pm.getPlugin("page_display")){if(r.isMultiPageNumberSelection)return null;if(r.insideEditor&&!r.isMultiCellSelection&&r.$editor.self.type.isEditArea){let i,s,u=this.pm.getPlugin("paginator"),x=null,v=this.pm.getPlugin("page_view").getPageViewInfo(),P=v.start.index,j=v.end.index;for(;P<=j;++P){let F=be.fly(u.getPageDOM(P)).childContainer;if(F.firstChild){i=F;break}}if(i){for(;P<=j;--j){let ie=be.fly(u.getPageDOM(j)).childContainer;if(ie.firstChild){s=ie;break}}let F=this.pm.dompos.posFromDOM(i.firstChild)?.pos,q=this.pm.dompos.posFromDOM(s,gi(s))?.pos,J=r.selection(),{from:re,to:te}=J;if(F<=te&&re<=q){let ie,de;re<F&&(ie=St.findFrom(this.pm.doc.resolve(F),1,!0).$from),te>q&&(de=St.findFrom(this.pm.doc.resolve(q),-1,!0).$to),x=ie||de?or.createResolved(ie||St.findFrom(J.$from,1,!0).$from,de||St.findFrom(J.$to,-1,!0).$to).toMultiSelection():r}}return{sel:x,update:x!==r}}}return l.call(this,r)},_create:function(l,r,i){let s=l.call(this,r,i);return this.pm.schema.isDocument&&this.pm.getPlugin("page_display")&&(s.view_page=this.pm.getPlugin("page_view").getPageViewInfo()),s},createIndicator:function(l,r,i){return r.isMultiBreakGraphSelection?this.createBreakGraphIndicator(r,i):l.call(this,r,i)},createBreakGraphIndicator:function(l,r,i){let s=this.initIndicator(),u=this.pm.getPlugin("paginator");if(u){let x=r.selection(),v=u.getBlockerObj(x.node.attrs.id);if(v){let P=v.page_index;if(P<u.getPageCount()){let j=u.topFromPageIndex(P,!0),F=u.getPagePadding(P).left,q=v.rect,J=x.doc.queryChildNode("EditArea",!0);J.type.getIndicatorWrapperDOM(J.dom).appendChild(s.add(Object.assign({rect:{left:q.left-F,top:j+q.top,right:q.right-F,bottom:j+q.bottom}},i)))}}}return s}},hb={use_super:!0};for(let l in mh)Object.prototype.hasOwnProperty.call(mh,l)&&function(r,i,s,u){if(u===void 0&&(u=d),u.use_super){let x=_;for(let P=r;P;P=Object.getPrototypeOf(P)){let j=Object.getOwnPropertyDescriptor(P,i);if(j){typeof j.value=="function"&&(x=j.value);break}}let v=s;s=function(){return v.call(this,x,...arguments)}}r[i]=s}(en.prototype,l,mh[l],hb);en.useFloatingHighlight=!1;class ub extends g0{constructor(r){super(r),this.control.bindEvent(this.pm,"paginationModeChange",this.onTrigger,this)}boundSelection(r){if(r.isMultiInlineNodeSelection){let i=r.node();if(i.type.isChart||i.type.isImage||i.type.is("Drawing"))return null}return super.boundSelection(r)}}class cb extends f0{constructor(r){super(r),this.control.bindEvent(this.pm,"paginationModeChange",this.onTrigger,this)}boundSelection(r){return r.isMultiBreakGraphSelection?{sel:r,update:!1}:super.boundSelection(r)}}class db extends y0{constructor(r){super(r),this.control.bindEvent(this.pm,"paginationModeChange",this.onTrigger,this)}}class pb extends x0{}let gb=new Et(class extends lb{constructor(l,r){super(l,r)}createSelectionControl(){return new ub(this)}createCollabControl(){return new cb(this)}createDropControl(){return new db(this)}createSpellingControl(){return new pb(this)}bindEvents(){super.bindEvents();let l=this.pm;l.getPlugin("page_display")&&this.bindEvent(l,"pageViewChange",this.onPageViewChange,this)}onPageViewChange(l,r){r&&r.start.index<=l.start.index&&r.end.index>=l.end.index||this.triggerUpdateIndicator()}}),m0=1;class fb extends Gt{constructor(r,i){super(r,i)}static get pluginGroupName(){return"page_decorator"}static get pluginDependency(){return["draw","paginator","image_loader"]}bindEvents(){super.bindEvents();let r=this.pm.getPlugin("draw");this.bindEvent(r,"change",this.onDecoratorDrawChange,this,{checker:"Decorator"})}onDecoratorDrawChange(r){this.advanceDecoratorVersion(r)}advanceDecoratorVersion(r){let i=this.pm.getPlugin("draw").getDrawnDom(r);return!!i&&(be.fly(i).setData("version",m0),++m0,!0)}syncAll(){return this.syncPages(0,1/0)}syncView(){let r=this.pm.getPlugin("page_view");if(!r)return this.syncAll();this.syncPages(...r.getPageViewIndexRange())}syncPages(r,i){let s=this.pm.getPlugin("paginator");if(s.isPaginatedMode()){r=Math.max(r,0),i=Math.min(i,s.getPageCount()-1);for(let u=r;u<=i;++u)this.syncPage(u)}}syncPage(r){let i=this.pm.getPlugin("paginator"),s=i.getPageDOM(r);if(!s)return;let u=this.pm.showDoc,x=u.queryChildNode("PageDecorate",!0),v=u.queryChildNode("EditArea",!0).type.pseudoType,P=i.getPageControl(),j=P.getTypeFromIndex(r);Ai.forEach(F=>{let q,J,re=F==="page_num",te=P.getDecoratorInfo(F,j),ie=te.view_type,de=v.getDecoratorDOM(s,F),ce=be.fly(de).getData("version");if(ie&&(q=zl(x,F,ie).node,J=be.fly(q.dom).getData("version")),ce===J&&(!re||te.view_pos===be.fly(de).getData("view_pos")))return;if(sn(de),ie){let we=this.cloneDecoratorDom(q);if(we){if(re){let Me=te.view_pos,Se=Object.create(null);if(Me[0]==="t"){let Re=zl(x,"header",ie).node;Se.top=Re.type.getTopPaddingHeight(Re)+"px",Se.bottom=null}else{let Re=zl(x,"footer",ie).node;Se.top=null,Se.bottom=Re.type.getBottomPaddingHeight(Re)+"px"}Me[1]==="l"?(Se.left=null,Se.right=i.getPagePadding(r).right+P.getPageContentWidth(r)+"px"):(Se.left=i.getPagePadding(r).left+P.getPageContentWidth(r)+"px",Se.right=null),Object.assign(de.style,Se),(Ti(we)||we).appendChild(document.createTextNode(String(r+ +!x.getAttrValue("num-cover"))))}de.appendChild(we)}}let xe=be.fly(de);re&&xe.setData("view_pos",te.view_pos),xe.setData("version",J)})}cloneDecoratorDom(r){let i=this.pm.getPlugin("draw").getDrawnDom(r);if(!i)return null;let s=null;if(r.is("HeaderFooter")){s=r.type.getEditableAreaDOM(i).cloneNode(!0);let u=r.type.decoratorType;s.classList.remove("syno-o-doc-pm-"+u+"-padding"),s.classList.add("syno-o-doc-pm-page-"+u+"-padding"),s.firstChild.classList.add("syno-o-doc-pm-page-"+u+"-container")}else r.is("PageNumber")&&((s=r.type.getEditableAreaDOM(i).cloneNode(!0)).classList.add("syno-o-doc-pm-page-page-number-padding"),s.firstChild.style.height="");return s?(this.pm.getPlugin("indicator")?.clearIndicators(s),this.pm.getPlugin("formatting_marks")?.maybeHideClonedFormattingMarks(r,s),this.pm.getPlugin("image_loader").loadDescendant(s),s):null}}let yb=new Et(class extends fb{constructor(l,r){super(l,r)}static get pluginName(){return"page_decorator_viewer"}bindEvents(){super.bindEvents();let l=this.pm;this.bindEvent(l,"paginate",this.onPaginate,this)}onPaginate(){this.syncAll()}});class xb{constructor(r){this.markSelection=r.markSelection.bind(null),this.markPage=r.markPage.bind(null),this.scrollToSelection=r.scrollToSelection.bind(null),this.scrollToPage=r.scrollToPage.bind(null)}highlight(r,i,s){switch(s===void 0&&(s=d),i.type){case"watermark":return this.highlightWatermark(r,i,s);case"drawing":return this.highlightDrawing(r,i.drawingId,i,s);case"edit_area":return this.highlightEditArea(r,i.childPath,i,s);case"comment":return this.highlightComment(r,i.commentId,i,s);default:return null}}highlightWatermark(r,i,s){return{removeMarker:s.skipMarker?void 0:this.markPage(0,i,s),scrollPromise:s.skipScroll?void 0:this.scrollToPage(0,i,s)}}highlightDrawing(r,i,s,u){let x=function(v,P){let j;if(v.descendants((q,J)=>{if(q.is("Drawing")&&q.getAttrValue("id")===P||q.is("Chart")&&q.getAttrValue("synochart")===P)return j={node:q,offset:J},!0}),!j)return null;let F=gr.create(v,j.offset,void 0,!0)?.toMultiSelection();return F&&F.is("Node")?F:null}(r.root,i);return x?{removeMarker:u.skipMarker?void 0:this.markSelection(x,s,u),scrollPromise:u.skipScroll?void 0:this.scrollToSelection(x,s,u)}:null}highlightEditArea(r,i,s,u){let x,v=function(j,F){if(j.self.isEmpty())return null;let q=j;for(let J of F)if((q=q.extendIndex(qe(J,0,q.self.childCount-1))).self.is("Textblock")||q.self.isEmpty())break;return q}(r.root.queryChildResolvedPos("EditArea",!0),i);if(!v)return null;let P=v.self;return P.is("Textblock")?x=or.createResolved(v.extend(0),v.extend(v.self.getContentSize()),!0)?.toMultiSelection():(P.is("Table")||P.is("TableRow")||P.is("TableCell"))&&(x=fo.createAdapted([v],!0,{dir_col:-1,dir_row:-1})),x||(x=St.findNear(v,1,!0,!0)?.toMultiSelection())?{removeMarker:u.skipMarker?void 0:this.markSelection(x,s,u),scrollPromise:u.skipScroll?void 0:this.scrollToSelection(x,s,u)}:null}highlightComment(r,i,s,u){let x=r.commentStore.getBy(i);if(!x||x.ranges.length<2)return null;let v=St.findNear(r.root.resolve(x.ranges[0]),1,void 0,!0)?.toMultiSelection();return v?{removeMarker:u.skipMarker?void 0:this.markSelection(v,s,u),scrollPromise:u.skipScroll?void 0:this.scrollToSelection(v,s,u)}:null}}function v0(){let l=document.createElement("div");return Object.assign(l.style,{position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none"}),l}class mb extends Gt{constructor(r,i){super(r,i),this.highlightConfig=function(s){let u={...s};for(let x of["default","media"])u[x]||(u[x]={});return u}(i.highlightConfig)}static get pluginName(){return"viewer"}static get pluginDependency(){return["draw"]}init(){if(super.init(),this.pm.getMode()!=="viewer")throw Error(`Plugin viewer requires ProseMirror in "viewer" mode: ${this.pm.getMode()}`)}bindEvents(){super.bindEvents();let r=this.pm;this.bindEvent(r.wrapper,"dragstart",i=>{i.preventDefault()})}getZoomValue(){return this.pm.getPlugin("zoom")?.getZoomValue()??1}getClientPageSize(){let r=this.getPageSize(),i=this.getZoomValue();return{width:Math.round(r.width*i),height:Math.round(r.height*i)}}async highlight(r,i){let s=Array.isArray(r)?r:[r];await this.pm.nextTick();let u={...i,skipScroll:!0},x=s.map((v,P)=>this.doHighlight(v,P===0?i:u));return{removeMarker:()=>{for(let v of x)v?.removeMarker?.()},scrollPromise:Promise.all(x.map(v=>v?.scrollPromise)).then(()=>{})}}fillHighlightMarkerStyle(r,i,s){var u=this.highlightConfig;let{markerColor:x,markerClass:v}=i.fileId?u.media:u.default;v?r.classList.add(v):x&&(r.style.background=x)}}let vb=new Et(class extends mb{constructor(l,r){super(l,r),this.highlightManager=this.createHighlightManager()}static get pluginDependency(){return super.pluginDependency.concat("shape","paginator")}createHighlightManager(){return new xb({markSelection:(l,r,i)=>{if(l.is("BreakGraph")||l.is("InlineNode")){let s=this.pm.getPlugin("scroll")?.getSelectionRect(l);if(!s)return;let u=1/(this.pm.getPlugin("zoom")?.getZoomValue()??1),{left:x,top:v}=this.pm.wrapper.getBoundingClientRect(),P=(s.left-x)*u,j=(s.top-v)*u,F=(s.right-x)*u,q=(s.bottom-v)*u,J=v0();return Object.assign(J.style,{left:P+"px",top:j+"px",width:F-P+"px",height:q-j+"px"}),this.fillHighlightMarkerStyle(J,r,i),this.pm.wrapper.appendChild(J),()=>{J.remove()}}if(l.insideEditor){let s=this.pm.getPlugin("indicator")?.getSelectionControl().createIndicator(l,{extend_line_end:!0});if(!s)return;for(let u of s.doms)u.classList.remove("ProseMirror-non-printable","ProseMirror-indicator-overlay-selection"),this.fillHighlightMarkerStyle(u,r,i);return()=>{s?.clear()}}},markPage:(l,r,i)=>{let s=this.pm.getPlugin("paginator").getPageDOM(l);if(!s)return;let u=v0();return this.fillHighlightMarkerStyle(u,r,i),s.appendChild(u),()=>{u.remove()}},scrollToSelection:async l=>{await this.pm.getPlugin("scroll")?.scroll(l,{edge:"left-top",force:!0,fix_line_height:!0})},scrollToPage:async l=>{let r=this.pm.getPlugin("paginator").getPageDOM(l);r&&await this.pm.getPlugin("scroll")?.scroll(r,{edge:"left-top",force:!0,fix_line_height:!0})}})}bindEvents(){super.bindEvents();let l=this.pm;this.bindEvent(l,"transformClientCoords",this.onTransformClientCoords,this);let r=l.getPlugin("draw");this.bindEvent(r,"afterChildRender",this.onDrawingDrawAfterChildRender,this,{checker:"Drawing"}),l.getPlugin("zoom")&&(this.bindEvent(r,"render",this.onZoomedPageDrawRender,this,{checker:"Page"}),this.bindEvent(l,"zoomValueChange",this.onZoomValueChange,this))}onTransformClientCoords(l,r){let i;if(r){let u=r.self;if(u.is("EditArea")){let x=this.pm.wrapper.getBoundingClientRect(),v=this.pm.getPlugin("paginator").getPagePadding(0);i={left:x.left+v.left,top:x.top+v.top}}else i=u.type.getIndicatorWrapperDOM(u.dom).getBoundingClientRect()}else i=this.pm.wrapper.getBoundingClientRect();l.x-=i.left,l.y-=i.top;let s=1/(this.pm.getPlugin("zoom")?.getZoomValue()??1);return l.x*=s,l.y*=s,l}onDrawingDrawAfterChildRender(l,r,i){if(i.getTarget()!=="viewer")return;r.style.pointerEvents="none";let s=r.firstElementChild;s&&s.querySelectorAll("[pointer-events]").forEach(u=>{u.removeAttribute("pointer-events")})}onZoomedPageDrawRender(l,r,i){(i.isTarget("viewer")||i.isTarget("general"))&&this.updatePageSize(l)}onZoomValueChange(){let l=this.getPageCount();for(let r=0;r<l;++r){let i=this.pm.getPlugin("paginator").getPageDOM(r);i&&this.updatePageSize(i)}}getPageSize(){return this.pm.doc.getState("page_size")??{width:0,height:0}}getPageCount(){return this.pm.getPlugin("paginator").getPageCount()}updatePageSize(l){let r=this.pm.getPlugin("draw").getDom(l);if(!r)return;let i=this.getPageSize(),s=this.getClientPageSize(),u=this.getZoomValue();Object.assign(r.style,{width:s.width+"px",height:s.height+"px"}),r.firstElementChild&&Object.assign(r.firstElementChild.style,{width:i.width+"px",height:i.height+"px",transform:`scale(${u})`,"transform-origin":"0 0"})}doHighlight(l,r){return this.highlightManager.highlight({root:this.pm.doc,commentStore:this.pm.commentStore},l,r)}}),bb={createProseMirror:l=>{var r;return r=function(i){return kl.mergeConfigs(function(s){let{doc:u,comments:x}=s,v=c5.migrate(u||$l.getPresetJson(),x);return kl.mergeConfigs({place:s.place,mode:"viewer"},{schema:$l,doc:v.getDoc(),comments:v.getCommentStore(),plugins:[g5,m5,M5,C5,L5,R5,N5,E5,B5,F5,X5,iv,av,ov,Cv,zv,Fv,Wv,eb,rb,gb,yb,vb]})}(i),{pluginConfigs:{chart:{emptyImageUrl:"./images/_Asset/2x/_Common/icon_chart_invalid.png",emptyImageSize:{width:144,height:144}}}},{pluginConfigs:i.pluginConfigs})}(l),new kl(r)}}})();var Ci=window;for(var Ii in zr)Ci[Ii]=zr[Ii];zr.__esModule&&Object.defineProperty(Ci,"__esModule",{value:!0})})()}($n,$n.exports)),$n.exports}Vb();class Bb extends Tb{createProseMirror(qt){return DocumentViewer.createProseMirror(qt)}}const rw=_0({__name:"FloatingBar",setup(wr){const{enableZoomOut:qt,enableZoomIn:xr,handType:Mr,currentPage:Ct,totalPage:zr,displayFit:Ci,handleZoomOut:Ii,handleZoomDisplay:U,handleZoomIn:C,handleCursorClick:b,handleHandClick:p}=Cb({useComponentStore:Zn,usePageStore:Mh,useZoomableStore:wh});return(T,w)=>(vh(),A0(Yt(jb),{"enable-zoom-in":Yt(xr),"enable-zoom-out":Yt(qt),"hand-type":Yt(Mr),"current-page":Yt(Ct),"total-page":Yt(zr),"display-fit":Yt(Ci),onZoomout:Yt(Ii),onZoomreset:Yt(U),onZoomin:Yt(C),onCursor:Yt(b),onHand:Yt(p)},null,8,["enable-zoom-in","enable-zoom-out","hand-type","current-page","total-page","display-fit","onZoomout","onZoomreset","onZoomin","onCursor","onHand"]))}}),iw=_0({__name:"ItemView",setup(wr,{expose:qt}){const xr=bh.DOCX,Mr=w0(null);Eb(Mr,{useComponentStore:Zn,usePageStore:Mh,useZoomableStore:wh},Bb);const Ct=w0(null),{show:zr,showClose:Ci,labelText:Ii,loading:U,handleClose:C,handleValidate:b}=Db(S0,Ct),{redrawHighlights:p}=Ib(xr,()=>Zn().component);return qt({redrawHighlights:p,handleWheel:T=>Zn().component?.handleWheel(T)}),(T,w)=>(vh(),Mb("div",{ref_key:"container",ref:Mr,class:Ab(Yt(Sb).DOCX_VIEW)},[Yt(zr)?(vh(),A0(Yt(Rb),{key:0,ref_key:"dialog",ref:Ct,"show-close":Yt(Ci),"label-text":Yt(Ii),loading:Yt(U),onClose:Yt(C),onSubmit:Yt(b)},null,8,["show-close","label-text","loading","onClose","onSubmit"])):_b("",!0)],2))}});export{rw as FloatingBar,tw as Item,iw as ItemView,Bb as UVDocxView,ew as ViewHandler};